Oracle 12C Multitenant - setup CI Database and CI Database User
Create directory for tablespace on DB server:
(Delete if already there)
mkdir C:\oracle\products\oracledb_12_102\oradata\orcl\PORTABLE\CITESTDB_001\
Run as SYS user with SYSDBA role.
-
create pluggable database "CITESTDB_001"
-
admin user "CIDBADMIN" identified by "CIDBADMIN"
-
file_name_convert = (
-
'C:\ORACLE\PRODUCTS\ORACLEDB_12_102\ORADATA\ORCL\PDBSEED\', 'C:\oracle\products\oracledb_12_102\oradata\orcl\PORTABLE\CITESTDB_001\'
-
)
-
;
-
-
alter pluggable database "CITESTDB_001" open read write;
-
-
alter session set container="CITESTDB_001";
-
grant sysdba to CIDBADMIN;
-
-
GRANT create user to CIDBADMIN WITH ADMIN OPTION;
-
GRANT alter user to CIDBADMIN WITH ADMIN OPTION;
-
GRANT drop user to CIDBADMIN WITH ADMIN OPTION;
-
GRANT create session TO CIDBADMIN WITH ADMIN OPTION;
-
GRANT alter session TO CIDBADMIN WITH ADMIN OPTION;
-
GRANT alter system TO CIDBADMIN WITH ADMIN OPTION;
-
-
GRANT create any table TO CIDBADMIN WITH ADMIN OPTION;
-
GRANT alter any table TO CIDBADMIN WITH ADMIN OPTION;
-
GRANT drop any table TO CIDBADMIN WITH ADMIN OPTION;
-
GRANT select any table TO CIDBADMIN WITH ADMIN OPTION;
-
GRANT insert any table TO CIDBADMIN WITH ADMIN OPTION;
-
GRANT delete any table TO CIDBADMIN WITH ADMIN OPTION;
-
GRANT create any index TO CIDBADMIN WITH ADMIN OPTION;
-
GRANT alter any index TO CIDBADMIN WITH ADMIN OPTION;
-
GRANT drop any index TO CIDBADMIN WITH ADMIN OPTION;
-
-
GRANT create any view TO CIDBADMIN WITH ADMIN OPTION;
-
GRANT drop any view TO CIDBADMIN WITH ADMIN OPTION;
-
GRANT create any materialized view TO CIDBADMIN WITH ADMIN OPTION;
-
GRANT drop any materialized view TO CIDBADMIN WITH ADMIN OPTION;
-
GRANT create any trigger TO CIDBADMIN WITH ADMIN OPTION;
-
GRANT alter any trigger TO CIDBADMIN WITH ADMIN OPTION;
-
GRANT drop any trigger TO CIDBADMIN WITH ADMIN OPTION;
-
GRANT create any procedure TO CIDBADMIN WITH ADMIN OPTION;
-
GRANT alter any procedure TO CIDBADMIN WITH ADMIN OPTION;
-
GRANT drop any procedure TO CIDBADMIN WITH ADMIN OPTION;
-
GRANT create any sequence TO CIDBADMIN WITH ADMIN OPTION;
-
GRANT alter any sequence TO CIDBADMIN WITH ADMIN OPTION;
-
GRANT drop any sequence TO CIDBADMIN WITH ADMIN OPTION;
-
GRANT create any synonym TO CIDBADMIN WITH ADMIN OPTION;
-
GRANT drop any synonym TO CIDBADMIN WITH ADMIN OPTION;
-
-
GRANT lock any table TO CIDBADMIN WITH ADMIN OPTION;
-
GRANT create tablespace TO CIDBADMIN WITH ADMIN OPTION;
-
GRANT UNLIMITED TABLESPACE TO CIDBADMIN;
-
grant select on DBA_DATA_FILES to CIDBADMIN;
-
GRANT EXECUTE ANY PROCEDURE TO CIDBADMIN;
When using the OTN Virtualbox Appliance
(http://www.oracle.com/technetwork/database/enterprise-edition/databasea…)
the plugabble databases are
/u01/app/oracle/oradata/orcl12c
You must connect to the database with
user: sys
password: oracle
role: sysdba
-
mkdir -p /u01/app/oracle/oradata/orcl12c/PORTABLE/CITESTDB_001
Then create the DB
-
create pluggable database "CITESTDB_001"
-
admin user "CIDBADMIN" identified by "CIDBADMIN"
-
file_name_convert = (
-
'/u01/app/oracle/oradata/orcl12c/pdbseed/', '/u01/app/oracle/oradata/orcl12c/PORTABLE/CITESTDB_001/PORTABLE/CITESTDB_001/'
-
)
-
;
RJM Article Type
Work Notes