Oracle 12C R1 OR R2監聽相關配置包含pdb
SQL>col con_name format A30;
SQL> select con_id,dbid,NAME,OPEN_MODE from v$pdbs;
CON_ID DBID NAME OPEN_MODE
---------- ---------- ------------------------------ ----------
2 1131039996 PDB$SEED READ ONLY
3 263525486 NETDATAPDB READ WRITE
SQL> show pdbs;
CON_ID CON_NAME OPEN MODE RESTRICTED
---------- ------------------------------ ---------- ----------
2 PDB$SEED READ ONLY NO
3 NETDATAPDB READ WRITE NO
查詢service_name
SQL> select name,pdb from v$services;
NAME PDB
------------------------------ --------------------------------------------------------------------------------------------------------------------------------
netdata CDB$ROOT
SYS$BACKGROUND CDB$ROOT
SYS$USERS CDB$ROOT
netdatapdb NETDATAPDB
netdataXDB CDB$ROOT
切換至cdb
SQL> alter session set container=netdatapdb;
SQL> create tablespace tbs_netdata datafile '/u01/app/oracle/oradata/netdata/netdatapdb/tbs_netdata01.dbf' size 100M autoextend on next 20M maxsize 8G;
Tablespace created.
SQL> create user netdata identified by netdata default tablespace tbs_netdata temporary tablespace temp;
User created.
SQL> grant create view,create table,create trigger,create synonym,create procedure to netdata;
Grant succeeded.
SQL> grant unlimited tablespace to netdata;
Grant succeeded.
配置監聽
[oracle@ORA12CR2-213-8 ~]$ cd /u01/app/oracle/product/12.2.0/db_1/network/admin
[oracle@ORA12CR2-213-8 admin]$ cat sqlnet.ora
# sqlnet.ora Network Configuration File: /u01/app/oracle/product/12.2.0/db_1/network/admin/sqlnet.ora
# Generated by Oracle configuration tools.
NAMES.DIRECTORY_PATH= (TNSNAMES, ONAMES, HOSTNAME)
SQLNET.ALLOWED_LOGON_VERSION_CLIENT=8
SQLNET.ALLOWED_LOGON_VERSION_SERVER=8
[oracle@ORA12CR2-213-8 admin]$ cat listener.ora
# listener.ora Network Configuration File: /u01/app/oracle/product/12.2.0/db_1/network/admin/listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = netdata)
(ORACLE_HOME = /u01/app/oracle/product/12.2.0/db_1)
(SID_NAME = netdata)
)
(SID_DESC =
(GLOBAL_DBNAME = netdatapdb)
(ORACLE_HOME = /u01/app/oracle/product/12.2.0/db_1)
(SID_NAME = netdata)
)
)
LISTENER =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.213.8)(PORT = 1521))
)
ADR_BASE_LISTENER = /u01/app/oracle
DIAG_ADR_ENABLED_LISTENER = OFF
SQL> select con_id,dbid,NAME,OPEN_MODE from v$pdbs;
CON_ID DBID NAME OPEN_MODE
---------- ---------- ------------------------------ ----------
2 1131039996 PDB$SEED READ ONLY
3 263525486 NETDATAPDB READ WRITE
SQL> show pdbs;
CON_ID CON_NAME OPEN MODE RESTRICTED
---------- ------------------------------ ---------- ----------
2 PDB$SEED READ ONLY NO
3 NETDATAPDB READ WRITE NO
查詢service_name
SQL> select name,pdb from v$services;
NAME PDB
------------------------------ --------------------------------------------------------------------------------------------------------------------------------
netdata CDB$ROOT
SYS$BACKGROUND CDB$ROOT
SYS$USERS CDB$ROOT
netdatapdb NETDATAPDB
netdataXDB CDB$ROOT
切換至cdb
SQL> alter session set container=netdatapdb;
SQL> create tablespace tbs_netdata datafile '/u01/app/oracle/oradata/netdata/netdatapdb/tbs_netdata01.dbf' size 100M autoextend on next 20M maxsize 8G;
Tablespace created.
SQL> create user netdata identified by netdata default tablespace tbs_netdata temporary tablespace temp;
User created.
SQL> grant create view,create table,create trigger,create synonym,create procedure to netdata;
Grant succeeded.
SQL> grant unlimited tablespace to netdata;
Grant succeeded.
配置監聽
[oracle@ORA12CR2-213-8 ~]$ cd /u01/app/oracle/product/12.2.0/db_1/network/admin
[oracle@ORA12CR2-213-8 admin]$ cat sqlnet.ora
# sqlnet.ora Network Configuration File: /u01/app/oracle/product/12.2.0/db_1/network/admin/sqlnet.ora
# Generated by Oracle configuration tools.
NAMES.DIRECTORY_PATH= (TNSNAMES, ONAMES, HOSTNAME)
SQLNET.ALLOWED_LOGON_VERSION_CLIENT=8
SQLNET.ALLOWED_LOGON_VERSION_SERVER=8
[oracle@ORA12CR2-213-8 admin]$ cat listener.ora
# listener.ora Network Configuration File: /u01/app/oracle/product/12.2.0/db_1/network/admin/listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = netdata)
(ORACLE_HOME = /u01/app/oracle/product/12.2.0/db_1)
(SID_NAME = netdata)
)
(SID_DESC =
(GLOBAL_DBNAME = netdatapdb)
(ORACLE_HOME = /u01/app/oracle/product/12.2.0/db_1)
(SID_NAME = netdata)
)
)
LISTENER =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.213.8)(PORT = 1521))
)
ADR_BASE_LISTENER = /u01/app/oracle
DIAG_ADR_ENABLED_LISTENER = OFF
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/24486203/viewspace-2141392/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle 11g 監聽相關檔案Oracle
- Oracle 11g/12c 監聽器白名單的配置Oracle
- oracle 監聽器配置Oracle
- Oracle 12c Relocate PDBOracle
- Oracle 監聽配置詳解Oracle
- Oracle 動態監聽配置Oracle
- oracle 12c pdb測試:建立、開關、刪除Oracle
- Oracle 12c PDB淺析Oracle
- Oracle 12C -- 使用seed PDB建立新的pdbOracle
- oracle 監聽配置多個埠Oracle
- Oracle 12c PDB遷移(一)Oracle
- Oracle 12c系列(六)|Relocate a PDBOracle
- Oracle 12c系列(五)|PDB RefreshOracle
- oracle 12c rman備份pdbOracle
- Oracle 12c PDB淺析(二)Oracle
- Oracle 12C RMAN transport tablespace from PDB of RAC CDB to remote PDBOracleREM
- 12c 如何為每個pdb對應一個靜態註冊的監聽埠
- Oracle 12c 多租戶配置和修改 CDB 和 PDB 引數Oracle
- 關於oracle的監聽問題Oracle
- ORACLE 12C pdb受限解決思路Oracle
- Oracle 12c系列(二)|PDB的建立Oracle
- ORACLE 12C新特性——CDB與PDBOracle
- oracle 12c使用dblink克隆pdbOracle
- 12C RAC 修改監聽埠
- Oracle 監聽器日誌配置與管理Oracle
- oracle 11g tns和監聽配置Oracle
- CUUG《Oracle 監聽和TNS配置》- 筆記Oracle筆記
- Oracle 監聽Oracle
- linux下oracle11g R2的啟動與關閉監聽、資料庫LinuxOracle資料庫
- oracle 12c PDB隨CDB啟動和連結PDB的方式Oracle
- Oracle 12c 多租戶 手工建立 pdb 與 手工刪除 pdbOracle
- 12c中新增PDB後GoldenGate的配置Go
- Oracle11G R1/R2官方下載列表Oracle
- Oracle 12C RMAN Duplicating Tablespaces Within a PDBOracle
- Oracle 12C RMAN Duplicating the PDB to remote CDBOracleREM
- Oracle 12c CDB&PDB 基本維護Oracle
- 【DBA】Windows 下Oracle 監聽配置注意事項WindowsOracle
- 監聽器中spring注入相關的問題Spring