How to move a database to another server

Hi - I am new to Oracle and am used to SQL Server. In SQL Server there was a DETACH and ATTACH DATABASE command that would allow you to make a copy of a database and all structures including triggers, procedures, indexes etc. Make a copy and reattach the database on the new server. I assume that the same is possible in Oracle but I can't seem to find the equivilent command(s). So how does one move a database? I take it that the SQL Server equivilent to database is in Oracle called a schema? Other than creating a sql script for each object, is there a overall process to move my application?

You could do one of the following:
1) Create a full export, create a another database with a script or DBCA, create the appropriate sized tablespaces, import to the new database.
2) If you are copying to the same OS you could shutdown the database, copy all the datafiles, logfiles, control files, etc. to the appropriate locations, rename the datafiles, control files, etc. as needed, and open the database.
3) Use RMAN to duplicate the database if it has been backed up using the RMAN utility.
4) If you already have a backup of all the datafiles, logfiles, control files, etc. from a backup you could copy those to the appropriate locations, rename the files as needed, and open the database.
I would suggest changing the database name. I can go into more detail on any of these if needed.

Similar Messages

  • Must Move 10g Database To Another Server

    Good morning,
    Well, right in the middle of my implementation, I've learned that we must change to a different physical server for the 10 g database. Wonderful.
    I have installed several patches. Will a consistent backup of the db capture those patches? After I restore to the new server, will I have to reinstall all patches?
    Don't most patchsets modify the Oracle instance as well as the database?
    Thanks, John

    Have you tried the clone features? On DBCA, there is a clone database option. If you use Enterprise Grid Control, they have a clone database from one server to another and you can choose different instance name and different file structure. This has the additional benefits of no need to bring down the current database. Also you can try the clone.pl to clone the oracle_Home. I have not tried one with patches but I guess it will include every thing under ORACLE_HOME. It will handle most but I still have trouble with the data control setup but then I recreate everything from scratch

  • Move zenworks databases to another server?

    How do i move our zenworks databases from an old (soon to be retired) server
    to a new one which hasnt had any zen s/w installed on it yet?
    I cant see anything about this in the group, and the novell KB hasnt been
    too fruitful, so i thought i'd ask here
    thanks in advance,
    Steven

    James,
    It appears that in the past few days you have not received a response to your posting. That concerns us, and has triggered this automated reply.
    Has your problem been resolved? If not, you might try one of the following options:
    - Do a search of our knowledgebase at http://support.novell.com/search/kb_index.jsp
    - Check all of the other support tools and options available at http://support.novell.com in both the "free product support" and "paid product support" drop down boxes.
    - You could also try posting your message again. Make sure it is posted in the correct newsgroup. (http://support.novell.com/forums)
    If this is a reply to a duplicate posting, please ignore and accept our apologies and rest assured we will issue a stern reprimand to our posting bot.
    Good luck!
    Your Novell Product Support Forums Team
    http://support.novell.com/forums/

  • How to move SQL database from one location to another location i.e. from C' drive to D' drive

    Hi, How to move SQL database from one location to another location i.e. from C' drive to D' drive ? please share some link.
    Thanks and Regards, Rangnath Mali

    Hi Rangnath,
    According to your description, my understanding is that you want to move databased from C drive to D drive.
    You can detach Database so that the files become independent, cut and paste the files from source to destination and attach again.
    There are two similar posts for your reference:
    http://mssqltalks.wordpress.com/2013/02/28/how-to-move-database-files-from-one-drive-to-another-or-from-one-location-to-another-in-sql-server/
    http://stackoverflow.com/questions/6584938/move-sql-server-2008-database-files-to-a-new-folder-location
    Best Regards,
    Wendy
    Wendy Li
    TechNet Community Support

  • Coying Database to another server

    Dear All,
    I want trying to copy database to another server but i got error
    Login failed for user 'domainName\ComputerName$'
    I already use domain administrator to both of server and already create user login in both server.
    Both of the login is domain administrator and same user for the server. I use SQL Server Standard Edition 2008 R2.
    How can i fix this error?
    please help
    Best regards,
    Surbakti

    Hi Surbakti,
    According to your description, if you copy a local database to a remote SQL Server via the copy database wizard, we need to verify if the SQL Server Agent Service account does have sufficient access
    rights to the remote server. See:
    Use the Copy Database Wizard
    Usually, I suggest the better option is to perform the full backup of the database and then copy the backup file manually to remote computer. Once done, restore the database from this backup file on
    remote computer.
    There is detail about move databases between computers that are running SQL Server instance.
    http://support.microsoft.com/kb/314546/en-us
    Regards,
    Sofiya Li
    Sofiya Li
    TechNet Community Support

  • Move large database to other server using RMAN in less downtime

    Hi,
    We have large database around 20TB. We want to migrate (move) the database from one server to other server. We do not want to use standby option.
    1)     How can we move database using RMAN in less downtime
    2)     Other than RMAN is there any option is available to move the database to new server
    For option 1 (restore using RMAN),
    Whether below options are valid?
    If this option is valid, how to implement this?
    1)     How can we move database using RMAN in less downtime
    a)     Take the full backup from source (source db is up)
    b)     Restore the full backup in target (source db is up)
    c)     Take the incremental backup from source (source db is up)
    d)     Restore incremental backup in target (source db is up)
    e)     Do steps c and d, before taking downtime (source db is up)
    f)     Shutdown and mount the source db, and take the incremental backup (source db is down)
    g)     Restore last incremental backup and start the target database (target is up and application is accessing this new db
    database version: 10.2.0.4
    OS: SUN solaris 10
    Edited by: Rajak on Jan 18, 2012 4:56 AM

    Simple:
    I do this all the time to relocate file system files... But the principle is the same. You can do this in iterations so you do not need to do it all at once:
    Starting 8AM move less-used files and more active files in the afternoon using the following backup method.
    SCRIPT-1
    RMAN> BACKUP AS COPY
    DATAFILE 4 ####"/some/orcl/datafile/usersdbf"
    FORMAT "+USERDATA";
    Do as many files as you think you can handle during your downtime window.
    During your downtime window: stop all applications so there is no contention in the database
    SCRIPT-2
    ALTER DATABASE DATAFILE 4 offline;
    SWITCH DATAFILE 4 TO COPY;
    RECOVER DATAFILE 4;
    ALTER DATABASE DATAFILE 4 online;
    I then execute the delete of the original file at somepoint later - after we make sure everything has recovered and successfully brought back online.
    SCRIPT-3
    DELETE DATAFILECOPY "/some/orcl/datafile/usersdbf"
    For datafiles/tablespaces that are really busy, I typically copy them later in the afternoon as there are fewer archivelogs that it has to go through in order to make them consistent. The ones in the morning have more to go through, but less likelihood of there being anything to do.
    Using this method, we have moved upwards 600G at a time and the actual downtime to do the switchover is < 2hrs. YMMV. As I said, this can be done is stages to minimize overall downtime.
    If you need some documentation support see:
    http://docs.oracle.com/cd/E11882_01/server.112/e18951/asm_rman.htm#CHDBDJJG
    And before you do ANYTHING... TEST TEST TEST TEST TEST. Create a dummy tablespace on QFS and use this procedure to move it to ASM to ensure you understand how it works.
    Good luck! (hint: scripts to generate these scripts can be your friend.)

  • Connect to a oracle database in another server

    Hi people,
    I have to read some tables on a oracle database in another server.
    I know that I will have to use EXEC SQL command, but how can I make the connection between SAP and that oracle database.
    I have seen something about the DBCON table, but I am not sure if I can connect on another server from ther and how...
    Thanks...

    Dear,
    Check the below links:
    http://sap.ittoolbox.com/groups/technical-functional/sap-basis/connection-between-sap-system-with-external-oracle-database-with-tcode-dbco-1178583
    http://help.sap.com/saphelp_nwpi71/helpdata/en/df/455ec9747111d6b25100508b6b8a93/content.htm
    Hope it will help you.
    Regards,
    Alok Tiwari

  • Best Method to Move Partitioned Data to Another Server

    Hi,
    In our company we have a monthly maintenance to move one partition from many partitioned tables to another server. I want to know what is the following:
    1- Best way to do this task and to move table partitions to another database on another server?
    2- When I delete table partition, do I need to analyze the table or rebuild the indexes?
    Appreciate your prompt response.
    Thanks

    2- When I delete table partition, do I need to analyze the table or rebuild the indexes?What do you mean by delete table partition? If you mean truncate or drop parition then you should use "UPDATE GLOBAL INDEXES" clause in order to avoid rebuilding global indexes as shown in the below examle:
    create table TAB1 ( Value number(10))
      partition by range(value)
      partition p1 values less than (10),
      partition p2 values less than (20),
      partition p3 values less than (30),
      partition p4 values less than (40),
      partition p5 values less than (50)
    insert into tab1
    select rownum
    from dual connect by rownum < 50;
    commit;
    create index tab1_indx1 on tab1(value);
    sql> select index_name, status
      2  from user_indexes
      3  where index_name = 'TAB1_INDX1';
    INDEX_NAME                     STATUS
    TAB1_INDX1                     VALID
    sql> alter table tab1 drop partition p2 UPDATE GLOBAL INDEXES;
    Table altered.
    sql> select index_name, status
      2  from user_indexes
      3  where index_name = 'TAB1_INDX1';
    INDEX_NAME                     STATUS
    TAB1_INDX1                     VALID
    sql> alter table tab1 drop partition p3;
    Table altered.
    sql> select index_name, status
      2  from user_indexes
      3  where index_name = 'TAB1_INDX1';
    INDEX_NAME                     STATUS
    TAB1_INDX1                     UNUSABLEMohamed Houri

  • How to move a selection into another selection in elements 12

    how to move a selection into another selection in elements 12

    Open picture B, the one you wish to select something from to add to another picture.
    Use one of the selection tools, e.g. selection brush, lasso tool, to select the object. You will see an outline ("marching ants") once the selection is complete
    Go to Edit menu>copy to copy the selection to the clipboard
    Open picture A, then go to Edit>paste
    Use the move tool to position object from picture B.
    In the layers palette you should see picture A as the background layer, and object B on a separate layer

  • How to create a database in Sql server management studio

    how to create a database in Sql server management studio

    One method is to run the SQL statement below from a SSMS query window:
    CREATE DATABASE MyDatabase;
    You can also right-click on the Databases node in SSMS Object explorer and select New Database.
    Dan Guzman, SQL Server MVP, http://www.dbdelta.com

  • How to connect external database(Ex:SQL Server/Tivoli)  from ABAP Webdynpro

    Hi,
    Any one have idea how to connect external database like SQL Server/Tivoli to access tables from WebDynPro ABAP.
    Please point to me some links if you have
    Thanks
    Praveen

    Hi,
    Please check out this link -
    FETCH DATA FROM ORACLE DATABASE USING Web Dynpro
    Regards,
    Lekha.

  • Move Central Instance to Another Server

    Hello expert,
    Now we have a distributed system: CI on server 1, DB on server 2. Now we want to move the CI to another server 3 without change the DB server.
    We get some information from link Move the central instance to another server in SAP
    We have few questions:
    1. Can we change the SID of CI with method provided in link?
    2. Any other additional steps should we do?
    Thanks & Best Regards,
    Tong Ning

    Hi Tong,
    You can install a new SAP instance (CI) on the new server as your DB is not moving and is on different host, and replicate important files from your old CI host.
    For eg, the host file, services file, trans directory and some work directory contents.
    Also, if your server on same OS or different ?
    You should check the compatibility of new OS and DB in service market place (PAM).
    For changing SID, please use standard guides and tested WIKI links.
    Regards,
    Divyanshu

  • Query for UDT over different Databases on another Server

    Hi,
    i want to use via query an UDT from another Database on another Server...
    nomal Tables can be Used like this:
    select* from [SVR-Name].Database.dbo.OITM
    But if I try the same for an UDT:
    select* from [SVR-Name].Database.dbo.[@UDT]
    it doesn't work.
    Does anyone have an Idea for me ?
    Thx.
    Markus

    Thx for your replies,
    a query over different Databases on the same SQL-Server is no problem.
    ... but I want to select an UDT which is on another SAP-Server (other location) in a different Database.
    Servername = SVR
    Database = LIVE
    UDT = [@portfolio]
    select * from [SVR].LIVE.DBO.[@portfolio]
    doesn't work.
    (normal query to reach OITM for example:
    select * from [SVR].LIVE.DBO.OITM
    works fine !!

  • How to create Oracle 11g DSN for database on another server

    Hi,
    How do i create an Oracle Database 11g DSN for a database that is lying on another server? I tried using the Microsoft ODBC Administrator tool but it gives me options only for the databases lying on my own machine.

    Hi,
    Check this thread may it help you https://forums.oracle.com/thread/2479208

  • Move a database from one server to another

    Hello All,
    I am using Oracle 11g R2 on Oracle Enterprise Linux 32 bit.
    I have 2 servers , LinuxActive and LinuxPassive. I am trying to dismount the file system of the datafiles and control files ... from one server and mount it on the other.
    I previously opened a thread here concerning this subject and reached a result that it can be done, now i have questions about the details.
    I have installed Oracle software on both servers where ORACLE_BASE is /u01/app/oracle and ORACLE_HOME is /u01/app/oracle/product/11.2.0/db_1 on both servers.
    I created an orcl database on LinuxActive where all its datafiles, control files, redo logs, flash_recovery_area is on a disk group mounted under /oradata.
    I want to dismount /oradata from LinuxActive and mount it to LinuxPassive and start up the orcl database from LinuxPassive instead of LinuxActive.
    I may need to revert back /oradata to LinuxActive.
    What steps should I do? should I migrate my spfile also to /oradata?
    Should I create an orcl database on LinuxPassive?
    Do I start up my database like i do when i build an Oracle dataguard database ? from a pfile of the old database?
    Regards,
    Edited by: NB on Feb 27, 2012 5:25 PM

    NB wrote:
    Hello All,
    I am using Oracle 11g R2 on Oracle Enterprise Linux 32 bit.
    I have 2 servers , LinuxActive and LinuxPassive. I am trying to dismount the file system of the datafiles and control files ... from one server and mount it on the other.
    I previously opened a thread here concerning this subject and reached a result that it can be done, now i have questions about the details.
    I have installed Oracle software on both servers where ORACLE_BASE is /u01/app/oracle and ORACLE_HOME is /u01/app/oracle/product/11.2.0/db_1 on both servers.
    I created an orcl database on LinuxActive where all its datafiles, control files, redo logs, flash_recovery_area is on a disk group mounted under /oradata.
    I want to dismount /oradata from LinuxActive and mount it to LinuxPassive and start up the orcl database from LinuxPassive instead of LinuxActive.
    What steps should I do? should I migrate my spfile also to /oradata?
    Do I start up my database like i do when i build an Oracle dataguard database ? from a pfile of the old database?
    Regards,Thanks for your detailed information.
    RMAN duplicate will be simpler.
    As you are in 11g, you can perform duplicate from active database.
    Create PFILE in new location,
    Change "CONTROL_FILES" parameter to new mounpoint.
    Perform RMAN duplicate
    In both the cases you have to take care of parameters, DB_FILE_NAME_CONVERT & LOG_FILE_NAME_CONVERT.
    Refer some links
    How to Move/Restore DB to New Host and File System using RMAN [ID 1338193.1]
    http://docs.oracle.com/cd/B28359_01/backup.111/b28270/rcmdupdb.htm#CHDJJBCF

Maybe you are looking for