Attempting to restore database to same server with different name.

I have just restored my production database to an earlier backup to recover from a major application error.
I now need to reatore a second copy of the database to recover some data which was lost as a result of the restore. The only place I can do this is on the same server.
I can't use duplicate database because the time I want is before the resetlogs time of the current version.
I don't think I can use recover using backup controlfile because restoring the control file will have the old database name. Can I restore the control file, rename the database and still use the rman backups of the original database?
If so how?
Can use set incarnation to get round the resetlogs issue without affecting the current database?
10gR2
Windows 2008 64-bit
Edited by: Jim Smith on Oct 27, 2011 8:54 PM

Hi
Database name can be the same ORACLE_SID must be unique on the machine and in specific ORACLE_HOME.
So effectively you can have 2 databases with the same name but instance names must be unique.
Paul

Similar Messages

  • Backup and restore the wss_content db to the same server with different name

    Hi,
     I want to restore the content db of 80 port in my sp 2013  web appln to a different web appl. is this possible?
    By default wss_content is pointing to the 80 port. so if i wanna take the backup of this content db and restore it in the same machine as a  different content db name, is this achievable?
    if this is achieved, i want to mount this newly restored content db to a new  web appln.

    Hi Benjamin,
    you could restore database with new name using below script
    RESTORE
    DATABASEWSS_Content_NewFROMDISK='C:\Program
    Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\Backup\WSS_Content.bak'
    WITH
    MOVE'WSS_Content'TO'C:\Program
    Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\DATA\WSS_Content_New.mdf',
    MOVE'WSS_Content_log'TO'C:\Program
    Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\DATA\WSS_Content_Newt_log.ldf'
    Regards,
    Regards, <b>Khalil Kothia, PMP </b>
    Blog

  • Install many executable on the same PC with different names

    Hello,
    I'm trying to install several executables with different names in the same computer but at the end of install process the message is : "an higher  or existing version is already installed in this computer"
    I create the Executable and Setup with LabVIEW Application Builder and install the executable in the same Program Files root directory with a different sub-directory for each executable as this : Program Files-->MyProject-->SubProjet1 with exe1/SubProject2 with exe2 etc...
    My OS is WinXP pro SP2 and I work with LabVIEW 8.5.
    Thanks and regards,
    Armindo PINTO

    Hi Armindo,
    Thank you for using the NI forums! 
    From what I understand, you are trying to create multiple executables of a vi project to co-exist on the same PC. Any time you re-use the LabView 8.x project file, it will generate
    install package with the same product ID number. That means, if the
    deployed PC has the previous version installed, which had been
    generated from the same project file, the new install package will
    remove the previous version and overwrite it with the new version. Or as in your case, not allow you to install lower versions of the executable. That
    means, the previous version will be no longer available on the deployed
    PC. If you are creating an upgraded version to the product this is
    fine.
    However, if you need to re-use the LabView 8.x project
    file and generate a new product, which can potentially co-exist with
    the previous on the end user PC, you need to generate a new installer
    with a different product ID number. One of the way to do it:
    Copy existing project file (e.g. "name1.lvproj") under a different name (e.g. "name2.lvproj")
    Open the new instance of the project
     Expand the "Build Specifications"
     Right click on the installer specification, e.g. "name1 Installer"
    Select "Duplicate" from the menu
    You can now delete the instance "name1 Installer" and rename the "Copy of name1 Installer" to a suitable name, e.g. "name2 Installer"
     Make changes that are needed between the two versions, for example:
    Select a new source VI
    Build a new exe file
    Reflect the new exe file in the "name2 Installer"
    Make
    any other changes needed in "name2 Installer", for example different
    documentation files included in install, change in the target install
    directories, changes in the start menu shortcuts. etc.
    Build the install.
    Please let me know if this solves the issue, and let me know how you get on.
    Kind regards,
    Ashish Naik
    Field Sales Engineer
    National Instruments UK

  • Same SKU with different names in 2 systems

    Hello All,
    I am wokring on a SNP scenario. We have a finished sku A and its sub component sku C.
    <b>A (FERT) ---> C (RM)</b>
    We have forecast on sku A and want to find dependent demand in sku C thru SNP
    <b>Forecast A -
    > Find Dependent Demand C</b>
    <b>sku A maintained in ERP1 R/3 system as FERT
    sku C maintained in ERP 1 R/3 system with different name sku B as Raw material
    sku C maintained in ERP2 R/3 system as FERT</b>
    Now product A is maintained in one R/3 system and product C is in another R/3 system. Both these R/3 systems are connected to APO and both these materials are also in APO now.
    After heuristic planning in SNP, we want to pass the dependent demand to ERP2 system as Sales Order.
    My concern is if sku C has different name in 2 systems, how should I pass the demand to other system?
    Please advice.
    Thanks,
    Sanju
    Message was edited by:
            Sanju

    Maybe you can create SKU D in APO (and R3)  which is lined through PPMs or PDS to SKU B from ERP1 and SKU C from  ERP2 and aggregate  the dependent demand generated during Heuristics to SKU D
    then you can only transfer only SKU D to ERP2? Am not sure how important it is for you to hav the link between SKU D and SKU c in ERP2
    Alternately
    Dont transfer SKU C from ERP2 to APO. Only create Dependent demand for SKU C from ERP1 and transfer it to ERP2. You can run MRP again in ERP1 for the aggregated requirement (unless you want some APO specific functionality, the result must be close to what you will get in APO)

  • Migrate CA to Server with Different Name? What is the CA really for?

    So I'm reading and following along in this article:
    http://technet.microsoft.com/en-us/library/ee126170(WS.10).aspx
    Though I should have read through the whole thing first. Yes I want to Migrate the CA from Server A to Server B, but I dont want to Change the name of Server B to Server A! 
    I want Server B to have its New Name, though the article above is for Migrating to a Server that will have the Same Name as the old server.  )-:
    I'm not really sure what the CA is for. Seems like we had one in Win2003, and then when that Server Died and we had no Backup I just installed a new CA on a 2008 R2 server.  It only has like 20 Certs issues, most of which Expired and have IUSR for the
    Common Name. I think I might of used it once for A Cert for Testing HTTPS on a Dev Server....
    Thanks,
      Scott<-

    Maybe I'm not clear.
    My Original Plan was to Move a CA to a New Server with a New Name. I backed-up the Old CA. Uninstalled it. Read the Directions, and Duh, I cannot CHange its Name.
    After Reinstalling the OLD CA  and restoring the Backup, It was Fully Functional. The Old Certs were back.  I installed a NEW CA server in Parallel with the OLD CA Server reinstall.  Then Moments later EVERY connected PC on the Network seemed
    to request a Certificate from the a CA Server, though most Requested it from the OLD CA.
    None of these PCs had a Certificate from Either CA Prior to the reinstall oflthe OLD/install of the new.
    I have removed the Cert Templates from the OLD CA.
    The OLD CA had 40+ Clients with Certs Issued. Most are "Computer (Machine)" and some are "Domain Controller Authentication" and some are Directory Email Replication"
    How do I tell (either via GPO or login script or?) these clients that they need to request another Cert from the new CA.  The Certs that were Issued on the OLD CA were not manually Requested. The PCs themselves or AD initiated the request.
    Thanks,

  • How do Illstrator recognize if same plug-in will place with different name.

    Hi All,
    We are developing an Illutrator CS4 plug-in. we have source code of the plug-in. we need to add some extra features to that plug-in and build with new name. older one will work as it was. and newer one will work with new features. So both plug will resides same place with different name. the problem is, when I compile older soruce code and change the plug-in name. I'm getting error while loading plug-in it looks "older and newer version get conflict while name is different.
    Is Illustrator maintain any unique ID for each plug-in. if so, then where should i look for in my code?
    How do Illstrator recognize if same plug-in will place with different name?
    Any help would be appriciated.
    Thanks in advance,
    Johirul

    I don't believe Illustrator has anything like a UID for plugins. If you want them to co-exist, either make them named differently or put them in different sub-folders.
    On a related note, you CAN optionally set a plugin's name. You could then iterate over the plugin list at start up (before you set your name) and see if there's already a plugin with the same name. We do this to *prevent* our plugin from loading twice, but you don't seem to want that. I only mention this because this is about as close to 'unique identifiers' that AI gets, and frankly nothing stops you from having multiple plugins with the same name.

  • Steps to clone database in other server with restore daily

    Hi,
    I think i know what is the steps but need a guru that give me the ok.
    I have been asked to perform a clone database (11.2.0.3 with ASM) in another server. The original database (call PROD) has full backup everyday that it automatically (with crontab and a script i guess) restore the second database. The problem i see its that the original database is a RAC (2 nodes) but the second database is standalone (call TEST)
    I think the steps are:
    1) create a standalone database in second server with same number of diskgroups and same directories
    2) copy full backup to TEST server.
    3) duplicate with rman:
    connect auxiliary sys/password@TEST
    connect target /
    startup auxiliary nomount;
    run {
    allocate auxiliary channel ch1 type disk;
    duplicate target database to 'TEST' nofilenamecheck;
    release channel ch1;
    4) copy PFILE from PROD and modify (like standalone database) at TEST
    5) startup nomount; --test database
    6) restore controlfile from '< backup piece name of controlfile auto backup copied in step 2>'; --at test database
    7) alter database mount; --test database
    8) recover, restore from full backup and open database-->
    run {
    allocate channel d1 device type disk format ' <path of the copied backup in step 2 >';
    set until sequence < sequence> thread < thread# >;
    restore database;
    recover database;
    SQL> alter database open resetlogs;
    9) like its a backup that has 2 undo tablespaces, should i drop 1?:
    SQL> drop tablespace UNDOTBS2 including contents and datafiles;
    All this steps at first time, are they right?, to do it automatically in the script i should use 2) 5) 6) 7) 8)?
    -- like the databases names are different, should i have any problem when restore de controlfile? if yes, how to avoid it?
    Thanks in advance and sorry for the inconveniences
    Edited by: Me_101 on 30-jul-2012 5:46

    Me_101 wrote:
    Hi,
    I think i know what is the steps but need a guru that give me the ok.
    I have been asked to perform a clone database (11.2.0.3 with ASM) in another server. The original database (call PROD) has full backup everyday that it automatically (with crontab and a script i guess)Why guess? Can't you look at the crontab schedule and see for yourself?
    restore the second database. The problem i see its that the original database is a RAC (2 nodes) but the second database is standalone (call TEST)
    That should not be an issue. Even with RAC there is still only a single database to duplicate.
    I think the steps are:
    1) create a standalone database in second server with same number of diskgroups and same directories
    2) copy full backup to TEST server.
    3) duplicate with rman:
    connect auxiliary sys/password@TEST
    connect target /
    startup auxiliary nomount;
    run {
    allocate auxiliary channel ch1 type disk;
    duplicate target database to 'TEST' nofilenamecheck;
    release channel ch1;
    4) copy PFILE from PROD and modify (like standalone database) at TEST
    5) startup nomount; --test database
    6) restore controlfile from '< backup piece name of controlfile auto backup copied in step 2>'; --at test database
    7) alter database mount; --test database
    8) recover, restore from full backup and open database-->
    run {
    allocate channel d1 device type disk format ' <path of the copied backup in step 2 >';
    set until sequence < sequence> thread < thread# >;
    restore database;
    recover database;
    SQL> alter database open resetlogs;
    9) like its a backup that has 2 undo tablespaces, should i drop 1?:
    SQL> drop tablespace UNDOTBS2 including contents and datafiles;
    All this steps at first time, are they right?, to do it automatically in the script i should use 2) 5) 6) 7) 8)?
    -- like the databases names are different, should i have any problem when restore de controlfile? if yes, how to avoid it?
    Thanks in advance and sorry for the inconveniences
    Edited by: Me_101 on 30-jul-2012 5:46Take a look at the DUPLICATE DATABASE command in rman. Key is to connect to the production db as target, duplicate databse as auxiliary
    connect catalog rman/cat@rmcat
    connect target sys/pswd@proddb
    connect auxiliary /
    run {                        
    duplicate target database to NEWDBSID;
    }                                        where NEWDBSID is the name of the new database
    Put together what you think is the correct procedure and give it a shot. If you have specific problems, bring them to the forum.

  • 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

  • Unable to copy database with different name in the same instance

    I had a huge database and wanted to try some change optimization changes.
    So wanted to make a copy of the database along with data in the same instance.
    I have tried copy database wizard several times but always see the error as in attachment.
    Can someone let me know how to troubleshoot further?
    If this is not the correct way please suggest how do i copy a database with different name in the same instance along with data.

    Hi Nandu,
    From the screenshot, the error 1813 happens when corrupt database log is attempted to attach to the SQL Server. To work around this issue, please preform the following steps, for more details, please review this
    blog.
    1. Create a new database with same name which you want to recover. Make sure that the MDF file and LDF file have same name with previous database data and log file.
    2. Stop SQL Server. Move original MDF file from old location to new location by replacing just created MDF file. Delete the LDF file of new location just created.
    3. Start SQL Server. At this point, the database is in suspect status.
    4. Make sure that system tables of Master database allows to update the values. Please note that you will be performing this in query window.
    Use Master
    go
    sp_configure 'allow updates',1
    reconfigure with override
    go
    5. Change database mode to emergency mode.
    SELECT *
    FROM sysdatabases
    WHERE name = 'DatabaseName'
    BEGIN
    UPDATE sysdatabases
    SET status = 32768
    WHERE name = ' DatabaseName '
    COMMIT TRAN
    6. Restart SQL Server. Then execute the following DBCC command in query window to create new log file.
    DBCC TRACEON (3604)
    DBCC REBUILD_LOG(databasename,'c:\yourdatabasename_log.ldf')
    GO
    7. Reset the database status using following command.
    sp_RESETSTATUS yourdatabasename
    GO
    8. Turn off the update to system tables of Master database running following script.
    USE MASTER
    GO
    sp_CONFIGURE 'allow updates',0
    RECONFIGURE WITH OVERRIDE
    GO
    9. Reset the database status to previous status.
    BEGIN
    UPDATE sysdatabases
    SET status = (value retrieved in first query of step 5)
    WHERE name = 'DatabaseName‘
    COMMIT TRAN
    GO
    Make sure that you have done all the steps in order and restarted SQL Server where it is mentioned. Also run SQL Server Management Studio as administrator.(Right click-> Run as Administrator)
    Thanks,
    Lydia Zhang

  • Oracle on same server with other DB

    I'm trying to find a technical reason why it isn't good to have Oracle installed on the same server with SQL Server or some other DB Product. I've seen lots of people say, "Don't do it.", but I haven't seen a technical reason. If someone could point me to an FAQ or another source, I'd appreciate that as well.
    TIA
    VaAccess

    AFAIK, adpatch is not aware of how much memory a server has. The number of workers it recommends depends on a set formula - pl see
    How Does Adpatch Determine The Number Of Workers To Recommend? [ID 800024.1]     
    You are essentially wanting to a trade-off between performance and speed. You could specify 2 workers, but the upgrade will take an unacceptably long time. Allocating a large number of workers will affect performance on the other databases, as you have experienced. You will need to find a sweet spot somewhere in between that is acceptable to you. If you have additional hardware resources, one option is to move the non-EBS databases off this server. I do not think there is a magic bullet to solve your issues.
    HTH
    Srini

  • How to transfer database table contain null values, primary key, and foreign key to the another database in same server. using INSERT method.

    how to transfer database table contain null values, primary key, and foreign key to the another database in same server. using INSERT method.  thanks

    INSERT targetdb.dbo.tbl (col1, col2, col3, ...)
       SELECT col1, col2, col3, ...
       FROM   sourcedb.dbo.tbl
    Or what is your question really about? Since you talke about foreign keys etc, I suspect that you want to transfer the entire table definition, but you cannot do that with an INSERT statement.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • Can we create standby database on same server as primary database

    I have Oracle 10g Rel2, OS Windows server 2003. Can I create standby database on same server on which we have our primary database?

    Bharat Kaushik wrote:
    I have VMware server s/w, do i need to create 2 virtual machines inside the one installation of VMware server? Or do i need to have 2 different installation of VMware server?You could think of VMWare Server in similar terms are Oracle Database Server.
    The HOME: The VMWare Server s/w is put into a "VMWare Home" (I use VMWare Workstation, it goes into C:\Program Files\VMware\VMware Workstation)
    The INSTANCE: WHen I create a VM Image, I specify the name (like a SID), configuration (like PFILE), and location (like ORACLE_BASE/oradata/ ...)
    And just like Oracle with which I can have 2 or more instances running on the host (if there is sufficient memory and other resource), I can have 2 or more VM Images running on my host.
    And just like Oracle, if I have insufficient resources, things get slow like molasses in the middle of winter.
    Hope your desktop has at least 4GB of OS-addressible RAM and at least dual-core CPU. ALternately ... I hope you have lots of coin for the coffee machine.

  • How do i backup my iphone 3 started on one itunes account and restore to the same phone with a different itunes account without losing all my information?

    how do i backup my iphone 3 started on one itunes account and restore to the same phone with a different itunes account without losing all my information?

    Please search the forums. This has been covered here extensively.

  • How to use the same OC4j server with different port number

    How to use the same OC4j server with different port numbers..?
    I have to OC4J installed on my machine on different hard disk drives....
    I want to be able to run both the server simultaneously..?
    is it possible ..it yes then how..?
    for that i have changed the port number of one server...
    but when i am trying to start the other server with different port number..it says that JVM -Bind already...
    Is there any clues...?
    Nilesh G

    In the config directory:
    default-web-site.xml: Change the port the HTTP listener listens on
    jms.xml: Change the port the JMS service listens on
    rmi.xml: Change the port the ORMI listener listens on.
    Or, you can add another web-site.xml file, and deploy your applications to 1 server, and bind the web applications to the different web sites. This way you only have to deploy your applications to 1 place.
    Rob
    Oracle

  • Hi All, I am using iphone in UAE and ipad in India usinging same apple id. Earlier I could do imessage  to my Ipad with different name but with  software update,I am unable to do, as signing id for the iphone and ipad is same.How to restore back

    Hi All, I am using iphone in UAE and ipad in India usinging same apple id. Earlier I could do imessage  to my Ipad with different name but with  software update,I am unable to do, as signing id for the iphone and ipad is same.How to restore back

    I believe because you migrated from a Nokia to an iPhone you need to register the Bn phone number with your Apple ID so it can be used for iMessage. The Pn number seems to be the only one registered
    Go here > https://appleid.apple.com/cgi-bin/WebObjects/MyAppleId.woa/
    Manage your Apple ID and see if that does the trick
    Hope that helps

