Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Classification of oracle clusterware command sets:

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

Classification of oracle clusterware command sets:

Node layer: olsnodes

Network layer: oifcfg

Cluster layer: crsctl ocrcheck ocrdump ocrconfig

Application layer: srvctl onsctl crs_stat

Compare:

Grid users:

[grid@dbrac1 ~] $which olsnodes

/ oracle/app/11.2.0/grid/bin/olsnodes

[grid@dbrac1 ~] $

[grid@dbrac1 ~] $which oifcfg

/ oracle/app/11.2.0/grid/bin/oifcfg

[grid@dbrac1 ~] $

[grid@dbrac1 ~] $which crsctl

/ oracle/app/11.2.0/grid/bin/crsctl

[grid@dbrac1 ~] $

[grid@dbrac1 ~] $which ocrcheck

/ oracle/app/11.2.0/grid/bin/ocrcheck

[grid@dbrac1 ~] $

[grid@dbrac1 ~] $which ocrconfig

/ oracle/app/11.2.0/grid/bin/ocrconfig

[grid@dbrac1 ~] $

[grid@dbrac1 ~] $which ocrdump

/ oracle/app/11.2.0/grid/bin/ocrdump

[grid@dbrac1 ~] $

[grid@dbrac1 ~] $which srvctl

/ oracle/app/11.2.0/grid/bin/srvctl

[grid@dbrac1 ~] $

[grid@dbrac1 ~] $which onsctl

/ oracle/app/11.2.0/grid/bin/onsctl

[grid@dbrac1 ~] $

[grid@dbrac1 ~] $which crs_stat

/ oracle/app/11.2.0/grid/bin/crs_stat

Oracle users:

[oracle@dbrac1 ~] $which olsnodes

/ usr/bin/which: no olsnodes in (/ oracle/app/oracle/product/11.2.0/dbhome_1/bin:/oracle/app/oracle/product/11.2.0/dbhome_1/OPatch:/sbin:/bin:/usr/sbin:/usr/bin)

[oracle@dbrac1 ~] $

[oracle@dbrac1 ~] $which oifcfg

/ usr/bin/which: no oifcfg in (/ oracle/app/oracle/product/11.2.0/dbhome_1/bin:/oracle/app/oracle/product/11.2.0/dbhome_1/OPatch:/sbin:/bin:/usr/sbin:/usr/bin)

[oracle@dbrac1 ~] $

[oracle@dbrac1 ~] $which crsctl

/ usr/bin/which: no crsctl in (/ oracle/app/oracle/product/11.2.0/dbhome_1/bin:/oracle/app/oracle/product/11.2.0/dbhome_1/OPatch:/sbin:/bin:/usr/sbin:/usr/bin)

[oracle@dbrac1 ~] $

[oracle@dbrac1 ~] $which ocrcheck

/ usr/bin/which: no ocrcheck in (/ oracle/app/oracle/product/11.2.0/dbhome_1/bin:/oracle/app/oracle/product/11.2.0/dbhome_1/OPatch:/sbin:/bin:/usr/sbin:/usr/bin)

[oracle@dbrac1 ~] $

[oracle@dbrac1 ~] $which ocrconfig

/ usr/bin/which: no ocrconfig in (/ oracle/app/oracle/product/11.2.0/dbhome_1/bin:/oracle/app/oracle/product/11.2.0/dbhome_1/OPatch:/sbin:/bin:/usr/sbin:/usr/bin)

[oracle@dbrac1 ~] $

[oracle@dbrac1 ~] $which ocrdump

/ usr/bin/which: no ocrdump in (/ oracle/app/oracle/product/11.2.0/dbhome_1/bin:/oracle/app/oracle/product/11.2.0/dbhome_1/OPatch:/sbin:/bin:/usr/sbin:/usr/bin)

[oracle@dbrac1 ~] $

[oracle@dbrac1 ~] $which srvctl

/ oracle/app/oracle/product/11.2.0/dbhome_1/bin/srvctl

[oracle@dbrac1 ~] $

[oracle@dbrac1 ~] $which onsctl

/ oracle/app/oracle/product/11.2.0/dbhome_1/bin/onsctl

[oracle@dbrac1 ~] $

[oracle@dbrac1 ~] $which crs_stat

/ usr/bin/which: no crs_stat in (/ oracle/app/oracle/product/11.2.0/dbhome_1/bin:/oracle/app/oracle/product/11.2.0/dbhome_1/OPatch:/sbin:/bin:/usr/sbin:/usr/bin)

[oracle@dbrac1 ~] $

1. Node layer:

[grid@dbrac1] $olsnodes-h

Usage: olsnodes [[- n] [- I] [- s] [- t] [|-l [- p]] | [- c]] [- g] [- v]

Where

-n print node number with the node name

-p print private interconnect address for the local node

-i print virtual IP address with the node name

Print information for the specified node

-l print information for the local node

-s print node status-active or inactive

-t print node type-pinned or unpinned

-g turn on logging

-v Run in debug mode; use at direction of Oracle Support only.

-c print clusterware name

Second, the network layer

[grid@dbrac1] $oifcfg-h

Name:

Oifcfg-Oracle Interface Configuration Tool.

Usage: oifcfg iflist [- p [- n]]

