Automatic scripts to monitor oracle performance

Hi,
I am in the process of developing standard scripts to monitor performance.Whenever I feel performance is not good I can run these to findout what is happening rather than going through each v$table.Please suggest me any links to these scripts.So that I can get good Idea about How to customize mine accroding to my environment
Thanks

What is your database version? 9i or 10g.
There are plenty of information in AWR (automatic Workload Repository) in 10g that will help you detect/manage your performance problems and you won't need to write scripts. It will also allow you to define baselines/metrics and notification methods.
The beauty of the AWR is that you will be able to customize it based on your environment.
Doc URL:
http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14211/autostat.htm

Similar Messages

  • Script to monitor oracle sessions

    Hi i am looking for a script to monitor oracle sessions......which should find idle sessions which are idle for more than 25 mins and it should be killed...
    is that possible.
    Thanks

    user11278505 wrote:
    Hi i am looking for a script to monitor oracle sessions......which should find idle sessions which are idle for more than 25 mins and it should be killed...
    is that possible.
    ThanksYes it is, use Resource Manager to manage your users,
    http://download.oracle.com/docs/cd/B28359_01/server.111/b28310/dbrm.htm#ADMIN027
    HTH
    Aman....

  • Service relocation automatic script required in oracle 11gr2 in perl or she

    Hi Everyone
    I require script to relocate service automatically in oracle 11gr2 to the prefered node if nodes goes down
    it can be either shell script or perl script?
    thanks
    Nitin

    Hi,
    1.) No if you define a service with TAF, then the TAF information will be provided to the client, without having to specify it again in the TNSNAMES.ora (neither client nor server).
    However it does not hurt, if you have specified it additionally (it just makes it more difficult if you want to change something, because the client side does not get updated).
    See this whitepaper for more information:
    http://www.oracle.com/technetwork/database/clustering/overview/awm11gr2-130711.pdf
    2.) However it seems you have forgotten to specify something with the service (you seem to be missing -m):
    srvctl add service -h
    Adds a service configuration to the Oracle Clusterware.
    -P {NONE | BASIC | PRECONNECT} TAF policy specification
    -e <Failover type> Failover type (NONE, SESSION, or SELECT)
    -m <Failover method> Failover method (NONE or BASIC)
    -w <integer> Failover delay
    -z <integer> Failover retries
    Regards
    Sebastian

  • Oracle Performance Issue

    Hardware Configuration:
    Regarding Oracle Performance Issue.
    Configuration 1
    ================
    SunV880 - Sunfire
    32 GB RAM
    14 numbers of 36GB hard disk
    8 CPUs
    CPU Speed 750MZ.
    Software Configuration:
    Oracle 8i
    OS version - Solaris 8
    Customized our own application - Namex
    Configuration 2
    ================
    Intel PIII - 750 MZ
    2 GB RAM
    2 CPUS
    Software configuration
    Oracle 8i
    OS version linux 6.2
    Customized our own application - Namex (multi threaded application)
    We installed the oracle application in all hard disks. All tables
    are splited in to separate hard disks.
    OS installed in 1 hard disk.
    namex application installed in 1 hard disk
    Oracle installed in 1 hard disk.
    All tables are splited in to other hard disks.
    We are trying to insert some user databases in oracle table. We
    achieved up to 150 records/second in Sun server. But in lower
    configuration our application inserts up to 100 records/second.
    (configuration 2)
    We want improve our inserting database records/per rate
    in Sun Server.
    How to tune our oracle application parameter values in init.ora
    file. Our application tries to insert up to 500 records per second.
    But I can't able to achieve this value.
    init.ora file
    =============
    db_name = "namex"
    instance_name = namex64
    service_names = namex64
    control_files = ("/disk1/oracle64/OraHome1/oradata/Namex64/control01.ctl", "/disk1/oracle64/OraHome1/oradata/namex64/control02.ctl", "/disk1/oracle64/OraHome1/oradata/namex64/control03.ctl")
    open_cursors = 300
    max_enabled_roles = 145
    #db_block_buffers = 20480
    db_block_buffers = 604800
    #shared_pool_size = 419430400
    shared_pool_size = 8000000000
    #log_buffer = 163840000
    log_buffer = 2147467264
    #large_pool_size = 614400
    java_pool_size = 0
    log_checkpoint_interval = 10000
    log_checkpoint_timeout = 1800
    processes = 1014
    # audit_trail = false # if you want auditing
    # timed_statistics = false # if you want timed statistics
    timed_statistics = true # if you want timed statistics
    # max_dump_file_size = 10000 # limit trace file size to 5M each
    # Uncommenting the lines below will cause automatic archiving if archiving has
    # been enabled using ALTER DATABASE ARCHIVELOG.
    # log_archive_start = true
    # log_archive_dest_1 = "location=/disk1/oracle64/OraHome1/admin/namex64/arch"
    # log_archive_format = arch_%t_%s.arc
    #DBCA uses the default database value (30) for max_rollback_segments
    #100 rollback segments (or more) may be required in the future
    #Uncomment the following entry when additional rollback segments are created and made online
    #max_rollback_segments = 500
    # If using private rollback segments, place lines of the following
    # form in each of your instance-specific init.ora files:
    #rollback_segments = ( RBS0, RBS1, RBS2, RBS3, RBS4, RBS5, RBS6, RBS7, RBS8, RBS9, RBS10, RBS11, RBS12, RBS13, RBS14, RBS15, RBS16, RBS17, RBS18, RBS19, RBS20, RBS21, RBS22, RBS23, RBS24, RBS25, RBS26, RBS27, RBS28 )
    # Global Naming -- enforce that a dblink has same name as the db it connects to
    # global_names = false
    # Uncomment the following line if you wish to enable the Oracle Trace product
    # to trace server activity. This enables scheduling of server collections
    # from the Oracle Enterprise Manager Console.
    # Also, if the oracle_trace_collection_name parameter is non-null,
    # every session will write to the named collection, as well as enabling you
    # to schedule future collections from the console.
    # oracle_trace_enable = true
    # define directories to store trace and alert files
    background_dump_dest = /disk1/oracle64/OraHome1/admin/Namex64/bdump
    core_dump_dest = /disk1/oracle64/OraHome1/admin/Namex64/cdump
    #Uncomment this parameter to enable resource management for your database.
    #The SYSTEM_PLAN is provided by default with the database.
    #Change the plan name if you have created your own resource plan.# resource_manager_plan = system_plan
    user_dump_dest = /disk1/oracle64/OraHome1/admin/Namex64/udump
    db_block_size = 16384
    remote_login_passwordfile = exclusive
    os_authent_prefix = ""
    compatible = "8.0.5"
    #sort_area_size = 65536
    sort_area_size = 1024000000
    sort_area_retained_size = 65536
    DB_WRITER_PROCESSES=4
    How to improve my performance activities on Oracle server.
    Please guide me regarding this issue.
    If anyone wants more info, please let me know.
    Best regards,
    Senthilkumar

    Are you sure that it is not an application constraint ? i.e. the application can't handle so much data per second ? (application locks, threads )
    Have you tried to write a simple test program, which inserts predefined data (which your application inserts) the same data, only changing keys ?
    Then comparing the values from the 1st and the 2nd configuration ?
    Did you check the way your application is communicating with oracle ? If it is TCP/ip (even on the local machine) then this is your main problem.
    And one more thing, do you know if your application is able to run the load (inserts) of data on different threads (i.e. in parallel), because if is not, you won't be able to push the speed higher because your constraint is the speed of a single CPU. Consider running several process, which loads the data.
    We had the same problem ot AIX machines with 4 cpus. Monitoring the machine, we found that only 25% (1 cpu) where in use. We had to run 4 processes to push the speed up. Check your system's overal load while running the 'load' (inserts).
    log_checkpoint_interval = 10000
    Check if this value is appropriate. Maybe you should set it to 0 (infinite). This will disable checkpoints on a 'number of undo record' basis. Checpoints will occure only on log switch.
    How much redo files per redo groups do you have ? What is their size ? Are they on different disks ? How much redo data is generated by a single 'record' inserted ?
    Hope i helped at least a little.

  • Batch script to monitor tbs

    Hi guys.
    On windows machine, I do have cron jobs that monitor tablespace usage and when a tbs reaches a machine, an alert is sent.
    Now, I do have other dbs runing on windows and would like to do the same.
    The problem is that am not use to windows and dont know how to do it! can any one help me automate this sql script??
    select name, kbytes, used, free, pct_used
    from (
    select (select decode(extent_management,'LOCAL','*','') from dba_tablespaces
    where tablespace_name =
    b.tablespace_name) || nvl(b.tablespace_name,
    nvl(a.tablespace_name,'UNKOWN')) name,
    kbytes_alloc kbytes,
    kbytes_alloc-nvl(kbytes_free,0) used,
    nvl(kbytes_free,0) free,
    ((kbytes_alloc-nvl(kbytes_free,0))/
    kbytes_alloc)*100 pct_used,
    nvl(largest,0) largest,
    nvl(kbytes_max,kbytes_alloc) Max_Size,
    decode( kbytes_max, 0, 0, (kbytes_alloc/kbytes_max)*100) pct_max_used
    from ( select sum(bytes)/1024 Kbytes_free,
    max(bytes)/1024 largest,
    tablespace_name
    from sys.dba_free_space
    group by tablespace_name ) a,
    ( select sum(bytes)/1024 Kbytes_alloc,
    sum(maxbytes)/1024 Kbytes_max,
    tablespace_name
    from sys.dba_data_files
    group by tablespace_name
    union all
    select sum(bytes)/1024 Kbytes_alloc,
    sum(maxbytes)/1024 Kbytes_max,
    tablespace_name
    from sys.dba_temp_files
    group by tablespace_name )b
    where a.tablespace_name (+) = b.tablespace_name
    order by 1

    Eric has exactly the right idea. To monitor database performance or statistics or other database metrics in a cross-platform manner (that works the same across Windows, Linux, Solaris etc). You should definitely be using dbms_scheduler in 10g or up or dbms_job in 9i or below.
    There are several examples in these forums of how to use these. You can use utl_smtp for sending e-mail notifications.
    If you want help on using dbms_scheduler, there is a dedicated Scheduler forum here :
    Scheduler
    -Ravi

  • Use OEM to monitor oracle database size

    Hello All,
    We currently have several database which are currently monitored via OEM however i will appreciate if anyone can tell me how i can monitor the the size of my oracle databases via oem
    Thanks

    Hi,
    I'm not sure of OEM will monitor database size, but many 3rd party tools do.
    There are many ways to achieve Oracle table monitoring, and many create specialized extension metadata tables to monitor Oracle table growth. In Oracle 10g you can perform Oracle tables monitoring with the dba_hist_seg_stat tables, specifically the space_used_total column.
    On my databases, I create STATSPACK extension tables to track table and overall database growth:
    http://www.dba-oracle.com/te_table_monitoring.htm
    The full scripts are in my Oracle Press book, Oracle tuning with STATSPACK . . .
    http://www.amazon.com/Oracle9i-High-Performance-Tuning-STATSPACK-Burleson/dp/007222360X
    Hope this helps . . .
    Donald K. Burleson
    Oracle Press author
    Author of "Oracle Tuning: The Definitive Reference"
    http://www.rampant-books.com/book_2005_1_awr_proactive_tuning.htm

  • Monitoring oracle ebs system.

    Hi,
    I am trying to develop a shell script to monitor the EBS (db and apps).
    basically, the script should send email if any of the component is down or system is unaccessible.
    For appstier  i am using adompnctl.sh status output to, if any component is down, grep and send email
    For concurrent, looking for ICM
    for database , run a small script to connect db and find status.
    Kindly suggest if there are better wasy to do it.
    Regards,

    Sanjay Desai wrote:
    Hi
    System Admin. involving in planning, configuring, testing, deploying, trouble shooting and managing the Oracle Business Suite of applications .
    Work involves providing enterprise-wide, Oracle e-Business Applications System Administration support for development, staging and production systems.
    Responsible for determining the most appropriate procedures for implementing and using current and new applications/systems;
    Testing, implementing, and supporting Oracle e-Business applications; monitoring and tuning application and system performance; identifying end-user information requirements; developing conversion and system implementation plans; ensuring that developed and deployed software solutions adhere to specified requirements which satisfy customer needs and expectations .
    HTH
    SanjayAnd change control examples...

  • Automatic table partitioning in Oracle 11g

    Hi All,
    I need to implement automatic table partitioning in Oracle 11g version, but partitioning interval should be on daily basis(For every day).
    I was able to perform this for Monthly and Yearly but not on daily basis.
    create table part
    (a date)PARTITION BY RANGE (a)
    INTERVAL (NUMTOYMINTERVAL(1,'*MONTH*'))
    (partition p1 values less than (TO_DATE('01-NOV-2007','DD-MON-YYYY'))
    Table created
    create table part
    (a date)PARTITION BY RANGE (a)
    INTERVAL (NUMTOYMINTERVAL(1,'*YEAR*'))
    (partition p1 values less than (TO_DATE('01-NOV-2007','DD-MON-YYYY'))
    Table createdBut if i use DD or DAY instead of YEAR or MONTH it fails......Please suggest me how to perform this on daily basis.
    SQL>
      1  create table part
      2  (a date)PARTITION BY RANGE (a)
      3  INTERVAL (NUMTOYMINTERVAL(1,'*DAY*'))
      4  (partition p1 values less than (TO_DATE('01-NOV-2007','DD-MON-YYYY'))
      5* )
    SQL> /
    INTERVAL (NUMTOYMINTERVAL(1,'DAY'))
    ERROR at line 3:
    ORA-14752: Interval expression is not a constant of the correct type
    SQL> create table part
    (a date)PARTITION BY RANGE (a)
    INTERVAL (NUMTOYMINTERVAL(1,'*DD*'))
    (partition p1 values less than (TO_DATE('01-NOV-2007','DD-MON-YYYY'))
    );  2    3    4    5
    INTERVAL (NUMTOYMINTERVAL(1,'DD'))
    ERROR at line 3:
    ORA-14752: Interval expression is not a constant of the correct typePlease suggest me to resolve this ORA-14752 error for using DAY or DD or HH24
    -Yasser

    Yes, for differenct partitions for different months.
    interval (numtoyminterval(1,'MONTH'))
    store in (TS1,TS2,TS3)
    This code will store data in partitions in tablespaces TS1, TS2, and TS3 in a round robin manner.
    for Day wise day yes you can store
    INTERVAL (NUMTODSINTERVAL(1,'day')) or
    INTERVAL (NUMTODSINTERVAL(2,'day')) or
    INTERVAL (NUMTODSINTERVAL(3,'day')) or
    INTERVAL (NUMTODSINTERVAL(4,'day')) or
    INTERVAL (NUMTODSINTERVAL(5,'day')) or
    INTERVAL (NUMTODSINTERVAL(n,'day'))

  • How to monitor SERVER performance

    hello,
    how to monitor the performance of the server,whether it is hit ratio is high or not
    can u please send the query
    regards

    Database Performance Monitoring is a little more complicate than running a query to get ratio. And different version of Oracle has different tools and utilities to help you.
    Strongly recommend you read Oracle® Database Performance Tuning Guide

  • Oracle SQL Developer 1.2 – Automatic -  is compatible with Oracle 11g?

    Oracle SQL Developer 1.2 – Automatic - is compatible with Oracle 11g?
    Thanks in advance!
    -Babu

    So I'm taking it the question is -
    Is 1.2 Sql Developer compatible with 11g DB?
    The short answer is Yes. We are constantly adding new functionality and better support for the newer Databases. For Example to use the real time Sql monitoring that became available in 11g you will have to be on at least 2.1 Sql Dev. Is there some reason you don't want to upgrade to the latest Sql Dev? If not the current EA version then at least the current production version?
    Thanks,
    Syme

  • Monitoring Oracle database 8i

    I have to monitor Oracle 8i database. I don't have much experience with it, but I need gather information about that database.
    Cloud someone provide me an information how to collect such information:
    a) exact time of each queries running on database
    b) name of queries which are running at the time of watching (because of looking at hardware monitor tool)
    Are there any monitoring tool for such old database or I have to do it manually?

    tutus wrote:
    I have to monitor Oracle 8i database. I don't have much experience with it, but I need gather information about that database.
    Cloud someone provide me an information how to collect such information:
    a) exact time of each queries running on database
    b) name of queries which are running at the time of watching (because of looking at hardware monitor tool)
    Are there any monitoring tool for such old database or I have to do it manually?Oracle has a very rich data dictionary. The performance views that +$ami Malik+ referred to are documented in Oracle8i Reference* guide (http://download-west.oracle.com/docs/cd/A87860_01/doc/server.817/a76961/toc.htm).
    Note that 8i has long since been desupported. It is a discontinued product.

  • Oracle Performance Management Sysem

    Hi All,
    Can anybody help me on implementing, Scope & Assumptions on Oracle Performance Management System?

    Hi Prashanth,
    Using Oracle PMS, clients can automate their entire assessment cycle right from objective setting to assessment.
    Objective Setting - Is a collaborative process between Employee and his/her manager. You have the option of selecting the initiator of the process as either employee or the manager (Cascading/parallel). both the parties have to agree for freezing the objectives
    Assessment - All approved objective will automatically flow to your assessment, based on the appraisal template define. You have the option of using competency assessment, objective assessment or even some questionnaire functionality as part of assessment.
    Scope will be dependent on your business requirement. You key assumptions can include based on what your business wants to do:
    1. Do the business need a global Objective setting plan or regional
    2. Process of review of objectives
    3. How will the actual loaded into system for objectives? (Not available out-of box)
    4. What is the frequency of assessment? Twice a year or annual assessment
    5. What will be the normalization method? (Not available out-of box)
    Hope it helps.
    Thanks,
    Sanjay

  • Monitoring Oracle HTTP Server

    could anyone provide steps to monitor Oracle HTTP Server?
    In the agent: i could find Apache http server only.
    do i need to install Oracle Application Server? which in turn can be used to monitor Oracle HTTPServer.
    Any guidance would be helpful.
    thanks.

    According to this blog http://gcmw.blogspot.com/2009/07/monitoring-apache-http-server-from.html the discovering of Oracle HTTP Server is done automatically (after installing the agent of course). I wouldn't know why that should differ in 11g.
    Eric

  • Cannot Change LAN Settings to automatically detect from automatic script

    my computer wont allow me to uncheck the automatic script option which is causing be bother. whenever i unched the box as soon as i close the tab it enables it again. this is causing the error message "error 130". if anyone could help it would
    be great

    Hi,
    I consider if the uncheck behavior encounter the access denied error.
    I suggest you use Process monitor to capture the events during repro'ing the issue:
    Process Monitor v3.05
    http://technet.microsoft.com/en-us/sysinternals/bb896645.aspx
    Solving Access Denied Errors Using Process Monitor
    http://improve.dk/solving-access-denied-errors-using-process-monitor/
    How to use, please refer to this article:
    Using Process Monitor to capture system events
    http://www.sophos.com/en-us/support/knowledgebase/119038.aspx
    You can also upload the PML log saved from process monitor here for our research.
    Kate Li
    TechNet Community Support

  • Monitor Application Performance

    We are migrating application developed in Forms/Reports 5.0 to Forms/Reports 10G. We want to set the performance benchmark with respect to the old application(pre migration) before the migration process begins.
    1. Is there any specific process or method to measure the performance of application developed in Forms and Reports.
    2. Is there any tool available to monitor the performance of application.
    Please let me know.
    Thanks in Advance.

    10g has JMX capabilities built in. There are commercial JMX clients as well as free/open source JMX clients that can be used to view your application server performance/metrics and JVM information.
    There is a neat one for netbeans that works great. Get on google and search for "netbeans jmx client" and also lookup the papers on how to implement JMX support in the oracle java/oc4j containers.
    JMX is awesome :)

