Como Usar Oracheck
Como Usar Oracheck
Como Usar Oracheck
Oracle Stack (ORACHK 2.2.4 and above) | Levi Pereira | Oracle Blog
How to, Tips and Hints about Oracle Database for high
availability environment.
Posted: 18/03/2014 | Author: Levi Pereira | Filed under: 10g R1, 10g R2, 11g R1, 11g R2, 12c R1, ASM -
Automatic Storage Management, Clusterware / Grid Infrastructure, Database, My Oracle Support
(Metalink), Oracle |1 Comment
Oracle Database 12c (12.0.1.*) and 11g (11.2.0.4) comes with new feature called
RACcheck.
Although the RACcheck already exists before these releases. (In 2011 I posted about
benefits of RACcheck)
Brief of RACcheck.
.....
RACcheck - The Oracle RAC Configuration Audit Tool
RACcheck is designed to audit vital configuration settings for the Oracle Database,
single instance databases, as well as Oracle Real Application Clusters (Oracle RAC)
databases. It also includes checks for Oracle Clusterware, Oracle Automatic Storage
Management (Oracle ASM) and Oracle Grid Infrastructure.
ORAchk replaces the popular RACcheck to support a wider range of products. ORAchk
version 2.2.4 is now available for download and includes the following key features:
https://levipereira.wordpress.com/2014/03/18/orachk-health-checks-for-the-oracle-stack-orachk-2-2-4-and-above/ 1/11
12/11/2018 ORAchk Health Checks For The Oracle Stack (ORACHK 2.2.4 and above) | Levi Pereira | Oracle Blog
Linux x86-64* (Enterprise Linux, RedHat and SuSE 9, SuSE 10 & SuSE 11)
Oracle Solaris SPARC (Solaris 10 and 11)
Oracle Solaris x86-64 (Solaris 10 and 11)
AIX **
HPUX**
* 32-bit platforms not supported, no planned support for Linux Itanium
**Requires BASH Shell 3.2 or higher to be installed
10gR2
11gR1
11gR2
12cR1
When to Run ORAchk
It is recommended to run the tool as the database software owner (e.g. oracle). The
user may run the tool as the Grid Infrastructure software owner (e.g. grid) and it
will collect the same data but database credentials must manually be supplied to
perform the database related audit checks. Typically when run as oracle the customer
will have OS authentication set up for the oracle database software owner and the
database login credentials will not be needed.
Download ORAchk
Stage Location:
It is recommended that the kit be staged and operated from a local filesystem on a
single database server in order to provide the best performance possible.
$ mkdir -p /u01/app/oracle/orachk
https://levipereira.wordpress.com/2014/03/18/orachk-health-checks-for-the-oracle-stack-orachk-2-2-4-and-above/ 2/11
12/11/2018 ORAchk Health Checks For The Oracle Stack (ORACHK 2.2.4 and above) | Levi Pereira | Oracle Blog
inflating: .cgrep/scnhealthcheck.sql
inflating: .cgrep/pxhcdr.sql
inflating: .cgrep/lcgrep5
inflating: .cgrep/scgrep
inflating: .cgrep/raw_data_browser.pl
inflating: .cgrep/profiles.dat
inflating: .cgrep/rack_comparison.py
inflating: .cgrep/versions.dat
inflating: .cgrep/create_version.pl
inflating: .cgrep/lcgreps11
inflating: .cgrep/utluppkg.sql
inflating: .cgrep/utlusts.sql
inflating: .cgrep/reset_crshome.pl
inflating: .cgrep/asrexacheck
inflating: .cgrep/lcgrep6
inflating: .cgrep/utlu112i.sql
inflating: UserGuide.txt
CRS stack is running and CRS_HOME is not set. Do you want to set CRS_HOME to
/u01/app/11.2.0/grid?[y/n][y]
Node node11g02 is configured for ssh user equivalency for oracle user
. .
List of running databases registered in OCR
1. dborcl
2. None of above
Select databases from list for checking best practices. For multiple databases,
select 1 for All or comma separated number like 1,2 etc [1-2][1].1
. .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
------------------------------------------------------------------------------------
-------------------
Oracle Stack Status
------------------------------------------------------------------------------------
-------------------
Host Name CRS Installed ASM HOME RDBMS Installed CRS UP ASM UP RDBMS UP DB Instance
Name
https://levipereira.wordpress.com/2014/03/18/orachk-health-checks-for-the-oracle-stack-orachk-2-2-4-and-above/ 4/11
12/11/2018 ORAchk Health Checks For The Oracle Stack (ORACHK 2.2.4 and above) | Levi Pereira | Oracle Blog
------------------------------------------------------------------------------------
-------------------
node11g01 Yes Yes Yes Yes Yes Yes dborcl_1
node11g02 Yes Yes Yes Yes Yes Yes dborcl_2
------------------------------------------------------------------------------------
-------------------
Copying plug-ins
. . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . .
17 of the included audit checks require root privileged data collection . If sudo is
not configured or the root password is not available, audit checks which require
root privileged data collection can be skipped.
1. Enter 1 if you will enter root password for each host when prompted
2. Enter 2 if you have sudo configured for oracle user to execute root_orachk.sh
script
4. Enter 4 to exit and work with the SA to configure sudo or to arrange for root
access and run the tool later.
Please indicate your selection from one of the above options for root access[1-4]
[1]:- 2
UPLOAD(if required) -
/u01/app/oracle/orachk/orachk_node11g01_dborcl_031814_170552.zip
https://levipereira.wordpress.com/2014/03/18/orachk-health-checks-for-the-oracle-stack-orachk-2-2-4-and-above/ 5/11
12/11/2018 ORAchk Health Checks For The Oracle Stack (ORACHK 2.2.4 and above) | Levi Pereira | Oracle Blog
-clusternodes
Pass comma separated node names to run orachk only on subset of nodes.
-dbnames
Pass comma separated database names to run orachk only on subset of databases
-localonly
Run orachk only on local node.
-debug
Run orachk in debug mode. Debug log will be generated.
eg:- ./orachk -debug
-nopass
Skip PASS'ed check to print in orachk report and upload to database.
-noscore
Do not print healthscore in HTML report.
-diff [-outfile ]
Diff two orachk reports. Pass directory name or zip file or html report file as &
-exadiff
Compare two different Exalogic rack and see if both are from the same release.Pass
directory name or zip file as & (applicable for Exalogic only)
-c Used only under the guidance of Oracle support or development to override default
components
https://levipereira.wordpress.com/2014/03/18/orachk-health-checks-for-the-oracle-stack-orachk-2-2-4-and-above/ 6/11
12/11/2018 ORAchk Health Checks For The Oracle Stack (ORACHK 2.2.4 and above) | Levi Pereira | Oracle Blog
-
initsetup : Setup auto restart. Auto restart functionality automatically brings up
orachk daemon when node starts
initrmsetup : Remove auto restart functionality
initcheck : Check if auto restart functionality is setup or not
initpresetup : Sets root user equivalency for COMPUTE, STORAGE and IBSWITCHES.(root
equivalency for COMPUTE nodes is mandatory for setting up auto restart
functionality)
-d
start : Start the orachk daemon
start_debug : Start the orachk daemon in debug mode
stop : Stop the orachk daemon
status : Check if the orachk daemon is running
info : Print information about running orachk daemon
stop_client : Stop the orachk daemon client
nextautorun : print the next auto run time
-daemon
run orachk only if daemon is running
-nodaemon
Dont use daemon to run orachk
-set
configure orachk daemon parameter like "param1=value1;param2=value2... "
https://levipereira.wordpress.com/2014/03/18/orachk-health-checks-for-the-oracle-stack-orachk-2-2-4-and-above/ 7/11
12/11/2018 ORAchk Health Checks For The Oracle Stack (ORACHK 2.2.4 and above) | Levi Pereira | Oracle Blog
COLLECTION_RETENTION : Purge orachk collection directories and zip files older than
specified days.
-unset
unset the parameter
example: orachk -unset "AUTORUN_SCHEDULE"
-get
Print the value of parameter
-excludeprofile
Pass specific profile.
List of supported profiles is same as for -profile.
-merge
Pass comma separated collection names(directory or zip files) to merge collections
and prepare single report.
eg:- ./orachk -merge
orachk_hostname1_db1_120213_163405.zip,orachk_hostname2_db2_120213_164826.zip
-vmguest
Pass comma separated filenames containing exalogic guest VM list(applicable for
Exalogic only)
-hybrid [-phy]
phy :Pass comma separated physical compute nodes(applicable for Exalogic only)
eg:- ./orachk -hybrid -phy phy_node1,phy_node2
https://levipereira.wordpress.com/2014/03/18/orachk-health-checks-for-the-oracle-stack-orachk-2-2-4-and-above/ 8/11
12/11/2018 ORAchk Health Checks For The Oracle Stack (ORACHK 2.2.4 and above) | Levi Pereira | Oracle Blog
-cells
Pass comma separated storage server names to run orachk only on selected storage
servers.
-ibswitches
Pass comma separated infiniband switch names to run orachk only on selected
infiniband switches.
-zfsnodes
Pass comma separated ZFS storage appliance names to run orachk only on selected
storage appliances.
When running ORAchk in daemon mode, the most recent and next most recent (if any)
collection reports are automatically compared. If the mail address is configured a
summary will be emailed along with attachments for the reports and the comparison
report.
Enjoy!!!
ADVERTISEMENT
Advertisements
Open Source DB
Comparison
Learn the differences between
MariaDB TX, EnterpriseDB and other
RDBMS solutions
MariaDB OPEN
REPORT THIS AD
REPORT THIS AD
https://levipereira.wordpress.com/2014/03/18/orachk-health-checks-for-the-oracle-stack-orachk-2-2-4-and-above/ 10/11
12/11/2018 ORAchk Health Checks For The Oracle Stack (ORACHK 2.2.4 and above) | Levi Pereira | Oracle Blog
i
Rate This
Reply
https://levipereira.wordpress.com/2014/03/18/orachk-health-checks-for-the-oracle-stack-orachk-2-2-4-and-above/ 11/11