Oracle® Internet Directory Administrator's Guide 10g (9.0.4) Part Number B12118-01 |
|
Syntax for LDIF and Command-Line Tools, 9 of 10
Use the oidstats.sh tool to analyze the various database ods
schema objects to estimate the statistics. It is located in the following directory: $
ORACLE_HOME/ldap/admin/
. The tool will prompt for 'ods' database user password. You must run this utility whenever there are significant changes in directory data--including the initial load of data into the directory.
If you load data into the directory by any means other than the bulkload tool (bulkload.sh), then you must run the OID Database Statistics Collection tool after loading. Statistics collection is essential for the Oracle Optimizer to choose an optimal plan in executing the queries corresponding to the LDAP operations. You can run OID Database Statistics Collection tool at any time, without shutting down any of the Oracle Internet Directory daemons.
Note: To run shell script tools on the Windows operating system, you need one of the following UNIX emulation utilities:
|
The OID Database Statistics Collection Tool uses this syntax:
oidstats.sh [ -connect connect_string ] [ -all ] [ -cat catalog_name ] [ -pct percent ] [ -help | -usage ]
The parameters are:
Each of the following examples assume that the ORACLE_SID and the default user name and password are in effect.
The following example estimates statistics based on 100 percent sample data of all tables:
oidstats.sh -all -pct 100
The following example estimates statistics based on 50 percent sample data of all tables:
oidstats.sh -all -pct 50
The following example estimates statistics based on 50 percent sample data of CT_CN table:
oidstats.sh -cat ct_cn -pct 50
The following example estimates statistics based on 40 percent sample data of all catalog tables:
oidstats.sh -cat all -pct 40
|
![]() Copyright © 1999, 2003 Oracle Corporation. All Rights Reserved. |
|