Link to home
Start Free TrialLog in
Avatar of chrismarx
chrismarxFlag for United States of America

asked on

Alter Oracle DB_RECOVERY_FILE

Hi,
 I just solved my own connection issue with Oracle XE by running

SQL> ALTER SYSTEM SET DB_RECOVERY_FILE_DEST_SIZE=6294967296 SCOPE=BOTH;

the size of the C:\OracleFlash\XE\ARCHIVELOG had reached about 4gb, which was the old setting. now that I've fixed this problem, I'm wondering what I should do now (rather than just increasing the file size!). I'm fairly new to oracleXE, but familiar with sqlplus, etc. thanks!

Avatar of kimarti3
kimarti3

You just have to keep an eye on the size of your archivelog...if the amount of free space starts getting low, you will have to increase that DB_RECOVERY_FILE_DEST_SIZE.  Do you have the retention policy set for archivelog?  I would include archivelogs in your backups and have the system delete obsolete logs after they've been backed up.  This will help free up some of that space periodically.  You can do this via Enterprise Manager when you set up your backup.
Avatar of chrismarx

ASKER

This all concerns an OracleXE installation, and I'm not using enterprise manager. is there a way to determine which logs are obsolete without using the enterprise manager? I mean they're grouped by date, but.... also, can I just manually delete some of the folders from the archivelog folder? or will that cause problems
No, never manually delete folders from the archivelog folder.  If you do this, you will screw up your logs.  Its a bad thing to do.  Do you have a backup job in place to backup your data?  I'm not totally familiar with XE, but doesn't it have a page for backups, etc.?
thanks for your help. i pursued the issue of backups and found out why I was a little confused. Apparently XE does the deletion of automatically, and that process is precipitated by a running the RMAN utility doing a backup. I ran the automatic backup utility that comes with XE and got this:

RMAN-03009: failure of backup command on ORA_DISK_1 channel at 04/03/2007 11:19:
49
ORA-19809: limit exceeded for recovery files
ORA-19804: cannot reclaim 52428800 bytes disk space from 6294967296 limit

Recovery Manager complete.
====================   ERROR =============================
         Backup of the database failed.
         RMAN Error - See log for details .
         Log file is at C:\ORACLEXE\APP\ORACLE\PRODUCT\10.2.0\SERVER\DATABASE\OX
E_BACKUP_CURRENT.LOG.

the log file doesn't contain any other errors. any advice?
ASKER CERTIFIED SOLUTION
Avatar of kimarti3
kimarti3

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
thanks!
you were correct. in order for the backup to take place, the recovery file needed to be increased again. apparently oracleXE is configured to dump the log files when the RETENTION POLICY TO REDUNDANCY
setting is met (2), so I ran the backup twice, and then all the old log files were deleted!
thanks again!