Solved

privileges inbulit schemas have

Posted on 2001-07-22
4
1,019 Views
Last Modified: 2008-02-26
soctt/tiger is a default schema of oracle. Are privileges granted to it individually, via a role or automatically as part of the installation process. Same is my question on any of the following schemas. Please indicate which of them have DBA privileges.

SYS, SYSTEM, OUTLN, DBSNMP, AURORA$ORB$UNAUTHENTICATED,ORDSYS,ORDPLUGINS,MDSYS, CTXSYS, ADAMS,JONES, CLARK and BLAKE.

How to know all the privileges assigned to the above schemas. Can we grant/revoke to/from individually or as as a role. Please be elaborate so that i can grade immediately. Can you tell me the difference between a schema and a user.    
                         
                     
                           
                       

                           
                           
0
Comment
Question by:k_murli_krishna
  • 2
4 Comments
 
LVL 6

Expert Comment

by:bira
ID: 6305839
0
 
LVL 3

Accepted Solution

by:
doronla earned 30 total points
ID: 6305944
Hello sir,

First, user and schema are basically the same thing. When you talk about the password,profile,privileges, etc. you talk about a "user". When you reference tables and other objects, this is a schema. Every user that has the CONNECT role has the privilege to create tables, indexes and other basic objects in his schema. Another term in this conversation is the "OWNER" which is, again, another name for the same thing. This sentence summarize all: "The user scott, which tiger is its password,is the owner of the objects in his schema, such as the table emp".
To access a table in another schema you need to write: schema.table . if the table is in your own schema, table name is enough.

Every user have unlimited privileges to objeects in its one schema. Scott has no priv at all! no role granted at all! All objects are in his schema.

about privs, you can easily check with these dictionary tables:
DBA_ROLE_PRIVS (for roles granted to users)
ROLE_ROLE_PRIVS (roles granted to other roles)
DBA_TAB_PRIVS (table privileges granted to users or roles)
and much more but these are the main tables.

In a default DB installed, SYS and SYSTEM and DBAs.

Good Luck!
Doronla
0
 
LVL 17

Author Comment

by:k_murli_krishna
ID: 6309314
Dear doronia,
             Thanx. Please clarify my following doubts. I will give you A grade and the 30 points. You deserve it. The doubt is we are having DBA schemas here like system. Onsite in US they have normal users but they cannot reveal anymore details. If i grant connect,resource to schema then drop table is included. If i grant individually, then granting create table leads to alter and drop as well. I am not able to grant or revoke drop table. I am not able to grant create view,index etc. Please clarify.

K. Murli Krishna
0
 
LVL 17

Author Comment

by:k_murli_krishna
ID: 6343380
Dear doronla,
             I am going about accepting answers and grading them. We right now have given connect,resource. Is connect enough to run DDL, DML and TCL and grant/revoke them for all objects i.e. table etc. Please clarify on both of my comments.

with regards

( K. Murli Krishna )
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Oracle RAC 12c 8 88
'G_F01' is not a procedure or is undefined 3 35
dbms_crypto.decrypt   errors out 6 35
Need SQL Query to Find Foreign-keys Without Indexed Columns 4 26
Working with Network Access Control Lists in Oracle 11g (part 2) Part 1: http://www.e-e.com/A_8429.html Previously, I introduced the basics of network ACL's including how to create, delete and modify entries to allow and deny access.  For many…
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 about the four available data types in Oracle and how dates can be manipulated by the user to get data into and out of the database.
This video shows how to recover a database from a user managed backup

808 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