orareindex – Recreating indexes/constraints
Purpose
orareindex recreates/rebuilds all indexes and unique constraints in an Oracle database schema.
Options
orareindex supports the following options:
- -v <flag>, --verbose <flag>
Produces output (on stderr) while the database is read or written. (Valid flag values are
false,no,0,true,yesor1)
- -c <mode>, --color <mode>
Should the output (when the
-voption is used) be colored? Ifautois specified (the default) then the output is colored if stderr is a terminal. Valid modes areyes,noorauto.
- -x <flag>, --execute <flag>
When the
-xargument is given the SQL script isn’t printed on stdout, but is executed directly in the schema specified via theconnectstringoption. (Valid flag values arefalse,no,0,true,yesor1)
- -r <flag>, --rebuild <flag>
If given, the script uses
ALTER INDEX ... REBUILDto rebuild indexes instead of dropping and recreating them. (Valid flag values arefalse,no,0,true,yesor1)
- --format <format>
If
--executeis not given, this determines the output format: Plain SQL (formatsql), or PySQL (formatpysql) which can be piped intoll.pysql.
- --thick <flag>
If true, use
oracledbs thick mode. (Valid flag values arefalse,no,0,true,yesor1)
- --config_dir <directory>
In
oracledbs thin mode, specify the directory that contains thetnsnames.orafile. This can be used if “Connect Descriptor Strings” fromtnsnames.oramust be used buttnsnames.oracan’t be found in its default location.