Showing posts with label Oracle 11g. Show all posts
Showing posts with label Oracle 11g. Show all posts

August 17, 2020

cluster name of Oracle RAC cluster

How to find out cluster name of Oracle RAC cluster ?


The cluster name is case-insensitive, must be unique across environment, must be no more than 15 characters in length, must be alphanumeric and may contain hyphens (-). Underscore characters (_) are not allowed. But installation script/OUI will not fail, even if you provide more than 15 characters in cluster name.

1) cemutlo utility can be used to find out Oracle RAC Cluster name.

$GRID_HOME/bin/cemutlo -n

e.g.:
/u01/app/11.2/grid/bin/cemutlo -n

Below command will give number of characters in Oracle RAC Cluster name.
/u01/app/11.2/grid/bin/cemutlo -n|wc -c

Usage: ./cemutlo.bin [-n] [-w]
where:
-n prints the cluster name
-w prints the clusterware version in the following format: major_version:minor_version:vendor_info

2) olsnodes utility can be used to find out Oracle RAC Cluster name.
olsnodes -c



Related Oracle RAC Articles: ocrdump commands in RAC   oclumon commands

September 5, 2019

SCAN in Oracle RAC

Single Client Access Name (SCAN) in Oracle RAC

Oracle RAC 11g release 2 introduces the Single Client Access Name (SCAN), which provides a single name for clients to access Oracle Databases running in a cluster and simplify the database connection strings that an Oracle Client uses to connect.

Without SCAN, till Oracle Clusterware 11g release 1, TNSNAMES has 1 entry per node.

RACDB =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = node1-vip)(PORT = 1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = node2-vip)(PORT = 1521))
     . . .
    (ADDRESS = (PROTOCOL = TCP)(HOST = nodeN-vip)(PORT = 1521))
    (CONNECT_DATA = 
     . . . ))

With every cluster change, like node addition or removal, all client TNSNAMES need to be changed.
With SCAN, from Oracle Clusterware 11g release2, only 1 entry per cluster is used, regardless of the number of nodes.

RACDB =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = SCANname)(PORT = 1521))
    (CONNECT_DATA = 
     . . . ))

Single Client Access Name (SCAN) - eliminates the need to change TNSNAMES entry when nodes are added to or removed from the Cluster. RAC instances register to SCAN listeners as remote listeners. Oracle recommends assigning 3 addresses to SCAN, which will create 3 SCAN listeners, though the cluster has got dozens of nodes. SCAN is a domain name registered to at least one and up to three IP addresses, either in DNS (Domain Name Service) or GNS (Grid Naming Service). The SCAN must resolve to at least one address on the public network. For high availability and scalability, Oracle recommends configuring the SCAN to resolve to three addresses.

SCAN components in a cluster:
  • SCAN Name
  • SCAN IPs (3)
  • SCAN Listeners (3)

Public network addresses are used to provide services to clients. If clients are connecting to the Single Client Access Name (SCAN) addresses, then we may need to change public and virtual IP addresses as we add or remove nodes from the cluster, but you do not need to update clients with new cluster addresses. SCANs function like a cluster alias. SCANs are resolved on any node in the cluster, so unlike a VIP address for a node, clients connecting to the SCAN no longer require updated VIP addresses as nodes are added to or removed from the cluster. Because the SCAN addresses resolve to the cluster, rather than to a node address in the cluster, nodes can be added to or removed from the cluster without affecting the SCAN address configuration.

Oracle Database 11g release 2 (11.2) instances only register with SCAN listeners as remote listeners. Databases register with SCAN listeners as remote listeners, and also continue to register with all node listeners. It's highly recommended that the clients are Oracle 11g R2 or later version clients, to allow them to fully take advantage of the failover with the SCAN settings.

Because of the Oracle Clusterware installation requirement that we provide a SCAN name during installation, if we resolved at least one IP address using the server /etc/hosts file to bypass the installation requirement, but we do not have the infrastructure required for SCAN, after the installation, we can ignore the SCAN and connect to the databases in the cluster using VIPs. Oracle does not support removing the SCAN address. Oracle recommends that we should not configure SCAN IP addresses in the hosts file. But if we use the hosts file to resolve SCAN name, we can have only one SCAN IP address.

