Rman Duplicate from a different directory
Hi all,
I have a production backup taken in '/u01' mount point. I need to duplicate the production db to a development environment. But what is lack is the mount point. I dont have the '/u01' mount point in my development environment. Is there a possibility to duplicate the auxillary database without the mount point , i.e., the mount point different from '/u01'.
Please help me with this?
On Unix / Linux, it is quite easy to create a soft-link /u01 (or /u01/backup if your backuppieces are under /u01/backup) to point to the directory where you have actually copied the backuppieces.
Lookup the man pages for "ln" or talk to your Unix/Linux administrator.
Hemant K Chitale
Edited by: Hemant K Chitale on May 9, 2011 12:53 PM
Similar Messages
-
How to include a template from a different directory
Hi,
I have a page navigation menu that I placed in a template file. All the browsing files would then call this template file using cfinclude.
I now want to call this file from a different directory. However, this causes all the url and image links to be wrong because the template file uses relative path off of root directory.
I have looked at using cfmodule, but it seems that I would have the same issues unless I make the paths absolute, which I am trying to avoid.
I also thought of prepending to every link in the template file with a directory prefix variable which I passes from the calling files.
Is there an easy and better way to solve this?
Thanks!
MinTo dynamically get the absolute path from a relative path take a look at expandPath()
http://livedocs.adobe.com/coldfusion/8/htmldocs/functions_e-g_05.html -
ORA-01017 when RMAN duplicate from active database
Hello, ORACLE guru's!
I've got some trouble trying to duplicate DB via RMAN duplicate from active database.
The script is simple:
run
allocate channel ch1 device type disk;
allocate auxiliary channel aux1 device type disk;
duplicate target database to mydb from active database;
The problem is in this statement:
Starting backup at 15-JAN-14
channel ch1: starting datafile copy
copying current control file
Oracle instance started
Total System Global Area 10689474560 bytes
Fixed Size 2237776 bytes
Variable Size 4227861168 bytes
Database Buffers 6442450944 bytes
Redo Buffers 16924672 bytes
contents of Memory Script:
sql clone "alter system set db_name =
''mydb'' comment=
''Reset to original value by RMAN'' scope=spfile";
sql clone "alter system reset db_unique_name scope=spfile";
shutdown clone immediate;
executing Memory Script
sql statement: alter system set db_name = ''mydb'' comment= ''Reset to original value by RMAN'' scope=spfile
sql statement: alter system reset db_unique_name scope=spfile
Oracle instance shut down
released channel: ch1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 01/15/2014 12:16:07
RMAN-05501: aborting duplication of target database
RMAN-03015: error occurred in stored script Memory Script
RMAN-03009: failure of backup command on ch1 channel at 01/15/2014 12:15:57
ORA-17629: Cannot connect to the remote database server
ORA-17627: ORA-01017: invalid username/password; logon denied
ORA-17629: Cannot connect to the remote database server
RMAN>
RMAN>change:
export ORACLE_SID="mydb"
export ORACLE_HOME="/u/app/oracle/product/11.2/db_1"
FILE1 = "/u/app/oracle/product/11.2/db_1/bin/"
cat > $FILE1/sqlplus sys/karen as sysdba << EOF
startup nomount;
exit;
EOF
cat > $FILE1/rman target sys/karen@mytargetdb auxiliary sys/karen@mydb << EOF
run
allocate channel ch1 device type disk;
allocate auxiliary channel aux1 device type disk;
duplicate target database to mydb from active database;
EOF
tell us if it works and again, from what host are you running the script? -
Taking rman backup from a different server
HI Al,
Is it possible for us run the rman backup from a different server other than the server on which database exist .
For Ex :
Our database is on server X
But , I want to schedulde the archive backup from the server Y .
How can we do this and is it possible ...
Regds
Rahul GuptaYes, as long the RMAN executable is compatible to the target database, on metalink:
RMAN Compatibility Matrix
Doc ID: 73431.1
rman sys/<password>@<connect_string>
Werner -
RMAN duplicate from Windows Oracle10 to AIX Oracle11
Is it possible to use RMAN duplicate to duplicate a database from Windows Oracle10 to AIX Oracle11? If not what is the reason it won't work?
Additionally if it won't work what other options are there besides export, ftp, import or export/import over sqlnet.user9541720 wrote:
Is it possible to use RMAN duplicate to duplicate a database from Windows Oracle10 to AIX Oracle11? If not what is the reason it won't work?It won't work!!!
For each architecture Oralce build their own binaries. (i.e Processor Power have different binaries from Processor Intel)
For some architectures, Oracle succeeded in creating compatibility between some different architectures, the Table on note 413484.1 describe it.
Oracle has certified to use AIX (Power) with Solaris (SPARC), but because of bug (12702521) Oracle reported it's no longer certified.
In your case (AIX) there is no compatibility with others plataform. AIX binaries is compatible only with itself. (e.g Processor Power 4 with Processor Power 7)
You have some options Oracle Golden Gate, Oracle Streams, export/import or Transportable Tablespace.
Additionally if it won't work what other options are there besides export, ftp, import or export/import over sqlnet.Try it:
http://levipereira.wordpress.com/2011/01/23/how-convert-full-database-10g-linux-x86-64bit-to-aix-64bit-different-endian-format/
Regards,
Levi Pereira -
RMAN duplicate from RAC with ASM to RAC with ASM
I'm still reading and trying to figure out how to duplicate...and I'm finding that there are some extra considerations you have to work with with doing a RAC system.
Does anyone have any good links to articles/docs that spell out what to do in this scenario?
I'm wanting to duplicate from tape backups, using NO connectivity to the source/target....
My tape backups do include the spfile and control files (autobackup) from the source.
Thank you in advance,
cayennedamorgan wrote:
Possibly you are confusing a database with a database.
A RAC database is a just a database. What is different is the instances, the clusterware, and the storage: For example ASM.
A backup is a backup is a backup.
Can you be more specific about what you are trying to do, on what hardware, operating system, version, and edition.
RMAN can not create an instance either RAC or stand-alone.Thank you for the reply.
I have my source system, OS = RHEL5, running Oracle 11Gr2...5 node RAC cluster.
I'm doing RMAN backups to tape...hourly arch. logs, Daily incremental lvl=1 backups and weekly incremental lvl=0
None of the tape backups have ever been tested for restoring...and I've never restored a database myself before, total noob here.
I have a test area I've set up. I have a 2 node RAC cluster, running 11Gr2 and OS=RHEL5.
The tape is accessible from both systems.
I am wanting to test the tape backups...and thought the RMAN DUPLICATE process would be the way to go.
I am wanting to NOT connect to the source database...trying to simulate somewhat of a disaster recovery scenario. I'm only wanting to use tape backup, and the test area for the auxiliary instance.
So far what I've seen I need to learn to do is something like:
1. Create a password file for new aux database to be duplicated to
2. Establish Net connectivity...
3. Create initial parameter file for aux instance
Due to a bug in note:334899.1, add this (because of RAC system)
norecovery_through_resetlogs=TRUE
4. Start aux instance NOMOUNT
Everything I'm reading though...is basically doing this from single instance to single instance...and what little info I've seen on doing it from RAC, indicates there are some differences. The "_no_recovery_through_resetlogs=TRUE" is one thing I found...but wondering what else.
Also, so many of the examples I'm finding...are doing the duplication connecting to the target/source...and also doing backups to disk rather than tape...
Right now, I'm at #1...trying to figure what to put into an init pfile...I'm seeing DB_name, which will be the same as the one I'm cloning from.
I'm not sure what else....
I'm wondering if this is necessary..since on the tape backups from the source...I backup the SPFILE...can that not be used somehow in this?
I'm seeing for the init file, examples show that I need to put in entries for control files and redo logs....if the source system was down and gone...how would I know where these were on the old system? This isn't documented anywhere....is there a way to do this if you didn't know.
If not..guess I need to go through all systems and document the layouts of where everything is located.
Also...most examples I'm finding, in addition to being single instance backup and restore/duplication...they are all using regular file systems....not much to go on with using ASM.
Anyway, I'm trying to learn here...and am having trouble finding examples to go from that match my setup.
Thank you in advance,
cayenne -
关于Rman Duplicate from active databse 到一个新库中出现的问题
OS:
[oravis@prcsgidb1 dbs]$ uname -a
Linux xxxx 2.6.32-200.13.1.el5uek #1 SMP Wed Jul 27 21:02:33 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux
DATABASE:单机
target: hzdbacoe 11.2.0.3
auxiliary: dbacoe 11.2.0.3
发生情景
将旧库home目录Clone到同机另一文件夹并做完所有操作后,欲进行duplicate
在新home目录中
1.新建pfile initdbacoe.ora如下
DB_NAME=dbacoe
DB_FILE_NAME_CONVERT=(/u03/apps/oracle/oradata/hzdbacoe/,/u03/app/oracle/oradata/dbacoe/)
LOG_FILE_NAME_CONVERT=(/u03/apps/oracle/oradata/hzdbacoe/,/u03/app/oracle/oradata/dbacoe/)
2.新建orapw file=orapwdbacoe.ora password=oracle
3.mkdir -p $ORACLE_BASE/oradata/dbacoe并赋好权限
4.根据该pfile起至 nomount阶段instance为dbacoe
5.在该目录的listener.ora中新建一个监听,并将dbacoe服务注册进入该监听,端口为1530
在原库所在环境变量中
修改tnsname.ora 加入dbacoe信息如下:
dbacoe =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = xxxx.xxx.xxx)(PORT = 1530))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = dbacoe)
[]rman
RMAN>connect target sys/allen1218
connected to target database: HZDBACOE (DBID=2102554453)
RMAN>connect auxiliary sys/oracle@dbacoe
connected to auxiliary database: DBACOE (not mounted)
RMAN>duplicate target database to dbacoe from active database nofilenamecheck;(ps:之前第一次有运行过一次duplicate,未加nofilenamecheck,报错后加上)
结果在复制oradata文件时报错如下
Starting backup at 20121107 18:22:54
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=178 device type=DISK
allocated channel: ORA_DISK_2
channel ORA_DISK_2: SID=190 device type=DISK
allocated channel: ORA_DISK_3
channel ORA_DISK_3: SID=201 device type=DISK
allocated channel: ORA_DISK_4
channel ORA_DISK_4: SID=2 device type=DISK
channel ORA_DISK_1: starting datafile copy
copying current control file
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 11/07/2012 18:22:55
RMAN-05501: aborting duplication of target database
RMAN-03015: error occurred in stored script Memory Script
RMAN-03009: failure of backup command on ORA_DISK_1 channel at 11/07/2012 18:22:55
ORA-17629: Cannot connect to the remote database server
ORA-17627: ORA-01017: invalid username/password; logon denied
ORA-17629: Cannot connect to the remote database server
oradata文件夹属主信息如下
[oravis@prcsgidb1 oracle]$ ls -ltr
total 20
drwx------ 3 oravis dba 4096 Nov 7 14:54 product
drwxr-xr-x 2 oravis dba 4096 Nov 7 15:41 checkpoints
drwxr-x--- 3 oravis dba 4096 Nov 7 16:12 cfgtoollogs
drwx------ 3 oravis dba 4096 Nov 7 17:11 oradata
drwxrwxr-x 4 oravis dba 4096 Nov 7 17:23 diag
我知道错误非常明显,但我不知道是哪个username/password出错,这之间的过程只有建orapw 文件时才有password设置进入,之前的home也将属主均改为oravis了。找到原因了,还是官方文档看得不仔细
2.At the RMAN prompt, run CONNECT commands for the database instances required for your duplication technique:
◦For active database duplication, you must connect to the source database as TARGET and to the auxiliary instance as AUXILIARY. You must use the same SYSDBA password for both instances and must supply the net service name to connect to the AUXILIARY instance. A recovery catalog connection is optional
唉,把大量时间花在组织提问上了,希望大家引以为戒。有时候,更该去清洗一下思路,重新着手 -
RMAN duplicate from ACTIVE DATABASE
Hi,
I am trying to create a new 11.2.0.1 database by duplicating an existing 11.2.0.1 database using Rman with 'from active database' option.
I have created a password file and listener is configured as well.
The aux database is started in nomount state.
rman
connect target sys/pwd123@SRCDB
connect auxiliary sys/pwd123@AUXDB
duplicate target database to AUXDB
FROM ACTIVE DATABASE;
This fails saying that "ORA-12528: TNS:listener: all appropriate instances are blocking new connections" which is quite normal given that the listener is havig a handle in BLOCKED state for this AUXDB as it is in NOMOUNT state.
Could you please help me on how to proceed?
One option can be to create the controlfile manually and mount the instance before doing the duplicate. I hope Rman can continue from there.
Another option is to go for backup based duplicate.
Is there any other way to go?
Regards,
AravindThis fails saying that "ORA-12528: TNS:listener: all appropriate instances are blocking new connections" which is quite normal given that the listener is havig a handle in BLOCKED state for this AUXDB as it is in NOMOUNT state.
Could you please help me on how to proceed?
One option can be to create the controlfile manually and mount the instance before doing the duplicate. I hope Rman can continue from there.
Another option is to go for backup based duplicate.
Is there any other way to go?
Provide static registration on AUXILIARY side for your auxiliary instance and try again.For example change listener.ora file as
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = AUXDB)
(ORACLE_HOME = <your oracle home>)
(SID_NAME = AUXDB)
LISTENER =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = <auxiliary host/ip>)(PORT = 1521))
)And restart listener on auxiliary host then try again -
Failed RMAN Duplicate from NON-RAC to RAC-ASM
Hi All!
Is it possible to resume a failed RMAN Duplicate? Database is 10gR2.
Please advice...
Regards,
cmadiamOnce you fix the disk group name you can run the duplicatie, it should work fine.
Please refer the link
http://www.oracleracexpert.com/2009/10/migrate-database-to-asm-using-rman.html
Hope this helps,
Regards
http://www.oracleracexpert.com
Duplicate RAC DB using RMAN
http://www.oracleracexpert.com/2009/12/duplicate-rac-database-using-rman.html -
Issue with RMAN DUPLICATE FROM ACTIVE DATABASE....
Hi All,
Not sure if I should continue from a closed thread, so apologies, opening a new one..
I ran the following command:
DUPLICATE TARGET DATABASE TO ' AUX1"
from ACTIVE DATABASE
NOFILENAMECHECK:
So the copy went in fine...so I am confiused now....why when doing a recover, i get the below errors from output:
archived log for thread 1 with sequence 68346 is already on disk as file H:\ORAC
LE_ARCHIVE_LOGS\RBS1\ARCHIVELOG\2013_12_08\O1_MF_1_68346_ARCH_D-RBS_ID-295728924
5_S-68346_T-1_A-780292253_C1OQVOSU_.ARC
archived log for thread 1 with sequence 68347 is already on disk as file H:\ORAC
LE_ARCHIVE_LOGS\RBS1\ARCHIVELOG\2013_12_08\O1_MF_1_68347_ARCH_D-RBS_ID-295728924
5_S-68347_T-1_A-780292253_C3OQVOU1_.ARC
archived log for thread 1 with sequence 68348 is already on disk as file H:\ORAC
LE_ARCHIVE_LOGS\RBS1\ARCHIVELOG\2013_12_08\O1_MF_1_68348_ARCH_D-RBS_ID-295728924
5_S-68348_T-1_A-780292253_C4OQVOU6_.ARC
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 12/08/2013 07:36:04
RMAN-03015: error occurred in stored script Memory Script
RMAN-06053: unable to perform media recovery because of missing log
RMAN-06025: no backup of archived log for thread 1 with sequence 64713 and start
ing SCN of 12728145997 found to restore
RMAN-06025: no backup of archived log for thread 1 with sequence 64712 and start
ing SCN of 12728133322 found to restore
RMAN-06025: no backup of archived log for thread 1 with sequence 64711 and start
ing SCN of 12728121403 found to restore
RMAN-06025: no backup of archived log for thread 1 with sequence 64709 and start
ing SCN of 12727730726 found to restore
RMAN-06025: no backup of archived log for thread 1 with sequence 64708 and start
ing SCN of 12727717143 found to restore
RMAN-06025: no backup of archived log for thread 1 with sequence 64707 and start
ing SCN of 12727701799 found to restore
RMAN-06025: no backup of archived log for thread 1 with sequence 64704 and start
ing SCN of 12726617917 found to restore
RMAN-06025: no backup of archived log for thread 1 with sequence 64703 and start
ing SCN of 12726605080 found to restore
RMAN-06025: no backup of archived log for thread 1 with sequence 64702 and start
No archivelogs were purged or backed up and the current logs were retained....so im somewhat confused....i am not restoring from backup but running active duplicate...
should I re-run the command with:
SET UNTIL SEQUENCE 64713 THREAD 1This fails saying that "ORA-12528: TNS:listener: all appropriate instances are blocking new connections" which is quite normal given that the listener is havig a handle in BLOCKED state for this AUXDB as it is in NOMOUNT state.
Could you please help me on how to proceed?
One option can be to create the controlfile manually and mount the instance before doing the duplicate. I hope Rman can continue from there.
Another option is to go for backup based duplicate.
Is there any other way to go?
Provide static registration on AUXILIARY side for your auxiliary instance and try again.For example change listener.ora file as
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = AUXDB)
(ORACLE_HOME = <your oracle home>)
(SID_NAME = AUXDB)
LISTENER =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = <auxiliary host/ip>)(PORT = 1521))
)And restart listener on auxiliary host then try again -
URGENT: How to run a Java program from a different directory?
Hi.
How do I run a Java program from a directory that the file is not located in? So lets say im in c:\Java. But the file is in c:\Java\abc\efg\.
What would be the command to run the Java file from c:\Java.
I can't remember it and I need it asap.
Cheers.If the class you are trying to run is MyApp.class, try
c:\Java\>java -cp abc\efg MyAppThe actual classpath you specify will depend on whether or not MyApp.class is in a package (I've assumed it isn't) and whether or not any 3rd party jars are involbed (I've assumed not).
Edited by: pbrockway2 on Apr 1, 2008 6:42 PM
The command arguments read as "Run the MyApp class using as a classpath abc\efg relative to here (c:\Java)". -
Rman duplicate from active database slow
Hi,
I am doing a duplicate database from active database, it seems to either slow or hanging. Can someone suggest any tips or pointers to debug this issue?
Source: 11gR2 3-node RAC (only one instance running) on Solaris 10, about 25TB
Target: 1-node, 11gR2 on Solaris 10
Thanks!source:
SID SERIAL# CONTEXT SOFAR TOTALWORK %_complete
1555 7013 1 43730494 142245833 30.74
2332 8079 1 44307262 102713507 43.14
2235 10987 1 47052222 105912610 44.43
2622 5033 1 48406910 86329752 56.07
2040 49651 1 49519038 111411200 44.45
1846 20307 1 43488574 138674977 31.36
1459 26683 1 44936702 272716852 16.48
7 rows selected.
Target: no rows -
Importing class from different directory
Hi, Can anyone tell me how to import a class from a different directory? I have a DGenerator class in ./generator directory.
I have tried Import generator.DGenerator; to use the DGenerator class. However. I got the error:
cannot access generator.DGenerator
bad class file: ./generator/DGenerator.class
class file contains wrong class: DGenerator
Please remove or make sure it appears in the correct subdirectory of the classpath.
Help please.
Thank you!I don't understand why this is a Swing question, but at any rate if you want your DGenerator class to be found in a particular directory, you must do one of two things:
1. Put that directory in your classpath and just refer to the class as DGenerator.
2. Make the class belong to the package "generator". -
Running sql scripts from different directory
Hi
I have sql scripts in different directories as follows:
D:\myapp\sql
- load.sql
- init.sql
D:\myapp\sql\schema
-users.sql
-structure.sql
D:\myapp\sql\populate\
- data1.sql
- data2/sql
load.sql call all the other scripts as below:
@init.sql
@schema\users.sql
@schema\structure.sql
@populate\data1.sql
@populate\data2.sql
All my scripts run correctly when I run load.sql from D:\myapp\sql on comand prompt.
I need a way to run this script from a different directory say D:\ or C:\
I am writing a installer which will execute from a different directory.
Right now I get a file not found error for scripts within schema an populate folder.
Please let me know how can I make this work from a different directory.
Thanks
kelvinHi peter. i think you cannot run files spread across different locations.
--the method which u specified always looks to the defined path -
Rman duplicate on Active dataguard physical standby
In DR site. i have to clone the database from pshysical standby database and clone db will be normal db not standby. Is it possible to do rman duplicate from active dataguard? will it support the duplicate database from active database or i have to take the rman backup of standby database and duplicate from backup piece. please advise
Please check below link
http://odenysenko.wordpress.com/2012/03/26/rman-duplicate-from-active-database-from-standby-ends-with-ora-01671/
Hope this answers all your questions,
Regards,
http://www.oracleracexpert.com
ORA-01031: insufficient privileges
http://www.oracleracexpert.com/2013/02/ora-01031-insufficient-privileges.html
Error while loading shared libraries: libdb.so.2 - After Migrating REHL4 to REHL5
http://www.oracleracexpert.com/2013/01/error-while-loading-shared-libraries.html
Maybe you are looking for
-
How do I update to photoshop camera raw 8.6 in PhotoshopCC
When I try to edit a lightroom file in PhotoshopCC I get a message This version of lightroom may requiire the photoshop camera Raw plugin version 8.6 for full compatibility. Please update using Photoshop help menu. When I use photoshop help and click
-
Hi, I'm trying to develop an application on a Machintosh OSX 10.2.8 machine. I'm having a herrendous time trying to get quicktime to work on it. I've somehow managed t oget 1.3.1 and QTJava.jar to work together but now i need encryption, however that
-
Occasionally the mouse pointer disappears, most frequently when I use Safari. I only use the mouse pad on my Macbook Air. Has anyone encountered this problem? Thank you in advance, M
-
I just bought an external hard drive and i am in the process of using time machine to back up the hard drive. The reason i had to do this was because my hard drive was full and really killing the performance of the computer. So the whole point was to
-
I CAN'T DOWNLOAD APPS BECAUSE THEY WANT ME TO CHOOSE 3 STUPID QUESTIONS TO PROTECT MY ID APPLE
I can't download apps because after I write my password a stupid blu window requests me "to protect my Apple ID" choosing 3 "security questions and answer" . I don' t care about upgrading my security ! I only need to download apps. Furthermore, the