Tablespace threshold checking without grid control

Hi all,
DB oracle 10g
solaris,
It is new env ....we are not having grid configuration ....
Please any one provide to me a script for monitoring threshold limits like >90% critcal alert ....
client wants to these alerts are configure to mail when ever tablespace reaches thershold....
please help me out if any one having any shell ,sql scripts....
thanks,
kk

user603328 wrote:
Hi all,
DB oracle 10g
solaris,
It is new env ....we are not having grid configuration ....How about dbcontrol? It has all the same functionality as Grid, only for a single database instance. It can monitor and email as specified. It doesn't cost any extra. If your client has Oracle 10g, then he has, and has paid for, dbcontrol. If they don't know that, you owe it to them to show them.
Please any one provide to me a script for monitoring threshold limits like >90% critcal alert ....
client wants to these alerts are configure to mail when ever tablespace reaches thershold....
please help me out if any one having any shell ,sql scripts....
thanks,
kk

Similar Messages

  • Tablespace threshold check

    Hi all,
    my env..
    Oracle 8i
    solaris
    I am trying to check tablespace threshold chek ..below query ...this query is not working in oracle 8i ...but it is working fine in oracle 10g machines ...
    what is the reason I was unable to findout...
    Please let me know if any one knows
    select
    (select INSTANCE_NAME||'_'||HOST_NAME from v$instance ) "db_name_host_name",
    tablespace_name tablespace,
    sum(file_cnt) "# of Files",
    (sum(tp)-sum((fs + (tp-tc))))/1048576 "Used (M)",
    sum(tc)/1048576 "Allocated (M)",
    sum(tp)/1048576 "Max Extend (M)",
    round(max(100 - (100*((fs + (tp-tc))/tp)))) " % of Max Used"
    from ( select b.tablespace_name, nvl(a.free_space, 0) fs,
    b.total_poss_space tp,
    b.total_curr_space tc,
    b.file_cnt,
    b.tablespace_name ts_name
    from (
    select sum(bytes) free_space,
    tablespace_name
    from dba_free_space
    group by tablespace_name
    ) a,
    select sum(decode(autoextensible, 'YES',
    maxbytes,
    bytes)) total_poss_space,
    sum(bytes) total_curr_space,
    count(1) file_cnt,
    tablespace_name
    from dba_data_files
    group by tablespace_name
    ) b
    where a.tablespace_name (+) = b.tablespace_name
    group by tablespace_name
    having max(100 - (100*((fs + (tp-tc))/tp))) >=80
    Error at line 2
    ORA-00936: missing expression
    Script Terminated on line 1.
    Edited by: user603328 on Dec 10, 2010 7:26 AM

    Thanks ur reply...
    I am getting below issue....
    select
    (select INSTANCE_NAME||'_'||HOST_NAME from v$instance ) "db_name_host_name",
    tablespace_name tablespace,
    sum(file_cnt) "# of Files",
    (sum(tp)-sum((fs + (tp-tc))))/1048576 "Used (M)",
    sum(tc)/1048576 "Allocated (M)",
    sum(tp)/1048576 "Max Extend (M)",
    round(max(100 - (100*((fs + (tp-tc))/tp)))) " % of Max Used"
    from ( select b.tablespace_name, nvl(a.free_space, 0) fs,
    b.total_poss_space tp,
    b.total_curr_space tc,
    b.file_cnt,
    b.tablespace_name ts_name
    from (
    select sum(bytes) free_space,
    tablespace_name
    from dba_free_space
    group by tablespace_name
    ) a,
    select sum(decode(autoextensible, 'YES',
    maxbytes,
    bytes)) total_poss_space,
    sum(bytes) total_curr_space,
    count(1) file_cnt,
    tablespace_name
    from dba_data_files
    group by tablespace_name
    ) b
    where a.tablespace_name (+) = b.tablespace_name
    group by tablespace_name
    having max(100 - (100*((fs + (tp-tc))/tp))) >=80
    Error at line 2
    ORA-00936: missing expression
    Script Terminated on line 1.

  • Can I make a Data Guard configuration using EM console without Grid Control

    Can I make a Data Guard configuration using EM console without Grid Console?
    Can I download Grid Console software from Oracle website without cost?

    Assuming this is for 10g,
    You could use Oracle® Data Guard Broker
    Even you can download Grid Control software for free from Oracle site, you can't legally use it without license.

  • Managing multiple database in 10g enterprise manager without Grid control

    Hi,
    How do we manage multiple databases using oracle 10 g enterprise manager?.
    Do we have any java console EM, so that we can add databases as in 9i EM?
    Thanks and regards
    Suresh HT

    Grid Control is the replacement for 9i EM. Without GC, you'll have to manage each database using its database control which isn't good if you have many many databases.
    On the client CD, there is a java console you can install which has some packs like change manager but this console is only there temporarily. My understanding is it's there for some features that haven't been added to GC.
    HTH

  • How to set threshold value for single tablespace in grid control 11g

    Hi,
    I want to set the threshold value for a single tablespace in grid control 11g,
    please provide me a navigation path.

    Sandy wrote:
    Can you please provide me the full navigation path?go to Targets --> Databases
    Select the Database you like to set this alert for
    Select link Metrics and Policy Settings

  • How to add check box in SAP B1 grid controls..

    hi all,
    Anyone know how to add check box in SAP grid control?
    It will be great if you could show me some sample code.
    thanks.
    regards,
    sohch

    Hi Sohch,
    1. First of all you should define the Column in a matrix as it_CHECK_BOX. Like
            oColumns = oMatrix.Columns
            oColumn = oColumns.Add("chk_YesNo", SAPbouiCOM.BoFormItemTypes.it_CHECK_BOX)
            oColumn.TitleObject.Caption = "YesNo"
            oColumn.Width = 60
            oColumn.Editable = True
    2. Bind it with a DBDataSource as defined
            oColumn = oColumns.Item("chk_YesNo")
            oColumn.DataBind.Bind("UDTable", "U_YesNo")
    3. Make Sure that the value that is being put into the Database is either 'Y' or 'N'.
    Hope this Helps
    Rizwan Hafeez
    Team Lead
    SAP Addon Development Section
    Abacus Consulting - Pakistan

  • What are the Grid Control basic features  (without the licensed packages)

    Hi everyone,
    I'm all new to OEM Grid Control and I've been asked to write a document that sums up and explains all the OEM features (Database ones only).
    The reason I created this thread is because I have a problem doing that. Indeed, Oracle insists on their licensed packages in their documentation and doesn't make very clear what's available without any of those packages.
    I've been looking for some other documentation than Oracle one but without much success.
    I really have to know the features available without those packages because I've been asked to determine whether or not Diagnostic Pack, Tuning Pack and Configuration pack are necessary (i.e If we have to purchase the licenses)
    So could anyone tell me precisely what's available without those packages or link me some sources I could use?
    Thank you very much in advance
    Olivier

    Hi Erika,
    Unfortunately, it appears to be true: to be able to get notifications and alerts, you need to have the Diagnostics Pack license. Reference the following document: Oracle Enterprise Manager Licensing Information 10g Release 4 (10.2.0.4.0) Chapter 2: Enterprise Database Management:
    The Diagnostics Pack includes the following features, which you can use after purchasing a license for the Diagnostics Pack.
    Automatic Workload Repository
    Automatic Database Diagnostic Monitor (ADDM)
    Performance monitoring (database and host)
    Event notifications: notification methods, rules, and schedules
    ...In the document that you have cited, I think that "standard" and "out of the box" simply mean that Oracle has these alerts and notifications preconfigured for you when you install the software. But to actually use them, you need to have the appropriate license.
    Regards,
    John P.
    http://only4left.jpiwowar.com

  • Administrating Data Guard without complexity of Grid Control.  Possible?

    I wonder if someone can shed some wisdom about implementing and administrating Data Guard without the complexity of Grid Control. Don't get me wrong, I love the Data Guard feature provided by Grid Control, but installing Grid Control just for the sake of administrating Data Guard sounds a bit overkilling. Not to mention that I still have hard time getting Grid Control properly installed on a Windows Server 2003 box (keeps getting 503 Service Unavailable and the Servlet error).
    I was told by a friend that Oracle 9 has something called EMCA (Control Assistant) that allows you to administrate Data Guide. Searching for any file containing the phrase "emca" under the Oracle directory ("c:\Oracle\product\10.2.0\db_1\BIN"), I found emca.bat and some related files. Does it mean the EMCA is actually existing in Oracle 10.2G (for Microsoft Windows Server)?
    Any comment? Feeling clueless right now. :-I ....
    Deecay

    I have set up Dataguard 9iR2 on Linux SLES8 and use Data Guard Broker to manage switchover and failover operations. It comes with the database and is command-line based.
    The documentation walks you through the setup phases quite nicely.
    http://www.oracle.com/pls/db92/db92.to_toc?pathname=server.920%2Fa96629%2Ftoc.htm&remark=docindex
    I would suggest a read of some of the documentation on metalink surrounding dataguard and the broker before attempting to use either ;)

  • Monitoring with Grid Control : Default thresholds

    Hi,
    I have installed Grid Control 10GR2, and have been struggling with the monitoring the health of Enterprise databases. Previously, any critical health problem seemed to have been reported promptly..
    The default time interval in Grid Control is too long for certain health issues.. like
    database up-down, tablespace full...
    I just wanted to get idea from others, what have they done with the time intervals?
    Any suggestions/experiences??
    - Jayant

    I've kept the defaults on most things, I have changed a few things, notably a metric on the agent itself. But all databases self manage their space anyway. tablespace full you can just change to 5 minutes or something if you are concerned about it.Just experiment, everybodys requirements are different.
    And for the other chap to change a time interval on grid control 10.2:
    Go to Targets-->All Targets
    Click on the name of the target you want to change (be it host/database or agent etc)
    Scroll down the page and click on 'Metric and Policy Settings'
    There you will see the collection schedule for each metric, this a clickable link from where you can then edit.
    Alternatively use a monitoring template and do it that way, especially if you got lots to change.
    Bazza

  • How to create logical standby database without using Oracle Grid Control

    Hi All,
    I want to create Logical standby database on 11gr2 on RHEL 5 without using oracle Grid Control.
    I already have a primary database as well as physical standby database.
    What i want to create a logical standby database as well on the same machine where physical standby database is running.
    So anyone of you help me out to do that
    Thanks in advance

    Hi,
    Creating a Logical Standby Database
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14239/create_ls.htm#SBYDB00300
    Regards,
    Tom

  • Grid Control 11g Agent: The free port availability check has failed.

    I tried to use 11g Grid Control agent deployment wizard to install 11g agent to an Oracle Enterprise Linux 5 (64 bit) server, but received following error message:
    PROBLEM : The free port availability check has failed.
    ERROR : Check complete. The overall result of this check is: Not executed <<<<
    RECOMMENDATION : Please free one of the ports in the required range
    The port I used is the default one - 3872. I used "netstat -a |grep 3872" to check if this port is in use, the "netstat" command returned nothing, so I think this port is free. I tried to leave the "Port" field empty and let Oracle automatically pick a free port, I still got the same error message.
    According to the log file,
    more prereq2010-11-22_10-42-27AM.out
    Starting execution of Prerequisites...
    Total No of checks: 12
    Performing check for CheckPortAvailability
    Checking for the availability of free ports in the required range.
    Loading file /opt/oracle/product/11.2.0/dbhome_1/localhost.localdomain_xxx//sysman/config/emd.properties to get the busy ports: Successful
    Loading file /opt/oracle/product/11.2.0/dbhome_1//sysman/config/emd.properties to get the busy ports: Successful
    Port specified by user null is not available
    Check complete. The overall result of this check is: Not executed <<<<
    Check complete: Not executed <<<<
    S_UNKNOWN_HOST_EXEPTION_BEFORE_CHECK: An unknown host exception encountered during the Port Pre Req Check.
    Recommendation: You must free one of the ports in the required range.
    Did someone encounter a similar problem before? Thanks for your help.
    Amos

    814475 wrote:
    I tried to use 11g Grid Control agent deployment wizard to install 11g agent to an Oracle Enterprise Linux 5 (64 bit) server, but received following error message:
    PROBLEM : The free port availability check has failed.
    ERROR : Check complete. The overall result of this check is: Not executed <<<<
    RECOMMENDATION : Please free one of the ports in the required range
    The port I used is the default one - 3872. I used "netstat -a |grep 3872" to check if this port is in use, the "netstat" command returned nothing, so I think this port is free. I tried to leave the "Port" field empty and let Oracle automatically pick a free port, I still got the same error message.
    According to the log file,
    more prereq2010-11-22_10-42-27AM.out
    Starting execution of Prerequisites...
    Total No of checks: 12
    Performing check for CheckPortAvailability
    Checking for the availability of free ports in the required range.
    Loading file /opt/oracle/product/11.2.0/dbhome_1/localhost.localdomain_xxx//sysman/config/emd.properties to get the busy ports: Successful
    Loading file /opt/oracle/product/11.2.0/dbhome_1//sysman/config/emd.properties to get the busy ports: Successful
    Port specified by user null is not available
    Check complete. The overall result of this check is: Not executed <<<<
    Check complete: Not executed <<<<
    S_UNKNOWN_HOST_EXEPTION_BEFORE_CHECK: An unknown host exception encountered during the Port Pre Req Check.
    Recommendation: You must free one of the ports in the required range.
    Did someone encounter a similar problem before? Thanks for your help.
    AmosYEP, overhere the same problem.
    Can't figure out yet what the problem exactly is.
    In our case I deinstalled a working 10.2.0.4 agent ( same port same config ) and tried to install 11g Agent.
    It fails with the above message. We however are on AIX, and that hasn't a 'netstat -p' option to find occupied ports easily.
    Because the database is question needs to be monitored constantly I now reinstalled the 10.2.0.4 agent again and works seemlessly
    Still unsolved.....
    FJFranken

  • Set alert for tablespace in grid control when tablespace get 85% full.

    Hi,
    I want to set a tablespace alert in grid control when the tablespace in database get 85% full.
    We should get a alert through a grid control.
    Could you please let me know how to set a alert in grid control for tablsepace usage?
    Thanks,

    HI
    Thanks for the reply.
    I have set the alert the way you asked me do.
    However i am not getting an alert when the tablespace get full by 85%.
    I am not getting alert to our mail.
    Could you please let me know do we need to do anything else.
    I tried using through user defined sql metrics.
    The query which i am using is
    DECLARE
    Type v_filenames is table of dba_data_files.FILE_NAME%type
    index by pls_integer;
    filename v_filenames;
    type v_currsize is table of dba_data_files.BYTES%type
    index by pls_integer;
    currsize v_currsize;
    type v_maxsize is table of dba_data_files.MAXBYTES%type
    index by pls_integer;
    maxsize v_maxsize;
    mark75 number;
    mark500 number;
    n_maxsize number;
    i pls_integer default 1;
    total_files sys.dba_data_files.BYTES%type;
    SUM_BYTES sys.dba_data_files.BYTES%type;
    SUM_MAXBYTES sys.dba_data_files.MAXBYTES%type;
    BEGIN
    SELECT SUM(BYTES)/(1024*1024),SUM(MAXBYTES)/(1024*1024) INTO sum_bytes,SUM_MAXBYTES FROM DBA_DATA_FILES WHERE TABLESPACE_NAME='&&1';
    select SUM(bytes*4/3-maxbytes)/(1024*1024),500-SUM(MAXBYTES)/(1024*1024) into mark75,mark500 FROM DBA_DATA_FILES WHERE TABLESPACE_NAME='&&1';
    if mark75>=mark500 then
    n_maxsize:=mark75;
    else
    n_maxsize:=mark500;
    END IF;
    will the above query will work.
    I dont what condition to put in my case.
    I want to put this condition
    if mark75>=mark500 then
    n_maxsize:=mark75;
    however i am not using it in where clause.
    Thanks.

  • Grid Control how to disable alert for Tablespace UNDO is 99 percent  full

    I am new to Grid control and want to know how to disable alert for UNDO tablespace full.
    Target Name=xxxx
    Target type=Database Instance
    Host=xxx
    Occurred At=Dec 24, 2010 1:21:00 AM EST
    Message=Tablespace UNDOTBS1 is 99 percent full
    Metric=Tablespace Space Used (%)
    Metric value=99
    Tablespace Name=UNDOTBS1
    Severity=Critical
    Acknowledged=No
    Notification Rule Name=Database E-Mail Notifications
    Notification Rule Owner=SYSMAN

    You should post in the grid control foruma.
    But just go to databases, select your database, metric and policy settings, find the tablespace metric, edit and exclude the undo tablespace.

  • ASM without Enterprise Manager Grid Control

    Dear Gurus,
    Can ASM be configured on Oracle 11g R2 without Enterprise Manager Grid Control ?
    If so, how?
    /Regards

    Thanks Jose,
    But it seems asmca is not on my server were I installed Oracle 11g R2. With your input I have been able to search in the right direction though. The following page seems to say that the Oracle grid infrastructure must be installed, as asmca is part of it:
    http://download.oracle.com/docs/cd/E11882_01/install.112/e10840/oraclerestart.htm#BABGDFIC
    It states this:
    If you do not have Automatic Storage Management installed and you want to use Automatic Storage Management as your storage option, then you must complete an Oracle grid infrastructure installation before you start your Oracle Database installation.
    To me this seems like overkill (having to install 3GB extra software to test if ASM is what we need, where in Oracle 10g no grid infrastructure was needed).
    /Best regards
    /9350831
    Edited by: user9350831 on 24-jun-2010 21:41

  • OEM Grid Control taking a long time to load tablespace information

    We use OEM Grid control to monitor many dev/tst/prd databases. OEM is taking a long time to load the tablespace page information on one of our RAC databases (only one all other dbs ok). I have tried going to 1 instance in the environment and it still takes a long time to load the information about all tablespaces in this database. OEM Path is
    Cluster: crs > Cluster Database: sid > Database Instance: sid_instance1 > Tablespaces
    This is a development environment and it is not a very busy database at this time. Anyone else encounter an issue like this with OEM?
    Thanks in advance for any information

    user12192488 wrote:
    Purge your recyclebin. I had the same problem on one of our databases and realised that the recyclebin was very large. OEM uses the space from the recyclebin as well in order to load tablespace and datafile information.
    SQL> purge dba_recycebin;
    Worked for me.
    Regards,Thanks,
    It worked perfectly !
    It used to take 4 minutes to view my tablespaces in OEM !!! Now I have sub second response time !
    Still find it strange that the size of the recyclebin would have such an effect when viewing tablespace info in OEM. By the way it also sped up the viewing of datafiles in OEM.
    Regards,
    Mark T.

Maybe you are looking for

  • ABAP OO Class and Change Documents

    I have created a class based on the IF_WORKFLOW interface.  I created a couple of events.  I created a workflow task assigned to a custom method of the class.  I setup the Material Change Document to trigger the class event when there is a change.  T

  • Final cut project to toast 11?

    How do I get my project from Final Cut Pro to Toast 11? Do I have to export it? If so, in what format? I am new to Toast and I can see all of my raw video clips but I cannot see a project. Please hel

  • Marshaling and xml generation

    Hi Can any one pls tell for generating an xml file from fetching data from database do i have to use marshalling. Why exactly marshalling is being used.?How is DomBuilder useful and diferent from marshaller? Thanks Swaroopa

  • Packaging of EAR / WAR / EJB-JAR

    Hello, I have a big application to do. So, one solution should be to use an EAR for one module, containing the WAR for the web-tier and the EJB-JAR for the business-tier. It would be better doing like this than creating a big WAR, in order to avoid t

  • Goods Issue from PI Sheet.

    Hi, I want to do GI from PI Sheet. I created Master Recipe with  Proce Instr Conc_C. When i create Process Order i am getting PI Sheet But i couldnt do GI from PI Sheet. I have tried from Call Trans, from there i can do. But i want to do from PI Shee