source db:STCSTEST
auxiliary db:ORA10
1. on test database create pfile and password file
add parameter on test pfile
db_file_name_convert
log_file_name_convert
2. configure TNS and listener.ora
3. using rman backup primary database
4. startup test database
startup force nomount;
5. primary database connect to test database
export ORACLE_SID=STCSTEST
rman target / auxiliary sys/manager@ORA10 (备库的net NAME)
RMAN> run{
Allocate auxiliary channel c1 device type disk;
###set newname for datafile 24 to ‘/XXXXX;
Duplicate target database to ORA10; (备库 database name)
Release channel c1;}
Allocate auxiliary channel c1 device type disk;
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/24849178/viewspace-710105/ ,如需转载,请注明出处,否则将追究法律责任。