Get database metrics in 9i

Hello,
I use oracle 9.2.0.6. I need to get information about:
1. percent of CPU use in real time
2. percent of space used in a tablespace (in MB)
3. percent of memory used by database
4. number of corrupt Data Blocks
5. number sorts to disk (per second)
6. Unavailable or available database
I hope you will help me to write this selects.
Thanks in advance

I find by myself.

Similar Messages

  • Trying to install Photo Shop CS3 Extended on Windows 8 and keep getting database corrupted

    Hi, I am trying to install my Adobe Photoshop CS3 Extended on my new Windows 8 OS 64 Bit computer. The CD does not have a scratch on it, it is like new. I get the error database is corrupted. Contact Adobe Support.
    I went to the Adobe website and downloaded the updated installer, same error. I tried running the installer in Windows XP compatibility mode, it looks like it installed, but when I run I get database corrupted.
    I could really use some help.

    Error "...Installer Database is Corrupt..." when you install Adobe Creative Suite 3 products

  • Can we get database creation script using any packages?

    Hi Friends,
    we will get table creation script using dbms_metadata.get_ddl package. just like that is there any way to get database creation script? i know that we can add some lines to controlfile trace to convert it into database creation script. but i would like to know whether it is possible through packages?
    thanks in advance.

    I think there's no package to use it for getting database creation script. But anyway, you can search it in [Oracle Database PL/SQL Packages and Types Reference|http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/toc.htm]
    Kamran Agayev A. (10g OCP)
    http://kamranagayev.wordpress.com
    [Step by Step install Oracle on Linux and Automate the installation using Shell Script |http://kamranagayev.wordpress.com/2009/05/01/step-by-step-installing-oracle-database-10g-release-2-on-linux-centos-and-automate-the-installation-using-linux-shell-script/]

  • How to get database connection in applet

    Hi,
    I am trying to prepare database connection in applet. After preparing connection with database it'll read same values from table.
    At the time of development it works fine. I have used esclipse IDE for coding and testing.
    But when I try to call that applet from browser. It is giving ClassNotFound exception.
    Does anybody know How to get database connection in applet ?
    Please help me if anybody know solution for this.
    Thanks,
    Rajesh

    As per my knowledge is conserned
    1 u can get the database connection in a jsp page and u send the result set as param to the applet and u can use retrieved values as if they were of the same applet if u r interested i can send the db connetion coding for jsp my id [email protected]

  • How we get database data tohtml;select  in struts

    Hi,
    i need to populate the data from database to struts dropdown list(html:select). here i got error. tell the way to get database data to dropdown list.

    Guruji...you need to do something like this....!!!
    //In action or your controller class
    ArrayList billingGroupBeanList = getBillingGroupBeanList();
                   if (billingGroupBeanList.size() > 0) {
                        session.setAttribute("billingItemGroup", billingGroupBeanList);
         private ArrayList<LabelValueBean> getBillingGroupBeanList() {
              log.debug("Entering getBillingGroupBeanList...");
              BillingItemGroup billingItemGroup = null;
              ArrayList<LabelValueBean> billingItemGroupsBean = null;
              ArrayList billingItemGroupList = null;
              Iterator billingItemGroupsItr = null;
             try {          
                   billingItemGroupsBean = new ArrayList<LabelValueBean>();
                   billingItemGroupList =  billingItemManagerFacade.getBillingItemGroupList(); //getting the value from database
                   billingItemGroupsItr = billingItemGroupList.iterator();
                   while(billingItemGroupsItr.hasNext()) {
                        billingItemGroup = (BillingItemGroup)billingItemGroupsItr.next();
                        billingItemGroupsBean.add(new LabelValueBean(billingItemGroup.getGroupDesc(),
                                  new Integer(billingItemGroup.getBillingItemGroupId()).toString()));
              } catch (Exception ex) {
                log.error("\nError occured in action:getBillingGroupBeanList() method: "+ commonUtils.getStackTraceAsString(ex));
              log.debug("Exiting getBillingGroupBeanList...");
              return billingItemGroupsBean;
    And in your jsp
    <td width="25%" class="oddcellleft">
                                  <html:select property="billingItemGroupId">
                                       <html:options collection="billingItemGroup" property="value" labelProperty="label" />
                                  </html:select>
                             </td>where your form should have a getter/setter for billingItemGroupId....!!!!
    Let me know if you have any more doubt...!!!

  • Unable to get database instances

    I have a custom Java plugin that I had to migrate to a new server. I'm assuming I am missing some configuration somewhere that was present on the old server.
    I am getting this error: com.primavera.integration.client.ClientException: Unable to get database instances.
    I have tested the "demogeneral.cmd" and it seems to login to the database just fine.
    I'm not quite sure what else to test now.

    Not sure if your plugin is running local or remote but I have used this to test remote connections.
    import com.primavera.integration.client.Session;
    import com.primavera.integration.client.EnterpriseLoadManager;
    import com.primavera.integration.client.RMIURL;
    import com.primavera.integration.client.bo.object.Activity;
    import com.primavera.integration.common.DatabaseInstance;
    import com.primavera.integration.client.bo.BOIterator;
    import com.primavera.integration.client.bo.object.Project;
    import java.util.ArrayList;
    public class Main {
    public static void main(String[] args) {
    Session session = null;
    String host = "Bavaria";
    int port = 9099;
    String user = "admin";
    String password = "password";
    String databaseName = "P6Demo";
    String databaseId = "";
    try
    DatabaseInstance[] dbInstances = Session.getDatabaseInstances( RMIURL.getRmiUrl( RMIURL.STANDARD_RMI_SERVICE, host, port ));
    for (DatabaseInstance dbInstance : dbInstances ) {
                        System.out.println(dbInstance.getDatabaseName());
                        System.out.println(dbInstance.getDatabaseId());
                        System.out.println();
                        if (dbInstance.getDatabaseName().equals(databaseName)) {
                             databaseId = dbInstance.getDatabaseId();
                   if (databaseId != "") {
                        session = Session.login( RMIURL.getRmiUrl( RMIURL.STANDARD_RMI_SERVICE, host, port ), databaseId, user, password);
                        System.out.println("Logged In");
    catch ( Exception e )
    System.out.println(e.getMessage());
    finally
    if ( session != null ) session.logout();
    }

  • Database Toolkit - Get Database Information

    Hi All,
    I'm struggling a bit with this toolkit, and thought I'd bring it up on here for some input.
    Using the included functions with that toolkit, I'm able to connect to my database, but i'm having trouble writing to it (Error -2147217913).  I'm a bit concerned that maybe my data types don't match, so in order to confirm, I noticed in the examples given with this toolkit there was a VI that gets your database information (Column names, tables, most relevant - data types per column name.).  Something odd happened that I'm not sure if its supposed to:
    I changed the UDL address of the example database, to my database's UDL...nothing else, just to get a list of datatypes.  Now using their UDL it finishes cleanly, w/no error.  With my UDL - I receive Error -2147217900 occurred at Conn Execute.vi->DB Tools List Columns.vi->Get Database Information.vi.  Interesting eh?  But it does show every column name/and data type, wonder why it fails though?
    Anyone have some recommendations of how to troubleshoot next? Or how to interpret this?  I'm betting if I can figure out why its failing in the example program, both failures are maybe tied together?
    LV7.1, LV8.5

    Hi Aashish!
    Good news, figured out the problem...I WAS writing a null to the database (by accident), and while access doesn't mind them - the toolkit is based on SQL standard which i believe does.  The program had a cluster that was being initialized, and fed into a loop where it waited for user action. (So we didn't have left over garbage in each field whenever the app ran.)  Once the user input all their data, that same wire was fed into the input to populate the array. I thought it would update the cluster as the controls were changed, but I guess the only way to change elements is to unbundle, change and rebundle. (At least thats how it behaves)
    Appreciate the help, but while on the topic maybe you can give me a pointer, the only way I could work it so a fresh copy of the data was sent into the cluster, was to make a local variable of the cluster and wire that to the input (See picture).  Rather than get yelled at later if I need more help, any idea how to reduce that local so we don't require a duplicate copy of the data?  (avoid race conditions, etc.)  Or would you even?  Guess it boils down to, is there another way to update the cluster in there?  I can unbundle, and rebundle, but I'm not sure what I'd do between the two to update all those to feed into the database...its a bit confusing to describe but I think it gets the idea across lol.
    I was thinking about a way to do it...and thought maybe I need an indicator for each control, then when the indicator changes, feed that into the control cluster to update from intial and go from there...but thats a copy of data the same size as the local would make, I'd think.
    LV7.1, LV8.5
    Attachments:
    Working method.JPG ‏147 KB

  • Get databases from server

    Hi, thanks in advance for reading.
    How do i get databases in a server instance?
    In SQL Server I'd do, "exec sp_databases".
    Any help would be appreciated
    Bye

    To put simply, schemas define ownership of database objects.
    You have some tables, procedures, packages created - they will reside in your schema. You and only you can have an access to them, other users must be granted necessary privileges (well, there are exceptions to this rule - powerfull system privileges like SELECT ANY TABLE, but let's postpone their discussion).
    I have some table, packages etc. created - they will reside in my schema...
    And so on...
    If you need to list objects of some specific schema, say SCOTT, you can issue:
    select *
      from all_objects
    where owner = 'SCOTT';But bear in mind: this will display SCOTT's objects accessible to you.
    Regards.

  • QUERY TO GET database size, used size, freesize, tablespacesize of RQ table

    Pls give me a query for to get database size, used size, freesize, tablespacesize of sometables which is starting with 'RQ%'
    I have to get result like this
    Total size, used size, free size ,tablespace size of RQ tables alone
    Reason why i go for "tablespace size of RQ tables" i want to know the size of database after deleting the rq tables
    ( Since i am not getting any reply i go for database forum)
    Pls reply
    S
    Edited by: AswinGousalya on Jul 8, 2009 3:41 PM

    Hello,
    This question looks like it is really for the Oracle RDBMS and not for Berkeley DB. In BDB, we do not have a notion of tablespace size. What database product are you using?
    regards,
    mike brey
    BDB engineering

  • Query for  to get  database size, used size, freesize, db size after drop

    Pls give me a query for to get database size, used size, freesize, tablespacesize of sometables which is starting with 'RQ%'
    I have to get result like this
    Total size, used size, free size ,tablespace size of RQ tables alone
    Reason why i go for "tablespace size of RQ tables" i want to know the size of database after deleting the rq tables
    Pls reply
    S

    i tried with
    SELECT
    --fs.tablespace_name name,
    df.totalspace/1024/1024 mbytes,
    (df.totalspace - fs.freespace)/1024/1024 used,
    fs.freespace/1024/1024 free
    FROM
    (SELECT
    --tablespace_name,
    ROUND(SUM(bytes)) TotalSpace
    FROM
    dba_data_files
    ) df,
    (SELECT
    --tablespace_name,
    ROUND(SUM(bytes)) FreeSpace
    FROM
    dba_free_space
    ) fs
    i AM GETTING total bytes, used bytes, free bytes
    I WANT TO include one more column.. database size after deleting rq tables
    Pls reply
    S
    Edited by: AswinGousalya on Jul 10, 2009 2:17 PM

  • Unable to get jrpp. metrics

    We're running JRun 4 and CF 6.1 with Apache 2.x and Windows
    2000 Server.
    I cannot get any metrics logged except for totalMemory and
    freeMemory. All "jrpp." metrics are 0. I tried removing the metrics
    prefix (jrpp) but then the variables are not interpreted and show
    up as "busyTh", for example.
    I followed at least three examples of how to set up jrun.xml
    and this still won't work. Please help! This is driving me nuts.
    Some code is attached below:

    There is documentation on how to get the metrics available in the developers guide available [here|http://help.sap.com/businessobject/product_guides/boexir31/en/boesdk_java_dg_12_en.zip]
    You want to look under Using the SDK -> Server administration -> Managing servers -> To get server metrics

  • Why is the data source not getting database connection without  exception?

    experts,
    I am trying to config server.xml to get database connection. i am now getting no exception duing the connection, but the returned connection is NULL, why? thanks/ this is my codes:
    public synchronized Connection getConnection()
    try{
    Context ctx = new InitialContext();
    if (ctx == null)
    throw new Exception("Context is null");
    Context initContext = new InitialContext();
    Context envContext = (Context)initContext.lookup("java:/comp/env");
    DataSource ds = (DataSource)envContext.lookup("test");
    Connection conn = ds.getConnection();
    }catch(Exception ex)
    ex.printStackTrace();
    return conn;
    }

    Remove the first slash after "java:".
    Context envContext =(Context)initContext.lookup("java:comp/env");

  • SUN JES 8.1 Q2UR2: Long time taken in getting database connection.

    Application server registered intermittent slowness in getting database connection from javax.sql.DataSource. Based on the following JMX value, the application servers still haven�t reached the threshold. Its identified the slowness was due to application server performing validation (select count(*) from dual).
    Sample code:
    ds.getConnection(username, password); // where DS is the javax.sql.DataSource
    Network
    It is observed that the bi-directional ping stats showed that the response time < 1.19 ms. Network Switch port utilisation was <30% and there were no errors and collision detected.
    Database
    Based on oracle database statspack, it showed that the database is healthy. On top of that, the following query was scheduled to be executed every second to monitor Select count(*) from dual elapsed time.
    select sess.sid, sess.serial#, sess.client_info, sess.program, sql.sql_text, sql.elapsed_time from V$SESSION sess, V$SQL sql where sess.sql_hash_value=sql.hash_value and upper(sql.sql_text) like 'SELECT COUNT(*) FROM DUAL' order by sess.sid
    Basically this query will capture the cumulative elapsed time per session id. This query is able to caption �Select count(*) from dual� that ran more than 2 seconds.
    Example 1 � how the cumulative elapsed time registered in the log:
    2006_11_02_16_53_55,Connection 1, SID 1 perform a select count(*) from dual. Oracle registered elapsed time 10 ms.
    2006_11_02_16_53_55,Connection 2, SID 2 perform a select count(*) from dual. Oracle registered elapsed time 10 ms.
    2006_11_02_16_54_57,Connection 1, SID 1 perform a select count(*) from dual. Oracle registered elapsed time 20 ms.
    2006_11_02_16_54_58,Connection 1, SID 1 perform a select count(*) from dual. Oracle registered elapsed time 30 ms.
    2006_11_02_16_54_58,Connection 2, SID 2 perform a select count(*) from dual. Oracle registered elapsed time 20 ms.
    Example 2 � If query ran more than 2 sec:
    2006_11_02_16_53_55,Connection 1, SID 1 perform a select count(*) from dual. Oracle registered elapsed time 10 ms.
    2006_11_02_16_53_57,Connection 1, SID 1 perform a select count(*) from dual. Oracle registered elapsed time 20 ms.
    2006_11_02_16_54_57,Connection 1, SID 1 perform a select count(*) from dual. Oracle registered elapsed time 2030 ms. << if query that ran more than 2 secs, there will be a sudden jump of 2 secs in the subsequent cumulative elapsed time.
    Previously based on jmx log, it do registered 10k connections was acquired in 1 second and only 6 active connections was used. If same connection was used and on the same second, the cumulative elapsed time will registered in the log. The longest elapsed time that registered in 2 Nov 2006 01:00 pm to 05:00 pm logs was 800 ms but long get database connection still registered 5 to 7 seconds.
    Questions:
    1) Is it possible that I can use dtrace to capture the bottleneck?
    System information:
    Oracle:
    DriverVersion: [10.2.0.1.0]
    DriverMajorVersion: [10]
    DriverMinorVersion: [2]
    DriverName: [Oracle JDBC driver]
    URL: [jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST= (ADDRESS=(PROTOCOL = TCP) (HOST = XXXXXX) (PORT = 1524)) (ADDRESS=(PROTOCOL = TCP) (HOST = XXXXXX) (PORT = 1524))) (CONNECT_DATA = (SID = CP_P)) (source_route=yes))]
    UserName: [CP_P1]
    Database Product Name: [Oracle]
    Database Product Version: [Oracle9i Enterprise Edition Release 9.2.0.6.0 - 64bit Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.6.0 - Production]
    Database Product Major: [9]
    Database Product Minor: [2]
    Drivers: Type 4
    JDK
    JDBC Major: [10]
    JDBC Minor: [2]
    The JDK version is 1.5.0_02
    SUN JES Application Server
    Sun Java System Application Server Enterprise Edition 8.1_02 running under solaris 10

    Massive Crossposting:
    http://forum.java.sun.com/thread.jspa?threadID=790473&messageID=4491822#4491822
    http://forum.java.sun.com/thread.jspa?threadID=790472&messageID=4491819#4491819
    http://forum.java.sun.com/thread.jspa?threadID=790471&messageID=4491817#4491817
    http://forum.java.sun.com/thread.jspa?threadID=790470&messageID=4491816#4491816
    http://forum.java.sun.com/thread.jspa?threadID=790469&messageID=4491815#4491815
    http://forum.java.sun.com/thread.jspa?threadID=790468&messageID=4491814#4491814
    http://forum.java.sun.com/thread.jspa?threadID=790466&messageID=4491812#4491812

  • Getting performance metrices

    Hi All,
    I am new to the forum and hi everyone.....
    I need to develop an application to, fetch data from almost all of the Oracle 10g releas 3 Application server Metric Tables. I cannot use builtin tools provided with Oracle 10g release 3 like, dmstool.bat. In the Oracle application server 10 g release 2, I was able to get the metric tables performance data in an xml format through web browser by giving
    http://<IPAddress:port/dms0/AggreSpy?format=xml&table=ohs_responses.....
    But in Oracle Application server 10 g release 3, the above url does not show me the metrices in the xml format. it still shows the Metric tables welcome page.
    I have made configuration in the dms.conf file such that it redirects to servelt http://<IPAdress>::7200/dmsoc4j/AggreSpy?format=xml&....
    Is there any additional configuration need to be done for getting the metrices in the xml format or can anyone tell me the way or url trough which i can access the metrices tables in xml format by web browser for oracle 10 g release 3 Application server.
    Thank u all, Awaiting for ur reply

    Thanks for ur reply..
    I want to confirm one more thing that, through aggrespy Is it possible to get the xml format of the metic tables?
    I was able to get them in Oracle application server 10g release 2.The URL i used is http://server:port/dmsoc4j/AggreSpy?format=xml
    In oracle 10 g release 3 ,I am getting the existing page, the page is not getting converted to xml format.By using dmstool, i am able to get xml format by giving
    "dmstool -dump format=xml".
    Can u please confirm me this thing? If possible what additional configuration is required.
    Thank u in advance....

  • Getting the Metric evaluation error start - Unable to run the process

    Hi,
    I am getting the below error:
    Metric evaluation error start - Unable to run the process
    We are using the Grid Control for monitoring purposes, and we get this error frequently from different databases. Please do let me know if anyone have faced this error before or know about it. Any kind of help is greatly appreciated!
    Thanks.

    Where are you seeing this error?
    Can you confirm the target exists (check targets.xml on the agent) and that the instance of the target has it defined correctly (all the required instance properties are there)?
    Given that those check out, can you open up the metric browser on the agent and make sure the target looks ok there.

Maybe you are looking for

  • Flash CS3 and Web Services (again)

    Ok, I'm sorry to be going on about this... I've seen the question asked before, but I am yet to find an answer. -I just noticed that the Web Service Connector targets only AS2. Along with several other components. I was hoping to find CS3 working BET

  • GRIR Differences in MIRO Transaction

    Dear Friends, I have one issue in MIRO Document posting, I will explain the issue by below steps. 1. I have created Purchase Order with option "Exchange rate fixed" and my PO Exchange rate is 1.8700     Purchase order details    Quantity - 2, Price -

  • Java Mail with Servlets

    Hello friends , I am using win-2000 OS.I want to know @ mail servers IMAP & SMTP .How I can get these services ?or Can I use my tomcat server ? by configuring it & how to configure .If not possible then how to get these services.

  • ArgumentError: Can't find ManagedQuery or ManagedOperation

    Hi everyone, I'm experiencing an odd behavior that returns this error: ArgumentError: Can't find ManagedQuery or ManagedOperation named: (...) This messages pops up any time I access a php service from a viewstack having enabled paging on a certain m

  • I have paid my membership but when I launch an app in CC it says "We are having trouble verifying"

    I have paid my membership but when I launch an app in CC it says "We are having trouble verifying your account" How can I solve this? Payment has come out of my account.