Routine basic maintenance commands of OracleRAC

Source: Internet
Author: User
Welcome to the Oracle community forum and interact with 2 million technicians in the status of all instances and services $ status of a single srvctlstatusdatabase-dorclInstanceorcl1isrunningonnodelinux1Instanceorcl2isrunningonnodelinux2 instance $ srvctlstatusinstance-dorcl

Welcome to the Oracle Community Forum, interact with 2 million technicians> enter the status of all instances and services $ srvctl status database-d orcl Instance orcl1 is running on node linux1 Instance orcl2 is running on node linux2 Single Instance $ srvctl status instance-d orcl

Welcome to the Oracle community forum and interact with 2 million technical staff> enter

Status of all instances and services

$ Srvctl status database-d orcl

Instance orcl1 is running on node linux1

Instance orcl2 is running on node linux2

Status of a single instance

$ Srvctl status instance-d orcl-I orcl2

Instance orcl2 is running on node linux2

The status of the global Naming Service in the database

$ Srvctl status service-d orcl-s orcltest

Service orcltest is running on instance (s) orcl2, orcl1

Node application status on a specific node

$ Srvctl status nodeapps-n linux1

VIP is running on node: linux1

GSD is running on node: linux1

Listener is running on node: linux1

ONS daemon is running on node: linux1

ASM instance status

$ Srvctl status asm-n linux1

ASM instance + ASM1 is running on node linux1.

List all configured Databases

$ Srvctl config database

Orcl

Displays the configuration of the RAC database.

$ Srvctl config database-d orcl

Linux1 orcl1/u01/app/oracle/product/10.2.0/db_1

Linux2 orcl2/u01/app/oracle/product/10.2.0/db_1

Display all services of the specified cluster Database

$ Srvctl config service-d orcl

Orcltest PREF: orcl2 orcl1 AVAIL:

Display node application configurations (VIP, GSD, ONS, listener)

$ Srvctl config nodeapps-n linux1-a-g-s-l

VIP exists.:/linux1-vip/192.168.1.200/255.255.255.0/eth0: eth1

GSD exists.

ONS daemon exists.

Listener exists.

Displays the configuration of the ASM instance.

$ Srvctl config asm-n linux1

+ ASM1/u01/app/oracle/product/10.2.0/db_1

All running instances in the Cluster

SELECT

Inst_id

, Instance_number inst_no

, Instance_name inst_name

, Parallel

, Status

, Database_status db_status

, Active_state state

, Host_name host

FROM gv $ instance

Order by inst_id;

INST_ID INST_NO INST_NAME par status DB_STATUS STATE HOST

----------------------------------------------------------------

1 1 orcl1 yes open active normal rac1

2 2 orcl2 yes open active normal rac2

[1] [2]

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.