Commit f51d29df f51d29df86cdeaf17f4379b1cf12f65bcad3f7b7 by Christian Gerdes

Fixed issue #6

1 parent 74405399
/se
/lilom.jar
/JmxMonRESTgetMetrics.class
/JmxMonRESTgetData.class
/JmxMonRESTgetMetrics.class
/OraMonRESTgetData.class
/OraMonRESTgetMetrics.class
......
No preview for this file type
......@@ -233,6 +233,8 @@ public class OraMon {
cpuTime.update(rset, 3, false, false);
rset.beforeFirst();
niwTime.update(rset, 2, false);
rset.close();
scrollStmt.close();
// cpuTime.update(stmt.executeQuery("select systimestamp, value from V$SYS_TIME_MODEL where stat_name='DB CPU'"));
// niwTime.update(stmt.executeQuery("select systimestamp, value from V$SYSSTAT where name='non-idle wait time'"));
......
......@@ -17,7 +17,7 @@ public class TestRunner {
//ArrayList<OraMon> oraList = new ArrayList<OraMon>();
ArrayList<OraMon> oraList = Registry.getList();
OraMon mon1 = new OraMon("jdbc:oracle:thin:@//host:port/service","user","pass"); // SID eller Service Name format
OraMon mon1 = new OraMon("jdbc:oracle:thin:@uvp3dbkappkg:1550:VP1K03","dbsnmp","dbsnmp"); // SID eller Service Name format
//OraMon mon2 = new OraMon("jdbc:oracle:thin:@host:port:sid","user","pass"); // SID format
mon1.open();
//mon2.open();
......