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
  • 相关阅读:
    mybatis N+1问题解决
    Best Time to Buy and Sell Stock
    119. Pascal's Triangle II
    HBuilder打包ios
    关于JavaScript/TypeScript中的setTimeout和setInterval
    白色透明渐变css
    AntV 在小程序中的使用
    AntV 在h5页面中的使用
    js处理后端返回超过16位大数字方案(network中preview和response返回不一致)
    m站taro编译css的时候有些属性会被编译掉,如果遇到这个问题,用第一行代码,写到无法编译的代码上面
  • 原文地址:https://www.cnblogs.com/macleanoracle/p/2967306.html
Copyright © 2011-2022 走看看