Move database to new server

I hava Oracle 10.2.0.1.0 on Solaris 10.5 and wants to move it to Oracle 11.1.0.1.7 on same platform, but different server using exp/imp.
I am not aware of any other precondiction I need to meet before carrying on this exp/emp. If there is a precondition, I will appreciate if you can share it.
Does the database needs to shut down
Do I need to copy any files from old database
Here is my par file:
userid = system/****
file = /h/share/database/db/backups/CBEXP.dmp
log = /h/share/database/db/backups/CBEXP.log
statistics = none
full = y

You can do exp/imp if you have the same schema infrastructure and db objects at the target db. Otherwise you have to clone the database to the new target.
1. Create a new DB with DBCA at the target server
2. Shutdown the source and target databases
3. Do a cold backup (which means copying all datafiles to the target directory)
4. Startup the source db
5. Create a backup control file on the target db such as follows;
CREATE CONTROLFILE SET DATABASE "<SID_of_clone_database>" RESETLOGS
NOARCHIVELOG
-- SET STANDBY TO MAXIMIZE PERFORMANCE
MAXLOGFILES 5
MAXLOGMEMBERS 3
MAXDATAFILES 100
MAXINSTANCES 1
MAXLOGHISTORY 4991
LOGFILE
GROUP 1 'D:\Oracle\Oradata\NUNDQOL\REDO01.LOG' SIZE 100M,
GROUP 2 'D:\Oracle\Oradata\NUNDQOL\REDO02.LOG' SIZE 100M,
GROUP 3 'D:\Oracle\Oradata\NUNDQOL\REDO03.LOG' SIZE 100M
-- STANDBY LOGFILE
DATAFILE
'E:\oracle\oradata\NUNDQOL\SYSTEM01.DBF',
'E:\oracle\oradata\NUNDQOL\UNDOTBS01.DBF',
'E:\ORACLE\ORADATA\NUNDQOL\CWMLITE01.DBF',
'E:\oracle\oradata\NUNDQOL\DRSYS01.DBF',
'E:\ORACLE\ORADATA\NUNDQOL\ODM01.DBF',
'E:\oracle\oradata\NUNDQOL\NUNTQOL.DBF',
'E:\oracle\oradata\NUNDQOL\NUNTQOL_IAM.DBF',
'E:\oracle\oradata\NUNDQOL\INDX01.DBF',
'E:\oracle\oradata\NUNDQOL\TOOLS01.DBF',
'E:\oracle\oradata\NUNDQOL\USERS01.DBF',
'E:\oracle\oradata\NUNDQOL\XDB01.DBF';
6. STARTUP NOMOUNT of the target database
7. execute the backup control file
8. RECOVER DATABASE UNTIL CANCEL USING BACKUP CONTROLFILE;
ALTER DATABASE OPEN RESETLOGS;

Similar Messages

  • Move database to new server from ASM to FS

    Hey, I have to move my database from ASM to filesystem storge (10.2.0.3 on sles 10 sp1)
    The new server is also sles 10 sp1.
    Can I just do an full export on the source site, and an import on the target site ? Will that work ?
    Any other steps to perform ?
    Chris

    Hi,
    1. Export db wlth FULL=Y . and then we have to create new database at target location and then import operation have to done.
    2.we can take rman backup, restore rman backup in target location. This method will reduce the complexity
    take backup through Rman.
    Target location:-
    1. export ORACLE_SID=xxx
    2. rman target /
    3. startup nomount
    4.RMAN> RESTORE CONTROLFILE FROM 'backup piece';
    5.RMAN> alter database mount;
    6.
    set newname for datafile '+DG/datafile.dbf' to 'FS/location';(do for all datafiles)
    restore database;
    switch datafile all;}
    7. alter database rename file '+DG/datafile.dbf' to 'FS/location';(do for all datafiles)
    8.alter database open;
    follow these steps from ASM TO FS.
    Edited by: startup on May 23, 2013 7:41 PM

  • Break cluster and move databases to new server

    Hello everyone.  I have a question that may be basic but I am by no means a SQL person.  Right now we have a SQL 2005 cluster running on VM ESXi with a celerra backend storage.  Some drives are mapped Raw.  We recently put in a new
    VNX and we are not able to migrate the SQL server over due to how the drives are mapped.  I am thinking that I want to build a new SQL server and move the databases.  The new build will not be a cluster since we have point in time recovery manager
    from EMC.  Now my thinking is, can I break the cluster, move the 2nd node to the new ESXi and storage and present new storage or would it be best to just build a new server?  Is it easy enough to change an instance name after SQL is running? 
    Several applications refer to the SQL Cluster and they are critical so I need something with least amount of downtime.  Would doing backup of all of SQL and then a restore to the new system be best?  Any thoughts or direction?  Thanks
    Joe M

    The most straightforward and reliable method is to build a new server, migrate the databases using backup/restore, test the new server, and cut-over by shutting down the old servers and either reconfiguring the client applications or renaming the new server
    to have the same network name as the old server's SQL Cluster Client Access point. 
    You can also use DNS redirection instead of renaming the new server, although using a DNS hostname alias for your server requires some additional security configuration.  EG
    http://blogs.msdn.com/b/dbrowne/archive/2012/05/21/how-to-add-a-hostname-alias-for-a-sql-server-instance.aspx
    David
    David
    David http://blogs.msdn.com/b/dbrowne/

  • Use unused server as share point server after move databases to new server

    HI,
    we have a single server share point farm (ServerApp01) for Intranet and it connects to a SQL SERVER 2008 R2 database server (Server02),
    and now  we moved all sharepoint databases and content dbs to new sql server in different server (ServerSQLNew).
    using sqlalias we point to new SQLSERVER 2012 Instance in this new server.
    - now the old sql server (Server02), is not in the sharepoint  farm 
    - now can i add this server in intranet farm and  use this old server (Server02) as wfe server ?
    here my doubt is  when i open cliconfg.exe i saw that sharepoint server pointing to this old server name (Server02),
    after i will join this server to existing farm is any issues?
    adil

    hi
    i already turned off sql server instance in old sql server in my case in Server02.
    In share
    point Server (ServerApp01) i opened cliconfg.exe and add sqlaliases to point to new sql server.
    If i rename  server02 server or rebuild
    the server with a clean OS install  still  Sharepoint Farm works right?
    below is the scenario of sqlalias in sharepointserver (serverapp01)
    adil

  • MOVE REPLICATION DATABASE TO NEW SERVER

    WE HAVE A PRODUCTION DATABASE THAT WORK'S AS REPLICATION FROM 9 DATABASES, WE ARE GOING TO MOVE DATABASE TO NEW SERVER.
    AS DATABASE IS PRODUCTION, WE CAN NOT STOP SERVICES. WE THINK TO CREATE A NEW DATABASE ON NEW SERVER, IMPORT DATA FROM PROD. DATABASE. SIZE APROX 100GB.
    QUESTION:
    I NEED TO KNOW HOW I CAN STOP SERVICES SHORT TIME. TO CHANGE TO SNEW SERVER.
    THANKS FOR YOUR SUGGESTIONS

    Здравствуте Ivan.
    Before i would do anything like this i would make sure that i have a good valid backup (just in case!).
    I would check all the applications that are currently conencting to your ORacle and make sure they are all conneting 'by name' not the IP. Or and then i would check DNS server (make sure nslookup is working) to makesure that everything resolves correctly after the moving DB to another machine.
    Then check that the oracle_home etc are in the same directory and check that all paths etc in the configurations are the same.
    Hope this helps
    Kind Regards

  • Move Owb database to new server

    Hi,
    We are going to move our Owb (9.2.0.2.8) database to a new server. The nodename isn't going to change only the ip-address will change. The OS will be the same.
    The steps will be:
    1) install Owb on new server
    2) copy database to new server
    Is there some other step we'll need to take?
    regards,
    Ivan

    Здравствуте Ivan.
    Before i would do anything like this i would make sure that i have a good valid backup (just in case!).
    I would check all the applications that are currently conencting to your ORacle and make sure they are all conneting 'by name' not the IP. Or and then i would check DNS server (make sure nslookup is working) to makesure that everything resolves correctly after the moving DB to another machine.
    Then check that the oracle_home etc are in the same directory and check that all paths etc in the configurations are the same.
    Hope this helps
    Kind Regards

  • Migrate Mirror Database to New Server

    Hi,
    I need to migrate my SQL server Mirror Database to
    a new server. my current setup is as below
    1. server A principal (192.168.1.100)
    2. server B Mirror     (192.168.1.200)
    now i have a new server (Server C) to replace server B as below
    1. server A principal (192.168.1.100)
    2. server C Mirror     (192.168.1.300)
    my question is how to migrate mirror db to new server without any affect or downtime on principal server, please share idea/experience for above.
    note: SQL SERVER 2008R2 EE(64BIT), Win2008R2 EE 64bit.
    Regard
    Faisal Wahid

    Thanks for your quick response.
    Is it possible something like in oracle (pardon as i am oracle DBA not sql server guy), 
    (Oracle Steps to migrate standby(mirror) db to new server)
    1. Pause replication on primary(principal) 
    2. Move standby(mirror) database files to new server(using copy/rman/etc).
    3. Update connection information (TNS in oracle) on primary(principal) to point new server.
    4. Start replication on primary(principal).
    the above steps will simply migrate the standby(mirror) database to new server,
    can we do something like above in sql server?

  • Recovering andrestoring of database in new server after current server fail

    Hi,
    If we have a disaster ,where the Database server has gone and we can not use it again.
    1) We do not have dataguard.
    2) We have rman backup file of 2 days before (Full database backup). Rman backup with nocatalogue
    3) Flashback log files of 2 days back
    3) Archive log till yesterday
    4) Export file of morning.
    Can we be able to restore and recover our database in new server
    if yes then how.
    Because RMAN Backup has its DBID and the new Oracle software which i install on new server will be installed with new ID.
    Please help me understanding this thing (About target database)
    Regards

    First of all, you should install the software on the server only, you should NOT create a database.
    As you can restore a database to a new host (and this is documented), you won't have any problems. That is, if you don't create a database during installation, and read up on recovery.
    I wonder: why do all those anonymous users always can't be bothered to read the documentation, and ask others to paraphrase it for free?
    Sybrand Bakker
    Senior Oracle DBA

  • Move mailbox database to new server (new domain)

    Hey,
    I want to move a mailbox database from a broken server to a new server in a new domain.
    We are already using the new server and I am wondering if I can merge the databases or make the old mail available in any way. Currently everybody has done a pst export before adding the new mailbox.
    Thanks,
    Jason

    Hi Jason,
    Exchange Server 2013 introduces the concept of batch moves and migration endpoints. Migration endpoints are management objects that describe the remote server and the connections that can be associated with one or more batches. And, the new batch move architecture
    improves on MRS moves with enhanced management capability. You can select the appropriate method to move your mailboxes.
    Here is an article for your reference:
    Mailbox moves in Exchange 2013
    https://technet.microsoft.com/en-us/library/jj150543(v=exchg.150).aspx
    Hope this can be helpful to you.
    Best regards,
    Amy Wang
    TechNet Community Support

  • Move MaxDB database to new server

    Hello,
    I would like to move a MaxDB (Content Server) database from a Windows 2003 x86 server to a Windows 2003 x64 server. I will be moving from 7.5 to 7.6 at the same time. Reading around the subject, this is what I have done so far:
    Target Server:
    Used SAPINST to install the MaxDB 7.6 / Content Server 6.40 on the new x64 target server.
    SAPINST created a empty database on the target server and I added the appropriate number of volumes.
    After playing around I used db_active to initialize the target database.
    Put the target database in admin mode.
    Source Server:
    Used  backup_start CompleteData RECOVERY DATA to create a backup of the database.
    Target Server:
    Created a backup medium called Restore and pointed this at the copied backup file.
    In db_admin mode executed a recover_start "Restore" DATA
    db_online
    Re-created the system tables (via wizard or dbmcli)
    Questions:
    Do I need to apply any log backups here (assuming no activity on source)?
    If there were activity on the source and I applied the logs to the target, how do I apply the data that is in the transaction logs but not currently written to the log backup?
    There is no backup history on the target server, how does it know how far to go and that the log recovery is complete?
    Can the backup history be copied from souce to target?
    Thanks,
    Philip.

    Hello Philip,
    SAP Note 1089402 - "Shortening backup history for MaxDB/liveCache instances" is useful in this case:
    The backup history of a database instance that is based on MaxDB is stored in the files dbm.knl and dbm.mdf in the run directory (usually, /sapdb/data/wrk/<DBSID>)
    You can copy these two files in the new server in order to apply the log backup to the restored database BUT... this is not supported by SAP, because as far as I know there is no SAP Notes where you are asked to do so.
    So, the supported procedure is to restore the DB but you shouldn't apply any backup log
    Regards,
    Valerio

  • How to move or copy a database to new server

    Greetings All,
    Oracle Enterprise 11g r2, on a Windows2008 platform.
    I would appreciate some advice regarding moving/copying a database to a new server. Some of the information below may not be pertinent to my goal. Please be patient as I am a newbie.
    I have installed oracle and created a database (prod03) on the new/target server. I created the same tablespaces (and datafiles/names) as are on the existing/source server (prod01), except that on the new/target server (prod03) there is 1 more data file for the USERS tablespace than there is on the existing/source server (prod01).
    My initial thought was to perform a expdp full=y.
    The database contains 220 schemas, when I performed an expdp full=y estimate only it indicated 220Gb. I think this would take much more time to export and then import than what I hope to be able to do below.
    I would like to be able copy the datafiles from the source server prod01 server over to the target server prod03, some names/locations will change.
    One scenario I found (http://www.dba-oracle.com/oracle_tips_db_copy.htm) was to backup the control file to trace on the old/source server (prod01). Copy everything to the new/target server. Tweak the file that creates the new control file.
    Step 4 of the above mentioned link says to change
    CREATE CONTROLFILE REUSE DATABASE "PROD01" NORESETLOGS to
    CREATE CONTROLFILE SET DATABASE "PROD03" RESETLOGS
    Notice the change from REUSE to SET. I am not sure if this is right for my situation.
    Could I issue a backup control file to trace on the target server (prod03), add the reference to the additional datafile. Copy over all of the datafiles for all of the tablespaces (users,system/sysaux/undotbs1,temp),
    Delete the existing control file, and generate the new control file.
    Then perhaps issue a startup resetlogs or startup recover?
    Thanks for your time,
    Bob
    Edited by: Snyds on May 17, 2012 12:26 PM

    So unless someone provides me with an rman script I can't use rman.google is your friend
    Simply telling someone to get the experience dose not help. So your post is useless to me.I suppose you do not have experience with "old-school" manual cloning as well.
    Import of entire 200GB DB with datapump or imp will also require some experience otherwise it will be a long-long exercise.
    So, basically, any advise may be useless to you, because of your "the fact is I don't have the experience. Nor do I have the time to obtain the experience."

  • Best way to move WFE to new server

    We have one web front end server and one sql server.  I want to simply move the existing web frotn end server to new hardware.  What is the easiest way to do this?  Also, the last admin did not patch the existing site to SP2.  If I
    install Sharepoint 2007 sp2 and attach it to databases that are on the original Sharepoint 2007 RTM version, will it upgrade the database schema or will this cause problems?  We only have on site colelction with about 13 GB of data, its not a complicated
    environment but there is a lot of data there.  I want to do this as simply as possible, thanks.

    The basic three steps that need to followed while moving to new hardware are. 
    Set up the new server farm
    Make sure the versions of database are the same in this step.
    Move the databases to the new server farm
    Since you don't have many webapplications, in fact just one, you could do an stsadm backup of the web application and restore it on the new web app. And then Apply SP2 along with all the other cumulative updates. 
    You will have two farms running at the same time at this point providing redundancy. 
    Shut down the old server farm
    That is probably the best approach I would prefer. You can always read the following technet article.. 
    http://technet.microsoft.com/en-us/library/cc512725(office.12).aspx
    Hope this helps.
    Thanks
    V
    V

  • How to 'move' databases from one server to another

    Hi there
    Here is a brief description of my assignment.
    We have two Redhat Linux 4 64-bit server where two Oracle 10.2.0.4 64-bit database are running (one on each server).
    <li>DB on server1 is using Filesystem for storage.
    <li>DB on 2nd server is using ASM.
    <li>Size of both is between 75-80GB.
    <li>I have to move both the databases to new servers (same platform) with minimum downtime.
    <li>There is no upgrade required during this move/migration. Both DBs have to be brought over as-is.
    <li>The new servers may be on VMWare - I am not sure it at the moment. But please let me know if that will make any difference.
    I would highly appreciate if someone could please provide me with some high-level guidelines to perform this move.
    Best regards

    Hi Srini
    Thank you so much for sharing the valuable URLs.
    I am reading through "Cloning An Existing Oracle10g Release 2 (10.2.0.x) RDBMS Installation Using OUI [ID 559304.1]" and I have few questions.
    <li> This MOS says:
    NOTE: This note should only be used for cloning single-instance (non-RAC) homes. It should not be used for cloning RAC, CRS or ASM homes.If that is the case, how should I clone ASM-Home?
    One of the environments that I have to migrate to a new server has ASM installed as well. And couple of oracle databases (10.2.0.5) on that server are using ASM for storage.
    <li>If were to do a fresh installation of 10gR2 RDBMS and ASM homes (on Redhat Linux 64-bit), I guess I need to contact Oracle Support (open an SR) to access the software, right?
    <li>How to check from existing installation which patches I need to download and apply to this fresh installation in order to make it same as the existing installation? "opatch lsinventory" gives me a long list of number/fixes - I don't know which patch(es) to download.
    Please advise!
    Best regards
    Edited by: user130038 on May 22, 2013 3:48 AM
    Edited by: user130038 on May 22, 2013 3:55 AM

  • Move databases to new hardware

    I have a server Server090 with some old hardware. I'm planning to move the databases to new hardware but the server will keep the same name. I'll reinstall the management agent on the new hardware. How will that interfere with the old management agent in GC?
    Will GC just resynchronize after a while or do i have to clean up GC before installing the new node. The server name will remain the same.
    Has anyone gone through this and can share good/bad experiences?
    Cheers.

    This is my question...i have to replace a server serverx. that server has a bunch of databases on it and a management agent. It's only a database server.
    Grid control is already aware of this server.
    In terms of replacing the server serverx, we'll get another server servery on the network and rename it as serverx. of course the original serverx will become servery. My question is what do i have to do to Grid Control...Will everything just work after i install the management agent on serverx (which is now on different hardware)?

  • Move libary to new server

    We are upgrading H/W at the moment. I want to move my GW server to a
    new GW server - both NW 65.
    The new server will not have the same name as the old server. How is
    this going to affect my libraries when I copy the GW database and
    storage areas to the new server ?

    Steve,
    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:
    - Visit http://support.novell.com and search the knowledgebase and/or check all
    the other self support options and support programs available.
    - You could also try posting your message again. Make sure it is posted in the
    correct newsgroup. (http://forums.novell.com)
    Be sure to read the forum FAQ about what to expect in the way of responses:
    http://forums.novell.com/faq.php
    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/

Maybe you are looking for