Restore database with new DB name

I'm trying to restore a database from a hot backup with a new database name. I'm trying to use the backup control file with the SET DATABASE in the control file. That works ok, but when I run RECOVER DATABASE USING BACKUP CONTROLFILE I get errors such as
ORA-00279: change 1516911820 generated at 09/08/2006 17:14:43 needed for thread 1
and ORA-00308: cannot open archived log
Can anyone help me? I'm not using RMAN currently with the DUPLICATE command because I'm running on NetApp filers and it would be much faster to duplicate the database this way. Also, I'm duplicating on the same server so I need to use a different instance name.
Thanks,
Michael Cunningham

Assuming source is in Archive Log mode.
Your scenario is :-
Cloning Database in the same server using OS copy.
I believe you are stuck with recovery issues, what you need to do is feed the archive log that the database is asking for. You can also try giving it the redo logs.
RECOVER DATABASE USING BACKUP CONTROLFILE;
feed it the archive/redo logs. Till you get a Media recovery complete message.

Similar Messages

  • Error while restoring database with different name on subscriber

    Hi all,
    I am using merge replication in sql server 2008R2. Yesterday I wanted to create a test environment, so
    I did:
    1. on publisher I restored from backup production db with another name ( lets call it TEST and new files
    .mdf, .ldf and no switch KEEP_REPLICATION). After this step original replication between production
    dbs worked fine.
    2. on subscriber I did the same: restore as new db TEST with new
    files .mdf, .ldf and no switch KEEP_REPLICATION.
    Unfortunately I noticed, that after second step replication stopped. SQL agent replication job on Subscriber
    is gone.
    Why restoring db with new name did affect original replication?
    Finally the most important: replication was set up by external company and I have to bring it to live now
    but I don't know this subject so good. How can I do it?
    Assuming, that there is no data change on subscriber in replicated tables is it enough when I select ‘reinitialize’
    on Publisher and Subscriber?
    Thanks in advance
    Artur

    Hello,
    Sorry for late response, but I was out of the office during last week.
    Regarding problem 1: restoring replication. I contacted guy who made originally our replication and he recreated subscription agent. So this is solved.
    problem 2: why did it happen?
    Lydia, in link which you provided I found only info about restoring db in replication, but I didn't want to restore replication.
    I checked SQL Server and Server Agent logs and there were no entries on that time. The only entries are regarding db restoring. Below:
    09/11/2014 12:45:59,Backup,Unknown,Database was restored: Database: Logik_ATData_TEST<c/> creation date(time): 2012/04/27(13:55:41)<c/> first LSN: 21392:66:267<c/> last LSN: 21392:227:1<c/> number of dump devices: 1<c/> device information: (FILE=1<c/> TYPE=DISK: {'D:\MSSQLBackup\Dzienny\Logik_ATData_PROD\Logik_ATData_PROD_backup_2014_09_10_231001_6391536.bak'}). Informational message. No user action required.
    09/11/2014 12:45:59,Backup,Unknown,Restore is complete on database 'Logik_ATData_TEST'. The database is now available.
    09/11/2014 12:45:59,spid72,Unknown,CHECKDB for database 'Logik_ATData_TEST' finished without errors on 2012-04-26 22:50:05.490 (local time). This is an informational message only; no user action is required.
    09/11/2014 12:44:53,spid72,Unknown,Recovery is writing a checkpoint in database 'Logik_ATData_TEST' (13). This is an informational message only. No user action is required.
    09/11/2014 12:44:53,spid72,Unknown,Starting up database 'Logik_ATData_TEST'.
    09/11/2014 12:44:51,spid72,Unknown,The database 'Logik_ATData_TEST' is marked RESTORING and is in a state that does not allow recovery to be run.
    09/11/2014 12:44:51,spid72,Unknown,Starting up database 'Logik_ATData_TEST'.
    In Windows application log there were also no other entries, besides these above.
    I also could not check job history, because the job was gone in SSMS jobs list, while the subscription was present in SSMS Replication with info, that last successful synchronization was at 12:42 (there is a 5 min. sync period).
     I also don't understand how the job was deleted, because according this manual (http://www.mssqltips.com/sqlservertip/1803/auto-alert-for-sql-agent-jobs-when-they-are-enabled-or-disabled/) I have 2 triggers in sysjobs table and every time, when
    job is deleted/disabled I got @ notification. In this case I got no @.
    My SQL Server version:
    Product_Version Product_Level Edition
    10.50.2550.0 SP1 Standard Edition (64-bit)
    Any idea what happened?
    Thanks,
    Artur

  • Is it possible to create a Clone database with the same name of source db ?

    Is it possible to create a Clone database with the same name of source db using RMAN ...
    DB version is 11.2.0.2
    Is it possible to clone a 11.2.0.2 database to 11.2.0.3 home location directly on a new server . If it starts in a upgrade mode , it is ok ....

    user11919409 wrote:
    Is it possible to create a Clone database with the same name of source db using RMAN ...
    yes
    >
    DB version is 11.2.0.2
    Is it possible to clone a 11.2.0.2 database to 11.2.0.3 home location directly on a new server . If it starts in a upgrade mode , it is ok ....yes
    Handle:     user11919409
    Status Level:     Newbie (10)
    Registered:     Dec 7, 2009
    Total Posts:     102
    Total Questions:     28 (22 unresolved)
    why do you waste time here when you rarely get any answers to your questions?

  • How to change the Existing alias with new alias name...MAXL SCRIPT

    HI Experts
    I need to change alias name of the existing member with new alias name.
    please send me maxl code to change the alias name .
    My thought is
    1) Old alias should be replaced with new alias name .
    2)There is one account that should be rolled out to another parent..these parents are already exsist
    3) I need a MAXL Script to change the new alias name .
    please suggest ASAP.
    Thanks
    USER

    John
    I heard that we can replace existing alias name with new alias thru MAXL
    i.e replace alias name XXXX member with YYYY ;
    please correct me if iam wrong ,might be Maxl command is wrong but this is the idea.
    Thanks
    USER

  • [svn:osmf:] 13083: Updated MASTAdapter class with new trait names and events.

    Revision: 13083
    Revision: 13083
    Author:   [email protected]
    Date:     2009-12-17 16:10:05 -0800 (Thu, 17 Dec 2009)
    Log Message:
    Updated MASTAdapter class with new trait names and events.
    Modified Paths:
        osmf/trunk/plugins/MASTPlugin/org/osmf/mast/adapter/MASTAdapter.as
        osmf/trunk/plugins/MASTPluginIntegrationTest/src/org/osmf/test/mast/TestMASTPluginInfo.as
        osmf/trunk/plugins/MASTPluginIntegrationTest/src/org/osmf/test/mast/adapter/TestMASTAdapt er.as

    Silviu!
    I'm really sorry, but as all the office is trying to fix the problem, someone replaced the url content with the stuff that was pointing to the local machine.
    I've fix it, and the video player is available here again: http://pp.player.webtv.flumotion.com/params/apiKey/5PzLR2ULL3z2rumJ/videoId/60
    If there are other references to the localhost, please do not bother with them, as they do not affect player functionality.
    The stream that it uses is an RTMPE, so i'm afraid it will only works with this player. Anyway, the stream url is as follows: rtmpe://87.248.205.81/a4349/e2/veo7/ondemandrtmpe/mp4/med/first-person-mario-4d8741aa.mp4
    I really appreciate your help!
    Thank you!

  • Powershell command to migrate Exchange 2007 mailbox databases with a legacy name, & import them into a new 2007 instance, with a new name.

    Hi All. I am currently at the later stage of provisioning a new CCR Exchange 2007 migration (to
    virtualise old Exchange 2007 hardware) for 5,000 users & have a quick question.
    I have created around 15 newly named storage groups, & have named 1 new DB per group, with the same name (let's say New-DB-1), residing within them.  The problem I have, is the old legacy DB's have different names (let's say Old-DB-1) & I need
    to import them into the new storage groups, to match the new names. So far I can import/export between old & new OK if both old & new DB names\folders etc. names marry up perfectly, but are unable to if there not the same. Does anyone have any thoughts
    on how best to tackle this, as this is one of the final hurdles stopping the migration? Many Thanks, John 

    Hi All
    Many Thanks for the feedback.
    The terminology 'migrate' was used based around the fact I will be decommissioning the old 2007 physical environment. This is after moving all DB's over to the new newly created Virtual environment that will host all roles.
    The solution I ended up using yesterday, was the following:
    1) Dismounted the relevant named DB (NEWDB) in the new environment.
    2) I then ticked the 'This database can be overwritten by a restore option' box.
    3) Copied over the old named DB (OLDDB) to the same location, & overwrote using the new name (NEWDB).
    4) Re-mounted the (NEWDB).
    5) Ran the following 2 PowerShell commands:
     Get-mailbox –database OLDDB | move-mailbox –targetdatabase NEWDB -configurationonly:$true
     Get-MailboxDatabase NEWDB | ResetSearchIndex.ps1 -force
    6) Checked to make sure the clients were working ok, in the now the new (NEWDB) environment.
    Rich: Many thanks for your PS script, which I will test with future DB moves & provide feedback
    J
    John.

  • Restoring database with NOARCHIVELOG

    After several failed attempts at trying to get Enterprise Manager to work with my database, I decided to uninstall the Enterprise Edition completely and then to install it from scratch. I did and found, as expected, that my database files were still intact, on another drive. However, what I didn't expect was that uninstalling Oracle also removed the init*.ora files I had for the different databases, and so the DBCA showed no databases at all. So I figured I would create new databases with the same settings, and then copy all the files from the old locations to the new ones. That went well, except for with one database.
    When trying to open that database, I get a ORA-00280 and the suggested file that should contain the sequence, is not at that location. In fact I could not find it anywhere on my disks, even after using a program to undelete content. However I know for a fact that I ran my old databases in NOARCHIVELOG mode, yet the name of the suggested file hinted at it being an archive log.
    I have been googling all day long, and tried out several different methods, restoring, recovering, RESETLOGS, NORESETLOGS, what to do when not having neither archive logs or possibly redo logs (as I don't know what the ONLINELOG files are specifically), but they all ended up with me being at the same point, needing that .arc file which I should've never had, due to NOARCHIVELOG mode.
    So here is where I'm at. I have a CONTROLFILE folder with 1 control file, a DATAFILE folder with the usual tablespace files, and an ONLINELOG folder with 3 log files. I even tried using those 3 log files for recovering the database, but to no avail. I have all the data, and while I guess the ORA-00280 means that there has been a change in the database since the data files were written, I haven't changed much data so I could easily add whatever little data is missing from the tablespace USERS. So I need some instructions, some help on how to open and mount the database and avoid getting the ORA-00280 or being able to ignore it and still open the database. As I created a new database, there are no archive logs backed up, so I can't recover any files that way, I only have the data files, control files and log files to work with.

    You're not in as bad as shape as you think.
    If you have the data files and one control file, you can recover/restore the database. First thing to do is get a working init.ora file and get the instance up and running. Then, work on the control file (so you can at least mount the database). Fix what you need to in terms of paths/file locations. It may take several iterations. You can also bypass the existing controlfile and create your own. Eventually, you'll be able to have a successful "alter database open" step.
    http://www.databasejournal.com/features/oracle/article.php/3738736/Recovering-from-Loss-of-All-Control-Files.htm
    Number one precaution: take a copy of what you have now and put it somewhere else, just in case. You don't want to make the situation worse.

  • Restore database to new server

    Hi,
    today I wanted to test a restore to a new server.
    DB=10.2.0.4
    rman catalog is used
    backup on TSM Tape
    First I configured the new server to use the same TSM backup node as the original server.
    tdpoconf showenv is ok.
    Then I checked Meatlink 419137.1 and copied the pfile to the new server and changed the xxx_dest parameter.
    Now I want to restore the controlfile.
    RMAN> run {
    2> allocate channel ch1 device type sbt;
    3> restore controlfile;
    4> }
    released channel: ORA_SBT_TAPE_1
    released channel: ORA_DISK_1
    allocated channel: ch1
    channel ch1: sid=154 devtype=SBT_TAPE
    channel ch1: Data Protection for Oracle: version 5.3.3.0
    Starting restore at 23-FEB-11
    released channel: ch1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of restore command at 02/23/2011 12:47:27
    ORA-27191: sbtinfo2 returned error
    Additional information: 2
    RMAN> list backup of controlfile;
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    839079 Incr 1 18.25M SBT_TAPE 00:00:05 22-FEB-11
    BP Key: 839082 Status: AVAILABLE Compressed: NO Tag: TAG20110222T180016
    Handle: INC1_WORX_24789_743796123_1 Media: 97852
    Control File Included: Ckp SCN: 8267760886177 Ckp time: 22-FEB-11
    obviously there is a control file!
    I also tried to set the dbid from the server who made the backup
    RMAN> set dbid=1324742276;
    executing command: SET DBID
    run {
    database name is "WORX" and DBID is 1324742276
    RMAN> 2> allocate channel ch1 device type sbt;
    3> restore controlfile;
    4> }
    allocated channel: ch1
    channel ch1: sid=154 devtype=SBT_TAPE
    channel ch1: Data Protection for Oracle: version 5.3.3.0
    Starting restore at 23-FEB-11
    released channel: ch1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of restore command at 02/23/2011 12:50:03
    ORA-27191: sbtinfo2 returned error
    Additional information: 2
    what's wrong?
    br
    Daniel

    Please post the entry of alert.log file and watch my video tutorial on Disaster Recovery
    http://kamranagayev.wordpress.com/2010/03/29/rman-video-tutorial-series-performing-disaster-recovery-with-rman/

  • How to keep same database with two different names in SharePoint 2013 for two different applications

    Hi All,
    I have very strange situation.
    I had SP2010 production database(wss_content_contoso) migrated to SP13 few months back to migrate one site collection only while I have 15 site collections stored in this database and created a site contoso.com
    Now, I want to migrate same(wss_content_contoso) SP2010 database to SP13 and want to create contoso2.com.
    I changed database name from wss_content_contoso to wss_content_contoso2 and assigned newID during mount process.
    After this exercise, I don't see any site for contoso2.com and issue seems to be the same database. 
    My question is!!!!
    How I can keep both databases(actually same database with different names) and run both application simultaneously?
    Any help appreciated!!
    Thank you,
    AM
    AM Senior SharePoint Consultant

    You need to run Backup-SPSite/Restore-SPSite on each Site Collection you want to 'duplicate'. You cannot restore the same Content Database to the same farm as the Site Collections have the same GUID, which is stored globally for the farm.
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • Can I create a database with the same name and DBID that one is dropped?

    Hello,
    I need to restore a backup database, made with Oracle Enterprise Manager, in a new one, because the original is dropped. I've tried it with the recovery tools but fails, i suppose because the dbid's are not the same.
    Then, Is it possible create a new database with the same old database dbid to restore de backup?
    Thank you very much.
    P.D.: I've too THE OLD spfile---.ora y el pwd---.ora

    I think you are using the same Composition Class on both project. On the properties tab, you can change this number (e.g.: EDGE-1637270).

  • Deploying a copy of existing database with a different name on the same server

    I am a developer(an inexperienced one) trying to understand what is the best way to deploy a brand new database with
    the exact same schema as an existing DB on the same server, but with a different name. I want to preserve the data in all reference tables which I can do by having the relevant post-deployment scripts run after the deployment. 
    What I can't understand is how the project should be set up to deploy database Customer_2 if database Customer_1 exists on
    this server - the Visual Studio project contains DB Customer and I need to find a way to be able to deploy Customer_N (but without creating N identical DB's in the project). I checked a ton of articles and blogs, and feel dumb asking this question but haven't
    been able to understand it yet. Any help would be appreciated.

    Hello,
    Maybe the TargetDatabase and the DeployToDatabase properties can help you.
    http://www.asp.net/web-forms/tutorials/deployment/web-deployment-in-the-enterprise/deploying-database-projects
    You can deploy multiples databases from one project if you want, as explained on the following
    post:
    http://stackoverflow.com/questions/1544966/gdr-deploying-multiple-database-targets-with-one-project
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • Restore Database on New Host in Catalog mode

    Dearest DBAs,
    Here is RMAN configuration details,
    163.19.0.153
    Production Database (orcl)
    163.19.0.154
    RMAN Catalog Database (rman)
    163.19.0.155
    BackupSets Location
    163.19.0.156
    Test Machine
    I have taken the backup through RMAN and now want to restore the database using RMAN to a test machine. Where test database was already running and I have only removed the data files, control files and redo log files.
    This document on the following link describes the steps
    http://download.oracle.com/docs/cd/B19306_01/backup.102/b14191/rcmrecov002.htm#sthref723
    I have connected to rman using following command
    c:\>set oracle_sid=orcl
    c:\>rman target rman/zaffar@rman nocatalog
    rman>set dbid 111122
    it gives me following error
    RMAN-03002
    RMAN-06188
    but rman is running in catalog mode that disallow me to set the dbid of the target database and because of this I am unable to proceed further.
    Kindly help.
    Regards,
    Asif

    the problem mentioned above has been solved, but now i am getting following error when i execute following script
    RUN
    # allocate a channel to the tape device
    ALLOCATE CHANNEL c1 DEVICE TYPE sbt PARMS='...';
    # rename the datafiles and online redo logs
    SET NEWNAME FOR DATAFILE 1 TO '?/oradata/test/system01.dbf';
    SET NEWNAME FOR DATAFILE 2 TO '?/oradata/test/undotbs01.dbf';
    SET NEWNAME FOR DATAFILE 3 TO '?/oradata/test/cwmlite01.dbf';
    SET NEWNAME FOR DATAFILE 4 TO '?/oradata/test/drsys01.dbf';
    SET NEWNAME FOR DATAFILE 5 TO '?/oradata/test/example01.dbf';
    SET NEWNAME FOR DATAFILE 6 TO '?/oradata/test/indx01.dbf';
    SET NEWNAME FOR DATAFILE 7 TO '?/oradata/test/tools01.dbf';
    SET NEWNAME FOR DATAFILE 8 TO '?/oradata/test/users01.dbf';
    SQL "ALTER DATABASE RENAME FILE ''/dev3/oracle/dbs/redo01.log''
    TO ''?/oradata/test/redo01.log'' ";
    SQL "ALTER DATABASE RENAME FILE ''/dev3/oracle/dbs/redo02.log''
    TO ''?/oradata/test/redo02.log'' ";
    # Do a SET UNTIL to prevent recovery of the online logs
    SET UNTIL SCN 123456;
    # restore the database and switch the datafile names
    RESTORE DATABASE;
    SWITCH DATAFILE ALL;
    # recover the database
    RECOVER DATABASE;
    ora-01511: erro in renaming log/data files
    ora-01516: nonexistent log file, datafile or tempfile 'e:\oradata\orcl\orcl\redo03.log'
    any help
    Regards,
    Asif

  • Backup/restore database with dump file

    Hi everybody,
    I would like to backup/restore my database with Oracle Utility commands(exp/imp) but I can only execute these commands in the machine where database server is being installed. When I use Oracle client to connect to DB server to execute these commands, DB server can not understand these commands.
    Is there any method to do this?
    Please help me.

    My workout for you is as follows (assuming, you configured tnsnames pointing to the listener concern with your database)...
    SQL> select * from example;
    ITEM STORE STARTDATE ENDDATE
    1 10 01-JAN-06 19-JAN-06
    1 10 03-JAN-06 20-JAN-06
    1 10 01-FEB-06 20-FEB-06
    2 10 01-JAN-06 15-JAN-06
    SQL>
    C:\>exp scott/[email protected] tables=example query=\"where item=1\" file=example.dmp
    Export: Release 9.2.0.1.0 - Production on Fri Dec 15 08:06:16 2006
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    Connected to: Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.1.0 - Production
    Export done in WE8MSWIN1252 character set and AL16UTF16 NCHAR character set
    server uses US7ASCII character set (possible charset conversion)
    About to export specified tables via Conventional Path ...
    . . exporting table EXAMPLE 3 rows exported
    Export terminated successfully without warnings.
    C:\>
    -aijaz

  • Multilingual word game/database with new words (japanese)

    Hi there!
    I guess the subject may be a bit confusing, but let me tell you what I'm looking for.
    I've started learning japanese language. I found the option to use japanese in my MacBook Pro. I want to create a database of new words that I learn using japanese (Hiragana) and Polish language. But I don't want it to be just normal text file or normal database. I want it first of all to be able to search words and then it could have the option to "play" with new words in a way it would help me remember new words (something like flash cards). Does anyone know anything like it?
    I could write it in Java using Mysql but it would take so much time...
    Anyways, one more thing - is there or how to create a shortcut to shitch languages is Tiger 10.4?
    Thanks a lot
    Adam M

    I want it first of all to be able to search
    words and then it could have the option to "play"
    with new words in a way it would help me remember new
    words (something like flash cards). Does anyone know
    anything like it?
    Try doing a google search for "os x language flash cards" .
    Anyways, one more thing - is there or how to create a
    shortcut to shitch languages is Tiger 10.4?
    Command + Space. You can see the info at the bottom of system prefs/international/input menu (input menu shortcuts).

  • Create account with new domain names

    Hi there.
    I'm trying to create an account with the new domain names ([email protected]). .works is part of the new domains names available all over in recent months, but in the sign up form it says the email is invalid when it's working perfectly and it's totally valid. 
    I've tryed to contact support without sucess. do you have any idea how I can register an account with my [email protected] ?
    Best regards, 

    Hi, Cesarcouto.com, and welcome to the Community,
    Thank you for your report, which I have forwarded to those to whom I report.  Unfortunately, I do not know when this as well as many of the new domains will be recognized by Skype's new account creation system as valid.
    Regards,
    Elaine
    Was your question answered? Please click on the Accept as a Solution link so everyone can quickly find what works! Like a post or want to say, "Thank You" - ?? Click on the Kudos button!
    Trustworthy information: Brian Krebs: 3 Basic Rules for Online Safety and Consumer Reports: Guide to Internet Security Online Safety Tip: Change your passwords often!

Maybe you are looking for

  • Locked Out of Blackberry ID and password Please Please Help

    I updated my blackberry messenger and its asking me for my id and password I have tried doing another ID but its not letting me do anything now my messenger has gone and I have tried accessing my app word but it keeps saying that I am locked out for

  • Itunes for windows 8 does not show toolbar and I can't change settings

    I just downloaded iTunes for Windows 8 and there is no tool bar.  I want to change settings but don't know how.  What do I do?

  • Does creative have plans to update Nomad Explor

    i think its a great simple piece of software.. except for one thing. its hard to transfer music from your play to the PC. you have to highlite every song in the album then drag and drop them onto your PC, in a folder you have to make yourself. and wh

  • Plant determination at PO level.

    Hi All, When we create a PO for a particular material, the plant should be automatcally populated in the PO. How can we configure this and please tell me the configuration path. Regards, karan

  • Database Design - Multiple Customer Tables

    Scenario: - Let's say there are various customer "types" - Each one has a set of attributes which is only applicable to that customer type. - You have a table for orders that is for all customers - Want to treat it as one customer table for reports,