Oracle clusterware tool 1

Source: Internet
Author: User

The command set of Oracle clusterware can be divided into the following four types:

    1. Node layer: osnodes
    2. Network Layer: oifcfg
    3. Cluster layer: crsctl, ocrcheck, ocrdump, ocrconfig
    4. Application Layer: srvctl, onsctl, crs_stat

Node layer:

The command for managing the node layer is olsnode.

 [Oracle @ node1 bin] $. /olsnodes- helpusage: olsnodes [-N] [-p] [-I] [
  
    |-L] [-G] [-
    V] Where -
    N print node number with the node name -
    P print private interconnect name with the node name -
    I print virtual IP name with the node name  
   
     Print Information 
     for  
     the specified node -l print information 
     for  
     the local node -
     G turn on logging -V run 
     in  
     verbose mode [Oracle @ node1 bin] $  
   
  
-N: show each node ID-P: show each node for private interconnect Nic name-I: show each node VIP-G: Print log information-V: Print details

Example:

  display the ID of each node: [Oracle @ node1 bin] $. /olsnodes- nnode1   1   node2   2   [Oracle @ node1 bin] $ display the private interconnect Nic Name: [Oracle @ node1 bin] $. /olsnodes-n- pnode1   1  Rac1- privnode2   2  rac2- priv [Oracle @ node1 bin] $ displays the VIP addresses of each node: [Oracle @ node1 bin] $. /olsnodes-n-p- inode1   1  rac1-priv Rac1- vipnode2   2  rac2-priv rac2- VIP [Oracle @ node1 bin] $  

Network Layer:

The network layer consists of the network components of each node, including two physical NICs and three IP addresses. The command used for this layer of management is oifcfg. This command defines and modifies the NIC attributes required by the Oracle cluster. These attributes include the nic cidr block address, subnet mask, and interface type. To correctly use this command, you must first know how Oracle defines Network Interfaces. Each network interface of Oracle has three attributes: name, network segment address, and interface type.

Oifcfg Command Format: interface_name/subnet: interface_type

There are no IP addresses in these attributes, but there are two interface types: public and private. The former indicates that the interface is used for external communication, for Oracle Net and VIP addresses, and the latter indicates that the interface is used for private networks.

Interface Configuration methods include global and node-specific. The former indicates that the configuration information of all nodes in the cluster is the same, that is, the configuration of all nodes is symmetric. The latter means that the configuration of this node is different from that of other nodes and is not symmetric.

The oifcfg command has the following four sub-commands, each of which can have different parameters:

    1. Iflist: display the network port list
    2. Getif: obtains information about a single network port.
    3. Setif: configure a single network port
    4. Delif: delete a network port
 1 [Oracle @ node1 bin] $./oifcfg- Help  2   3  Name:  4 Oifcfg- Oracle Interface Configuration tool.  5   6 Usage: oifcfg iflist [-P [- N]  7 Oifcfg setif {-node <nodename> |-Global }{< if_name>/<subnet >:< if_type> }...  8 Oifcfg getif [-node <nodename> |-Global] [- If <If_name> [/<subnet>] [-type <if_type> ] 9 Oifcfg delif [-node <nodename> |-Global] [<if_name> [/<subnet> ]  10 Oifcfg [- Help]  11   12 <Nodename>- Name of the host, as known to a communications network  13 <If_name>-name Which The interface is configured In  The System  14 <Subnet>- Subnet address of the interface  15 <If_type>-type of the interface {cluster_interconnect | public | storage}

Example:

 Display the network port list: [Oracle @ node1 bin] $. / Oifcfg iflisteth0  192.168 . 2.0  Eth1  10.0 . 0.0  Obtain the network port information (name, network segment address, and interface type): [Oracle @ node1 bin] $. / Oifcfg getifeth0 192.168 . 2.0  Global publiceth1  10.0 . 0.0  Global cluster_interconnect Note: The CIDR Block of the eth0 interface is 192.  168.2 . 0 The NIC type is public, which is used for Oracle Net and VIP. The configuration type global indicates that the eth0 Nic of all nodes belongs to 192. 168.2  The. 0 CIDR blocks are all public. View public network adapters: [Oracle @ node1 bin] $. /Oifcfg getif- Type publiceth0  192.168 .2.0  Global public: [Oracle @ node1 bin] $. /Oifcfg getif- Type cluster_interconnecteth1  10.0 . 0.0  Global cluster_interconnect adds interface configuration [root @ raw1 bin] #. /Oifcfg setif-Global eth0/ 192.168 . 1.119  : Public [root @ raw1 bin] #. /Oifcfg setif-Global eth1/ 10.85 . 10.119 : Cluster_interconnect Delete interface configuration [root @ raw1 bin] #. /Oifcfg delif-Global

 

-- From Oracle RAC

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.