Thinking Out Loud

December 21, 2013

Is that database user really read only?

Filed under: oracle — mdinh @ 2:47 pm

So there I was, working on a request to determine if users in the database are read only or read write. Sounds pretty simple, right?

Someone once said, “Good artists copy, great artists steal.” In my case, there was nothing to steal.

Basically, there are system, role, table, and column privileges which can be granted to role or user.

In general, a user is considered to be read only if the user only has SELECT|SESSION|QUERY REWRITE|READ|REFERENCES and certain predefined EXECUTE on stored procedure.

If a user’s schema contains tables, is this user read only or read write?

Demo here

Did I missed anything and what you would have included or excluded?

About these ads

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

The Rubric Theme. Blog at WordPress.com.

Follow

Get every new post delivered to your Inbox.

Join 272 other followers

%d bloggers like this: