Proactive monitoring scripts required

If possible,can you also share with me the scripts for pro active monitoring of the databases i.e
script to check the total free space of the databases
script to check the alert log file
script to see and ping me a message if the tablespace is less etc
Any scripts for both the unix and windows is required.

hi,
Are you monitoring the DB with OEM? All you have asked for is in OEM.
rgds
alan

Similar Messages

  • Proactive monitoring scripts

    If possible,can you also share with me the scripts for pro active monitoring of the databases i.e
    script to check the total free space of the databases
    script to check the alert log file
    script to see and ping me a message if the tablespace is less etc
    Any scripts for both the unix and windows is required.

    Install Grid Control and forget about scripts.

  • An error occcurred on line 105 while executing script 'MOM Backward Compatibility Service State Monitoring Script"

    We've been getting the following error for some time now.
    An error occurred on line 105 while executing script 'MOM Backward Compatibility Service State Monitoring Script'
    Source: Microsoft VBScript runtime error
    Description: The remote server machine does not exist or is unavailable: 'GetObject'
    One or more workflows were affected by this.
    Workflow name: System.Mom.BackwardCompatibility.ServiceStateMonitoring
    Instance name: server.domain.local
    Instance ID: {INSTANCE}
    Management group: GROUP
    Unfortunately the instance in question has since been decommissioned and simply does not exist any more. 
    We're currently on a repeat count of over 350,000 and I would REALLY like to get it stopped. I've had a look at adding an override but that points to the management server rather than the instance itself.
    Does anyone have any suggestions?
    thanks in advance!

    Hi Steven,
    There are for option for us to override a monitor ot rule:
    For all objects of class:             
    Class            
    When you select this option for your override, the override settings apply to all objects in the class at which the rule or monitor is targeted.
    For a group            
    When you select this option for your override, the override settings apply only to members of the group. The rule or monitor without the override settings continues to apply to all objects in the targeted class except for those objects that are also members
    of the group used for the override.
    When you create a group, you save it to an unsealed management pack. However, an element in an unsealed management pack, such as an override, cannot reference an element in a different unsealed management pack, such as a group. If you are going to use a group
    to limit the application of an override, you must either save the group to the same unsealed management pack as the override, or you must seal the management pack that contains the group.
    For a specific object of class:             
    Class            
    When you select this option for your override, the override settings apply only to the specified object. The rule or monitor without the override settings continues to apply to all other objects in the targeted class.
    For all objects of another class            
    When you select this option for your override, the override settings apply only to objects of a class other than the targeted class. The rule or monitor without the override settings continues to apply to all objects in the targeted class.
    Did you try to override it for a specific object of class?
    Regards,
    Yan Li
    Regards, Yan Li

  • Oracle 9i monitoring scripts in HACMP 5.4

    Hi,
    I have installed Oracle 9.2.0.8 on AIX 5.3 (HACMP 5.4) in active passive cluster.
    I have made startup and shutdown scripts for Oracle.
    Can anyone please guide me or point me to some link for the monitoring scripts for Oracle in HACMP so that failover can happen automaticaly.
    Regards,
    Amit E

    Have you tried changing the /etc/redhat-release file? Change the "release 5" to "release 4" and see what happens. Make sure you change it back after the install.
    Tom

  • Import Format script required to update multiple fields

    Further to my previous post yesterday (Import Format script required to work across multiple fields I now need my import script to update multiple (two) fields at the same time, based on criteria set across multiple fields. So far, I can use DW.Utilities.fParseString to assess the values across multiple fields, but I now need to update not only the field in question, but also an additional field at the same time. For example:
    Function TBService(strField, strRecord)
    ' How do I update a second field at the same time?
    Dim strField2 As String
    If Left(strField, 1) = "S" Then
    If DW.Utilities.fParseString (strRecord, 3, 8, ",") = "B1110" Then
    strField2 = "N101"
    Else
    strField2 = "Network N/A"
    End If
    TBService = strField
    Else
    TBService = "Service N/A"
    End If
    End Function
    Is this even possible? Should I be looking at creating an event script which would work post-import? Or can this be done right here in the import script?

    All the logic you require can be encapsulated in the import script for the second field. You don't need to reference the second field in the first import script.
    Edited by: SH on May 2, 2012 5:39 PM

  • Oracle 9i database monitoring scripts

    Hi Friends,
    I am asked by my boss to submit weekly reports about the database status.
    She wanted something in excel format.
    Can you suggest me what reports do I submit?
    I found the following monitoring scripts from google:
    Are these scripts still relevant ,or applicable, or obsolete?
    PURPOSE
    This article contains a few ready-made queries on V$SQLAREA
    for identifying the top 10 most resource-consuming SQL statements
    with a variety of criteria.
    The thresholds used are the same as used by default in Statspack:
    Buffer Gets : 10,000
    Physical Reads : 1,000
    Executions : 100
    Parse Calls : 1,000
    Sharable Memory : 1,048576
    Version Count : 20
    Top 10 by Buffer Gets:
    set linesize 100
    set pagesize 100
    SELECT * FROM
    (SELECT substr(sql_text,1,40) sql,
            buffer_gets, executions, buffer_gets/executions "Gets/Exec",
            hash_value,address
       FROM V$SQLAREA
      WHERE buffer_gets > 10000
    ORDER BY buffer_gets DESC)
    WHERE rownum <= 10
    Rem Top 10 by Physical Reads:
    set linesize 100
    set pagesize 100
    SELECT * FROM
    (SELECT substr(sql_text,1,40) sql,
            disk_reads, executions, disk_reads/executions "Reads/Exec",
            hash_value,address
       FROM V$SQLAREA
      WHERE disk_reads > 1000
    ORDER BY disk_reads DESC)
    WHERE rownum <= 10
    Rem Top 10 by Executions:
    set linesize 100
    set pagesize 100
    SELECT * FROM
    (SELECT substr(sql_text,1,40) sql,
            executions, rows_processed, rows_processed/executions "Rows/Exec",
            hash_value,address
       FROM V$SQLAREA
      WHERE executions > 100
    ORDER BY executions DESC)
    WHERE rownum <= 10
    Rem Top 10 by Parse Calls:
    set linesize 100
    set pagesize 100
    SELECT * FROM
    (SELECT substr(sql_text,1,40) sql,
            parse_calls, executions, hash_value,address
       FROM V$SQLAREA
      WHERE parse_calls > 1000
    ORDER BY parse_calls DESC)
    WHERE rownum <= 10
    Top 10 by Sharable Memory:
    set linesize 100
    set pagesize 100
    SELECT * FROM
    (SELECT substr(sql_text,1,40) sql,
            sharable_mem, executions, hash_value,address
       FROM V$SQLAREA
      WHERE sharable_mem > 1048576
    ORDER BY sharable_mem DESC)
    WHERE rownum <= 10
    Top 10 by Version Count:
    set linesize 100
    set pagesize 100
    SELECT * FROM
    (SELECT substr(sql_text,1,40) sql,
            version_count, executions, hash_value,address
       FROM V$SQLAREA
      WHERE version_count > 20
    ORDER BY version_count DESC)
    WHERE rownum <= 10
    ;I just feel the above reports not really meaningful :(
    Can you give me some other scripts that u have?
    Thanks a lot,
    MsK

    Thanks all :-*
    @sybrand
    Oracle 9i comes with Oracle Enterprise Manager. This includes a reporting website with monitoring scripts.
    Why write them yourself?My boss want a cumulative report over time, for example : what happened @ 1am,2am,3am on tuesday last week, why is the server so slow that the batch job did not complete as expected? Why was an error occured about a table that can not extend? Ora 1635. I mean you can see in the report that at this certain hour a certain tablespace was full.
    oops maybe tablespace sample is not logical :D
    say every day I can have excel reports of tablespace space status like:
    tablespace_name   used     free     date
    TS_DATA          1000K   5000k  1-Oct-2010
    TS_DATA          2000K   4000k  2-Oct-2010
    TS_DATA          3000K   3000k  3-Oct-2010
    TS_DATA          4000K   2000k  4-Oct-2010
    TS_DATA          5000K   1000k  5-Oct-2010
    TS_DATA          5000K      0k  6-Oct-2010Does Statspack can hold historical data for analysis? say for the last 24 hrs?
    Thanks a lot

  • Monitoring script

    I created a monitoring script which would run from crontab....Would anyone tell me how I would export Oracle SID in crontab script instead of hard coded it. Thanks.

    I do some simple checks for correct number of arguments using "if [[ $# -lt 1 ]]; then..."
    This is very simple and doesn't confirm that the arguments are valid.
    Example:
    if [[ $# -lt 1 ]]; then
      print "\n ERROR:  You did not specify an Oracle SID."
      print "\n Please enter which Oracle SID to import into. \n"
      exit 1
    else
      echo "\n  ORACLE_SID = $1 \n"
      echo "Do you wish to continue? \n "
        read REPLY
         case $REPLY in
            y|Y) echo "\n test good \n";;
            n|N) echo "\n exiting... \n"; return 1;;
            echo "Invalid response (Bozo).  Exiting..."
            echo ""
            return 2;
         esac
    fiBut my point was to show a quick and easy solution to the OP for his purposes.
    Using "echo $1 |. oraenv" passes the variable to oraenv and sets everything he needs for his purposes.
    From the sounds of the OP's question, it didn't seem to have the skills to develop more complex scripts.
    Personally, I like to use a special file that I keep updated on all servers.
    I call the file 'localsids' and place it in the /var/opt/oracle directory.
    I have a similar file called 'allsids', which contains a list of all sids on all servers for when I want to check all databases (e.g., such as for users having DBA role, or something like that).
    Then, I check for validity (and can add and remove SIDs from the file at will, (depending on purposes such as blackouts).
    I like using a loop for this purpose (SIDFILE='var/opt/oracle/localsids' cat $SIDFILE |while read SID... do....)
    Example:
    # ==================================================
    # check input given against valid sids on this machine
    # ==================================================
    export SIDFILE='/var/opt/oracle/localsids'
    SID=`grep $1 $SIDFILE`
    if [ "$SID" = "$1" ]; then
    print "\n \"$SID\" verified... \n"
    else
    print "\n ERROR... \"$1\" is not a valid SID for this machine. \n"
    exit 1
    fiI have a couple other variations as well.
    I think it would be nice if OTN had a more appropriate forum for people like us who like scripting and/or what to share unix skills.

  • Tablespace growth monitoring script

    Hi,
    I am done with tablespace growth monitoring script.
    But I doesnot know how to configure it in WINDOWS to send alert MAIL.
    Is there any utility for mail configuration in windows.
    Please suggest any solution ASAP.
    Regards,
    Thiru

    It is called OEM alerts. I think we can have configuration in oracle eneterprise manager grid control for automated warnings for tablespace growth. You just have to read below link :
    http://download.oracle.com/docs/cd/B19306_01/server.102/b25159/monitor.htm#i1007180
    Something near to :
    Enterprise Manager Configuration--Management Services and Repository--Agent
    Regards
    Girish Sharma

  • Monitoring scripts for AlwaysOn Availability Group

    Does anyone have any any monitoring scripts for AlwaysOn AG using Transact SQL or stored procedures?   I'm not a strong coder and don't know Powershell at all.  But if there are some Powershell scripts we may be able to use them.  I've
    seen the dashboard but that's only good if you're logged onto it.
    I'm looking for things like monitoring when a database is suspended, send an alert to us but also tries to do the resume.
    Thanks for any info.

    Start with this list
    http://technet.microsoft.com/en-us/library/ff877954.aspx
    Automating the issue resolution has to conform to your operational standards. For example, if you use a file share witness for your quorum configuration and your monitoring tells you that it is offline, do you automate bringing it online or do you escalate
    to your infrastructure team so that they can look into it? If the database is suspended or the Availability Group in offline state, do you just bring it online or do you check other dependencies like the quorum configuration and instead perform a forced quorum?
    I'm a big fan of automation but make sure you define your process first so that you don't cause more issues as a result.
    Edwin Sarmiento SQL Server MVP | Microsoft Certified Master
    Blog |
    Twitter | LinkedIn
    SQL Server High Availability and Disaster Recover Deep Dive Course

  • Database uptime monitoring by either snmp or active monitor script anyone?

    Hi,
    Has anyone previously setup any type of active monitoring script through whats up gold or an snmp informant type of monitoring script to advise when a database is down or specific process is down?
    An example would be like ORACLE_PKG1, and the process is named ora_smon_hrprd88.
    This is what the HP-UX “ps” shows:
    tpadb01:/# ps -ef | grep -i ora_smon
    oracle 13207 1 0 Jan 1 ? 0:29 ora_smon_epprd88
    oracle 13281 1 0 Jan 1 ? 1:31 ora_smon_hrprd88
    oracle 13635 1 0 Jan 1 ? 1:03 ora_smon_fsprd84
    oracle 3620 1 0 Jan 2 ? 0:18 ora_smon_mtprd04
    oracle 14586 1 0 Jan 1 ? 0:23 ora_smon_mtprd05
    oracle 15223 1 0 Jan 1 ? 0:26 ora_smon_inprd88
    oracle 15879 1 0 Jan 1 ? 0:25 ora_smon_epsal88
    oracle 16769 1 0 Jan 1 ? 0:52 ora_smon_hrsal88
    root 17976 22609 0 10:46:39 ttyp2 0:00 grep -i ora_smon
    tpadb01:/#
    Not sure if the extra info helps, but you never know. We can set it up to send us database up alerts, but the problem I have is when the listener service is down I can't get my script to finish no matter how I change the values of my script around. I can provide my script if that would help as well. If someone has already done this and is willing to share great!
    Harvey

    I would suggest you install OEM Grid Control to monitor your databases. For basic monitoring function it's free. OEM GC works great, it's a little overweight though. It's also use SNMP.
    Or you can choose any third party tool like
    Monitoring Oracle Enterprise with Cricket
    http://www.mikehan.com/cricket/oracle.html
    or some commercial one like Quest Software.

  • Proactive monitoring

    Hi Expert,
    I would like to implement a proactive monitoring system to keep check the end to end performance and service level agreement (SLA) for different network equipment and systems. For example, three web servers are in production environment (2 routers and 16 ethernet switches, 3 firewalls ... ect), I would like to ensure that the network delay within SLA (e.g. less than 10ms), the service availability of web server / network (e.g. 99.5%), .. etc
    Any Cisco product (application) would offer above feature and function?
    Anita

    Hi Anita,
    Checkout Solarwind IP SLA monitor:
    http://www.solarwinds.com/products/ip-sla-monitoring/info.aspx
    Also, OpenNMS is a great NMS which can do hell lot of thing from a single box, only downside is that it is open source and hence you might have to do a bit of R&D to make it customise as per your needs:
    http://www.opennms.org/
    HTH,
    Smitesh
    PS: Please rate helpful posts...

  • Data Guard Gap Monitoring script

    Hello,
    Can anyone please provide me data guard gap monitoring script for databases(primary,standby) on RAC.
    Oracle RDBMS 11.2.0.2(4-node RAC) on RHEL 5.6.
    Thanks
    Edited by: 951368 on Dec 26, 2012 9:21 AM

    951368 wrote:
    Hello,
    Can anyone please provide me data guard gap monitoring script for databases(primary,standby) on RAC.
    Oracle RDBMS 11.2.0.2(4-node RAC) on RHEL 5.6.
    Thanks
    Edited by: 951368 on Dec 26, 2012 9:21 AMUse the script of MSeberg, Modify v$instance as gv$instance for RAC

  • A login webpage gives the message "This script requires that jquery.js be loaded first." then will not show the user ID and password login boxes. How can this be corrected?

    A login webpage gives the message "This script requires that jquery.js be loaded first." then will not show the user ID and password login boxes. How can this be corrected?

    That message is listed in two scripts on the bank's site. One function that can display the message is named PhotoRotator and the other is named PromoRotator. However, I can't seem to trigger the error myself.
    If you have any add-ons that alter the page, such as ad blockers, try creating an exception for these sites and see whether that helps:
    www.northrim.com<br>
    www.northrimbankonline.com
    You also could try this logon page: https://www.northrimbankonline.com/onlineserv/HB/Signon.cgi
    (''Obviously you should be cautious about links offered on public forums to ensure you are not being phished! Check them out carefully before entering your username and password.'')

  • Silent Installation Script Require

    Hi,
    Scripts require for silent installation of oracle 11g on Windows XP -32bit.
    Oracle :-- 11gR2
    OS :- Windows XP
    Thanx in advance.
    Regards,
    Praful K

    Hi,
    see the description in the installation manual: [url http://download.oracle.com/docs/cd/E11882_01/install.112/e10843/advance.htm]Silent install. You have to build your own script because the environment can be special.
    Herald ten Dam
    http://htendam.wordpress.com

  • Best proactive monitoring tool

    HI,
    Please advise the best network proactive monitoring tool, that can raise auto-alert tickets with Remedy software.
    Thanks

    1 Spotlight works in about the same fashion as Grid Control/OEM, so you need a database to store metrics
    2 Grid Control can also take care of Oracle patches, notifying you a patch has been released, and optionally install it, and even of O/S patches
    3 Spotlight is a product of a third party, so it will always be less tightly integrated with Oracle
    4 The Grid Control is interfaced by means of a browser, whereas Spotlight needs a fat client. If you want to have Spotlight on multiple systems, you have to buy it multiple times.
    Sybrand Bakker
    Senior Oracle DBA

Maybe you are looking for