recover databases when nocatalog

Hello
on the 11g R2 I am following a scenario on documentation: http://docs.oracle.com/cd/E11882_01/backup.112/e10642/rcmadvre.htm#i1008870.

It is said:
 

STARTUP NOMOUNT;
SET DBID 676549873 
RUN 
{ 
  ALLOCATE CHANNEL c1 DEVICE TYPE DISK 
  RESTORE CONTROLFILE FROM AUTOBACKUP 
    MAXSEQ 100           # start at sequence 100 and count down 
    MAXDAYS 180;         # start at UNTIL TIME and search back 6 months 
  ALTER DATABASE MOUNT DATABASE; 
} 


RESTORE DATABASE UNTIL SEQUENCE 13244; 
RECOVER DATABASE UNTIL SEQUENCE 13244; 
5.If recovery was successful, then open the database and reset the online logs: 

ALTER DATABASE OPEN RESETLOGS; 
My question is:
The following should appear on SQLPLUS?
THE VALUE OF DBID 676549873
RESTORE THE DATABASE UP TO THE SEQUENCE 13244;
RECOVER THE DATABASE UP TO THE SEQUENCE 13244;

Thank you.

Hello

Why the need to reset the incarnation of the database?

RMAN> run
2> {
3> allocate channel t1 type disk;
4> SET DBID 41381354
5> SET until sequence 14;
6> RESTORE CONTROLFILE FROM 'M:\backup\MYDB\incre\CTL_MYDB_20120325_12_1';
7> ALTER DATABASE MOUNT;
8> RESTORE DATABASE ;
9> RECOVER DATABASE ;
10> ALTER DATABASE OPEN RESETLOGS;
11> }

RMAN-06493: only UNTIL TIME clause is allowed when performing a restore from autobackup, found: sequence

Here you must define the dbid, restore controlfile from the backuppiece if you have not set up Autobackup, mount the database, until the individual sequence #, restore & recover the database and finally open with resetlogs.

You can refer to your 1st post on this thread for the steps that you followed to restore the database until a particular sequence :)

You set up the database, in particular the sequence value in your very 1st post # and later performed operation restoration and recovery. Check it out ;)

Tags: Database

