0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

oracle archivelog管理に必要そうなコマンド

Last updated at Posted at 2019-03-15

アーカイブログを管理しようとして知ったコマンド、SQLをメモ

環境

  • oracle12cR2
  • Red Hat Enterprise Linux Server release 6.6

アーカイブログの出力先ディレクトリ

  • /u03/app/oracle/fast_recovery_area/[sid_連番]/archivelog

アーカイブログ出力容量設定

  • alter system set DB_RECOVERY_FILE_DEST_SIZE=サイズ;

※サイズを10GBに設定する
as sysdbaでsqlplus

alter system set DB_RECOVERY_FILE_DEST_SIZE=10G;

アーカイブログ出力容量の使用量確認

select
name,
round(space_limit/1024/1024/1024,2)||'GB' space_limit,
round(space_used/1024/1024/1024,2)||'GB' space_used,
round((space_limit - space_used)/1024/1024/1024,2)||'GB' space_available,
NUMBER_OF_FILES,
round(space_used/space_limit ,3)*100 used_percent
from 
v$recovery_file_dest;
  • 結果
name space_limit spacce_used space_available number_of_files used_percent
-------------------------------------------------------------------------

/u03/app/oracle/fast_recovery_area 10GB 9GB 1GB 20 90
0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?