Colne db2 to db1 on same server ??

I have 2 DB, lets call them db1 and db2....
lets say i want to restore db2 into db1....
and they are both on the same server...
db2 get loaded with some new data...and now we want db2 to reflect
as db1 (without replication)...as we want to do a restore of db1
couple of times after our stress testing is done..
both DB are up and running, i take a backup of db2...
then how do i proceed? how can i used backup of db2 and restore it into db1?..
if i were to start db2 restore, it will obviously start the restore but will have same dbid and
and db name (that is db2)...i know i can use nid tool to change dbid and dbname later...but
what are the exact step...i am not sure of that...
from what i can tell...these are teh steps i can think of...
take backup of db2..
then shutdown db2, and db1
delete db1 ...
then what do i do here??
restore db2 (if i do this, wouldnt it overwrite db2, so how can i clone db2) ???
and at the end use nid to changed the DBID and DB_NAME..i am on 10.2.0.3 on hp-ux

Hi S2K,
Best option is to use the duplicate command.
Check this link on how to set it up.
http://www.stanford.edu/dept/itss/docs/oracle/10gR2/backup.102/b14191/rcmdupdb001.htm
Only db1 needs to be changed to nomount and some parameters need to be set to avoid overwriting (DB_FILE_NAME_CONVERT, LOG_FILE_NAME_CONVERT) controlfile, new dbid are all automatic just as the rename of the database.
Regards,
Tycho

