listener.ora

EOF

YESTERDAY=`cat /database/log/tns_log/yesterday.out` TODAY=`date ‘+%d-%b-%Y‘`

echo $YESTERDAY  $TODAY

echo "HOSTTNS|Date|SID|PROGRAM|HOST|USER|IP|PORT|"  >$PWDPATH/tns_`date +%Y%m%d`.txt

cd $PWDPATH grep -i $YESTERDAY `ls *.log` |grep ‘HOST=‘ |grep -v ‘listening on:‘ |grep -v ‘Listening on:‘ |grep -v ‘COMMAND=‘ |grep -v ‘192.168.6.33‘ |grep -v ‘192.168.4.45‘ |sed -e ‘s/\* (CONNECT_DATA=(SID=/|/g‘ \ -e ‘s/\* (CONNECT_DATA=(SERVICE_NAME=/|/g‘ \ -e ‘s/)(CID=(PROGRAM=/|/g‘ \ -e ‘s/)(HOST=/|/g‘ \ -e ‘s/))) \* (ADDRESS=(PROTOCOL=tcp//g‘ \ -e ‘s/)(USER=/|/g‘  \ -e ‘s/)(PORT=/|/g‘   \ -e ‘s/))(SID=/|/g‘   \ -e ‘s/)) \* (ADDRESS=(PROTOCOL=tcp//g‘   \ -e ‘s/\* (CONNECT_DATA=(CID=(PROGRAM=/|/g‘ \ -e ‘s/)(CID=(PROGRAM=/|/g‘ \ -e ‘s/))(SERVICE_NAME=/|/g‘ \ -e ‘s/)) \* establish \* *.* \* *.*/|/g‘   >>$PWDPATH/tns_`date +%Y%m%d`.txt

cat tns_`date +%Y%m%d`.txt |grep -v 192.168.3.91 |grep -v 192.168.3.92 |grep -v 192.168.61.33 |grep -v 192.168.61.35 |grep -v 192.168.61.37 |grep -v 192.168.61.32 |grep -v 192.168.4.60|grep -v 192.168.3.90|grep -v 192.168.4.12 |grep -v 192.168.4.19 |grep -v 192.168.4.20 |grep -v 192.168.1.53|grep -v 192.168.4.21  |grep -v 1 92.168.6.14 |grep -v 192.168.6.70|grep -v 192.168.6.20 |grep -v 192.168.4.31 |grep -v 192.168.6.65 |grep -v 192.168.6.19|grep -v 192.168.200.10 |grep -v 192.168.6 .74 |grep -v 192.168.4.144 |grep -v 192.168.4.10 |grep -v 192.168.108.62|grep -v 192.168.3.8 |grep -v 192.168.24.30|grep -v 192.168.24.43|grep -v 192.168.16.195|g rep -v 192.168.63.160| grep -v 192.168.6.60|grep -v 192.168.6.63 |grep -v 192.168.4.24 |grep -v 192.168.23.15|grep -v 192.168.23.36 |grep -v 192.168.23.16 |grep - v 192.168.23.38 |grep -v 192.168.6.25 |grep -v 192.168.1.51 |grep -v 192.168.23.7 |grep -v 192.168.1.43 |grep -v 192.168.1.47 |grep -v 192.168.24.31|grep -v 192.1 68.24.32|grep -v 192.168.24.85 |grep -v 192,168.1.63|grep -v 192.168.1.64 |grep -v 192.168.3.71|grep -v 192.168.24.8|grep -v 192.168.63.113|grep -v 192.168.16.54| grep -v 192.168.4.82|grep -v 192.168.4.32|grep -v 192.168.2.223|grep -v 192.168.4.81|grep -v 192.168.4.80|grep -v 192.168.4.22|grep -v 10.200.7.101|grep -v 192.16 8.4.18|grep -v 192.168.1.46|grep -v 192.168.6.95|grep -v ‘192.168.23.8|‘|grep -v 172.18.193.12|grep -v -i pacer.exe|grep -v -i yictrpt.exe|grep -v 192.168.3.93|gr ep -v 172.17.7.11|grep -v 172.17.7.12|grep -v 192.168.23.87|grep -v 192.168.4.58|grep -v 192.168.23.41|grep -v 192.168.23.42|grep -v 192.168.24.7|grep -v 192.168. 23.86|grep -v 192.168.23.90|grep -v 192.168.201.122|grep -v 192.168.2.182|grep -v 192.168.3.72|grep -v 192.168.4.36|grep -v 192.168.4.85| grep -v 192.168.23.80|gr ep -v 192.168.6.69|grep -v 192.168.6.27 |grep -v 192.168.6.28|grep -v 192.168.4.45|sed -e ‘s/.log:/|/g‘   >$PWDPATH/tns_dbconnection`date +%Y%m%d`.txt

#sed -e ‘s/$/ /‘ $PWDPATH/tns_dbconnection`date +%Y%m%d`.txt >$PWDPATH/1 #(echo "DB doubtable connections at $YESTERDAY: \n\nyou may open it by notepad.exe or wordpad.exe or office excel.\n";/usr/bin/uuencode 1  1) |/bin/mailx -s "DB d oubtable connections at $YESTERDAY:"  [email protected]

(echo "DB doubtable connections on $YESTERDAY: \n\nyou may open it by notepad.exe or wordpad.exe or office excel.\n") |/bin/mailx -s "DB doubtable connections at $YESTERDAY:"  [email protected] <$PWDPATH/tns_dbconnection`date +%Y%m%d`.txt #(echo "DB doubtable connections on $YESTERDAY: \n\nyou may open it by notepad.exe or wordpad.exe or office excel.\n") |/bin/mailx -s "DB doubtable connections at  $YESTERDAY:"  [email protected]  <$PWDPATH/tns_dbconnection`date +%Y%m%d`.txt

#(echo "DB doubtable connections at $YESTERDAY: \n\nyou may open it by notepad.exe or wordpad.exe or office excel.\n";/usr/bin/uuencode tns_dbconnection`date +%Y% m%d`.txt  tns_dbconnection`date +%Y%m%d`.txt) |/bin/mailx -s "DB doubtable connections at $YESTERDAY:"  [email protected]

时间: 2024-10-14 20:30:53

listener.ora的相关文章

ORACLE RAC 下非缺省端口监听配置(listener.ora tnsnames.ora)

不论是单实例还是RAC,对于非缺省端口下(1521)的监听器,pmon进程不会将service/instance注册到监听器,即不会实现动态注册.与单实例相同,RAC非缺省端口的监听器也是通过设置参数local_listener来达到目的.除此之外,还可以对实例进行远程注册,以达到负载均衡的目的.这是通过一个参数remote_listener来实现. 有关Oracle 网络配置相关基础以及概念性的问题请参考:      配置ORACLE 客户端连接到数据库   配置非默认端口的动态服务注册   

ora11g listener.ora

配置内容方式1: LISTENER = (DESCRIPTION_LIST = (DESCRIPTION = (ADDRESS = (PROTOCOL = IPC) (KEY = EXTPROC1521)) (ADDRESS = (PROTOCOL = TCP) (HOST = db1) (PORT=1521)) ) ) ADR_BASE_LISTENER = /app/oracle 1111111111111 # listener.ora Network Configuration File:

真心崩溃了,oracle安装完成后居然没有tnsnames.ora和listener.ora文件

problem: oracle  11  r2  64位安装完成后NETWORK/ADMIN目录下居然没有tnsnames.ora和listener.ora文件 solution: 问题是之前安装了另外一个版本的oracle,我是安装了oracle xe,没有卸载干净,导致在环境变量中存在TNS_ADMIN指向了不正确的目录.如下图所示: 上图中的TNS_ADMIN的配置是正确的,原来的配置是错误的.原来的配置指向的是d:\oraclexe下的某个目录,因为指向的目录已经被删除,所以用oracl

使用oracle10g官方文档找到监听文件(listener.ora)的模板

***********************************************声明***********************************************************************  原创作品,出自 "深蓝的blog" 博客,欢迎转载,转载时请务必注明出处,否则追究版权法律责任. 深蓝的blog:http://blog.csdn.net/huangyanlong/article/details/39780739 *******

(转)认识oracle中的sqlnet.ora tnsnames.ora listener.ora三个文件

概述 在oracle安装目录$HOME/network/admin下,,经常看到sqlnet.ora tnsnames.ora listener.ora这三个文件,除了tnsnames.ora,其他两个文件详细的用途很多人都不太了解.sqlnet.ora 用在oracle client端,用于配置连接服务端oracle的相关参数. tnsnames.ora 用在oracle client端,用户配置连接数据库的别名参数,就像系统中的hosts文件一样.listener.ora 用在oracle

oracle的sqlnet.ora,tnsnames.ora,listener.ora三个配置文件

总结:1 .三个配置文件都是放在$ORACLE_HOME\network\admin目录下.2 .sqlnet.ora确定解析方式3 .listener.ora上设SID_NAME,通常用于JDBC访问,对应的错误码为125054 .tnsnames.ora上设SERVICE_NAME,通常用于linux sqlplus客户端,对应的错误码为12514 sqlnet.ora 作用类似于linux或者其他unix的 nsswitch.conf文件,通过这个文件来决定怎么样找一个连接中出现的连接字符

listener.ora中PLSExtPro 和ExtProc的作用(转)

默认安装时,会安装一个PL/SQL外部程序(ExtProc)条目在listener.ora中,是oracle为调用外部程序默认配置的监听,它的名字通常是ExtProc或PLSExtProc,但一般不会使用它,可以直接从listener.ora中将这项移除,因为对ExtProc已经有多种攻击手段了,在不使用外部程序时,oracle也是建议删除的. PLSExtPro 是pl/sql   external  procdure 的意思,就是在pl/sql中调用外部语句,如c,java写的过程. 现在,

oracle listener.ora的host不能使localhost,而应该是该机器名,否则不能用ip地址进行连接

# listener.ora Network Configuration File: /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora # Generated by Oracle configuration tools. LISTENER = (DESCRIPTION_LIST = (DESCRIPTION = (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521)) (AD

listener.ora 、sqlnet.ora 、tnsnames.ora的关系以及手工配置

listener.ora.sqlnet.ora.tnsnames.ora ,都是放在$ORACLE_HOME\network\admin目录下. --begin 重点:三个文件的作用和使用 #----------------------- sqlnet.ora(客户及服务器端) --作用类似于linux或者其他unix的nsswitch.conf文件,通过这个文件来决定怎么样找一个连接中出现的连接字符串, 例如我们客户端输入 sqlplus sys/[email protected] 假如我的s

Oracel数据库 listener.ora和tnsnames.ora配置

oracel服务经常会出现各种监听问题,很多情况是 listener.ora和tnsnames.ora 的配置有问题  D:\app\Administrator\product\11.2.0\dbhome_1 oracel安装路径径参考自己的 listener.ora配置 # listener.ora Network Configuration File: D:\app\Administrator\product\11.2.0\dbhome_1\network\admin\listener.or