A.7 Tracking File Attribute Differences

Use the list of commands to track file attribute differences.

Parameters

Table A-6 File Attribute Differences

Option Description

-fileattr start

Takes file attributes snapshot of discovered directories and stores the snapshot in the output directory.

By default, the tool takes snapshot of Oracle Grid Infrastructure home and all the installed database homes.

If the user doesn't own a particular directory, then the tool does not take snapshot of the directory.

-fileattr check

Takes a recent snapshot of discovered directories and compares with the previous snapshot

-fileattr remove

Removes the file attribute snapshots and related files.

-fileattr [start|check] -includedir directories

Includes the directories specified at the command-line to check file attributes.

For example:
orachk -fileattr start -includedir "/root/home,/etc"
orachk -fileattr check -includedir "/root/home,/etc"

-fileattr [start|check] -excludediscovery

Excludes the discovered directories.

orachk -fileattr start -includedir "/root/home,/etc" -excludediscovery

-fileattr check -baseline baseline snapshot path

For example:

orachk -fileattr check -baseline "/tmp/Snapshot"

-fileattr -check -fileattronly

Performs file attributes check and exits Oracle ORAchk.

orachk -fileattr check -fileattronly