Ora-00265 instance recovery required to CCR after immediate cessation

Hello world

I have this problem in a database of production, (version 11g 2, 11.2.0.3) using Real Application Cluster, I disabled archivelog to a window for a mass of large tables update, now I'm trying to reactivate the archivelog mode and I couldn't, because it shows the error ORA-00265, I find a lot of sites and Oracle support and the explanation is always the same "you shutdown abort or force start the base of. data start again and stop with immediate or normal option"but the thing is that I use srvctl with the immediate option, I did a few reboots of the database and I read in the newspaper of the alerts that indeed there at the start of the database runs a recovery of Instance.

Why does this happen? I stop the two nodes at once and one by one, began with sqlplus and I didn't really know what else to do, I hope you can help me.

Oracle@sur01 # srvctl stop asaa d-i o asaa1 immediate instance

Oracle@sur01 #. oraenv

ORACLE_SID = [oracle]? ASAA

The Oracle base has been set on/u01/app/oracle

Oracle@sur01 # export ORACLE_SID = asaa1

Oracle@sur01 # srvctl start database d asaa o mount

Oracle@sur01 # sqlplus / as sysdba

SQL * more: Production of the 11.2.0.4.0 version sat Jan 24 15:48:16 2015

Copyright (c) 1982, 2013, Oracle.  All rights reserved.

Connected to:

Oracle Database 11 g Release 11.2.0.4.0 - 64 bit Production

With Real Application Clusters and Automatic Storage Management options

Instance Estado Modo Lectura Activa Actividad Blo Inicio Archive?     EstArch

---------------- ------------ -------------------- ----------------- --------- --- -------------- ------------ -------

MOUNTED asaa1 MOUNTED NORMAL ASSET No. 24/01/15 15:47 NOARCHIVELOG ORDER

SYS@asaa1 > changing archivelog database;

ALTER database archivelog

*

ERROR on line 1:

ORA-00265: recovery required instance, cannot define in ARCHIVELOG mode

Thanks in advance...

Giancarlo Giammaria.

Hello world

To share knowledge, I write what I had to do to solve the problem:

It seems that the FCAC does not correctly close instances (another question to consider), causing the datafile headers remain incompatible with a different number of SCN.

In the next query, you can see as the checkpoint_change # in v$ database is different from the checkpoint_change # in v$ datafile (this question was scheduled to be executed in mounted State)

SYS @ > select dbid, name, created, resetlogs_change #, resetlogs_time, open_mode, log_mode, checkpoint_change #,.

2 controlfile_type, controlfile_change #, controlfile_time

3 v $ database;

NAME DBID CREATED RESETLOGS_CHANGE # RESETLOGS_TIME OPEN_MODE LOG_MODE CHECKPOINT_CHANGE # CONTROL

------------------------------ ---------- -------------------- ------------------------------ -------------------- -------------------- ------------ ------------------------------ -------

CONTROLFILE_CHANGE # CONTROLFILE_TIME

------------------------------ --------------------

2103866247 XXX 11 OCTOBER 2014 12:00:07 1 OCTOBER 11, 2014 12:00:07 MOUNTED NOARCHIVELOG 332020165 CURRENT

332058714 26 JANUARY 2015 22:37:34

1 selected line.

SYS @ > select the folder, name, State, checkpoint_change No. # from v$ datafile;

FILE NAME STATUS CHECKPOINT_CHANGE NO. #.

------------------------------ ---------- ------- ------------------------------

332020165 SYSTEM 1 + DG_DATA/a

2 + DG_DATA/a 332020165 online

3 + DG_DATA/a 332020165 online

Then, the process that I did to fix that and enable archivelog:

srvctl stop database d immediate o xxx

srvctl start database d o mount xxx

recover the database;

srvctl start database-d xxx (apparently the bd still needs a clean shutdown to reactivate the archives, otherwise the ORA-00265 continues to show, so I had to start and stop)

srvctl stop database d immediate o xxx

srvctl start database d o mount xxx

ALTER database archivelog (at this point, it worked and the archiving log enabled, after this, stop and open again...)

Hope this helps someone else!

Tags: Database

