Oracle RAC migration OCR (10g)

Source: Internet
Author: User

Oracle RAC migration OCR

For how to add and delete Oracle rac ocr, see:

Oracle RAC backup and recovery OCR reference:

If you want to change an existing ocr location or a faulty ocr location, you can use the following procedure to migrate the ocr.

1. view the current ocr status

[Oracle @ node1 crs_1] $ ocrcheck
Status of Oracle Cluster Registry is as follows:
Version: 2
Total space (kbytes): 153496
Used space (kbytes): 3816
Available space (kbytes): 149680
ID: 497615595
Device/File Name:/dev/raw/raw7
Device/File integrity check succeeded
Device/File Name:/dev/raw/raw8
Device/File integrity check succeeded

Cluster registry integrity check succeeded

Here, raw7 is normal ocr, and raw8 is image ocr.
2. Run the following command on the node running Oracle clusterware:

[Oracle @ node1 crs_1] $ crsctl check crs
CSS appears healthy
CRS appears healthy
EVM appears healthy

3. migrate normal ocr

[Root @ node1 bin] #./ocrconfig-replace ocr/dev/raw/raw9
[Oracle @ node1 crs_1] $ ocrcheck
Status of Oracle Cluster Registry is as follows:
Version: 2
Total space (kbytes): 153496
Used space (kbytes): 3816
Available space (kbytes): 149680
ID: 497615595
Device/File Name:/dev/raw/raw9
Device/File integrity check succeeded
Device/File Name:/dev/raw/raw8
Device/File integrity check succeeded

Cluster registry integrity check succeeded

We can see that raw9 is normal ocr instead of raw7.

 

4. migrate the image ocr

[Root @ node1 bin] #./ocrconfig-replace ocrmirror/dev/raw/raw7
[Oracle @ node1 crs_1] $ ocrcheck
Status of Oracle Cluster Registry is as follows:
Version: 2
Total space (kbytes): 153496
Used space (kbytes): 3816
Available space (kbytes): 149680
ID: 497615595
Device/File Name:/dev/raw/raw9
Device/File integrity check succeeded
Device/File Name:/dev/raw/raw7
Device/File integrity check succeeded

Cluster registry integrity check succeeded

We can see that raw7 is the image ocr instead of raw8.

5. If a node is closed during ocr migration, you should execute the following command on the node after starting the closed node:

Ocrconfig-repair

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.