Q

How to use V$SESSION in Oracle to see distributed queries

Learn how to use V$SESSION in Oracle, including the MACHINE column,to find the number of connections or users connected to a particular database link in this tip.

What is the query to find the number of connections or users connected to a particular database link?
Distributed queries are not like normal sessions. A user querying across a database link does not typically stay connected for a very long time. The connection only lasts as long as the query. So you'd have to catch the "connection" during the query run-time window. To see the session, you would have to query V$SESSION. This view does not show which sessions are using a database link. But you can query the MACHINE column of V$SESSION to see which users are currently querying from your other database servers.
This was first published in July 2009

Dig deeper on Oracle database design and architecture

Pro+

Features

Enjoy the benefits of Pro+ membership, learn more and join.

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

SearchDataManagement

SearchBusinessAnalytics

SearchSAP

SearchSQLServer

TheServerSide

SearchDataCenter

SearchContentManagement

SearchFinancialApplications

Close