Management of ocr and votedisk in Oracle10g

Source: Internet
Author: User
As a cluster, oraclecluster needs shared storage to store the configuration information of the entire cluster. ocr is the place where the configuration information is stored in use cases. The storage capacity of ocr is generally not too large.

As a cluster, oracle cluster needs shared storage to store the configuration information of the entire cluster. ocr is the place where the configuration information is stored in use cases. The storage capacity of ocr is generally not too large.

What are ocr and votedisk?

As a cluster, the Oracle cluster needs to share storage to store the configuration information of the entire cluster. ocr is the place where the configuration information is stored in use cases. The storage capacity of ocr is generally not too large, at 10 Gb, the recommended oracle m is enough. Ocr must be stored on the cluster file system or bare device. For performance considerations, we recommend that you set up ocr on bare devices, high Performance and complex management (ocr and votedisk are generally not too many ). Ocr stores cluster configuration information, which can only be maintained on one Node. This Node is called a Master Node, other nodes retain an ocr copy in the memory and can only perform read operations. All ocr updates are performed by the master node and notified to each node.

Votedisk is a centralized storage of various nodes for heartbeat monitoring.

Do I need to keep ocr and votedisk offline for maintenance?

Orc maintenance requires online operations in most cases, because each node has an ocr. loc file, online operations can ensure that the ocr. loc file of each node is updated in a timely manner. However, some operations, such as repaire and rebuild, must be performed offline (described later)

The maintenance of a votedisk is usually performed offline.

Oracle 11g installation manual on RedHat Linux 5.8 _ x64 Platform

Installing Oracle 12C in Linux-6-64

Install Oracle 11gR2 (x64) in CentOS 6.4)

Steps for installing Oracle 11gR2 in vmwarevm

Install Oracle 11g XE R2 In Debian

What commands are maintained by ocr?

Common commands for maintaining ocr are:

Ocrcheck

[Root @ node1 bin] #./ocrcheck-h
Name:
Ocrcheck-Displays health of Oracle Cluster Registry.

Synopsis:
Ocrcheck

Description:
Prompt> ocrcheck
Displays current usage, location and health of the cluster registry

Notes:
A log file will be created in
$ ORACLE_HOME/log/ /Client/ocrcheck _ . Log. Please ensure
You have file creation privileges in the above directory before
Running this tool.

Ocrdump (dump content can be used to view content in ocr, but cannot be used for restoration)

[Root @ node1 bin] #./ocrdump-h
Name:
Ocrdump-Dump contents of Oracle Cluster Registry to a file.

Synopsis:
Ocrdump [ |-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-stdout-xml
Writes cluster registry contents 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.

Ocrconfig

[Root @ node1 bin] #./ocrconfig-h
Name:
Ocrconfig-Configuration tool for Oracle Cluster Registry.

Synopsis:
Ocrconfig [option]
Option:
-Export [-S online]
-Export cluster register contents to a file
-Import -Import cluster registry contents from a file
-Upgrade [ [ ]
-Upgrade cluster registry from previous version
-Downgrade [-version ]
-Downgrade cluster registry to the specified version
-Backuploc -Configure periodic backup location
-Showbackup-Show backup information
-Restore -Restore from physical backup
-Replace ocr | ocrmirror [ ]-Add/replace/remove a OCR device/file
-Overwrite-Overwrite OCR configuration on disk
-Repair ocr | ocrmirror -Repair local OCR configuration
-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.

Table D-1 The ocrconfig Command Options

OptionPurpose

-Backuploc

To change an OCR backup file location. For this entry, use a full path that is accessible by all of the nodes.

-Downgrade

To downgrade an OCR to an earlier version.

-Export

To export the contents of an OCR into a target file.

-Help

To display help for the ocrconfig commands.

-Import

To import the OCR contents from a previusly exported OCR file.

-Overwrite

To update an OCR configuration that is recorded on the OCR with the current OCR configuration information that is found on the node from which you are running this command.

-Repair

To update an OCR configuration on the node from which you are running this command with the new configuration information specified by this command.

-Replace

To add, replace, or remove an OCR location.

-Restore

To restore an OCR from an automatically created OCR backup file.

-Showbackup

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.