How restore database with duplicate command where backuppiece moved

hello
i have 2 hosts
on the host 1 my production database and on host2 my developlment database
i would like to duplicate the first one on the host2 i have created an auxiliary database
all seems ok expect 1 not small problem :
on host1 my backuppiece are in F:\oracle\backup_%d_%u
and i don't have a F drive on my host2 i have copy all the rman backup in : e:\oracle\backup
but i don't find how tell to rman to take my backuppiece in E: and not in F:
this is my result of my rman script :
RMAN> run {
2> set newname for datafile 1 to 'e:\oracle\oradata\dpbsdev2\SYSTEM01.DBF' ;
3> set newname for datafile 2 to 'e:\oracle\oradata\dpbsdev2\UNDOTBS01.DBF' ;
4> set newname for datafile 3 to 'e:\oracle\oradata\dpbsdev2\SYSAUX01.DBF' ;
5> set newname for datafile 4 to 'e:\oracle\oradata\dpbsdev2\USERS01.DBF' ;
6> set newname for datafile 5 to 'e:\oracle\oradata\dpbsdev2\CIF.ORA' ;
7> set newname for datafile 6 to 'e:\oracle\oradata\dpbsdev2\DEVELOPMENT.ORA' ;
8> set newname for datafile 7 to 'e:\oracle\oradata\dpbsdev2\COMPLIANCE.ORA' ;
9> set newname for datafile 8 to 'e:\oracle\oradata\dpbsdev2\COMPLIANCE_EOM.ORA'
10> set newname for datafile 9 to 'e:\oracle\oradata\dpbsdev2\CWMLITE.ORA' ;
11> set newname for datafile 10 to 'e:\oracle\oradata\dpbsdev2\DADIC.ORA' ;
12> set newname for datafile 12 to 'e:\oracle\oradata\dpbsdev2\DRSYS.ORA' ;
13> set newname for datafile 13 to 'e:\oracle\oradata\dpbsdev2\DUW_LAN_ENCRYPT.O
14> set newname for datafile 14 to 'e:\oracle\oradata\dpbsdev2\ERASE.ORA' ;
15> set newname for datafile 15 to 'e:\oracle\oradata\dpbsdev2\EXPRIM.ORA' ;
16> set newname for datafile 16 to 'e:\oracle\oradata\dpbsdev2\EXPRIM_EOM.ORA' ;
17> set newname for datafile 17 to 'e:\oracle\oradata\dpbsdev2\EXPRIM_EOY.ORA' ;
18> set newname for datafile 18 to 'e:\oracle\oradata\dpbsdev2\IDX_COMMON.ORA' ;
19> set newname for datafile 19 to 'e:\oracle\oradata\dpbsdev2\IDX_DWH.ORA' ;
20> set newname for datafile 20 to 'e:\oracle\oradata\dpbsdev2\IDX_EXPRIM.ORA' ;
21> set newname for datafile 21 to 'e:\oracle\oradata\dpbsdev2\IDX_IMPORT.ORA' ;
22> set newname for datafile 22 to 'e:\oracle\oradata\dpbsdev2\IDX_SPECIAL.ORA'
23> set newname for datafile 23 to 'e:\oracle\oradata\dpbsdev2\IDX_WINDEKIS.ORA'
24> set newname for datafile 24 to 'e:\oracle\oradata\dpbsdev2\IMPORT.ORA' ;
25> set newname for datafile 25 to 'e:\oracle\oradata\dpbsdev2\IMPORT_EOM.ORA' ;
26> set newname for datafile 26 to 'e:\oracle\oradata\dpbsdev2\IMPORT_EOY.ORA' ;
27> set newname for datafile 27 to 'e:\oracle\oradata\dpbsdev2\INDX.ORA' ;
28> set newname for datafile 28 to 'e:\oracle\oradata\dpbsdev2\ODM.ORA' ;
29> set newname for datafile 29 to 'e:\oracle\oradata\dpbsdev2\OMS_REPOSITORY.OR
30> set newname for datafile 31 to 'e:\oracle\oradata\dpbsdev2\OWB_REPOSITORY.OR
31> set newname for datafile 32 to 'e:\oracle\oradata\dpbsdev2\OWB_REPOSITORY_ID
32> set newname for datafile 34 to 'e:\oracle\oradata\dpbsdev2\SECURITY.ORA' ;
33> set newname for datafile 35 to 'e:\oracle\oradata\dpbsdev2\SIMS.ORA' ;
34> set newname for datafile 36 to 'e:\oracle\oradata\dpbsdev2\TOOLS.ORA' ;
35> set newname for datafile 37 to 'e:\oracle\oradata\dpbsdev2\TRANSTAT.ORA' ;
36> set newname for datafile 38 to 'e:\oracle\oradata\dpbsdev2\UTILS.ORA' ;
37> set newname for datafile 39 to 'e:\oracle\oradata\dpbsdev2\WINDEKIS.ORA' ;
38> set newname for datafile 40 to 'e:\oracle\oradata\dpbsdev2\WINDEKIS_EOM.ORA'
39> set newname for datafile 41 to 'e:\oracle\oradata\dpbsdev2\WINDEKIS_EOY.ORA'
40> set newname for datafile 42 to 'e:\oracle\oradata\dpbsdev2\XDB.ORA' ;
41> set newname for datafile 43 to 'e:\oracle\oradata\dpbsdev2\CHANGE_MGT_PACK.D
42> set newname for datafile 44 to 'e:\oracle\oradata\dpbsdev2\DWH.ORA' ;
43> set newname for datafile 46 to 'e:\oracle\oradata\dpbsdev2\DEXIA_JOBS.ORA' ;
44> duplicate target database to DPBSDEV2
45> logfile
46> group 1 ('E:\oracle\oradata\dpbsdev2\redo01.log' ) size 500M ,
47> group 2 ('E:\oracle\oradata\dpbsdev2\redo02.log' ) size 500M ,
48> group 3 ('E:\oracle\oradata\dpbsdev2\redo03.log' ) size 500M ;
49> }
executing command: SET NEWNAME
using target database control file instead of recovery catalog
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
Starting Duplicate Db at 06-FEB-08
allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: sid=157 devtype=DISK
contents of Memory Script:
set until scn 2519944319;
set newname for datafile 1 to
"E:\ORACLE\ORADATA\DPBSDEV2\SYSTEM01.DBF";
set newname for datafile 2 to
"E:\ORACLE\ORADATA\DPBSDEV2\UNDOTBS01.DBF";
set newname for datafile 3 to
"E:\ORACLE\ORADATA\DPBSDEV2\SYSAUX01.DBF";
set newname for datafile 4 to
"E:\ORACLE\ORADATA\DPBSDEV2\USERS01.DBF";
set newname for datafile 5 to
"E:\ORACLE\ORADATA\DPBSDEV2\CIF.ORA";
set newname for datafile 6 to
"E:\ORACLE\ORADATA\DPBSDEV2\DEVELOPMENT.ORA";
set newname for datafile 7 to
"E:\ORACLE\ORADATA\DPBSDEV2\COMPLIANCE.ORA";
set newname for datafile 8 to
"E:\ORACLE\ORADATA\DPBSDEV2\COMPLIANCE_EOM.ORA";
set newname for datafile 9 to
"E:\ORACLE\ORADATA\DPBSDEV2\CWMLITE.ORA";
set newname for datafile 10 to
"E:\ORACLE\ORADATA\DPBSDEV2\DADIC.ORA";
set newname for datafile 12 to
"E:\ORACLE\ORADATA\DPBSDEV2\DRSYS.ORA";
set newname for datafile 13 to
"E:\ORACLE\ORADATA\DPBSDEV2\DUW_LAN_ENCRYPT.ORA";
set newname for datafile 14 to
"E:\ORACLE\ORADATA\DPBSDEV2\ERASE.ORA";
set newname for datafile 15 to
"E:\ORACLE\ORADATA\DPBSDEV2\EXPRIM.ORA";
set newname for datafile 16 to
"E:\ORACLE\ORADATA\DPBSDEV2\EXPRIM_EOM.ORA";
set newname for datafile 17 to
"E:\ORACLE\ORADATA\DPBSDEV2\EXPRIM_EOY.ORA";
set newname for datafile 18 to
"E:\ORACLE\ORADATA\DPBSDEV2\IDX_COMMON.ORA";
set newname for datafile 19 to
"E:\ORACLE\ORADATA\DPBSDEV2\IDX_DWH.ORA";
set newname for datafile 20 to
"E:\ORACLE\ORADATA\DPBSDEV2\IDX_EXPRIM.ORA";
set newname for datafile 21 to
"E:\ORACLE\ORADATA\DPBSDEV2\IDX_IMPORT.ORA";
set newname for datafile 22 to
"E:\ORACLE\ORADATA\DPBSDEV2\IDX_SPECIAL.ORA";
set newname for datafile 23 to
"E:\ORACLE\ORADATA\DPBSDEV2\IDX_WINDEKIS.ORA";
set newname for datafile 24 to
"E:\ORACLE\ORADATA\DPBSDEV2\IMPORT.ORA";
set newname for datafile 25 to
"E:\ORACLE\ORADATA\DPBSDEV2\IMPORT_EOM.ORA";
set newname for datafile 26 to
"E:\ORACLE\ORADATA\DPBSDEV2\IMPORT_EOY.ORA";
set newname for datafile 27 to
"E:\ORACLE\ORADATA\DPBSDEV2\INDX.ORA";
set newname for datafile 28 to
"E:\ORACLE\ORADATA\DPBSDEV2\ODM.ORA";
set newname for datafile 29 to
"E:\ORACLE\ORADATA\DPBSDEV2\OMS_REPOSITORY.ORA";
set newname for datafile 31 to
"E:\ORACLE\ORADATA\DPBSDEV2\OWB_REPOSITORY.ORA";
set newname for datafile 32 to
"E:\ORACLE\ORADATA\DPBSDEV2\OWB_REPOSITORY_IDX.ORA";
set newname for datafile 34 to
"E:\ORACLE\ORADATA\DPBSDEV2\SECURITY.ORA";
set newname for datafile 35 to
"E:\ORACLE\ORADATA\DPBSDEV2\SIMS.ORA";
set newname for datafile 36 to
"E:\ORACLE\ORADATA\DPBSDEV2\TOOLS.ORA";
set newname for datafile 37 to
"E:\ORACLE\ORADATA\DPBSDEV2\TRANSTAT.ORA";
set newname for datafile 38 to
"E:\ORACLE\ORADATA\DPBSDEV2\UTILS.ORA";
set newname for datafile 39 to
"E:\ORACLE\ORADATA\DPBSDEV2\WINDEKIS.ORA";
set newname for datafile 40 to
"E:\ORACLE\ORADATA\DPBSDEV2\WINDEKIS_EOM.ORA";
set newname for datafile 41 to
"E:\ORACLE\ORADATA\DPBSDEV2\WINDEKIS_EOY.ORA";
set newname for datafile 42 to
"E:\ORACLE\ORADATA\DPBSDEV2\XDB.ORA";
set newname for datafile 43 to
"E:\ORACLE\ORADATA\DPBSDEV2\CHANGE_MGT_PACK.DBF";
set newname for datafile 44 to
"E:\ORACLE\ORADATA\DPBSDEV2\DWH.ORA";
set newname for datafile 46 to
"E:\ORACLE\ORADATA\DPBSDEV2\DEXIA_JOBS.ORA";
restore
check readonly
clone database
executing Memory Script
executing command: SET until clause
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
Starting restore at 06-FEB-08
using channel ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: starting datafile backupset restore
channel ORA_AUX_DISK_1: specifying datafile(s) to restore from backup set
restoring datafile 00001 to E:\ORACLE\ORADATA\DPBSDEV2\SYSTEM01.DBF
restoring datafile 00002 to E:\ORACLE\ORADATA\DPBSDEV2\UNDOTBS01.DBF
restoring datafile 00003 to E:\ORACLE\ORADATA\DPBSDEV2\SYSAUX01.DBF
restoring datafile 00004 to E:\ORACLE\ORADATA\DPBSDEV2\USERS01.DBF
restoring datafile 00005 to E:\ORACLE\ORADATA\DPBSDEV2\CIF.ORA
restoring datafile 00006 to E:\ORACLE\ORADATA\DPBSDEV2\DEVELOPMENT.ORA
restoring datafile 00007 to E:\ORACLE\ORADATA\DPBSDEV2\COMPLIANCE.ORA
restoring datafile 00008 to E:\ORACLE\ORADATA\DPBSDEV2\COMPLIANCE_EOM.ORA
restoring datafile 00009 to E:\ORACLE\ORADATA\DPBSDEV2\CWMLITE.ORA
restoring datafile 00010 to E:\ORACLE\ORADATA\DPBSDEV2\DADIC.ORA
restoring datafile 00012 to E:\ORACLE\ORADATA\DPBSDEV2\DRSYS.ORA
restoring datafile 00013 to E:\ORACLE\ORADATA\DPBSDEV2\DUW_LAN_ENCRYPT.ORA
restoring datafile 00014 to E:\ORACLE\ORADATA\DPBSDEV2\ERASE.ORA
restoring datafile 00015 to E:\ORACLE\ORADATA\DPBSDEV2\EXPRIM.ORA
restoring datafile 00016 to E:\ORACLE\ORADATA\DPBSDEV2\EXPRIM_EOM.ORA
restoring datafile 00017 to E:\ORACLE\ORADATA\DPBSDEV2\EXPRIM_EOY.ORA
restoring datafile 00018 to E:\ORACLE\ORADATA\DPBSDEV2\IDX_COMMON.ORA
restoring datafile 00019 to E:\ORACLE\ORADATA\DPBSDEV2\IDX_DWH.ORA
restoring datafile 00020 to E:\ORACLE\ORADATA\DPBSDEV2\IDX_EXPRIM.ORA
restoring datafile 00021 to E:\ORACLE\ORADATA\DPBSDEV2\IDX_IMPORT.ORA
restoring datafile 00022 to E:\ORACLE\ORADATA\DPBSDEV2\IDX_SPECIAL.ORA
restoring datafile 00023 to E:\ORACLE\ORADATA\DPBSDEV2\IDX_WINDEKIS.ORA
restoring datafile 00024 to E:\ORACLE\ORADATA\DPBSDEV2\IMPORT.ORA
restoring datafile 00025 to E:\ORACLE\ORADATA\DPBSDEV2\IMPORT_EOM.ORA
restoring datafile 00026 to E:\ORACLE\ORADATA\DPBSDEV2\IMPORT_EOY.ORA
restoring datafile 00027 to E:\ORACLE\ORADATA\DPBSDEV2\INDX.ORA
restoring datafile 00028 to E:\ORACLE\ORADATA\DPBSDEV2\ODM.ORA
restoring datafile 00029 to E:\ORACLE\ORADATA\DPBSDEV2\OMS_REPOSITORY.ORA
restoring datafile 00031 to E:\ORACLE\ORADATA\DPBSDEV2\OWB_REPOSITORY.ORA
restoring datafile 00032 to E:\ORACLE\ORADATA\DPBSDEV2\OWB_REPOSITORY_IDX.ORA
restoring datafile 00034 to E:\ORACLE\ORADATA\DPBSDEV2\SECURITY.ORA
restoring datafile 00035 to E:\ORACLE\ORADATA\DPBSDEV2\SIMS.ORA
restoring datafile 00036 to E:\ORACLE\ORADATA\DPBSDEV2\TOOLS.ORA
restoring datafile 00037 to E:\ORACLE\ORADATA\DPBSDEV2\TRANSTAT.ORA
restoring datafile 00038 to E:\ORACLE\ORADATA\DPBSDEV2\UTILS.ORA
restoring datafile 00039 to E:\ORACLE\ORADATA\DPBSDEV2\WINDEKIS.ORA
restoring datafile 00040 to E:\ORACLE\ORADATA\DPBSDEV2\WINDEKIS_EOM.ORA
restoring datafile 00041 to E:\ORACLE\ORADATA\DPBSDEV2\WINDEKIS_EOY.ORA
restoring datafile 00042 to E:\ORACLE\ORADATA\DPBSDEV2\XDB.ORA
restoring datafile 00043 to E:\ORACLE\ORADATA\DPBSDEV2\CHANGE_MGT_PACK.DBF
restoring datafile 00044 to E:\ORACLE\ORADATA\DPBSDEV2\DWH.ORA
restoring datafile 00046 to E:\ORACLE\ORADATA\DPBSDEV2\DEXIA_JOBS.ORA
channel ORA_AUX_DISK_1: reading from backup piece F:\ORACLE\BACKUP\BACKUP_DPBSPR
ORA-19870: error reading backup piece F:\ORACLE\BACKUP\BACKUP_DPBSPRD1_BLJ7VKO3
ORA-19505: failed to identify file "F:\ORACLE\BACKUP\BACKUP_DPBSPRD1_BLJ7VKO3"
ORA-27041: unable to open file
OSD-04002: unable to open file
O/S-Error: (OS 3) The system cannot find the path specified.
failover to previous backup
thanks for your help
Regards

