Fixed issue #6
Showing
5 changed files
with
4 additions
and
4 deletions
No preview for this file type
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(); | ... | ... |
-
Please register or sign in to post a comment