Oifcfg setif {- node |-global} {/:}...

Oifcfg getif [- node |-global] [- if [/] [- type]]

Oifcfg delif {{- node |-global} [[/]] [- force] |-force}

Oifcfg [- help]

-name of the host, as known to a communications network

-name by which the interface is configured in the system

-subnet address of the interface

-type of the interface {cluster_interconnect | public}

III. Cluster layer

1.crsctl

[grid@dbrac1 ~] $crsctl

Usage: crsctl []

Command: enable | disable | config | stop | relocate | replace | status | add | delete | modify | getperm | setperm | check | set | get | unset | debug | lsmodules | query | pin | unpin | discover | release | request

For complete usage, use:

Crsctl [- h |-- help]

For detailed help on each command and object and its options use:

Crsctl-h e.g. Crsctl relocate resource-h

[grid@dbrac1 ~] $

[grid@dbrac1] $crsctl enable-h

Usage:

Crsctl enable crs

Enable OHAS autostart on this server

[grid@dbrac1 ~] $

[grid@dbrac1] $crsctl disable-h

Usage:

Crsctl disable crs

Disable OHAS autostart on this server

[grid@dbrac1] $crsctl config-h

Usage:

Crsctl config crs

Display OHAS autostart config on this server

[grid@dbrac1] $crsctl start-h

Usage:

Crsctl start resource {[...] |-w] |-all} [- n] [- k] [- d] [- env "env1=val1,env2=val2,..."] [- f] [- I]

Start designated resources

Where

ResName [...] One or more blank-separated resource names

-w Resource filter

-all All resources

-n Server name

-k Resource cardinality ID

-d Resource degree ID

-env Attribute overrides for this command

-f Force option

-i Fail if request cannot be processed immediately

Crsctl start crs [- excl [- nocrs] |-nowait]

Start OHAS on this server

Where

-excl Start Oracle Clusterware in exclusive mode

-nocrs Start Oracle Clusterware in exclusive mode without starting CRS

-nowait Do not wait for OHAS to start

Crsctl start cluster [[- all] | [- n [...]

Start CRS stack

Where

Default Start local server

-all Start all servers

-n Start named servers

Server [...] One or more blank-separated server names

Crsctl start ip-A {|} / /

Start an IP on the given interface with specified net mask

Where

IP_name Name which resolves to an IP. If it is not a fully qualified domain name then standard name search will be used.

IP_address IP address

Net_mask Subnet mask for the IP to start

Interface_name Interface on which to start the IP

Crsctl start testdns [- address] [- port] [- domain] [- once] [- v]

Start a test DNS listener that listens on the given address at the given port and for specified domain

Where

IP_address IP address to be used by the listener (defaults to hostname)

Port The port on which the listener will listen. Default value is 53.

Domain The domain query for which to listen. By default, all domain queries are processed.

-once Flag indicating that DNS listener should exit after one DNS query packet is received

-v Verbose output

[grid@dbrac1 ~] $

[grid@dbrac1] $crsctl stop-h

Usage:

Crsctl stop resource {[...] |-w |-all} [- n] [- k] [- d] [- env "env1=val1,env2=val2,..."] [- f] [- I]

Stop designated resources

Where

ResName [...] One or more blank-separated resource names

-w Resource filter

-all All resources

-n Server name

-k Resource cardinality ID

-d Resource degree ID

-env Attribute overrides for this command

-f Force option

-i Fail if request cannot be processed immediately

Crsctl stop crs [- f]

Stop OHAS on this server

Where

-f Force option

Crsctl stop cluster [[- all] | [- n [...] [- f]

Stop CRS stack

Where

Default Stop local server

-all Stop all servers

-n Stop named servers

Server [...] One or more blank-separated server names

-f Force option

Crsctl stop ip-A {|} /

Stop the designated IP address

Where

IP_name Name which resolves to an IP. If it is not fully qualified domain name then standard name search will be performed

IP_address IP address

Interface_name Interface on which IP was started

Crsctl stop testdns [- address] [- port] [- v]

Stop the test DNS listener that listens on the given address and at the given port

Where

IP_address IP address on which testdns was started (defaults to hostname)

Port The port on which the listener is listening. Default value for the port is 53.

-v Verbose output

[grid@dbrac1 ~] $

[grid@dbrac1] $crsctl relocate-h

Usage:

Crsctl relocate resource {[- k] | {resName |-all}-s |-w} [- n] [- env "env1=val1,env2=val2,..."] [- f] [- I]

Relocate designated resources

Where

ResName Resource named resource

-all Relocate all resources

-s Source server

-w Resource filter

-n Destination server

-k Cardinality ID

-env Attribute overrides for this command

-f Force option

-i Fail if request cannot be processed immediately

Crsctl relocate server [...]-c [- f] [- I]

Relocate designated servers

Where

Server [...] One or more blank-separated server names

SpName Destination server pool name

-f Force option

-i Fail if request cannot be processed immediately

[grid@dbrac1 ~] $

[grid@dbrac1 ~] $

[grid@dbrac1] $crsctl replace-h

Usage:

Crsctl replace {discoverystring | votedisk [|...]}

Where

Ds_string comma-separated voting file paths without spaces and enclosed in quotes

Diskgroup diskgroup where the voting files will be located in ASM

Vdisk location of the voting files outside of ASM separated by space

[grid@dbrac1 ~] $

[grid@dbrac1] $crsctl status-h

Usage:

Crsctl status {resource | type | serverpool | server} [|-w] [- g]

Where

Name CRS entity name

-w CRS entity filter

-g Check if CRS entities are registered

Crsctl status ip-A {|}

Check if the IP is alive

Where

IP_name Name which resolves to an IP. If name is not fully qualified domain name then standard name search will be used.

IP_address IP address

Crsctl status testdns [- address] [- port] [- v]

Check status of DNS server for specified domain

Where

IP_address DNS server address (defaults to hostname)

Port The port on which the DNS server is listening. Default value for the port is 53.

-v Verbose output

[grid@dbrac1 ~] $

[grid@dbrac1] $crsctl add-h

Usage:

Crsctl add {resource | type | serverpool}

Where

Name Name of the CRS entity

Options Options to be passed to the add command

See individual CRS entity help for more details

Crsctl add crs administrator-u [- f]

Where

User_name User name to be added to the admin list or "*"

-f Override user name validity check

Crsctl add css votedisk [...]

Where

Vdisk [...] One or more blank-separated voting file paths

Options Options to be passed to the add command

[grid@dbrac1 ~] $

[grid@dbrac1] $crsctl delete-h

Usage:

Crsctl delete resource [...] [- f] [- I]

Where

ResName [...] One or more resource names to be deleted

-f Force option

-i Fail if request cannot be processed immediately

Crsctl delete type [...] [- I]

Where

TypeName [...] One or more blank-separated resource type names

-i Fail if request cannot be processed immediately

Crsctl delete serverpool [...] [- I]

Where

SpName [...] One or more server pool names to be deleted

-i Fail if request cannot be processed immediately

Crsctl delete crs administrator-u [- f]

Where

User_name User name to be deleted from the admin list or "*"

-f Override user name validity check

Crsctl delete css votedisk {[...] | [...] | +}

Where

VdiskGUID [...] One or more blank-separated voting file GUIDs

Vdisk [...] One or more blank-separated voting file paths

Diskgroup The name of a diskgroup containing voting files

Allowed only when clusterware is in exclusive mode

Crsctl delete node-n

Where

Nodename Node to be deleted

[grid@dbrac1] $crsctl modify-h

Usage:

Crsctl modify {resource | type | serverpool}

Where

Name Name of the CRS entity

Options Options to be passed to the modify command

See individual CRS entity help for more details

[grid@dbrac1 ~] $

[grid@dbrac1] $crsctl getperm-h

Usage:

Crsctl getperm resource [[- u] | [- g]]

Where

ResName Get permissions for named resource

-u Get permissions for user name

-g Get permissions for group name

Crsctl getperm type [[- u] | [- g]]

Where

TypeName Get permissions for named resource type

-u Get permissions for user name

-g Get permissions for group name

Crsctl getperm serverpool [[- u] | [- g]]

Where

SpName Get permissions for named server pool

-u Get permissions for user name

-g Get permissions for group name

[grid@dbrac1 ~] $

[grid@dbrac1] $crsctl setperm-h

Usage:

Crsctl setperm {resource | type | serverpool} {- u |-x |-o |-g}

Where

-u Update entity ACL

-x Delete entity ACL

-o Change entity owner

-g Change entity primary group

ACL (Access Control List) string:

{user: [:] |

Group: [:] |

Other [::]}

Where

User User ACL

Group Group ACL

Other Other ACL

ReadPerm Read permission ("r" grants, "-" forbids)

WritePerm Write permission ("w" grants, "-" forbids)

ExecPerm Execute permission ("x" grants, "-" forbids)

[grid@dbrac1 ~] $

[grid@dbrac1] $crsctl check-h

Usage:

Crsctl check crs

Check status of OHAS and CRS stack

Crsctl check cluster [[- all] | [- n [...]

Check status of CRS stack

Crsctl check ctss

Check status of Cluster Time Synchronization Services

Crsctl check resource {[...] |-w} [- n] [- k] [- d]

Check status of resources

Crsctl check css

Check status of Cluster Synchronization Services

Crsctl check evm

Check status of Event Manager

[grid@dbrac1 ~] $

[grid@dbrac1] $crsctl set-h

Usage:

Crsctl set crs activeversion [] [- force]

Sets the Oracle Clusterware operating version.

Crsctl set {log | trace} {mdns | gpnp | css | crf | crs | ctss | evm | gipc} "=,..."

Set the log/trace levels for specific modules within daemons

Crsctl set log res =

Set the log levels for agents

Crsctl set css

Sets the value of a Cluster Synchronization Services parameter

Crsctl set css {ipmiaddr | ipmiadmin}

Sets IPMI configuration data in the Oracle registry

Crsctl set css votedisk {asm | raw [...]}

Defines the set of voting disks to be used by CRS

[grid@dbrac1 ~] $

[grid@dbrac1] $crsctl get-h

Usage:

Crsctl get {log | trace} {mdns | gpnp | css | crf | crs | ctss | evm | gipc} ",..."

Get the log/trace levels for specific modules

Crsctl get log res

Get the log level for an agent

Crsctl get hostname

Displays the host name

Crsctl get nodename

Displays the node name

Crsctl get clientid dhcp-cluname-viptype [- vip] [- n]

Generate client ID's as used by RAC agents for configured cluster resources

Where

Cluster_name name of the cluster to be configured

Vip_type Type of VIP resource: HOSTVIP, SCANVIP, or APPVIP

VIPResName User defined application VIP name (required for APPVIP vip_type)

Nodename Node for which the client ID is required (required for HOSTVIP vip_type)

[grid@dbrac1 ~] $

[grid@dbrac1 ~] $

[grid@dbrac1] $crsctl unset-h

Usage:

Crsctl unset css

Unsets the value of a Cluster Synchronization Services parameter, restoring its default value

Diagwait

Disktimeout

Misscount

Reboottime

Priority

Logfilesize

Crsctl unset css ipmiconfig

Unsets the IPMI configuration and deletes the associated Oracle Registry entries.

[grid@dbrac1 ~] $

[grid@dbrac1] $crsctl debug-h

Usage:

Crsctl debug statedump {crs | css | evm}

Where

Crs Cluster Ready Services

Css Cluster Synchronization Services

Evm Event Manager

[grid@dbrac1 ~] $

[grid@dbrac1] $crsctl lsmodules-h

Usage:

Crsctl lsmodules {mdns | gpnp | css | crf | crs | ctss | evm | gipc}

Where

Mdns multicast Domain Name Server

Gpnp Grid Plug-n-Play Service

Css Cluster Synchronization Services

Crf Cluster Health Monitor

Crs Cluster Ready Services

Ctss Cluster Time Synchronization Service

Evm EventManager

Gipc Grid Interprocess Communications

[grid@dbrac1 ~] $

[grid@dbrac1] $crsctl query-h

Usage:

Crsctl query crs administrator

Display admin list

Crsctl query crs activeversion

Lists the Oracle Clusterware operating version

Crsctl query crs releaseversion

Lists the Oracle Clusterware release version

Crsctl query crs softwareversion [|-all]

Lists the version of Oracle Clusterware software installed

Where

Default List software version of the local node

Nodename List software version of named node

-all List software version for all the nodes in the cluster

Crsctl query css ipmiconfig

Checks whether Oracle Clusterware has been configured for IPMI

Crsctl query css ipmidevice

Checks whether the IPMI device/driver is present

Crsctl query css votedisk

Lists the voting files used by Cluster Synchronization Services

Crsctl query wallet-type [- name] [- user]

Check if the designated wallet or user exists

Where

Wallet_type Type of wallet i.e. APPQOSADMIN, APPQOSUSER or APPQOSDB.

Name Name is required for APPQOSDB wallets.

User_name User to be queried from wallet.

Crsctl query dns-servers

Lists the system configured DNS server, search paths, attempt and timeout values

Crsctl query dns-name [- dnsserver] [- port] [- attempts] [- timeout] [- v]

Returns a list of addresses returned by DNS lookup of the name with the specified DNS server

Where

Name Fully qualified domain name to lookup

DNS_server_address Address of the DNS server on which name needs to be looked up

Port Port on which DNS server is listening

Attempts Number of retry attempts

Timeout Timeout in seconds

Crsctl query socket udp [- address] [- port]

Verifies that a daemon can listen on specified address and port

Where

Address IP address on which socket needs to be created

Port port on which socket needs to be created

[grid@dbrac1 ~] $

[grid@dbrac1] $crsctl pin-h

Usage:

Crsctl pin css-n [...]

Pin the nodes (make leases non-expiring).

[grid@dbrac1 ~] $

[grid@dbrac1] $crsctl unpin-h

Usage:

Crsctl unpin css-n [...]

Unpin the nodes (allow leases to expire).

[grid@dbrac1 ~] $

[grid@dbrac1] $crsctl discover-h

Usage:

Crsctl discover dhcp-clientid [- port]

Discover DHCP server

Where

Clientid client ID for which discovery will be attempted

Port The port on which the discovery packets will be sent

[grid@dbrac1 ~] $

[grid@dbrac1] $crsctl release-h

Usage:

Crsctl release dhcp-clientid [- port]

Release DHCP lease for the client ID specified

Where

Clientid client ID for which DHCP lease release request will be attempted

Port The port on which the DHCP lease release packets will be sent

[grid@dbrac1 ~] $

[grid@dbrac1] $crsctl request-h

Usage:

Crsctl request dhcp-clientid [- port]

Request DHCP lease for the client ID specified

Where

Clientid client ID for which DHCP lease request will be attempted

Port The port on which the DHCP lease request packets will be sent

[grid@dbrac1 ~] $

2.ocrcheck

[grid@dbrac1] $ocrcheck-h

Name:

Ocrcheck-Displays health of Oracle Cluster/Local Registry.

Synopsis:

Ocrcheck [- config] [- local]

-config Displays the configured locations of the Oracle Cluster Registry.

This can be used with the-local option to display the configured

Location of the Oracle Local Registry

-local The operation will be performed on the Oracle Local Registry.

Notes:

A log file will be created in

$ORACLE_HOME/log//client/ocrcheck_.log.

File creation privileges in the above directory are needed

When running this tool.

[grid@dbrac1 ~] $

3.ocrconfig

[grid@dbrac1] $ocrconfig-h

Name:

Ocrconfig-Configuration tool for Oracle Cluster/Local Registry.

Synopsis:

Ocrconfig [option]

Option:

[- local]-export

-Export OCR/OLR contents to a file

[- local]-import-Import OCR/OLR contents from a file

[- local]-upgrade [[]]

-Upgrade OCR from previous version

-downgrade [- version]

-Downgrade OCR to the specified version

[- local]-backuploc-Configure OCR/OLR backup location

[- local]-showbackup [auto | manual]-Show OCR/OLR backup information

[- local]-manualbackup-Perform OCR/OLR backup

[- local]-restore-Restore OCR/OLR from physical backup

-replace-replacement

-Replace an OCR device or file with

-add-Add a new OCR device/file

-delete-Remove an OCR device/file

-overwrite-Overwrite OCR configuration on disk

-repair-add |-delete |-replace-replacement

-Repair OCR configuration on the local node

-help-Print out this help information

Note:

* A log file will be created in

$ORACLE_HOME/log//client/ocrconfig_.log. Please ensure

You have file creation privileges in the above directory before

Running this tool.

* Only-local-showbackup [manual] is supported.

* Use option'- local' to indicate that the operation is to be performed on the Oracle Local Registry.

[grid@dbrac1 ~] $

4.ocrdump

[grid@dbrac1] $ocrdump-h

Name:

Ocrdump-Dump contents of Oracle Cluster/Local Registry to a file.

Synopsis:

Ocrdump [- local] [|-stdout] [- backupfile] [- keyname] [- xml] [- noheader]

Description:

Default filename is OCRDUMPFILE. Examples are:

Prompt > ocrdump

Writes cluster registry contents to OCRDUMPFILE in the current directory

Prompt > ocrdump MYFILE

Writes cluster registry contents to MYFILE in the current directory

Prompt > ocrdump-stdout-keyname SYSTEM

Writes the subtree of SYSTEM in the cluster registry to stdout

Prompt > ocrdump-local-stdout-xml

Writes local registry contents to stdout in xml format

Prompt > ocrdump-backupfile / oracle/CRSHOME/backup.ocr-stdout-xml

Writes registry contents in the backup file to stdout in xml format

Notes:

The header information will be retrieved based on best effort basis.

A log file will be created in

$ORACLE_HOME/log//client/ocrdump_.log. Make sure

You have file creation privileges in the above directory before

Running this tool.

Use option'- local' to indicate that the operation is to be performed on the Oracle Local Registry.

[grid@dbrac1 ~] $

IV. Application layer

1.srvctl

[grid@dbrac1 ~] $srvctl

Usage: srvctl []

Commands: enable | disable | start | stop | relocate | status | add | remove | modify | getenv | setenv | unsetenv | config | convert | upgrade

Objects: database | instance | service | nodeapps | vip | network | asm | diskgroup | listener | srvpool | scan | scan_listener | oc4j | home | filesystem | gns | cvu

For detailed help on each command and object and its options use:

Srvctl-h or

Srvctl-h

[grid@dbrac1 ~] $

[grid@dbrac1] $srvctl enable-h

The SRVCTL enable command enables the named object so that it can run under Oracle Clusterware for automatic startup, failover, or restart.

Usage: srvctl enable database-d [- n]

Usage: srvctl enable instance-d-I ""

Usage: srvctl enable service-d-s "[- I |-n]

Usage: srvctl enable asm [- n]

Usage: srvctl enable listener [- l] [- n]

Usage: srvctl enable nodeapps [- g] [- v]

Usage: srvctl enable vip-I [- v]

Usage: srvctl enable scan [- I]

Usage: srvctl enable scan_listener [- I]

Usage: srvctl enable oc4j [- n] [- v]

Usage: srvctl enable filesystem-d

Usage: srvctl enable diskgroup-g [- n ""]

Usage: srvctl enable gns [- n] [- v]

Usage: srvctl enable cvu [- n]

For detailed help on each command and object and its options use:

Srvctl-h

[grid@dbrac1 ~] $

[grid@dbrac1] $srvctl disable-h

The SRVCTL disable command disables the named object so that it is unavailable to run under Oracle Clusterware for automatic startup, failover, or restart.

Usage: srvctl disable database-d [- n]

Usage: srvctl disable instance-d-I ""

Usage: srvctl disable service-d-s "[- I |-n]

Usage: srvctl disable asm [- n]

Usage: srvctl disable listener [- l] [- n]

Usage: srvctl disable nodeapps [- g] [- v]

Usage: srvctl disable vip-I [- v]

Usage: srvctl disable scan [- I]

Usage: srvctl disable scan_listener [- I]

Usage: srvctl disable oc4j [- n] [- v]

Usage: srvctl disable filesystem-d

Usage: srvctl disable diskgroup-g [- n ""]

Usage: srvctl disable gns [- n] [- v]

Usage: srvctl disable cvu [- n]

For detailed help on each command and object and its options use:

Srvctl-h

[grid@dbrac1 ~] $

[grid@dbrac1] $srvctl start-h

The SRVCTL start command starts, Oracle Clusterware enabled, non-running objects.

Usage: srvctl start database-d [- o] [- n]

Usage: srvctl start instance-d {- n [- I] |-I} [- o]

Usage: srvctl start service-d [- s "" [- n |-I]] [- o]

Usage: srvctl start nodeapps [- n] [- g] [- v]

Usage: srvctl start vip {- n |-I} [- v]

Usage: srvctl start asm [- n] [- o]

Usage: srvctl start listener [- l] [- n]

Usage: srvctl start scan [- I] [- n]

Usage: srvctl start scan_listener [- n] [- I]

Usage: srvctl start oc4j [- v]

Usage: srvctl start home-o-s-n

Usage: srvctl start filesystem-d [- n]

Usage: srvctl start diskgroup-g [- n ""]

Usage: srvctl start gns [- l] [- n] [- v]

Usage: srvctl start cvu [- n]

For detailed help on each command and object and its options use:

Srvctl-h

[grid@dbrac1 ~] $

[grid@dbrac1 ~] $

[grid@dbrac1] $srvctl stop-h

The SRVCTL stop command stops, Oracle Clusterware enabled, starting or running objects.

Usage: srvctl stop database-d [- o] [- f]

Usage: srvctl stop instance-d {- n |-I} [- o] [- f]

Usage: srvctl stop service-d [- s "" [- n |-I]] [- f]

Usage: srvctl stop nodeapps [- n] [- g] [- f] [- r] [- v]

Usage: srvctl stop vip {- n |-I} [- f] [- r] [- v]

Usage: srvctl stop asm [- n] [- o] [- f]

Usage: srvctl stop listener [- l] [- n] [- f]

Usage: srvctl stop scan [- I] [- f]

Usage: srvctl stop scan_listener [- I] [- f]

Usage: srvctl stop oc4j [- f] [- v]

Usage: srvctl stop home-o-s-n [- t] [- f]

Usage: srvctl stop filesystem-d [- n] [- f]

Usage: srvctl stop diskgroup-g [- n ""] [- f]

Usage: srvctl stop gns [- n] [- f] [- v]

Usage: srvctl stop cvu [- f]

For detailed help on each command and object and its options use:

Srvctl-h

[grid@dbrac1 ~] $

[grid@dbrac1] $srvctl relocate-h

The SRVCTL relocate command relocates a running Oracle Clusterware managed object to another node or instance.

Usage: srvctl relocate database-d {[- n] [- w] |-a [- r]} [- v]

Usage: srvctl relocate service-d-s {- I-t |-c-n} [- f]

Usage: srvctl relocate server-n ""-g [- f]

Usage: srvctl relocate vip-I [- n] [- f] [- v]

Usage: srvctl relocate scan-I [- n]

Usage: srvctl relocate scan_listener-I [- n]

Usage: srvctl relocate oc4j [- n] [- v]

Usage: srvctl relocate gns [- n] [- v]

Usage: srvctl relocate cvu [- n]

For detailed help on each command and object and its options use:

Srvctl-h

[grid@dbrac1 ~] $

[grid@dbrac1] $srvctl status-h

The SRVCTL status command displays the current state of the object.

Usage: srvctl status database-d [- f] [- v]

Usage: srvctl status instance-d {- n |-I} [- f] [- v]

Usage: srvctl status service-d [- s ""] [- f] [- v]

Usage: srvctl status nodeapps

Usage: srvctl status vip {- n |-I} [- v]

Usage: srvctl status listener [- l] [- n] [- v]

Usage: srvctl status asm [- n] [- a] [- v]

Usage: srvctl status scan [- I] [- v]

Usage: srvctl status scan_listener [- I] [- v]

Usage: srvctl status srvpool [- g] [- a]

Usage: srvctl status server-n "[- a]

Usage: srvctl status oc4j [- n] [- v]

Usage: srvctl status home-o-s-n

Usage: srvctl status filesystem-d [- v]

Usage: srvctl status diskgroup-g [- n ""] [- a] [- v]

Usage: srvctl status cvu [- n]

Usage: srvctl status gns [- n] [- v]

For detailed help on each command and object and its options use:

Srvctl-h

[grid@dbrac1 ~] $

[grid@dbrac1] $srvctl add-h

The SRVCTL add command adds the configuration and the Oracle Clusterware application to the OCR for the cluster database, named instances, named services, or for the named nodes.

Usage: srvctl add database-d-o [- c {RACONENODE | RAC | SINGLE} [- e] [- I] [- w]] [- m] [- p] [- r {PRIMARY | PHYSICAL_STANDBY | LOGICAL_STANDBY | SNAPSHOT_STANDBY}] [- s] [- t] [- n] [- y {AUTOMATIC | MANUAL | NORESTART}] [- g ""] [- x] [- a ""] [- j "]

Usage: srvctl add instance-d-I-n [- f]

Usage: srvctl add service-d-s {- r "[- a"] [- P {BASIC | NONE | PRECONNECT}] |-g [- c {UNIFORM | SINGLETON}]} [- k] [- l [PRIMARY] [, PHYSICAL_STANDBY] [, LOGICAL_STANDBY] [ SNAPSHOT_STANDBY] [- y {AUTOMATIC | MANUAL}] [- Q {TRUE | FALSE}] [- x {TRUE | FALSE}] [- j {SHORT | LONG}] [- B {NONE | SERVICE_TIME | THROUGHPUT}] [- e {NONE | SESSION | SELECT}] [- m {NONE | BASIC}] [- z] [- w] [- t] [- f]

Usage: srvctl add service-d-s-u {- r "" |-a ""} [- f]

Usage: srvctl add nodeapps {{- n-A / / [if1 [| if2...]]} | {- S / / [if1 [| if2...]]} [- e] [- l] [- r] [- t [:] [, [:]...] [- v]

Usage: srvctl add vip-n-k-A / / [if1 [| if2...]] [- v]

Usage: srvctl add network [- k]-S / / [if1 [| if2...]] [- w] [- v]

Usage: srvctl add asm [- l]

Usage: srvctl add listener [- l] [- s] [- p "[TCP:] [,...] [/ IPC:] [/ NMP:] [/ TCPS:] [/ SDP:]"] [- o] [- k]

Usage: srvctl add scan-n [- k] [- S / [/ if1 [| if2 |...]]

Usage: srvctl add scan_listener [- l] [- s] [- p [TCP:] [/ IPC:] [/ NMP:] [/ TCPS:] [/ SDP:]]

Usage: srvctl add srvpool-g [- l] [- u] [- I] [- n ""] [- f]

Usage: srvctl add oc4j [- v]

Usage: srvctl add filesystem-d-v-g [- m] [- u]

Usage: srvctl add gns-d-I [- v]

Usage: srvctl add cvu [- t]

For detailed help on each command and object and its options use:

Srvctl-h

[grid@dbrac1 ~] $

[grid@dbrac1] $srvctl remove-h

The SRVCTL remove command removes the configuration, for the object from the Oracle Clusterware. Environment settings for the object are also removed.

Usage: srvctl remove database-d [- f] [- y]

Usage: srvctl remove instance-d-I [- f] [- y]

Usage: srvctl remove service-d-s [- I] [- f]

Usage: srvctl remove nodeapps [- f] [- y] [- v]

Usage: srvctl remove vip-I "" [- f] [- y] [- v]

Usage: srvctl remove network {- k |-a} [- f] [- v]

Usage: srvctl remove asm [- f]

Usage: srvctl remove listener [- l |-a] [- f]

Usage: srvctl remove scan [- f] [- y]

Usage: srvctl remove scan_listener [- f] [- y]

Usage: srvctl remove srvpool-g

Usage: srvctl remove oc4j [- f] [- v]

Usage: srvctl remove filesystem-d [- f]

Usage: srvctl remove diskgroup-g [- f]

Usage: srvctl remove gns [- f] [- v]

Usage: srvctl remove cvu [- f]

For detailed help on each command and object and its options use:

Srvctl-h

[grid@dbrac1 ~] $

[grid@dbrac1] $srvctl modify-h

The SRVCTL modify command enables user to modify configuration of the object without removing and adding Oracle Clusterware resources. The changes takes effect when the application is restarted.

Usage: srvctl modify database-d [- n] [- o] [- u] [- e] [- w] [- m] [- p] [- r {PRIMARY | PHYSICAL_STANDBY | LOGICAL_STANDBY | SNAPSHOT_STANDBY}] [- s] [- t] [- y {AUTOMATIC | MANUAL | NORESTART}] [- g "" [- x]] [- a "|-z] [- j"] [- f]

Usage: srvctl modify instance-d-I {- n |-z}

Usage: srvctl modify service-d-s-I-t [- f]

Usage: srvctl modify service-d-s-I-r [- f]

Usage: srvctl modify service-d-s-n-I "[- a"] [- f]

Usage: srvctl modify service-d-s [- g] [- c {UNIFORM | SINGLETON}] [- P {BASIC | NONE}] [- l [PRIMARY] [, PHYSICAL_STANDBY] [, LOGICAL_STANDBY] [ SNAPSHOT_STANDBY] [- y {AUTOMATIC | MANUAL}] [- Q {true | false}] [- x {true | false}] [- j {SHORT | LONG}] [- B {NONE | SERVICE_TIME | THROUGHPUT}] [- e {NONE | SESSION | SELECT}] [- m {NONE | BASIC}] [- z] [- w] [- t]

Usage: srvctl modify asm [- l]

Usage: srvctl modify nodeapps {[- n-A / [/ if1 [| if2 |...] | [- S / [/ if1 [| if2 |...]]} [- u {static | dhcp | mixed}] [- e] [- l] [- r] [- t [:] [, [:]...]] [- v]

Usage: srvctl modify listener [- l] [- o] [- p "[TCP:] [,...] [/ IPC:] [/ NMP:] [/ TCPS:] [/ SDP:]"] [- u] [- k]

Usage: srvctl modify network [- k] [- S / [/ if1 [| if2...] [- w] [- v]

Usage: srvctl modify scan-n

Usage: srvctl modify scan_listener {- u |-p [TCP:] [/ IPC:] [/ NMP:] [/ TCPS:] [/ SDP:]}

Usage: srvctl modify srvpool-g [- l] [- u] [- I] [- n ""] [- f]

Usage: srvctl modify oc4j-p [- v] [- f]

Usage: srvctl modify filesystem-d-u

Usage: srvctl modify gns {- l | [- I] [- N-A] [- D-A] [- c-a] [- u] [- r] [- V] [- p: [,...]] [- F] [- R] [- X] [- v]}

Usage: srvctl modify cvu-t

For detailed help on each command and object and its options use:

Srvctl-h

[grid@dbrac1 ~] $

[grid@dbrac1] $srvctl getenv-h

The SRVCTL getenv command Gets and displays values for the environment from the configuration file. It allows users to administer environment configuration for the objects.

Usage: srvctl getenv database-d [- t ""]

Usage: srvctl getenv nodeapps [- a] [- g] [- s] [- t ""]

Usage: srvctl getenv vip-I [- t ""]

Usage: srvctl getenv listener [- l] [- t [,...]]

Usage: srvctl getenv asm [- t [,...]]

For detailed help on each command and object and its options use:

Srvctl-h

[grid@dbrac1 ~] $

[grid@dbrac1 ~] $

[grid@dbrac1] $srvctl setenv-h

The SRVCTL setenv command sets values for the environment in the configuration file. It allows users to administer environment configuration for the objects.

Usage: srvctl setenv database-d {- t = [, =,...] |-T =}

Usage: srvctl setenv nodeapps {- t "= [, =,...]" |-T "="} [- v]

Usage: srvctl setenv vip-I {- t "= [, =,...]" |-T "="} [- v]

Usage: srvctl setenv listener [- l]-t "= [,...]" |-T "="

Usage: srvctl setenv asm-t "= [,...]" |-T "="

For detailed help on each command and object and its options use:

Srvctl-h

[grid@dbrac1 ~] $

[grid@dbrac1] $srvctl unsetenv-h

The SRVCTL unsetenv command unsets values for the environment in the configuration file. It allows users to administer environment configuration for the objects.

Usage: srvctl unsetenv database-d-t ""

Usage: srvctl unsetenv nodeapps-t "[- v]

Usage: srvctl unsetenv vip-I-t "[- v]

Usage: srvctl unsetenv listener [- l]-t "[,...]"

Usage: srvctl unsetenv asm-t "[,...]"

For detailed help on each command and object and its options use:

Srvctl-h

[grid@dbrac1 ~] $

[grid@dbrac1] $srvctl config-h

The SRVCTL config command displays the configuration for the object stored in the OCR.

Usage: srvctl config database [- d [- a]] [- v]

Usage: srvctl config service-d [- s] [- v]

Usage: srvctl config nodeapps [- a] [- g] [- s]

Usage: srvctl config vip {- n |-I}

Usage: srvctl config network [- k]

Usage: srvctl config asm [- a]

Usage: srvctl config listener [- l] [- a]

Usage: srvctl config scan [- I]

Usage: srvctl config scan_listener [- I]

Usage: srvctl config srvpool [- g]

Usage: srvctl config oc4j

Usage: srvctl config filesystem-d

Usage: srvctl config gns [- a] [- d] [- k] [- m] [- n] [- p] [- s] [- V] [- Q] [- l] [- v]

Usage: srvctl config cvu

For detailed help on each command and object and its options use:

Srvctl-h

Usage (for backward compatibility): srvctl config

Usage (for backward compatibility): srvctl config-p-n

Usage (for backward compatibility): srvctl config-V

[grid@dbrac1 ~] $

[grid@dbrac1] $srvctl convert-h

The SRVCTL convert command enables the user to convert from RAC One Node database to RAC database and vice versa.

Usage: srvctl convert database-d-c RAC [- n]

Usage: srvctl convert database-d-c RACONENODE [- I] [- w]

[grid@dbrac1 ~] $

[grid@dbrac1] $srvctl upgrade-h

Upgrades the resources types and resources from an older version to a newer version.

Usage: srvctl upgrade model-s-d-p {first | last} [- e = [, =,...]

Usage: srvctl upgrade database-d-o

[grid@dbrac1 ~] $

2.onsctl

[grid@dbrac1 ~] $onsctl

ERROR!

Usage: onsctl [verbose] []

The verbose option enables debug tracing and logging (for the server start).

Permitted / combinations are:

Command options

--

Start-Start ons

Shutdown-Shutdown ons

Reload-Trigger ons to reread its configuration file

Debug [=..]-Display ons server debug information

Set [=..]-Set ons log parameters

Query [=]-Query ons log parameters

Ping []-Ping local ons

Help-Print brief usage description (this)

Usage []-Print detailed usage description

[grid@dbrac1 ~] $

3.crs_stat

[grid@dbrac1] $crs_stat-h

This command is deprecated and has been replaced by 'crsctl status resource'

This command remains for backward compatibility only

Usage: crs_stat [resource_name [...]] [- v] [- l] [- Q] [- c cluster_member]

Crs_stat [resource_name [...]]-t [- v] [- Q] [- c cluster_member]

Crs_stat-p [resource_name [...]] [- Q]

Crs_stat [- a] application-g

Crs_stat [- a] application-r [- c cluster_member]

Crs_stat-f [resource_name [...]] [- Q] [- c cluster_member]

Crs_stat-ls [resource_name [...]] [- Q]

[grid@dbrac1 ~] $

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report