Oracle 12C 建立使用者串連pdb

來源:互聯網
上載者:User

標籤:

測試環境:C:\ora12c\product\12.1.0\dbhome_1\BIN>sqlplus.exe /nologSQL*Plus: Release 12.1.0.1.0 Production on 星期二 9月 20 03:50:23 2016Copyright (c) 1982, 2013, Oracle.  All rights reserved.SQL> conn /as sysdba已串連。SQL> show pdbs;    CON_ID CON_NAME                       OPEN MODE  RESTRICTED---------- ------------------------------ ---------- ----------         2 PDB$SEED                       READ ONLY  NO         3 POLESTAR1                      READ WRITE NO         4 POLESTAR2                      READ WRITE NOSQL>SQL> alter session set container=polestar1;會話已更改。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;配置監聽listener檔案: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 =  (GLOBAL_DBNAME = polestar1) #PDB資訊  (SID_NAME = orcl12c)  ))用建立使用者串連pdb資料庫C:\ora12c\product\12.1.0\dbhome_1\BIN>sqlplus polestar/[email protected]:1523/POLESTAR1SQL*Plus: Release 12.1.0.1.0 Production on 星期二 9月 20 02:48:14 2016Copyright (c) 1982, 2013, Oracle.  All rights reserved.串連到: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 建立使用者串連pdb

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.