如果在Oracle
關於單實例下非缺省監聽及端口的配置可以參考下面的文章
RAC環境下較之前的單實例環境有些不同
配置非默認端口的動態服務注冊
配置sqlnet
Oracle 監聽器日志配置與管理
設置 Oracle 監聽器密碼(LISTENER)
配置ORACLE 客戶端連接到數據庫
[sql]
[grid@linux
Enterprise Linux Enterprise Linux Server release
Kernel \r on an \m
[grid@linux
Oracle Clusterware active version on the cluster is [
[oracle@linux
bo
[oracle@linux
ora
[oracle@linux
[oracle@linux
PRCC
[oracle@linux
[oracle@linux
SQL> set linesize
SQL> show parameter cluster_d
NAME TYPE VALUE
cluster_database boolean FALSE
cluster_database_instances integer
[grid@linux
LSNRCTL for Linux: Version
Listening Endpoints Summary
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=
Services Summary
Service
Instance
Service
Instance
Service
Instance
The command completed successfully
[sql]
[oracle@linux
[oracle@linux
[oracle@linux
[oracle@linux
[oracle@linux
# listener
# Generated by Oracle configuration tools
ADR_BASE_LISTENER_CNBO = /u
LISTENER_CNBO = #
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST =
)
)
[oracle@linux
# tnsnames
# Generated by Oracle configuration tools
CNBO =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST =
)
(CONNECT_DATA =
(SERVICE_NAME = )
)
)
[oracle@linux
TNS Ping Utility for Linux: Version
Copyright (c)
Used parameter files:
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST =
(CONNECT_DATA = (SERVICE_NAME = )))
TNS
[oracle@linux
LSNRCTL for Linux: Version
Listening Endpoints Summary
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=
The listener supports no services
The command completed successfully
[oracle@linux
LSNRCTL for Linux: Version
Listening Endpoints Summary
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=
The listener supports no services
The command completed successfully
SQL> show parameter local_lis
NAME TYPE VALUE
local_listener string (DESCRIPTION=(ADDRESS_LIST=(AD
DRESS=(PROTOCOL=TCP)(HOST=linu
x
SQL> alter system set local_listener=
alter system set local_listener=
*
ERROR at line
ORA
ORA
ORA
[oracle@linux
> LISTENER_CNBO =
> (ADDRESS_LIST =
> (ADDRESS = (PROTOCOL = TCP)(HOST =
> )
SQL> alter system set local_listener=
System altered
[oracle@linux
LSNRCTL for Linux: Version
Listening Endpoints Summary
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=
Services Summary
Service
Instance
Service
Instance
The command completed successfully
[grid@linux
LSNRCTL for Linux: Version
Listening Endpoints Summary
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=
Services Summary
Service
Instance
The command completed successfully
[sql]
[oracle@linux
[oracle@linux
[oracle@linux
SQL> alter system set local_listener=
[oracle@linux
[oracle@linux
[oracle@linux
# listener
# Generated by Oracle configuration tools
# 我們使用netmgr為其添加了數據庫服務
LISTENER_NEW =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = )(PORT =
)
ADR_BASE_LISTENER_NEW = /u
SID_LIST_LISTENER_NEW =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = )
(ORACLE_HOME = /u
(SID_NAME = cnbo)
)
)
[oracle@linux
# tnsnames
# Generated by Oracle configuration tools
CNBO =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = )(PORT =
)
(CONNECT_DATA =
(SERVICE_NAME = )
)
)
[oracle@linux
LSNRCTL for Linux: Version
Listening Endpoints Summary
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=
Services Summary
Service
Instance
The command completed successfully
[grid@linux
LSNRCTL for Linux: Version
Listening Endpoints Summary
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=
Services Summary
Service
Instance
Service
Instance
Service
Instance
The command completed successfully
SQL> show parameter db_name
NAME TYPE VALUE
db_name string cnbo
SQL> show parameter local_lis
NAME TYPE VALUE
local_listener string
[oracle@linux
> LISTENER_NEW =
> (ADDRESS_LIST =
> (ADDRESS = (PROTOCOL = TCP)(HOST = )(PORT =
> )
SQL> alter system set local_listener=
[grid@linux
LSNRCTL for Linux: Version
Listening Endpoints Summary
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=
Services Summary
Service
Instance
The command completed successfully
a
b
c
d
e
f
From:http://tw.wingwit.com/Article/program/Oracle/201311/16877.html