Each cluster will have 3 SCAN-Listeners, combined with a SCAN-VIP defined as cluster resources. The root.sh script automatically configures the Single Client Access Name (SCAN) VIPs and SCAN listeners. When we run root.sh on the first node, all 3 scan IPs are plugged on to the first node’s public interface. The SCAN VIP/LISTENER combination will failover to another node in the cluster, if the current node fails. SCAN VIP addresses must be on the same subnet as virtual IP addresses and public IP addresses.

Cluster Resources
--------------------------------------------
ora.LISTENER_SCAN1.lsnr 1  ONLINE  ONLINE       node1
ora.LISTENER_SCAN2.lsnr 1  ONLINE  ONLINE       node2
ora.LISTENER_SCAN3.lsnr 1  ONLINE  ONLINE       node3

Domain Name Service (DNS)
The SCAN is a fully qualified name (hostname+domain) that is configured to resolve to all the addresses allocated for the SCAN. The addresses resolve using Round Robin DNS either on the DNS server, or within the cluster in a GNS configuration. SCAN listeners can run on any node in the cluster. SCANs provide location independence for the databases, so that client configuration does not have to depend on which nodes run a particular database.

To use the DNS method for defining SCAN, the network administrator must create a single name that resolves to 3 separate IP addresses using round-robin algorithms. Regardless of how many systems are part of cluster, Oracle recommends that 3 IP addresses are configured to allow for failover and load-balancing. SCAN Name needs to be registered in DNS and resolved using round-robin algorithm. To test the round-robin algorithm, perform nslookup on the SCAN Name. The DNS server should return those 3 set of IP Address in different order each time.

It is important that the IP addresses are on the same subnet as the public network for the server. The other two requirements are that the name (not including the domain suffix) are 15 characters or less in length and that the name can be resolved without using the domain suffix. Also, the IP addresses should not be specifically assigned to any of the nodes in the cluster.

Grid Naming Service (GNS)
Grid Naming Service (GNS) is a new feature introduced in Oracle RAC 11g R2.  

As part of the Grid Infrastructure installation process, optionally we can also provide Grid Naming Service (GNS) information, which includes the GNS Sub Domain Name and the GNS VIP Address.

Using GNS assumes that a DHCP server is running on the public network with enough available addresses to assign the required IP addresses and the SCAN VIP. Only one static IP address is required to be configured and it should be in the DNS domain.

Oracle Clusterware 11g release 2 (11.2) supports the use of Dynamic Host Configuration Protocol (DHCP) for the VIP addresses and the SCAN address, but not the public address. DHCP provides dynamic configuration of the host's IP address, but it does not provide an optimal method of producing names that are useful to external clients. When using GNS and DHCP, Oracle Clusterware configures the VIP addresses for the SCAN name that is provided during cluster configuration. The node VIP and the three SCAN VIPs are obtained from the DHCP server when using GNS. If a new server joins the cluster, then Oracle Clusterware dynamically obtains the required VIP address from the DHCP server, updates the cluster resource, and makes the server accessible through GNS.

Summary of points about SCAN:
  • SCAN Name will represent the cluster in the network. 
  • SCAN used by clients to connect to any database in the cluster.
  • SCAN is a GSD resource, which is managed by CRS.
  • SCAN provides a single domain name (via DNS), allowing end-users to address a RAC cluster as-if it were a single IP address.
  • Removes the requirement to change the client connection if cluster changes.
  • Load balances across the instances providing a service. SCAN listener selects least loaded node.
  • SCAN requires a DNS entry or GNS to be used.
  • SCAN is an alternative to the transparent application failover (TAF) for automatic load balancing.
  • Provides failover between instances.
  • SCAN VIP/LISTENER will failover to another node in the cluster.
  • Clients do not require VIP information.
  • Must resolve to at least one address on the public network.
  • SCAN provides location independence for the databases.
  • Allow clients to use EZConnect or JDBC connections.
  • SCAN Listener would forward the request to local listener that’s running on VIPs.
  • Each cluster will have 3 SCAN listeners, each having a SCAN VIP defined as cluster resources.
  • Instance registers with local listener on its node. Database “REMOTE_LISTENER” registers instances with all SCAN listeners.
  • SCAN listeners on each node in the cluster, which are not replacements for a regular listener.
  • PMON process of each instance registers the database services with the default listener on the local node and with each SCAN listener, which is specified by the REMOTE_LISTENER database parameter.
  • Client queries DNS to resolve to SCAN.

