Recover database to new server problem

Hi all,
I'm running a production 10.2.0.4 DB in archivelog mode on Solaris 10.8. I used RMAN with a recovery catalog to execute the stored script:
run{sql 'alter system archive log current';
backup incremental level 0
database archivelog all delete input;}
I copied the rman files and spfile to a test server with the same directory structres. No Problem.
Using "rman target /" I started the database in nomount and restored the controlfile from backup and mounted the database. No Problem.
Still within the RMAN session, I restored the 1TB worth of datafiles. The restore completed, no problem.
I then issued the command, "recover database;" PROBLEM, RMAN said datafile1 "System.dbf" needs more recovery to be in a consistent state.
WHY? I issued the commands, "alter system archive log current;" and "archivelog all delete input" in my script.
Why does it need the next archivelog to be consistent?
I was under the impression that all I need to recover a database with rman was the output files from RMAN.
I copied the next archivelog over and in SQLPLUS as SYS I issued the command, " recover database using backup controlfile until cancel;"
I canceled the recovery when it asked for the next archivelog and opened database reset logs.
If I didn't have access to the next archive log how would I solve this problem?

Your BACKUP should be executed as BACKUP DATABASE PLUS ARCHIVELOG. The "PLUS ARCHIVELOG" causes Oracle to issue an ALTER SYSTEM SWITCH LOGFILE at the end of the database backup so that the ArchiveLog generated gets picked up by the subsequent Backup of the ArchiveLog as well.
Your first RECOVER DATABASE command was attempting a Complete recovery. Had you specified an UNTIL clause, Oracle would know that you wanted an Incomplete recovery upto the last available archivelog. Your second RECOVER DATABASE with the UNTIL CANCEL was an Incomplete Recovery.
Hemant K Chitale

