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
  • 相关阅读:
    表格Table宽度设置无效的解决方法
    ajax异步模式下实现同步和等待loading效果(jQuery同步Ajax带来的UI线程阻塞问题及解决办法)
    Chrome开发者工具详解(2)-Network面板
    iframe框架加载完成后执行函数
    js获取url?号后面的参数
    绑定键盘回车事件
    js判断一个元素是否在iframe里面
    字符串一些js操作方法
    基于GIS技术的国土空间规划“一张图”实施监督信息系统SuperMap arcgis
    基于supermap 3d-webgl技术的商务楼宇信息监测系统大数据 三维
  • 原文地址:https://www.cnblogs.com/macleanoracle/p/2967306.html
Copyright © 2011-2022 走看看