Using JMX to database monitoring

Hello, I'm a software developer, and I want to use JMX to database monitoring.
I did sth to see in jconsole some data from our database, but Ive got problem to
refresh it. I mean when jconsole is running and somebody makes changes in DB
how can I see it on monitor ... ?? Something like dynamic MBeans ??
second question - is it possible to use MXBean in java 1.5 ??
thanks for answers
PS. we are using Java 5 unfortunetelly

oh I should say that:
-I'm using jconsole to monitoring jobs i DB;
-every job has its own MBean;
-of course if some changes in already defined jobs occure - its no problem;
Problem is when somebody create/delete jobs ... how can I using refresh button on jconsole get information about new job ?

Similar Messages

  • Best practice to monitor 10gR3 OSB performance using JMX API?

    Hi guys,
    I need some advice on the best practice to monitor 10gR3 OSB performance using JMX API.
    Jus to show I have done my home work, I managed to get the JMX sample code from
    http://download.oracle.com/docs/cd/E13159_01/osb/docs10gr3/jmx_monitoring/example.html#wp1109828
    working.
    The following is the list of options I am think about:
    * Set up: I have a cluster of one 1 admin server with 2 managed servers, which managed server runs an instance of OSB
    * What I try to achieve:
    - use JMX API to collect OSB stats data periodically as in sample code above then save data as a record to a
         database table
    Options/ideas:
    1. Simplest approach: Run the modified version of JMX sample on the Admin Server to save stats data to database
    regularly. I can't see problems with this one ...
    2. Use WLI to schedule the Task of collecting stats data regularly. May be overkill if option 1 above is good for production
    3. Deploy a simple web app on Admin Server, say a simple servlet that displays a simple page to start/stop and configure
    data collection interval for the timer
    What approach would you experts recommend?
    BTW, the caveats os using JMX in http://download.oracle.com/docs/cd/E13159_01/osb/docs10gr3/jmx_monitoring/concepts.html#wp1095673
    says
         Oracle strongly discourages using this API in a concurrent manner with more than one thread or process. This is because a reset performed in
         one thread or process is not visible to another threads or processes. This caveat also applies to resets performed from the Monitoring Dashboard of
         the Oracle Service Bus Console, as such resets are not visible to this API.
    Under what scenario would I be breaking this rule? I am a little worried about its statement
         discourages using this API in a concurrent manner with more than one thread or process
    Thanks in advance,
    Sam

    Hi Manoj,
    Thanks for getting back. I am afraid configuring aggregation interval from Dashboard doesn't solve problem as I need to collect stats data of endpoint URI or in hourly or daily basis, then output to CSV files so line graphs can be drawn for chosen applications.
    Just for those who may be interested. It's not possible to use SQL to query database tables to extract OSB stats for a specified time period, say 9am - 5pm. I raised a support case already and the response I got back is 'No'.
    That means using JMX API will be the way to go :)
    Has anyone actually done this kind of OSB stats report and care to give some pointers?
    I am thinking of using 7 or 1 days as the aggregation interval set in Dashboard of OSB admin console then collects stats data using JMX(as described in previous link) hourly using WebLogic Server JMX Timer Service as described in
    http://download.oracle.com/docs/cd/E12840_01/wls/docs103/jmxinst/timer.html instead of Java's Timer class.
    Not sure if this is the best practice.
    Thanks,
    Regards,
    Sam

  • Monitoring of server using JMX and SNMP

    hi
    I want to monitor my server using SNMP to get the information about craches, response time etc of the server. What technology should I use to do the same? Can JMX help me for this and How?
    Thanks in advance
    kiran

    Hello Frederic,
    your request is a system monitoring request and not really a BPMon request. As BPMon is designed to monitor specific steps of a business process it doesn't make sense to use a wildcard for the object. A certain business process step like "Create Sales Orders" is only executed via certain transaction like VA01. So it would n't make sense to monitor also MM or PP transactions for the same process step. For this reason wildcards are not allowed.
    For your system monitoring problem you either use the normal CCMS monitor for Update Errors which counts all update errors in one system (and you can include the CCMS MTE in BPMon via the CCMS monitoring object) or you decide to use the BPMon Update error monitor for selected important transactions only.
    Anyhow you should first do a systematic error analysis with transaction SM13 why you encounter so many update errors at all and solve the root cause. 1000 Update errors is a very high/bad value even if you had a large system.
    Best Regards
    Volker

  • Monitoring WebLogic Using JMX

    Hi, I'm writing an application to monitor WebLogic (busy threads, heap size etc.), using JMX. I wanted to know if there's a way to create a connection and use it each time I want to get the info from the server (in order minimize the monitoring overhead on performance), or should I create a new connection each time?
    Thanks,
    Y.

    Hi,
    Thanks for answering.
    So if I understand correctly, I need to get the MBeanHome once:
    home = (MBeanHome) ctx.lookup(MBeanHome.ADMIN_JNDI_NAME);
    and then to retrieve each time the MBean that I need:
    home.getMBeansByType("JVMRuntime");
    Is that correct?
    Thanks!

  • Weblogic database resources using JMX

    Does anyone have an idea on how to get user defined Datasource information from Weblogic server using JMX?
    I have tried with different ObjectNames but none of them seems to work
    ObjectName service = new ObjectName("com.bea:Name=EditService,Type=weblogic.management.mbeanservers.edit.EditServiceMBean");
    and
    connection.getAttribute(service, "JDBCSystemResources");
    Thank you very much for your help.

    I would encourage you to use WLST because it's much easier IMHO. What is your use case?
    But if you must use java, this should get you started:
    package foo;
    import java.util.Hashtable;
    import javax.management.MBeanAttributeInfo;
    import javax.management.MBeanInfo;
    import javax.management.MBeanServerConnection;
    import javax.management.ObjectName;
    import javax.management.remote.JMXConnector;
    import javax.management.remote.JMXConnectorFactory;
    import javax.management.remote.JMXServiceURL;
    public class TestJMX {
         public static void main(String[] args) throws Exception {
              JMXConnector jmxCon = null;
              try {
                   JMXServiceURL serviceUrl = new JMXServiceURL(
                             "service:jmx:t3://localhost:7011/jndi/weblogic.management.mbeanservers.edit");
                   System.out.println("Connecting to: " + serviceUrl);
                   Hashtable env = new Hashtable();
                   env.put(JMXConnectorFactory.PROTOCOL_PROVIDER_PACKAGES,
                             "weblogic.management.remote");
                   env.put(javax.naming.Context.SECURITY_PRINCIPAL, "weblogic");
                   env.put(javax.naming.Context.SECURITY_CREDENTIALS, "welcome1");
                   jmxCon = JMXConnectorFactory.newJMXConnector(serviceUrl, env);
                   jmxCon.connect();
                   MBeanServerConnection con = jmxCon.getMBeanServerConnection();
    //               Set<ObjectName> mbeans = con.queryNames(null, null);
    //               for (ObjectName mbeanName : mbeans) {
    //                    System.out.println(mbeanName);
                   System.out.println("***** JDBC System Resources ********" );
                   ObjectName domain = new ObjectName("com.bea:Name=medrec,Type=Domain");
                   ObjectName[] objNames = (ObjectName[]) con.getAttribute(domain, "JDBCSystemResources");
                   System.out.println("JDBCSystemResources");
                   for( ObjectName objName : objNames )
                        System.out.println( objName );
                        MBeanInfo info = con.getMBeanInfo(objName);
                        MBeanAttributeInfo[] attributes = info.getAttributes();
                        for( MBeanAttributeInfo attrInfo : attributes )
                             String name = attrInfo.getName();
                             System.out.println( name + " " + attrInfo.getType() + " " + con.getAttribute(objName, name) );
              } finally {
                   if (jmxCon != null)
                        jmxCon.close();
    }For me that prints:
    <pre>
    Connecting to: service:jmx:t3://localhost:7011/jndi/weblogic.management.mbeanservers.edit
    ***** JDBC System Resources ********
    JDBCSystemResources
    com.bea:Name=MedRecGlobalDataSourceXA,Type=JDBCSystemResource
    Parent javax.management.ObjectName com.bea:Name=medrec,Type=Domain
    Resource javax.management.ObjectName com.bea:Name=MedRecGlobalDataSourceXA,Type=weblogic.j2ee.descriptor.wl.JDBCDataSourceBean,Parent=[medrec]/JDBCSystemResources[MedRecGlobalDataSourceXA],Path=JDBCResource[MedRecGlobalDataSourceXA]
    Type java.lang.String JDBCSystemResource
    CompatibilityName java.lang.String null
    ModuleType java.lang.String null
    SourcePath java.lang.String ./config/jdbc/MedRec-jdbc.xml
    JDBCResource javax.management.ObjectName com.bea:Name=MedRecGlobalDataSourceXA,Type=weblogic.j2ee.descriptor.wl.JDBCDataSourceBean,Parent=[medrec]/JDBCSystemResources[MedRecGlobalDataSourceXA],Path=JDBCResource[MedRecGlobalDataSourceXA]
    DescriptorFileName java.lang.String jdbc/MedRec-jdbc.xml
    Notes java.lang.String null
    Name java.lang.String MedRecGlobalDataSourceXA
    SubDeployments [Ljavax.management.ObjectName; [Ljavax.management.ObjectName;@3219762f
    DeploymentPrincipalName java.lang.String null
    Targets [Ljavax.management.ObjectName; [Ljavax.management.ObjectName;@178aab40
    DeploymentOrder java.lang.Integer 100
    </pre>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Using JMX to get status information about NetWeaver cluster

    Hi everybody,
    We are trying to use JMX to get some status information about NetWeaver cluster.
    For example, using the MBean with the name u201Ccom.sap.default:name=EL1,j2eeType=SAP_J2EEClusteru201D we can obtain the list of all instances running in cluster. Here an instance is a u201CJava instanceu201D in the NetWeaver terminology.
    The method u201CgetInstanceNodeIDsu201D provides us with a list of all nodes of an instance.
    Concretely, calling this method for a cluster running on one machine with two java processes, we get the following list of node Ids: u201C0, 1476420, 1476450, 1476451u201D where the last two correspond to the two java processes.
    What are the first two node Ids from the list?
    How can the last two node Ids be identified as java processes?
    How can we obtain status information about each java process (node id) ?
    Thanks for all ideas,
    Radu

    As there seems to be a lot of interest in this subject, and since I found some form of solution, I thought I'd share it with you.
    In the es-cli interface, there is a thing called browse mode. Activate it by typing browse after logging in.
    Now you can easily browse your network and all of the managed objects. Use getattributes at the end of each branch to see the properties of objects. So far, I've indexed all of the kernel reader module, the health monitor module, the common config reader and the config reader for workgroup servers. If my employer allows, I will post results to http://tille.garrels.be/training/sunmc/ - check later this week.
    Machtelt.

  • Using JMX and MBeans

    I've been experimenting with Java instrumentation with MBeans.
    I created a small app to try out some of the JMX features. The app has a class that I would like to monitor with MBeans. So I created to interfaces to function as MBeans and then had the class in my app implement both interfaces.
    I then wrote a class with only a main() method to instantiate my class and call the methods it implemented from my MBean interface. In the main method I provided the code to get an MBeanServer object and then use that to register my class that implemented the MBean interfaces. My intention was to try this out, but before I did I commented out the code needed to register the class with the MBean server. I did this because I assumed the implemented interface methods would be available for monitoring without registering and it made me think if I can monitor the instrumented class like this why would I need the MBean server.
    So what is the purpose of the JMX framework and MBeans if I can instrument any class as described above?
    Is it necessary to register only to be able to monitor from outside the JMV where the instrumented class is running?
    Or are there other advantages\features\reasons for registering with the MBean server?
    Thanks

    "MS" <[email protected]> wrote:
    >
    Hello All,
    I am looking for a java program that can create JDBC connection pool
    and datasource
    using JMX/Mbeans of WLS 7.0.2.
    Can somebody help?
    Thanks in advance.
    rgds
    MS

  • Starting/stoping java app using JMX ?

    Hello, do any one know, whether we can start / stop java application using JMX ? I know it is monitoring api and can help to find whether app is up or down

    I see the same error when I start domain1. However, I was able to deploy and configure Access Manager 7.1 using the WAR file method, as described in Sun Java System Access Manager 7.1 Postinstallation Guide, page 153. The Guide's instructions are for Sun Java System Application Server Enterprise Edition 8.2, but they seem to work okay with version 9.1. After deploying the WAR file, the Configurator comes up automatically the first time you browse to its URL, typically http://localhost:8080/amserver.

  • Rz20 remote database monitoring

    Hi girus,
    we have to monitor from our Solution Manager a java remote database. We have followed note 1139623, everything works well in transaction DB02 for this remote system except Alert Monitor Tree under Folder Alert . The icons are inactive and are not showing data.
    We have already set flag "collect alert data" in transaction DBACOCKPIT.
    Any ideas?

    Hello,
    Could you please check note:
    1265134 - DBA Cockpit: Connecting a remote database
    1711688 - DBA Cockpit: RZ20 alerts are not generated
    868063 - Database space statistics monitor for Oracle
    1540222 - DBA Cockpit: Monitoring non-ABAP/Java Oracle databases
    If a database is installed on a remote server than the SAPLOCALHOST parameter should be maintained correctly in the agent profile, the value
    for this parameter should be exactly the same as the SAPDBHOST parameter value in the instance profile. If this is correctly done than in the
    transaction AL15 automatically the flag "DB server" will be selected for the related SAPCCMSR agent RFC destination (note 444947).
    1068204 -  New monitor template for database monitoring
    Monitoring Standalone DB Server using CCMS Agents
    http://scn.sap.com/community/netweaver-administrator/blog/2013/12/18/monitoring-standalone-db-server-using-ccms-agents
    BR
    T

  • Database Monitoring

    Hi guys,
    I am pretty new into Oracle Database Administration. I am currently tasked with database monitoring and I would like to ask you guys what parameters or aspects of database we have to constantly monitor? I know for sure we have to monitor the harddisk space, tablespace free space and latch. However, apart from those parameters, anything else I have to pay attention to? And what are the threshold for each parameter? For example, what is the good percentage of freespace to determine when to expand a tablespace?
    I would really appreciate your view as I am completely clueless. I have checked some books on this matter but most of them jump straight to the finetuning without revealing any detail on the monitoring parameter, threshold, etc.
    My situation is worse since I am the only DBA and the only one competent in it (*sigh*).
    Thank you.
    Richard Siburian

    just study following and try to grab
    #Current working directory
    cwd=`pwd`
    #DBA to whome mail will be sent
    DBALIST="[email protected]";
    while true
    do
    clear
    echo "**************************************************************************"
    echo "* MENU *"
    echo "**************************************************************************"
    echo "* ( 1) Check status of Listener !! *"
    echo "* ( 2) Check status of all Database whose entry in oratab *"
    echo "* ( 3) Display database uptime (days and hours) *"
    echo "* ( 4) Check the ORA- Error in alert log and mail it to dba *"
    echo "* ( 5) Displays information on all database sessions. *"
    echo "* ( *) Press any other key to Go back to main menu *"
    echo "**************************************************************************"
    echo "Enter Your Choice from Menu between 1 and 6 :-"
    read choice
    case $choice in
    1)
    echo "checking for the listiner"
    listiner_up=`ps -ef | grep LISTENER | grep -v grep |awk '{print$9}'|wc -l`     
    if [ $listiner_up -ge 2 ]
    then
         echo "listiner is up, Have a Great time......"
    while true
    do
    echo " Do you want to Stop the Listiner? (y or n) :"
    read CONFIRM1
    case $CONFIRM1 in
    y|Y|YES|yes|Yes)
    lsnrctl stop;
    callme;
    break ;;
    n|N|no|NO|No)
    echo Aborting - you entered $CONFIRM
    callme;
    break
    *) echo Please enter only y or n
    esac
    done
         else
         echo "Listiner is Down, ."
    while true
    do
    echo " Do you want to Start the Listiner? (y or n) :"
    read CONFIRM1
    case $CONFIRM1 in
    y|Y|YES|yes|Yes)
    lsnrctl start;
    callme;
    break ;;
    n|N|no|NO|No)
    echo Aborting - you entered $CONFIRM
    callme;
    break
    *) echo Please enter only y or n
    esac
    done
    fi
    2)
    #Script By DCP
    #Check status of all Database whose entry in oratab
    clear;
    if [ -f /etc/oratab ]
    then
    ORATAB=/etc/oratab
    elif [ -f /var/opt/oracle/oratab ]
    then
    ORATAB=/var/opt/oracle/oratab
    else
    echo "Unable to locate "
    fi
    echo "`date` "
    echo "Oracle Database(s) Status `hostname` "
    db=`egrep -i ":Y|:N" $ORATAB | cut -d":" -f1 | grep -v "\#" | grep -v "\*"`
    for i in $db ; do
    database_up=`ps -ef | grep ora_smon_$i|grep -v grep |awk '{print$8}'|wc -l`
    if [ $database_up -eq 1 ]
    then
         echo "Oracle Instance - $i : UP"
    else
    echo "Oracle Instance - $i : Down"
    fi
    done
    while true
    do
    echo "Do you want to Continue or not Please confirm ? (y or n) :"
    read CONFIRM
    case $CONFIRM in
    y|Y|YES|yes|Yes) break ;;
    n|N|no|NO|No)
    echo Aborting - you entered $CONFIRM
    exit
    *) echo Please enter only y or n
    esac
    done
    echo You entered $CONFIRM. Continuing ...;;
    3)
    #Script By DCP
    #Display database uptime (days and hours)
    clear;
    echo "---------------------------------------------------"
    echo "`date` "
    echo "Oracle Database(s) Status `hostname` "
    echo "---------------------------------------------------"
    Live=`ps -ef | grep ora_smon | grep -v grep |awk '{print$8}'|cut -d "_" -f2-3 >$cwd/live.txt`
    db=`egrep -i "smon" $cwd/live.txt |cut -d "_" -f2`
    for i in $db ; do
    database_up=`ps -ef | grep ora_smon_$i|grep -v grep |awk '{print$8}'|wc -l`
    if [ $database_up -eq 1 ]
    then
         echo "Oracle Instance - $i : UP"
    fi
    echo "---------------------------------------------------"
    done
    echo "Enter the Database name:- "
    read ORACLE_SID
    db=`ps -ef | grep ora_smon_$ORACLE_SID|grep -v grep |awk '{print$8}'|cut -d "_" -f3`
    if [ "$db" = "$ORACLE_SID" ]
    then
    export ORACLE_SID
    sqlplus -s "/ as sysdba" <<EOF
    set feed off
    set linesize 280
    set pagesize 200
    select SYSDATE-logon_time "Days", (SYSDATE-logon_time)*24 "Hours"
    from sys.v_\$session
    where program like '%PMON%';
    exit;
    EOF
    else
    echo "Enter the Valid Name or DB is shudown"
    fi
    while true
    do
    echo "Do you want to Continue or not Please confirm ? (y or n) :"
    read CONFIRM
    case $CONFIRM in
    y|Y|YES|yes|Yes) break ;;
    n|N|no|NO|No)
    echo Aborting - you entered $CONFIRM
    clear
    exit
    echo Please enter only y or n
    esac
    done
    echo You entered $CONFIRM. Continuing ...
    4)
    #Script By DCP
    # Check the ORA- Error in alert log and mail it to dba
    clear;
    echo "---------------------------------------------------"
    echo "`date` "
    echo "Oracle Database(s) Status `hostname` "
    echo "---------------------------------------------------"
    Live=`ps -ef | grep ora_smon | grep -v grep |awk '{print$8}'|cut -d "_" -f2-3 >$cwd/live.txt`
    db=`egrep -i "smon" $cwd/live.txt |cut -d "_" -f2`
    for i in $db ; do
    database_up=`ps -ef | grep ora_smon_$i|grep -v grep |awk '{print$8}'|wc -l`
    if [ $database_up -eq 1 ]
    then
         echo "Oracle Instance - $i : UP"
    fi
    echo "---------------------------------------------------"
    done
    echo "---------------------------------------------------------------------------"
    echo Alert \!!! This part is hardcoded, PLZ Modify it , just change Value of DLOC
    echo "---------------------------------------------------------------------------"
    sleep 2;
    DLOC=/u01/oracle/product/10.2.0/test/test/bdump
    while true
    do
    echo "Enter the database name: "
    read SID
    echo "Checking for alert log of $SID database"
    case $SID in
    $SID)
    cd $DLOC
    if [ -f alert_${SID}.log ]
    then
    echo Moving....................
         mv /$DLOC/alert_${SID}.log /$DLOC/alert_work.log
         echo Touching................
    touch /$DLOC/alert_${SID}.log
    cat /$DLOC/alert_work.log >> /$DLOC/alert_${SID}.hist
    echo greping.....................
    grep ORA- /$DLOC/alert_work.log > /$DLOC/alert.err
    if [ `cat /$DLOC/alert.err|wc -l` -gt 0 ]
    then
    mail -s "${SID} ORACLE ALERT ERRORS" $DBALIST < /$DLOC/alert.err
         echo Sending Mail.................
         else
         echo "No Error from last ......Nothing to Mail to DBA...."
    fi
    rm -f /$DLOC/alert.err
    rm -f /$DLOC/alert_work.log
    while true
    do
    echo "Do you want to Continue or not Please confirm ? (y or n) :"
    read CONFIRM
    case $CONFIRM in
    y|Y|YES|yes|Yes) break ;;
    n|N|no|NO|No)
    echo Aborting - you entered $CONFIRM
    clear
    exit
    echo Please enter only y or n
    esac
    done
    echo You entered $CONFIRM. Continuing ...
    else
    echo " "
    echo "No alert Log file found......Nothing to Mail to DBA...."
    echo " "     
    callme;
    fi
    break ;;
    n|N|no|NO|No)
    echo Aborting - you entered $CONFIRM
    exit
    *) echo Please enter only y or n
    esac
    done
    5)
    #Script By DCP
    #Displays information on all database sessions
    clear;
    echo "---------------------------------------------------"
    echo "`date` "
    echo "Oracle Database(s) Status `hostname` "
    echo "---------------------------------------------------"
    Live=`ps -ef | grep ora_smon | grep -v grep |awk '{print$8}'|cut -d "_" -f2-3 >$cwd/live.txt`
    db=`egrep -i "smon" $cwd/live.txt |cut -d "_" -f2`
    for i in $db ; do
    database_up=`ps -ef | grep ora_smon_$i|grep -v grep |awk '{print$8}'|wc -l`
    if [ $database_up -eq 1 ]
    then
         echo "Oracle Instance - $i : UP"
    fi
    echo "---------------------------------------------------"
    done
    echo "Enter the Database name:- "
    read ORACLE_SID
    db=`ps -ef | grep ora_smon_$ORACLE_SID|grep -v grep |awk '{print$8}'|cut -d "_" -f3`
    if [ "$db" = "$ORACLE_SID" ]
    then
    export ORACLE_SID
    sqlplus -s "/ as sysdba" <<EOF
    spool $cwd/curses.log
    #set feed off
    #set heading off
    set line 180
    SET LINESIZE 500
    SET PAGESIZE 1000
    SET VERIFY OFF
    COLUMN username FORMAT A15
    COLUMN machine FORMAT A25
    COLUMN logon_time FORMAT A20
    SELECT NVL(a.username, '(oracle)') AS username,
    a.osuser,
    c.value ,
    a.status,
    a.module,
    a.machine,
    a.program,
    TO_CHAR(a.logon_Time,'DD-MON-YYYY HH24:MI:SS') AS logon_time
    FROM v\$session a,
    v\$sesstat c,
    v\$statname d
    WHERE a.sid = c.sid
    AND c.statistic#
    = d.statistic#
    AND d.name = DECODE(UPPER('value'), 'READS', 'session logical reads',
    'EXECS', 'execute count',
    'CPU', 'CPU used by this session',
    'CPU used by this session')
    AND USERNAME IS NOT NULL
    ORDER BY c.value DESC;
    SET PAGESIZE 14
    spool off;
    exit;
    EOF
    if [ `cat $cwd/curses.log|wc -l` -gt 0 ]
    then
    cat $cwd/curses.log
    else
    echo "Oppppppssss....No Active user session"
    fi
    else
    echo "Enter the Valid Name or DB is shudown"
    fi
    while true
    do
    echo "Do you want to Continue or not Please confirm ? (y or n) :"
    read CONFIRM
    case $CONFIRM in
    y|Y|YES|yes|Yes) break ;;
    n|N|no|NO|No)
    echo Aborting - you entered $CONFIRM
    clear
    exit
    echo Please enter only y or n
    esac
    done
    echo You entered $CONFIRM. Continuing ...
    #hi
    clear
    exit
    esac
    done

  • When should I use JMX

    Hi all
    I am new to JMX and trying to understand the concepts here.
    I read what is JMX (manages/monitors the application)
    Today let say, I have already web based application. I already monitor and manage what I need. So why would I want JMX?
    If using JMX , I can manage and monitor, then why would I need my web based app?
    I appriciate if some one explains me this.
    thanks

    Hi,
    You may be interested in these three articles:
    "What is JMX":
    http://blogs.sun.com/jmxetc/entry/what_is_jmx
    "Easy Is Not Always Simple":
    http://blogs.sun.com/jmxetc/entry/easy_is_not_always_simple
    Also the excellent article by Brian Goetz:
    "Java theory and practice: Instrumenting applications with JMX"
    http://www-128.ibm.com/developerworks/java/library/j-jtp09196/index.html
    I believe they will answer your questions.
    Best regards,
    -- daniel
    JMX, SNMP, Java, etc...
    http://blogs.sun.com/jmxetc

  • Database monitoring and control i

    Hi all,
    I am looking for various options to monitor and control the database.
    Could you provide your thoughts on this.

    You will get more, faster and better responses to your questions when you learn that your questions should contain as much information about your interests as you can provide.
    What you asked about database monitoring is pretty close to posting only question mark in you post. Like this : *?*
    When you are going to car mechanic to ask him for advice about your car, you will not just tell him : I am looking for thoughts on achiving higher HP for my car,tell me ,how to do that? .
    You will obviusly tell him at least what car you have, what model, what year was made and so on. You can apply almost the same logic when asking oracle questions here.
    For zilion reasons , providing at least information about database release you are using is a 'must do' when asking a question.
    Also, your first stop when looking for info about something that is so general as your question here suggests, should be http://tahiti.oracle.com/ , where you could eventually, as in this case , after few more clicks lead yourself to this, and after that enable yourself to ask more specific and concrete question.
    By the way, your forum activity statistics are saying that you are one of those posters which is appearing here with the moto 'ask question-respond never' , and this attitude can discourage many forum members to help you because they prefer two-way communication, which you obviusly don't.

  • How to configure the database monitoring (DBA Cockpit) after Support pack

    Hi,
    I did the Support Pack Upgrade for BW system and i ran SGEN as well, now i need to configure the database , could you please suggest how to configure the database monitoring (DBA Cockpit) after Support Pack Upgrade.
    Server is MSSQL , Component is SAP NetWeaver 2004s and OS is Windows NT.
    Plesae suggest.
    Chandu.

    Hi,
    You are right. SAP delivers this functionality from SP-12. So when you have applied the SP-12, you must have done these config steps to enable the DBA Cockpit.
    If you have done these steps earlier, So you must have DBA Cockpit enable right now and putting extra SPs like 13, 14 and so on, should not be a matter.
    Now if you have not performed those config steps before, Please do them now and you will be able to use DBA cockpit.
    Please understand that SP12 is the base to run DBA Cockpit.
    With Regards,
    Saurabh

  • Using JMX to get rollback statistics

    Has anyone used MBean monitoring to get WebLogic transaction rollback statistics? Is there any example code for this out there?
    thanks,
    Jake Vogelaar

    Hello Adam,
    Adam Lunger wrote:
    I have registered a notification listener with a JMSDestinationRuntimeMBean, but I don't get any notifications.
    What notifications are sent from the JMSDestinationRuntimeMBean? All kinds of JMX Notifications like AttributeChangeNotifications.
    >
    Specifically I want to receive notifications when the MesssagesCurrentCount changes. Can I use JMX to get these notifications? Any help is appreciated.Yes, you can use JMX to get notifications when this attribute changes.
    Check out
    http://e-docs.bea.com/wls/docs81/jmx/notifications.html#1118345
    Thanks,
    -satya

  • How to use a Logical Database in Function Module.

    Hi Experts,
    I want to use a logical database in a Function Module to fetch data from a standard SAP table into a Internal table for certain filter conditions.
    How can I get get this done????
    I called LDB_PROCESS FM in my FM, but I could not figure out how to store the extract in my IT table since we cant use GET in FM.
    Please provide me a sample code if possible.
    Thanks in Advance,
    Alex.

    Hi,
    i had an example program like this ,in this i want to get the data using pnp logical database with 5 fields in an interface program.
    data: begin of it_final occurs 0,
            pernr like pa0002-pernr,
            vorna like pa0002-vorna,
            nachn like pa0002-nachn,
           usrid like pa0105-usrid,
           usrid_long like pa0105-usrid_long,
           end of it_final.
    get pernr.
      clear : p0000,p0002,p0105.
      rp-provide-from-last p0000 space p_date p_date.
      if p0000-stat2 = '3'.
        v_pernr = pnppernr-low.
      else.
        reject.
      endif.
    *---Get employee pernr, First name ,Last name into final table
      rp-provide-from-last p0002 space p_date p_date.
      if pnp-sw-found = '1'.
       it_final-pernr = p0002-pernr.
       it_final-vorna = p0002-vorna.
       it_final-nachn = p0002-nachn.
      else.
    *---Error message if not infotype 0002 maintained
      T_ERROR-PERNR   = pnppernr-low.
      CONCATENATE TEXT-EMI '0002'
      INTO T_ERROR-MESSAGE SEPARATED BY SPACE.
      APPEND T_ERROR.
      CLEAR T_ERROR.
      endif.
    **--Get SYSTEM USERNAME to final table
      rp-provide-from-last p0105 0001 p_date p_date.
      if pnp-sw-found = '1'.
        it_final-usrid = p0105-usrid.
      else.
    *---Error message if not SYSTEM USERNAME maintained
        T_ERROR-PERNR   = pnppernr-low.
        CONCATENATE TEXT-003 '0105'
        INTO T_ERROR-MESSAGE SEPARATED BY SPACE.
        APPEND T_ERROR.
        CLEAR T_ERROR.
      endif.
    **--Get Email ID to final table
      rp-provide-from-last p0105 0010 p_date p_date.
      if pnp-sw-found = '1'.
        it_final-usrid_long = p0105-usrid_long.
      else.
    *---Error message if not Email ID maintained
        T_ERROR-PERNR   = pnppernr-low.
        CONCATENATE TEXT-004 '0105'
        INTO T_ERROR-MESSAGE SEPARATED BY SPACE.
        APPEND T_ERROR.
        CLEAR T_ERROR.
      endif.
       append it_final.
        clear it_final.
    reward points if useful,
    venkat.

Maybe you are looking for