Database Administration (MOSC)

MOSC Banner

Create a user with read only on ONE table

edited Jun 21, 2011 4:35AM in Database Administration (MOSC) 4 commentsAnswered ✓
 Hi!
How do I create a user which should have only READ (select) on one table in the database? Is it possible to create a user with NO password required for this?

CREATE USER test_user IDENTIFIED BY blabla
    DEFAULT TABLESPACE users
    TEMPORARY TABLESPACE temp;

GRANT CONNECT, CREATE SESSION,
        SELECT on testtable;

Testtable is owned by another user.

Regards
U

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center