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
  • 相关阅读:
    Matlab下imwrite,Uint16的深度图像
    ROS indigo下Kinect v1的驱动安装与调试
    ROS indigo下Kinect v2的驱动安装与调试
    Ubuntu14.04(indigo)实现RGBDSLAMv2(数据集和实时Kinect)
    Ubuntu验证查看库的安装情况-copied
    Ubuntu常用命令及git常用命令-copied
    针孔相机模型和相机镜头畸变模型
    Ubuntu14.04-OpenCV2和3共存相关设置
    Kinect v1 (Microsoft Kinect for Windows v1 )彩色和深度图像对的采集步骤
    window和Linux下Redis的安装及运行
  • 原文地址:https://www.cnblogs.com/macleanoracle/p/2967306.html
Copyright © 2011-2022 走看看