Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7715037
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T02:17:10+00:00 2026-06-01T02:17:10+00:00

I am new to Oracle database. I see that if I connect as sys

  • 0

I am new to Oracle database. I see that if I connect as sys user, I can do

select * from dba_users;

But once I have done conn nonsys@dbid, I can no longer do that; I will get an error saying

ORA-00942: table or view does not exist

select * from sys.dba_users; is not working either.

Could you please explain why this is and how I can do select * from dba_users; after connected as a non-sys user?

Also, disconnect makes me totally disconnected; is it possible to only “exit” current user and back to sys in sqlplus and if so, how to do that?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T02:17:12+00:00Added an answer on June 1, 2026 at 2:17 am

    The DBA_* views in Oracle contain information about ALL objects in the database regardless of ownership. Only administrative accounts have access to these views by default. This is done for security reasons. In order to have a “normal” user gain access to these views, they must be granted access to them, either directly on a per-view basis, or globally through such system privileges as SELECT ANY TABLE (not recommended). Better to grant access to the actual DBA_ view the user really needs. Generally, the ALL_ views will give a typical user all the information they require.

    To leave the current user session and connect as another user, use the CONNECT command:

    CONNECT sys/pw as sysdba
    

    EDIT:

    The owner of an object can grant access to any of their objects to another user or role via the GRANT command:

    GRANT SELECT ON dba_users TO nonsys;
    

    Performed as the user SYS, this would grant select access to the dba_users view to the user nonsys.

    Once the grant is performed, the user nonsys will be able to select from this view via the SELECT statement:

    SELECT * FROM dba_users;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an Excel file that I need to import into a (new) Oracle
I have a schema in an Oracle 11g R2 database that I'm trying to
I have a WCF service that uses ODP.NET to read data from an Oracle
I'm new to oracle database, can some help me understand this query. This query
Right now I have a few new applications being developed against an Oracle Database,
I have a table (Oracle database) that looks like: CREATE TABLE example ( idEx
We have customers who are upgrading from one database version to another (Oracle 9i
Friends, If I want to know about the new features of Oracle 11gR2 Database
When using NOLOGGING in Oracle, say for inserting new records. Will my database be
I am new to Oracle. Since we have rewritten an earlier application , we

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.