ASM與檔案系統之間copy資料檔案--檔案系統到ASM
同樣也是兩種方式
dbms_file_transfer或者rman
這個文章只是說了rman的方式,dbms_file_transfer方式可以參考"ASM與檔案系統之間copy資料檔案--ASM到檔案系統"一文
GoalThis note will guide a DBA in moving a datafile currently located on file system to an ASM diskgroup.
SolutionHow to move a datafile from a file system to ASM
Moving a datafile from the file system can be achived in two ways.
i. While the database is shutdown (in mount stage).
ii. While the database is running (with the selected tablespace offline).
-------------------------------------------------------------------------------------------------------------------------------
i. While the database is shutdown (in mount stage).
Moving oracle datafile while the database is in mount stage is performed in the following way:
1. Shutdown and mount the database.
SQL> shutdown immediate;
SQL> startup mount;
2. Ensure you have enough space in the ASM diskgroup to copy the datafile.
First identify the size of the datafile you wish to move.
FILE# NAME FILE_SIZE_MB
----- ---------------------------- --------------
...
4 /oradata/PROD/users01.dbf 2500
...
* In this example we will be moving users01.dbf
[oracle@linux] export ORACLE_SID=+ASM
SQL> select NAME, STATE, TOTAL_MB, FREE_MB from v$asm_diskgroup;
NAME STATE TOTAL_MB FREE_MB
------------------------------ ----------- ---------- ----------
DGROUP1 MOUNTED 100 3
DGROUP2 MOUNTED 4882 4830
3. Connect to RMAN and copy the datafile from the filesystem to the select ASM diskgroup.
RMAN> copy datafile 4 to '+DGROUP2';
Starting backup at 2006/09/05 12:14:23
using target database controlfile instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=31 devtype=DISK
channel ORA_DISK_1: starting datafile copy
input datafile fno=00004 name=/oradata/PROD/users01.dbf
output filename=+DGROUP2/PROD/datafile/users01.258.600351265 tag=TAG20060905T121424 recid=10 stamp=600351264
channel ORA_DISK_1: datafile copy complete, elapsed time: 00:05:01
Finished backup at 2006/09/05 12:19:24
4. Update the controlfile with the new location of the datafile.
RMAN> switch datafile 4 to copy;
datafile 4 switched to datafile copy "+DGROUP2/PROD/datafile/users01.258.600351265".
5. The file is now if the new location.
SQL> select name from v$datafile;NAME
--------------------------------------------------------------------------------
..
+DGROUP2/PROD/datafile/users01.258.600351265
..
6. The database may now be opened.
While the database is running (with the select tablespace offline).
In order to move a datafile on a running active database the tablespace where the datafile resides must be placed offline.
1. Identify the tablespace which contains the datafile and offline the tablespace.
TABLESPACE_NAME FILE_NAME
------------------ ------------------------------
USERS /oradata/RMAN/users01.dbf
SQL> alter tablespace USERS offline;
6. After you have successfully completed the above steps (2 -5) place the tablespace online;
The datafile has now been successfully moved to the ASM diskgroup.
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/7191998/viewspace-1102030/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 將ASM裡面的檔案copy到檔案系統ASM
- 移動資料檔案從ASM到檔案系統ASM
- 如何遷移ASM資料檔案到檔案系統ASM
- asm拷貝檔案到檔案系統ASM
- 使用shell指令碼及asm cp或RMAN copy批量將資料檔案從ASM拷貝到檔案系統指令碼ASM
- 移動資料檔案從檔案系統到ASM磁碟組中ASM
- 利用RMAN在檔案系統與ASM之間遷移資料庫ASM資料庫
- 從ASM磁碟中複製檔案到本地檔案系統ASM
- ASM檔案系統遷移ASM
- asm 檔案系統遷移ASM
- 把檔案系統的資料檔案遷移到ASM儲存ASM
- 使用RMAN遷移檔案系統資料庫到ASM資料庫ASM
- 使用RMAN在ASM和檔案系統之間複製資料ASM
- 使用RMAN在ASM和檔案系統之間拷貝資料ASM
- 10G下從ASM複製檔案到檔案系統ASM
- 資料庫從檔案系統遷移到ASM資料庫ASM
- 用rman從檔案系統遷移資料庫到asm資料庫ASM
- 將資料庫從ASM遷移到檔案系統資料庫ASM
- 將資料庫從檔案系統遷移到ASM資料庫ASM
- 從檔案系統遷移到ASM上ASM
- oralce 從檔案系統遷移到ASMASM
- 採用DUPLICATE 把asm資料庫複製到檔案系統ASM資料庫
- 四、用rman從檔案系統遷移資料庫到asm資料庫ASM
- oracle 將表空間下的資料檔案從檔案系統遷移到ASM磁碟組OracleASM
- ASM叢集檔案系統ACFS(ASM Cluster File System)ASM
- xbbed一鍵讀取ASM block到檔案系統ASMBloC
- 12c複製 RAC ASM中的密碼檔案到檔案系統ASM密碼
- 使用RAM將檔案系統遷移到ASMASM
- 遷移檔案系統管理下的db到asm下ASM
- 利用RMAN將資料庫從檔案系統遷移到ASM資料庫ASM
- 遷移資料庫檔案到ASM資料庫ASM
- 將spfile從ASM裡遷移到檔案系統ASM
- 移動資料檔案、系統表空間檔案、臨時表空間檔案
- xtts from檔案系統到ASM儲存(dbms_file_transfer)TTSASM
- ASM 檔案與本地檔案的轉換ASM
- 【ASM】ASM資料檔案和OS檔案(FILESYSTEM)轉移方法總結ASM
- 資料庫從檔案系統轉移至ASM實驗記錄資料庫ASM
- 檔案和檔案系統