DB Express可被用于non-CDB, CDB, PDB, 或RAC数据库实例的基本管理。
由以下可以看到此CDB有两个PDB,5500端口已经被配置为ROOT CDB的管理端口,管理链接为https://:5500/em。
$ sqlplus / as sysdba
SQL*Plus: Release 12.1.0.2.0 Production on Fri Dec 19 00:15:30 2014
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> alter session set container=cdb$root;
Session altered.
SQL> show pdbs;
CON_ID CON_NAME OPEN MODE RESTRICTED
---------- -------------------------- ---------- ----------
2 PDB$SEED READ ONLY NO
3 PDB1 READ WRITE NO
4 PDB2 READ WRITE NO
SQL> select dbms_xdb_config.gethttpsport() from dual;
DBMS_XDB_CONFIG.GETHTTPSPORT()
------------------------------
5500
用具有DBA权限的用户(如sys或system)登录链接。
可以为每个PDB配置单独的管理端口。
例如,为pdb1配置5501管理端口,管理链接为https://:5501/em。
SQL> alter session set container=pdb1;
Session altered.
SQL> exec DBMS_XDB_CONFIG.SETHTTPSPORT(5501);
PL/SQL procedure successfully completed.
SQL> select dbms_xdb_config.gethttpsport() from dual;
DBMS_XDB_CONFIG.GETHTTPSPORT()
------------------------------
5501
为pdb2配置5502管理端口,管理链接为https://:5502/em。
SQL> alter session set container=pdb2;
Session altered.
SQL> exec DBMS_XDB_CONFIG.SETHTTPSPORT(5502);
PL/SQL procedure successfully completed.
SQL> select dbms_xdb_config.gethttpsport() from dual;
DBMS_XDB_CONFIG.GETHTTPSPORT()
------------------------------
5502
我们在lsnrctl status命令输出中,可以看到以下信息:
$ lsnrctl status
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=)(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Solaris: Version 12.1.0.2.0 - Production
Start Date 18-DEC-2014 18:57:36
Uptime 0 days 5 hr. 43 min. 6 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/app/dbusr/product/12.1.0/dbhome_1/network/admin/listener.ora
Listener Log File /u01/app/dbusr/diag/tnslsnr//listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcps)(HOST=)(PORT=5500))(Security=(my_wallet_directory=/u01/app/dbusr/admin/OSTE/xdb_wallet))(Presentation=HTTP)(Session=RAW))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcps)(HOST=)(PORT=5501))(Presentation=HTTP)(Session=RAW))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcps)(HOST=)(PORT=5502))(Presentation=HTTP)(Session=RAW))
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/29960937/viewspace-1373597/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/29960937/viewspace-1373597/