Similar Questions

  • recover database syntax

    I had to do a restore of database; to get rid of some bad data that was loaded and when it ends, I want back at a specific time, but I'm not sure of the correct syntax.  An application provider gave me the following to try but I wanted to get other comments until something is wrong.  Any help would be great... Thank you... Mike


    I'll try to find the exact syntax and haven't seen it written anywhere, if

    recover the database up to the ' March 17, 2015 15:00.

    doesn't work, try

    recover database until time ' March 17, 2015 15:00.

    and if this does not work, try

    recover the database to the ' 17 March 2015 15:00 '

    and if this does not work, try

    recover database until time ' 17 March 2015 15:00 '

    and if this does not work, try

    recover database until time to_date ('2015-03 - 17:15:00:00 ',' HH24:MI:SS')

    and if this does not work, try

    recover database until time ' to_date ('2015-03 - 17:15:00:00 ',' HH24:MI:SS').

    and if this does not work, try

    1. RUN
    2. {
    3. Until THE MOMENT ' March 17, 2015 15:00 '
    4. RECOVER THE DATABASE;

    small question, I do the rman database restoration, I'd do the

    1. recover database until time ' to_date ('2015-03-17 15:00 ',' YYYY-MM-DD HH24:MI:SS') ";   of rman also or sqlplus?
  • recover database until time - do not recover as expected

    Hello

    We have an Oracle 9i db (9208) running on AIX.

    We had a problem and allowed to restore all dbf files and control of the backup of the night on the server by replacing the currently damaged system.

    Once this is done, we opened then the DB in order to check some things.

    Once done we then closed and mounted and issued the «recover database until time...» "command.

    Logs archiving we need are in the location default archive. They cover the period just before the files restored until the moment that we need the DB found.

    However, when you run the recover log alerts just shows

    «ALTER DATABASE RECOVER database until time ' 2010-08 - 11:16:30:00'»»
    Mon Aug 16 14:33:57 2010
    Start of recovery Media
    Recovery media not required.

    Can someone tell us why the recover command is not the files of newspapers in the Archives until we are specifying. It doesn't look like its even looking at them.

    The command runs in less than a second.

    Is it because we opened the DB between the restoration and the recovery so his already written a journal of latest checking in the file, so the PB think its already up to date?

    Since you opened the database and media recovery finished, he will get no more. Is why he mentions "Media Recovery is not necessary. If you want to start the recovery media up to the hour, and then start a new restoration and then recover.

    Concerning

  • What to do for the main database when a physical database ensures converts a standby time of the snapshot

    Hello

    Need of the primary database to implement the flashback database when a physical database ensures converts a standby time of the snapshot? Or something to do with the primary database? I find some documents this work to allow the return of flame for the primary databases, but I think that he didn't need to do.

    Thank you

    Best regards.

    I did recently, I have not configured flashback on primary, only configured in the standby mode. I converted the standby database and restored the changes after the test. Primary database continued to send archives to the standby site. Instant once converted into sleep mode, as mseberg mentioned overlaps with the sync state after starting MRP.

  • I downloaded 2015 CC, now everytime I open Photoshop, all my images previously edited re-open as "recovered".  When I try to close them, photoshop stops working instantly and closes!  SO FRUSTRATING!  What should I do to fix this?

    I downloaded 2015 CC, now everytime I open Photoshop, all my images previously edited re-open as "recovered".  When I try to close them, photoshop stops working instantly and closes!  SO FRUSTRATING!  What should I do to fix this?

    Delete the content of your AutoRecover file.

    Tell us your OS as instructions for locating vary.

  • RECOVER, DATABASE using backup controlfile until the

    Hello
    in 10g R2, may this work:
    RECOVER DATABASE using backup controlfile until '2009-05-21:12:47:30';
    Thank you.

    GregX wrote:
    In fact, it should say something like this:

    until time ' to_date (May 19, 2009 10:30 "," dd-mm-yyyy hh24:mi:ss') ";

    No, you needn't.
    Doc http://download.oracle.com/docs/cd/B19306_01/backup.102/b14191/osrecov.htm#i1007361
    "+ If recovery up to one hour, the time is always specified using the following format, delimited by single quotes: 'YYYY-MM-' DD:HH24:MI:SS. '. + »

    Nicolas.

  • How to recover the database when archive some of the log file are deleted.

    I am facing a problem with the Oracle database, which is linked to archivelogs.
    Our development database is running in archivelog mode, but we don't have safeguards and have no recovery catalog.
    When the database was in running, disk got full, so some archivelogs were deleted manually.
    After that they have restarted the DB, and DB now not come. The errors are as follows:

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


    SQL > startup
    ORACLE instance started.

    Total System Global Area 1444383504 bytes
    Bytes of size 731920 fixed
    486539264 variable size bytes
    956301312 of database buffers bytes
    Redo buffers 811008 bytes
    Mounted database.
    ORA-01589: must use RESETLOGS or NORESETLOGS option of database open


    SQL > alter database open resetlogs;
    ALTER database open resetlogs
    *
    ERROR on line 1:
    ORA-01113: file 1 needs media recovery
    ORA-01110: data file 1: ' / export/home/oracle/dev/ADVFRW/ADVFRW.system'


    SQL > recover datafile ' / export/home/oracle/dev/ADVFRW/ADVFRW.system'
    ORA-00283: cool cancelled due to errors
    ORA-01610: recovery using BACKUP CONTROLFILE option must be


    SQL > restore database using backup controlfile;
    ORA-00279: change 215548705 generated at 2008-09-02 17:06:10 needed for thread
    1
    ORA-00289: suggestion:
    /export/home/Oracle/dev/ADVFRW/ADVFRW.archivelog1/LOG_ADVFRW_1107_1.arc
    ORA-00280: change 215548705 thread 1 is in sequence #1107


    Specify the log: {< RET > = suggested |} Filename | AUTO | CANCEL}
    /export/home/Oracle/dev/ADVFRW/ADVFRW.archivelog1/LOG_ADVFRW_1107_1.arc
    ORA-00308: cannot open archived log
    ' / export/home/oracle/dev/ADVFRW/ADVFRW.archivelog1/LOG_ADVFRW_1107_1.ARC'
    ORA-27037: unable to get file status
    SVR4 error: 2: no such file or directory
    Additional information: 3


    Specify the log: {< RET > = suggested |} Filename | AUTO | CANCEL}
    Cancel
    Cancelled media recovery.
    SQL >

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


    1 how to recover the database and put online

    Any help will be much appreciated.

    Regarding
    Hemant Joshi

    Published by: hem_Kec on 7 Sep 2008 09:07

    Hello

    It is actually quite easy.
    We knew that Oracle was looking for logsequence 1107. There is no archived log, it was deleted, or it has never generated. As you delete files, the 1st solution would be possible, BUT as there was only an instance crash so more old archived logs is not required for crash recovery. There is a need during the restoration of the old backup files, which is not our case.

    Thus, the missing log sequence has not been archived = > it is a redo log.
    To identify the required online redo log, we just to log query v$ as I suggest.

    Once the log identified file, we can recover it by specifying the redo log when you ask logsequence 1107.

    And it is on. We win! :)

  • recover the database when losing all the controlfile

    I read backup and recovery advanced 10 g R2 Guide.
    I can't stop to understand a scene in the restoration of control of backup files after loss of control current files
    Table 18 - 1 scenarios when control files are lost

    When journal the online version report is unavailable, and the State of the data file is in progress, the restore procedure is as follows:

    If online newspapers contain redo necessary for recovery, then
    Re-create the control file. Because again the online newspapers are
    inaccessible, open RESETLOGS (when online newspapers are
    accessible, it is not necessary to OPEN RESETLOGS after
    recovery with a created control file).


    My question is create even you it the controlfile based on current data files, the online newspaper lost is always necessary for recovery (given the DB is the judgment)

    So I can't get the consistent DB

    It is with a database that has stopped. CREATE CONTROLFILE to read the headers of all the data files and to find "closed" in compatibility mode.

    Hemant K Collette

  • stop the database when the HOT backup running

    Hello

    Can someone pls tell... WHT can impact on the database if the database will get stop accidentally during the hot running backup...

    Thank you

    There will be no impact on db; because its ORACLE database; very smart and easy to use.

    What happens if the instance goes down for the tablespaces into backup mode?

    When you start the database after that, Oracle will say that it requires recovery. It's because the RCS has been frozen and this is the expected behavior, because if you restore the file copied, it needs to be recovered. (and the only way that oracle has to set its value in the copy is put in the current file while it is copied)

    In this case, you can issue:

    ALTER DATABASE END BACKUP; ALTER DATABASE OPEN; to open the database.

    But your backup is not usable, it must do it again.

    Source: http://knol.google.com/k/oracle-begin-backup-end-backup#

    HTH
    Girish Sharma

  • How Auto start the Physical Standby Database (when restarting the server)

    Dear All (s)

    I configure oracle (10.2.0) dataguard on the production database, a time server restart because of disconnectivity to power, I want restard dataguard when rebooting the server. I'm using Server 2003 32-bit. Guide me how I can run after orders when the server restarts.

    SQL > connect/as sysdba
    SQL > bootable media.
    SQL > ALTER DATABASE RECOVER MANAGED STANDBY DATABASE CANCEL;


    Thanks in advance

    I want to run these command each time when the server is restarted.

    Yes, I did not understand that... but what's the problem? You can't schedule a task when the server starts?

  • How can I ignore the differences between databases when reading data from a database?

    My boss wants me to create a text parser that analyzes the sentence below and executes a SQL query.

    "' get the table field1, field2, field3,..., Manyfield [where to SQL conditional statements].

    This corresponds to "select Field1, Field2, field3,..., table Manyfield where blahblah".

    Since different DBMS have different timestamp formats, this sentence should be changed for each DBMS.

    Ignore the differences is to do anlayzer that converts a certain type of timestamp string to one that adapts to each DBMS complex a text.

    But it seems ridiculous to adopt this solution when there might be an elegant solution.

    LabVIEW Toolkit of DB is not able to hide the differences.

    Does anyone have a better idea that I do?

    I remember having a problem like this when you are working with an older version of an Oracle server. I was able to change the session by setting the 'NLS_TIMESTAMP_FORMAT '.

    This page might be of interest; I found this, when searching for "NLS_TIMESTAMP_FORMAT".

    Database portability: Date and Timestamp columns

    (PS String Format and channel Scan functions work well with the correct date format specifiers. See the link below in my signature for the ISO 8601 timestamp/string conversions)

  • Sansa E280 going to update the database when it is connected to the computer

    Hello

    Just at the moment where I was getting things straightened on my drive and everything was working fine, I plugged my E280 on my computer and it says "Refresh database" on the player and my computer does not see the E280.

    I've been looking around on the forum, and there are so many different options to try (of: delete the SYSTEM folder, which I was told not; to turn off the drive and engaging the hold button and the button to rewind when connecting to the computer, etc., which I tried ~ nothing; take off Firmware and put one on; do something in Recovery Mode) , which I have no idea how do; etc.).  Sorry, but I hope you get my point... What do I do?

    Thanks for any help once more.

    Thank you clu31355.  I tried the very first thing that you said ' put in operation and allow it to update the database (if desired) before you connect. "and voila - it worked.

    These Sansas seem to be quite ticklish - who knows what will happen?

  • Help on recovering database /Restore - no available controlfiles kccpb_sanity_check_2 control file sequence number mismatch

    Hi all.

    I really need your help on this:

    (1) version: 11.2.0.1 EE / Windows.

    (2) database does not start, don't get database.

    Alert.log info:

    Instance of stopped by USER, pid = 3652

    2015-11-22 15:57:19.763000 - 04:30

    I found this after using adrci:

    2015-11-22 15:49:15.727

    SESSION ID: (191.1) 2015-11-22 15:49:15.727

    CUSTOMER ID :() 2015-11-22 15:49:15.727

    NAME OF THE SERVICE :() 2015-11-22 15:49:15.727

    MODULE NAME: (sqlplus.exe) 2015-11-22 15:49:15.727

    ACTION NAME :() 2015-11-22 15:49:15.727

    Informational message:

    Control file 1 has seq 2713995, low 2713994 file # 0

    Error: kccpb_sanity_check_2

    Control file sequence number mismatch!

    fhcsq: bhcsq 2713995: 2714016 cfn 0

    2015-11-22 15:49:15.758

    USER (ospid: 2504): put an end to the instance

    Verification of MOS Note: 435436.1 I must:

    (1) to restore a backup of a controlfile and recover

    OR

    (2) to recreate the controlfile

    OR

    (3) restore the backup data and recovery

    It is a database, that I was not, up to now administer. But:

    (1) I tried from the database with addressed controlfile (the one located in FRA). No luck. (Create pfile from spfile / startup pfile)

    (2) the database is not mount / open. It hangs on the editing process. So I can not issue an alter database controlfile to trace.

    It seems that my options are:

    (1) manual creation of controlfile with open resetlogs option. This option is viable, but risky if we miss a datafile or something GOLD

    (2) restoration of RMAN backup. The thing is that the most recent copy of automatic backup of controlfile is since a few days early (4 / 5 days).

    I found this link: http://gavinsoorma.com/2009/07/rman-recovery-from-loss-of-all-control-files/

    The procedure seems easy, but since this controlfile is not in the current SNA of database (data files, etc.). I'm not sure it if it would work.

    So in short, I think I have an automatic backup controlfile and it's OK. but a little old. I can restore from this copy of CF?

    Please I'm pressed real here, so help will be greatly appreciated!....

    Thanks in advance!

    Best regards, Luis...!

    Hello

    It seems that my options are:

    (1) manual creation of controlfile with open resetlogs option. This option is viable, but risky if we miss a datafile or something GOLD

    (2) restoration of RMAN backup. The thing is that the most recent copy of automatic backup of controlfile is since a few days early (4 / 5 days).

    It seems that you have few options,

    In my opinion, you should start with option 2), but you have logs archived redo and all and all the backups of catalog and perform a restore.

    After, if not works, you must manually create the control files, but you are right, you must carefully on all the data files. Here a log generated in the last level 0 RMAN backup could help you, don't forget the newspaper are all entries of data for backup files.

    I wish to have more ideas to help you, but I have no other.

    I hope this helps.

    Kind regards

    Juan M

  • Get ORA-28562 with link of database when select NULL via ODBC

    Hello

    This is my first post of the time issue in this community.  Apologies if this isn't the right place to start and lease let me know where to post this instead.

    I have a database link to connect via odbc to Ingres.  Everything works as expected but when I try to select ODBC (HS), where the column is NULL, it returns the error:

    Select * from mynull@ingres;

    ORA-28562: heterogeneous Services data truncation error

    ORA-02063: preceding line of INGRES

    This is the track that counts:

    hgoftch2, line 139: print hoada @ 0xe55288

    MAX: 1, SIZE: 1, BRC:1, WHT = 5 (SELECT_LIST)

    hoadaMOD bit-values found (0x200: TREAT_AS_CHAR)

    DTY NULL-OK LEN MAXBUFLEN PR/SC CSE IND MOD NAME

    VARCHAR Y 1 1 12 0 / 0 0 0 200 col1

    SQLFetch: rank: 1, column 1, bflsz: 2, bflar:-1

    SQLFetch: rank: 1, column 1, bflsz: 2, bflar: SQL_NULL_DATA

    1 lines read

    Here's the hsinit:

    #

    # HS init parameters

    #

    HS_FDS_CONNECT_INFO = rd-cdsuat02

    HS_FDS_TRACE_LEVEL = DEBUG

    HS_FDS_TRACE_LEVEL0 = 255

    #HS_FDS_FETCH_ROWS = 1

    HS_FDS_SHAREABLE_NAME = /opt/Ingres/IngresII/ingres/lib/libiiodbcdriver.1.so

    HS_LANGUAGE = AMERICAN_AMERICA.we8iso8859P1

    #HS_KEEP_REMOTE_COLUMN_SIZE = REMOTE

    #

    # ODBC specific environment variables

    #

    Set ODBCINI=/opt/Ingres/IngresII/ingres/files/odbc.ini

    The values in the table mynull on the side of Ingres is added as follows:

    create table mynull (col1 char (1) with the null value);

    insert into mynull values (NULL);

    The idea is to use the database link to convert the Ingres on Oracle data.  I have the tables all created and copied 90% of the data, but stuck with all the data that has NULL values in it.  Can someone tell me what I did not right?

    Thank you

    HY

    Hi Mike,.

    Thanks for spending the time to answer my question.  Just to let you know that I discovered that I need to add this in my hs init file:

    HS_FDS_SQLLEN_INTERPRETATION = 32

    This solved the problem I have.  Now, I get NULL value correctly.  Before closing the issue, here is the info you requested.  Thanks again for the help.

    1. you use DG4ODBC to connect to Ingres?  If so, what is the version?

    Yes, not sure about the version that is part of the Oracle 12 C.
    2. What is the name and the version of the ODBC of Ingres driver that you use?

    The driver name is Ingres and version: 3.50.1010.0137

    3. What is returned by - describe "mynull"@gtw_link ".

    -do not put a semicolon at the end of the describe.

    02:04:21 wswmvzwd [SYS] > describe mynull@ingres

    Name                                                                               Null?    Type

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

    col1                                                                                VARCHAR2(1)

    4. what happens if you use NVL in the selection from Oracle?

    Previously, it is fixed:

    12:15:39 wswmvzwd [SYS] > select * from mynull@ingres;

    ERROR:

    ORA-28562: heterogeneous Services data truncation error

    ORA-02063: preceding line of INGRES

    no selected line

    Elapsed time: 00:00:00.13

    After it is fixed (added HS_FDS_SQLLEN_INTERPRETATION = 32):

    12:17:03 wswmvzwd [SYS] > select nvl ("col1", 'NULL') of mynull@ingres;

    NVL)

    ----

    NULL VALUE

    A

    NULL VALUE

    5. you have-
    HS_FDS_SHAREABLE_NAME = /opt/Ingres/IngresII/ingres/lib/libiiodbcdriver.1.so

    -is the Ingres driver or a driver manager libiiodbcdriver.1.so?

    Ingres driver
    -If the pilot can you confirm it offers the features of driver as Manager?

    Yes, I was able to check it out since the Manager ODBC INgres for the test.

    6. can you upload a track of comprehensive gateway somewhere so that see us? Use-

    HS_FDS_TRACE_LEVEL = 255

    for the trace.

    Since it is resolved, I'll ignore it.  Part of the debugging information is in the original post.

    Thanks again Mike, really appreciated.

    HY

  • Import data to Oracle database when to deploy a CRS using CIM, error!

    Hi all

    I followed the instructions on this page, http://IAM-saminda.blogspot.com/2013/06/Oracle-ecommerce-ATG-102.htmland the CIM console show success when I create the schema and import the data to the Server publication, but when I open the log of the CIM, and show me the following error:

    WARNING Tue Aug 08 22:43:40 COT 2014 1404877420288/atg/dynamo/dbsetup/database/DatabaseOperationManager Ignoring SQLException when running

    WARNING Tue Aug 08 22:43:40 COT 2014 1404877420288/atg/dynamo/dbsetup/database/DatabaseOperationManager ' create table (srch_site_cntnt_pri)

    WARNING Tue Aug 08 22:43:40 COT 2014 1404877420288/atg/dynamo/dbsetup/database/DatabaseOperationManager asset_version number (19) not null,

    WARNING Tue Aug 08 22:43:40 COT 2014 1404877420288/atg/dynamo/dbsetup/database/DatabaseOperationManager workspace_id varchar2 (40) not null,

    WARNING Tue Aug 08 22:43:40 COT 2014 1404877420288/atg/dynamo/dbsetup/database/DatabaseOperationManager varchar2 (40) branch_id not null,.

    WARNING Tue Aug 08 22:43:40 COT 2014 1404877420288/atg/dynamo/dbsetup/database/DatabaseOperationManager is_head number (1) not null,

    WARNING Tue Aug 08 22:43:40 COT 2014 1404877420288/atg/dynamo/dbsetup/database/DatabaseOperationManager version_deleted number (1) not null,

    WARNING Tue Aug 08 22:43:40 COT 2014 1404877420288/atg/dynamo/dbsetup/database/DatabaseOperationManager version_editable number (1) not null,

    WARNING Tue Aug 08 22:43:40 COT 2014 1404877420288/atg/dynamo/dbsetup/database/DatabaseOperationManager pred_version number (19) null,

    WARNING Tue Aug 08 22:43:40 COT 2014 1404877420288/atg/dynamo/dbsetup/database/DatabaseOperationManager checkin_date timestamp null,.

    WARNING Tue Aug 08 22:43:40 COT 2014 1404877420288/atg/dynamo/dbsetup/database/DatabaseOperationManager id varchar2 (40) not null,

    WARNING Tue Aug 08 22:43:40 COT 2014 1404877420288/atg/dynamo/dbsetup/database/DatabaseOperationManager varchar2 (40) content_id not null

    WARNING kills Jul 08 22:43:40 1404877420288 2014 COT/atg/dynamo/dbsetup/database/DatabaseOperationManager, primary key constraint srch_site_cntnt_pp (id, asset_version))'

    WARNING Tue Aug 08 22:43:40 COT 2014 1404877420288/atg/dynamo/dbsetup/database/DatabaseOperationManager java.sql.SQLSyntaxErrorException: ORA-00955: name is already used by an existing object

    WARNING Tue Aug 08 22:43:40 COT 2014 1404877420288/atg/dynamo/dbsetup/database/DatabaseOperationManager

    WARNING Tue Aug 08 22:43:40 COT 2014 1404877420288/atg/dynamo/dbsetup/database/DatabaseOperationManager to oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:445)

    If anyone can help me, I'd really appreciate

    Best regards!

    I solved the problem, the regional settings Windows My was "es" for Spanish, and when I mentioned on the CIM, that my locale was 'en', and English, the CIM cannot match the formats and that's why show me this error. Just indicate on the CIM from the local right or just use an English version of your S.O. XD

    Roger

Maybe you are looking for