
一、禁用ADR,在lsnrctl 命令下修改log_directory的值,这也是网上大多数的修改方式。
su - grID
cd $ORACLE_HOME/netwrok/admin
vi Listener.ora
DIAG_ADR_ENABLED_ListENER=OFF --->禁用ADR
修改好后,需要reload。
[oracle:/oracle/app/product/grID/network/admin:RACTEST1] lsnrctl
LSNRCTL for linux: Version 11.2.0.1.0 - Production on 25-Jul-2019 13:08:48
copyright (c) 1991,2009,Oracle. All rights reserved.
Welcome to LSNRCTL,type "help" for information.
LSNRCTL> show
The following operations are available after show
An asterisk (*) denotes a modifIEr or extended command:
rawmode displaymode
rules trc_file
trc_directory trc_level
log_file log_directory
log_status current_Listener
inbound_connect_timeout startup_waittime
snmp_visible save_config_on_stop
dynamic_registration enable_global_dynamic_endpoint
oracle_home pID
LSNRCTL> show log_directory
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCol=TCP)(HOST=172.26.205.152)(PORT=1521)))
ListENER parameter "log_directory" set to /oracle/app/oracle/diag/tnslsnr/ractest1/Listener/alert/
The command completed successfully
LSNRCTL> set log_directory /home/oracle/app/oracle/diag/tnslsnr/ractest1/Listener/alert/
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCol=TCP)(HOST=172.26.205.152)(PORT=1521)))
ListENER parameter "log_directory" set to /home/oracle/app/oracle/diag/tnslsnr/ractest1/Listener/alert/
The command completed successfully
LSNRCTL> save_config
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCol=TCP)(HOST=172.26.205.152)(PORT=1521)))
Saved ListENER configuration parameters.
Listener Parameter file /oracle/app/product/grID/network/admin/Listener.ora
old Parameter file /oracle/app/product/grID/network/admin/Listener.bak
The command completed successfully
LSNRCTL> exit
[oracle:/oracle/app/product/grID/network/admin:RACTEST1] lsnrctl status
LSNRCTL for linux: Version 11.2.0.1.0 - Production on 25-Jul-2019 13:09:31
copyright (c) 1991,Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCol=TCP)(HOST=172.26.205.152)(PORT=1521)))
STATUS of the ListENER------------------------
Alias ListENER
Version TNSLSNR for linux: Version 11.2.0.1.0 - Production
Start Date 25-Jul-2019 11:57:04
Uptime 0 days 1 hr. 12 min. 26 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter file /oracle/app/product/grID/network/admin/Listener.ora
Listener Log file /home/oracle/app/oracle/diag/tnslsnr/ractest1/Listener/alert/Listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCol=ipc)(KEY=ListENER)))
(DESCRIPTION=(ADDRESS=(PROTOCol=tcp)(HOST=172.26.205.152)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCol=tcp)(HOST=172.26.205.153)(PORT=1521)))
Services Summary...
Service "+ASM" has 1 instance(s).
Instance "+ASM1",status READY,has 1 handler(s) for this service...
Service "RACTEST" has 1 instance(s).
Instance "RACTEST1",has 1 handler(s) for this service...
The command completed successfully
可以看到已经修改成功。
二、开启ADR时,修改目录。
vi Listener.ora
ADR_BASE_ListENER = /oracle/app/oracle ---->加入这个参数
修改后,需要重启监听程序。
[oracle:/oracle/app/product/grID/network/admin:RACTEST1] cat Listener.ora
ListENER=(DESCRIPTION=(ADDRESS_List=(ADDRESS=(PROTOCol=IPC)(KEY=ListENER)))) # line added by Agent
ListENER_SCAN1=(DESCRIPTION=(ADDRESS_List=(ADDRESS=(PROTOCol=IPC)(KEY=ListENER_SCAN1)))) # line added by Agent
ENABLE_GLOBAL_DYNAMIC_ENDPOINT_ListENER_SCAN1=ON # line added by Agent
ENABLE_GLOBAL_DYNAMIC_ENDPOINT_ListENER=ON # line added by Agent
DIAG_ADR_ENABLED_ListENER=on
ADR_BASE_ListENER = /oracle/app/oracle
#----ADDED BY TNSLSNR 24-Jul-2019 10:27:25---
#LOG_DIRECTORY_ListENER = /home/oracle/app/oracle/diag/tnslsnr/ractest1/Listener/alert/
#--------------------------------------------
[oracle:/oracle/app/product/grID/network/admin:RACTEST1] srvctl start Listener -n ractest1
[oracle:/oracle/app/product/grID/network/admin:RACTEST1] lsnrctl status
LSNRCTL for linux: Version 11.2.0.1.0 - Production on 25-Jul-2019 13:21:22
copyright (c) 1991,Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCol=TCP)(HOST=172.26.205.152)(PORT=1521)))STATUS of the ListENER
Alias ListENERVersion TNSLSNR for linux: Version 11.2.0.1.0 - ProductionStart Date 25-Jul-2019 13:21:18Uptime 0 days 0 hr. 0 min. 3 secTrace Level offSecurity ON: Local OS AuthenticationSNMP OFFListener Parameter file /oracle/app/product/grID/network/admin/Listener.oraListener Log file /oracle/app/oracle/diag/tnslsnr/ractest1/Listener/alert/log.xmlListening Endpoints Summary...(DESCRIPTION=(ADDRESS=(PROTOCol=ipc)(KEY=ListENER)))(DESCRIPTION=(ADDRESS=(PROTOCol=tcp)(HOST=172.26.205.152)(PORT=1521)))(DESCRIPTION=(ADDRESS=(PROTOCol=tcp)(HOST=172.26.205.153)(PORT=1521)))The Listener supports no servicesThe command completed successfully
总结以上是内存溢出为你收集整理的11g修改listner ADR全部内容,希望文章能够帮你解决11g修改listner ADR所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)