Skip to content
Fix Code Error

How to find the privileges and roles granted to a user in Oracle?

March 13, 2021 by Code Error
Posted By: Anonymous

I am using Linux, Oracle10g.
I have created one user called test. and granted create session and select any dictionary permission to the same user.

i also granted sysdba and sysoper roles to the same users.

Now i want to display all the privileges and roles granted to the user.
I found following query but it shows only create session and select dictionary privileges.

select privilege 
from dba_sys_privs 
where grantee='SAMPLE' 
order by 1;

please help to resolve the issue.

Thanks

Solution

Look at http://docs.oracle.com/cd/B10501_01/server.920/a96521/privs.htm#15665

Check USER_SYS_PRIVS, USER_TAB_PRIVS, USER_ROLE_PRIVS tables with these select statements

SELECT * FROM USER_SYS_PRIVS; 
SELECT * FROM USER_TAB_PRIVS; 
SELECT * FROM USER_ROLE_PRIVS;
Answered By: Anonymous

Related Articles

  • Problems Installing CRA & NextJS from NPM…
  • Examples of GoF Design Patterns in Java's core libraries
  • How to show all privileges from a user in oracle?
  • SecurityException: Permission denied (missing…
  • SQL query return data from multiple tables
  • How to install the Raspberry Pi cross compiler on my…
  • How can I exclude all "permission denied" messages…
  • How do SO_REUSEADDR and SO_REUSEPORT differ?
  • How can I show current location on a Google Map on…
  • How can I list ALL grants a user received?
  • Android M - check runtime permission - how to…
  • READ_EXTERNAL_STORAGE permission for Android
  • How to use java.net.URLConnection to fire and handle…
  • Rails wrong number of arguments error when…
  • Android "gps requires ACCESS_FINE_LOCATION" error,…
  • The definitive guide to form-based website authentication
  • What are the new features in C++17?
  • Database development mistakes made by application developers
  • java.sql.SQLException: - ORA-01000: maximum open…
  • How to request Location Permission at runtime
  • Storage permission error in Marshmallow
  • How do I expire a PHP session after 30 minutes?
  • Ef Core foreign key unique which is not what I want
  • MySql : Grant read only options?
  • OpenIddict Roles/Policy returns 403 Forbidden
  • AngularJS ui-router login authentication
  • Grant all on a specific schema in the db to a group…
  • Ubuntu apt-get unable to fetch packages
  • Android: Unable to add window. Permission denied for…
  • AppArmor deny execution with "no new privs" when…
  • VUE Error when run test unit
  • How do I count unique visitors to my site?
  • TypeError: Cannot read property 'webpackJsonp' of undefined
  • What are the undocumented features and limitations…
  • What's the difference between eval, exec, and compile?
  • Why is a "GRANT USAGE" created the first time I…
  • Error message "Forbidden You don't have permission…
  • Ukkonen's suffix tree algorithm in plain English
  • Postgres - how can I restrict the privilege to…
  • SQL Server query to find all permissions/access for…
  • How do I obtain a Query Execution Plan in SQL Server?
  • Express Session not persisting after CORS calls
  • Remove privileges from MySQL database
  • How do servlets work? Instantiation, sessions,…
  • Active tab issue on page load HTML
  • How to check if user has granted permission from…
  • How to kill a running SELECT statement
  • Why is it common to put CSRF prevention tokens in cookies?
  • What are the calling conventions for UNIX &…
  • Synchronously inject current user after login
  • Can Windows Containers be hosted on linux?
  • What is a NullReferenceException, and how do I fix it?
  • Reference - What does this regex mean?
  • dynamically add/remove image in vue.js
  • What's the difference between including files with…
  • MySQL: When is Flush Privileges in MySQL really needed?
  • Extracting all links from a webpage and storing into…
  • What's the difference between Instant and LocalDateTime?
  • JavaFX and OpenJDK
  • XMLHttpRequest cannot load ✘✘✘ No…
  • Start redis-server with config file
  • How does PHP 'foreach' actually work?
  • Access denied for user 'root'@'localhost' while…
  • How to get current location in Android
  • Function runs into an error after successfully…
  • How can I find the product GUID of an installed MSI setup?
  • data.table vs dplyr: can one do something well the…
  • Difference between Role and GrantedAuthority in…
  • How to validate domain credentials?
  • How to convert java.util.Date to java.sql.Date?
  • What is your most productive shortcut with Vim?
  • Logging best practices
  • javax.faces.application.ViewExpiredException: View…
  • How to setup multiple controllers in the same route…
  • Identifying and solving…
  • How can I configure Storybook.js Webpack to work…
  • Asp.net core WebApi endpoint for many to many tables
  • Get operating system info
  • Get list of all tables in Oracle?
  • getaddrinfo: nodename nor servname provided, or not known
  • "Thinking in AngularJS" if I have a jQuery background?
  • Getting an object array from an Angular service
  • A little complex criteria query for entities with a…
  • Why does C++ code for testing the Collatz conjecture…
  • How do I merge two dictionaries in a single…
  • Does Azure AD support multi tenant user management…
  • What do the icons in Eclipse mean?
  • What's the best way of scraping data from a website?
  • How to change the session timeout in PHP?
  • Best practice multi language website
  • Give all permissions to a user on a PostgreSQL database
  • What does "Fatal error: Unexpectedly found nil while…
  • Unable to grant all privileges to new user on Postgres
  • AppCompat v7 r21 returning error in values.xml?
  • Making a map of composite types typescript
  • PHP function outputting data out of order
  • Ubuntu: OpenJDK 8 - Unable to locate package
  • SPA best practices for authentication and session management
  • Is it possible to apply CSS to half of a character?
  • Downloading Java JDK on Linux via wget is shown…

Disclaimer: This content is shared under creative common license cc-by-sa 3.0. It is generated from StackExchange Website Network.

Post navigation

Previous Post:

How to get text box value in JavaScript

Next Post:

Array.size() vs Array.length

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

.net ajax android angular arrays aurelia backbone.js bash c++ css dataframe ember-data ember.js excel git html ios java javascript jquery json laravel linux list mysql next.js node.js pandas php polymer polymer-1.0 python python-3.x r reactjs regex sql sql-server string svelte typescript vue-component vue.js vuejs2 vuetify.js

  • you shouldn’t need to use z-index
  • No column in target database, but getting “The schema update is terminating because data loss might occur”
  • Angular – expected call-signature: ‘changePassword’ to have a typedeftslint(typedef)
  • trying to implement NativeAdFactory imports deprecated method by default in flutter java project
  • What should I use to get an attribute out of my foreign table in Laravel?
© 2022 Fix Code Error