rac中文名檔名新增到本地路徑解決辦法(ORA-01157)-非歸檔
oracle rac中文名新增到本地路徑解決辦法(ORA-01157)
故障模擬(生產環境勿測試)
在第二個節點上查詢出現錯誤
關閉庫,複製檔案
關閉庫,再次複製檔案至asm
mount庫
修改檔案路徑
關閉庫
資料庫已經正常
節點2檢視
故障模擬(生產環境勿測試)
點選(此處)摺疊或開啟
-
[grid@rac1-213-11 ~]# su - oracle
-
[grid@rac1-213-11 ~]$ sqlplus / as sysdba
- SQL>alter table netdata add datafile '測試DATA'
在第二個節點上查詢出現錯誤
點選(此處)摺疊或開啟
-
[oracle@rac2-213-12 trace]$ sqlplus / as sysdba
-
SQL*Plus: Release 11.2.0.4.0 Production on Sun Jul 1 22:07:21 2018
-
Copyright (c) 1982, 2013, Oracle. All rights reserved.
-
Connected to:
-
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
-
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
-
Data Mining and Real Application Testing options
-
SQL> select file_name from dba_data_files;
-
ERROR:
-
ORA-01157: cannot identify/lock data file 9 - see DBWR trace file
-
ORA-01110: data file 9: '/u01/app/oracle/product/11.2.0/db_1/dbs/測試DATA'
-
-
SQL> select file_name from dba_data_files;
-
ERROR:
-
ORA-01157: cannot identify/lock data file 9 - see DBWR trace file
- ORA-01110: data file 9: '/u01/app/oracle/product/11.2.0/db_1/dbs/嫻????ìDATA'
點選(此處)摺疊或開啟
-
--grd
-
[grid@rac1-213-11 ~]$ srvctl stop database -d devdb
-
-
-
--oracle
-
[oracle@rac1-213-11 dbs]$ cp "測試DATA" netdata05.dbf
-
-
-
mount 庫
-
--grid
-
[grid@rac1-213-11 ~]$ srvctl start database -d devdb -o mount
-
--oracle
-
[oracle@rac1-213-11 ~]$ sqlplus / as sysdba
-
-
-
SQL*Plus: Release 11.2.0.4.0 Production on Sun Jul 1 22:39:54 2018
-
Copyright (c) 1982, 2013, Oracle. All rights reserved.
-
-
Connected to:
-
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
-
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
-
Data Mining and Real Application Testing options
-
-
-
SQL> alter database rename file '/u01/app/oracle/product/11.2.0/db_1/dbs/測試DATA' to '/u01/app/oracle/product/11.2.0/db_1/dbs/netdata05.dbf';
-
- Database altered.
關閉庫,再次複製檔案至asm
點選(此處)摺疊或開啟
-
[grid@rac1-213-11 ~]$ srvctl stop database -d devdb
-
ASMCMD> cp /u01/app/oracle/product/11.2.0/db_1/dbs/netdata05.dbf .
-
copying /u01/app/oracle/product/11.2.0/db_1/dbs/netdata05.dbf -> +DATA1/DEVDB/DATAFILE/netdata05.dbf
- ASMCMD> quit
mount庫
點選(此處)摺疊或開啟
- [grid@rac1-213-11 ~]$ srvctl start database -d devdb -o mount
修改檔案路徑
點選(此處)摺疊或開啟
- SQL> alter database rename file '/u01/app/oracle/product/11.2.0/db_1/dbs/netdata05.dbf' to '+DATA1/DEVDB/DATAFILE/netdata05.dbf';
-
SQL>Database altered.
關閉庫
點選(此處)摺疊或開啟
-
[grid@rac1-213-11 ~]$ srvctl stop database -d devdb
-
啟動庫
- [grid@rac1-213-11 ~]$ srvctl start database -d devdb
資料庫已經正常
點選(此處)摺疊或開啟
-
[oracle@rac1-213-11 ~]$ sqlplus / as sysdba
-
SQL*Plus: Release 11.2.0.4.0 Production on Sun Jul 1 22:49:49 2018
-
Copyright (c) 1982, 2013, Oracle. All rights reserved.
-
Connected to:
-
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
-
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
-
Data Mining and Real Application Testing options
-
SQL> select open_mode from v$database;
-
OPEN_MODE
-
--------------------
- READ WRITE
節點2檢視
點選(此處)摺疊或開啟
-
[oracle@rac2-213-12 trace]$ sqlplus / as sysdba
-
-
SQL*Plus: Release 11.2.0.4.0 Production on Sun Jul 1 22:07:21 2018
-
-
Copyright (c) 1982, 2013, Oracle. All rights reserved
-
-
Connected to:
-
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
-
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
-
Data Mining and Real Application Testing options
-
-
-
-
-
SQL> /
-
-
-
FILE_NAME
-
--------------------------------------------------------------------------------
-
+DATA1/devdb/datafile/users.269.937046643
-
+DATA1/devdb/datafile/undotbs1.276.937046643
-
+DATA1/devdb/datafile/sysaux.277.937046643
-
+DATA1/devdb/datafile/system.268.937046635
-
+DATA1/devdb/datafile/undotbs2.267.937047083
-
+DATA1/devdb/datafile/netdata.284.937049537
-
+DATA1/devdb/datafile/netdata02.dbf
-
+DATA1/devdb/datafile/netdata03.dbf
- +DATA1/devdb/datafile/netdata05.dbf
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/24486203/viewspace-2157171/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- rac歸檔模式/非歸檔模式下檔案建至本地儲存修復方法-ORA-01157模式
- 非歸檔資料檔案誤刪除解決辦法
- 更改archive log 歸檔路徑和歸檔檔名稱Hive
- XML檔案中url路徑中&失效解決辦法XML
- Oracle RAC 歸檔與非歸檔切換Oracle
- 非歸檔模式下的資料檔案路徑修改模式
- Inet控制元件中上載的路徑、檔名中出現空格的解決辦法 (轉)控制元件
- 歸檔日誌多歸檔路徑 duplex
- 更改ORACLE歸檔路徑及歸檔模式Oracle模式
- Zuul上傳檔案,中文檔名亂碼解決辦法Zuul
- 改變歸檔檔案路徑
- 非歸檔下日誌檔案丟失的處理辦法
- oracle 歸檔/非歸檔Oracle
- 【undo】undo 意外刪除處理辦法(非歸檔)
- oracle歸檔路徑剖析及ORA-02097、ORA-16018的解決辦法Oracle
- 副檔名為.chm的檔案打不開的解決辦法
- 修改歸檔日誌路徑
- Win10系統下檔名或檔案路徑過長無法刪除怎麼解決Win10
- ORACLE RAC模式下歸檔模式和非歸檔模式的切換方法Oracle模式
- 檔案無法粉碎解決辦法
- 更改oracle10g的歸檔模式和歸檔路徑Oracle模式
- dataguard歸檔路徑的問題
- Oracle資料庫頻繁歸檔問題的解決辦法Oracle資料庫
- Oracle歸檔模式和非歸檔模式Oracle模式
- 非歸檔模式改為歸檔模式模式
- 非歸檔模式下資料檔案被誤刪的解決方法模式
- oracle單機改變歸檔路徑Oracle
- oracle資料庫更改歸檔路徑Oracle資料庫
- [Archive]更改ORACLE預設歸檔路徑HiveOracle
- 修改db2的歸檔路徑DB2
- rac 環境新增資料檔案誤新增到檔案系統,正確解決方法
- 【Oracle】歸檔日誌管理-設定歸檔日誌路徑以及歸檔日誌冗餘Oracle
- 歸檔和非歸檔模式下ORA-01145錯誤的解決方法模式
- Oracle 歸檔與非歸檔模式的更改Oracle模式
- ORA-00257 (線上更改歸檔路徑,刪除歸檔日誌)
- 歸檔模式與非歸檔模式的切換模式
- Oracle歸檔模式與非歸檔模式設定Oracle模式
- ORACLE資料庫歸檔改為非歸檔Oracle資料庫