Access to tablespace

Posted on 2012-08-13
Last Modified: 2012-08-13
Have  a tablename 'customerinfo' in  tablespace Customer.   I want to grant  user  "TestCustomer"  read only access to  tablename 'customerinfo' in tablespace name  Customer.  Any inputs?
Question by:Nana Hemaa
    LVL 76

    Assisted Solution

    by:slightwv (䄆 Netminder)
    grant select  on customerinfo to "TestCustomer";

    tablespace has nothing to do with this.
    LVL 73

    Assisted Solution

    first, the tablespaces have no impact on the grants for the table

    to grant the privilege, log in as the table owner (or dba or similar privilege user) and execute the following...

    grant select on customerinfo to testcustomer;
    LVL 76

    Expert Comment

    by:slightwv (䄆 Netminder)
    If you have a lot of tables or users, I would create a readonly role and grant select on the tables to that role.

    Then you can grant readonly to the users that need it.

    Author Comment

    by:Nana Hemaa
    How do i create the readonly role.? Tried doing it via EM but could not locate the readonly role.
    LVL 76

    Accepted Solution

    >>Tried doing it via EM but could not locate the readonly role.

    You create it:  create role readonly;

    then:  grant select on customerinfo to readonly;
    grant readonly to  "TestCustomer";

    I shoudl also hope you aren't using double quotes on your users and other object names.  This forces case sensitivity.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    PRTG Network Monitor: Intuitive Network Monitoring

    Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

    Subquery in Oracle: Sub queries are one of advance queries in oracle. Types of advance queries: •      Sub Queries •      Hierarchical Queries •      Set Operators Sub queries are know as the query called from another query or another subquery. It can …
    How to Unravel a Tricky Query Introduction If you browse through the Oracle zones or any of the other database-related zones you'll come across some complicated solutions and sometimes you'll just have to wonder how anyone came up with them.  …
    This video explains at a high level with the mandatory Oracle Memory processes are as well as touching on some of the more common optional ones.
    Via a live example, show how to take different types of Oracle backups using RMAN.

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now