|
Default Parameters for OraIndexFragTest
This test scans a pre-configured index sample for high and very high levels of fragmentation based on configured thresholds, and reports the count of fragmented indexes. This page depicts the default parameters that need to be configured for the OraIndexFragTest.
In order to monitor an Oracle database server, a special database user account has to be created in every Oracle database instance that requires monitoring. A Click here hyperlink is available in the test configuration page, using which a new oracle database user can be created. Alternatively, you can manually create the special database user. When doing so, ensure that this user is vested with the select_catalog_role and create session privileges.
The sample script we recommend for user creation (in Oracle database server versions before 12c) for eG monitoring is:
create user oraeg identified by oraeg
create role oratest;
grant create session to oratest;
grant select_catalog_role to oratest;
grant oratest to oraeg;
The sample script we recommend for user creation (in Oracle database server 12c) for eG monitoring is:
alter session set container=<Oracle_service_name>
create user <user_name> identified by <user_password> container=current default
tablespace <name_of_default_tablespace> temporary tablespace <name_of_temporary_tablespace>
Grant create, session to <user_name>
Grant select_catalog_role to <user_name>
The name of this user has to be specified in the USER text box, and the password of this user has to be entered in the PASSWORD text box. This login information is required to query Oracle's internal dynamic views, so as to fetch the current status / health of the various database components.
Specify a comma-separated list of tables, the indexes of which need to be checked for fragmentation. Every table name should be specified in the following format: <DisplayName>:<schema_name>.<table_name>, where schema_name refers to the name of the table owner, and table_name refers to the name of the table. The DisplayName in your specification will appear as the descriptor of this test. For instance, to monitor the indexes of the alarm and history tables owned by user admin, your specification would be: AlarmMon1:admin.alarm,AlarmMon2:admin.history. To monitor all tables in a schema, the specification would be of the following format: <DisplayName>:<schema_name>.*. For example, to monitor all the tables in the admin schema, your specification would be: AlarmMon:admin.*.
You can also configure the OBJECT NAME to indicate what percentage of records in a table are to be considered by this test for running index fragmentation checks. To achieve this, your OBJECT NAME specification should be of the following format: <DisplayName>:<schema_name>.<table_name>@<Percentage_of_records_in_the table>. For instance, say that you want to configure this test to monitor the indexes that correspond to 20% of the alarm table and 30% of the history table. The OBJECT NAME specification in this case will be: AlarmMon:admin.alarm@20,AlarmMon1:admin.history@30. It is recommended that you keep this 'percentage value' small, as higher values will make this test that much more resource-intensive.
Note:
Make sure that you configure the OBJECT NAME parameter with only table names and not view names. This is because, indexes are available for tables alone and not views.
Specify the time period upto which a query has to wait to obtain the required result set from this database in the QUERYTIMEOUT text box. The default value of this parameter is 30. If the query is not successful or if the query waits for a time period exceeding the specified time limit, the test will automatically kill the query.
When changing default configurations of tests, the values with "$" indicate variables that will be replaced by the eG system according to the specific server being managed - for instance, $hostName is the host/nickname of the target host, $port is the port number of the server being monitored. E.g., for a server xyz:80, $hostName will be changed automatically by the eG manager to "xyz" and $port will be changed to "80" when configuring a test.
|