Monitor archived log disk usage

is there an easy way to monitor the disk usage on
archived redo logs (/archive in unix platform) in
plsql (general user if possible)? Thanks.
- Zack Hu

You cannot easily do it from PL/SQL. You would need to write a shell script to do it.
We use a script that uses df -k and awk to find the percent used foreach ofthe mount points, then depending on thresholds, we send an email.
It goes something like this (O/S Sun Solaris 9.5
filesystems=`df -k|awk '{print $1"!"$6"!95"}'|tail +2`
for f in $filesystems
do
   fs=`echo $f|awk -F! '{print $1}'`
   perc=`echo $f|awk -F! '{print $3}'`
   mnt=`echo $f|awk -F! '{print $2}'`
   chk=`df -k $fs|tail +2|awk '{print $5}'|awk -F% '{print $1}'`
   if [ $perc -lt $chk ]; then
      email dba with $mnt $perc and $chk
   fi
doneThere is, of course, a lot more error checking and stuff, but that is the gist.
HTH
John

Similar Messages

  • How to monitor DFS shares disk usage/free space?

    How to monitor DFS shares disk usage/free space?
    Using Netapp filer shares to which DFS points. Looking for powershell script to send report.

    Hi,
    How about using Disk Quota function in FSRM (File Server Resource Manager)?
    Please see:
    Quota Management
    http://technet.microsoft.com/en-us/library/cc755917(v=ws.10).aspx
    In your case you can setup a soft quota with a specific size so that when it runs out of space you set, you will get an email or warning according to your setup. 
    If you have any feedback on our support, please send to [email protected]

  • Activity Monitor shows wrong disk usage

    On my new MacBook Air (with Lion), Activity Monitor states I'm using 123 GB of the available 264 GB -- which is impossible, as it is still a "shadow" of my MacBook Pro, which only is using 107 GB of its 128 GB. Also, WhatSize on my Air is showing only 40 GB used... why would Activity Monitor be so wildly off -- or is there something else (possibly Lion-related) going on?

    See:
    Where did my Disk Space go?
    What are Local Snapshots?

  • How to exam archive logs

    System filled up archive-logs disk unexpectedly. This may caused by some unknown application process. How can I tracking this?

    Hi James:
    You better find out which application fills up the archive log destination "unexpectedly". You should also write a script to monitor the archive log destination. If its usage reaches to a certain percentage, says 80%, then kicks off a backup process to backup the archive logs.

  • Archived log missed in standby database

    Hi,
    OS; Windows 2003 server
    Oracle: 10.2.0.4
    Data Guard: Max Performance
    Dataguard missed some of the archivelog files and but latest log files are applying. standby database is not in sync with primary.
    SELECT LOCAL.THREAD#, LOCAL.SEQUENCE# FROM (SELECT THREAD#, SEQUENCE# FROM V$ARCHIVED_LOG WHERE DEST_ID=1) LOCAL WHERE LOCAL.SEQUENCE# NOT IN (SELECT SEQUENCE# FROM V$ARCHIVED_LOG WHERE DEST_ID=2 AND THREAD# = LOCAL.THREAD#);
    I queried above command and I found some files are missed in standby.
    select status, type, database_mode, recovery_mode,protection_mode, srl, synchronization_status,synchronized from V$ARCHIVE_DEST_STATUS where dest_id=2;
    STATUS TYPE DATABASE_MODE RECOVERY_MODE PROTECTION_MODE SRL SYNCHRONIZATION_STATUS SYN
    VALID PHYSICAL MOUNTED-STANDBY MANAGED MAXIMUM PERFORMANCE NO CHECK CONFIGURATION NO
    Anyone can tell me how to apply those missed archive log files.
    Thanks in advacne

    Deccan Charger wrote:
    I got below error.
    SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE DISCONNECT FROM SESSION;
    ALTER DATABASE RECOVER MANAGED STANDBY DATABASE DISCONNECT FROM SESSION
    ERROR at line 1:
    ORA-01153: an incompatible media recovery is activeYou need to essentially do the following.
    1) Stop managed recovery on the standby.
    ALTER DATABASE RECOVER MANAGED STANDBY DATABASE CANCEL;2) Resolve the archive log gap - if you have configured FAL_SERVER and FAL_CLIENT Oracle should do this when you follow step 3 below, as you've manually copied the missed logs you should be OK
    3) restart managed recovery using the command shown above.
    You can monitor archive log catchup using the alert.log or your original query.
    Niall Litchfield
    http://www.orawin.info/
    Edited by: Niall Litchfield on May 4, 2010 2:29 PM
    missed tag

  • What are Microsoft- or other's-best practice or recommendation of Disk usage, CPU usage, memory usage monitoring to prevent system trouble ?

    We use win2003,win2008,win2012 servers.
    I heard somewhere that Microsoft recommendation threshold of disk usage monitoring is ( free disk space >= 15- 20 %) , if I remember correctly, but how about CPU usage and memory usage monitoring ? 
    What are  Microsoft- or other's-best practice or recommendation of Disk usage, CPU usage, memory usage monitoring to prevent system trouble and improve availability ?

    Hi,
    You can refer the following Performance Tuning Guidelines,
    Performance Tuning Guidelines for Windows Server 2003
    http://download.microsoft.com/download/2/8/0/2800a518-7ac6-4aac-bd85-74d2c52e1ec6/tuning.doc
    Performance Tuning Guidelines for Windows Server 2008 R2
    http://blogs.technet.com/b/josebda/archive/2010/08/27/performance-tuning-guidelines-for-windows-server-2008-r2.aspx
    WINDOWS SERVER 2012 - PERFORMANCE TUNING GUIDELINES
    http://blogs.technet.com/b/itprocol/archive/2012/11/27/windows-server-2012-performance-tuning-guidelines.aspx
    Hope this helps.
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • How to increase Disk usage reported in Resource Monitor

    Hi,
    I wonder how I can increase Disk usage reported in the Resource Monitor. When I use the 7200 Hard drive or SSD, the max usage is 1Gb/sec.
    Thank you for your help.
    HN

    Hi,
    As I understand, you want to increase the size of the root partition (where you installed Solaris) which resides in c1t0d0s0. I think it can be done using Concatenations from Solaris Volume Manager (SVM).
    I have tried it in non root partition like /export/home and it is very easy.
    metainit -f d0 2 1 c1t0d0s7 1 c2t0d0s7 //this will create volume d0 as a concatenation
    growfs -M /export/home /dev/md/rdsk/d0 //this will grow the /export/home partition
    Regards,
    Rei

  • Deleting the old Archive Log Files from the Hard Disk

    Hello All,
    I want to delete the old archive files of Oracle. These files are very old and consuming very huge disk space.
    Is there any way by which I can delete these files from the Hard Disk?
    Can I directly delete them using the Operating System Command?
    Will it cause any dilfference to the normal functioning of my Database?
    If I need to delete these files, do I need to bring the database down?
    Please guide me.
    I need to do this activity to make some space free on the Hard Disk.
    Thanks in advance.
    Himanshu

    Hi.
    Keep archived logs from time of last backup and forward to currenct time on disk together with the backup itself. And keep older archived logs together with older warm/cold backupfiles on tape as long as there is enough capasity or following your recovery strategy. This way you might be able to roll forward a recovery without restoring these files from tape which often the faster.
    Older archived logs can be deleted manually, with scheduled OS script or automatically with RMAN.
    Good luck
    rgds
    Kjell Ove

  • Excessive disk usage when I drag the log file viewer window (why)?

    When I drag the Log File Viewer window in Gnome, I get huge amounts of hard disk usage and the hard drive makes a loud rumbling noise. This happens only while dragging the Log File Viewer window and no other windows (that I've noticed so far).
    Why is this happening?
    Last edited by trusktr (2012-01-11 05:27:54)

    Elements11DRC
    What version of Premiere Elements are you working with and on what computer operating system is it running?
    Can we assume by your selected ID, that the program is Premiere Elements 11?
    Pending further details, I will assume that you are working with Premiere Elements 11 on Windows 7, 8, or 8.1 64 bit.
    Where is this "My Videos" Folder - on a DVD disc being used as a DataDisc for video storage purposes?
    If so, Add Media/DVD Camera or Computer Drive/Video Importer and from there automatically into the project in Project Assets as well as on the Timeline.
    If your "My Videos" Folder is a folder on the computer hard drive, then Add Media/Files and Folders to get the video into Project Assets from where you drag the video to the Timeline.
    Now for the video that you are trying to import...what are its properties
    Video Compression
    Audio Compression
    Frame Size
    Frame Rate
    Interlaced or Progressive
    File Extension
    Pixel Aspect Ratio
    Probably answered the easiest by knowing the brand/model/settings of the camera that recorded the video.
    Prime interest, that video compression. It could be MotionJPEG which can be problematic for Premiere Elements. It could be AVCHD.avi which cannot be imported.
    We can go into greater detail on your project details once we rule in or out any of the factors mentioned above.
    By the way, what is the destination for this project....burn to disc DVD or Blu-ray...export to file saved to the computer hard drive...other?
    More later.
    Thanks.
    ATR

  • Any 3rd party Database Activity Monitoring products that read Archive Logs?

    I've been doing lots of research to find auditing-related 3rd party software products that read Oracle's archive log files. Many products are available for 'log' monitoring for security etc., but so far I've not found any that read the actual archive log files themselves. LogMiner is useful, but need to know if other products exist.
    Any info is appreciated! Thanks.....

    Thanks for your reply, Satish

  • ZfD and ZfS on same server? Centralized monitoring of disk usage? ZfS 6.5 or 7?

    We have ZfD running on one server for approx. 600 users (Sybase db on
    NetWare 6.5).
    We use it for; WS registration, WS Inventory, Application Mgmt, NAL
    database, Imaging)
    I have a mixture of Microsoft Windows and Novell NetWare servers.
    Approximately:
    30 Microsoft Windows servers (2000 and 2003)
    10 Novell NetWare servers (NW 5.1 SP7 and NW 6.5 SP3)
    Q1: Is it feasable to have the ZfS backend running on the same server that
    hosts the ZfD backend ?
    We are trying to find a way to monitor all server for disk usage. Ideally
    we want to get a view/report of all servers (regardless of Novell or
    Microsoft) to see where each disk is at with regards to available space and
    also see historical trends for disk usage.
    Q2: Can ZfS do this for us? We are licensed to use it but so far we've
    only implemented the ZfD 6.5.2 and are quite please with the results.
    Q3: Also, since we are licensed to use the latest ZfD and ZfS, any reason
    to implement ZfS 7 instead of ZfS 6.5? We know that ZfD 7 is pretty much
    the same as ZfD 6.5.2 so we've decided to hold back on this upgrade. If we
    move forward with ZfS, I'm guessing that sticking with same version being
    used with ZfD is a good idea?
    Thanks for any answers!
    Marc

    Marc Charbonneau,
    >Q1: Is it feasable to have the ZfS backend running on the same server that
    >hosts the ZfD backend ?
    >
    >We are trying to find a way to monitor all server for disk usage. Ideally
    >we want to get a view/report of all servers (regardless of Novell or
    >Microsoft) to see where each disk is at with regards to available space and
    >also see historical trends for disk usage.
    Yes, it's very workable with both ZFD and ZFS on the same box. ZFS can
    monitor any of these features. It uses SNMP to do this on both netware and
    windows.
    >
    >Q2: Can ZfS do this for us? We are licensed to use it but so far we've
    >only implemented the ZfD 6.5.2 and are quite please with the results.
    >
    Glad to hear ZFD is working for you.
    >Q3: Also, since we are licensed to use the latest ZfD and ZfS, any reason
    >to implement ZfS 7 instead of ZfS 6.5? We know that ZfD 7 is pretty much
    >the same as ZfD 6.5.2 so we've decided to hold back on this upgrade. If we
    >move forward with ZfS, I'm guessing that sticking with same version being
    >used with ZfD is a good idea?
    Yes, although ZFS7 subscribers can run on XP, but I don't think 6.5 can.
    In a way, zfd and zfs are very separate and the patches do not have to
    match, but if you can keep it the same, than do. :)
    Hope that helps.
    Jared
    Systems Analyst at Data Technique, INC.
    jjennings at data technique dot com
    Posting with XanaNews 1.17.6.6 in WineHQ
    Check out Novell WIKI
    http://wiki.novell.com/index.php/IManager

  • ZfD and ZfS on same server? Centralized monitoring of disk usage? ZfD 6.5 or 7?

    We have ZfD running on one server for approx. 600 users (Sybase db on
    NetWare 6.5).
    We use it for; WS registration, WS Inventory, Application Mgmt, NAL
    database, Imaging)
    I have a mixture of Microsoft Windows and Novell NetWare servers.
    Approximately:
    30 Microsoft Windows servers (2000 and 2003)
    10 Novell NetWare servers (NW 5.1 SP7 and NW 6.5 SP3)
    Q1: Is it feasable to have the ZfS backend running on the same server that
    hosts the ZfD backend ?
    We are trying to find a way to monitor all server for disk usage. Ideally
    we want to get a view/report of all servers (regardless of Novell or
    Microsoft) to see where each disk is at with regards to available space and
    also see historical trends for disk usage.
    Q2: Can ZfS do this for us? We are licensed to use it but so far we've
    only implemented the ZfD 6.5.2 and are quite please with the results.
    Q3: Also, since we are licensed to use the latest ZfD and ZfS, any reason
    to implement ZfS 7 instead of ZfS 6.5? We know that ZfD 7 is pretty much
    the same as ZfD 6.5.2 so we've decided to hold back on this upgrade. If we
    move forward with ZfS, I'm guessing that sticking with same version being
    used with ZfD is a good idea?
    Thanks for any answers!
    Marc

    Marc,
    It appears that in the past few days you have not received a response to your
    posting. That concerns us, and has triggered this automated reply.
    Has your problem been resolved? If not, you might try one of the following options:
    - Do a search of our knowledgebase at http://support.novell.com/search/kb_index.jsp
    - Check all of the other support tools and options available at
    http://support.novell.com.
    - You could also try posting your message again. Make sure it is posted in the
    correct newsgroup. (http://support.novell.com/forums)
    Be sure to read the forum FAQ about what to expect in the way of responses:
    http://support.novell.com/forums/faq_general.html
    If this is a reply to a duplicate posting, please ignore and accept our apologies
    and rest assured we will issue a stern reprimand to our posting bot.
    Good luck!
    Your Novell Product Support Forums Team
    http://support.novell.com/forums/

  • Difference between Available and Used in Info for MacIntosh HD and Space Free and Space Utilised under Activity Monitor, Disk Usage?

    I have a MacBook Air 2010, upgraded to OSX Version 10.8.4.  When I click the Macintosh HD and then look under Info, it says I have 120.47GB capacity, Available 60.97GB, Used 59.5GB.  However when I look under Activity Monitor, Disk Usage it says Space Utilised 92.18GB, Space free: 28.29GB.  Questions:
    Why the difference?
    Which is more important for computer speed?
    How to I reduce "Space Utlised" to closer to "Used"?  (I've already moved 25GB of the more bulky, less immediate data to external storage from the computer, including emptying IPhoto Trash and the main Trash.  The Space Utilised dropped only from 95GB to 92GB--while the Used space dropped from 85GB to 60GB.)

    Iheartapple1970
    Just to let you I tried the reindexing before the Mendes advice and it had no effect.  Of course, I may have done it wrong. It was the HD icon from the desktop which I dragged into the Privacy window of Spotlight (and then did the +, OK, - and close Spotlight).  Should I have dragged in something else?  Or opened up the HD and dragged in all the contents?
    Also, there is a small section in my HD which is for my wife's account which has a separate user name and password, although it has no data in it and I set it up while under my administrator account original, so my MacAir may think I still "own" it; in any case, I did not get any sort of error message saying I did not have ownership of the entire HD.

  • RMAN9I HOW TO RESTORE ARCHIVE LOGS WITH LIMITED DISK SPACE

    제품 : RMAN
    작성날짜 : 2002-12-09
    RMAN9I HOW TO RESTORE ARCHIVE LOGS WITH LIMITED DISK SPACE
    ==========================================================
    PURPOSE
    이 자료는 Oracle 9.2 이상의 RMAN에서 사용 가능한 MAXSIZE 기능에 대하여
    설명할 것이다.
    How to restore archive logs with limited disk space
    Old Backup을 사용하여 RMAN으로 database를 recvoery할때, 모든 archived
    redo logfile들을 Restore할 destination의 disk space가 모자란 경우를 종종 만난다.
    이러한 경우 여러 개의 restore and recovery job으로 나누어 수행한다.
    즉, 첫 번째 restore and recovery job이 끝나면 archived redo logfile들을 지우고
    다음 적용될 것들을 restore한다. 그리고 다시 Recovery를 수행한다. 이러한 작업을
    원하는 시점까지 recovery를 하기위해 반복적으로 수행한다.
    Oracle 9iR2(9.2.0.x)부터 RMAN은 MAXSIZE option을 제공하는데 이것은 archive log
    file이 restore될 disk의 space를 control할 수 있게 해 준다.
    만약 disk space가 매우 제한적이라면, 즉 예를 들어 모든 archive log의 size 합보다
    disk free space가 적다면 MAXSIZE option을 사용하는 것은 매우 유용하다.
    이 OPTION이 기술되면 RMAN은 Media Manager에게 disk space 크기에 부합하는 만큼만
    archive log들을 restore하도록 한다. 부가적인 restore operation들은 restore된
    마지막 archive log가 적용될 때마다 발생한다.
    MAXSIZE option은 이러한 작업들을 하나의 rman job으로 처리하게 해 주고
    실수를 하지 않게 해 준다.
    아래는 MAXSIZE를 설명하기 위한 예제이며 총 6 단계로 구성되어 있다.
    STEP 1: Add data to the database to enforce log switches
    STEP 2: Backup the database and archive logs and delete the logs
    STEP 3: Add additional data to enforce new log switches
    STEP 4: Remove the data file and simulate a database crash
    STEP 5: Restore the data file from the backup
    STEP 6: Recover the database using MAXSIZE
    위 예제는 Unix와 Windows 모두에 적용될 수 있다.
    STEP 6 는 다음과 같은 조건으로 두 번 수행될 것이다.
    1) MAXSIZE가 archive log size보다 작은 경우:
    이 경우 RMAN-6558 Error message를 만나게 된다.
    그러므로 MAXSIZE를 archive log보다는 크게 설정해야한다.
    2) MAXSIZE가 archive log size보다 큰 경우:
    예를 들어 여러 개의 archive log를 포함할 수 있을 정도로 크게 설정하면
    restore/recovery는 user에게 transparent하게 수행되어진다.
    즉 archive log들은 restore된 후 applied되고 deleted되어 진다. 다시 새로운
    archive log들이 restore되어지고 applied된 후 deleted 되어 진다. 이러한 작업은
    recovery가 끝날 때까지 반복되어진다. 이러한 작업들이 진행되는 동안 RMAN은
    아무런 Message도 발생시키지 않는다.
    # Step 1: INSERT enough new data to generate log switches
    create table rman_tst (col1 varchar2 (10));
    begin
    for i in 1..30000 loop
    insert into rman_tst values(i,'test');
    commit;
    end loop;
    end;
    # Step 2: BACKUP the database and the archive logs automatically
    # and then delete the input
    run {
    backup database format='/web01/usupport/krosenme/admin/backups/db_%d%s%t'
    plus archivelog format='/web01/usupport/krosenme/admin/backups/arch_%d%s%t'
    delete input;
    # Step 3: INSERT enough new data to generate new log switches
    begin
    for i in 1..30000 loop
    insert into rman_tst values(i,'test');
    commit;
    end loop;
    end;
    # Step 4: REMOVE users01.dbf file and crash the database
    mv users01.dbf users01.org
    shutdown abort
    # Restore is now needed as the data file is deleted. The backup was
    # taken before the new data was added to it, thus archive logs are
    # needed to bring the database up to date
    # Step 5: RESTORE the data file from the full backup
    run {
    restore datafile '/web01/usupport/krosenme/oradata/kro_920/users01.dbf';
    # Step 6: RECOVER
    run {
    recover database delete archivelog maxsize 10 K;
    # This will fail with RMAN-6558 as the archived log has a size of 16 KB,
    # which is bigger than MAXSIZE limit of 10 KB. So the error is expected
    # and MAXSIZE works as designed.
    # Now rerunning STEP 6: but with MAXSIZE 50 K
    run {
    recover database delete archivelog maxsize 50 K;
    RELATED DOCUMENTS
    Recovery Manager Reference, Release 2 (9.2)

    cold backup means offline backup, you shut database normally and copy datafiles to another location.
    i think operating system does not matter that much but it is RedHat Linux Enterprise Server.
    backing up archivelogs whith rman script which is:
    run {
    allocate channel c1 type disk format '$BKUPLOC/arch_%d_%u_%s_%p.bkp';
    change archivelog all validate;
    sql 'ALTER SYSTEM ARCHIVE LOG CURRENT';
    backup archivelog time between 'SYSDATE - (30*60/(60*60*24))' and 'sysdate';
    release channel c1;
    so here is the details.
    1. because everything is lost, we restored all files(datafiles, controlfiles, redologs etc) from offline backup meaning copied all files from another location to corresponding location.
    2. want to apply archive logs which were created after cold backup till disk failure and we have these archive logs with backups which were taken by rman.
    So
    first of all, we want to register these archive log rman backups(because these backup information does not exist in restored controlfile)
    and then restore them and then apply them.
    we need rman commands to register these backups and restore them.
    Regards,
    Kamil

  • How to monitor the successful archive log shipment to the standby database

    Hello,
    From the primary database, which data dictionary do I view to get information whether the standby database has received and processed the archive logs from the primary database. Both databases are 11202 on linux. Another question, which views on the primary database contain a flag sent by the standby database to the primary database to let the primary database knows that the standby database is up and functional? My purpose is to query the primary database for infomation that tell me the standby database is alive and functioning. I want to only query the primary database for these information about the standby database. Thank you in advance.

    watson2011 wrote:
    Hello,
    From the primary database, which data dictionary do I view to get information whether the standby database has received and processed the archive logs from the primary database. Both databases are 11202 on linux. Another question, which views on the primary database contain a flag sent by the standby database to the primary database to let the primary database knows that the standby database is up and functional? My purpose is to query the primary database for infomation that tell me the standby database is alive and functioning. I want to only query the primary database for these information about the standby database. Thank you in advance.You can troubleshoot standby by views as
    v$managed_standby (standby)
    v$dataguard_status
    v$dataguard_stats
    Some of the new views are introduced from 11g, check below link too
    http://docs.oracle.com/cd/B28359_01/server.111/b28294/views.htm#i79129

Maybe you are looking for

  • Wrong display on MacBook Pro

    My son changed the display setting on my MacBook Pro and I can't get it back to how it was... Even though I change resolutions, the text is huge and the display doesn't fit the screen. How can I get back the original setting?

  • Turning screen Lumia 920

    The screen of my Lumia 920 doesn't turn automaticly anymore. Can I change the settings somewhere?

  • Syncing iphoto to ipad

    I am having a problem syncing any photos from iphoto to my ipad 2. I am using iPhoto 9.1.5 and running Lion. The iPad 2 was purchased 2 months ago. The long version is, when I first synced the iPad, it would boot iPhoto automatically and lock up. Had

  • Bank Type in Payment Transactions in Customer master record

    Key you enter in the line item to specify which business partner's bank the system should use. Exactly what key it is talking about. In case i have 3-4 banks.

  • NLB or Cluster 2012 Print servers

    I'd like the ability to cluster/load balance/failover print servers. These would be Server 2012 or 2012 R2 OS. I have searched the forum's and have seen good and bad experiences for clustering and/or NLB'ing. I have been seeing that this type of HA i