[20211013]Oracle 19c新特性Listener自动清理(Network Log File Segmentation).txt

来源:这里教程网 时间:2026-03-03 17:04:03 作者:

[20211013]Oracle 19c新特性Listener自动清理(Network Log File Segmentation).txt --//看了https://www.anbob.com/archives/6389.html介绍。 在 Oracle 19c 上,Oracle 引入了两个有关listener管理的新参数。我们可以在Oracle内配置日志轮换,而无需在OS shell 脚本上进行 任何额外配置,实现logrotate功能。该特性叫做"Oracle Network Log File Segmentation"。 Use below parameters to define number of files with defined size LOG_FILE_NUM_listener_name To specify the number of log file segments. At any point of time there can be only "n" log file segments where "n" is LOG_FILE_NUM_listener_name. If the log grows beyond this number, then the older segments are deleted. LOG_FILE_SIZE_listener_name To specify the size of each log file segment. The size is in MB. --//我的理解LOG_FILE_NUM_listener_name定义生成log file的数量,LOG_FILE_SIZE_listener_name是每个log file的大小,单位MB。 --//感觉还引入了log file segments的概念。 --//我们生产系统是一套19c,不过版本有点低,不知道是否支持。如果不支持也做一个记录,也许以后会用到。 --//举例说明 $ cat /u01/app/oracle/product/19.2.0/db_1/network/admin/listener.ora # listener.ora Network Configuration File: /u01/app/oracle/product/19.2.0/db_1/network/admin/listener.ora # Generated by Oracle configuration tools. LISTENER =   (DESCRIPTION_LIST =     (DESCRIPTION =       (ADDRESS = (PROTOCOL = TCP)(HOST = oel7db1)(PORT = 1521)(IP=FIRST))       (ADDRESS = (PROTOCOL = TCP)(HOST = oel7db1)(PORT = 1521)(IP=V4_ONLY))       (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))     )   ) USE_SID_AS_SERVICE_LISTENER=on LOG_FILE_NUM_LISTENER=10 LOG_FILE_SIZE_LISTENER=100

相关推荐