|
沙发
楼主 |
发表于 2017-8-29 17:41:50
|
只看该作者
如果想使用热克隆方式创建pdb且保证数据文件存放在不同位置,创建pdb的时候指定file_name_convert参数即可
例如:
SQL> create pluggable database orclpdb3 from orclpdb file_name_convert=(
2 '+DGDATA/SZTECH/57C9813E82EC6BCFE05384E5A8C01DEE/DATAFILE/system.318.953216303','+DGDATA/SZTECH/ORCLPDB3/system01.dbf',
3 '+DGDATA/SZTECH/57C9813E82EC6BCFE05384E5A8C01DEE/DATAFILE/sysaux.319.953216305','+DGDATA/SZTECH/ORCLPDB3/sysaux01.dbf',
4 '+DGDATA/SZTECH/57C9813E82EC6BCFE05384E5A8C01DEE/DATAFILE/undotbs1.320.953216303','+DGDATA/SZTECH/ORCLPDB3/undotbs01.dbf',
5 '+DGDATA/SZTECH/57C9813E82EC6BCFE05384E5A8C01DEE/DATAFILE/users.256.953219839','+DGDATA/SZTECH/ORCLPDB3/users01.dbf',
6 '+DGDATA/SZTECH/57C9813E82EC6BCFE05384E5A8C01DEE/DATAFILE/test.317.953219929','+DGDATA/SZTECH/ORCLPDB3/test01.dbf',
7 '+DGDATA/SZTECH/57C9813E82EC6BCFE05384E5A8C01DEE/TEMPFILE/temp.321.953216325','+DGDATA/SZTECH/ORCLPDB3/temp01.dbf');
Pluggable database created.
SQL> |
|