如何更改Oracle数据库的SCN?
【IT168 服务器学院】很多时候,我们需要调整数据库系统的SCN值,有的是为了恢复的需要,如为了解决ORA-600 2662错误.
而以下修改纯属无聊:
1.通过oradebug修改SCN
[oracle@jumper oracle]$ sqlplus "/ as sysdba" SQL*Plus: Release 9.2.0.4.0 - Production on Wed Dec 21 10:33:35 2005 Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
SQL> col a for 999999999999999 A SQL> oradebug setmypid |
2.确认更改
SQL> select dbms_flashback.get_system_change_number a from dual; A SQL> oradebug DUMPvar SGA kcsgscn_ System altered. SQL> select CHECKPOINT_CHANGE# a from v$datafile; A |
3.此时无法正常关闭数据库
Oracle会检测到异常:
SQL> shutdown immediate; |
0
相关文章