Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to delete the archive log script that has been applied by dg

2025-03-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly introduces how to delete the archive log script that has been applied by dg, which has a certain reference value. Interested friends can refer to it. I hope you will learn a lot after reading this article. Let's take a look at it.

#! / bin/bash

# by ray

# 2017-08-30

# v0.1

. ~ / .bash_profile

# get sequence id that have applied.

[- e / home/oracle/.applied_archivelog.txt] & & rm-f / home/oracle/.applied_archivelog.txt

Sqlplus-s / nolog / home/oracle/log/delete_archivelog.log; exit 1)

Logfile=/home/oracle/log/delete_archivelog_ `date +% Y% m% dmurf% H% M% S`.log

Rman target / log $logfile append

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.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report