Welcome to the dBforums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

If you prefer not to see double-underlined words and corresponding ads, place your cursor
here for ContentLink opt out.

Go Back  dBforums > Database Server Software > Oracle > Archivelog - novice question - limiting number of archived log files

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-09-03, 02:43
aceLL aceLL is offline
Registered User
 
Join Date: Jan 2003
Posts: 4
Red face Archivelog - novice question - limiting number of archived log files

Hi,
I'm running oracle 9i database on Sun cluster in archivelog mode.
My question is how can I limit number of archived log files created?
Can I simply delete oldest archived log files when they start to eat disk
space? Or can database itself manage that?
Thanks
Reply With Quote
  #2 (permalink)  
Old 01-09-03, 03:49
berxh3g berxh3g is offline
Registered User
 
Join Date: Jan 2003
Location: Vienna, Austria
Posts: 101
Cool

Hi,
You can not limit the number of archive-logs created by the instance.
Archivelogs are copies of 'old' redo-log files. So you can change size of archivelogs by altering the redo-logs.
Archivelogs are required for recovery-scenarios. If you don't care of recovery, just delete them (or turn them off).
The database itself doesn't delete archivelogs, but the backup/recovery-tool RMAN can do a backup of these and delete them afterwards.
Please hav a look at the documentation about backup/recovery, general database administration and tuning issues (and maybe a lot more).

kind regards
__________________
^/\x
Reply With Quote
  #3 (permalink)  
Old 01-10-03, 20:07
Ruudboy Ruudboy is offline
Registered User
 
Join Date: Apr 2001
Location: Netherlands
Posts: 170
Normally, you delete your achivelogfiles AFTER you have made a new backup. You only need the archivefiles generated during and after your backup.

Say you start your backup at 22:00, you can delete all archive logfiles that were present before 22:00. (Of course delete them only if your backup succeeded.)
__________________
Ruud Schilders
-----------------
Oracle DBA
e-mail : ruudboy@gmail.com
URL : www.ruudschilders.com
ICQ : 397543
MSN: ruudboy@hotmail.com
For Oracle DBA's only:
http://www.oracledbaforum.com
Reply With Quote
  #4 (permalink)  
Old 01-13-03, 11:22
Lisa Brodell Lisa Brodell is offline
Registered User
 
Join Date: Jan 2003
Location: Atlanta
Posts: 2
Archive Logs

acell,
There is a really cool book by O'reilly called Oracle Scripts. The book contains a cd with many useful management scipts. A set of backup scripts is included. These backup scripts will run a hot backup of your database, (which is what you want to run in archivelog mode), and copies you used archive logs to a backup directory. I found these scripts to be very easy to configure as well. RMAN is also a useful tool to manage backups but does take a bit more configuration. If you do not have the infrastructure in place to run RMAN these scripts are a great option.
Reply With Quote
  #5 (permalink)  
Old 01-14-03, 15:33
clio_usa clio_usa is offline
Registered User
 
Join Date: Apr 2002
Location: California, USA
Posts: 482
Smile

1. You can control the number of redo log exntries/archived logs for certain operation only. Not all DML & DDL could be stoped of doing that: NOLOGGING

2. Yes, you can do that and you should do that before the system halts because the archived log destination is already full. But remember that you still need them untill the next successful valid cold/hot backup. So don't delete them, but archive them either on tape or another disk partition.

If you are using RMAN, than these scripts could help: RMAN CVS script , Netbackup shell script


Hope that helps,

clio_usa - OCP - DBA
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On