Similar Messages

  • Two DB2 software installation on the same server

    Hello,
    Do you know if it is possible to have two separate DB2 software installations on the same server (OS is AIX)?
    Thanks,
    Florin

    Hello Florin,
    On V8 there is the possibility to use different FixPak levels when using the Alternate FixPaks provided by IBM.
    SAP allowes you to use the Alternate FixPaks in your test environment, but NOT in production.
    Here is the remark from OSS note 101809:
    Remarks on "alternate FixPaks"
        o  DB2 Enterprise Server Edition (ESE) Version 8.1 for UNIX-based operating systems now supports the coexistence of multiple FixPak levels on the same system through the use of "alternate" FixPaks.
        o  On details on this feature please refer to official IBM Web sites.
        o  "Alternate FixPaks" are not supported by SAP. Their use should be restricted to testing purposes.
    This is the link to IBM's website:
    http://www-1.ibm.com/support/docview.wss?rs=71&context=SSEPGG&dc=D600&uid=swg21112119&loc=en_US&cs=UTF-8&lang=enclass=
    Please keep in mind that if SAP requires a special build for a certain FixPak there would be no Alternate FixPak which contains the same fixes and therefore you cannot use it at all. OSS note 101809 contains the necessary FixPak information.
    Regards,
      Joachim

  • Same Application Variables name in different websites on the same server.

    Hi,
    I have two websites in the same server that use both their own Application.cfm file.
    In each Application.cfm file is defined the application variable Application.DB
    In website1 the Application.DB = DB1
    In website2 the Application.DB = DB2
    Since I'm studying Application.CFC solution, and I did read that application variables with same name have as scope the entire server ... I'm a bit worried. This happen also with Application.CFM ?

    Since I'm studying Application.CFC solution, and I did read that application variables with same name have as scope the entire server ... I'm a bit worried. This happen also with Application.CFM ?
    That's not quite how it works.  Each application has its own name, and application.foo on one application (name) is a different variable from application.foo within a different application (name).
    Reading these sections of the docs might help:
    Configuring and using application variables:
    http://help.adobe.com/en_US/ColdFusion/9.0/Developing/WSc3ff6d0ea77859461172e0811cbec0c35c -7fec.html
    cfapplication:
    http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-7d 69.html
    About applications:
    http://help.adobe.com/en_US/ColdFusion/9.0/Developing/WSc3ff6d0ea77859461172e0811cbec0b63c -7fda.html
    Defining the application and its event handlers in Application.cfc:
    http://help.adobe.com/en_US/ColdFusion/9.0/Developing/WSc3ff6d0ea77859461172e0811cbec22c24 -7d39.html
    You should definitely be using Application.cfc, not Application.cfm, btw.
    Adam
    Adam

  • How to create linked server to multiple database on same server?

    Hi Experts
    I want to create linked server to multiple databases on the same server.
    I have 2 database servers (ServerA and ServerB) and want to create linked server on ServerB to link multiple databases on ServerA).
    I have admin right on ServerB.
    I don't have admin right on ServerA but have different accounts to access on each databases on ServerA.
    After I created one linked server object to a database, I cannot create another linked server object for another database as it has already used the server name which is ServerA.
    Please advise.
    Thanks.

    EXEC sp_addlinkedserver 'ServerADB1', '', 'SQLNCLI', 'ServerA', @catalog = 'DB1'
    EXEC sp_addlinkedserver 'ServerADB2', '', 'SQLNCLI', 'ServerA', @catalog = 'DB2'
    etc.
    Please look up the details for sp_addlinkedserver as I typed this from memory.
    I can certainly see a point in having one linked server per database, as then you don't have to hardcode the database name in the queries, and the linked-server definitions can be changed if the database name changes.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • Database copy on same server

    Hi guys,
    I want to copy the existing 6.40 system TBW to a new instance TBX on the same server. I've created all filesystems, copied the content, changed SIDs and paths in environment scripts and profiles and restored the database TBW to TBX with brdb6brt. Now my problem is to understand how to set the permissions and users correctly. the authorizations are stored in the DBM(SYSADM,SYSCTRL and SYSMAINT group) and their names contain the SID of the instance. So what do I do? Copy the db2tbw user to db2tbx and assign the "wrong" old groups to it? Or use the same user db2tbw also for db2tbx? Or is it possible to have more than one DBM per server? What are the best practices about more than one SAP DB/2 instance on one server? Any docus around?
    Regards,
    Pascal

    Hi Pascal
    use everything separate
    [except Database Connect Users since Database schemata  cannot be renamed .]
    There is nothing special when performing a systemcopy on the same server .
    Hint : The group names need to be adjusted in the DBM config
    >>>snip<<<
    Copy the db2tbw user to db2tbx and assign the "wrong" old groups to it?
    >>>snip<<<
    No , better
    create an  new user db2tbx
    create the according groups
    dbtbxadm , dbtbxctl , dbtbxmnt and assign db2tbx to these groups
    create an new database instance db2tbx and restore your
    database into this instance
    >>>snip<<<
    Or use the same user db2tbw also for db2tbx?
    >>>snip<<<
    This is not possible , you need an new separate database instance "db2<dbsid>" for your new Database TBX .
    >>>snip<<<
    Or is it possible to have more than one DBM per server?
    >>>snip<<<
    Yes of course you can have more than one database instance per server .
    Best regards
    dirk

  • Application and Database on the same server

    I have a Java Application and a db2 database(SWDTEST) that reside on the same server. In the Application I want to connect to the database. What would I use to do this? When the application resides on a client machine I use the "sun.jdbc.odbc.JdbcOdbcDriver" driver and can get a connection. Code looks like:
    try{
    //load the driver class
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    //Define the data source for the driver               
    String wdURL = "jdbc:odbc:SWDTEST";
    String username = "UNTEST";
    String password = "PTEST";
    wdConnection = DriverManager.getConnection(wdURL, username, password);
    wdStatement = wdConnection.createStatement();
    catch(SQLException e)
    System.out.println( e.toString() );
    But when I move the same application to the server and run it I get the following error message:
    java.sql.SQLException: [IBM][CLI Driver] SQL1013N The database alias name or database name "SWDTEST" could not be found. SQLSTATE=42705
    Do I need to set something on the server so that SWDTEST is a recognized database name or connect to it some other way?
    Thanks in advance.

    Does the server have ODBC installed on it? (Windows boxes will, unix will likely not.)
    Do you have a ODBC driver installed on the the server. This has nothing to do with java.
    Have you created a DSN on the server?

  • Forward to different web-app on same server

    I can forward a request from a servlet to another web-app on same server, but the authenticated principal is not propagated from original servlet to forwarded servlet. I'm using the requestDispatcher.forward(req,resp) method. It seems that if you forward to a web-app within same EAR or server than the user's identifty should be propagated.

    With tomcat you can use single sign on .
    http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/host.html#Single%20Sign%20On
    regards Dietmar

  • Error while uninstalling and then re installing sharepoint 2013 on same server(windows server 2012)

    Hi All,
    I have installed SharePoint 2013 prerequisites successfully on windows server 2012. While installing SharePoint 2013, system struck on for several minutes. I have restart my system manually. Later I then installed prerequisites which showed a successful
    lessage. But When I try to install SharePoint 2013. I am getting the following error:
    trial editions and lincensed editions of SharePoint, Project Server, and Office Web apps products may not be installed on the same server.
    I am unable to find solution for this issue. what is the solution for this?
    Thanks in Advance..
    Prem Kumar

    To be honest, the quickest thing you could do (and what I would do regardless) is re-build the server (re-install Windows).
    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.

  • Move file from App server to same server on different path

    Hi All,
    I have to move a file from Application server to a folder in the same server....
    pls tell me how can i do this....
    its very urgent....
    Thanks...............

    Hi
    First you read the file in output mode using Open dataset and Read dataset statement with the initial application server path.
    Then write this data back to another file path by opening the file in Input mode and using Transfer statement.
    Example.
    open dataset <file1> mode output encding default.
    if sy-subrc = 0.
    do.
    read dataset <file1> into wa_itab.
    if sy-subrc = 0.
    append wa_itab to itab.
    else.
    exit.
    endif.
    enddo.
    open dataset <file2> mode input encding default.
    if sy-subrc = 0.
    loop at itab into wa_itab.
    transfer wa_itab to <file2>.
    endloop.
    endif.
    ~ Ranganath
    PS : Reward points for all useful answers !

  • How can I migrate file shares & permissions from one volume to another on the same server?

    I am replacing a storage array and as part of that process, I need to move files/folders and Shares/permissions from one Volume to another volume within the same server.
    The server is Windows 2003 file server.  The file transfers are not a problem, moving all 40 shares with permissions etc. is my main concern because in order to maintain everything I need to change the drive letter of the new volume to match the old
    one so that links to various resources throughout the network do not break.

    Hi, 
    If you want to copy files/folders from one Volume to another volume within the same server, you could use the File Server Migration Tool (FSMT) or Robocopy to accomplish your goals. The tool can move all of the files from the shares on your original volume
    to the new volume.
    For more detailed information, you could refer to the articles below:
    File Server Migration Toolkit
    http://technet.microsoft.com/en-us/magazine/2006.10.utilityspotlight.aspx
    The File Server Migration Toolkit (FSMT) is a free download available at:
    http://www.microsoft.com/en-us/download/details.aspx?DisplayLang=en&id=10268
    Robocopy
    http://technet.microsoft.com/en-us/library/cc733145.aspx
    FSMT and Robocopy will not copy Share permissions but only NTFS permissions. So if the drive letter will not be changed, you can backup and restore the Share permission with steps here:
    Saving and restoring existing Windows shares
    http://support.microsoft.com/kb/125996
    Regards, 
    Mandy
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Access to different application in same server

    Any know an easy way to access the JNDI/EJB of a different application
    running in the same server?
    Perry Hoekstra, MS
    E-Commerce Architect
    Talent Software Services

    Only the classfiles of any user-defined classes/interfaces that are possibly used
    as parameters or return values from the methods in the home/remote interfaces. If
    you aren't doing that, then the home and remote interfaces is all you need.
    Bill
    Perry Hoekstra wrote:
    [email protected] wrote:
    Hrm. It's no different from accessing EJB's deployed in the same application
    (EAR) except that local calls are no longer possible.
    Perry Hoekstra <[email protected]> wrote:
    Any know an easy way to access the JNDI/EJB of a different application
    running in the same server?
    Perry Hoekstra, MS
    E-Commerce Architect
    Talent Software Services--
    DimitriI should have explained myself better. I was thinking more from a
    packaging point of view. Beside the remote and home interfaces of the
    called bean, are there any other files necessary to be packaged with the
    calling bean ejb.jar?
    Perry Hoekstra, MS
    E-Commerce Architect
    Talent Software Services
    [email protected]

  • Different logon pages for same server.

    hi Expert,
    I have created two different logon pages with different URL's for the same server, now i can use both the pages to logon in to the system.
    what i need to do now is :-
    URL "A"  users set ="A"
    URL "B"  users set ="B"
    If we have the above two different URL and respective users for those URLs.
    Now if i am User from the User set "A"  and try to Login by using URL "B".
    I am able to login, but i want to restrict.
    ie.
    users from set ="A" login only by the link URL "A" 
    users from set ="B" login only by the link URL "B" 
    Points would be given to helpful answers.
    Regards,
    Sanjyoti.

    Hi Sanjyoti,
    I am not sure if this would work, but if time permits then do try this.
    User A -- URL A
    User B -- URL B
    Now make User A a part of Group A, and set conditions in code that Group A can logon only through URL A and User B can logon through URL B.
    Then in code check the association user - group and group - url and accordingly allow / disallow the user to go ahead.
    This is just a thought.....do tell me if this works.....or if it doesnt then do post the solution you use....
    Thanks,
    GLM
    P.S: PLEASE CLOSE THE THREAD IF THE ISSUE HAS BEEN RESOLVED
    Edited by: GLM on Aug 27, 2008 2:08 PM

  • Activating MS Office 2013 ProPlus via KMS running on the same server

    Given: Microsoft Windows Server 2008 R2 Enterprise 64-bit, all the latest security updates applied.
    KMS service set up and running, all the recommended updates applied (to handle possible activation issues for Windows 8 etc)
    Microsoft Office 2013 Standard deployed on the server mentioned above and on workstations on intranet, volume licensing in effect (proper KMS key for activation of Microsoft Ofice 2013 has been entered).
    Problem: I can't activate MS Office 2013 installation running on the same server where KMS service is being run.
    There are no entries in KMS event log related to this failure.
    Everything was restarted, reinstalled etc several times already (including installing 32-bit and 64-bit versions of the Office).
    Output of slmgr.vbs /dlv 2E28138A-847F-42BC-9752-61B03FFF33CD:
    Windows Script Host
    Software licensing service version: 6.1.7601.17946
    Name: Office 15, KMSHostVL edition
    Description: Office 15, VOLUME_KMS channel
    Activation ID: 2e28138a-847f-42bc-9752-61b03fff33cd
    Application ID: 0ff1ce15-a989-xxxx-xxxx-xxxxxxxxxxxx
    Extended PID: 55041-00206-234-486666-03-xxxx-xxxx.xxxx-xxxxxxx
    Installation ID: 01683679734050124078134659xxxxxxxxxxxxxxxxxxxxxxxxxxx
    Processor Certificate URL: http://go.microsoft.com/fwlink/?LinkID=88342
    Machine Certificate URL: http://go.microsoft.com/fwlink/?LinkID=88343
    Use License URL: http://go.microsoft.com/fwlink/?LinkID=88345
    Product Key Certificate URL: http://go.microsoft.com/fwlink/?LinkID=88344
    Partial Product Key: xxxxx
    License Status: Licensed
    Remaining Windows rearm count: 4
    Trusted time: 2/05/2015 10:00:12 AM
    Key Management Service is enabled on this machine
    Current count: 0
    Listening on Port: 1688
    DNS publishing enabled
    KMS priority: Normal
    Key Management Service cumulative requests received from clients
    Total requests received: 0
    Failed requests received: 0
    Requests with License Status Unlicensed: 0
    Requests with License Status Licensed: 0
    Requests with License Status Initial grace period: 0
    Requests with License Status License expired or Hardware out of tolerance: 0
    Requests with License Status Non-genuine grace period: 0
    Requests with License Status Notification: 0
    OK
    Output of cscript ospp.vbs /dstatus
    Microsoft (R) Windows Script Host Version 5.8
    Copyright (C) Microsoft Corporation. All rights reserved.
    ---Processing--------------------------
    SKU ID: b13afb38-cd79-4ae5-xxxx-xxxxxxxxxxxx
    LICENSE NAME: Office 15, OfficeStandardVL_KMS_Client edition
    LICENSE DESCRIPTION: Office 15, VOLUME_KMSCLIENT channel
    LICENSE STATUS: ---OOB_GRACE---
    ERROR CODE: 0x4004f00c
    ERROR DESCRIPTION: Run the following: cscript ospp.vbs /ddescr:0x4004f00c
    Last 5 characters of installed product key: GVGXT
    DNS auto-discovery: KMS name not available
    Activation Interval: 120 minutes
    Renewal Interval: 10080 minutes
    KMS host caching: Enabled
    ---Exiting-----------------------------

    Given: Microsoft Windows Server 2008 R2 Enterprise 64-bit, all the latest security updates applied.
    KMS service set up and running, all the recommended updates applied (to handle possible activation issues for Windows 8 etc)
    Microsoft Office 2013 Standard deployed on the server mentioned above and on workstations on intranet, volume licensing in effect (proper KMS key for activation of Microsoft Ofice 2013 has been entered).
    Problem: I can't activate MS Office 2013 installation running on the same server where KMS service is being run.
    There are no entries in KMS event log related to this failure.
    Everything was restarted, reinstalled etc several times already (including installing 32-bit and 64-bit versions of the Office).
    Output of slmgr.vbs /dlv 2E28138A-847F-42BC-9752-61B03FFF33CD:
    Windows Script Host
    Software licensing service version: 6.1.7601.17946
    Name: Office 15, KMSHostVL edition
    Description: Office 15, VOLUME_KMS channel
    Activation ID: 2e28138a-847f-42bc-9752-61b03fff33cd
    Application ID: 0ff1ce15-a989-xxxx-xxxx-xxxxxxxxxxxx
    Extended PID: 55041-00206-234-486666-03-xxxx-xxxx.xxxx-xxxxxxx
    Installation ID: 01683679734050124078134659xxxxxxxxxxxxxxxxxxxxxxxxxxx
    Processor Certificate URL: http://go.microsoft.com/fwlink/?LinkID=88342
    Machine Certificate URL: http://go.microsoft.com/fwlink/?LinkID=88343
    Use License URL: http://go.microsoft.com/fwlink/?LinkID=88345
    Product Key Certificate URL: http://go.microsoft.com/fwlink/?LinkID=88344
    Partial Product Key: xxxxx
    License Status: Licensed
    Remaining Windows rearm count: 4
    Trusted time: 2/05/2015 10:00:12 AM
    Key Management Service is enabled on this machine
    Current count: 0
    Listening on Port: 1688
    DNS publishing enabled
    KMS priority: Normal
    Key Management Service cumulative requests received from clients
    Total requests received: 0
    Failed requests received: 0
    Requests with License Status Unlicensed: 0
    Requests with License Status Licensed: 0
    Requests with License Status Initial grace period: 0
    Requests with License Status License expired or Hardware out of tolerance: 0
    Requests with License Status Non-genuine grace period: 0
    Requests with License Status Notification: 0
    OK
    Output of cscript ospp.vbs /dstatus
    Microsoft (R) Windows Script Host Version 5.8
    Copyright (C) Microsoft Corporation. All rights reserved.
    ---Processing--------------------------
    SKU ID: b13afb38-cd79-4ae5-xxxx-xxxxxxxxxxxx
    LICENSE NAME: Office 15, OfficeStandardVL_KMS_Client edition
    LICENSE DESCRIPTION: Office 15, VOLUME_KMSCLIENT channel
    LICENSE STATUS: ---OOB_GRACE---
    ERROR CODE: 0x4004f00c
    ERROR DESCRIPTION: Run the following: cscript ospp.vbs /ddescr:0x4004f00c
    Last 5 characters of installed product key: GVGXT
    DNS auto-discovery: KMS name not available
    Activation Interval: 120 minutes
    Renewal Interval: 10080 minutes
    KMS host caching: Enabled
    ---Exiting-----------------------------

  • XI and R/3 Running on the same Server.

    Hello Friends!
    One year ago I've installed XI on a machine that already had a R/3 instance. Although there were different instances, one for SAP R/3 and one instance for the ABAP part of XI, I couldn't get to connect XI to the R/3, appartently XI searched for the instance through the IP address, ignoring the instance ID parameter.
    Now I have again the same challenge, I have only one machine to run R/3 and XI.
    Does anyone know if it is possible to do?

    Hi Tadeo,
    from ERP 2004 you can install XI on the same server.
    Regards,
    Udo

  • How can i deploy two different versions of the same application on the same server??

    I have two different versions of an application. One is a released version. And another version under development. I need to port this version of the application to the same server. I'm using the same classes and packages(except for some new ones). Is it sufficient if i change the name of my ear(application name). Or should i change my code also.

    Hi
    You can repackage the new versions of ear,jar and war with different names. I hope that should work well.
    Cheers
    -pradeep

Maybe you are looking for

  • I want to update multiple record in database which is based on condition

    hi all, I am using Jdev 11.1.2.1.0 I have one table named(Pay_apply_det) in this table i want to update one column named(Hierarchy) every time and according to change i want to update or i want to maintain my log table named(pay_apply_appr).It based

  • Is there a way to connect a Thunderbolt Display to a PC running Windows 7?

    I am thinking about purchasing a 27 in. display for my home office.  Can I connect a Thunderbolt Display to my work computer ( HP notebook running Windows 7)? Thanks,

  • RWB Alert is not comming  in Alert Inbox

    RWB Alert- i am unable to get alert in my Alert Inbox but when i am triggering through FM it is showing in inbox, can anyone suggest me what more need to be done so that i can recieve automatic? FYI--I have done all the steps required for configurati

  • Downloading specific emails

    I have a MacBook Pro with the OS 10.5.2. I use Apple Mail that downloads from a POP account. Recently my mail "requested that I rebuild it" which I did (an email must have been corrupt). In the process of rebuilding, about a months worth of emails di

  • Error (-42018) when trying to airplay from iMac to iPad2

    When trying to airplay from itunes on my iMac to my new iPad2, it starts ... connecting... and gives me the error "An error occurred while ... unknown error (-42018)." Anyone know what that mean? They are on the same network and I can pick the ipad t