SCAN (Single Client Access Name) commands in Oracle RAC

cluvfy comp scan -> Use the cluvfy comp scan component verification command to check the Single Client Access Name (SCAN) configuration.

crsctl status resource -w "TYPE = ora.scan_listner.type"

SCAN:
srvctl add scan -n scan_name [-k network_number] [-S subnet/netmask[/if1[|if2|...]]]
#srvctl add scan -n scan.mycluster.example.com   -- Adds new SCAN information for a cluster

srvctl remove scan [-f]   -- Removes SCAN information
srvctl remove scan
srvctl remove scan -f

srvctl start scan [-i ordinal_number] [-n node_name]
srvctl start scan
srvctl start scan -i 1 -n node1

srvctl stop scan [-i ordinal_number] [-f]
srvctl stop scan
srvctl stop scan -i 1

srvctl status scan [-i ordinal_number]
srvctl status scan
srvctl status scan -i 1

srvctl enable scan [-i ordinal_number]
srvctl enable scan
srvctl enable scan -i 1

srvctl disable scan [-i ordinal_number]
srvctl disable scan
srvctl disable scan -i 3

srvctl config scan [-i ordinal_number]   -- Shows the current SCAN configuration
srvctl config scan
srvctl config scan -i 2

srvctl modify scan -n scan_name
srvctl modify scan -n scan1
-- Modifies SCAN information (used when changing SCAN to DNS after initially using /etc/hosts)

srvctl relocate scan -i ordinal_number [-n node_name]
srvctl relocate scan -i 2 -n node2

ordinal_number=1,2,3 --> this refers to the SCAN VIPs

Scan_listener:
srvctl add scan_listener [-l lsnr_name_prefix] [-s] [-p "[TCP:]port_list[/IPC:key][/NMP:pipe_name][/TCPS:s_port] [/SDP:port]"]
#srvctl add scan_listener -l myscanlistener   -- Adds a new SCAN listener for a cluster on the default port of 1521
#srvctl add scan_listener -p 1565         -- Adds a new SCAN listener on a different port

srvctl remove scan_listener [-f]
srvctl remove scan_listener        -- Removes the SCAN listener
srvctl remove scan_listener -f

srvctl start scan_listener [-n node_name] [-i ordinal_number]
srvctl start scan_listener

srvctl stop scan_listener [-i ordinal_number] [-f]
srvctl stop scan_listener
srvctl stop scan_listener -i 3

srvctl status scan_listener [-i ordinal_number]
srvctl status scan_listener
srvctl status scan_listener -i 1

srvctl enable scan_listener [-i ordinal_number]
srvctl enable scan_listener
srvctl enable scan_listener -i 2

srvctl disable scan_listener [-i ordinal_number]
srvctl disable scan_listener
srvctl disable scan_listener -i 1

srvctl config scan_listener [-i ordinal_number]  -- Shows the existence and port numbers for the SCAN listeners
srvctl config scan_listener
srvctl config scan_listener -i 3

srvctl modify scan_listener {-p [TCP:]port[/IPC:key][/NMP:pipe_name] [/TCPS:s_port][/SDP:port] | -u }
srvctl modify scan_listener –u -- Modifies the SCAN listener information to match the new SCAN VIP information
srvctl modify scan_listener -p 1521

srvctl relocate scan_listener -i ordinal_number [-n node_name]
srvctl relocate scan_listener -i 1

ordinal_number=1,2,3

