Collectors that use a database sensor require that you create a read-only database user account so that the collector can query for events.
See Installing collectors that use a database sensor.
You can set up Oracle database users in the following ways:
By using Oracle 10g or 11g Enterprise Manager
See “To create a read-only database user account by using Oracle Enterprise Manager”.
See “To create a read-only Oracle database user by using SQLPlus”.
To create a read-only database user account by using Oracle Enterprise Manager
Log in to the Oracle database as a user that has permissions to create roles and users with Enterprise Manager.
On the Database Instance page, click the Administration tab.
On the Create Role page, in the Name field, type a new role name.
In the Available System Privileges list, select the privilege named SELECT.
Do one of the following steps:
Click Move so that the privileges appear in the Selected System Privileges list.
On the Administration tab, under Users & Privileges, click Users.
On the Create User page, perform the following tasks in the order given:
In the Available Role list, select the role that you created in step 4.
Click Move so that the role appears in the Selected Roles list.
Click OK, and then click OK again, to create the user with read-only access to the database tables.
To create a read-only Oracle database user by using SQLPlus
To start SQLPlus without logging in to a database, at a command prompt, type the following:
To connect as a system database administrator, at the SQLPlus prompt, type the following command:
To create a read-only role, at the SQLPlus prompt, type the following command:
Do one of the following steps:
To create a read-only user, at the SQLPlus prompt, type the following commands:
create user read_only_user identified by password default tablespace users temporary tablespace temp quota unlimited on users;
To assign the role you that created in step 3 to the user you that created in step 5, at the SQLPlus prompt, type the following command: