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

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -