Home » Infrastructure » Linux » Clean up Script (Oracle 10.2.0.4 RHEL 4,)
Clean up Script [message #406972] Mon, 08 June 2009 01:34 Go to next message
rsreddy28
Messages: 295
Registered: May 2007
Senior Member
Hi All,

I'm trying to invoke a clean up script which deletes all the trace and the audit files after 'X' days . But the problem is when I run the script it's asking for the instance number as we have multiple instances running on the server , only when I enter the instance number , it's deleting the older trace files.

Kindly find the attached script and let me know where I'm wrong .

Thanks,
Raj
  • Attachment: Purge.txt
    (Size: 0.42KB, Downloaded 223 times)
Re: Clean up Script [message #406994 is a reply to message #406972] Mon, 08 June 2009 02:17 Go to previous messageGo to next message
Michel Cadot
Messages: 64152
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
It is not your script that ask it is your .profile, change it accordingly.

Regards
Michel
Re: Clean up Script [message #407001 is a reply to message #406994] Mon, 08 June 2009 02:40 Go to previous messageGo to next message
rsreddy28
Messages: 295
Registered: May 2007
Senior Member
Hi ,

I did change the .profile also , but still getting the same. Can you help me out please
Re: Clean up Script [message #407009 is a reply to message #407001] Mon, 08 June 2009 03:00 Go to previous messageGo to next message
Michel Cadot
Messages: 64152
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
I meant .bash_profile (read your script) and nobody can help you as we have not this file.

In addition, this is NOT an Oracle-related question.

Regards
Michel
Re: Clean up Script [message #407052 is a reply to message #406972] Mon, 08 June 2009 05:23 Go to previous messageGo to next message
Mahesh Rajendran
Messages: 10672
Registered: March 2002
Location: oracleDocoVille
Senior Member
Account Moderator
You can have a custom file that will list all the ORACLE_SID and make your script read the file
or
just read oratab file.
Re: Clean up Script [message #407353 is a reply to message #407052] Tue, 09 June 2009 19:16 Go to previous message
babuknb
Messages: 1734
Registered: December 2005
Location: NJ
Senior Member

your post .bash_profile file

thanks
Previous Topic: Invoking crontab in RHEL4
Next Topic: copying files from different machine
Goto Forum:
  


Current Time: Sat Dec 10 19:01:22 CST 2016

Total time taken to generate the page: 0.18819 seconds