Maybe you are looking for

  • RoboHelp 8 crashes on Windows 7

    I have used RoboHelp for years and we have just purchased new laptops with Windows 7, we are finding that it appears that RoboHelp 8 will not run on Windows 7. The software appears unstable as even the simplest action crashes RoboHelp, the Event Log

  • External screen not working

    I had to reload my applications on my phone last night and since then my external screen is only white and says tmobile on it.  I have tried to hard reset it and have gone through all my settings.  I can't figure out what it is doing or what I am sup

  • Best way to implement a shared Blocking Queue?

    What's the best way to implement a shared Blocking Queue that multiple JVMs can enqueue objects in and multiple JVM's can dequeue from simultaneously? Also, I see references on the web to com.tangosol.coherence.component.util.queue.ConcurrentQueue bu

  • Models Comp Card Layout

    Yes I am new to Photoshop.  Perhaps these might be dumb questions.  If you are easily offended by questions of a "rookie nature" please feel free the stop reading now and save yourself the aggravation.  If you are forging ahead, "Thank You So Much!"

  • Construct the URL to launch a specific C-project from ABAP Report.

    Hi All, For one of my ABAP applications, I want to open a specific C-project in the browser from an ABAP Report. Constructing some URL, I could navigate to the list of all the C-projects that we have in portfolio. Now to navigate to a particular C-pr