# OMF方式创建数据库export ORACLE_SID=orcl1sqlplus / as sysdbastartup nomountCREATE DATABASE orcl1 USER SYS IDENTIFIED BY oracle USER SYSTEM IDENTIFIED BY oracle EXTENT MANAGEMENT LOCAL DEFAULT TABLESPACE users DEFAULT TEMPORARY TABLESPACE temp UNDO TABLESPACE undotbs1 ENABLE PLUGGABLE DATABASE SEED SYSTEM DATAFILES SIZE 125M AUTOEXTEND ON NEXT 10M MAXSIZE UNLIMITED SYSAUX DATAFILES SIZE 100M;show con_nameCON_NAME------------------------------CDB$ROOTshow pdbs; CON_ID CON_NAME OPEN MODE RESTRICTED---------- ------------------------------ ---------- ----------2 PDB$SEED READ ONLY NO# 非OMF方式创建数据库CREATE DATABASE newcdb USER SYS IDENTIFIED BY sys_password USER SYSTEM IDENTIFIED BY system_password LOGFILE GROUP 1 ('/u01/logs/my/redo01a.log','/u02/logs/my/redo01b.log') SIZE 100M BLOCKSIZE 512, GROUP 2 ('/u01/logs/my/redo02a.log','/u02/logs/my/redo02b.log') SIZE 100M BLOCKSIZE 512, GROUP 3 ('/u01/logs/my/redo03a.log','/u02/logs/my/redo03b.log') SIZE 100M BLOCKSIZE 512 MAXLOGHISTORY 1 MAXLOGFILES 16 MAXLOGMEMBERS 3 MAXDATAFILES 1024 CHARACTER SET AL32UTF8 NATIONAL CHARACTER SET AL16UTF16 EXTENT MANAGEMENT LOCAL DATAFILE '/u01/app/oracle/oradata/newcdb/system01.dbf' SIZE 700M REUSE AUTOEXTEND ON NEXT 10240K MAXSIZE UNLIMITED SYSAUX DATAFILE '/u01/app/oracle/oradata/newcdb/sysaux01.dbf' SIZE 550M REUSE AUTOEXTEND ON NEXT 10240K MAXSIZE UNLIMITED DEFAULT TABLESPACE deftbs DATAFILE '/u01/app/oracle/oradata/newcdb/deftbs01.dbf' SIZE 500M REUSE AUTOEXTEND ON MAXSIZE UNLIMITED DEFAULT TEMPORARY TABLESPACE tempts1 TEMPFILE '/u01/app/oracle/oradata/newcdb/temp01.dbf' SIZE 20M REUSE AUTOEXTEND ON NEXT 640K MAXSIZE UNLIMITED UNDO TABLESPACE undotbs1 DATAFILE '/u01/app/oracle/oradata/newcdb/undotbs01.dbf' SIZE 200M REUSE AUTOEXTEND ON NEXT 5120K MAXSIZE UNLIMITED ENABLE PLUGGABLE DATABASE SEED FILE_NAME_CONVERT = ('/u01/app/oracle/oradata/newcdb/','/u01/app/oracle/oradata/pdbseed/') SYSTEM DATAFILES SIZE 125M AUTOEXTEND ON NEXT 10M MAXSIZE UNLIMITED SYSAUX DATAFILES SIZE 100M USER_DATA TABLESPACE usertbs DATAFILE '/u01/app/oracle/oradata/pdbseed/usertbs01.dbf' SIZE 200M REUSE AUTOEXTEND ON MAXSIZE UNLIMITED;
创建后的补充工作
cat $ORACLE_HOME/rdbms/admin/catcdb.sqlvi /etc/oratab#-----------------------------------------------------------------------------------------orcl1:/u01/app/oracle/product/12.2.0/db_1:Y#-----------------------------------------------------------------------------------------export ORACLE_SID=orcl1export PERL5LIB=$ORACLE_HOME/rdbms/admin:$PERL5LIBexport PATH=$ORACLE_HOME/bin:$ORACLE_HOME/perl/bin:$PATHcd $ORACLE_HOME/perl/lib/5.22.0/x86_64-linux-thread-multi/Hash# 建软链接,否则会出现找不到文件提示ln -s Util.pm util.pmsqlplus / as sysdba@?/rdbms/admin/catcdb.sql#-----------------------------------------------------------------------------------------......SQL> host perl -I &&rdbms_admin &&rdbms_admin_catcdb --logDirectory &&1 --logFilename &&2Enter value for1: /home/oracle# 输入日志目录Enter value for2: /home/oracle/a.log # 输入日志文件名字Enter new password for SYS: oracleEnter new password for SYSTEM: oracleEnter temporary tablespace name: tempNo options to container mapping specified, no options will be installed in any containerscatcon: ALL catcon-related output will be written to [/home/oracle/catalog_catcon_339.lst]catcon: See [/home/oracle/catalog*.log] files for output generated by scriptscatcon: See [/home/oracle/catalog_*.lst] files for spool files, if any...catcon: ALL catcon-related output will be written to [/home/oracle/utlrp_catcon_2672.lst]catcon: See [/home/oracle/utlrp*.log] files for output generated by scriptscatcon: See [/home/oracle/utlrp_*.lst] files for spool files, if anycatcon.pl: completed successfully#-----------------------------------------------------------------------------------------create spfile from pfile;
DBCA创建CDB
dbca -silent -createDatabase -templateName $ORACLE_HOME/assistants/dbca/templates/General_Purpose.dbc \-gdbname orcl2 -sid orcl2 -characterSet ZHS16GBK -sysPassword oracle -systemPassword oracle \-createAsContainerDatabase true#-----------------------------------------------------------------------------------------[WARNING] [DBT-06208] The 'SYS' password entered does not conform to the Oracle recommended standards. CAUSE: a. Oracle recommends that the password entered should be at least 8 characters in length, contain at least 1 uppercase character, 1 lower case character and1 digit [0-9].b.The password entered is a keyword that Oracle does not recommend to be used as password ACTION: Specify a strong password. If required refer Oracle documentation for guidelines.[WARNING] [DBT-06208] The 'SYSTEM' password entered does not conform to the Oracle recommended standards. CAUSE: a. Oracle recommends that the password entered should be at least 8 characters in length, contain at least 1 uppercase character, 1 lower case character and1 digit [0-9].b.The password entered is a keyword that Oracle does not recommend to be used as password ACTION: Specify a strong password. If required refer Oracle documentation for guidelines.Copying database files1% complete2% complete18% complete33% completeCreating and starting Oracle instance35% complete40% complete41% complete42% complete46% complete51% complete52% complete53% complete55% completeCompleting Database Creation56% complete58% complete59% complete62% complete65% complete66% completeExecuting Post Configuration Actions100% completeLook at the log file "/u01/app/oracle/cfgtoollogs/dbca/orcl2/orcl2.log"for further details#-----------------------------------------------------------------------------------------
创建3个PDB,用多种方法实现
通过种子容器创建pdb
export ORACLE_SID=orcl2sqlplus / as sysdba# 需要指定文件存放位置,可通过如下两种方式create pluggable database pdb1 admin user pdb1 identified by oracle file_name_convert=('/u01/app/oracle/oradata/orcl2/pdbseed','/u01/app/oracle/oradata/orcl2/pdb1');# 或者修改pdb_file_name_convert参数alter session set pdb_file_name_convert='/u01/app/oracle/oradata/orcl2/pdbseed','/u01/app/oracle/oradata/orcl2/pdb2';create pluggable database pdb2 admin user pdb2 identified by oracle;
克隆一个本地PDB
alter pluggable database pdb2 open;create pluggable database pdb3 from pdb2 file_name_convert=('/u01/app/oracle/oradata/orcl2/pdb2','/u01/app/oracle/oradata/orcl2/pdb3');#查看PDBshow pdbs; CON_ID CON_NAME OPEN MODE RESTRICTED---------- ------------------------------ ---------- ----------2 PDB$SEED READ ONLY NO3 PDB1 READ WRITE NO4 PDB2 READ WRITE NO6 PDB3 MOUNTED
# 只生成建库脚本dbca -silent -templateName $ORACLE_HOME/assistants/dbca/templates/General_Purpose.dbc -gdbname orcl2 -sid orcl2 \-characterSet ZHS16GBK -sysPassword oracle -systemPassword oracle -createAsContainerDatabase true -generateScripts#-----------------------------------------------------------------------------------------Database creation script generation1% complete2% complete18% complete33% complete35% complete40% complete41% complete42% complete46% complete51% complete52% complete55% complete56% complete60% complete63% complete66% complete100% completeLook at the log file "/u01/app/oracle/admin/orcl2/scripts/orcl2.log"for further details.#-----------------------------------------------------------------------------------------# 查看分析建库脚本cd /u01/app/oracle/admin/orcl2/scriptsll#-----------------------------------------------------------------------------------------total 18348-rw-r----- 1 oracle oinstall 1891 May 19 08:59 cloneDBCreation.sql-rw-r----- 1 oracle oinstall 833 May 19 08:59 CloneRmanRestore.sql-rw-r----- 1 oracle oinstall 2227 May 19 08:59 init.ora-rw-r----- 1 oracle oinstall 2238 May 19 08:59 initorcl2TempOMF.ora-rw-r----- 1 oracle oinstall 2343 May 19 08:59 initorcl2Temp.ora-rw-r----- 1 oracle oinstall 548 May 19 08:59 lockAccount.sql-rw-r----- 1 oracle oinstall 521 May 19 08:59 orcl2.log-rwxr-xr-x1 oracle oinstall 785 May 19 08:59 orcl2.sh-rwxr-xr-x1 oracle oinstall 612 May 19 08:59 orcl2.sql-rw-r----- 1 oracle oinstall 3635 May 19 08:59 plug_PDBSeed.sql-rw-r----- 1 oracle oinstall 810 May 19 08:59 postDBCreation.sql-rw-r----- 1 oracle oinstall 1852 May 19 08:59 postScripts.sql-rw-r----- 1 oracle oinstall 101 May 19 08:59 rmanPDBCleanUpDatafiles.sql-rw-r----- 1 oracle oinstall 377 May 19 08:59 rmanPDBRestoreDatafiles.sql-rwxr-xr-x1 oracle oinstall 560 May 19 08:59 rmanRestoreDatafiles.sql-rw-r----- 1 oracle oinstall 18726912 May 19 08:59 tempControl.ctl#-----------------------------------------------------------------------------------------cat orcl2.sh#-----------------------------------------------------------------------------------------#!/bin/shOLD_UMASK=`umask`umask0027mkdir -p /u01/app/oraclemkdir -p /u01/app/oracle/admin/orcl2/adumpmkdir -p /u01/app/oracle/admin/orcl2/dpdumpmkdir -p /u01/app/oracle/admin/orcl2/pfilemkdir -p /u01/app/oracle/auditmkdir -p /u01/app/oracle/cfgtoollogs/dbca/orcl2mkdir -p /u01/app/oracle/oradata/orcl2mkdir -p /u01/app/oracle/oradata/orcl2/pdbseedmkdir -p /u01/app/oracle/product/12.2.0/db_1/dbsumask ${OLD_UMASK}PERL5LIB=$ORACLE_HOME/rdbms/admin:$PERL5LIB; export PERL5LIBORACLE_SID=orcl2; export ORACLE_SIDPATH=$ORACLE_HOME/bin:$ORACLE_HOME/perl/bin:$PATH; export PATHecho You should Add this entry in the /etc/oratab: orcl2:/u01/app/oracle/product/12.2.0/db_1:Y/u01/app/oracle/product/12.2.0/db_1/bin/sqlplus /nolog @/u01/app/oracle/admin/orcl2/scripts/orcl2.sql#-----------------------------------------------------------------------------------------cat orcl2.sql#-----------------------------------------------------------------------------------------set verify offACCEPT sysPassword CHAR PROMPT 'Enter new password for SYS: ' HIDEACCEPT systemPassword CHAR PROMPT 'Enter new password for SYSTEM: ' HIDEhost /u01/app/oracle/product/12.2.0/db_1/bin/orapwd file=/u01/app/oracle/product/12.2.0/db_1/dbs/orapworcl2 force=yformat=12@/u01/app/oracle/admin/orcl2/scripts/CloneRmanRestore.sql@/u01/app/oracle/admin/orcl2/scripts/cloneDBCreation.sql@/u01/app/oracle/admin/orcl2/scripts/plug_PDBSeed.sql@/u01/app/oracle/admin/orcl2/scripts/postScripts.sql@/u01/app/oracle/admin/orcl2/scripts/lockAccount.sql@/u01/app/oracle/admin/orcl2/scripts/postDBCreation.sql#-----------------------------------------------------------------------------------------
通过控制文件查看cdb的结构
alterdatabasebackupcontrolfiletotrace;col VALUE for a80select INST_ID,VALUEfrom v$diag_info wherename='Default Trace File'; INST_ID VALUE---------- -------------------------------------------------------------------------------- 1 /u01/app/oracle/diag/rdbms/orcl2/orcl2/trace/orcl2_ora_16951.trc
查看生成的Trace File
cat /u01/app/oracle/diag/rdbms/orcl2/orcl2/trace/orcl2_ora_16951.trc#-----------------------------------------------------------------------------------------Trace file /u01/app/oracle/diag/rdbms/orcl2/orcl2/trace/orcl2_ora_16951.trcOracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit ProductionBuild label: RDBMS_12.2.0.1.0_LINUX.X64_170125ORACLE_HOME: /u01/app/oracle/product/12.2.0/db_1System name: LinuxNode name: orcl12Release: 4.1.12-61.1.18.el7uek.x86_64Version: #2 SMP Fri Nov 4 15:48:30 PDT 2016Machine: x86_64Instance name: orcl2Redo thread mounted by this instance: 1Oracle process number: 27Unix process pid: 16951, image: oracle@orcl12 (TNS V1-V3)*** 2017-05-19T16:19:27.267587+08:00 (PDB4(5))*** SESSION ID:(397.57468) 2017-05-19T16:19:27.267655+08:00*** CLIENT ID:() 2017-05-19T16:19:27.267666+08:00*** SERVICE NAME:(SYS$USERS) 2017-05-19T16:19:27.267675+08:00*** MODULE NAME:(sqlplus@orcl12 (TNS V1-V3)) 2017-05-19T16:19:27.267685+08:00*** ACTION NAME:() 2017-05-19T16:19:27.267694+08:00*** CLIENT DRIVER:(SQL*PLUS) 2017-05-19T16:19:27.267703+08:00*** CONTAINER ID:(5) 2017-05-19T16:19:27.267712+08:00JIT: pid 16951 requesting stop*** 2017-05-19T16:21:04.923126+08:00 (CDB$ROOT(1))-- The following are current System-scope REDO Log Archival related-- parameters and can be included in the database initialization file.---- LOG_ARCHIVE_DEST=''-- LOG_ARCHIVE_DUPLEX_DEST=''---- LOG_ARCHIVE_FORMAT=%t_%s_%r.dbf---- DB_UNIQUE_NAME="orcl2"---- LOG_ARCHIVE_CONFIG='SEND, RECEIVE, NODG_CONFIG'-- LOG_ARCHIVE_MAX_PROCESSES=4-- STANDBY_FILE_MANAGEMENT=MANUAL-- STANDBY_ARCHIVE_DEST=?#/dbs/arch-- FAL_CLIENT=''-- FAL_SERVER=''---- LOG_ARCHIVE_DEST_1='LOCATION=/u01/app/oracle/product/12.2.0/db_1/dbs/arch'-- LOG_ARCHIVE_DEST_1='MANDATORY NOREOPEN NODELAY'-- LOG_ARCHIVE_DEST_1='ARCH NOAFFIRM NOVERIFY SYNC'-- LOG_ARCHIVE_DEST_1='NOREGISTER NOALTERNATE NODEPENDENCY'-- LOG_ARCHIVE_DEST_1='NOMAX_FAILURE NOQUOTA_SIZE NOQUOTA_USED NODB_UNIQUE_NAME'-- LOG_ARCHIVE_DEST_1='VALID_FOR=(PRIMARY_ROLE,ONLINE_LOGFILES)'-- LOG_ARCHIVE_DEST_STATE_1=ENABLE---- Below are two sets of SQL statements, each of which creates a new-- control file and uses it to open the database. The first set opens-- the database with the NORESETLOGS option and should be used only if-- the current versions of all online logs are available. The second-- set opens the database with the RESETLOGS option and should be used-- if online logs are unavailable.-- The appropriate set of statements can be copied from the trace into-- a script file, edited as necessary, and executed when there is a-- need to re-create the control file.---- Set #1. NORESETLOGS case---- The following commands will create a new control file anduse it-- to open the database.-- Data used by Recovery Manager will be lost.-- Additional logs may be required for media recovery of offline-- Use this only if the current versions of all online logs are-- available.-- After mounting the created controlfile, the following SQL-- statement will place the database in the appropriate-- protection mode:-- ALTER DATABASE SET STANDBY DATABASE TO MAXIMIZE PERFORMANCESTARTUP NOMOUNTCREATE CONTROLFILE REUSE DATABASE "ORCL2" NORESETLOGS NOARCHIVELOG MAXLOGFILES 16 MAXLOGMEMBERS 3 MAXDATAFILES 1024 MAXINSTANCES 8 MAXLOGHISTORY 292LOGFILE GROUP 1'/u01/app/oracle/oradata/orcl2/redo01.log' SIZE 200M BLOCKSIZE 512, GROUP 2'/u01/app/oracle/oradata/orcl2/redo02.log' SIZE 200M BLOCKSIZE 512, GROUP 3'/u01/app/oracle/oradata/orcl2/redo03.log' SIZE 200M BLOCKSIZE 512-- STANDBY LOGFILEDATAFILE'/u01/app/oracle/oradata/orcl2/system01.dbf','/u01/app/oracle/oradata/orcl2/sysaux01.dbf','/u01/app/oracle/oradata/orcl2/undotbs01.dbf','/u01/app/oracle/oradata/orcl2/pdbseed/system01.dbf','/u01/app/oracle/oradata/orcl2/pdbseed/sysaux01.dbf','/u01/app/oracle/oradata/orcl2/users01.dbf','/u01/app/oracle/oradata/orcl2/pdbseed/undotbs01.dbf','/u01/app/oracle/oradata/orcl2/pdb1/system01.dbf','/u01/app/oracle/oradata/orcl2/pdb1/sysaux01.dbf','/u01/app/oracle/oradata/orcl2/pdb1/undotbs01.dbf','/u01/app/oracle/oradata/orcl2/pdb2/system01.dbf','/u01/app/oracle/oradata/orcl2/pdb2/sysaux01.dbf','/u01/app/oracle/oradata/orcl2/pdb2/undotbs01.dbf','/u01/app/oracle/oradata/orcl2/pdb3/system01.dbf','/u01/app/oracle/oradata/orcl2/pdb3/sysaux01.dbf','/u01/app/oracle/oradata/orcl2/pdb3/undotbs01.dbf'CHARACTER SET ZHS16GBK;-- Commands to re-create incarnation table-- Below log names MUST be changed to existing filenames on-- disk. Any one log file from each branch can be used to-- re-create incarnation records.-- ALTER DATABASE REGISTER LOGFILE '/u01/app/oracle/product/12.2.0/db_1/dbs/arch1_1_934293149.dbf';-- ALTER DATABASE REGISTER LOGFILE '/u01/app/oracle/product/12.2.0/db_1/dbs/arch1_1_944407156.dbf';-- Recovery is required if any of the datafiles are restored backups,-- orif the lastshutdown was not normal or immediate.RECOVER DATABASE-- Database can now be opened normally.ALTER DATABASE OPEN;-- Open all the PDBs.ALTER PLUGGABLE DATABASE ALL OPEN;-- Commands to add tempfiles to temporary tablespaces.-- Online tempfiles have complete space information.-- Other tempfiles may require adjustment.ALTER TABLESPACE TEMP ADD TEMPFILE '/u01/app/oracle/oradata/orcl2/temp01.dbf' SIZE 34603008 REUSE AUTOEXTEND ON NEXT 655360 MAXSIZE 32767M;ALTER SESSION SET CONTAINER = PDB$SEED;ALTER TABLESPACE TEMP ADD TEMPFILE '/u01/app/oracle/oradata/orcl2/pdbseed/temp012017-05-19_15-19-57-248-PM.dbf' SIZE 67108864 REUSE AUTOEXTEND ON NEXT 655360 MAXSIZE 32767M;ALTER SESSION SET CONTAINER = PDB1;ALTER TABLESPACE TEMP ADD TEMPFILE '/u01/app/oracle/oradata/orcl2/pdb1/temp012017-05-19_15-19-57-248-PM.dbf' SIZE 67108864 REUSE AUTOEXTEND ON NEXT 655360 MAXSIZE 32767M;ALTER SESSION SET CONTAINER = PDB2;ALTER TABLESPACE TEMP ADD TEMPFILE '/u01/app/oracle/oradata/orcl2/pdb2/temp012017-05-19_15-19-57-248-PM.dbf' REUSE;ALTER SESSION SET CONTAINER = PDB3;ALTER TABLESPACE TEMP ADD TEMPFILE '/u01/app/oracle/oradata/orcl2/pdb3/temp012017-05-19_15-19-57-248-PM.dbf' SIZE 67108864 REUSE AUTOEXTEND ON NEXT 655360 MAXSIZE 32767M;ALTER SESSION SET CONTAINER = CDB$ROOT;-- End of tempfile additions.---- Set #2. RESETLOGS case---- The following commands will create a new control file anduse it-- to open the database.-- Data used by Recovery Manager will be lost.-- The contents of online logs will be lost and all backups will-- be invalidated. Use this only if online logs are damaged.-- After mounting the created controlfile, the following SQL-- statement will place the database in the appropriate-- protection mode:-- ALTER DATABASE SET STANDBY DATABASE TO MAXIMIZE PERFORMANCESTARTUP NOMOUNTCREATE CONTROLFILE REUSE DATABASE "ORCL2" RESETLOGS NOARCHIVELOG MAXLOGFILES 16 MAXLOGMEMBERS 3 MAXDATAFILES 1024 MAXINSTANCES 8 MAXLOGHISTORY 292LOGFILE GROUP 1'/u01/app/oracle/oradata/orcl2/redo01.log' SIZE 200M BLOCKSIZE 512, GROUP 2'/u01/app/oracle/oradata/orcl2/redo02.log' SIZE 200M BLOCKSIZE 512, GROUP 3'/u01/app/oracle/oradata/orcl2/redo03.log' SIZE 200M BLOCKSIZE 512-- STANDBY LOGFILEDATAFILE'/u01/app/oracle/oradata/orcl2/system01.dbf','/u01/app/oracle/oradata/orcl2/sysaux01.dbf','/u01/app/oracle/oradata/orcl2/undotbs01.dbf','/u01/app/oracle/oradata/orcl2/pdbseed/system01.dbf','/u01/app/oracle/oradata/orcl2/pdbseed/sysaux01.dbf','/u01/app/oracle/oradata/orcl2/users01.dbf','/u01/app/oracle/oradata/orcl2/pdbseed/undotbs01.dbf','/u01/app/oracle/oradata/orcl2/pdb1/system01.dbf','/u01/app/oracle/oradata/orcl2/pdb1/sysaux01.dbf','/u01/app/oracle/oradata/orcl2/pdb1/undotbs01.dbf','/u01/app/oracle/oradata/orcl2/pdb2/system01.dbf','/u01/app/oracle/oradata/orcl2/pdb2/sysaux01.dbf','/u01/app/oracle/oradata/orcl2/pdb2/undotbs01.dbf','/u01/app/oracle/oradata/orcl2/pdb3/system01.dbf','/u01/app/oracle/oradata/orcl2/pdb3/sysaux01.dbf','/u01/app/oracle/oradata/orcl2/pdb3/undotbs01.dbf'CHARACTER SET ZHS16GBK;-- Commands to re-create incarnation table-- Below log names MUST be changed to existing filenames on-- disk. Any one log file from each branch can be used to-- re-create incarnation records.-- ALTER DATABASE REGISTER LOGFILE '/u01/app/oracle/product/12.2.0/db_1/dbs/arch1_1_934293149.dbf';-- ALTER DATABASE REGISTER LOGFILE '/u01/app/oracle/product/12.2.0/db_1/dbs/arch1_1_944407156.dbf';-- Recovery is required if any of the datafiles are restored backups,-- orif the lastshutdown was not normal or immediate.RECOVER DATABASE USING BACKUP CONTROLFILE-- Database can now be opened zeroing the online logs.ALTER DATABASE OPEN RESETLOGS;-- Open all the PDBs.ALTER PLUGGABLE DATABASE ALL OPEN;-- Commands to add tempfiles to temporary tablespaces.-- Online tempfiles have complete space information.-- Other tempfiles may require adjustment.ALTER TABLESPACE TEMP ADD TEMPFILE '/u01/app/oracle/oradata/orcl2/temp01.dbf' SIZE 34603008 REUSE AUTOEXTEND ON NEXT 655360 MAXSIZE 32767M;ALTER SESSION SET CONTAINER = PDB$SEED;ALTER TABLESPACE TEMP ADD TEMPFILE '/u01/app/oracle/oradata/orcl2/pdbseed/temp012017-05-19_15-19-57-248-PM.dbf' SIZE 67108864 REUSE AUTOEXTEND ON NEXT 655360 MAXSIZE 32767M;ALTER SESSION SET CONTAINER = PDB1;ALTER TABLESPACE TEMP ADD TEMPFILE '/u01/app/oracle/oradata/orcl2/pdb1/temp012017-05-19_15-19-57-248-PM.dbf' SIZE 67108864 REUSE AUTOEXTEND ON NEXT 655360 MAXSIZE 32767M;ALTER SESSION SET CONTAINER = PDB2;ALTER TABLESPACE TEMP ADD TEMPFILE '/u01/app/oracle/oradata/orcl2/pdb2/temp012017-05-19_15-19-57-248-PM.dbf' REUSE;ALTER SESSION SET CONTAINER = PDB3;ALTER TABLESPACE TEMP ADD TEMPFILE '/u01/app/oracle/oradata/orcl2/pdb3/temp012017-05-19_15-19-57-248-PM.dbf' SIZE 67108864 REUSE AUTOEXTEND ON NEXT 655360 MAXSIZE 32767M;ALTER SESSION SET CONTAINER = CDB$ROOT;-- End of tempfile additions.--#-----------------------------------------------------------------------------------------