|
C:\Documents and Settings\RequieM>sqlplus " / as sysdba"
SQL*Plus: Release 9.2.0.8.0 - Production on 星期一 3月 24 15:05:33 2008
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
连接到:
Oracle9i Enterprise Edition Release 9.2.0.8.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.8.0 - Production
SQL> select file#,checkpoint_change# from v$datafile_header;
FILE# CHECKPOINT_CHANGE#
---------- ------------------
1 165756
2 165756
3 165756
4 165756
SQL> select file#,checkpoint_change# from v$datafile;
FILE# CHECKPOINT_CHANGE#
---------- ------------------
1 165756
2 165756
3 165756
4 165756
SQL> alter database create datafile 4 as 'F:\oracle\oradata\MYDB\LOBTEST_1M.ORA'
2 /
数据库已更改。
SQL> select file#,checkpoint_change# from v$datafile;
FILE# CHECKPOINT_CHANGE#
---------- ------------------
1 165756
2 165756
3 165756
4 165756
SQL> select file#,checkpoint_change# from v$datafile_header;
FILE# CHECKPOINT_CHANGE#
---------- ------------------
1 165756
2 165756
3 165756
4 143112
由上面的例子可以看出,alter database create datafile 4 as .....的作用就是把数据文件中的SCN给降低了,这样你的数据库就可以前滚scn来恢复了~ |
|