1. Log in with SYS user
Sqlplus Sys/pass@tt as Sysdba
2. Look at the location of Archiv log
Sql> Show parameter log_archive_dest;
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
Log_archive_dest string
Log_archive_dest_1 string
Log_archive_dest_10 string
3. General value is empty, you can use archive log list; Check the archive directory and log sequence
sql> archive log list;
Database Log Mode Archive mode
Automatic Archival Enabled
Archive Destination Use_db_recovery_file_dest
Oldest online log sequence 360
Next Log sequence to archive 360
Current Log Sequence 362
4. Check the use of Flash recovery area, you can see the archivelog has been very large, reached 96.62
Sql> select * from V$flash_recovery_area_usage;
5. Calculate the space already occupied by Flash recovery area
sql> select sum (percent_space_used) *3/100 from V$flash_recovery_area_usage;
SUM (percent_space_used) *3/100
-----------------------------
2.9904
6. Find recovery directory, show parameter recover
Sql> show parameter recover;
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
Db_recovery_file_dest String/u01/app/oracle/flash_recovery_area
Db_recovery_file_dest_size Big Integer 5G
Recovery_parallelism integer 0
7 The above results tell us that the archive location is using the default value, placed under Flash_recovery_area (Db_recovery_file_dest directory =/u01/app/oracle/flash_recovery_area)
[Root@sha3 10.2.0]# Echo $ORACLE _base
/u01/app/oracle
[Root@sha3 10.2.0]# CD $ORACLE _base/flash_recovery_area/tt/archivelog
Transfer or clear the corresponding archive log, delete some unused date directory files, pay attention to keep the last few files (for example, after 360)
---------------------------------------------------------------------------------------
Attention:
After the archive log is deleted, the control file must be maintained with Rman, otherwise the space display is still not released.
---------------------------------------------------------------------------------------
Other useful command:
----------------------------------
If archive log mode can not be normal startup, then first restore into noarchive log,startup success, and then shutdown;
Shutdown immediate;
startup Mount;
ALTER DATABASE Noarchivelog;
ALTER DATABASE open;
Shutdown immediate;
Startup again to archive log mode
Shutdown immediate;
startup Mount;
Show parameter log_archive_dest;
ALTER DATABASE Archivelog;
Archive log list;
ALTER DATABASE open;
If not, delete some archlog log
Sql> select group#,sequence# from V$log;
A log that is a log group one cannot be archived
Sql> ALTER DATABASE Clear unarchived logfile Group 1;
ALTER DATABASE open;
Finally, you can also specify the position of Arch Log, please follow the configuration below
Select name from V$datafile;
Alter system set log_archive_dest= '/opt/app/oracle/oradata/usagedb/arch ' scope=spfile
or modify the size
Sql> alter system set DB_RECOVERY_FILE_DEST_SIZE=3G Scope=both;
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.