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

Similar Messages

  • Restore database in the same server but with other sid (name)

    i try to restore the database in the same server but with other sid (name) . The backup is on tape and
    I want to know the steps I should follow.
    thank.

    To perform restore of database in same host to choose another DB name you can go for
    1) duplicate using RMAN.
    Directory structure should be different so take care of db_file_name_convert & log_file_name_convert parameters
    Also check the Tns services exactly is it pointing to target & auxiliary
    http://www.shutdownabort.com/quickguides/clone_rman.php
    http://www.oracle-base.com/articles/9i/DuplicateDatabaseUsingRMAN9i.php

  • Installation of EBS 12.1 and Database on the same server

    Hi,
    Due to resource crunch, I would like to do new installation of EBS 12.1 and Database on the same server where already EBS 12.1 and Database installed.
    I have one server where EBS 12.1 and Database installed (Single node installation).
    Now I want to create another environment for other purpose (another test env.). But I don't have another server .
    So Can I start new installation of EBS 12.1 and database on the same server ?
    I have enough space and memory on server.
    Are the installtion conflict with each other ? any implications happen on the first environment ?
    I want my first environment run fine without any prob., after installing EBS and DB on the same server.
    Please guide me.
    Regards,
    Sanjay Patel

    So Can I start new installation of EBS 12.1 and database on the same server ?
    I have enough space and memory on server.Yes you can as long as you have sufficient resources.
    Are the installtion conflict with each other ? any implications happen on the first environment ? If you install in different ORACLE_HOMEs you should be OK.
    Thanks,
    Hussein

  • Install two 10gAS infrastructure databases in a same server

    Can I install two 10AS infrastructure database in a same server? Each database will be used for different purposes.

    Never tried that but I belive that you can.
    It is the same as two classic databases on same machine.

  • Rman duplication of database to the same server and same disk group

    Hi,
    We have multiple databases - rmsprd1 and oidprd1 on asm disk groups - ASMDG_DAT01 and ASMDG_FRA01 on a server.
    Both these databases are single instance asm based databases.
    I am trying to do a rman duplication from rmsprd1 to rmsprd2 in the same server. I intend to use the same asm disk groups - ASMDG_DAT01 and ASMDG_FRA01.
    Is this possible ?
    Currently I have the following structure
    +ASMDG_DAT01/RMSPRD1/DATAFILE
    +ASMDG_DAT01/RMSPRD1/CHANGETRACKING/
    +ASMDG_DAT01/RMSPRD1/CONTROLFILE/
    +ASMDG_DAT01/RMSPRD1/DATAFILE/
    +ASMDG_DAT01/RMSPRD1/ONLINELOG/
    +ASMDG_DAT01/RMSPRD1/PARAMETERFILE/
    +ASMDG_DAT01/RMSPRD1/TEMPFILE/
    +ASMDG_FRA01/RMSPRD1/AUTOBACKUP/
    +ASMDG_FRA01/RMSPRD1/BACKUPSET/
    +ASMDG_FRA01/RMSPRD1/CONTROLFILE/
    +ASMDG_FRA01/RMSPRD1/DATAFILE/
    +ASMDG_FRA01/RMSPRD1/ONLINELOG/
    Will I be able to create something like
    +ASMDG_DAT01/RMSPRD2/DATAFILE
    +ASMDG_DAT01/RMSPRD2/CHANGETRACKING/
    +ASMDG_DAT01/RMSPRD2/CONTROLFILE/
    +ASMDG_DAT01/RMSPRD2/DATAFILE/
    +ASMDG_DAT01/RMSPRD2/ONLINELOG/
    +ASMDG_DAT01/RMSPRD2/PARAMETERFILE/
    +ASMDG_DAT01/RMSPRD2/TEMPFILE/
    +ASMDG_FRA01/RMSPRD2/AUTOBACKUP/
    +ASMDG_FRA01/RMSPRD2/BACKUPSET/
    +ASMDG_FRA01/RMSPRD2/CONTROLFILE/
    +ASMDG_FRA01/RMSPRD2/DATAFILE/
    +ASMDG_FRA01/RMSPRD2/ONLINELOG/
    I know that I can create a different asm disk group for the rman duplication but this is proving to be a hassle.
    Thanks
    Sandeep

    Hi,
    I have found the answer working with Oracle via a service request. Admittedly there was no direct oracle documentation for doing this and hence documenting the steps here.
    No legalities, formalities involved please.
    Here are the steps - rmsprd1 is the source, rmsprd2 is the target, +ASM is the asm instance supporting both rmsprd1 and rmsprd2. The intention is to put both the source and destination in the same server. The backupset backup in location /dbaadm/sandeep_rman_refresh will be used for the duplication.
    1) Take rman backupset backup of the source database - rmsprd1
    rman_take_backup.ksh ( Take backup of source - rmsprd1 using rman ). The contents of the rman_take_backup.sh script are given below :
    rm /dbaadm/sandeep_rman_refresh/*
    export NLS_DATE_FORMAT='YYYY-MM-DD:HH24:MI:SS'
    rman target / <<EOF
    run
    allocate channel d1 device type disk format '/dbaadm/sandeep_rman_refresh/%U';
    allocate channel d2 device type disk format '/dbaadm/sandeep_rman_refresh/%U';
    allocate channel d3 device type disk format '/dbaadm/sandeep_rman_refresh/%U';
    allocate channel d4 device type disk format '/dbaadm/sandeep_rman_refresh/%U';
    allocate channel d5 device type disk format '/dbaadm/sandeep_rman_refresh/%U';
    allocate channel d6 device type disk format '/dbaadm/sandeep_rman_refresh/%U';
    CONFIGURE CONTROLFILE AUTOBACKUP ON;
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/dbaadm/sandeep_rman_refresh/%F';
    backup as backupset database plus archivelog tag 'clonebackupset';
    EOF
    2) Make the directories for destination database ( rmsprd2 )
    /opt/oracle/admin> mkdir -p rmsprd2/adump rmsprd2/dpdump rmsprd2/pfile rmsprd2/scripts
    3) Create pfile from rmsprd1 spfile. copy/rename the pfile to make a pfile for rmsprd2.
    4) Edit listener.ora in ASM ORACLE_HOME and edit tnsnames.ora in DB ORACLE_HOME
    listener.ora
    LISTENER_RMSPRD2 =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1522))
    (ADDRESS = (PROTOCOL = TCP)(HOST = kirkjerpdb01.kirklands.com)(PORT = 1522))
    SID_LIST_LISTENER_RMSPRD2 =
    (SID_LIST =
    (SID_DESC =
    ( ORACLE_HOME = /opt/oracle/product/11.2.0/db_1 )
    ( SID_NAME = rmsprd2 )
    ADR_BASE_LISTENER_RMSPRD2 = /opt/oracle
    ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER_RMSPRD2=ON # Section added by Sandeep
    SUBSCRIBE_FOR_NODE_DOWN_EVENT_LISTENER_RMSPRD2=OFF
    ADMIN_RESTRICTIONS_LISTENER_RMSPRD2=ON
    tnsnames.ora ( http://francispaulraj.wordpress.com/ora-12528-tnslistener-all-appropriate-instances-are-blocking-new-connections/ )
    RMSPRD2 =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = kirkjerpdb01.kirklands.com)(PORT = 1522))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = rmsprd2)
    (UR = A)
    5) Build a passwordfile ( I just copied and renamed it )
    6) Edit /etc/oratab to add database entry for rmsprd2
    7) Set the environment for rmsprd2
    . oraenv
    rmsprd2
    8) Startup nomount of rmsprd2
    sqlplus / as sysdba
    startup nomount pfile=/opt/oracle/admin/rmsprd2/pfile/initrmsprd2.ora
    9) Create spfile from pfile='/opt/oracle/admin/rmsprd2/pfile/initrmsprd2.ora';
    10) shutdown and startup rmsprd2 with spfile
    SQL> shutdown abort;
    ORACLE instance shut down.
    SQL> startup nomount;
    ORACLE instance started.
    Total System Global Area 1068937216 bytes
    Fixed Size 2213632 bytes
    Variable Size 788531456 bytes
    Database Buffers 268435456 bytes
    Redo Buffers 9756672 bytes
    11) We are now ready for duplication from rmsprd1 ( source ) to rmsprd2 ( destination ) both using +ASM standalone asm instance. set the environment to rmsprd1and fire away.
    Please note that the duplicate script is only connecting to auxilary database ( rmsprd2 ) and using the backup location for the duplication.
    I used a unix shell script -rman_duplicate_from_backup.ksh. The contents are given below :
    $ORACLE_HOME/bin/rman auxiliary sys/prd123@rmsprd2 log=rman_duplicate_from_backup.log << EOF
    run
    allocate auxiliary channel d1 device type disk;
    allocate auxiliary channel d2 device type disk;
    allocate auxiliary channel d3 device type disk;
    allocate auxiliary channel d4 device type disk;
    allocate auxiliary channel d5 device type disk;
    allocate auxiliary channel d6 device type disk;
    DUPLICATE DATABASE TO rmsprd2
    BACKUP LOCATION '/dbaadm/sandeep_rman_refresh';
    EOF
    12) Voila - the rmsprd1 to rmsprd2 is done.....
    Hope this helps somebody else wanting to do the same excercize. Have Fun.....
    regards
    Sandeep

  • 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?

  • Moving the database in the same server

    Your replay:-
    for WIN NT: take a look at note 61747.1 Moving a 7.3 or 8.x database. And take a look at Note:99275.1, UNIX/NT: Moving a Database Within the Same Machine.
    Clarification: Where can i get the help for Note:61747.1 & 99275.1

    Sorry Sridhar.
    Take a look in MetaLink (www.metalink.com) and use the note ids to look up the information.
    Thanks.

  • When adding a database copy to a server in the dag I receive the following error message

    I have tried force replication, but didn't work. any suggestion on this
    The wizard could not complete . clokc finish to close this wizard.
    elapsed time 00:02:52
    summary 1 item 0 succeeded, 1 failed
    EX01-DB01
    Error:
    A source-side operation failed. Error An error occurred while running prerequisite checks. Error: the specified database isn't
    configured for replication and therefore cannot be used to perform seed operations. Database:EX01-DB01,
    Server:XXXXXXXXX
    Warning:
    Active directory couldn't be updated in HeadOffice site affected by the change to EX01-DB01; it won't be completely usable
    until after active directory replication occurs.
    Exchange management shell command attempted
    Add-MAILBOXDATABASECOPY. Identiy EX01-DB01 -Mailboxserver HUTAEX01'
    ActivationPreference '3'

    After Add-MailboxDatabaseCopy command fails, do you see if the DatabaseCopy added to the server or?
    I have seen this issue, it fails with above error, but after sometime it shows the copy added to the server.
    Check the event log for more information also, any event related to AD!!!
    Cheers,
    Gulab Prasad
    Technology Consultant
    Blog:
    http://www.exchangeranger.com    Twitter:
      LinkedIn:
       Check out CodeTwo’s tools for Exchange admins
    Note: Posts are provided “AS IS” without warranty of any kind, either expressed or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.

  • How to configure one Listener for 2 databases on the same server

    Hello all,
    Please, I am stuck as with my application server which requests the port 1521. I want to configure the repository to make use of the port 1521 which is also shared by another database on the server.
    Regards,
    Nadine

    Maybe it is worth mentioning here that am installing it with two different users as to have two ORACLE_HOME independent of each other.
    Below are the configuration files for the Listener.
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (GLOBAL_DBNAME = test.appstech.local)
    (ORACLE_HOME = /d02/app/oracle/product/10.2.0/db_1)
    (SID_NAME = test)
    (SID_DESC =
    (GLOBAL_DBNAME = testing.appstech.local)
    (ORACLE_HOME = /d01/app/oracle/product/10.1.2/ora_infra)
    (SID_NAME = testing)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = ebs.appstech.local)(PORT = 1521))
    TRACE_LEVEL_LISTENER = USER
    TEST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.15.4)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = test.appstech.local)
    TESTING =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.15.4)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = testing.appstech.local)
    Regards,

  • Multiple Oracle home and multiple Oracle database versions on same server?

    Hi all,
    I want to setup a test environment on single Windows XP server with an instance
    of Oracle 10g and Oracle 11g. How can I install both versions without problems?
    Thanks

    Hi,
    I am facing a problem on the same..
    below is the link to my thread.
    Multiple Oracle Home in Windows
    Please reply me how to solve this problem
    Thanks
    Bhavik Fuletra

  • Create dev and test instances of Apex on the same server and database

    I have a dev and prod instances of Apex on different servers. I want a test instance on the same server as the dev instance.
    I am using workspace export/import so all instance workspaces have the same workspace id. The application ID is the same on each instance, in the same workspace. This allows pages to be exported/imported in the differenct instances.
    My question is (I am sure it is obvious) can I have more than one instances of Apex on the same database (dev and test) and have each instance have identical Workspace IDs, etc.
    Sam

    Hi Sam,
    But you can have more than one database on the same server.
    What we do is create a separate database for each APEX versions we are supporting (we still have a customer using APEX 2.0).
    All the databases are accessed with the same APACHE config. All you have to do is change the DAD and have a separate dad for each database (i.e. each APEX versions).
    ex : /pls/apex_dev /pls/apex_test
    This way , I can run different APEX versions on the same server.
    Francis.
    http://insum-apex.blogspot.com/

  • Insert into different database - same server

    What do I need to do to insert values into a table in a database on the same server?
    I have databases A and B. I have a procedure in Database B that needs to insert a record into a table in Database A. I tried qualifying:
    Insert into DataBaseA.SchemaA.tableA (fields..) Values (values...); but that didn't work. I saw something on creating a link but I didn't quite understand it and all of the posts I have read haven't really given a clear syntax usage.
    Can anyone help? I also don't know the table to insert into until the procedure is run so I can't create anything "static".
    Thanks,
    Greg

    Hi Greg,
    You have to create a database link. Go through the following link for details:
    http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96540/statements_56a.htm#SQLRF01205
    Please let me know if you still have any concern.
    Regards
    Ghulam

  • 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]

  • 2 Portal Instances on Same Server

    I am trying to create a second portal instance in a separate database on the same server. The 9iAS lives on another server. I have already successfully got the first portal up and running with web browser access. However, I'm not sure how to get the second portal up and running with that ssodatan script.
    I tried specifying a separate port (7778) in that script and started a second port listening in httpd.conf, but this doesn't work. I also tried specifying a separate port and separate url (like portal302 and portal302_sso) in the http parts of that script, but this didn't work either.
    Each portal has it's own login server installed, so I don't want to associate both portals with a single login server.
    Can someone help me??? Thanks.

    Kathryn,
    Presumably you installed both Portal instances in different schemas (i.e. Portal30 and Portal309 etc.). If so, then all you will have to do is run the ssodatan script against each, referencing the exact http address for each. Once you have done this you should be able to contact both from the same http port (i.e. port 80) by referencing them in the URL (i.e. http://www.foo.com/pls/portal30 and http://www.foo.com/pls/portal309.

  • About listeners for different databases in the same ORACLE_HOME

    Hello experts, I have a doubt
    I have installed 3 different databases in the same server which OS is Suse Enterprise 10. At this moment I have just one listener that registers all the services. The number of connections are big for two of the three databases so I do not know what might be the best practices for this environment. I have some question I would like you suggestion for me:
    DB version: 11.1.0.7
    Should I have three listener, one for each database?
    Is a good practice to have only one listener for multiple instances in the same server?
    Are there differents between have only one listener for all the instance and have one listener for instance?
    What about the performance?
    Than you in advance, I hope you can guide me.

    Best practice is not to have multiple databases on one server, depending on resources.
    Should I have three listener, one for each database?
    No. That is pretty undesirable and requires more administration.
    Is a good practice to have only one listener for multiple instances in the same server?
    Yes. Remember the listener is only a broker and there are no permanent connections between client, listener and database.
    Are there differents between have only one listener for all the instance and have one listener for instance?
    Yes. The latter is an administration nightmare.
    What about the performance?
    Who cares? The only factors are
    listener.log becomes too big --> set up proper cleanup procedures
    The number of semaphores is exceeded (Unix) or no more threads can be created (Microsoft winblows), which will give rise to ora-12500.
    Sybrand Bakker
    Senior Oracle DBA

Maybe you are looking for

  • Web Service Security with SAML - Invalid XML signature

    Hello together, we want to build a scenario where we want to use Web Service Security  with SAML. The scenario will be WS Client (Java Application) -> WS Adapter -> Integration Engine ->  WS Adapter-> CRM (Web AS ABAP 7.01 SP 3) SAP PI release is 7.1

  • Factory unlocked iphone 5 turns out to be locked

    My aunt bought a factory unlocked iPhone 5 from London apple store at full price 530pounds. When I insert the nano sim in it, it says no service. So I went to IMEI.info and typed its imei. The status showed that my iphone is locked. What should I do

  • How to access Views of ERP with Netweaver BPM?

    Hello, i want to create an example-application with Netweaver BPM and Visual Composer. For this, more employees should share the creation of a new Material in an ERP Backend. Every emplyoee should enter data of a different View of MM01 ! (like Basic

  • Android Air runtime installation

    Hi, Is there any option to include Air runtime installation in the app installation? Now when I first open my app I have to install the Air Runtime and then it takes me to Android Market and that confuses the user. Thanks, Eyal.

  • Risk maintenance workflow on dev or prd?

    Dear experts, What is the best practice regarding risk maintenance workflow. Should it be facilitated on GRC Dev? Then regular (manual) export/import to GRC Prod to keep them both in sync? Kind Regards, Vit