Commit f51d29df f51d29df86cdeaf17f4379b1cf12f65bcad3f7b7 by Christian Gerdes

Fixed issue #6

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