Restore Database in Two Instances

Good Morning,
Hi people,
I have one server with two instances.
I need to restore one by media LTO Solstice 6.0. How steps for this?
I study about this and i am not sure, but i believe to alter 2 files after restore TNSNAMES.ORA and Listerner.ORA...
Thanks a lot
Denis
Version 10.2
Brazil

user10989391 wrote:
Good Morning,
Hi people,
I have one server with two instances.
I need to restore one by media LTO Solstice 6.0. How steps for this?
I study about this and i am not sure, but i believe to alter 2 files after restore TNSNAMES.ORA and Listerner.ORA...
How do you have two instances for one server? Do you mean two different databases running? If yes, what you want to do exactly? I am not sure that I do understand what's your end requirement exactly! So can you elaborate over it please?
Aman....

Similar Messages

  • Test Restore Database Instance from Cold backup

    Hi - I have a customer who is using an Oracle database instance not in archivelog mode
    currently, I have managed to persuade them to backup at least weekly using an RMAN cold backup.
    Prior to my being allowed to do anything else they want to perform a test restore from the cold backup
    I want to find a simple procedure to do this which will enable me to tick the box then hopefully I may be able to persuade them that Hot Backups are the way to go.
    Has anyone got any good suggestions for this please?

    Ah if only things were quite so simple - my hands are tied somewhat there isn't a second machine available at the moment so I was hoping to be able to run a test restore to the same machine !
    No they do not worry about data in this situation - Oracle is used almost as a query engine maybe a very odd solution as the actual data is not really held within this oracle database but the resultant queries are!
    Anyway I think I will just do a virtual restore using the restore database validate command then armtwist a couple of managers!
    One of the areas they had difficulty with is that apparently they had archivelogging on but the rate of writing archivelogs was huge and it was affecting performance. I am not knowledgeable enough to know how to tune that problem!!

  • Can "Backup /  Restore Database " be ulized on two Different Platform

    I've been developing on Windows and now would lile port Database scheme/data /table
    "Everything" to a Linux Server.....
    Can I ftp the backup copy to Lunix were I just install same version of Oracle 10g express and run Restore Database...This would be easier then dumping application then tables then data ...etc and then importing
    CAN THIS WORK ..SHORT ON TIME
    Message was edited by:
    user518110

    Hello Hans,
    However, if you have environment-specific things,
    they will fail. I am not aware of any issues when moving Apex installations from one server to another. I have walked a user through this process of restoring an apex installation from a full database backup on a different server. There seem to be no server related references stored in the Apex repository.
    APEX seems to have some environment-dependant areas (OS file system mapping
    comes to mind) and that may cause grief. In a normal Apex installation (standalone) it has only references to the virtual directory /i/. This needs to be defined on the target server as well.
    This is even less a problem with regard to XE since the mapping it automatically available as the files are all stored in the XML DB.
    Regards,
    ~Dietmar.

  • Unable to Restore Database

    We are attempting to migrate from an older windows platform to a Windows 2008 platform. The old configuration had two disk drives, and Oracle Express was installed on E: - the new server, being virtual has been configured with only the C: drive.
    I've been reading up on RMAN, and have confirmed that the daily backup process on the old server does create an RMAN backup.
    I've installed (and several repeat uninstall/installs) a copy of Oracle Express 10g in the default location, accepting all defaults except for my password (which is irrelevant under RMAN).
    I've duplicated the directories, I've figured out how to restart the database so I don't have to reinstall, but I am unable to restore the application database. I'm not eager to use other utilities than RMAN, since learning RMAN has already taken up more time than is budgeted for this task.
    I receive varying error messages, depending on the techniques I try to use. Usually I receive this closing message:
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of startup command at 12/14/2010 13:39:24
    RMAN-04014: startup failed: ORA-02778: Name given for the log directory is invalid
    The other message I receive is the following or a variation on the theme:
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of restore command at mm/dd/yyyy hh:mm:ss
    RMAN-06564: must use the TO clause when the instance is started with SPFILE
    The second message is a direct response to the following:
    rman target /
    startup force nomount;
    run
    {set controlfile autobackup format for device type disk to 'c:\backup\oracle\XE_%F';
    # use 'c:\oraclexe\app\oracle\product\10.2.0\server\database\SPF2FILE_%F'
    RESTORE SPFILE FROM AUTOBACKUP;
    I have no clue how to specify correctly that the SP2FILE.ORA file is the backup of the control file (can provide the script to create the backup if you think it will help, which runs a series of logs to capture settings and then executes the backup.) The backup process was inherited and I cannot explain why the default RMAN process is not being used to create the backup. However, I've been unable to use the default RMAN output to restore on a different server, as well.
    Please help - this task is now very late, and I'm not even sure whether I'm asking the correct questions to solve the problem(s) I'm experiencing.

    I'm not sure what you mean by the instance 'status'. I install a fresh copy of Oracle Express 10g. Copy over the backup files for the database and logs, copy over the SPFILE..., and attempt to restore, with the errors reported above.
    When I install XE, the instance is up and running (as confirmed by the 'home page' of XE being displayed in the browser waiting for logon and password. When I start the process to restore, XE is no longer available (in some form of maintenance mode and unavailable to normal users).
    What do you mean 'using pfile/spfile'? How would I 'use'? (I did verify that if I take a 'backup' using the XE tools, I CAN restore on the same instance where I took the backup. Just not on a different, new instance of XE.)
    The article is quite interesting, but it seems to assume that I'm working in the same instance where the backup was taken. The instructions also seem to contradict the error messages I presented above.
    I don't have any autobackup settings on my brand new copy of XE, so the following command in the article does not seem meaningful to me. Clearly it makes sense to use both a TO and FROM. It seems that what I should be doing is using a 'FROM' where I have the 'TO'; what happens if I point to my backup copy of the SPFILE in the FROM clause instead of 'AUTOBACKUP'? The command string I provided in my original post may be trying to do that, but I can't tell from the source article (which I now have to go find...)
    "RMAN> RESTORE SPFILE TO '/tmp/spfileTEMP.ora' FROM AUTOBACKUP;"
    Additional question - "DBID"? In express, I do not see any value for DBID. I understand why it would be relevant in a more advanced implementation, with multiple databases being maintained under the same Oracle installation, but it's not clear to me what DBID identifies - the database's internal "primary key" value in a directory of databases, or some other implication.
    Edited by: user13488246 on Dec 16, 2010 7:13 AM

  • Two instances same name and diferent homes

    Hi everyone,=
    I already read this interesting post:
    Creating two instances of same name in a single ORACLE_HOME ?
    After reading it I have the following question:
    Can this apply using the same ASM Instance but with diferent disk groups for each database?
    I'm thinking in this following configuration:
    ORACLE_HOME1 => 11.2.0.1
    GRID_HOME1 => 11.2.0.1
    DISK GROUP 1, DISK GROUP 2 for DB1 in ASM
    ORACLE_HOME2 => 11.2.0.3
    DISK GROUP 3, DISK GROUP 4 for DB1 in ASM
    Both databases using the same ASM instance but diferent disk groups.
    Could this be posible?
    Thanks in advance!
    johnxjean

    Thanks Balazs Papp for your quick response.
    In the scenario there is only one ASM instance and there are two databases DB1 and DB1 (same name) maybe I'am trying to upgrade or simply restoring with RMAN an old backup for DB1 from ORACLE_HOME1 in ORACLE_HOME2 with the same oracle version or later.
    Now, in the original post unix can create processes for instances with the same name but with distinct ORACLE_HOMEs.
    So, can ASM serve two databases with the same name, using the same ORACLE_SID but diferent ORACLE_HOMES? or Is this only posible using only filesystems?
    Thanks in advance.
    johnxjean

  • File name in msdb.dbo.backupset no longer matches the actual file name on the storage media. Error 3013 Restore Database is terminating abnormally.

    Thanks in advance for taking the time to read this and comment. Platform: Windows Server 2008 R2 Enterprise Edition SP1 (X64) Microsoft SQL Server 2008 R2 (SP1) - 10.50.2500.0 (X64) Jun 17 2011 00:54:03 Copyright (c) Microsoft Corporation
     Standard Edition (64-bit) on Windows NT 6.1 <X64> (Build 7601: Service Pack 1)Problem Description: The file name recorded in the msdb.dbo.backupset (sans the extension) no longer matches the actual file name written to the backup media which is
    in this case a NETAPP NAS storage share. Example:
    Mohave_backup_2014_03_14_233001_1158878.bak      (from NETAPP NAS filer)
    Mohave_backup_2014_03_16_233001_4167237             (from MSDB.dbo.backupset), as you can see, the last 7 digits (chars) of the file name are different, although the date and time are identical. The
    file names had previously been matching perfectly. The first occurance of this problem occured on 03/13/2014 at 5:00 AM MST. The error generated by the job was:
    Date  3/14/2014 10:29:23 AM
    Log  Job History (Refresh - Restore Mohave_93_DEV AD HOC)
    Step ID  1
    Server  OurDevServer
    Job Name  Refresh - Restore Mohave_93_DEV AD HOC
    Step Name  Restore Mohave_93_DEV
    Duration  00:00:01
    Sql Severity  0
    Sql Message ID  50000
    Operator Emailed  
    Operator Net sent  
    Operator Paged  
    Retries Attempted  0
    Message
    Executed as user: OurDomain\OurNetworkServiceLogin. Restore Mohave Prod to Mohave_93_DEV - ERROR: 3013 RESTORE DATABASE is terminating abnormally. [SQLSTATE 01000] (Message 50000).  The step succeeded.

    Olaf:
    Thanks for your reply. Sorry, my bad. I inadvertently copied wrong [name] form the msdb.dbo.backupset. On 3/13 and 3/14, the two file names did not match. In trying to select another example to show you this morning, I found that the names are now matching!
    What I was doing was to create dynamic t-sql to retrieve the latest prod backup of the database, and then restore it with move to the development server. This is an ad-hoc job that the developers can run by themselves whenever they require a refresh. Unfortunately,
    we only keep 3 days worth of backups for these databases, so the original disk file I was trying to use to restore no longer exists. Researching the original error, one of the error descriptions was that the restore could not find the file requested.
    I thought this very strange since I get the file name directly from the backupset table. Further research did indeed show that the file names were different, but unfortunately, I failed to save the details of the file names. Anyway, in looking for a new example
    to show you this morning, I have found that the file names are indeed matching exactly again. If this error pops up again, I will be sure to save all details and re-post.
    Thanks, regards and best wishes to you and yours, 

  • BI server generating  query in a different way between two instances

    Hi All,
    We have executed a report in dev,test instances,BI server generated query in a different way in two instances where as dev BI server is on AIX operating system(recently we migrated from windows),test instance is on still on Windows environment.
    For a report below are the queries
    DEV(AIX)
    WITH
    SAWITH0 AS (select sum(T316025.SALES_QUOTA) as c1,
    T329697.DIVISION_DESC as c2,
    T329697.AREA_DESC as c3,
    T329697.TERRITORY_DESC as c4,
    case when T329697.ACCOUNT_NUM is null then T329697.BILL_TO_PARTY_NAME else concat(concat(concat(T329697.BILL_TO_PARTY_NAME, '('), T329697.ACCOUNT_NUM), ')') end as c5,
    T150993.X_CONS_MAJOR_GROUP as c6,
    T66755.PER_NAME_ENT_YEAR as c7
    from
    W_DAY_D T66755 /* Dim_W_DAY_D_Common */ ,
    W_PRODUCT_D T67704 /* Dim_W_PRODUCT_D */ ,
    WC_SLX_DATA_F T316025 /* Fact_WC_SLX_DATA_F */ ,
    WC_CUSTOMER_HIERARCHY_D T329697 /* Dim_WC_Customer_Hierarchy_D_With_Error */ ,
    OBIEE_SECURITY_LOCATION_SALES T339204,
    W_PROD_CAT_DH T150993 /* Dim_W_PROD_CAT_DH_General */
    where ( T66755.ROW_WID = T316025.DAY_WID and T316025.CUSTOMER_HIERARCHY_WID = T329697.ROW_WID and T67704.ROW_WID = T316025.PRODUCT_WID and T67704.PROD_CAT2_WID = T150993.ROW_WID and T329697.TERRITORY_CODE = nvl(T339204.LOCATION , T329697.TERRITORY_CODE) and T329697.AREA_DESC = 'GROCERY AREA - EAST' and T329697.DIVISION_DESC = 'DOMESTIC SALES DIVISION' and T339204.USER_NAME = upper('Administrator') and case when T329697.ACCOUNT_NUM is null then T329697.BILL_TO_PARTY_NAME else concat(concat(concat(T329697.BILL_TO_PARTY_NAME, '('), T329697.ACCOUNT_NUM), ')') end = 'JETRO CASH AND CARRY ENTERPRISES INC(10313)' and (T66755.PER_NAME_ENT_YEAR in ('2011', '2012')) and (T329697.TERRITORY_DESC in ('BOSTON', 'CHARLOTTE', 'FLORIDA', 'GREAT LAKES', 'MID-SOUTH', 'NEW YORK', 'WHITE ROSE')) )
    group by T66755.PER_NAME_ENT_YEAR, T150993.X_CONS_MAJOR_GROUP, T329697.TERRITORY_DESC, T329697.AREA_DESC, T329697.DIVISION_DESC, case when T329697.ACCOUNT_NUM is null then T329697.BILL_TO_PARTY_NAME else concat(concat(concat(T329697.BILL_TO_PARTY_NAME, '('), T329697.ACCOUNT_NUM), ')') end )
    select distinct SAWITH0.c2 as c1,
    SAWITH0.c3 as c2,
    SAWITH0.c4 as c3,
    SAWITH0.c5 as c4,
    SAWITH0.c5 as c5,
    SAWITH0.c6 as c6,
    SAWITH0.c7 as c7,
    SAWITH0.c1 as c8
    from
    SAWITH0
    order by c1, c6
    Test(Windows)
    select distinct D1.c2 as c1,
    D1.c3 as c2,
    D1.c4 as c3,
    D1.c5 as c4,
    D1.c5 as c5,
    D1.c6 as c6,
    D1.c7 as c7,
    D1.c1 as c8
    from
    (select sum(T316025.SALES_QUOTA) as c1,
    T329697.DIVISION_DESC as c2,
    T329697.AREA_DESC as c3,
    T329697.TERRITORY_DESC as c4,
    case when T329697.ACCOUNT_NUM is null then T329697.BILL_TO_PARTY_NAME else concat(concat(concat(T329697.BILL_TO_PARTY_NAME, '('), T329697.ACCOUNT_NUM), ')') end as c5,
    T150993.X_CONS_MAJOR_GROUP as c6,
    T66755.PER_NAME_ENT_YEAR as c7
    from
    W_DAY_D T66755 /* Dim_W_DAY_D_Common */ ,
    W_PRODUCT_D T67704 /* Dim_W_PRODUCT_D */ ,
    WC_SLX_DATA_F T316025 /* Fact_WC_SLX_DATA_F */ ,
    WC_CUSTOMER_HIERARCHY_D T329697 /* Dim_WC_Customer_Hierarchy_D_With_Error */ ,
    OBIEE_SECURITY_LOCATION_SALES T339204,
    W_PROD_CAT_DH T150993 /* Dim_W_PROD_CAT_DH_General */
    where ( T66755.ROW_WID = T316025.DAY_WID and T316025.CUSTOMER_HIERARCHY_WID = T329697.ROW_WID and T67704.ROW_WID = T316025.PRODUCT_WID and T67704.PROD_CAT2_WID = T150993.ROW_WID and T329697.TERRITORY_CODE = nvl(T339204.LOCATION , T329697.TERRITORY_CODE) and T329697.AREA_DESC = 'GROCERY AREA - EAST' and T329697.DIVISION_DESC = 'DOMESTIC SALES DIVISION' and T339204.USER_NAME = upper('Administrator') and case when T329697.ACCOUNT_NUM is null then T329697.BILL_TO_PARTY_NAME else concat(concat(concat(T329697.BILL_TO_PARTY_NAME, '('), T329697.ACCOUNT_NUM), ')') end = 'JETRO CASH AND CARRY ENTERPRISES INC(10313)' and (T66755.PER_NAME_ENT_YEAR in ('2011', '2012')) and (T329697.TERRITORY_DESC in ('BOSTON', 'CHARLOTTE', 'FLORIDA', 'GREAT LAKES', 'MID-SOUTH', 'NEW YORK', 'WHITE ROSE')) )
    group by T66755.PER_NAME_ENT_YEAR, T150993.X_CONS_MAJOR_GROUP, T329697.TERRITORY_DESC, T329697.AREA_DESC, T329697.DIVISION_DESC, case when T329697.ACCOUNT_NUM is null then T329697.BILL_TO_PARTY_NAME else concat(concat(concat(T329697.BILL_TO_PARTY_NAME, '('), T329697.ACCOUNT_NUM), ')') end
    ) D1
    order by c1, c6
    If we observe test query is very simple and easy to back track but in Dev it is appending like sawwith0,sawwith1 etc..looking difficult.
    Is there in any configuration to change to generate query like Test(with out SAWWITH0).
    NOTE:Any how results are same in both instances.
    Please help me to resolve this issue.
    Thank You,
    Anil Kumar.

    Anil,
    Are your database settings the same in both of the rpds dev and test?
    Check wether you didn't change anything to the default. Open your RDP double click on the Database in the physical layer and go to Feature you can check all the settings there
    Adil

  • How to install two instance on one server

    Dear Guru,
    I want to install two instance on one server.
    I have installed IDES server ( win 2k3 64 bit with SQL 2005 ECC 6.0)
    Drive is
    c: 20 GB for os
    d: 5 gb swap
    e: 5 gb  swap
    f: 450 GB database.
    The same server i want to  installed SOLMAN 4.0 with sql 2005.
    Please suggest me how to installed without affcting IDES server.
    Amol

    Hi,
    You only have to consider 2 things :
    1. SAPTRANSHOST entry in hosts file will be the same for both systems
    this mean that both systems will share the same transport directory
    Regards,
    Wojtek
    This is not true.  Your SAPTRANSHOST will remain the same, but you can (and should) specify independent trans directories with the DIR_TRANS and and EPS profile parameters to designate where the instance trans files should be located (i.e. /usr/sap/trans_SID).  I recommend you make this change in the existing host first, and then clear out the trans directory.  Let the 2nd instance install into it and then alter that one too (thereby moving the files to the new /usr/sap/trans_SID2).
    Edited by: David Ingersoll on Jan 31, 2008 3:12 PM

  • Can't Remove Datasets From SQL Server Management Studio Restore Database Dialog

    Hello,
    I am trying to restore a database in MS SQL 2008 R2 Management Studio on a Windows 2008 server.
    - I right click the Databases folder and choose Restore Databases.
    - I select the From device radio button as usual and click Add.
    - I specify a .bck file as usual and click OK.
    - When I return to the Restore Database dialog are two backup sets already in the "Select backup location to restore" part of the dialog that I unsuccessfully tried to restore earlier already there.
    - I can see the path to the backup set that I want to add in the "From device" field of the "Restore Database" dialog. The backup is not listed in "Select backup location to restore" as it should be.
    - I tried restarting the SQL Server service and I rebooted the server but the files were still there when I tried to do a restore.
    - There is no option to remove the extra datasets in the "Select backup location to restore" part of the dialog. I am hoping that if I can remove the extra datasets that this will resolve the problem. Does anyone have any idea how to remove them?
    Martin Mann

    Hello,
    My issue was a bit different then your screenshot. I was able to choose a backup dataset with no problem from the "Select backup devices" dialog as you show in the screenshot. At that time the "Restore Database" dialog box you show in the background had
    no backup files, you show filetest1, filetest2. However after clicking the "Add" to files were listed in the "Restore Database" dialog neither of which was the one that I was trying to add. The problem was that the wrong files were listed in the "Restore Database"
    dialog and I couldn't remove them.
    The problem turned out to be two issues. I resolved the problem as follows:
    It turned out that someone had compressed my server c:\ drive and I was not aware of it. Disk compression and SQL server have conflicts. As I had never compressed a drive I didn't know that Windows Explorer displays compressed files in blue letters. So the
    first step was to decompress the drive. Which did not fix the problem.
    What had caused the files to show up was that I had somehow created a backup with two data sets in it. It seems that when SQL Server creates a backup one of the first things it does is check the drive for the required space and create an empty backup file
    the size of the backup to reserve the disk space. It seems that I had created a file that contained space for a backup but no data with another back with data behind it. When I looked at the backup file size in explorer it was almost twice the size it should
    have been.
    I resolved the problem by changing the path of the default backup folder. I was able to do a restore from there. Afterwords the default backup folder worked and the files listed were no longer there.
    Sorry for the confusion and thanks for the help.
    Martin Mann

  • Getting Error 'errors found reading piece handle' when restore database in rman

    Hi Guru's,
    i'm using oracle 11g and 12.1.3 EBS. i need to refresh the test instance using production rman backup. i set all the datafile path and when i restore the database, all the datafiles are restored but end of that it shows some error (backup piece referring production path). please advise. Thanks
    i'm using following comands
    catalog backuppiece '/PROAPP1/20130623/PROD_DB_okocs65n_33556_1';
    run
    set newname for datafile '/PRODB01/oraprod/db/apps_st/data/system01.dbf' to '/PROAPP2/HYDUAT/db/apps_st/data/system01.dbf' ;
    set newname for datafile  '/PRODB01/oraprod/db/apps_st/data/system02.dbf' to  '/PROAPP2/HYDUAT/db/apps_st/data/system02.dbf';
    restore database;
    following are the output
    channel ORA_DISK_4: restoring datafile 00403 to /PROAPP2/HYDUAT/db/apps_st/data/a_txn_ind02.dbf
    channel ORA_DISK_4: restoring datafile 00406 to /PROAPP2/HYDUAT/db/apps_st/data/a_txn_ind05.dbf
    channel ORA_DISK_4: reading from backup piece /backup/DB/rman/20130623/PROD_DB_omocs65n_33558_1
    channel ORA_DISK_2: errors found reading piece handle=/backup/DB/rman/20130623/PROD_DB_okocs65n_33556_1
    channel ORA_DISK_2: failover to piece handle=/PROAPP1/20130623/PROD_DB_okocs65n_33556_1 tag=TAG20130623T000509
    channel ORA_DISK_2: restored backup piece 1
    channel ORA_DISK_2: restore complete, elapsed time: 01:05:05
    channel ORA_DISK_4: errors found reading piece handle=/backup/DB/rman/20130623/PROD_DB_omocs65n_33558_1
    channel ORA_DISK_4: failover to piece handle=/PROAPP1/20130623/PROD_DB_omocs65n_33558_1 tag=TAG20130623T000509
    channel ORA_DISK_4: restored backup piece 1
    channel ORA_DISK_1: restore complete, elapsed time: 01:13:38
    Finished restore at 28-JUN-13

    >channel ORA_DISK_2: errors found reading piece handle=/backup/DB/rman/20130623/PROD_DB_okocs65n_33556_1
    >channel ORA_DISK_2: failover to piece handle=/PROAPP1/20130623/PROD_DB_okocs65n_33556_1 tag=TAG20130623T000509
    Oracle will try the original expected backup location and then failover to the new (cataloged) location.  To prevent it from trying the original location that is unavailable, you should also CROSSCHECK BACKUP ALL (and optionally DELETE EXPIRED BACKUP ALL) so that it would mark the original location (/backup/DB/rman/20130623...)  as unavailable and not try it at all.
    Hemant K Chitale

  • RMAN restore database from another backup of different database in the same host

    Hi Experts,
    I have taken FULL Database Backup using RMAN , now I want to Restore and Recover the same database on different instance on Same Host.
    Could u suggest any document or Steps to achieve this task.....
    Thanks,
    Mouni.

    No Problem.
    Please check this :
    http://docs.oracle.com/cd/E11882_01/backup.112/e10642/rcmdupdb.htm#BRADV420
    ORACLE-BASE - Duplicate a Database Using RMAN in Oracle Database 11g Release 2
    Ensure you follow what Mr. Hemant has mentioned.
    Regards
    Karan

  • Cluster database control showing instances down

    I have created a two node cluster in windows 2k3 x 64bit and therefore cant use my grid control as there doesnt seem to be an agent for it, therefore am using the DBconsole instead.
    on the welcome window its showing both instances as down, but i know this not to be the case. When going into the database page, both instances are showing as up! I cant work out quite why, have done everything i can think of to get it working with no joy.
    any ideas?

    The CLUSTER_NAME parameter appears to have not been set when creating the DB Console repository.
    See Metalink note: 340362.1 How to Create DB Console in A RAC Environment.

  • Restore database

    Hi,
    I try learn how restore database.
    Case:
    Database is in archivelog mode and hot backup runs every night at 2:00am by cron job and backup.sh
    I drop table using
    drop table mytbl purge;So I can not get it from recyclebin.
    Or I do some other mistake and I like restore whole database to state where it was in certain time
    I have try read all kind documents and experiment how to do this without luck.
    If someone could give me steps to do restore
    Thanks advance
    Br,Jari

    Here is a full scenario with RMAN.
    First backup database with RMAN:
    C:\oraclexe\oradata\XE>rman target /
    Recovery Manager: Release 10.2.0.1.0 - Production on Thu May 13 20:26:46 2010
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    connected to target database: XE (DBID=2584040801)
    RMAN> backup database plus archivelog;
    Starting backup at 13-MAY-10
    current log archived
    using target database control file instead of recovery catalog
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=38 devtype=DISK
    channel ORA_DISK_1: starting archive log backupset
    channel ORA_DISK_1: specifying archive log(s) in backup set
    input archive log thread=1 sequence=166 recid=165 stamp=718921614
    channel ORA_DISK_1: starting piece 1 at 13-MAY-10
    channel ORA_DISK_1: finished piece 1 at 13-MAY-10
    piece handle=C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\BACKUPSET\2010_05_13\
    O1_MF_ANNNN_TAG20100513T202656_5YRK3KKF_.BKP tag=TAG20100513T202656 comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:02
    Finished backup at 13-MAY-10
    Starting backup at 13-MAY-10
    using channel ORA_DISK_1
    channel ORA_DISK_1: starting full datafile backupset
    channel ORA_DISK_1: specifying datafile(s) in backupset
    input datafile fno=00001 name=C:\ORACLEXE\ORADATA\XE\SYSTEM.DBF
    input datafile fno=00003 name=C:\ORACLEXE\ORADATA\XE\SYSAUX.DBF
    input datafile fno=00002 name=C:\ORACLEXE\ORADATA\XE\UNDO.DBF
    input datafile fno=00004 name=C:\ORACLEXE\ORADATA\XE\USERS.DBF
    input datafile fno=00005 name=C:\TMP\DF1
    channel ORA_DISK_1: starting piece 1 at 13-MAY-10
    channel ORA_DISK_1: finished piece 1 at 13-MAY-10
    piece handle=C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\BACKUPSET\2010_05_13\
    O1_MF_NNNDF_TAG20100513T202658_5YRK3LWO_.BKP tag=TAG20100513T202658 comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:25
    channel ORA_DISK_1: starting full datafile backupset
    channel ORA_DISK_1: specifying datafile(s) in backupset
    including current control file in backupset
    including current SPFILE in backupset
    channel ORA_DISK_1: starting piece 1 at 13-MAY-10
    channel ORA_DISK_1: finished piece 1 at 13-MAY-10
    piece handle=C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\BACKUPSET\2010_05_13\
    O1_MF_NCSNF_TAG20100513T202658_5YRK4FH7_.BKP tag=TAG20100513T202658 comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:03
    Finished backup at 13-MAY-10
    Starting backup at 13-MAY-10
    current log archived
    using channel ORA_DISK_1
    channel ORA_DISK_1: starting archive log backupset
    channel ORA_DISK_1: specifying archive log(s) in backup set
    input archive log thread=1 sequence=167 recid=166 stamp=718921646
    channel ORA_DISK_1: starting piece 1 at 13-MAY-10
    channel ORA_DISK_1: finished piece 1 at 13-MAY-10
    piece handle=C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\BACKUPSET\2010_05_13\
    O1_MF_ANNNN_TAG20100513T202726_5YRK4HRM_.BKP tag=TAG20100513T202726 comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:02
    Finished backup at 13-MAY-10
    RMAN> exit
    Recovery Manager complete.Drop the table:
    C:\oraclexe\oradata\XE>sqlplus / as sysdba
    SQL*Plus: Release 10.2.0.1.0 - Production on Thu May 13 20:27:34 2010
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    SQL>  select to_char(sysdate,'YYYY-MM-DD:HH24:MI:SS') time_now from dual;
    TIME_NOW
    2010-05-13:20:27:38
    SQL> select count(*) from test.t;
      COUNT(*)
             1
    SQL>  select to_char(sysdate,'YYYY-MM-DD:HH24:MI:SS') time_now from dual;
    TIME_NOW
    2010-05-13:20:27:56
    SQL> drop table test.t purge;
    Table dropped.
    SQL>  select to_char(sysdate,'YYYY-MM-DD:HH24:MI:SS') time_now from dual;
    TIME_NOW
    2010-05-13:20:28:10Stop database instance, restart database in MOUNT mode (this is the missing step in your last message)
    and restore database (RMAN will use last backup by default):
    SQL> shutdown abort
    ORACLE instance shut down.
    SQL> exit
    Disconnected from Oracle Database 10g Express Edition Release 10.2.0.1.0 - Produ
    ction
    C:\oraclexe\oradata\XE>rman target /
    Recovery Manager: Release 10.2.0.1.0 - Production on Thu May 13 20:28:34 2010
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    connected to target database (not started)
    RMAN> startup mount;
    Oracle instance started
    database mounted
    Total System Global Area     805306368 bytes
    Fixed Size                     1289996 bytes
    Variable Size                213909748 bytes
    Database Buffers             587202560 bytes
    Redo Buffers                   2904064 bytes
    RMAN> restore database;
    Starting restore at 13-MAY-10
    using target database control file instead of recovery catalog
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=35 devtype=DISK
    channel ORA_DISK_1: starting datafile backupset restore
    channel ORA_DISK_1: specifying datafile(s) to restore from backup set
    restoring datafile 00001 to C:\ORACLEXE\ORADATA\XE\SYSTEM.DBF
    restoring datafile 00002 to C:\ORACLEXE\ORADATA\XE\UNDO.DBF
    restoring datafile 00003 to C:\ORACLEXE\ORADATA\XE\SYSAUX.DBF
    restoring datafile 00004 to C:\ORACLEXE\ORADATA\XE\USERS.DBF
    restoring datafile 00005 to C:\TMP\DF1
    channel ORA_DISK_1: reading from backup piece C:\ORACLEXE\APP\ORACLE\FLASH_RECOV
    ERY_AREA\XE\BACKUPSET\2010_05_13\O1_MF_NNNDF_TAG20100513T202658_5YRK3LWO_.BKP
    channel ORA_DISK_1: restored backup piece 1
    piece handle=C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\BACKUPSET\2010_05_13\
    O1_MF_NNNDF_TAG20100513T202658_5YRK3LWO_.BKP tag=TAG20100513T202658
    channel ORA_DISK_1: restore complete, elapsed time: 00:00:36
    Finished restore at 13-MAY-10Recover database to a point in time before DROP TABLE
    RMAN> recover database until time "to_date('2010-05-13:20:27:00','YYYY-MM-DD:HH2
    4:MI:SS')";
    Starting recover at 13-MAY-10
    using channel ORA_DISK_1
    starting media recovery
    media recovery complete, elapsed time: 00:00:01
    Finished recover at 13-MAY-10Open the database and check that dropped table is back:
    RMAN> alter database open resetlogs;
    database opened
    RMAN> exit
    Recovery Manager complete.
    C:\oraclexe\oradata\XE>sqlplus / as sysdba
    SQL*Plus: Release 10.2.0.1.0 - Production on Thu May 13 20:34:24 2010
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    SQL> select count(*) from test.t;
      COUNT(*)
             1
    SQL>

  • Which archivelogs are required for restoring database

    I'm moving to RMAN direct to tape backups (via Netbackup). I'm hoping someone can clarify for me which archivelogs are needed for restoring/recovering a RMAN "hot" backup.
    I will have two tape pools with different retention periods:
    - standard (kept for 2 months)
    - long term (kept for 7 years)
    I plan to backup as follows:
    - archivelogs every 15 mins direct to the standard pool
    - daily backups to the standard pool
    - monthend backups to the long term pool
    Month ends will either be a full or a full plus a cumulative (level 2) (depending on the weekday that month end falls on).
    The bit I'm concerned about is archivelogs. After 2 months they will be expired on tape. But do I need archive logs in order to restore the month end backups?
    At the moment I record the SCN before the backup begins and after it finishes (retrieved via select first_change# first_scn from v$log where status = 'CURRENT'). Before recording the post-backup SCN, I force a logfile switch.
    For clones, I always restore to the post-backup SCN that I previously recorded (rather than using the tag I associated with the backup).
    So a few questions related to restoring after the 2 month window:
    - do I need the archivelogs created during the timespan of the backup ran in order to restore to the post-backup SCN?
    - If so, is just backing up these archivelogs (to the long term pool) by specifying the range of pre-backup SCN to post-backup SCN sufficient or are additional archivelogs likely to be required?
    - if I restore the database and don't specify an SCN but just specify the tag used at the time of the backup, will archive logs be required at all? In this case what would be the state of the restored database - would it be as it was at the beginning or at the end of the backup?

    Hi user4835675,
    do I need the archivelogs created during the timespan of the backup ran in order to restore to the post-backup SCN?Yes.
    If so, is just backing up these archivelogs (to the long term pool) by specifying the range of pre-backup SCN to post-backup SCN sufficient or are additional
    archivelogs likely to be required?Can you do a skip of the daily backup schedule duing the monthend backups run and run the "archivelogs every 15 mins" job to the long term pool?
    Or temporarily stop the "archivelogs every 15 mins" job during the monthend job and run the monthend backup with the "backup database plus archivelog" clause?
    if I restore the database and don't specify an SCN but just specify the tag used at the time of the backup, will archive logs be required at all?Yes, you need archivelogs to recover the datafiles to a consistent state.
    In this case what would be the state of the restored database - would it be as it was at the beginning or at the end of the backup?You can only restore to a point in time which past the end of the backup.
    Rgds,
    Tycho

  • Two Instances of Oracle Application Server 10.1.3.x using the same DB

    I can't seem to find any documentation about installing two instances of Oracle Application Server 10.1.3.x using the same database.
    Would the two instances conflict? Should I create a separate database for each instance? I am attempting to cluster two application servers and I want to know if I will need multiple databases, I can't see a reason why this would be a problem.
    Any advice on this matter would be appreciated.

    You have probably downloaded the wrong version.
    Do not download the Oracle SOA Suite 10g (10.1.3.5.1) for WebLogic Server (10.3.1),
    but the one below that option: Oracle SOA Suite 10g (10.1.3.x)
    See if you get something like the following zip file: soa_windows_x86_101310_disk1.zip
    This is just the OC4J without the WebLogic Server.

Maybe you are looking for