配置和自动启动Oracle的监听(lsnrctl)(二)

2014-11-24 17:09:11 · 作者: · 浏览: 1
right (c) 1991, 2011, Oracle. All rights reserved. Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=www.redhat6.com)(PORT=1521))) STATUS of the LISTENER ------------------------ Alias LISTENER Version TNSLSNR for Linux: Version 11.2.0.3.0 - Production Start Date 29-NOV-2013 21:25:24 Uptime 0 days 0 hr. 37 min. 59 sec Trace Level off Security ON: Local OS Authentication SNMP OFF Listener Parameter File /u01/app/oracle/network/admin/listener.ora Listener Log File /u01/app/diag/tnslsnr/www/listener/alert/log.xml Listening Endpoints Summary... (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=www.redhat6.com)(PORT=1521))) Services Summary... Service "orcl" has 1 instance(s). Instance "orcl", status READY, has 1 handler(s) for this service... Service "orclXDB" has 1 instance(s). Instance "orcl", status READY, has 1 handler(s) for this service... The command completed successfully

其它问题:

关闭linux防火墙:

暂时关闭:
service iptables stop

永久性,需重启:
chkconfig iptables off

[root@www ~]# chkconfig --list | grep iptables
iptables       	0:off	1:off	2:on	3:on	4:on	5:on	6:off
[root@www ~]# chkconfig iptables off
[root@www ~]# chkconfig --list | grep iptables
iptables       	0:off	1:off	2:off	3:off	4:off	5:off	6:off


关闭selinux:

1 永久方法   需要重启服务器
修改/etc/selinux/config文件中设置SELINUX=disabled ,然后重启服务器。

2 临时方法   设置系统参数
使用命令setenforce 0
附:
setenforce 1 设置SELinux 成为enforcing模式
setenforce 0 设置SELinux 成为permissive模式