Most command line options apply to both Oracle ORAchk and Oracle EXAchk.
$ ./orachk options
$ ./exachk options
List of command options common to Oracle ORAchk and Oracle EXAchk.
Table 1-8 Generic Commands
Option | Description |
---|---|
|
Performs all checks, including best practice checks and recommended patch check. This is the default option, if no options are specified. |
|
Shows version. |
|
Runs in debug mode. The generated |
|
Runs only if the daemon is running. |
|
Does not send commands to the daemon, usage is interactive. |
|
Runs Offline. Checks are performed on data already collected from the system. |
|
Forces an upgrade of the version of being run. |
|
Does not prompt for an upgrade even if a later version is available under the location specified by RAT_UPGRADE_LOC. |
|
Sends a test email to validate email configuration. Use |
|
Emails the generated HTML report on completion. The |
|
Runs |
|
Runs |
|
Runs |
List of commands to control the scope of checks.
Table 1-9 Scope of Checks
Command | Description |
---|---|
|
Runs only the best practice checks. Does not run recommended patch checks. |
|
Runs only the patch checks. |
|
Excludes checks for Maximum Availability Architecture (MAA) scorecards. |
|
Runs pre-upgrade checks for Clusterware and Database. |
|
Runs post-upgrade checks for Clusterware and Database. |
|
Pass comma-delimited node names to run only on the subset of nodes. |
|
Passes comma-delimited database names to run only on the subset of databases. |
|
Does not prompt database selection, and skips all the database related checks. |
|
Does not prompt database selection, and runs the database related checks on all databases discovered on system. |
|
Runs only on the local node. |
|
Passes comma-delimited storage server names to run only on the selected storage servers. |
|
Passes comma-delimited InfiniBand switch names to run only on the selected InfiniBand switches. |
|
Runs only the checks in specified profiles, profile is comma-delimited list of profiles. |
|
Excludes checks in the specified profiles, profile is comma-delimited list of profiles |
|
Runs only the checks specified, |
|
Does not run the checks specified, |
|
Does not run the checks present in user defined |
Related Topics
Use the commands explained in this section to manage report output.
Table 1-10 Managing Output
Option | Description |
---|---|
|
Write JSON results to syslog. |
|
Append |
|
Argument to an option. If |
|
Do not show passed checks in generated output. |
|
Do not print health score in HTML report. |
|
Report the difference between two HTML reports. Pass a directory name or a ZIP file or an HTML report file as |
|
Comma-delimited collection names to merge collections and prepare single report. |
List of commands to upload results to database.
Table 1-11 Uploading Results to Database
Option | Description |
---|---|
|
Sets the values in the wallet to upload health check run results to the database.
variable_names are comma-delimited list of variables to set. |
|
Unsets the values in the wallet to upload health check run results to the database.
variable_names are comma-delimited list of variables to unset. |
|
Checks the status if variables are set correctly for uploading health check run results to the database. |
|
Prints the variables with their values from wallet for uploading health check run result to the database. |
|
Reports any failed collection uploads. |
|
Reattempts upload of one or more failed collection uploads, specifying either all to upload all or a comma-delimited list of collections. |
Related Topics
List of commands you can use to control the behavior of the daemon.
Table 1-12 Daemon Options
Option | Description |
---|---|
|
Optionally use |
|
Unsets the parameter. Use with |
|
Displays the value of the specified parameter or all of the parameters. Use with |
|
Starts the daemon. |
|
Starts the daemon in debug mode. |
|
Stops the daemon. |
|
Forces a running daemon client to stop. |
|
Checks the current status of the daemon. |
|
Displays details about the daemon, installation and when started. |
|
Displays details about when the next scheduled auto run will occur. Use with |
|
Sets the daemon auto restart function that starts the daemon when the node starts. |
|
Removes auto restart functionality. |
|
Checks if auto restart functionality is set up. |
|
Sets root user equivalency for |
Related Topics
List of commands to find file attribute differences.
Table 1-13 File Attribute Differences
Option | Description |
---|---|
|
Takes file attributes snapshot of discovered directories and stores the snapshot in the output directory. By default, it takes snapshot of Oracle Grid Infrastructure Home and all the installed database homes. If the user doesn't own a particular directory then it does not take snapshot of the directory |
|
Takes a recent snapshot of discovered directories and compares with the previous snapshot |
|
Removes file attribute snapshots and related files. |
|
Includes directories given by user at command-line to check file attributes. For example:
./orachk -fileattr start -includedir "/root/home,/etc" ./orachk -fileattr check -includedir "/root/home,/etc" |
|
Excludes the discovered directories. ./orachk -fileattr start -includedir "/root/home,/etc" -excludediscovery |
|
For example: ./orachk -fileattr check -baseline "/tmp/Snapshot" |
|
Performs file attributes check and exits ORAchk. ./orachk -fileattr check -fileattronly |