GNS (Grid Naming Service):
srvctl add gns -i ip_address -d domain
srvctl add gns -i 192.124.16.96 -d cluster.mycompany.com

srvctl remove gns [-f]
srvctl remove gns

srvctl start gns [-l log_level] [-n node_name]

srvctl stop gns [-n node_name [-v] [-f]
srvctl stop gns

srvctl status gns [-n node_name]
srvctl status gns

srvctl enable gns [-n node_name]
srvctl enable gns

srvctl disable gns [-n node_name]
srvctl disable gns -n devnode2

srvctl config gns [-a] [-d] [-k] [-m] [-n node_name] [-p] [-s] [-V] [-q name] [-l] [-v]
srvctl config gns -n lnx03

srvctl modify gns [-i ip_address] [-d domain]
srvctl modify gns -i 192.100.010.007

srvctl relocate gns [-n node_name]
srvctl relocate gns -n node2

Related Oracle Articles:  Virtual IP (VIP) in RAC    srvctl commands RAC    cluvfy commands RAC    crsctl commands RAC


January 6, 2019

cluvfy commands in Oracle RAC

CLUVFY: Cluster Verification Utility commands in Oracle 11g / 12c RAC

cluvfy [-help] or cluvfy -h

cluvfy stage {-pre|-post} stage_name stage_specific_options [-verbose]


Valid stage options and stage names are:
        -post hwos    :  post-check for hardware and operating system
        -pre  cfs       :  pre-check for CFS setup
        -post cfs       :  post-check for CFS setup
        -pre  crsinst  :  pre-check for CRS installation
        -post crsinst  :  post-check for CRS installation
        -pre  hacfg   :  pre-check for HA configuration
        -post hacfg   :  post-check for HA configuration
        -pre  dbinst   :  pre-check for database installation
        -pre  acfscfg  :  pre-check for ACFS Configuration.
        -post acfscfg  :  post-check for ACFS Configuration.
        -pre  dbcfg   :  pre-check for database configuration
        -pre  nodeadd :  pre-check for node addition.
        -post nodeadd :  post-check for node addition.
        -post nodedel  :  post-check for node deletion.

cluvfy stage -post hwos -n node_list [-verbose]
./runcluvfy.sh stage -post hwos -n node1,node2 -verbose
-- Installation checks after hwos - Hardware and Operating system installation

cluvfy stage -pre cfs -n node_list [-verbose]
cluvfy stage -post cfs -n node_list [-verbose]
-- Installation checks before/after Cluster File System

cluvfy stage -pre crsinst -n node_list [-c ocr_location] [-r {10gR1|10gR2|11gR1|11gR2}] [-q voting_disk] [-osdba osdba_group] [-orainv orainventory_group] [-verbose]
cluvfy stage -pre crsinst -n node1,node2,node3
./runcluvfy.sh stage -pre crsinst -n all -verbose
cluvfy stage -post crsinst -n node_list [-verbose]
-- Installation checks before/after CRS installation

cluvfy stage -pre dbinst -n node_list [-r {10gR1|10gR2|11gR1|11gR2}] [-osdba osdba_group] [-orainv orainventory_group] [-verbose]
cluvfy stage -pre dbcfg -n node_list -d oracle_home [-verbose]
-- Installation checks before/after DB installation/configuration

====================================

cluvfy comp component_name component_specific_options [-verbose]

Valid components are:
        nodereach : checks reachability between nodes
        nodecon    : checks node connectivity
        cfs         : checks CFS integrity
        ssa        : checks shared storage accessibility
        space     : checks space availability
        sys        : checks minimum system requirements
        clu         : checks cluster integrity
        clumgr   : checks cluster manager integrity
        ocr        : checks OCR integrity
        olr        : checks OLR integrity
        ha        : checks HA integrity
        crs        : checks CRS integrity
        nodeapp   : checks node applications existence
        admprv    : checks administrative privileges
        peer        : compares properties with peers
        software  : checks software distribution
        asm        : checks ASM integrity
        acfs        : checks ACFS integrity
        gpnp       : checks GPnP integrity
        gns         : checks GNS integrity
        scan        : checks SCAN configuration
        ohasd      : checks OHASD integrity
        clocksync  : checks Clock Synchronization
        vdisk        : check Voting Disk Udev settings

cluvfy comp nodereach -n node_list [-srcnode node] [-verbose]
cluvfy comp nodecon -n node_list [-i interface_list] [-verbose]
cluvfy comp nodecon -n node1,node2,node3 –i eth0 -verbose
cluvfy comp nodeapp [-n node_list] [-verbose]

cluvfy comp peer [-refnode node] -n node_list [-r {10gR1|10gR2|11gR1|11gR2}] [-orainv orainventory_group] [-osdba osdba_group] [-verbose]
cluvfy comp peer -n node1,node2 -r 10gR2 -verbose

cluvfy comp crs [-n node_list] [-verbose]
cluvfy comp cfs [-n node_list] -f file_system [-verbose]
cluvfy comp cfs -f /oradbshare –n all -verbose

cluvfy comp ocr [-n node_list] [-verbose]
cluvfy comp clu -n node_list -verbose
cluvfy comp clumgr [-n node_list] [-verbose]

cluvfy comp sys [-n node_list] -p {crs|database} [-r {10gR1|10gR2|11gR1|11gR2}] [-osdba osdba_group] [-orainv orainventory_group] [-verbose]
cluvfy comp sys -n node1,node2 -p crs -verbose

cluvfy comp admprv [-n node_list] [-verbose] |-o user_equiv [-sshonly] |-o crs_inst [-orainv orainventory_group] |-o db_inst [-orainv orainventory_group] [-osdba osdba_group] |-o db_config -d oracle_home

cluvfy comp ssa [-n node_list] [-s storageID_list] [-verbose]
cluvfy comp space [-n node_list] -l storage_location -z disk_space{B|K|M|G} [-verbose]
cluvfy comp space -n all -l /home/dbadmin/products –z 2G -verbose

cluvfy comp olr

Related Oracle Articles:   crsctl commands RAC   srvctl commands RAC   crs_stat commands RAC

ocrconfig commands in Oracle RAC

Oracle RAC ocrconfig commands

OCRCONFIG: -- OCR (Oracle Cluster Registry) CONFIGuration tool / Oracle Local Registry (OLR) config tool

#ocrconfig -help or ocrconfig -h

ocrconfig [option]
option:
[-local] -export filename - Export OCR/OLR contents to a file
[-local] -import filename        - Import OCR/OLR contents from a file
[-local] -upgrade [user [group]] - Upgrade OCR from previous version
-downgrade [-version version string] - Downgrade OCR to the specified version
[-local] -backuploc [dirname | +diskgroupname ]        - Configure OCR/OLR backup location
[-local] -showbackup [auto|manual]  - Show OCR/OLR backup information
[-local] -manualbackup              - Perform OCR/OLR backup
[-local] -restore filename        - Restore OCR/OLR from physical backup
-replace current filename -replacement new filename - Replace an OCR device or file current filename with new filename
-add filename                      - Add a new OCR device/file
-delete filename                  - Remove a OCR device/file
-overwrite                          - Overwrite OCR configuration on disk
-repair -add filename | -delete filename | -replace current filename -replacement new filename - Repair OCR configuration on the local node
-help                                - Print out this help information

In Oracle 12c RAC,
[-local] -showbackuploc              - Show OCR/OLR backup location
-copy source_filename destination_filename  - Copy OCR physical backup from source to destination

# ocrconfig -showbackup [auto|manual]   
-- default location is $ORA_CRS_HOME/cdata/cluster_name
# ocrconfig -showbackup
# ocrconfig -backuploc dir_name    -- change OCR autobackup directory location
# ocrconfig -backuploc /u02/backups


# ocrconfig -manualbackup      -- Oracle RAC 11g command, to perform OCR backup manually
# ocrconfig -restore backup_file.ocr    -- recovering from autobackup file
# ocrconfig -restore /u02/backups/backup00.ocr

# ocrconfig -restore /u01/app/11.2.0/gi/cdata/cluster-name/backup02.ocr

# ocrconfig -export file_name.dmp [-s online]     -- exports OCR content to a file
# ocrconfig -export /tmp/ocr_exp
# ocrconfig -import file_name.dmp      -- recover OCR logically, must be done on all nodes
# ocrconfig -import /tmp/ocr_exp

# ocrconfig -replace ocr [file_name]   -- adding/replacing an OCR file
# ocrconfig -replace ocrmirror [file_name]
# ocrconfig -replace ocrmirror /data/ocr/ocrfile2

# ocrconfig -repair ocr file_name
# ocrconfig -repair ocrmirror file_name
# ocrconfig -repair -replace current_OCR_location -replacement target_OCR_location

# ocrconfig -upgrade [user [group]]         -- upgrades OCR
# ocrconfig -downgrade [-version version_string]   -- downgrades OCR

# ocrconfig -overwrite

# ocrconfig –local –import file_name
# ocrconfig –local –manualbackup
# ocrconfig -local -backuploc new_olr_backup_path
# ocrconfig -local -restore file_name
# ocrconfig -local -restore $GRID_HOME/cdata/host06/backup_20171106_02946.olr   --restoring OLR file

# ocrconfig -add +new_disk_group
# ocrconfig -add file_location
# ocrconfig -add /dev/sdd1
# ocrconfig -delete +unused_disk_group
# ocrconfig -delete old_storage_location
# ocrconfig -delete /dev/raw/raw2

Log file will be $ORACLE_HOME/log/node_name/client/ocrconfig_pid.log

Debugging can be controlled through $ORA_CRS_HOME/srvm/admin/ocrlog.ini

How to take backup of OCR / OLR file?
# ocrconfig -manualbackup
# ocrconfig -export file_name.dmp

How to recover OCR / OLR file?
# ocrconfig -restore backup_file.ocr
# ocrconfig -import file_name.dmp

Related Oracle RAC Articles:     ocrdump commands RAC     ocrcheck commands RAC


ocrdump commands in Oracle RAC

Oracle RAC ocrdump commands

OCRDUMP: -- dumps OCR (Oracle Cluster Registry) / OLR (Oracle Local Registry) contents to a file

# ocrdump -help or ocrdump -h

# ocrdump [-local] [file_name|-stdout] [-backupfile backup_filename] [-keyname key_name] [-xml] [-noheader]

# ocrdump               -- default filename is OCRDUMPFILE
# ocrdump MYFILE
# ocrdump ${HOST}_OCRDUMP
# ocrdump -backupfile my_file
# ocrdump -stdout -keyname SYSTEM
# ocrdump -stdout -xml
$ ocrdump -local olr.lst                 --> Normal Text Format
$ ocrdump -local -xml olr_xml.lst  --> XML format
$ ocrdump -local -backupfile olr_backup_file_name
$ ocrdump -backupfile $CRS_HOME/backup.ocr -stdout -xml

Log file will be $ORACLE_HOME/log/node_name/client/ocrdump_pid.log

Debugging can be controlled through $ORA_CRS_HOME/srvm/admin/ocrlog.ini

How to take backup of OCR file?
# ocrdump -backupfile my_file

Related Oracle Articles:     ocrconfig commands RAC      ocrcheck commands RAC

ocrcheck commands in Oracle RAC

Oracle RAC 11g / 12c ocrcheck cheatsheet

OCRCHECK: -- Displays health of OCR (Oracle Cluster Registry) / Oracle Local Registry (OLR).

$ ocrcheck -help or ocrcheck -h
Usage in Oracle 11g: ocrcheck [-config] [-local]
Usage in Oracle 12c: ocrcheck [-config | -backupfile backupfilename] [-details] [-local]
  -config    Displays the configured locations of the Oracle Cluster Registry (OCR). This can be used with the -local option to display the configured location of the Oracle Local Registry (OLR).
  -details Displays detailed configuration information.
  -local The operation will be performed on the Oracle Local Registry.
  -backupfile backupfilename    The operation will be performed on the backup file.

$ ocrcheck
Version : 2
Total space (kbytes) : 262144
Used space (kbytes) : 16256
Available space (kbytes) : 245888
ID : 1918913332
Device/File Name : /dev/raw/raw1 Device/File integrity check succeeded
Device/File Name : /dev/raw/raw2 Device/File integrity check succeeded
Cluster registry integrity check succeeded

# ocrcheck -local
Status of Oracle Cluster Registry is as follows :
Version  :  3
Total space (kbytes) : 262132
Used space (kbytes) : 9200
Available space (kbytes) : 252932
ID :  604793089
Device/File Name : /u02/crs/cdata/localhost/lnx6.olr  Device/File integrity check succeeded
Local OCR integrity check succeeded

$ ocrcheck -local -config

Log file will be $ORACLE_HOME/log/node_name/client/ocrcheck_pid.log

Debugging can be controlled through $ORA_CRS_HOME/srvm/admin/ocrlog.ini

How do I identify the OCR (or OLR) file location?
# ocrcheck

Related Oracle RAC Articles:     ocrconfig commands RAC      ocrdump commands RAC

January 3, 2019

onsctl commands in Oracle RAC

ONSCTL commands in 12c / 11g Oracle RAC

To manage ONS (Oracle Notification Service)

ONS - A publish and subscribe service for communicating information about all FAN events.

In Oracle RAC 11g Release 1,
onsctl or onsctl help or onsctl -h


onsctl start        -- to start ONS

onsctl stop         -- to stop ONS

onsctl ping         -- to find out the status of ONS

onsctl debug       -- to display debug information for the ons daemon

onsctl reconfig    -- to reload the ons configuration

onsctl detailed    -- to print a verbose syntax description


from Oracle 11g release 2
onsctl command [options]

onsctl or onsctl help or onsctl -h

onsctl start           -- to start ONS

onsctl shutdown    -- to shutdown ONS

onsctl ping [max-retry]        -- to ping local ons

onsctl debug [attr=val ...]    -- to display ons server debug information


onsctl reload          -- to trigger ons to reread its configuration file

onsctl set [attr=val ...]      -- to set ons log parameters

onsctl query [attr=val]      -- to query ons log parameters

onsctl usage [command]   -- to print detailed usage description



Related Oracle Articles:    oifcfg commands RAC    crsctl commands RAC     srvctl commands RAC

October 2, 2018

RACcheck in Oracle RAC

RACcheck (RAC Configuration Audit Tool) commands in Oracle RAC 11g / 12c

$ ./raccheck
$ ./raccheck -v            -v - returns the version of the tool.

$ ./raccheck -a            -a - performs all checks, best practice and Database/Clusterware patch/OS recommendations.
$ ./raccheck -a -o v      -o - for invoking various optional functionality.
$ ./raccheck -a -o verbose
$ ./raccheck -a -c ASM       -c - for use when checking individual components, for only ASM component checks.
$ ./raccheck -a -c ASM -o verbose
$ ./raccheck -a -c ACFS      -c - for use when checking individual components, for only ACFS component checks.

$ ./raccheck -b      -b - best practice recommendations only.
$ ./raccheck -p      -p - database/clusterware patch recommendations only.
$ ./raccheck -f       -f - offline, performs analysis for all.
$ ./raccheck -m     -m - suppresses the Maximum Availability Architecture (MAA) Scorecard which is enabled by default in RACcheck.

$ ./raccheck -u -o pre      -u - performs pre-upgrade readiness checks for 11.2.0.3.
$ ./raccheck -u -o post    -u - performs post-upgrade readiness checks for 11.2.0.3.

$ ./raccheck -s    -s - run RACcheck silently, unattended execution when the Oracle user can SUDO to root without a password.
$ ./raccheck -S    -S - run RACcheck silently, unattended execution without the root password and root privileged collections/audits.

Related Oracle Articles:   SCAN IP/Name in RAC     Wait Events in RAC     crsctl commands RAC    init parameters in RAC