Oracle11gocr redundancy configuration

Source: Internet
Author: User

Oracle 11g ocr redundancy configuration

During the 11g installation process, only one dg can be specified by default for storage: crs, voting
However, oracle officially recommends that you configure the settings as follows:

1. When no image is configured for ocr or redundant storage, there are at least three ocr tasks.
If the underlying storage is not RAID, oracle recommends image OCR to avoid spof.

■ At least two OCR locations if OCR is configured on an Oracle ASM disk group.
You shoshould configure OCR in two independent disk groups. Typically this is
Work area and the recovery area.

2. If ocr is configured on the oracle asm disk group, we recommend that you have at least two ocr locations.
Ocr should be configured in two separate disk groups

■ At least two OCR locations if OCR is configured on mirrored hardware or
Third-party mirrored volumes.

3. If ocr is configured on an image hardware or on a 3rd-party image volume, we recommend that you have at least two ocr redundancy.

Eg: add multiple ocr (up to 5)
Ocrconfig-add + asm_disk_group | file_name

Ocrconfig-delete + ASM_disk_group | file_name

[Root @ vmrac1 ~] # Ocrcheck
Status of Oracle Cluster Registry is as follows:
Version: 3
Total space (kbytes): 262120
Used space (kbytes): 3540
Available space (kbytes): 258580
ID: 1902812549
Device/File Name: + CRS
Device/File integrity check succeeded

Device/File not configured

Device/File not configured

Device/File not configured

Device/File not configured

Cluster registry integrity check succeeded

Logical upload uption check succeeded

[Root @ vmrac1 ~] # Ocrconfig-add + ARCH -------------------------- add a new ocr + ARCH

[Root @ vmrac1 ~] # Ocrcheck ------------------------------ added successfully after checking
Status of Oracle Cluster Registry is as follows:
Version: 3
Total space (kbytes): 262120
Used space (kbytes): 3540
Available space (kbytes): 258580
ID: 1902812549
Device/File Name: + CRS
Device/File integrity check succeeded
Device/File Name: + ARCH
Device/File integrity check succeeded

Device/File not configured

Device/File not configured

Device/File not configured

Cluster registry integrity check succeeded

Logical upload uption check succeeded

In the same way, add several dg S.

[Root @ vmrac1 ~] # Ocrconfig-add + DATANEW
[Root @ vmrac1 ~] # Ocrcheck
Status of Oracle Cluster Registry is as follows:
Version: 3
Total space (kbytes): 262120
Used space (kbytes): 3540
Available space (kbytes): 258580
ID: 1902812549
Device/File Name: + CRS
Device/File integrity check succeeded
Device/File Name: + ARCH
Device/File integrity check succeeded
Device/File Name: + DATANEW
Device/File integrity check succeeded

Device/File not configured

Device/File not configured

Cluster registry integrity check succeeded

Logical upload uption check succeeded

[Root @ vmrac1 ~] # Ocrconfig-add + FLASH
[Root @ vmrac1 ~] # Orcheck
-Bash: orcheck: command not found
[Root @ vmrac1 ~] # Ocrcheck
Status of Oracle Cluster Registry is as follows:
Version: 3
Total space (kbytes): 262120
Used space (kbytes): 3540
Available space (kbytes): 258580
ID: 1902812549
Device/File Name: + CRS
Device/File integrity check succeeded
Device/File Name: + ARCH
Device/File integrity check succeeded
Device/File Name: + DATANEW
Device/File integrity check succeeded
Device/File Name: + FLASH
Device/File integrity check succeeded

Device/File not configured

Cluster registry integrity check succeeded

Logical upload uption check succeeded

[Root @ vmrac1 ~] # Ocrcheck
Status of Oracle Cluster Registry is as follows:
Version: 3
Total space (kbytes): 262120
Used space (kbytes): 3540
Available space (kbytes): 258580
ID: 1902812549
Device/File Name: + CRS
Device/File integrity check succeeded
Device/File Name: + ARCH
Device/File integrity check succeeded
Device/File Name: + DATANEW
Device/File integrity check succeeded
Device/File Name: + FLASH
Device/File integrity check succeeded

Device/File not configured

Cluster registry integrity check succeeded

Logical upload uption check succeeded

[Root @ vmrac1 ~] # Ocrcheck-local
Status of Oracle Local Registry is as follows:
Version: 3
Total space (kbytes): 262120
Used space (kbytes): 2728
Available space (kbytes): 259392
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

------------ Let's take a look at the ocr configuration. The configuration file is located in/etc/oracle/ocr. loc in Linux.

[Root @ vmrac1 ~] # Cd/etc/oracle
[Root @ vmrac1 oracle] # ls
Lastgasp ocr. loc ocr. loc. orig olr. loc olr. loc. bkp olr. loc. orig oprocd scls_scr setasmgid

[Root @ vmrac1 oracle] # more ocr. loc
# Device/file getting replaced by device + FLASH
Ocrconfig_loc = + CRS
Ocrw.config_loc = + ARCH ---------- added ocr image Group
Ocrconfig_loc3 = + DATANEW
Ocrconfig_loc4 = + FLASH
Local_only = false


[Root @ vmrac1 oracle] # more olr. loc
Olrconfig_loc =/u02/app/11.2.0.3/grid/cdata/vmrac1.olr
Crs_home =/u02/app/11.2.0.3/grid


----------- In addition to adding a new ocr, we can also replace the old ocr dg:
[Root @ vmrac1 oracle] # ocrconfig-replace + ARCH-replacement + FLASH
[Root @ vmrac1 oracle] # ocrcheck
Status of Oracle Cluster Registry is as follows:
Version: 3
Total space (kbytes): 262120
Used space (kbytes): 3540
Available space (kbytes): 258580
ID: 1902812549
Device/File Name: + CRS
Device/File integrity check succeeded
Device/File Name: + FLASH
Device/File integrity check succeeded

Device/File not configured

Device/File not configured

Device/File not configured

Cluster registry integrity check succeeded

Logical upload uption check succeeded

[Root @ vmrac1 oracle] # ocrconfig-replace + FLASH-replacement + ARCH
[Root @ vmrac1 oracle] # ocrcheck
Status of Oracle Cluster Registry is as follows:
Version: 3
Total space (kbytes): 262120
Used space (kbytes): 3540
Available space (kbytes): 258580
ID: 1902812549
Device/File Name: + CRS
Device/File integrity check succeeded
Device/File Name: + ARCH
Device/File integrity check succeeded

Device/File not configured

Device/File not configured

Device/File not configured

Cluster registry integrity check succeeded

Logical upload uption check succeeded

[Root @ vmrac1 oracle] #

--------------------- Note: if there is only one ocr dg, the above command will report an error:
[Root @ vmrac1 oracle] # ocrcheck
Status of Oracle Cluster Registry is as follows:
Version: 3
Total space (kbytes): 262120
Used space (kbytes): 3540
Available space (kbytes): 258580
ID: 1902812549
Device/File Name: + CRS
Device/File integrity check succeeded

Device/File not configured

Device/File not configured

Device/File not configured

Device/File not configured

Cluster registry integrity check succeeded

Logical upload uption check succeeded

[Root @ vmrac1 oracle] # ocrconfig-replace + CRS-replacement + ARCH
PROT-28: Cannot delete or replace the only configured Oracle Cluster Registry location
[Root @ vmrac1 oracle] #

Correct practice:
If the current ocr number is less than 2, the above ocr replacement command will fail.
If there is only one ocr, we can add one before deleting the original ocr.

# Ocrconfig-add new_OCR_location
# Ocrconfig-delete current_OCR_location

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.