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

  • SEARCH
  • Home
  • 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 7912483
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T13:37:02+00:00 2026-06-03T13:37:02+00:00

I have 3 users in my oracle Database user_admin user user_query The user_admin have

  • 0

I have 3 users in my oracle Database

user_admin
user
user_query

  • The user_admin have dba rol.
  • user have connect and resource rol
  • and user_query the same as user.

I want to configure the last one to deny him of all kind of insert,update,delete but form the full tablespace not from a table, view or procedure…

The point is to have a secure-only-querying data user.

But i can’t do it for a tablespace, at least as far i know.

Any idea?

  • 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-03T13:37:05+00:00Added an answer on June 3, 2026 at 1:37 pm

    You can loop through all table that use the tablespace in question and grant select. I would try to stay away from powerful privs like “SELECT ANY TABLE”, as that would apply to the entire database.

    For example, if your tablespace is named XXX then:

    BEGIN
      FOR tbl IN (SELECT owner, table_name
                    FROM dba_tables dt
                   WHERE dt.tablespace_name = 'XXX') LOOP
      EXECUTE IMMEDIATE 'GRANT SELECT ON ' || tbl.owner || '.' || tbl.table_name || ' TO USER_QUERY';
      END LOOP;
    END;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a table in an Oracle database that contains actions performed by users
Every so often I have to remove a user from our database. Users are
I have a simple web service that uses an oracle database. When I test
I have a C# program that uses System.Data.OracleClient to access an oracle database. The
I have a simple query in php on oracle: $query='select u.username,u.lastname,u.firstname,c.event,c.reason from users u,
i have users table and i have posts table i want select from users
In my web application I will have users, each user will have albums, and
As security tightening exercise, I'm removing all system privileges from an oracle database user.
I have a bit of code that connects to an Oracle database, locks a
I have a schema in an Oracle 11g R2 database that I'm trying to

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.