Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Why can't SYS account grant privileges for other user's objects?
Just wondering why, when I connect using SYS as SYSDBA, can't I grant
privileges to other user's objects?
For instance, here's a snapshot of my SQL*PLUS session:
*
SQL> disc
Disconnected from Oracle8i Enterprise Edition Release 8.1.7.0.0 - Production
With the Partitioning option
JServer Release 8.1.7.0.0 - Production
SQL> conn jhs/jhspassword @ myserver
Connected.
SQL> grant insert on JHS.application to scott;
Grant succeeded.
SQL>
What's funny is that I was able to create these objects using the sys account. As an example:
View created.
SQL> desc JHS.myview;
Name Null? Type ----------------------------------------- -------- ------------------------
----
REQUEST NOT NULL VARCHAR2(15) LEVELCODE NOT NULL NUMBER
SQL> grant select on JHS.myview to scott; grant select on JHS.myview to scott
*
SQL> disc
I thought "sys as sysdba" was the all-powerful user? What kind of sysdba can make a user's objects, and then can't grant access to them? :) What's funny is that I was able to create these objects using the sys account. Platform is Win2k server running Oracle 8i; these commands were run from a Win2k Pro workstation. Thanks!
-Thomas
Received on Tue Apr 15 2003 - 12:06:36 CDT
![]() |
![]() |