12c service 로 pdb 연결
$lsnrctl service
LSNRCTL for Linux: Version 12.1.0.2.0 - Production on 06-MAR-2018 06:52:45
Copyright (c) 1991, 2014, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=orcl)(PORT=1521)))
Services Summary...
Service "cdb1" has 1 instance(s).
Instance "cdb1", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:0 refused:0 state:ready
LOCAL SERVER
Service "cdb1XDB" has 1 instance(s).
Instance "cdb1", status READY, has 1 handler(s) for this service...
Handler(s):
"D000" established:0 refused:0 current:0 max:1022 state:ready
DISPATCHER
(ADDRESS=(PROTOCOL=tcp)(HOST=roidb01)(PORT=17408))
Service "pdb11" has 1 instance(s).
Instance "cdb1", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:0 refused:0 state:ready
LOCAL SERVER
The command completed successfully
$
SQL> set line 120
SQL> select name,network_name,pdb from v$services;
NAME NETWORK_NAME PDB
------------------------------ ------------------------------ ------------------------------
sales sales1 PDB11
pdb11 pdb11 PDB11
cdb1XDB cdb1XDB CDB$ROOT
cdb1 cdb1 CDB$ROOT
SYS$BACKGROUND CDB$ROOT
SYS$USERS CDB$ROOT
6 rows selected.
SQL>
SQL> alter session set container=pdb11;
Session altered.
SQL> select name,network_name,pdb from v$services;
NAME NETWORK_NAME PDB
------------------------------ ------------------------------ ------------------------------
sales sales1 PDB11 ##
pdb11 pdb11 PDB11
SQL> exec dbms_service.start_service('sales'); ##
PL/SQL procedure successfully completed.
SQL>
$lsnrctl service;
LSNRCTL for Linux: Version 12.1.0.2.0 - Production on 06-MAR-2018 06:58:04
Copyright (c) 1991, 2014, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=orcl)(PORT=1521)))
Services Summary...
Service "cdb1" has 1 instance(s).
Instance "cdb1", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:0 refused:0 state:ready
LOCAL SERVER
Service "cdb1XDB" has 1 instance(s).
Instance "cdb1", status READY, has 1 handler(s) for this service...
Handler(s):
"D000" established:0 refused:0 current:0 max:1022 state:ready
DISPATCHER
(ADDRESS=(PROTOCOL=tcp)(HOST=roidb01)(PORT=17408))
Service "pdb11" has 1 instance(s).
Instance "cdb1", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:0 refused:0 state:ready
LOCAL SERVER
Service "sales1" has 1 instance(s). ## pmon
Instance "cdb1", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:0 refused:0 state:ready
LOCAL SERVER
The command completed successfully
$
$sqlplus sys/oracle@roidb01:1521/sales1 as sysdba ## pdb
SQL*Plus: Release 12.1.0.2.0 Production on Tue Mar 6 06:58:39 2018
Copyright (c) 1982, 2014, Oracle. All rights reserved.
Connected to:
Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production
With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options
SQL> show pdbs
CON_ID CON_NAME OPEN MODE RESTRICTED
---------- ------------------------------ ---------- ----------
3 PDB11 READ WRITE NO
SQL>
## 、 、 , ,
SQL> exec dbms_service.start_service('sales');
PL/SQL procedure successfully completed.
SQL>
SQL> exec dbms_service.stop_service('sales');
PL/SQL procedure successfully completed.
SQL> exec dbms_service.delete_service('sales');
PL/SQL procedure successfully completed.
SQL> exec dbms_service.create_service('sales','sales1');
PL/SQL procedure successfully completed.
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
CLI/수동을 사용하여 Angular에서 서비스 생성구조 : 새 서비스를 수동으로 생성하려면: Angular 프로젝트 디렉토리로 이동합니다. 새 파일을 만듭니다. <service-name>.service.ts 파일 맨 위에 다음 가져오기 문을 추가합니다. @Injec...
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.