Home » RDBMS Server » Server Administration » How to create Read-only Oracle user?
How to create Read-only Oracle user? [message #50617] Mon, 25 March 2002 15:00 Go to next message
tax_man
Messages: 10
Registered: March 2002
Junior Member
Hi,
Can someone PLEASE help me out here!

I have an Oracle8i DB, for which I would like to create a user that has read-only access to all TABLES and SEQUENCES (ie, only SELECT access, NO ALTER, DELETE and UPDATE). I'd like to do this using the Oracle "DBA Studio" utility.

The purpose is so that while browsing table data in a tool like TOAD, I dont accidentally change any values.

Your help is much appreciated.

THANKS A MILLION!!
Re: How to create Read-only Oracle user? [message #50622 is a reply to message #50617] Tue, 26 March 2002 01:38 Go to previous message
Epe
Messages: 99
Registered: March 2002
Member
Yow,

one way is to create a role and grant only select-privileges to that role (and giving that role to the user off course).
==> create role RO;
==> grant select on ... to RO;
...
==> create user URO;
==> grant RO, create session to URO;

Success !

Epe
Previous Topic: Re: Oracle 8.1.x VS. Oracle 9i
Next Topic: Re: Need solaris part-2 brain dumps
Goto Forum:
  


Current Time: Mon Sep 09 16:04:01 CDT 2024