Skip to Main Content

Database Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

FILE_NAME_CONVERT on pluggable database creation when no common path exists

user2013716Sep 25 2015 — edited Jan 2 2016

Hi,

I've done some 12c database tests without probs (creating cdb, pdb, converting single instance to pdb...).

However, when doing a real database conversion to PDB, I've encountered the following issue: If the original database has no datafile prefix (since it uses OFA, datafiles paths are /u02/..., /u03/..., /u04/...,), what should I put on FILE_NAME_CONVERT clause?

I'm going to use a path prefix for the new PDB, so it should be something like:

CREATE PLUGGABLE DATABASE scista USING '/tmp/example.xml'

COPY

FILE_NAME_CONVERT = ('???','???')

PATH_PREFIX = '/ora_pdb/scista';

Any ideas?

UPDATE: I found out that FILE_NAME_CONVERT accepts multiple path pairs, so fixed it by using FILE_NAME_CONVERT = ('/u02/', '/ora_pdb/scista/u02','/u03/', '/ora_pdb/scista/u03','/u04/', '/ora_pdb/scista/u04','/u05/', '/ora_pdb/scista/u05','/u06/', '/ora_pdb/scista/u06')

Thanks

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 30 2016
Added on Sep 25 2015
2 comments
1,719 views