How to recovery the database from a complete backup

I have a 10.2.0.3 database with archive log enabled.
I do a cold backup of database every Sunday night.
I shutdown the database, copy all the database files, control files and redo logs to a backup disk.
Then the database started and running again.
I am trying to test my backup and make sure I can recovery the database to the most current stage using the Sunday backup and the archive logs.
for example: use the backup from 4/01/2012, recover the database to today 4/04/2012 9:00am.
What's the steps of doing this?
I tried to copy all the Sunday backup files to the correct location, start the database, the database is started successfully. However, I don't know how to apply the logs from since the Sunday backup upto now.
Thanks a lot!

hi,
rman is your friend to do backups, restores and recovers of database.
to do a full recover of database, for example to do a test on your current test database (no in crash):
rman time:
startup nomount;
restore controlfile;
alter database mount;
sql now
select archivelog_change#-1 from v$database;
then go back to rman and do the following :
RMAN> run{
2> set until scn xxxxxx;
3> restore database;
4> recover database;
5> alter database open resetlogs;
6> }
**where xxxxx is the result of your sql query
HTH
--edit:
forgot to told that You will need to set your ORACLE_HOME and ORACLE_SID env variables
Edited by: Me_101 on 04-abr-2012 8:41

Similar Messages

  • How to startup the database from pfile?

    Hi guys.
    hope all of you fine.
    how to startup the database from pfile?
    Thanks.

    You can create pfile from spfile
    SQL>create pfile='/tmp/pfile.ora' from spfile;
    then
    SQL>startup pfile='/tmp/pfile.ora';
    You can edit pfile.ora file and startup your database with this newly changed database parameter using pfile
    And you can define you're using pfile or spfile by issuing:
    SQL> show parameter spfile;

  • How I restore the iPhone from an old backup?

    How I restore the iPhone from an old backup? When I restore just appear the 3 last backups. I want one before these.

    If you don't see them, you don't have them to restore.

  • How to refresh the database from target to clone system using RMAN ?

    I created the database using RMAN from target (Node A) to clone (Node B)
    I want to refresh the data what are all the changes happened in (Not complete database only chages) target to clone system using RMAN ? or any other way?

    I want to refresh the data what are all the changes
    happened in (Not complete database only chages)
    target to clone system using RMAN ? or any other way?Incremental changes can't apply, once database is open using RMAN or any other B&R method.STREAMS can be use to capture and apply changes.
    Cheer,
    Virag

  • How to connect the database from one ip to another ip pc.?

    hai,
    iam new to the obiee. i have the database in the ip : 198.0.0.0(for ex) and i have to connect that through the odbc to my pc ip: 198.0.0.1 (for ex). plz explain how we can connect to the other database from our pc to import that database to our administrator tool in bi.
    thanks in advance,

    hi...
    install client software in your machine
    perform, listener configuration using net configuration assistant,
    Now using this listener name, you create a DSN and use it in rpd,, you want to develope
    OR
    go to ODBC Data Source & Administrator and add DSN with Microsoft ODBC for Oracle
    in server field, you write your parent machine\listenername
    and use this in rpd... i hope the second one works out...

  • How to clone the database from 8i to 10g

    Hi,
    I have oracle 8i(8.1.7.4) on solaris 8 machine with application data.
    and Now I have installed oracle 10g(10.2.0.4) on redhat - 5 on zlinux machine.
    Now I want the same database including all the onject and the data to be available in redhat - 5..
    How shoud I start. Please assist me.
    RB

    user651189 wrote:
    Hi,
    I have oracle 8i(8.1.7.4) on solaris 8 machine with application data.
    and Now I have installed oracle 10g(10.2.0.4) on redhat - 5 on zlinux machine.
    Now I want the same database including all the onject and the data to be available in redhat - 5..
    How shoud I start. Please assist me.As endian formats are different for Solaris 8 and Redhat (solaris has big, but linux has little), then the easiest way is to use exp/imp utiltiy for migration data.
    exp full database from 8i and import it in 10g. You can exp only particular schemas, it really depends, what kind of data you need, how much data You need to import and so on. But exp/imp is the answer how to get data into new database.
    Check metalink note 733205.1.

  • How to recovery the game from ipad?

    My son accidentally deleted the Angry bird, How can I have it back?

    You can download it again from the App Store. You will not be charged, as long as you are using the same Apple ID as when you originally bought it.

  • How to Migrate the database from AIX 4.3 oracle 7  to another Aix 5.3

    Hi,
    This is the scenario.
    Oracle 7 runs in AIX 4.3 now the client wants to upgrade to a new machine with
    oracle 10gr2 in AIX 5.3 .
    AIX 4.3 in production now.
    AIX 5.3 and oracle 10gr2 installed now.
    is there any other possibility other than export to migrate to new server.
    Regards
    Elamaran

    Sorry to disappoint you :( It's the same thing as with my car - If it's not without fuel I turn the key and drive ;)
    Confined to the development database instance, writing packages is the only thing I'm allowed to do (even forbidden to use some of the Oracle supplied ones).
    There are other guys having to do the rest.
    Regards
    Etbin

  • How to download the database form the call manager 7 to excel?

    how to download the database from the call manager 7 to excel document?

    No, it never did - the "ask" for the DRS folks to provide unencryption capabilities for their TARs is still out there (several other BUs want this) but so far as I know there's been zero movement on it.  I've about given up hope on the DRS folks at this point - pretty clear this isn't a priority for them and I don't see much in the way of any kind of improvements on the product schedule for them at all, this included.
    As a side note I've been pushing the Connection product managers to give us off box file system access to limited directories via a proxy service and roles (i.e. similiar to the ODBC proxy but for SFTP access) - armed with this we can provide our own (far superior) disaster recovery tools that work on a pull model instead of the full push DRS is built on - this would get partial backups, individual restores, about 6x increase in performance (more actually - I have a prototype that is hovering right around 10x the speed of DRS end to end), smaller backups, requires less space and resources on the server etc... etc...  Fun stuff like doing a full backup on Sunday mornings and deltas every day of the week after that and another full backup Sunday etc... would be possible.  Imagine.
    I'll probably get more traction with that but it's a long road I'm afraid - as ever, asking your account team to enter a PERs helps - makes it more difficult for the product folks to delay on assigning engineering resources to such efforts.

  • How to get the data from mysql database which is being accessed by a PHP application and process the data locally in adobe air application and finally commit the changes back in to mysql database through the PHP application.

    How to get the data from mysql database which is being accessed by a PHP application and process the data locally in adobe air application and finally commit the changes back in to mysql database through the PHP application.

    If the data is on a remote server (for example, PHP running on a web server, talking to a MySQL server) then you do this in an AIR application the same way you would do it with any Flex application (or ajax application, if you're building your AIR app in HTML/JS).
    That's a broad answer, but in fact there are lots of ways to communicate between Flex and PHP. The most common and best in most cases is to use AMFPHP (http://amfphp.org/) or the new ZEND AMF support in the Zend Framework.
    This page is a good starting point for learning about Flex and PHP communication:
    http://www.adobe.com/devnet/flex/flex_php.html
    Also, in Flash Builder 4 they've added a lot of remote-data-connection functionality, including a lot that's designed for PHP. Take a look at the Flash Builder 4 public beta for more on that: http://labs.adobe.com/technologies/flashbuilder4/

  • How to recovery the deleted files from hard disk like images,media files

    How to recovery the deleted files from hard disk like images, media files by using c#.net

    It's important to define deleted and recovery. You can recover file from the recycle bin using the Win API. Here's an
    example in C/C++. You need to
    pinvoke SHFileOperation.

  • How to get the Database type from weblogic Db connection

    I want to use database version control in my application . that means different database type use different Sql Statement. Such as in weblogic7.0 if I create SqlServer JDBC pool then I will use some special Sqlserver sql Statement . such as some join statement. If I create Oralce JDBC pool then I have to use different Sql statement . because these two database support different Sql statement.
    What my question is how to get the database type from the connection.

    For a normal jdbc driver you can use
    Connection.getMetaData()
    To get the meta data, in particular the getDatabase...() methods.
    That might or might not work.
    However, at the very least in the server you have access to the weblogic properties so you can parse the pool property to figure it out.

  • How to save the string from JTextFied to database?

    can i know how to save the data from JTextFied to databse. Is it using update?

    The most straightforward way would be something like:
    String myKey=myKeyField.getText();
    String foo=fooField.getText();
    String sql="update mytable set foo='"+foo+"' where mykey='"+myKey+"'";
    connection.createStatement().executeUpdate(sql);
    This example assumes that the input fields cannot possibly contain quotes or the string won't be built correctly. Which by the way brings up a question I'd be interested in hearing others answer: What do you do about this? Sometimes I use PreparedStatement which handles that problem, other times I write my own little function to escape the string properly.
    You can also read the record into a ResultSet and use ResultSet.update(). I'm mostly using mySql and I found that in mySql ResultSet.update just creates a SQL update statement like I did above and executes it, so the only real advantage would be if you find the syntax more convenient. Perhaps other database drivers do something different that would give other pros and cons.

  • How to display the data from database(MS access) to a textbox

    anyone know ?

    how to display the data from database(MS access) to a
    textboxThe reply hasn't changed over these years. Read the tuutorial on how to fetch the data. You can display it anywhere you feel like. :)
    http://java.sun.com/docs/books/tutorial/jdbc/

  • How to retrieve the data from SAP-BAPI by using VB Code

    Hi ,
    I am new to BAPI.
    V have created an application in Visual Basic with the following fields
    EmpNo , EmpName, Addr1, Addr2, City and Phone (Only for Test)
    We have written the code for SAVING the data into SAP. Already we have
    constructed a table with the respective fields in SAP.
    For that we ourself created our own BAPI Structure / Function Group /
    Function Module/ Business Object - RELEASED related elements.
    1)Established the connection successfully.
    2)Stored the data into SAP Successfully and v r in need of
    3)HOW TO RETRIEVE THE DATA FROM SAP (USING GETLIST.....GETDETAIL....)
    Following is the code :
    'BAPI Structure  : ZBAPIEMP
    'Function Group  : ZBAPIEMP
    'Function Module : ZBAPI_EMP_CREATEFROMDATA
    'Business Object : ZBAPIEMP
    'Function Module : ZBAPI_EMP_GETLIST
    Dim bapictrl As Object
    Dim oconnection As Object
    Dim boEmp As Object
    Dim oZEmp_Header As Object
    Dim oImpStruct As Object
    Dim oExpStruct As Object
    Dim oreturn As Object
    Dim x As String
    Private Sub Form_Load()
    Set bapictrl = CreateObject("SAP.BAPI.1")
    Set oconnection = bapictrl.Connection
    oconnection.logon
    Set boEmp = bapictrl.GetSAPObject("ZBAPIEMP")
    Set oZEmp_Header = bapictrl.DimAs(boEmp, "CreateFromData", "EmployeeHeader")
    Set oImpStruct = bapictrl.DimAs(boEmp, "GetList", "EmployeeDispStruct")
    End Sub
    Private Sub cmdSave_Click()
        oZEmp_Header.Value("EMPNO") = txtEmpNo.Text
        oZEmp_Header.Value("EMPNAME") = txtEmpName.Text
        oZEmp_Header.Value("ADDR1") = txtAddr1.Text
        oZEmp_Header.Value("ADDR2") = txtAddr2.Text
        oZEmp_Header.Value("CITY") = txtCity.Text
        oZEmp_Header.Value("PHONE") = txtPhone.Text
        boEmp.CreateFromData EmployeeHeader:=oZEmp_Header, Return:=oreturn
        x = oreturn.Value("Message")
        If x = "" Then
            MsgBox "Transaction Completed!..."
        Else
            MsgBox x
        End If
    End Sub
    Private Sub cmdView_Click()
    End Sub
    COULD ANYBODY GUIDE ME, HOW TO RETRIEVE THE DATA FROM BAPI, FOR THE WRITTEN CODE.

    I didn't seen any other answers but here's how it's been done previously in our organization for a custom BAPI. In this example, we give material and language to return the part description. It's not specific to your project but may give you ideas..
    -Tim
    Option Compare Database
    Dim SAPLOGIN As Boolean
    Dim FunctionCtrl As Object
    Dim SapConnection As Object
    Sub SAPLOGOUT()
    On Error GoTo LogoutFehler
        SapConnection.logoff
        SAPLOGIN = False
    Exit Sub
    LogoutFehler:
        If Err.Number = 91 Then
            Exit Sub
        Else
            MsgBox Err.Description, vbCritical, "Fehler-Nr." & CStr(Err.Number) & " bei SAP-Logout"
        End If
    End Sub
    Function SAPLOG() As Boolean
    'Verbindungsobjekt setzen (Property von FunctionCtrl)
       Set FunctionCtrl = CreateObject("SAP.Functions")
       Set SapConnection = FunctionCtrl.Connection
    'Logon mit Initialwerten
       SapConnection.Client = "010"
       SapConnection.Language = "EN"
       SapConnection.System = "PR1"
       SapConnection.SystemNumber = "00"
       'SapConnection.Password = ""
       SapConnection.GroupName = "PR1"
       SapConnection.HostName = "168.9.25.120"
       SapConnection.MessageServer = "168.9.25.120"
         If SapConnection.Logon(0, False) <> True Then  'Logon mit Dialog
             Set SapConnection = Nothing
             DoCmd.Hourglass False
             MsgBox "No connection to SAP R/3 !"
             SAPLOGIN = False
             SAPLOG = False
             Exit Function
          End If
        SAPLOG = True
    End Function
    Function MatDescr(MatNr As String)
    Dim func1 As Object
    Dim row As Object, X As Integer, ErsteNr As String
    Dim DatensatzZähler As Long
    Dim RowField(1 To 50, 0 To 1) As String, RowLine As Long
        If Not SAPLOGIN Then
            If Not SAPLOG() Then
                MsgBox "No connection  to SAP !", 16
                SAPLOGOUT
                Exit Function
            End If
        End If
    ' Instanziieren des Function-Objektes
    Set func1 = FunctionCtrl.Add("Z_BAPI_READ_MAKT")
    ' Export-Paramter definieren
    func1.exports("MATNR") = MatNr
    func1.exports("SPRAS") = "EN"
    DoEvents
    If Not func1.call Then
        If func1.exception <> "" Then
            MsgBox "Communication Error with RFC " & func1.exception
        End If
        DoCmd.Hourglass False
        SAPLOGOUT
        Exit Function
    Else
      MatDescr = func1.imports("MAKTX")
    End If
    If MatDescr = "" Then
        MatDescr = "PART NO. NOT FOUND"
    End If
    End Function

Maybe you are looking for

  • A question about 4:3 and 16:9 formats

    Hello:) I have finally bought a DV camcorder and therefore try to use the iMovieHD software properly now. What I realized after some filming is that the camcorder was originally set to 16:9, which now gives me a hard time when I try to compress into

  • Find My iPhone Suggestion After Beeing Burgled

    To who it may concern – I would like to make a suggestion to the “find my iPhone/iPad/laptop app” – Please Please take some time to read my email and perhaps implement. Situation Last week my girlfriend and I were broken into by forcedentry – the rob

  • Load and save difficulties.

    I am new to java and do not understand how the load and save functions work. I have the following code and would like the load function to open selected files into text area 1 and the save function to save the contents of text area 2. Can anyone help

  • Weblogic 7.0

    java classes in a web application deployed under WEB-INF/classes should it be in the classpath

  • How to achieve rich black in exported PDF?

    InDesign CS5 on Snow Leopard. I have black set to display and output accurately (not rich black). Color settings are North America General Purpose 2. Proof Setup is set to Document CMYK U.S. Web Coated (SWOP) v2, so that I can see on the screen as ac