亚洲激情专区-91九色丨porny丨老师-久久久久久久女国产乱让韩-国产精品午夜小视频观看

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

Oracle Study之--Oracle 11gR2訪問ASM disk group錯誤

發布時間:2020-06-30 17:24:28 來源:網絡 閱讀:2153 作者:客居天涯 欄目:關系型數據庫

Oracle Study之--Oracle 11gR2訪問ASM disk group錯誤

系統環境:RedHat EL6

Oracle:   Oracle 11gR2

    在Oracle 11gR2,做文件系統向ASM磁盤組遷移的項目中,Oracle用戶無法訪問ASM磁盤組,在Oracle 11gR2中grid用戶管理ASM instance,經檢查發現以下錯誤

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

---- 對于$ORACLE_HOME/bin/oracle的可執行文件,grid用戶應該有權限訪問,修改權限:

[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
修改權限:
[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 !

向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

绵阳市| 安顺市| 武夷山市| 汨罗市| 芜湖县| 邛崃市| 阿拉善盟| 松滋市| 余庆县| 隆德县| 侯马市| 阿荣旗| 藁城市| 嘉荫县| 缙云县| 普兰店市| 东台市| 嵊泗县| 扎鲁特旗| 门头沟区| 礼泉县| 平乐县| 建湖县| 巴彦县| 嘉义市| 孝昌县| 乌审旗| 贵州省| 普兰店市| 宜良县| 巍山| 九江市| 新龙县| 平湖市| 东兰县| 布尔津县| 诸城市| 呼图壁县| 上饶市| 益阳市| 宜宾市|