Question: What do
I do to manually create a cdb from the command line? I
know that Oracle recommends using DBCA to create a cdb, but
I need to do a manual create of a cdb. What are the
steps to manually create a cdb from the SQL*Plus command
Answer: To manually create a cdb
you need to perform these steps.
1 - Parameter: Set the init.ora
2 - Create the database: You can
run the following create statement for a cdb, making sure to
include the "enable pluggable database" syntax:
CREATE DATABASE ZWC
CHARACTER SET ZHS16GBK
CHARACTER SET AL16UTF16
'/12cfile/ZWC/system01.dbf' SIZE 500M
EXTENT MANAGEMENT LOCAL
UNDO TABLESPACE undotbs1 DATAFILE
DEFAULT TEMPORARY TABLESPACE TEMP
DEFAULT TABLESPACE USERS DATAFILE
LOGFILE GROUP 1
USER sys IDENTIFIED BY oracle
USER system IDENTIFIED BY oracle
USER_DATA TABLESPACE userstbs
ENABLE PLUGGABLE DATABASE
SEED FILE_NAME_CONVERT =
3 - Catalog: Run the catalog
script (catcdb.sql) after the create database statement. The Oracle
"When you use the CREATE DATABASE
statement to create a CDB, you must complete additional
actions before you have an operational CDB.
These actions include building views
on the data dictionary tables and installing standard PL/SQL
packages in the root.
You perform these actions by running
the supplied "catcdb.sql" script."
Important Note: You must have have
the perl binaries in your path when you run catcdb.sql. Else
you will get the
After doing this PATH change, you run catcdb.sql and then
you will be able to create the pluggable database
Oracle Training from Don Burleson
The best on site
training classes" are just a phone call away! You can get personalized Oracle training by Donald Burleson, right at your shop!
Burleson is the American Team
documentation was created as a support and Oracle training reference for use by our
DBA performance tuning consulting professionals.
Feel free to ask questions on our
considering using the services of an Oracle support expert should
independently investigate their credentials and experience, and not rely on
advertisements and self-proclaimed expertise. All legitimate Oracle experts
Oracle technology is changing and we
strive to update our BC Oracle support information. If you find an error
or have a suggestion for improving our content, we would appreciate your
and include the URL for the page.
Copyright © 1996 - 2020
All rights reserved by
is the registered trademark of Oracle Corporation.