Similar Messages

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

  • 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."

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

  • Emca invalid username/password error on -repos create for recovered DB on new server

    11.2.0.4 on Windows Server 2012 64 bit (new server)
    database install without db create went fine.
    restore of two backup databases went fine.
    reconfig of Apex on new server went fine
    cannot get dbcontrol configured.
    emca -repos create  works fine with sysman et al dropped
    but when I try
    emca -config dbcontrol db
    I get an invallid username/password error
    the log file indicates that it is initSqlEngineLoacly failing with a null value for user
    and returning the ORA-01017 invalid username/password error.
    why is it not using the sys user for this connection?  I don't see a user parameter in the emca help.
    Any suggestions? Do zi need to install the 32 bit Oracle client?

    error in log file is :
    Apr 22, 2015 10:46:01 AM oracle.sysman.emcp.util.GeneralUtil initSQLEngineLoacly
    CONFIG: SQLEngine connecting with SID: prodtp, oracleHome: F:\app\Oracle\product\11.2.0\dbhome_1, and user:
    Apr 22, 2015 10:46:04 AM oracle.sysman.emcp.util.GeneralUtil initSQLEngineLoacly
    WARNING: ORA-01017: invalid username/password; logon denied
    Apr 22, 2015 10:46:04 AM oracle.sysman.emcp.DatabaseChecks throwDBUnavailableException
    SEVERE:
    Database instance is unavailable. Fix the ORA error thrown and run EM Configuration Assistant again.
    Note that the user is NULL and logon is denied
    How do I configure emca to connect using SYS for this?  That appears to be the problem at this point.

  • Restore SharePoint Database to new server - What to do about external content type?

    I currently run SharePoint 2010 and have a content database back-up which I want to restore to a new server.
    I was able to restore to a new server and everything seems to be working, except that I have one list in my previous site which had an external content type in it linking to a database for our ERP system. The ERP system's database will also be located on
    the new server (same as the new location for the content database). How do I link the external content type from my list to the new location of the ERP database?
    One thing which I've tried is to create a new BDC and set up a new external content type within the list. That seems to point to the new location just fine, except that I would have to remap all every single item in the list individually.
    Any help would be appreciated.

    You will need to modify your BCS Model to reflect the new location of your ERP database. Another option is to use SQL Aliases, which will allow SharePoint to think the new location is still by the old name.
    http://mmman.itgroove.net/2012/07/setting-up-a-sql-server-alias-with-sharepoint-server-2010/
    This is assuming that you are retiring the old database server.
    Dimitri Ayrapetov (MCSE: SharePoint)

  • How to mesure/benchmark performance of a new database on new server?

    Hi there
    I have two oracle servers with following (same) details:
    RHEL 5.8 64-bit
    Oracle 10gR2 - 10.2.0.5.8
    ASM 10gR2 - 10.2.0.5.8
    Server A: RAM 32GB, 8 CPUs @ 3.00GHz
    Server B: RAM 128GB, vCPUs 16 cores
    Server A (physical server) already has a database A. Server B (on VMWare - yes, my client is moving all Oracle servers to VMware for whatever reason) is a new installation and new database B with exact same init params as databas A. I expdp the data from database A and impdp into database B.
    As per the hardware team, the hardware is better than the old server B. I did a very basic test to check if new DB performs better than that on physical server. Here is the results:
    I ran a simple query to create a new table. The original table (say, table_a) contains 1.7+ million rows and size is 2.2GB.
    create table test1
    as
    select * from table_a;
    It took 3:28mins on database B while it took only 1:55mins on database A. So the new database B seems to be performing poor (apparently). Then I looked at the explain plan (not sure if it means much because it s a very simple query) and here it is from both databases:
    Database A (physical server
    Plan
    SELECT STATEMENT ALL_ROWS
    Cost: 14,052  Bytes: 2,161,302,003  Cardinality: 16,250,391 
    1 TABLE ACCESS FULL TABLE table_a
    Cost: 14,052  Bytes: 2,161,302,003  Cardinality: 16,250,391 
    Database B (virtual server)
    Plan
    SELECT STATEMENT ALL_ROWS
    Cost: 59,844  Bytes: 2,161,302,003  Cardinality: 16,250,391 
    1 TABLE ACCESS FULL TABLE table_a
    Cost: 59,844  Bytes: 2,161,302,003  Cardinality: 16,250,391 
    Questions:
    1. Why is the cost different? Should I "compute statistics" on database B (virtual server)?
    2. How to investigate further and find out reason for the time difference?
    3. What other benchmark test can I run to make sure that I have the right database configuration?
    Not sure if this is enough info - if not, please let me know what else should I provide.
    The team I have to hand-over this server is refusing to accept it by saying that it is slower than the existing one.
    Please advise!
    Best regards

    Wow... I am really thankful for everyone's input - this is really really appreciated!
    I will try what you all have suggested. In the meantime, I did some simple test on both databases and here are the results:
    Create table t1
      (1.7million rows)
    Create index on
      two columns on t1
    Create table t2
      500000 rows
    Create Index on
      two columns on t2
    Delete from t1
      (500000 rows)
    Insert into t1
      500000 rows
    Drop  table t2
    Drop table t1
    Database A
    hh:mm:ss.00
    hh:mm:ss.00
    hh:mm:ss.00
    hh:mm:ss.00
    hh:mm:ss.00
    hh:mm:ss.00
    hh:mm:ss.00
    hh:mm:ss.00
    1st run
    00:01:55.78
    00:02:12.59
    00:00:03.06
    00:00:01.99
    00:01:25.56
    00:00:10.37
    00:00:00.15
    00:00:05.12
    2nd run
    00:01:56.27
    00:02:11.54
    00:00:02.89
    00:00:01.09
    00:01:18.39
    00:00:10.20
    00:00:00.17
    00:00:04.87
    3rd run
    00:01:56.71
    00:02:12.36
    00:00:03.14
    00:00:01.13
    00:01:22.97
    00:00:10.22
    00:00:00.15
    00:00:04.88
    Database B (VM)
    hh:mm:ss.00
    hh:mm:ss.00
    hh:mm:ss.00
    hh:mm:ss.00
    hh:mm:ss.00
    hh:mm:ss.00
    hh:mm:ss.00
    hh:mm:ss.00
    1st run
    00:00:25:83
    00:03:54.60
    00:00:00.67
    00:00:01.43
    00:00:29.56
    00:00:09.75
    00:00:00.05
    00:00:01.10
    2nd run
    00:00:24.67
    00:03:05.81
    00:00:00:62
    00:00:01.10
    00:00:31.76
    00:00:08.59
    00:00:00.04
    00:00:00.59
    3rd run
    00:00:44.06
    00:03:12.91
    00:00:00.97
    00:00:01.62
    00:00:39.35
    00:00:08.90
    00:00:00.03
    00:00:00.61
    Now, the database on Server B (VMware) seems to be outperforming that on Server A except for the "Create index on two columns on t1" column.
    Any clues why index creation is consistently taking longer on the database B (on VM) as compared to that on database A (physical server)?
    @jgarry: I am not in a position to try SLOB (no doubt a good tool with lots of reputation) because it requires to create a new DB (which I cannot do on the existing server). I did try "HammerDB" but unfortunately it crashed on each attempt to test the load.

  • Migrating MySQL database to new server

    I'm rebuilding a server for a client and I need to migrate the MySQL database off of the old server onto the new. I'm going from Server 10.5.4 to Server 10.5.4. I tried just taring the old database location at /var/mysql and untaring it to the new server at the same location and started the MySQL service, but it service won't start properly.
    I get an error in the MySQL Admin Log file that says that the "MySQL daemon startup timed-out"
    After looking at the database files, they appear to have the old server name included in their names, and there is a pid file that is specific to the server.
    Is there a process for exporting/importing the MySQL databases so I can get them installed on the new server?
    Thanks.

    So I'll reply to my own question so the answer is documented.
    I used the following command it export all the database from the old server:
    mysqldump -u username -ppassword --all-databases > alldump.sql
    username is the name of the admin user, usually root
    password is the admin password, make sure there is no space between the -p and the password. So if the password is "twit" the option is -ptwit
    And the two -- are needed in the --all-databases option
    Copy the alldump.sql file to the new server and run the following command to import all the databases:
    mysql -u username -ppassword < alldump.sql
    Be sure to set the admin password in Server Admin and start the MySQL service before importing.
    That's it.

  • 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

  • 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

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

Maybe you are looking for

  • Problem in sales order replication from CRM to R/3

    Hi experts As per the best practices I have done number range setting and  other settings for sales order transction in both CRM and R/3 system.Though few errors the sales order doc is saved in CRM but it is not replicating to R/3 system.Can anybody

  • PBIS Open On Ubuntu Will Not Join Domain

    So here's the sitch: For about ten years, I've used PowerBroker Identity Services Open (PBIS Open -- and before that, LikewiseOpen) to join Linux boxes to AD domains.  It has always worked flawlessly.  In ten years, I have literally never experienced

  • Significance if User Exit

    Hi What is the significance of USER Exit pgm in the XI/PI, Can you provide some examples Thanks PR

  • Is the iOS 8 update safe for iPhone 4s?

    After several weeks now, is the iOS 8 update for the iPhone 4s?

  • Using Static Named LOV to show images in report

    FYI See http://htmldb.oracle.com/pls/otn/f?p=24317:43 The report query is simply select object_name,object_type,status from user_objectsThe STATUS column has its "Display as'" attribute set to "Display as Text (based on LOV, does not save state)". Th