What OLR needs to know in oracle11gGRID

Source: Internet
Author: User

What OLR needs to know in oracle 11g GRID

1. Check the olr status:
[Root @ vmrac1 ~] # Ocrcheck-local
Status of Oracle Local Registry is as follows:
Version: 3
Total space (kbytes): 262120
Used space (kbytes): 2748
Available space (kbytes): 259372
ID: 935756415
Device/File Name:/u02/app/11.2.0.3/grid/cdata/vmrac1.olr
Device/File integrity check succeeded
Local registry integrity check succeeded
Logical upload uption check succeeded

2. Dump the olr content to the txt file to view the olr content:

# Ocrdump-local-stdout

3. Export/Import olr content:
--- Export OLR
# Ocrconfig-local-export file_name

/* File_name indicates the import file and the exported file name. The file name is set to eg: olr_myhost1_20090603_0130_export */

--- Import OLR:
# Ocrconfig-local-import file_name

/* File_name indicates the import file and the exported file name. The file name is set to eg: olr_myhost1_20090603_0130_export */

Note:
Oracle recommends that you use the-manualbackup and-restorecommands and not the-importand-exportcommands.
When exporting OLR, Oracle recommends including "olr", the host name, and the timestamp in the name string.
For example: olr_myhost1_20090603_0130_export

4. Manually back up OLR:

# Ocrconfig-local-manualbackup

The olr will be backed up once after the grid is installed or after the upgrade. It will not be automatically backed up afterwards. Oracle recommends that you manually back up the OLR after migrating the ocr storage.

** OLR default backup directory: Grid_home/cdata/host_name.
---- Modify the OLR Backup directory:
Ocrconfig-local-backuploc new_olr_backup_path

---- View the olr backup file content:
Ocrdump-local-backupfile olr_backup_file_name

Note that olr: ocrconfig-manualbackup and ocrconfig-local-restore are used together, And ocrconfig-local-export and ocrconfig-local-import are used together, that is to say, the file exported from ocrconfig-local-export file_name is not used as ocrconfig-local-restore.

5. Restore OLR:
To restore OLR:
---- Stop crs
# Crsctl stop crs

---- Restore OLR:
# Ocrconfig-local-restore file_name/* file_name is the file name in the olr backup path, which can be viewed through ocrconfig-local-showbackup */

----- Confirm the status of the olr (check the logical integrity of the olr content ):
# Ocrcheck-local

---- Restart crs
# Crsctl start crs

---- Use cvu to verify the integrity of olr in the cluster (Note: Do not check the logical integrity of olr content)
$ Cluvfy comp olr

Grid @ vmrac1 ~] $ Cluvfy comp olr

Verifying OLR integrity
Checking OLR integrity...
Checking OLR config file...
OLR config file check successful
Checking OLR file attributes...
OLR file check successful

WARNING:
This check does not verify the integrity of the OLR contents. Execute 'crcheck-local' as a privileged user to verify

Contents of OLR.

OLR integrity check passed
Verification of OLR integrity was successful.

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.