OracleStudy之--Oracle11gR2訪問ASMdiskgroup錯(cuò)誤

Oracle Study之--Oracle 11gR2訪問ASM disk group錯(cuò)誤

成都創(chuàng)新互聯(lián)公司IDC提供業(yè)務(wù):樂山服務(wù)器托管,成都服務(wù)器租用,樂山服務(wù)器托管,重慶服務(wù)器租用等四川省內(nèi)主機(jī)托管與主機(jī)租用業(yè)務(wù);數(shù)據(jù)中心含:雙線機(jī)房,BGP機(jī)房,電信機(jī)房,移動(dòng)機(jī)房,聯(lián)通機(jī)房。

系統(tǒng)環(huán)境:RedHat EL6

Oracle:   Oracle 11gR2

    在Oracle 11gR2,做文件系統(tǒng)向ASM磁盤組遷移的項(xiàng)目中,Oracle用戶無法訪問ASM磁盤組,在Oracle 11gR2中g(shù)rid用戶管理ASM instance,經(jīng)檢查發(fā)現(xiàn)以下錯(cuò)誤

SQL> select name,state from v$asm_diskgroup;
NAME                           STATE
------------------------------ -----------
DATA                           MOUNTED
FRA                            MOUNTED

SQL> show parameter control

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
control_file_record_keep_time        integer     7
control_files                        string      +FRA
control_management_pack_access       string      DIAGNOSTIC+TUNING
SQL> 

控制文件遷移,Oracle用戶無法訪問FRA磁盤組:
RMAN> restore controlfile from '/u01/app/oracle/oradata/prod/control01.ctl';
Starting restore at 15-MAR-16
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=21 device type=DISK

RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of restore command at 03/15/2016 17:48:57
ORA-19504: failed to create file "+FRA"
ORA-17502: ksfdcre:4 Failed to create file +FRA
ORA-15001: diskgroup "FRA" does not exist or is not mounted
ORA-15055: unable to connect to ASM instance
ORA-12547: TNS:lost contact
ORA-19600: input file is control file  (/u01/app/oracle/oradata/prod/control01.ctl)
ORA-19601: output file is control file  (+FRA)

RMAN> restore controlfile from '/u01/app/oracle/oradata/prod/control01.ctl';
Starting restore at 15-MAR-16
using channel ORA_DISK_1

channel ORA_DISK_1: copied control file copy
output file name=+FRA/prod/controlfile/current.256.906573439
Finished restore at 15-MAR-16

解決方案:

1、查看$ORACLE_HOME/bin/oracle

[oracle@node1 ~]$ ls -l /u01/app/oracle/product/11.2.0/db_1/bin/oracle

-rwxr-x--x 1 oracle asmadmin 173515991 Mar 15 14:14 /u01/app/oracle/product/11.2.0/db_1/bin/oracle

---- 對(duì)于$ORACLE_HOME/bin/oracle的可執(zhí)行文件,grid用戶應(yīng)該有權(quán)限訪問,修改權(quán)限:

[root@node1 ~]# chmod 6751 /u01/app/oracle/product/11.2.0/db_1/bin/oracle


[oracle@node1 ~]$ ls -l /u01/app/oracle/product/11.2.0/db_1/bin/oracle
-rwsr-s--x 
1 oracle asmadmin 173515991 Mar 15 14:14 /u01/app/oracle/product/11.2.0/db_1/bin/oracle

2、查看$GRID_HOME/bin/oracle
[root@node1 ~]# ls -l /u01/11.2.0/grid/bin/oracle

-rwxrwxr-x 1 grid oinstall 152462814 Mar 15 14:00 /u01/11.2.0/grid/bin/oracle
修改權(quán)限:
[root@node1 ~]# chmod +s /u01/11.2.0/grid/bin/oracle


[root@node1 ~]# ls -l /u01/11.2.0/grid/bin/oracle
-rwsrwsr-x 1 grid oinstall 152462814 Mar 15 14:00 /u01/11.2.0/grid/bin/oracle
[root@node1 ~]# 

------ 至此,問題解決,Oracle用戶可以正常訪問ASM diskgroup !

網(wǎng)頁名稱:OracleStudy之--Oracle11gR2訪問ASMdiskgroup錯(cuò)誤
網(wǎng)頁鏈接:http://bm7419.com/article22/igejjc.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供建站公司、網(wǎng)站導(dǎo)航、外貿(mào)建站服務(wù)器托管、App設(shè)計(jì)定制網(wǎng)站

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場,如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來源: 創(chuàng)新互聯(lián)

h5響應(yīng)式網(wǎng)站建設(shè)