ORACLE 重新命名資料檔案
oracle datafile rename 可以採用下述兩種方法:
1. Alter tablespace data file rename
當資料庫處於執行狀態,可以選擇使用先將資料檔案所在表空間置於offline狀態,然後移動資料檔案並重敏命名資料庫檔案,最後將表空間置於online狀態。
We can use the alter tablespace renaume datafile
command, but the tablespace most be offline and you must re-name the data file
while the tablespace is offline:
step1. offline operation
alter tablespace userdata offline;
step2. move file in os command
mv /u01/oradata/CENHELP/userdata1.dbf /u02/oradata/CENHELP/userdata01.dbf
step3. rename operation
alter tablespace userdata rename datafile '/u01/oradata/CENHELP/userdata1.dbf' to /u02/oradata/CENHELP/userdata01.dbf'
step4. reset online
alter tablespace userdata online
2. Alter Database data file rename
這種方法當資料庫處於mount狀態的時候應用
We can also use the alter
database rename datafile command, but the data file must be renamed in the OS
(using the mv linux command) while the database is down and the rename data file
must be done while the database is un-opened (in the mount stage):
step1. stop db
shutdown immediate;
step2. move file to new place
mv '/u01/app/oracle/mysid/oldname.dbf' '/u01/app/oracle/mysid/newname.dbfF'
step3. mount db
sqlplus: startup mount;
step4. rename datafile
ALTER DATABASE
RENAME file
'/u01/app/oracle/mysid/oldname.dbf'
TO
'/u01/app/oracle/mysid/newname.dbf'
step5. open db
alter database open
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/21754115/viewspace-1152696/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle12C新特性-線上重新命名遷移資料檔案(一)Oracle
- Oracle 資料檔案回收Oracle
- 12c pdb線上移動資料檔案或者重新命名資料檔案
- Oracle資料檔案和臨時檔案的管理Oracle
- oracle資料庫的配置檔案Oracle資料庫
- oracle 線上rename資料檔案Oracle
- 修改Oracle資料檔名及資料檔案存放路徑Oracle
- oracle徹底刪除資料檔案Oracle
- oracle uncatalog資料庫備份檔案Oracle資料庫
- 不能重新命名檔案及不能刪除檔案和資料夾許可權設定
- 重新命名一千個檔案要多久? Name Mangler 快速為大量檔案重新命名
- oracle dg庫資料檔案空間不足Oracle
- Oracle10g刪除資料檔案Oracle
- 【Oracle】如何修改資料檔案和日誌檔案的路徑Oracle
- 12C關於CDB、PDB線上移動資料檔案、線上重新命名資料檔案的操作說明
- 批次檔案重新命名的方法
- Oracle案例11——Oracle表空間資料庫檔案收縮Oracle資料庫
- oracle11g修改資料檔案路徑Oracle
- oracle 普通表空間資料檔案壞塊Oracle
- oracle 修改資料檔案位置(路徑)(移動)Oracle
- 分析Oracle資料庫日誌檔案(三)EPOracle資料庫
- 分析Oracle資料庫日誌檔案(二)DOOracle資料庫
- 分析Oracle資料庫日誌檔案(一)HBOracle資料庫
- oracle 修改資料檔案路徑(四種方式)Oracle
- win10為什麼檔案不能重新命名_win10資料夾不能重新命名如何解決Win10
- Oracle使用RMAN將普通資料檔案轉成ASMOracleASM
- Oracle DG備庫手動管理新增資料檔案Oracle
- 用Java程式碼批量重新命名檔案Java
- 檔案批次重新命名軟體:Renamer——MacwMac
- 如何批次對檔案進行重新命名?
- A Better Finder Attributes Mac檔案重新命名工具Mac
- ORACLE RAC ASM資料檔案遷移OMF檔案報錯ORA-01276解決OracleASM
- 基於Docker部署Oracle、MySQL等資料庫的資料檔案持久化DockerOracleMySql資料庫持久化
- oracle dg庫資料檔案建立失敗ORA-01111Oracle
- linux下恢復誤刪除oracle的資料檔案LinuxOracle
- 【LOG】Oracle資料庫清理日誌、跟蹤檔案利器Oracle資料庫
- windows10如何對多個檔案重新命名_windows10批量重新命名檔案的方法Windows
- windows10如何對多個檔案重新命名_windows10批次重新命名檔案的方法Windows
- 【ASK_ORACLE】Oracle如何重新命名PDBOracle