set newname for database;
RMAN supports the following commands, listed in order of precedence:
SET NEWNAME FOR DATAFILE and SET NEWNAME FOR TEMPFILE
SET NEWNAME FOR TABLESPACE
SET NEWNAME FOR DATABASESubstitution Variables for the SET NEWNAME Command
| Variable | Description |
|---|---|
| Specifies the file name stripped of directory paths. For example, if a data file is named |
| Specifies the absolute file number of the data file for which the new name is generated. For example, if data file 2 is duplicated, then |
| Specifies the DBID. |
| Specifies the tablespace name. |
| Specifies the following format: |
Use one of the following techniques to provide alternate names for non-OMF or non-ASM duplicate database files:
用法1:
run
{
set newname for database to '/oracle2/database/%b';
duplicate database 'db12' to 'dup'
logfile group 1 ('/oracle2/database/logs/r1.f','/ oracle2/database/logs/r2.f') size 4m reuse,
group 2 ('/ oracle2/database/logs/r3.f','/oracle2/database/logs/r4.f') size 4m reuse
backup location '/backups/db_files';
}「喜欢这篇文章,您的关注和赞赏是给作者最好的鼓励」
关注作者
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。




