Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: Oracle 9 NT Authentication "conn / as sysdba" - Role issue ?

Re: Oracle 9 NT Authentication "conn / as sysdba" - Role issue ?

From: Sybrand Bakker <postbus_at_sybrandb.demon.nl>
Date: Tue, 30 May 2006 06:43:39 +0200
Message-ID: <t6jn725ubgmmhjam6ks88r1nq7emnvn31d@4ax.com>


On 29 May 2006 10:36:19 -0700, "Davep"
<davepylatuk_at_centurysystems.net> wrote:

>Hello all.
>
>I have succeeded in getting Oracle NT authentication working but am
>having a related permission problem.
>
>I create Oracle users in this format "OPS$JOHN" for example, as long as
>I have a domain user named 'JOHN' in the domain the server is
>running.... JOHN can connect to Oracle in SQL PLUS by typing:
>
>>conn / as sysdba;
>
>The problem is that I have database roles to enforce DB security. User
>JOHN is supposed to have only read only for a few tables. I have
>previously enforced this by having a READ_ONLY role assigned to JOHN.
>This has worked perfectly until now....
>
>Now, once JOHN logs in with NT authentication as indicated above he has
>read/write on all tables ? How do I have an NT login adhere to the DB
>roles assigned to a user ?
>
>Any help would be appreciated.

There are two forms of O/S authentication, and you are mixing them up.

Connect / looks at the presence of an OPS$<user> account. Connect / as sysdba looks whether the user account is in the ora_<sid>_dba group, disregarding any other groups. And yes, when you 'connect / as sysdba', you *are* SYSDBA, once connected, so you are more powerful than any user with the DBA role.

--
Sybrand Bakker, Senior Oracle DBA
Received on Mon May 29 2006 - 23:43:39 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US