Ask the Expert

View for total users and default tables in Oracle database

I have created a new database and I have logged in using the "sys" user. Now on giving the query "select user from V$USERS;" to know the number of users, I get the error "table or view does not exist." Kindly provide me with the solution to know how to check the total users and default tables that Oracle provides when we create a new database.

    Requires Free Membership to View

There is no V$USERS view. Instead, you probably want DBA_USERS, ALL_USERS or USER_USERS. The Oracle Reference Guide for your version has details on these Data Dictionary views.

This was first published in March 2007

There are Comments. Add yours.

TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

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: