|
[ controll file rename ]
1. database shutdown
SVRMGR> shutdown
2. controll file copy
# copy /old-path/oldfile-name /new-path/newfile-name (os»óÀÇ ÀÛ¾÷)
3. init<SID>.ora file ¼öÁ¤
# vi init<SID>.ora --- controllÀÇ À§Ä¡¸¦ ÁöÁ¤ÇÑ ÆĶó¸ÞŸ¿¡ »õ·Î¿î path·Î ÀÔ·Â
4. database startup
SVRMGR> startup
5. È®ÀÎ
SVRMGR> select *from v$controllfile;
[ Tablespace(datafile) rename ]
1. database startup
SVRMGR> startup
2. datafile offline
SVRMGR> alter tablespace <tablespace_name> offline;
3. datafile copy
# copy /old-path/oldfile-name /new-path/newfile-name (os»óÀÇ ÀÛ¾÷)
4. datafile rename
SVRMGR> alter database <tablespace_name> rename file '/old-path/oldfile-name'
to '/new-path/newfile-name';
5. database open and tablespace online
SVRMGR> alter database open;
SVRMGR> alter tablespace <tablespace_name> online;
6. È®ÀÎ
SVRMGR> select name, status from v$datafile;
7. unix command¿¡ ÀÇÇÑ old datafile »èÁ¦
[ system datafile ¹× logfile ]
1. database shutdown ( immeidate³ª abort·Î ÇÏ¸é ¾ÈµÊ)
SVRMGR> shutdown
2. unix command¿¡ ÀÇÇÑ »õÀ§Ä¡¿¡ copy
# copy /old-path/oldfile-name /new-path/newfile-name (os»óÀÇ ÀÛ¾÷)
3. mount database
SVRMGR> startup mount
4. rename
SVRMGR> alter database rename file '/old-full-path/old-filename'
to '/new-full-path/new-filename';
5. open database
SVRMGR> alter database open;
6. È®ÀÎ
SVRMGR> select name, status from v$datafile;
SVRMGR> select * from v$log;
SVRMGR> select * from v$logfile;
7. unix command¿¡ ÀÇÇÑ old logfile »èÁ¦
|