Oracle 12C Create user connection PDB

Source: Internet
Author: User
Tags reserved sqlplus

test Environment:C:\ora12c\product\12.1.0\dbhome_1\bin>sqlplus.exe/nologsql*plus:release 12.1.0.1.0 Production on Tuesday September 20  03:50:23 2016Copyright (c) 1982, Oracle. All rights reserved. Sql> Conn/as Sysdba is connected.    Sql> show PDBs;          con_id con_name OPEN MODE RESTRICTED------------------------------------------------------------ 2 Pdb$seed Read Only No 3 POLESTAR1 READ WRITE NO 4 P OLESTAR2 READ WRITE nosql>sql> alter session set CONTAINER=POLESTAR1, session changed.    Sql> show PDBs;          con_id con_name OPEN MODE RESTRICTED------------------------------------------------------------ 3 POLESTAR1 READ WRITE nosql> sql> Create user Polestar identified by Polestar; User created. Sql> Grant DBA to Polestar;To Configure the Listener listener file:LISTENER = (Description_list = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.0.100) (PORT = 1523))  (ADDRESS = (PROTOCOL = IPC) (KEY = EXTPROC1523)) ) sid_list_listener= (sid_list= (Sid_desc = (Global_dbname = orcl12c) #CDB信息 (sid_name = orcl12c)) (Sid_desc = (GLO Bal_dbname = polestar1) #PDB信息 (sid_name = orcl12c)))connect to the PDB database with create userC:\ora12c\product\12.1.0\dbhome_1\bin>sqlplus Polestar/[email Protected]:1523/polestar1sql*plus:release  12.1.0.1.0 Production on Tuesday September 02:48:14 2016Copyright (c) 1982, D, Oracle.  All rights reserved. Connect to: Oracle Database 12c Enterprise Edition Release 12.1.0.1.0-64bit productionwith the partitioning,    OLAP, Advanced Analytics and Real application testing optionssql> show PDBs;          con_id con_name OPEN MODE RESTRICTED------------------------------------------------------------ 3 POLESTAR1 READ WRITE nosql> exit

Oracle 12C Create user connection PDB

Related Article

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.