Oracle移机
一。Oracle817用svrmgrl,Oracle9以上用sqlplus '/as dba'進(jìn)入管理界面:
?shutdown immediate
二。找到數(shù)據(jù)庫(kù)的所有文件,并用操作系統(tǒng)備份數(shù)據(jù)庫(kù)文件
1. init.ora
2. control file
3. select * from v$datafile
4. select * from? v$logfile
三。復(fù)制到新機(jī)器,如果文件目錄完全一致,則
1. copy
2. alter database recover database until cancel;
2. alter database open resetlogs;
四。復(fù)制到新機(jī)器,如果文件的位置與舊機(jī)器不一樣,則需要修改
1. copy new location
2. startup mount
3. alter database rename file 'xxxx' to 'yyyy';
4. alter database recover database until cancel;
5. alter database recover cancel;
6. alter database open resetlogs;
7. alter database open
五。完成。
總結(jié)
- 上一篇: 预测人民币在2006年最终的收盘价
- 下一篇: 今天刚申请,呵呵