By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,501 Members | 1,859 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,501 IT Pros & Developers. It's quick & easy.

restrict user's view

P: n/a
hi,
I have a table name stud_info where we stored student's information.
This is a sharing screen for Undergraduate department and Post
graduate department.

To differential a student type either in Undergraduate or Post
graduate is using programme type; 1 is for Undergraduate and 2 for
Post graduate ;

Now, i want to restrict example, Undergraduate department to view,
select,update,delete only student Undergraduate's data, same to Post
graduate department where they only allow to view the Post graduate
data.

Can somebody provide me instruction and PL/SQL how to do this.
thank you very much
Jul 19 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
tr********@yahoo.com.hk (tracy) wrote in message news:<5c*************************@posting.google.c om>...
hi,
I have a table name stud_info where we stored student's information.
This is a sharing screen for Undergraduate department and Post
graduate department.

To differential a student type either in Undergraduate or Post
graduate is using programme type; 1 is for Undergraduate and 2 for
Post graduate ;

Now, i want to restrict example, Undergraduate department to view,
select,update,delete only student Undergraduate's data, same to Post
graduate department where they only allow to view the Post graduate
data.

Can somebody provide me instruction and PL/SQL how to do this.
thank you very much

Just define a view ending in
where programmetype = 1
with check option
and grant access to the view.
The view can have the same name as the original table.

That is all.

Sybrand Bakker
Senior Oracle DBA
Jul 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.