6.14 12c Create user, authorize, create PDB

Source: Internet
Author: User
Tags sqlplus

12c Create user
Create User C # #lyoo2 identified by Oracle;
12c User Authorization
Sql> Grant Resource,connect to C # #abiao12c;
Sql> Show Parameter Db_create
Create PDB
Sql> Create pluggable Database PDB_SONGCC Admin user SONGCC identified by Oracle;
Toggle PDB
sql> Alter pluggable database PDB_SONGCC open;
Sql> alter session set CONTAINER=PDB_SONGCC;
View current PDB
Sql> Show Con_name
View current Instance
Sql> select instance_name from V$instance;
Sqlplus/as SYSDBA Administrator to connect to the database
Sqlplus/as SYSDBA
This is in Cdb$root mode.
Show Con_name;
See all PDBs under Cdb$root
Select Name, Open_mode from V$pdbs;
Open the PDB database
Alter pluggable database Pdbepps Open
Go to the PDB database
Alter session set CONTAINER=ORCLPDB;
Turn off PDB
Alter pluggable database orclpdb close;
Switch back to Cdb$root
Alter session set Container=cdb$root;
Conn as Sysdba

6.14 12c Create user, authorize, create PDB

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.