ADMIN USER poly3_admin IDENTIFIED BY oracle
ROLES = (DBA)
FILE_NAME_CONVERT=('/oracle/oradata/POLYTECH/pdbseed','/oracle/oradata/POLYTECH/pd
bpoly3');
$ ?(* @ ADMIN USER ROLES
FILE_NAME_CONVERT$
$ 5*pdbpoly3,$
$ -:OPEN$
$ A&pdbpoly3
$ Bpdbpoly3(
ALTER PLUGGABLE DATABASE pdbpoly3 UNPLUG INTO '/oracle/backup/pdbpoly3.xml';
⇒pdbpoly38+
$ -
DROP PLUGGABLE DATABASE pdbpoly3;
⇒pdbpoly3..
8//oracle/oradata/POLYTECH/pdbpoly31$
$ >
CREATE PLUGGABLE DATABASE pdbpoly3 USING '/oracle/backup/pdbpoly3.xml' NOCOPY
TEMPFILE REUSE;
⇒pdbpoly3:$
2$ (
*)$seed$7
pdbpdb($*
$
A&pdbpoly2
(SYSDBACDB$
$ :READ ONLY$
$ /oracle/oradata/POLYTECH/pdbpoly2_clone*
.$
$ ?(
CREATE PLUGGABLE DATABASE PDBPOLY2_CLONE FROM PDBPOLY2
FILE_NAME_CONVERT= ('/oracle/oradata/POLYTECH/pdbpoly2',
'/oracle/oradata/POLYTECH/pdbpoly2_clone');
$ ;
$ A. test poly2_admin
$
Script de copie automatique
A&-<*$
3Csqlplus /nolog @clone$7
•D(SYSDBA
•5:
•5E:
•5
•5.
•?93,
•;
Gestion des bases en architecture Multi-tenant - 2/2