oracle - database connection by an applicaiton -
how to know how many connection established application database(oracle). have java web application connection oracle database. want know how may connections open db when application running.
you can see number of active sessions through querying v$session
table:
select * v$session
you filter specific users/programs check how many parallel connections have been openend, i.e.
statement stmt = con.createstatement(); resultset rs = stmt.executequery("select count(*) cnt v$session program = 'executablename.exe';"); rs.next(); count = rs.getint("cnt");
Comments
Post a Comment