Maybe you are looking for

  • Open a form from a 3rd party Java/Web based application

    Hi All, I am working for a client who has a 3rd party web application built in Java. For one of his requirements, he wants to open a form, an apps standard form on the click of a button/url in their application. This appears like a normal form openin

  • Setting classpath in WebLogic 7.0

    I'm a WebLogic newbie. I've developed some simple EJB and everything works fine. I want to add an external package (jar file) to the classpath but can't figure out how to do it. Detailed help will be most welcome (which file to edit or directory to t

  • Detecting Click on an MC inside an attached movieclip

    I'm working with a MovieClip ("mainMenuItem") that is linked to a Class ("GenericMenuItem.as") that uses attachMovie to add another movieclip ("Arrow") to mainMenuItem as follows: mcArrow = this.attachMovie(prefix+"Arrow", "_Arrow_symbol", this.getNe

  • 9ias : Slow first time and fast the other times

    Hi, I'm facing a problem with using Reports 9ias on a HP-UX server ... I start a report server on the server I'm calling the report from forms with RUN_REPORT_OBJECT (destype=file, desformat=pdf, batch, synchronous) and then call a web.show_document.

  • Hi I would like to figure out the answers to my security questions, is this possible?

    Hi I would like to figure out the answers to my security questions, is this possible.