Recover a database using the archivelogs

We have restored a backup of cold base using avamar from one server to another. All data, controlfiles, pfiles files are in place right after restoration. It is a 9i database. All I have to do now is to recover the database to a point in time which is 3 days after the last cold backup. I have all necessary archivelogs that transferred to destination Ark. Here are the steps that I think we need to do to recover the database using the archivelogs until the point in time with RMAN:

RUN {}

BOOTABLE MEDIA;

RECOVER THE DATABASE;

ALTER DATABASE OPEN;

}

Please let me know if I'm missing something here.

your third step is able, as sybrand_b said that your DB is already in a consistent state.

The backup controlfile clause must notify oracle that SNA to controlfile is not common and needs recovery to bring back to the most recent State, is recommended to use the backup controlfile clause if you are recovering from an old controlfile or recreated controlfile.

Mark post below to roll forward from a cold backup.

Hemant Oracle DBA blog: RollForward from backup to cold

Tags: Database

Similar Questions

  • Can us refresh database using the recovery catalog?

    Hi all, I need update the dev of database using the prod database backup, we have TSM server and database of separate catalog for storing backups. No, my doubt is, we can update database dev using catalog, which has the backup of all info the prod

    In my previous organization, we used to copy the backup of the prod dev we restore and recover it in dev db. But in this organization, we have a TSM server that stores all backups of prod and dev.

    Please tell me we can update dev db using info catalogue simply and without copying backups of prod? If possible how?

    Thank you

    Harish

    user8596912 wrote:

    Yes I know that the content of the rman script.

    But we have not, so how can we be expected to comment on?

    My question is that the connection to the rman is good or bad?

    It would depend on the content of the script you do not think that we need to see.

    In the end, you can determine whether this is good or bad by testing.

    Because the rman is not connected directly to the target db prod.

    Have you read the link I gave you?

    I would limit for you: a database mirroring

    The docs in detail how to duplicate a database

    1 - active database

    2 - from a backup WITH a connection target (the database prod)

    3. from a backup WITHOUT a connection target (the database prod) but WITH a recovery catalog connection

    4 - from a backup WITHOUT connection AND connection catalog recovery target (the database prod)

    BTW, why you score your own messages as 'useful' to your own problem?

  • I try to recover my system using the xp pro installation disc get message that the version on the computer is newer tha the version on the cd

    I try to recover my system using the xp pro installation disc get message that the version on the computer is newer tha the version on the cd

    You have probably updated to SP-1 and SP - 2 maybe since then and the CD is without both.

    You try to restore the system from the cd, or re - install the OS from it?

  • RCU error: unable to connect to the database using the contact information provided

    Hello

    I am not able to connect to the database using the remote control 11.1.1.10.1 to create patterns. I ran the UCR even a week ago and I managed to connect. My database and listener are up and running and the host and the credentials are correct. I don't know where is the problem. Any help will be appreciated. Attaching the screenshot for reference.

    rcu.PNG

    Concerning

    Oumaima

    Hi Handal

    Thanks for the reply. Looks like someone had blocked the firewall settings, so I was unable to connect to the database using the port.

    Thank you

    Oumaima

  • Duplicate RMAN cloning using the database using the current database

    Hi all

    I am new bie, I want to clone my target database using the rman command 'DUPLICATE database OF ACTIVE DATABASE"new host.

    steps on google, I searched, but I got confused, I doubt if you need to install oracle rdbms softare on new host or not? and also should I copy all files (redo, control, datafiles) to the new host? kind LY help and tell me the steps to clone the database using rman.your help will be appreciated.

    Thank you.

    Kind regards.

    OS: RHEL 5.4

    DB: 11.2.0.3

    Hello

    Have you not through document link to Gavin at least. It's very simple steps. If you wait until other measures, then won't them.

    He had provided the demonstration, at least get in 'google' (you'll have so many links)

    The Oracle Dba Italian Blogger: how to clone an Oracle 11 g 2 home

    http://balaoracledba.com/2013/12/16/cloning-an-existing-Oracle11g-release-2-RDBMS-installation/

    Note: If you feel always complex, better skip the task itself.

    -Thank you

    Pavan Kumar N

  • not able to connect to the database using the oracle instant client

    Hello

    I am not able to connect to the database using the instant oracle from my local PC client. They use to connect to the database files and sqlnet.ora files LDAP.ora. If I want to test the connection, I found this executable tns wasn't there, so not able to tnsping. So I'm not able to solve this problem.

    Please let me know if a solution for everything

    Client Oracle: oracle 10.2bFAT client 32-bit

    Platform: windows 7 64-bit

    Thank you
    Veera

    There is little that tnsping can do sqlplus can't.

    Instead of
    tnsping mydb.myorg.com
    Try
    sqlplus-s-L /@mydb.myorg.com
    or
    sqlplus-s-L user/[email protected]

    If you get
    ORA-12154: TNS: could not resolve the connect identifier specified
    you know that the customer could not resolve 'mydb.myorg.com '.

    If you get
    ORA-12541: TNS:no listener
    then "mydb.myorg.com" could be resolved, but there is no listener it running.

    If you get
    ORA-12514: TNS:listener is not currently of service requested in connect descriptor
    then "mydb.myorg.com" could be solved, the listener is in place, and the database is out of service.

    If you get
    ORA-01017: name of user and password invalid. connection refused
    you know that 'mydb.myorg.com' has been successfully resolved, and the database is running.

    If you want more details, such as how and what "mydb.myorg.com" is resolved, turn the tracking by adding the following to "sqlnet.ora:
    TRACE_LEVEL_CLIENT = ADMIN
    TRACE_DIRECTORY_CLIENT = C:\TEMP (a writable directory)

    Then you will find lines like this in the trace file:

    -THE INFORMATION SOURCE PARAMETER FOLLOWS-
    Attempt to load system pfile source C:\oracle\network\admin\sqlnet.ora
    Source of the setting successfully loaded

    Attempt to load the local pfile source C:\Dokumente und Einstellungen\lanadvall\sqlnet.ora
    The parameter source has not been loaded.

    This shows you which configuration files are read, followed by the settings real read.

    nnfgrne: will read if path adapters
    nnfgrne: switching adapter LDAP

    He's now looking for LDAP name resolution.

    nnfloidinfocache: Info: insert the value DIRECTORY_SERVSSL = oid.host.myorg.com:389 at index 0 in NLPA_CACHE

    These are LDAP servers, he is trying.

    nnflilc: conn sync opening of oid.host.myorg.com:389

    nnflfdn: turning simplified mydb.myorg.com name to a unique name.
    nnflfdn: using the administrative context: dc = prod
    nnflfdn: the domain name resulting is cn = mydb, cn = OracleContext, dc is myorg, dc = com

    nnflrne1: runs the directory for dn: cn = mydb, cn = OracleContext, dc is myorg, dc = com
    nnflqbf: search: Base: cn = mydb, cn = OracleContext, dc is myorg, dc = com, range: 0, filter: (objectclass = *)

    nnfgrne: query fails, the leap to the next map

    Did not work. Try the other adapters:

    nnfgrne: switching adapter EZCONNECT

    snlinGetAddrInfo: name resolution failed for test64.test

    No luck.

    If the resolution is approved, it will look like this:

    nnfloidinfocache: Info: insert the value DIRECTORY_SERVERS = oid.host.myorg.com:389 at index 0 in NLPA_CACHE

    nnflilc: conn sync opening of oid.host.myorg.com:389

    nnflfdn: turning simplified mydb.myorg.com name to a unique name.
    nnflfdn: using the administrative context: dc = prod
    nnflfdn: the domain name resulting is cn = mydb, cn = OracleContext, dc is myorg, dc = com

    nnflrne1: runs the directory for dn: cn = mydb, cn = OracleContext, dc is myorg, dc = com
    nnflqbf: search: Base: cn = mydb, cn = OracleContext, dc is myorg, dc = com, range: 0, filter: (objectclass = *)

    niotns: the call to address: (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST=dbserver.host.myorg.com) (PORT = 1521)) (CONNECT_DATA = (SID = DBNAME) (CID = (PROGRAM = C:\Oracle\ora1020\bin\sqlplus.exe)(HOST=pc247596)(USER=lanadvall)))

    Yours,
    Laurenz Albe

  • creation of database using the SQL command * more

    Hello

    This isn't a matter of urgency.

    I learn the Oracle DBA. I have installed Oracle 9.2 in my windows system. And I'm trying to create a database using the SQL command.

    OracleVersion: 9.2
    Windows XP operating system

    CREATE DATABASE suri
    USER SYS identified by manager
    USER system identified by surendra
    LOGFILE GROUP 1 ('F:\Oracle\oradata\suri\redo01.log') SIZE 100M,
            GROUP 2 ('F:\Oracle\oradata\suri\redo02.log') SIZE 100M,
            GROUP 3 ('F:\Oracle\oradata\suri\redo03.log') SIZE 100M
       MAXLOGFILES 5
       MAXLOGMEMBERS 5
       MAXLOGHISTORY 1
       MAXDATAFILES 100
       MAXINSTANCES 1
       CHARACTER SET US7ASCII
       NATIONAL CHARACTER SET AL16UTF16
    DATAFILE 'F:\Oracle\oradata\suri\system01.dbf' size 200M EXTENT MANAGEMENT LOCAL
    UNDO tablespace undots datafile 'F:\Oracle\oradata\suri\undots01.dbf' size 200M
    DEFAULT TEMPORARY TABLESPACE tempts1 DATAFILE 'F:\Oracle\oradata\suri\temp01.dbf' SIZE 100M EXTENT MANAGEMENT LOCAL
    I get the error like below when executing the CREATE DATABASE command.

    ERROR at line 16:
    ORA-25139: invalid option for CREATE TEMPORARY TABLESPACE
    I have validated the syntax but not able to find where is the error.

    Please let me know if you need more details.

    Thanks in advance for your help.


    Kind regards
    Suri

    OracleVersion: 9.2

    Why a so old version (and desupported)? In any case...

    TEMPORARY TABLESPACE tempts1 DATAFILE 'F:\Oracle\oradata\suri\temp01.dbf' SIZE 100 M EXTENT MANAGEMENT LOCAL default

    .. try change DATAFILE with TEMPFILE.

  • Is it possible to recover a database with the copy of data files (cp), while the database has been opened?

    Hello

    We know we need to do a backup of an oracle database by using the appropriate tool, in most cases the rman. But we have in our society, a person who helps us with the backup of all the databases oracle we have. Thus, in addition to the rman backups, we do a copy (cp) with the open database of all files in oracle database, (without start backup) including of course spfile, controlfile, etc.. My question is: can recover us my database using this copied data files? or are we just wasting disk space on our backup environment?

    Kind regards
    Melo.

    We're doing a copy (cp) with the open database of all files in oracle database, (without start backup) including of course spfile, controlfile, etc..

    As EdStevens said, it's essentially a backup without value. When you copy files from a backup ' hot', there may be inconsistencies in the blocks of the file as transactions actively edit these blocks while the copy is made. Mechanism of Oracle backups hot managed by users is to put the database or tablespace in backup mode, copy the files, and then the end backup mode. Without this mechanism, the chances of being able to restore from this backup are very, very thin.

    My question is: can recover us my database using this copied data files?

    My question is... have you tested recovery? If the recovery has been piloted, then called the answer to this question. Please read the end of this blog post for more information:

    Blog of Peasland before necessary recovery database backups"

    See you soon,.
    Brian

  • How to recover files before using the recovery disk?

    Hello

    I have a Toshiba Equium and when I turn it on it loads the screen where you log does not appear, it has a black screen with a mouse, and I need to use the recovery disk to get back to normal, but I don't want to format the hard drive that I have a lot of files so it is anyway to recover the files?

    Hello

    In my opinion the easiest way is you remove the laptop HARD drive and put it in a box external HARD disk. Then, you can connect this external HARD disk to a different computer now and have access to the files on your HARD drive and you can perform a backup.

    An alternative you can boot from a Linux Live CD and back up your files on a different USB devices.

  • How to create the database using the command line?

    Hi all

    Win7
    10g or 11g

    I want to create a new database using a script.

    I set up my new SID and oracle_home.

    Then sqlplus / DBA.

    then I execute a common script...
    startup nomount;
    create database PRODB
           logfile group 1 ('z:\oradata\PRODB\redo01.log',
                            'z:\oradata\PRODB\redo01b.log') size 50M,
                   group 2 ('z:\oradata\PRODB\redo02.log',
                            'z:\oradata\PRODB\redo02b.log') size 50M,
                   group 3 ('z:\oradata\PRODB\redo03.log',
                            'z:\oradata\PRODB\redo03b.log') size 50M,
                   group 4 ('z:\oradata\PRODB\redo04.log',
                            'z:\oradata\PRODB\redo04b.log') size 50M
           character set AL32UTF8
           datafile 'z:\oradata\PRODB\sysPRODB.dbf' size 500M
           sysaux datafile 'z:\oradata\PRODB\auxPRODB.dbf' size 300M
           undo tablespace undo
                   datafile 'z:\oradata\PRODB\undoPRODB.dbf' size 100M
           default temporary tablespace temp
                   tempfile 'z:\oradata\PRODB\tempPRODB.dbf' size 150M;
    @/opt/app/oracle/product/10.2.0/db_1/rdbms/admin/catalog.sql;
    @/opt/app/oracle/product/10.2.0/db_1/rdbms/admin/catproc.sql;
    connect system/manager;
    @/opt/app/oracle/product/10.2.0/db_1/sqlplus/admin/pupbld.sql;
    exit;
    
    
    
    SQL> startup nomount;
    ORA-12560: TNS:protocol adapter error
    SQL> create database PRODB
      2         logfile group 1 ('z:\oradata\PRODB\redo01.log',
      3                          'z:\oradata\PRODB\redo01b.log') size 50M,
      4                 group 2 ('z:\oradata\PRODB\redo02.log',
      5                          'z:\oradata\PRODB\redo02b.log') size 50M,
      6                 group 3 ('z:\oradata\PRODB\redo03.log',
      7                          'z:\oradata\PRODB\redo03b.log') size 50M,
      8                 group 4 ('z:\oradata\PRODB\redo04.log',
      9                          'z:\oradata\PRODB\redo04b.log') size 50M
     10         character set AL32UTF8
     11         datafile 'z:\oradata\PRODB\sysPRODB.dbf' size 500M
     12         sysaux datafile 'z:\oradata\PRODB\auxPRODB.dbf' size 300M
     13         undo tablespace undo
     14                 datafile 'z:\oradata\PRODB\undoPRODB.dbf' size 100M
     15         default temporary tablespace temp
     16                 tempfile 'z:\oradata\PRODB\tempPRODB.dbf' size 150M;
    I always hit it

    SQL > startup nomount;
    ORA-12560: TNS:protocol adapter error

    But if I run it on Linux is good.


    Help, please...


    Thank you very much

    zxy

    yxes2013 wrote:

    I want to create a new database using a script.

    Suggestion. DBCA allows to generate the database model and use the option "+ Save as scripts + ' (no need to create the database).

    In the scripts directory, there will be a couple of shell and SQL scripts to create the database. Use them as your CLI model for the creation of a custom database. (I guess that DBCA works the same on Windows as it does on Linux).

    Another option, if you are using Oracle XE, is to copy ORACLE_HOME/bin/createdb.sh (probably a + .cmd on Windows) script and change for use. If you manually add non-XE features to the script (such as the installation of the Java virtual machine) If you want a database of SE or EE. (whereby DBCA scripts are a better answer).

  • Insert multiple records in a database using the DB adapter and stored procedure

    Hi all

    I want to insert multiple records in a database using a stored procedure. I wanted to insert these records using a data adapter and data adapter must be called by a mediator.

    Can anyone suggest me some ideas if it's possible with capabtilities OOB in SOA suite or not?

    Thank you for your help in advance.

    Thank you
    Shiv

    The trick is in the stored procedure. You must use a data type that will handle multiple records I use varray. An example can be found in this post.

    Re: Mutiple calls to AppsAdapter (pl/sql) when the payload has multiple records

    When you read the procedure stored in the db adapter wizard looks and xsd / xml if you have maps accordingly.

    see you soon
    James

  • How do I recover my database with the backup hot?

    Expensive of DBA,.

    I take the backup of my database as below. Please guide me how to recover the database at the time of the failure with my backup.

    Step 1: Begin backup Mode

    connect sysdba virtue
    alter tablespace SYSTEM begin backup;
    alter tablespace UNDOTBS1 begin backup;
    alter tablespace SYSAUX begin backup;
    alter tablespace USERS begin backup;
    alter tablespace EXAMPLE begin backup;
    alter system switch logfile;
    ALTER database backup controlfile to trace as 'C:\backup\ctrl.bak ';
    output

    Step 2: Database of Coping files

    Copy C:\oracle\product\10.2.0\oradata\db1\SYSTEM01. DBF C:\backup\
    Copy C:\oracle\product\10.2.0\oradata\db1\UNDOTBS01. DBF C:\backup\
    Copy C:\oracle\product\10.2.0\oradata\db1\SYSAUX01. DBF C:\backup\
    Copy C:\oracle\product\10.2.0\oradata\db1\TEMP01. DBF C:\backup\
    Copy C:\oracle\product\10.2.0\oradata\db1\USERS01. DBF C:\backup\
    Copy C:\oracle\product\10.2.0\oradata\db1\EXAMPLE01. DBF C:\backup\
    Copy C:\oracle\product\10.2.0\oradata\db1\CONTROL01. CTL C:\backup\
    Copy C:\oracle\product\10.2.0\oradata\db1\CONTROL02. CTL C:\backup\
    Copy C:\oracle\product\10.2.0\oradata\db1\CONTROL03. CTL C:\backup\
    Copy C:\oracle\product\10.2.0\oradata\db1\REDO01. JOURNAL C:\backup\
    Copy C:\oracle\product\10.2.0\oradata\db1\REDO02. JOURNAL C:\backup\
    Copy C:\oracle\product\10.2.0\oradata\db1\REDO03. JOURNAL C:\backup\

    Step 3: End to high mode

    sqlplus/nolog
    connect sysdba virtue
    alter tablespace backup end of SYSTEM;
    alter tablespace UNDOTBS1 backup end;
    change the tablespace SYSAUX end backup;
    alter tablespace USERS end backup;
    change the EXAMPLE tablespace backup;
    output


    Best regards
    SG

    PGO

    All recovery scenarios are discussed in the following documents.

    Oracle® backup and recovery of bases 10 g Release 2 (10.2)
    http://download.Oracle.com/docs/CD/B19306_01/backup.102/b14192/TOC.htm

    Oracle® database 10 g Release 2 User Guide Advanced Backup and restore (10.2)
    http://download.Oracle.com/docs/CD/B19306_01/backup.102/b14191/TOC.htm

    Note: 94114.1 - backup and recovery scenarios
    https://MetaLink.Oracle.com/MetaLink/PLSQL/ml2_documents.showDocument?p_database_id=not&P_ID=94114.1

    Kind regards
    Hussein

  • Connect to the database using the BEAK

    Hello

    I get the following error message when you use the function OCILogon() calls
    i.e.
    = OCILogon stat (p_env, p_err, & p_svcCtx, (const OraText *) username, (ub4) 3,)
    (Const OraText *) password, (ub4) 3,.
    (const OraText *) ('smad', (ub4) 4);

    ORA-0002: Message not found 2; product = RDBMS. facility = ORA

    I use the Oracle 11 GR 1 material on SLES 10 SP2 on the 64-bit computer.

    I connect to a database and a default host. Do I need to use OCIServerAttach()? Help, please

    THX

    Message not found error is usually incorrect Oracle home settings. Have you checked this already?

  • Need help, unable to connect to the ODBC database using the SQL Toolbox!

    Hi all

    I'm playing around with the evaluation of SQL Toolkit (2.2 + patch) and I'm having trouble.

    I ran the example 'connect' program and it seems to work fine.

    However, I try to write my own program, and I get the same message:

    "Service connection BD: (return value ==-10 [0xFFFFFFF6])."

    Native error - 2147467259 code 0x80004005

    The message is different from time to time, but the return value is constant.

    I use Microsoft SQL Server 2012 and MySQL.

    For MySQL, I installed the last Connector ODBC, 5.3.4. Inside the Control Panel / Data Sources (ODBC), I have a DSN called test_mysql in DSN user and system DSN.

    I ran a test on the connection and the test passes. I don't know if I have to use the ansi or unicode driver, I tried both with the same success.

    I do not know I had properly configured the SQL Server connection and who will try again.

    My Code CVI is quite simple:

    hdbc = connection BD ("DSN = test_mysql");

    Whenever I get a - 10 BD. Either I have something configured wrong or am I missing something.

    Does anyone have any suggestions?

    Update 2:

    After getting off the phone with Technical Support, the problem has been identified!

    LabWindows SQL Toolkit requires 32 bits DNS. My PC is a 64-bit, so my default DNS Manager in 64-bit.

    I needed to use the DNS Manager 32-bit when you work with the box tool.

    Once I created my DNS connections using the 32-bit version of the Datga ODBC Source manager, everything worked fine.

    See this technical note:

    http://digital.NI.com/public.nsf/allkb/E7984C0DA0F0E65086257694005B4CB7

  • How can I recover my vaio using the new hard disk recovery disk?

    I change my default vaio VPC-F11DGX hard drive (fujitsu) because its fails just after 3 years and I bought another HARD drive (toshiba), but I can't retrieve my vaio using the recovery disk. Please help me

    How will I know that my HARD drive is 512 b or 4K? and if it's 4K can I change to 512? If yes how?

Maybe you are looking for