oracle网络没有负载,
没有负载的就不容易出问题。相对很简单的。
1.监听的动态注册:
PMON 注册监听,或者
alter system register;
强制PMON抓紧注册。
都属于动态注册~ 对应的listener.ora文件配置信息:
LISTENER = (DESCRIPTION_LIST = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.10.159)(PORT = 1521))) (DESCRIPTION = (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))) )
2.监听的静态注册:
由于动态注册不稳定,采用静态注册方式,对应的listener.ora文件配置信息:
就在原配置文件上copy5行(下面示例第3~7行),改下global_dbname和sid_name即可~
SID_LIST_LISTENER = (SID_LIST = (SID_DESC = (GLOBAL_DBNAME = jyzhao) (ORACLE_HOME = /opt/app/oracle/product/11.2.0/dbhome_1) (SID_NAME = jyzhao) ) ) 注:global_dbname 与service_names一致 sid_name与instance_name一致
3.双网卡双监听:
服务器一般为双网卡或多网卡,每个网卡上都配置监听可以缓解网络的压力,实现网络上的负载均衡,但这样有一定的局限性。
4.客户端tnsnames.ora配置:
JYDB = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.10.159)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = jyzhao) ) )
5.数据库的各种名字:
数据库名db_name,db_unique_name,实例名instance_name,服务名service_names,全局名global_names……