操作系統
Oracle Version:
下為非歸檔模式的遷移過程
D:>sqlplus
SQL*Plus: Release
Copyright (c)
已連接到空閒例程
SQL> select * from v$datafile;
select * from v$datafile
*
ERROR位於第
ORA
SQL> startup;
ORACLE 例程已經啟動
Total System Global Area
Fixed Size
Variable Size
Database Buffers
Redo Buffers
數據庫裝載完畢
數據庫已經打開
SQL> select name from v$datafile;
NAME
E:ORACLESONBWEBSYSTEM
NAME
E:ORACLESONBWEBSDE
已選擇
SQL> select name from v$controlfile;
NAME
E:ORACLESONBWEBCONTROL
SQL> select * from v$logfile;
GROUP# STATUS TYPE
MEMBER
E:ORACLESONBWEBREDO
E:ORACLESONBWEBREDO
E:ORACLESONBWEBREDO
SQL> shutdown immediate;
數據庫已經關閉
已經卸載數據庫
ORACLE 例程已經關閉
SQL> host copy E:ORACLESONBWEB*
E:ORACLESONBWEBCWMLITE
SQL> host copy E:ORACLESONBWEB*
E:ORACLESONBWEBHOUSEWEB
SQL> host copy E:ORACLESONBWEB*
E:ORACLESONBWEBCONTROL
SQL> host copy E:ORACLESONBWEB*
E:ORACLESONBWEBREDO
SQL> create pfile from spfile;
文件已創建
編輯生成的pfile即INIT<SID>
SQL> create spfile from pfile;
文件已創建
SQL> startup mount;
ORACLE 例程已經啟動
Total System Global Area
Fixed Size
Variable Size
Database Buffers
Redo Buffers
數據庫裝載完畢
SQL> alter database rename file
數據庫已更改
SQL> alter database rename file
數據庫已更改
SQL> alter database rename file
數據庫已更改
SQL> alter database rename file
數據庫已更改
SQL> alter database rename file
數據庫已更改
SQL> alter database rename file
數據庫已更改
SQL> alter database rename file
數據庫已更改
SQL> alter database rename file
數據庫已更改
SQL> alter database rename file
alter database rename file
*
ERROR位於第
ORA
ORA
ORA
OSD
O/S
SQL> alter database rename file
數據庫已更改
SQL> alter database rename file
數據庫已更改
SQL> alter database rename file
數據庫已更改
SQL> alter database rename file
數據庫已更改
SQL> alter database rename file
數據庫已更改
SQL> alter database rename file
數據庫已更改
SQL> alter database rename file
數據庫已更改
臨時文件更改無效
SQL> startup;
ORA
SQL> shutdown immediate;
ORA
已經卸載數據庫
ORACLE 例程已經關閉
SQL> startup;
ORACLE 例程已經啟動
Total System Global Area
Fixed Size
Variable Size
Database Buffers
Redo Buffers
數據庫裝載完畢
數據庫已經打開
SQL> select * from v$tempfile;
FILE# CREATION_CHANGE# CREATION_T TS# RFILE# STATUS ENABLED
BYTES BLOCKS CREATE_BYTES BLOCK_SIZE
NAME
E:ORACLESONBWEBTEMP
SQL> alter database tempfile
數據庫已更改
SQL> alter tablespace temp add tempfile
ize
表空間已更改
SQL> select * from v$tempfile;
FILE# CREATION_CHANGE# CREATION_T TS# RFILE# STATUS ENABLED
BYTES BLOCKS CREATE_BYTES BLOCK_SIZE
NAME
D:ORACLEORADATASONBWEBTEMP
本文來自CSDN博客
SQL>
遷移完成.
From:http://tw.wingwit.com/Article/program/Oracle/201311/17411.html