真实的国产乱ⅩXXX66竹夫人,五月香六月婷婷激情综合,亚洲日本VA一区二区三区,亚洲精品一区二区三区麻豆

成都創(chuàng)新互聯(lián)網(wǎng)站制作重慶分公司

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)站標(biāo)題:OracleStudy之--Oracle11gR2訪問ASMdiskgroup錯(cuò)誤
當(dāng)前網(wǎng)址:http://weahome.cn/article/igejjc.html

其他資訊

在線咨詢

微信咨詢

電話咨詢

028-86922220(工作日)

18980820575(7×24)

提交需求

返回頂部