linux环境下查看日志的最后几行可以使用 tail 命令:
[oracle@gl admin]$ tail -20 /data/diag/tnslsnr/gl/listener/alert/log.xml
type='UNKNOWN' level='16' host_id='gl.localdomain'
host_addr='192.168.222.133'>
Started with pid=9385
type='UNKNOWN' level='16' host_id='gl.localdomain'
host_addr='192.168.222.133'>
Error listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=gl.localdomain)(PORT=1521)))
type='UNKNOWN' level='16' host_id='gl.localdomain'
host_addr='192.168.222.133'>
TNS-12560: TNS:protocol adapter error
TNS-00583: Valid node checking: unable to parse configuration parameters
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/29196873/viewspace-1067306/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/29196873/viewspace-1067306/