can you post your connection string to the source and auxillary databases please. with a duplicate you don't need to copy any files, rman does the whole process for you.
regards
Alan

Similar Messages

  • Restoring database with NOARCHIVELOG

    After several failed attempts at trying to get Enterprise Manager to work with my database, I decided to uninstall the Enterprise Edition completely and then to install it from scratch. I did and found, as expected, that my database files were still intact, on another drive. However, what I didn't expect was that uninstalling Oracle also removed the init*.ora files I had for the different databases, and so the DBCA showed no databases at all. So I figured I would create new databases with the same settings, and then copy all the files from the old locations to the new ones. That went well, except for with one database.
    When trying to open that database, I get a ORA-00280 and the suggested file that should contain the sequence, is not at that location. In fact I could not find it anywhere on my disks, even after using a program to undelete content. However I know for a fact that I ran my old databases in NOARCHIVELOG mode, yet the name of the suggested file hinted at it being an archive log.
    I have been googling all day long, and tried out several different methods, restoring, recovering, RESETLOGS, NORESETLOGS, what to do when not having neither archive logs or possibly redo logs (as I don't know what the ONLINELOG files are specifically), but they all ended up with me being at the same point, needing that .arc file which I should've never had, due to NOARCHIVELOG mode.
    So here is where I'm at. I have a CONTROLFILE folder with 1 control file, a DATAFILE folder with the usual tablespace files, and an ONLINELOG folder with 3 log files. I even tried using those 3 log files for recovering the database, but to no avail. I have all the data, and while I guess the ORA-00280 means that there has been a change in the database since the data files were written, I haven't changed much data so I could easily add whatever little data is missing from the tablespace USERS. So I need some instructions, some help on how to open and mount the database and avoid getting the ORA-00280 or being able to ignore it and still open the database. As I created a new database, there are no archive logs backed up, so I can't recover any files that way, I only have the data files, control files and log files to work with.

    You're not in as bad as shape as you think.
    If you have the data files and one control file, you can recover/restore the database. First thing to do is get a working init.ora file and get the instance up and running. Then, work on the control file (so you can at least mount the database). Fix what you need to in terms of paths/file locations. It may take several iterations. You can also bypass the existing controlfile and create your own. Eventually, you'll be able to have a successful "alter database open" step.
    http://www.databasejournal.com/features/oracle/article.php/3738736/Recovering-from-Loss-of-All-Control-Files.htm
    Number one precaution: take a copy of what you have now and put it somewhere else, just in case. You don't want to make the situation worse.

  • Restore database with new DB name

    I'm trying to restore a database from a hot backup with a new database name. I'm trying to use the backup control file with the SET DATABASE in the control file. That works ok, but when I run RECOVER DATABASE USING BACKUP CONTROLFILE I get errors such as
    ORA-00279: change 1516911820 generated at 09/08/2006 17:14:43 needed for thread 1
    and ORA-00308: cannot open archived log
    Can anyone help me? I'm not using RMAN currently with the DUPLICATE command because I'm running on NetApp filers and it would be much faster to duplicate the database this way. Also, I'm duplicating on the same server so I need to use a different instance name.
    Thanks,
    Michael Cunningham

    Assuming source is in Archive Log mode.
    Your scenario is :-
    Cloning Database in the same server using OS copy.
    I believe you are stuck with recovery issues, what you need to do is feed the archive log that the database is asking for. You can also try giving it the redo logs.
    RECOVER DATABASE USING BACKUP CONTROLFILE;
    feed it the archive/redo logs. Till you get a Media recovery complete message.

  • Backup/restore database with dump file

    Hi everybody,
    I would like to backup/restore my database with Oracle Utility commands(exp/imp) but I can only execute these commands in the machine where database server is being installed. When I use Oracle client to connect to DB server to execute these commands, DB server can not understand these commands.
    Is there any method to do this?
    Please help me.

    My workout for you is as follows (assuming, you configured tnsnames pointing to the listener concern with your database)...
    SQL> select * from example;
    ITEM STORE STARTDATE ENDDATE
    1 10 01-JAN-06 19-JAN-06
    1 10 03-JAN-06 20-JAN-06
    1 10 01-FEB-06 20-FEB-06
    2 10 01-JAN-06 15-JAN-06
    SQL>
    C:\>exp scott/[email protected] tables=example query=\"where item=1\" file=example.dmp
    Export: Release 9.2.0.1.0 - Production on Fri Dec 15 08:06:16 2006
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    Connected to: Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.1.0 - Production
    Export done in WE8MSWIN1252 character set and AL16UTF16 NCHAR character set
    server uses US7ASCII character set (possible charset conversion)
    About to export specified tables via Conventional Path ...
    . . exporting table EXAMPLE 3 rows exported
    Export terminated successfully without warnings.
    C:\>
    -aijaz

  • RMAN Restore Database vs Duplicate Database

    Currently we have Dev Database which runs on its own Server and registered in Dev Catalog Database for RMAN backups. We also have production Database which runs on own server and register to Prod Catalog Database for RMAN backups.(Both databases 10g running on AIX servers)
    We are in process of developing new process which allows us to refresh Dev Database from Production couple times per week.
    Here are my questions. Since Production Database is utilizing RMAN for backups I want to use RMAN Duplicate to new host or restore to new host
    1.     Would duplicate command auto register newly re created Dev Database in Prod Catalog ? I really do not want to.
    2.     Would Duplicate will generate new DBID for re created Dev Database? I do not want to ..
    3.     Since Dev Database registered in its own RMAN Catalog. We would want to continue to run regular backups every night. Do we need to do anything special or just run regular backup script?
    4.     Also should we look at regular RMAN recovery/restore option to new host instead of RMAN Duplicate for what we need to accomplish?
    Any input would be really appreciated.

    If you need "up-to-date" data in your dev environment, you have no choice but to duplicate your prod database.
    Restoring would only apply if you wanted the same data as was in your dev database as of a certain point in time.
    RMAN is pretty straight forward and if that works for you, I would continue with that method.
    If you also do hot/cold backups (O/S copies), then the question of speed comes into play (is it faster to copy the O/S files to your dev servers and apply the needed archivelogs or is RMAN faster). We have scenarios when RMAN is twice as fast as O/S copies and others when O/S copies are better. Testing should tell you which would be best in your case.
    I hope that answers your question.

  • Error while restoring database with different name on subscriber

    Hi all,
    I am using merge replication in sql server 2008R2. Yesterday I wanted to create a test environment, so
    I did:
    1. on publisher I restored from backup production db with another name ( lets call it TEST and new files
    .mdf, .ldf and no switch KEEP_REPLICATION). After this step original replication between production
    dbs worked fine.
    2. on subscriber I did the same: restore as new db TEST with new
    files .mdf, .ldf and no switch KEEP_REPLICATION.
    Unfortunately I noticed, that after second step replication stopped. SQL agent replication job on Subscriber
    is gone.
    Why restoring db with new name did affect original replication?
    Finally the most important: replication was set up by external company and I have to bring it to live now
    but I don't know this subject so good. How can I do it?
    Assuming, that there is no data change on subscriber in replicated tables is it enough when I select ‘reinitialize’
    on Publisher and Subscriber?
    Thanks in advance
    Artur

    Hello,
    Sorry for late response, but I was out of the office during last week.
    Regarding problem 1: restoring replication. I contacted guy who made originally our replication and he recreated subscription agent. So this is solved.
    problem 2: why did it happen?
    Lydia, in link which you provided I found only info about restoring db in replication, but I didn't want to restore replication.
    I checked SQL Server and Server Agent logs and there were no entries on that time. The only entries are regarding db restoring. Below:
    09/11/2014 12:45:59,Backup,Unknown,Database was restored: Database: Logik_ATData_TEST<c/> creation date(time): 2012/04/27(13:55:41)<c/> first LSN: 21392:66:267<c/> last LSN: 21392:227:1<c/> number of dump devices: 1<c/> device information: (FILE=1<c/> TYPE=DISK: {'D:\MSSQLBackup\Dzienny\Logik_ATData_PROD\Logik_ATData_PROD_backup_2014_09_10_231001_6391536.bak'}). Informational message. No user action required.
    09/11/2014 12:45:59,Backup,Unknown,Restore is complete on database 'Logik_ATData_TEST'. The database is now available.
    09/11/2014 12:45:59,spid72,Unknown,CHECKDB for database 'Logik_ATData_TEST' finished without errors on 2012-04-26 22:50:05.490 (local time). This is an informational message only; no user action is required.
    09/11/2014 12:44:53,spid72,Unknown,Recovery is writing a checkpoint in database 'Logik_ATData_TEST' (13). This is an informational message only. No user action is required.
    09/11/2014 12:44:53,spid72,Unknown,Starting up database 'Logik_ATData_TEST'.
    09/11/2014 12:44:51,spid72,Unknown,The database 'Logik_ATData_TEST' is marked RESTORING and is in a state that does not allow recovery to be run.
    09/11/2014 12:44:51,spid72,Unknown,Starting up database 'Logik_ATData_TEST'.
    In Windows application log there were also no other entries, besides these above.
    I also could not check job history, because the job was gone in SSMS jobs list, while the subscription was present in SSMS Replication with info, that last successful synchronization was at 12:42 (there is a 5 min. sync period).
     I also don't understand how the job was deleted, because according this manual (http://www.mssqltips.com/sqlservertip/1803/auto-alert-for-sql-agent-jobs-when-they-are-enabled-or-disabled/) I have 2 triggers in sysjobs table and every time, when
    job is deleted/disabled I got @ notification. In this case I got no @.
    My SQL Server version:
    Product_Version Product_Level Edition
    10.50.2550.0 SP1 Standard Edition (64-bit)
    Any idea what happened?
    Thanks,
    Artur

  • Delete a database with a command and how exp from O10g to OXE

    hi all much thanks for read the post, i followed:
    NewB Question about, database, create/ delete/ show databases....
    but i havent installed oracle10g (utility: DBCA) because in my new laptop with windowsvista, cant install, then i try install oracle XE on my WindowsVista Box, by moment all its ok, i try exp on Oracle10g Pc:
    c:\exp UFIERROS/pass owner=UFIERROS file=FIERROS.DMP
    exported!
    then in pc with Oracle XE i try:
    c:\imp userid=system file=FIERROSXY.DMP log=imp.log fromuser=UFIERROS touser=UFIERROS
    the first time say errors (not captured), by error i type again:
    c:\imp userid=system file=FIERROSXY.DMP log=imp.log fromuser=UFIERROS touser=UFIERROS
    and now say:
    importación realizada en el juego de caracteres WE8MSWIN1252 y el juego de caracteres NCHAR AL16UTF16
    el servidor de importación utiliza el juego de caracteres AL32UTF8 (posible conversión de juego de caracteres)
    . importando objetos de UFIERROS en UFIERROS
    IMP-00015: la siguiente sentencia ha fallado porque el objeto ya existe:
    "CREATE SEQUENCE "FIERROS_S" MINVALUE 1 MAXVALUE 999999999999999999999999999"
    " INCREMENT BY 1 START WITH 110325 CACHE 20 NOORDER NOCYCLE"
    IMP-00015: la siguiente sentencia ha fallado porque el objeto ya existe:
    "CREATE SEQUENCE "PASE_MAESTRO_S" MINVALUE 1 MAXVALUE 9999999999999999999999"
    so so same errors the file have mmm about 100 lines of warnings/errors
    then the first question is:
    1) if havent DBCA (or how access it), how erase my database, for try again imp..
    2) How import my data from oracle10g to oracleXE?
    thanks

    i do:
    C:\temp>sqlplus /nolog
    SQL*Plus: Release 10.2.0.1.0 - Production on Sßb Feb 24 03:10:26 2007
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    SQL> conn / as sysdba
    Conectado.
    SQL> drop user UFIERROS;
    drop user UFIERROS
    ERROR en lÝnea 1:
    ORA-01922: se debe especificar CASCADE para borrar UFIERROS
    SQL> drop user UFIERROS CASCADE;
    Usuario borrado.
    SQL> create user UFIERROS identified by linuxx;
    Usuario creado.
    deleted and recreated, but, how use the data pump?
    thanks

  • How restore database only with dbf, ctl, and redolog file

    Hi friends,
    I had a database oracle 11g, but the server was crashed. Then I just rescue only the files DBF, CTL, and REDOLOG. But I couldn't rescue the spfile and pwd file.
    How can I restore this database in other server? How can I recreate the spfile?
    I hope anyone can give me a hand.
    Thanks.

    Thanks Hemant K Chitale.
    And exactly like EdStevens said, I don't have any spfile or init file, also I don't have the alertlog. I just have the files:
    CONTROL01.CTL
    CONTROL02.CTL
    CONTROL03.CTL
    REDO01.LOG
    REDO02.LOG
    REDO03.LOG
    SYSAUX01.DBF
    SYSTEM01.DBF
    TEMP01.DBF
    UNDOTBS01.DBF
    USERS01.DBF
    And I just know the original database  was in 10g standar edition on Windows server 2008.
    Which will be the steps to recover the database, how I could create a spfile from the control files, redo, and dbf?
    Best regards.

  • Restore Database with Oracle 9i with a New Host using RMAN

    Gurus,
    I am trying to restore a database from some RMAN created files on a new host with a new directory structure for some testing. I do not have access to the source database.
    The database is Oracle 9i.
    The files that have been created are the following:
    'C-2995630462-20110214-00' is the control file and SP file backup.
    'B_ABM4KAJ5_1_1' is the database backup.
    B_ACM4KARS_1_1 and B_AAM4KAIV_1_1 are archived redo logs
    Here is the RMAN listing from when the files were created:
    BS Key Size Device Type Elapsed Time Completion Time
    329 56M DISK 00:00:02 14/FEB/11
    BP Key: 329 Status: AVAILABLE Tag: TAG20110214T050015
    Piece Name: D:\BACKUPS\CRYSTAL\B_AAM4KAIV_1_1
    List of Archived Logs in backup set 329
    Thrd Seq Low SCN Low Time Next SCN Next Time
    1 184 4602414767 13/FEB/11 4602533494 14/FEB/11
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    330 Full 13G DISK 00:04:33 14/FEB/11
    BP Key: 330 Status: AVAILABLE Tag: TAG20110214T050021
    Piece Name: D:\BACKUPS\CRYSTAL\B_ABM4KAJ5_1_1
    List of Datafiles in backup set 330
    File LV Type Ckp SCN Ckp Time Name
    1 Full 4602533509 14/FEB/11 D:\ORACLE\ORADATA\CRYSTAL\SYSTEM01.DBF
    2 Full 4602533509 14/FEB/11 D:\ORACLE\ORADATA\CRYSTAL\UNDOTBS01.DBF
    3 Full 4602533509 14/FEB/11 D:\ORACLE\ORADATA\CRYSTAL\USERS01.DBF
    BS Key Size Device Type Elapsed Time Completion Time
    331 37K DISK 00:00:01 14/FEB/11
    BP Key: 331 Status: AVAILABLE Tag: TAG20110214T050500
    Piece Name: D:\BACKUPS\CRYSTAL\B_ACM4KARS_1_1
    List of Archived Logs in backup set 331
    Thrd Seq Low SCN Low Time Next SCN Next Time
    1 185 4602533494 14/FEB/11 4602533686 14/FEB/11
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    332 Full 3M DISK 00:00:01 14/FEB/11
    BP Key: 332 Status: AVAILABLE Tag:
    Piece Name: D:\BACKUPS\CRYSTAL\C-2995630462-20110214-00
    SPFILE Included: Modification time: 23/NOV/10
    I am new to using RMAN and I'm hoping someone could point me in a direction of some documentation to assist with the scenario described above. I've looked at several Oracle documents but have been unable to find a way to separate out the spfile from the control file.
    Any help you can provide would be greatly appreciated.
    Thanks.

    Thanks Meeran.
    I have attempted to follow the directions from the RMAN document that you posted and have run into the following error:
    C:\>rman target / nocatalog
    Recovery Manager: Release 9.2.0.6.0 - Production
    Copyright (c) 1995, 2002, Oracle Corporation. All rights reserved.
    connected to target database: DUMMY (not mounted)
    using target database controlfile instead of recovery catalog
    RMAN> startup force nomount
    startup failed: ORA-01078: failure in processing system parameters
    LRM-00109: could not open parameter file 'C:\ORACLE\ORA92\DATABASE\INITCRYSTAL.O
    RA'
    trying to start the Oracle instance without parameter files ...
    Oracle instance started
    Total System Global Area 97591104 bytes
    Fixed Size 454464 bytes
    Variable Size 46137344 bytes
    Database Buffers 50331648 bytes
    Redo Buffers 667648 bytes
    RMAN> RESTORE SPFILE TO 'C:\oracle\admin\crystal\pfile\init.ora' from 'C:\oracle
    \ora92\CRYSTALbk\C-2995630462-20110214-00';
    Starting restore at 30-MAR-11
    using channel ORA_DISK_1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of restore command at 03/30/2011 11:30:07
    ORA-00600: internal error code, arguments: [1866], [0x41AA450], [6144], [0x41BAD
    B4], [], [], [], []
    RMAN>
    Am I not correctly connected to the target?
    It looks like it correctly tried to create a dummy spfile, but when attempting the restore from the file it breaks.
    Any suggestions? Thanks.

  • On all my other apps and browsers, I have my system set up to open things with a doubleclick. In Firefox, however, a single click opens things, and it's very annoying since I wind up with duplicate pages -- where can I change this option to double-click?

    I think my question explains my issue, but I particularly have this issue on www.pogo.com when I try to open a game room. The system tells me someone else with my user name is trying to enter the room at the same time, so it boots us both out. I have contacted Pogo, and they tell me it's a Firefox issue. There must be an option somewhere, like a OS has, to pick between single and double clicks to open an app, but I can't find it in Firefox. My mouse is set in XP for double-click.

    Hi Roger
    Thank you for your reply.
    My original feed is: http://casa-egypt.com/feed/
    However, because I modified the feed http://feeds.feedburner.com/imananddinasbroadcast and nothing changed, I redirected it to another feed and then I deleted this feed.
    Is there any way to change the feed in itunes? The only feed I have now is  http://feeds.feedburner.com/CasaEgyptStation
    I tried to restore the feed http://feeds.feedburner.com/imananddinasbroadcast but feedburner refused.
    I know that I missed things up but I still have hope in working things out.
    Thanks is advance.
    Dina
    Message was edited by: dinadik

  • How to deal with duplicate packages in AUR?

    What is the best way to report a duplicate package (often one version is orphaned and another has a maintainer... but both are still the same package) so that one (if one is orphaned, probably the orphaned one) can be deleted? Would I want to contact a TU? And how would I do that? Post in the Discussions section?

    liquibyte wrote:Actually I would say that if you know they are the "exact" same thing, just adopt the orphan and then delete it.
    Only TU's can delete packages now.  A safety measure to stop the evil minority... 

  • Restore database

    Hi,
    I try learn how restore database.
    Case:
    Database is in archivelog mode and hot backup runs every night at 2:00am by cron job and backup.sh
    I drop table using
    drop table mytbl purge;So I can not get it from recyclebin.
    Or I do some other mistake and I like restore whole database to state where it was in certain time
    I have try read all kind documents and experiment how to do this without luck.
    If someone could give me steps to do restore
    Thanks advance
    Br,Jari

    Here is a full scenario with RMAN.
    First backup database with RMAN:
    C:\oraclexe\oradata\XE>rman target /
    Recovery Manager: Release 10.2.0.1.0 - Production on Thu May 13 20:26:46 2010
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    connected to target database: XE (DBID=2584040801)
    RMAN> backup database plus archivelog;
    Starting backup at 13-MAY-10
    current log archived
    using target database control file instead of recovery catalog
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=38 devtype=DISK
    channel ORA_DISK_1: starting archive log backupset
    channel ORA_DISK_1: specifying archive log(s) in backup set
    input archive log thread=1 sequence=166 recid=165 stamp=718921614
    channel ORA_DISK_1: starting piece 1 at 13-MAY-10
    channel ORA_DISK_1: finished piece 1 at 13-MAY-10
    piece handle=C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\BACKUPSET\2010_05_13\
    O1_MF_ANNNN_TAG20100513T202656_5YRK3KKF_.BKP tag=TAG20100513T202656 comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:02
    Finished backup at 13-MAY-10
    Starting backup at 13-MAY-10
    using channel ORA_DISK_1
    channel ORA_DISK_1: starting full datafile backupset
    channel ORA_DISK_1: specifying datafile(s) in backupset
    input datafile fno=00001 name=C:\ORACLEXE\ORADATA\XE\SYSTEM.DBF
    input datafile fno=00003 name=C:\ORACLEXE\ORADATA\XE\SYSAUX.DBF
    input datafile fno=00002 name=C:\ORACLEXE\ORADATA\XE\UNDO.DBF
    input datafile fno=00004 name=C:\ORACLEXE\ORADATA\XE\USERS.DBF
    input datafile fno=00005 name=C:\TMP\DF1
    channel ORA_DISK_1: starting piece 1 at 13-MAY-10
    channel ORA_DISK_1: finished piece 1 at 13-MAY-10
    piece handle=C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\BACKUPSET\2010_05_13\
    O1_MF_NNNDF_TAG20100513T202658_5YRK3LWO_.BKP tag=TAG20100513T202658 comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:25
    channel ORA_DISK_1: starting full datafile backupset
    channel ORA_DISK_1: specifying datafile(s) in backupset
    including current control file in backupset
    including current SPFILE in backupset
    channel ORA_DISK_1: starting piece 1 at 13-MAY-10
    channel ORA_DISK_1: finished piece 1 at 13-MAY-10
    piece handle=C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\BACKUPSET\2010_05_13\
    O1_MF_NCSNF_TAG20100513T202658_5YRK4FH7_.BKP tag=TAG20100513T202658 comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:03
    Finished backup at 13-MAY-10
    Starting backup at 13-MAY-10
    current log archived
    using channel ORA_DISK_1
    channel ORA_DISK_1: starting archive log backupset
    channel ORA_DISK_1: specifying archive log(s) in backup set
    input archive log thread=1 sequence=167 recid=166 stamp=718921646
    channel ORA_DISK_1: starting piece 1 at 13-MAY-10
    channel ORA_DISK_1: finished piece 1 at 13-MAY-10
    piece handle=C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\BACKUPSET\2010_05_13\
    O1_MF_ANNNN_TAG20100513T202726_5YRK4HRM_.BKP tag=TAG20100513T202726 comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:02
    Finished backup at 13-MAY-10
    RMAN> exit
    Recovery Manager complete.Drop the table:
    C:\oraclexe\oradata\XE>sqlplus / as sysdba
    SQL*Plus: Release 10.2.0.1.0 - Production on Thu May 13 20:27:34 2010
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    SQL>  select to_char(sysdate,'YYYY-MM-DD:HH24:MI:SS') time_now from dual;
    TIME_NOW
    2010-05-13:20:27:38
    SQL> select count(*) from test.t;
      COUNT(*)
             1
    SQL>  select to_char(sysdate,'YYYY-MM-DD:HH24:MI:SS') time_now from dual;
    TIME_NOW
    2010-05-13:20:27:56
    SQL> drop table test.t purge;
    Table dropped.
    SQL>  select to_char(sysdate,'YYYY-MM-DD:HH24:MI:SS') time_now from dual;
    TIME_NOW
    2010-05-13:20:28:10Stop database instance, restart database in MOUNT mode (this is the missing step in your last message)
    and restore database (RMAN will use last backup by default):
    SQL> shutdown abort
    ORACLE instance shut down.
    SQL> exit
    Disconnected from Oracle Database 10g Express Edition Release 10.2.0.1.0 - Produ
    ction
    C:\oraclexe\oradata\XE>rman target /
    Recovery Manager: Release 10.2.0.1.0 - Production on Thu May 13 20:28:34 2010
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    connected to target database (not started)
    RMAN> startup mount;
    Oracle instance started
    database mounted
    Total System Global Area     805306368 bytes
    Fixed Size                     1289996 bytes
    Variable Size                213909748 bytes
    Database Buffers             587202560 bytes
    Redo Buffers                   2904064 bytes
    RMAN> restore database;
    Starting restore at 13-MAY-10
    using target database control file instead of recovery catalog
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=35 devtype=DISK
    channel ORA_DISK_1: starting datafile backupset restore
    channel ORA_DISK_1: specifying datafile(s) to restore from backup set
    restoring datafile 00001 to C:\ORACLEXE\ORADATA\XE\SYSTEM.DBF
    restoring datafile 00002 to C:\ORACLEXE\ORADATA\XE\UNDO.DBF
    restoring datafile 00003 to C:\ORACLEXE\ORADATA\XE\SYSAUX.DBF
    restoring datafile 00004 to C:\ORACLEXE\ORADATA\XE\USERS.DBF
    restoring datafile 00005 to C:\TMP\DF1
    channel ORA_DISK_1: reading from backup piece C:\ORACLEXE\APP\ORACLE\FLASH_RECOV
    ERY_AREA\XE\BACKUPSET\2010_05_13\O1_MF_NNNDF_TAG20100513T202658_5YRK3LWO_.BKP
    channel ORA_DISK_1: restored backup piece 1
    piece handle=C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\BACKUPSET\2010_05_13\
    O1_MF_NNNDF_TAG20100513T202658_5YRK3LWO_.BKP tag=TAG20100513T202658
    channel ORA_DISK_1: restore complete, elapsed time: 00:00:36
    Finished restore at 13-MAY-10Recover database to a point in time before DROP TABLE
    RMAN> recover database until time "to_date('2010-05-13:20:27:00','YYYY-MM-DD:HH2
    4:MI:SS')";
    Starting recover at 13-MAY-10
    using channel ORA_DISK_1
    starting media recovery
    media recovery complete, elapsed time: 00:00:01
    Finished recover at 13-MAY-10Open the database and check that dropped table is back:
    RMAN> alter database open resetlogs;
    database opened
    RMAN> exit
    Recovery Manager complete.
    C:\oraclexe\oradata\XE>sqlplus / as sysdba
    SQL*Plus: Release 10.2.0.1.0 - Production on Thu May 13 20:34:24 2010
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    SQL> select count(*) from test.t;
      COUNT(*)
             1
    SQL>

  • Database with oracle developper

    Hi, im a student and i work with win 2000 and i install the oracle developper version 6.0.
    How make database with this software.
    because when i start sql plus i dont have host string.
    Thanks you regards Martin

    Because I was not sure where to get an answer, I posted the same topic in the "Techno->Apple" forum where some helpful person gave me the answer to that problem.
    Check it out if you experience the same problem :) .
    remi.

  • How can LabVIEW press a command button in access form?

    Situation: access database with a command button, who generate a code after pushing
    Task: LabVIEW open the access database, pressed the command button and read out the code
    Status:
    use activeX to open the access database - ready
    press the command button - open
    read out the code - open
    Problem: Is there a possibility that LabVIEW press automatically the command button in the access form?
    Solved!
    Go to Solution.

    First off, you are confusing your terms. Access is not a database. It's an development environment for creating applications that use databases. By default, Access uses a DBMS called Jet that is built into Windows, but it can use others like SQL Server or even Oracle.
    Second, in terms of pushing the button, that is totally dependent upon what functionality Access' ActiveX interface chooses to expose to external applications.
    Third, what does the button actually do? The statement, "..generate a code.." is meaningless. Does it perform a query? Does it generate a report? Does it modify records?
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • Create a view with a changing where clause

    Hi all,
    i'm developing an application with oracle forms i want to create a view in the database with a different where clause in every time , the where clause is determined due to the department id of the current user .
    thanks alot.

    SQL> create view emp_view as select empno, ename, deptno from emp;
    View created.
    SQL> select * from emp_view where deptno = 10;
         EMPNO ENAME          DEPTNO
          7782 CLARK              10
          7839 KING               10
          7934 MILLER             10
    SQL>

Maybe you are looking for