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模式
- XML檔案中url路徑中&失效解決辦法XML
- Win10系統下檔名或檔案路徑過長無法刪除怎麼解決Win10
- 檔案無法粉碎解決辦法
- 【Oracle】歸檔日誌管理-設定歸檔日誌路徑以及歸檔日誌冗餘Oracle
- 關於python操作帶有中文檔名報錯的解決辦法Python
- jvm:jmap無法dump檔案的解決辦法JVM
- 修改Oracle資料檔名及資料檔案存放路徑Oracle
- win10副檔名太長怎麼辦_win10檔名太長無法刪除的解決方法Win10
- RAC開啟資料庫歸檔資料庫
- Go基礎:路徑、檔名和包名的關係Go
- mac檔案刪除不了的解決辦法Mac
- Maven 本地倉庫明明有jar包,pom檔案還是報錯解決辦法MavenJAR
- DM7配置本地歸檔
- Rman在run命令塊裡臨時設定歸檔目錄,歸檔日誌能否恢復主要看預設的歸檔路徑
- chrome上傳圖片 路徑為c:/fakepath的解決辦法Chrome
- windows10無法訪問指定裝置路徑或檔案該怎麼解決Windows
- Oracle RAC 11gR2開啟歸檔Oracle
- linux下解壓部分zip檔案存在亂碼解決辦法Linux
- win10無法訪問指定裝置路徑或檔案怎麼辦Win10
- 在Spring Boot中從類路徑載入檔案解決方案Spring Boot
- Oracle設定多個歸檔路徑生成多份歸檔日誌,Rman備份時也只備份其中的一份歸檔日誌Oracle
- Java IO 建立檔案解決檔名重複問題Java
- win10提示檔案格式或副檔名無效怎麼辦_win10 excel檔案格式或副檔名無效的解決方法Win10Excel
- win10提示找不到指定檔案,請確定指定的路徑及檔名是否正確如何解決Win10
- 上傳檔案(圖片)失敗 error=6 找不到臨時檔案解決辦法Error
- c#匯出檔案,檔名中文亂碼解決方法C#
- gcc g++ 新增標頭檔案路徑和庫檔案路徑的方法GC
- idea springboot 配置檔案不自動提示的終結解決辦法IdeaSpring Boot
- Excel開啟csv檔案出現亂碼的解決辦法Excel
- 歸檔路徑更改後,如何對資料庫進行恢復(轉)資料庫
- Linux檔案的路徑定位-相對路徑和絕對路徑Linux
- rac使用預設閃回區歸檔空間滿
- 根據ABAP BAdI definition名稱找到SPRO裡配置路徑的辦法
- 檔案路徑是否正確
- 017-html檔案路徑HTML
- 【Python】配置檔案配置路徑Python
- 回顧Node檔案路徑