In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-22 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
Recently, several customer production environments have encountered some failures, due to the opening of archiving, no deployment of delete archiving scheduled tasks, the following you can refer to, after my test, normal operation in the production environment. * * roidba delete archive log script * * 1. RHEL6 server-based archive log deletion script production library deployment environment: database: Oracle 11.2.0.4 operating system: RHEL 6.6 first step: set control_file_record_keep_time this parameter is very important. Backup records, archive records and other records will be stored in the control file. This parameter provides a period of time for keeping records. The default is 7 days. Usually we want to set this parameter to be greater than the period of time for which the backup file is retained. Here we set 31 days. The operation is as follows: SQL > show parameter keep_timeNAME TYPE VALUE -control_file_record_keep_time integer 7SQL > SQL > alter system set control_file_record_keep_time=31 scope=both -- dynamic parameters SQL > show parameter keep_timeNAME TYPE VALUE -control_file_record_keep_time integer 31 step 2: create the detele_archivelog.sh script to choose the path $mkdir-p / home/oracle/scripts to store the script-- create the script storage directory $cd / home/oracle/scripts-- open / home/oracle$ touch delete_archivelog.sh-- create the script $chmod 755 delete_archivelog.sh-- grant read and write access to $vi delete_archivelog. Sh-Editing scripts pay attention to modifying ORACLE_SID Log path should be written as absolute path. Not writing absolute path will lead to successful execution alone. No corresponding log script can be found during scheduled task execution: cat > / home/oracle/scripts/delete_archivelog.sh
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.