从 PDB$SEED 数据文件复制数据文件
创建 SYSTEM 和 SYSAUX 表空间
创建完整目录,包括指向 Oracle 提供的对象的元数据
创建临时表空间 TEMP
创建公用用户:
– 超级用户 SYS
– SYSTEM
创建授予本地 PDB_DBA 角色的本地用户 (PDBA)
创建新的默认服务
|
- SQL> CREATE PLUGGABLE DATABASE pdb1
- ADMIN USER admin1 IDENTIFIED BY p1 ROLES=(CONNECT)
- FILE_NAME_CONVERT = ('PDB$SEEDdir', 'PDB1dir');
- SQL> CREATE PLUGGABLE DATABASE pdb2
- ADMIN USER admin2 IDENTIFIED BY p2 ROLES=(CONNECT)
- CREATE_FILE_DEST = 'PDB2dir';
- SQL> CONNECT / AS SYSDBA
- SQL> SELECT * FROM cdb_pdbs;
- SQL> SELECT * FROM cdb_tablespaces;
- SQL> SELECT * FROM cdb_data_files;
- SQL> CONNECT sys@pdb1 AS SYSDBA
- SQL> CONNECT admin1@pdb1
- SQL> CREATE PLUGGABLE DATABASE pdb1
- ADMIN USER pdb1_admin IDENTIFIED BY p1
- ROLES=(CONNECT);
- SQL> CREATE PLUGGABLE DATABASE pdb2
- ADMIN USER pdb2_admin IDENTIFIED BY p2
- ROLES=(CONNECT);