zoukankan      html  css  js  c++  java
  • How to increase System Change Number by manual

    How to jump SCN  by manual ,  this could be a problem: 1. We can bump up the SCN by using the procedure from Note: 386830.1
    Bump the system SCN on the primary database to fix any metadata index corruptions for both
    primary and physical standby databases. Set the following parameters in the init.ora and restart
    the database in restricted mode to bump the system SCN of the primary database.
    For Real Application Clusters, perform the steps on only one node of the cluster. 
    
    Init.ora syntax:
    
    *._allow_error_simulation = TRUE
    *._smu_debug_mode = 268435456
    
    If using an spfile, Oracle recommends creating a temporary init.ora using the CREATE PFILE SQL command.
    
    SQL> create pfile='/tmp/initTMP.ora' from spfile='';
    
    Then add the parameters to this temporary file.
    
    To use the temporary init.ora file when starting the instance, include the 'PFILE' clause with the STARTUP SQL command i.e.
    
    SQL> startup restrict pfile=
    
    WARNING: These parameters should only be used for this fix and must be removed immediately afterwards in step 2.
    If the above parameters are used through multiple database restarts, a complete database rebuild will be required.
    
    To know the system SCN has been bumped, monitor the instance's alert.log for the following message:
    advance SCN to wrap base xxxx
    
    Where xxx represents the new wrap SCN.
    2.EVENT: ADJUST_SCN - Quick Reference (Doc ID 30681.1)
    WORKAROUND:
    -----------
    Searched in webiv (ora-1555, ora-604 see note:1063408.6 ) suggests workaround
    is to adjust serial number using event
    
    Will try : (30681.1)
    
    alter session set events 'IMMEDIATE trace name ADJUST_SCN level 1';
    
    ora-600 [2256][0][1073741824][1][293672646]
    
    ERROR:
      ORA-600 [2256][a][b][c][d][e]
    
    VERSIONS:
      versions 7.3.X, 8.0.X, 8.1.X
    
    DESCRIPTION:
      This exception indicates that you attempted to ADJUST_SCN but the level
      supplied would be less that the current SCN.
    
    ARGUMENTS:
      a.  Requested SCN WRAP
      b.  Requested SCN BASE
      c.  Current SCN WRAP
      d.  Current SCN BASE = [293672646]
    
    *4 = 1174690584
    
    will try level 2
    
    ora-600 2256[0][2147483648][1][293672646]
    
    level 3
    
    ora-600 2256[0][3221225472][1][293672646]
    
    Now, we increase the SCN on DST7 by using the ADJUST_SCN event -
    (Note: do not use this event outside of your test environment)
    
    set the following hidden parameter in init.ora on DST7 database and bounce
    the database.
      _allow_error_simulation=true
    
    Now, the SCN is increased by doing -
      alter system set events 'immediate trace name adjust_scn level ';
    
    where  translates to (n*0x40000000) as the target SCN value. ie. n = 1
    will set the SCN as 0x0000.40000000. For the testcase pick a value that is
    larger than the current SCN on both databases by atleast 100000 SCNs (our
    earlier SCN adjust threshold value).
    
     alter system set events 'immediate trace name adjust_scn level 2';
      select to_char(current_scn, 'xxxxxxxxxxxx') from v$database;
    3.Note 552438.1 How To Adjust the SCN using parameter _MINIMUM_GIGA_SCN
    Parameter: MINIMUM_GIGA_SCN
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    @Oracle8i:	HIDDEN
    @Identifier:	kcmmsn
    @Versions:	See 
    
    
     Values:
     Related:
    
    Description:	Minimum SCN to start with in 2^30 units
    ~~~~~~~~~~~~
    
    Articles:	
           
         	Overview of Init.Ora Parameter Reference notes
  • 相关阅读:
    修改MSSql数据库名
    系统更新0x8DDD0007号错误解决方案
    win7密匙 win7永久激活工具
    Ps制作的立体字效果
    PS合成人物与风景
    word打不开_如何删除normal.dot
    查看自己的IP地址和网卡的MAC地址
    char varchar nvarchar区别
    配置节点简单使用
    线程相关的概念
  • 原文地址:https://www.cnblogs.com/macleanoracle/p/2967306.html
Copyright © 2011-2022 走看看