Similar Questions

  • ORA-12514 after immediate cessation

    After an immediate stop, any attempt to connect to the database generates an ORA-12514 error. I can't restart the db from the command line. I can restart by restarting the listener of the db. The listener log indicates that the service is dead after the judgment, but there is no indication why.

    I'm running on Windows 2008 R2 63 bit. IPv6 was disabled and all references are made by IP DNS not entered.

    IM assuming that once you stop the database, you want to connect to the database through the listener
    by default, the database uses dynamic registration and is available through the listener in MOUNT or OPEN State
    to be able to "connect" to one not NOMOUNT (as SYSDBA) not running, or a database, you must manually register the database instance in your listener.ora

    LISTENER =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = TCP)(HOST = myhost.com)(PORT = 1521))
        )
      )
    
    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
          (ORACLE_HOME = /u01/app/oracle/product/11.2.0/dbhome_1)
          (SID_NAME = ORCL)
        )
      )
    
  • ORA-16157: recovery media not permitted after successful recovery of FINISHING

    Hi s/n,.

    I have a situation.

    During one of my tests on a standby, I issued an order by mistake "Alter database recovery managed standby database finish", but I didn't do a failover.

    And now I want to activate MRP by running the command 'Alter database recover managed standby disconnect session' I get alert ora in the alerts log

    "

    MRP0: Background Media Recovery terminated with error 16157

    Errors in the /var/opt/oracle/diag/rdbms/himmyprd1/himmyprd1/trace/himmyprd1_pr00_13513.trc file:

    ORA-16157: recovery media not permitted after successful recovery of FINISHING

    "

    Is their anyway I can start the MRP and set the day before because it was earlier, or do I have to rebuild the day before.

    DB version 11.2.0.2.0

    Concerning

    Himanshu

    Hello

    If you have any questions "alter database recover managed standby database finish;", it reports oracle recovery is complete for database pending and you'll be performing a failover operation.

    If you have started this command accidentally, then I can say that it is your bad luck... You have to rebuild only the database of relief and no go.

    Kind regards

    Shivananda

  • How instance recovery and restart the database after SHUTDOWN ABORT?

    How instance recovery and restart the database after the database is closed by using the command "SHUTDOWN ABORT"?

    Recovery if instance Oracle background SMON instance failure process using or stop quitting or database starting strength. After shutdown abort you just restart the startup database, oracle will take care for instance recovery you need'nt to intervene for example recovery.

  • ORA-01780: string literal required error

    I need to create a directory in the path (for example it is/export/home/camsdoc ' camsdocd/meterwatch for development/export/home / ' /meterwatchqfor QA and/export/home /'camsdocp/meterwatch for production)

    Here's what I thought, but I get the error message below

    declare

    v_camsdoc v$instance.instance_name%type;

    v_stmt varchar2 (1000);

    Start

    Select instance_name

    in v_camsdoc

    from v$ instance;

    v_stmt: = ' CREATE or REPLACE DIRECTORY METERWATCH AS/export/home / | v_camsdoc | ' /meterwatch';

    immediately run v_stmt;

    end;

    Error on line 1

    ORA-01780: string literal required

    ORA-06512: at line 9 level

    v_stmt: = ' CREATE or REPLACE DIRECTORY METERWATCH AS "/ export/home /' | v_camsdoc | ' / meterwatch "';

    or better:

    v_stmt: = Q'[CREATE or REPLACE DIRECTORY METERWATCH AS ' / export/home /]' | v_camsdoc | Q'[/ meterwatch ""]';

    SY.

  • Instance recovery fast and redolog file size

    Hello

    Could you please explain to me how redolog file size allows to retrieve the instance more quickly?

    Thank you
    KSG

    Soon, I'll try to say.

    The answer lies in the relationship between the number of buffers Sales necessary for recovery. Buffers dirty necessary for recovery is limited by the checkpoint process when DBWR is ping some of them writing in the data file. So with a log switch, you'll hit a control point. So if the size of the log files to be smaller, frequency control would be great, which makes written buffers more aggressively in the fikles of data and limit the duration of the reocvery instance. Her biger make you, it would take more than the checkpoint occurs and so in the case of instance recovery, it would bemore time required. That said, using a log file of small size would also lead to "cehckpoint inicomplete" error as well, because it can happen that DBWR will not be able to match with his own writing speed and the speed of the current generation gate of event.

    HTH
    Aman...

  • SMON instance recovery

    Hello

    that do you agree with the following points:
    Your database is running in the ARCHIVELOG mode. After an instance crash, you start up the database by issuing the STARTUP
    command. Instance recovery is initiated by the SMON background process.
    
    The information used for instance recovery will be derived from the control file.
    The uncommitted changes are rolled back using information in the undo segments.
    The committed and uncommitted changes stored in the online redo log are applied to the
    affected data blocks.
    Thank you very much.

    Recovery of Oracle instance. I remember one day I was talking with one of my friend oracle best and great expert and I asked; "Suppose that you had a chance to ask one question of the CMO; What will ask you? He said; I will ask him to explain when and how to run oracle instance recovery. " So you can judge what is instance recovery and how long is this topic. But if I have to explain everything first I collected some notes of forum and google and the text will be as follow:

    1. the recovery is triggered by smon compare thre control files and data file headers. If the RCS judgment of the data file does not correspond with the SNA control point of the control file, the recovery is triggered (hope that I remember well). After the recovery begins. There are changes inside of 9i but don't think its needed here. Read the docs!

    Source:Re: recovery in oracle 9i example
    Author: Aman...
    Read the answers by Kamran and Pavan in the thread above.

    2. There is no recovery Instance during the START-UP phases and the MOUNT. Instance recovery is the opening time.
    ...
    ...
    Source:how oracle will come to know weather it's Instance or Media Recovery recovery
    Author: Hemant K Collette

    3 re: crash recovery / recovery instance
    Author: Eduardo Legatti

    etc etc.

    I mean if I want to write a note on the recovery instance I will collect some good and clear answers by experts of the forum (that I've shown the example above) and will then endurance in my language and then; I'll post this text in the forum; to ensure that the necessary correction too can be performed (if necessary).

    Concerning
    Girish Sharma

  • Can someone help me understand the process Instance recovery

    First thanks for all of you who responded to my post, any help is really appreciated.

    I would like to more deeply understand the Instance recovery process then the Administration Guide of Oracle Docs can tell me.

    What I have so far of Instance recovery is:

    1 oracle determines which files are not synchronized.
    2. all data from redo log files is applied to restore log buffers by progression. Buffers do not participate on the database of normal transactions because they are marked to pick it up.
    All these data are applied to the data files (commited and contains transactions).
    This step is called roll forward.
    3 cancellation are used to restore transaction no. After this step the datafiles not aura no data contains on them. At this point, the instance is available for users, but the blocks used are not.
    4. all files are now in sync.

    My questions are:

    -Step 1, what process determines which files are not sync? Make the bed of Smon the controlfile and data file headers and then make a list which is not sync?

    -L' step 2, what is the process that reads the information in the redo log files and complete the recovery log buffer? What is the CKPT? And how he is warned that he might start to read the files after completing step 1? There is a semaphore that is defined for it?

    -Step 2, which process applies information engaged and contains buffer redo log for the data files? When it starts to apply this information of the instance is already partially available to users?

    -Step 3, what is the process that reads up to cancel to restore transactions not? This process must be done once step 2 is complete as could be blocks of the undo tablespace on buffers of the right-wing newspaper do it again? And when this step 3 starts, the process is triggered by an another semaphore?

    -When step 3 is finished, what process changes the State of the database of partially open to open, or that's just what we call it when the database has always revenge marked for recovery?

    Thanks again in advance for the help, there are reasons not practice known this information, I'm just a curious person who could not find this information on the google...


    Ricardo Rodriguez

    Ricardo,
    Well, I'll take a chance to respond.
    (1) SMON in the start-up phase, in the strict sense in the editing phase, compares the SNA stored in the control file with the data file headers. This sCN is called checkpoint SCN. It is always higher among the controlfile so its part of the same database and is not set up to an old backup. By this correspondence, Oralce comes to know that there are some report files with their SNA control point is only not with the controlfile and consequently, instance recovery is reported. Here is the list of files is prepared.
    (2) the same process SMON only would trigger playback of the redo log files and launch the Rollforward process. Roll forward is made from the last address bytes redo controlled at the end of the restore log forward. This means that the last block, blocks have not reported in the data file are simply read and are dumped on the data files. As a result, we get a situation that the data file will end up with a lot of data committed but also committed that redo is containing both.
    CKPT process will not come in the picture I think. Where did you read what CKPT would do all this?
    (3) SMON governs all this thing is to say the application of the data for the data files. No, in this phase, we are still in the phase of mounting that this recovery is called crash recovery. Oracle wouldn't let users to use the database at this point. Data is still not available for them.
    (4) do not bring semaphores here. They are already in use when you allocated the memory of your instnace. Its work process level. After the mount phase is completed, oracle would open up the db. At this stage, "the transaction recovery" aka rear roller phase. That would be launched to relax all the operations that are not validated.
    Now to do this, undo will be used. Oracle launches this phase into two or more strictly speaking 3 ways. One, SMON would just check how many blocks will be there for the recovery. If they are larger, it would begin the rear roller with parallel slaves. This is called "we demand" rollback. It is initiated by the user. So if you were using the EMP table data and the server crashed between, now the next time you start, if you try to access the same blocks once again, they are set aside on the basis of priority.
    The third one will rollback transaction intra. It's basically splitting the work among the slaves so that if a slave is sitting free, it can share the work and can move forward to make things more quickly restored.
    Please note that all this is happening at the open stage. This means then that this is the case, oracle is available for users. And second, there is little change in this process (an integer) 9i go. This is called two-pass recovery which has been made to make this process a little faster. In this regard, SMON ignores these blocks that are controlled by DBWR during execution of the phase of rollforward.
    Hope this makes some sense and helps. Let me know if there is something wrong or unclear.
    HTH
    Aman...

  • Launched "Acer Recovery", it's 11% after 3 hours. Should I turn off the computer?

    Hi, I bought an Acer Aspire V Nitro (VN7 - 791G - 758S - Black Edition)

    I noticed that the Wifi turned off every two minutes, so I decided to reset the factory settings of my laptop with the Acer Recovery. But now, after 3 hours of waiting, the recovery program's only 11%!

    Is this normal? I'm hesistating to activate it and the new, but I don't know if I wanted to ask you.

    Thank you.

    not normal.

    power off and press ALT + F10 at startup to restart the process of Acer erecovery.

  • Can I delete my recovery for WIN7 partition after the upgrade

    Can I delete my recovery for WIN7 partition after the upgrade.

    What can I INSTALL CLEAN so I want

    What should I do when I need to reinstall Windows 10?

    The upgrade is a download of ISO or just installed on WIN7?

    The application upgrade says to reserve my copy so I did but I never got confirmation of this email?

    July 29, 2015.

    How to get the Windows 10 free upgrade

    J W Stuart: http://www.pagestart.com

  • How to put an EMAIL_INSTANCE_URL?  Bug or not? ORA-20987: Instance not found parameter

    Running in SQL * Developer, logged in as SYSTEM.

    Version 4.2.1.00.08 APEX.

    Is this a bug or something I am doing wrong?

    When I try to use the apex_instance_admin.set parameter to set the EMAIL_INSTANCE_URL instance, I get the following error.

    Error at startup on line: 13 in the command.

    BEGIN

    apex_instance_admin.set_parameter

    ('EMAIL_INSTANCE_URL','http://ah9.appshosting.com:7780/pls/apex /');

    end;

    Error report-

    ORA-06502: PL/SQL: digital error or value

    ORA-06512: at "SYS." OWA_UTIL", line 356

    ORA-06512: at "SYS." HTP", line 1368

    ORA-06512: at "SYS." HTP", line 1443

    ORA-06512: at "SYS." HTP", line 1735

    ORA-06512: at "APEX_040200.WWV_FLOW_ERROR", line 154

    ORA-20987: Instance not found parameter

    ORA-06512: at "APEX_040200.WWV_FLOW_ERROR", line 613

    ORA-06512: at "APEX_040200.WWV_FLOW_ERROR", line 903

    ORA-06512: at "APEX_040200.WWV_FLOW_INSTANCE_ADMIN", line 215

    ORA-06512: at line 2

    06502 00000 - "PL/SQL: digital error or the value of %s.

    * Cause:

    * Action:

    Get the setting is no problem:

    Select apex_instance_admin.get_parameter

    ("EMAIL_INSTANCE_URL") instance_email_url

    DOUBLE;

    INSTANCE_EMAIL_URL

    http://ah9.appshappy.com:7780/pls/apex /.

    Getting and a few other settings works fine.

    Skip

    Hi Skip,

    Indeed, it is a bug in 4.2 which has already been set for APEX 5.0.

    I assume that you are on a single system of runtime, otherwise, you can set this parameter with the admin instance interface. As a workaround for the only runtime systems, you can use

    BEGIN
        apex_040200.wwv_flow_platform.set_preference('EMAIL_INSTANCE_URL', 'http://ah9.appshosting.com:7780/pls/apex/');
        commit;
    end;
    

    to set the instance parameter when it is connected as SYS or SYSTEM.

    Concerning

    Patrick

    Member of the APEX development team

    My Blog: http://www.inside-oracle-apex.com

    APEX Plug-Ins: http://apex.oracle.com/plugins

    Twitter: http://www.twitter.com/patrickwolf

  • is the compensation required for adobe after effects trial if I want to only publish my movie no comercial non-profit on youtube or instagram on length 40seconds with effects.

    is the compensation required for adobe after effects trial if I want to only publish my movie no comercial non-profit on youtube or instagram on length 40seconds with effects.

    I did the film about 40seconds length with effects that I have trial.is aae mandatory compensation to publish this movie on youtube or instagram?

    30 days trial version and there are no restrictions. If you want to publish something you just make sure that you have the copyright for all materials that you use.

  • instance recovery

    Hello

    With regard to the recovery of instance in an envionment of the cars,

    Parallel recovery can still operate even if the recovery_parallelism the value 0 or 1 initialization parameter?

    Ora_83 wrote:
    Thanks Satish,
    This means that parallel instance recovery does not work if I put the recovery_parallelism initialization parameter 0 or 1?

    I have no reason to think otherwise.

  • ORA-01780: string literal required (ERROR on line 7 :)

    Can someone help me?
    The XMLQuery below show me ORA-01780:

    with t as)
    Select xmltype ("< root >
    < Child1 attribut1 = "1" attribut2 = "2" > < / Child1 >
    < Attribut1 Child1 = attribut2 "3" ="4" > < / Child1 >
    < Attribut1 Child1 = attribut2 "5" ="6" > < / Child1 >
    < Attribut1 Child1 = attribut2 "2" ="1" > < / Child1 >
    ((< / root > ') double xml)
    SELECT warehouse2.attribute1
    warehouse2.attribute1
    Warehouses
    , XMLTABLE ('/ Root')
    PASSAGE t.xml
    COLUMNS
    attribute1 varchar2 (1) PATH ' / Root/Child1/@attribute1',
    attribut2 varchar2 (1) PATH ' / Root/Child1/@attribute2') warehouse2;
    SQL >
    SQL > < / Root > ') double xml)
    SQL > *.
    SQL > ERROR on line 7:
    SQL > ORA-01780: string literal required

    Have you revied this thread (search is your friend).

    Re: XMLTable cause the problem 10.2.0.3 or privs?

    What Version of DB are you using

    What are the compatible parameter values and cursor_sharing in your case...

    -Mark

  • Instance settings - require new schema - does not

    I have a newly installed (4.2.1.00.08) Apex instnace.  I can't seem to get the setting for 'Require a new scheme' to work.  If I choose Yes or no, the workspace application process always invites to a new or existing schema.  Is this a bug, or maybe I'm missing some other parameter that would do this job correctly?

    Hi "user721299"

    First, is there a reason why you are creating a new APEX instance based on APEX 4.2.1?  APEX 4.2.5 is available and highly recommended.

    All that being said, I don't think it was a problem even in the APEX 4.2.1.  That's exactly what we use on apex.oracle.com (requires a new schema = Yes).

    1. Are you sure that you are establishing a new session of the APEX to try the new workspace application process, after setting this instance setting?
    2. You set this parameter with the APEX_INSTANCE_ADMIN API or the First-Instance administrative Web interface?
    3. What is the instance parameter 'Provisioning' status?

    Joel

Maybe you are looking for