One of the fundamental questions for the Oracle DBA who is exploring Oracle 12c new multi-tenant architecture is how to create a pluggable database.
here i am exploring 2 methods……Let us start.
Method 1: using SQL Developer
After connecting to the database, you need to add the “DBA” option.
In sql developer go to “view”——–> then choose “DBA.
Then add the already defined database connection:
And choose “OK”
Then, right click on “Container Database” and choose “Create_Pluggable Database” option
The associated SQL definition output:
CREATE PLUGGABLE DATABASE DUMMY_PDB ADMIN USER DUMMY_ADMIN IDENTIFIED BY dummy55
When I hit “Apply”, I received the error ORA-65113: value of MAX_PDB_STORAGE property for the PDB is too low
When I increased the value to 900 MB, the execution was successful
You will find that the new pluggable database has been created successfully:
Method 2: using Traditional SQL Statement
—Creating Pluggable database from “seed”
SQL> CREATE PLUGGABLE DATABASE sales_pdb
ADMIN USER dbapower IDENTIFIED BY fofo431
ROLES = (dba)
DEFAULT TABLESPACE TS_SALES_DATA_01
DATAFILE ‘/oracle/DB45/sapdata1/sales01.dbf’ SIZE 100M AUTOEXTEND OFF
FILE_NAME_CONVERT = (‘/oracle/DB45//DB45/pdbseed/’,
STORAGE (MAXSIZE 1G)
PATH_PREFIX = ‘/oracle/DB45/DB45//salespdb/’;