473,503 Members | 1,849 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

restrict user's view

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
1 2088
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
10338
by: Jay McGrath | last post by:
Does anyone know if it is possible to prevent a user from accessing the tables in an MDE file? I can go to my start-up menu and limit access to various functions, etc. I could even disable the...
2
5840
by: Jaydeep | last post by:
Hi, I want to restrict any user if he types url directly in the browser without logging to my site. Like for example user should not see any listing page of my web site by typing url...
3
1226
by: ManishShukla_atforum | last post by:
hi I dont want a user to view the page name on the address bar can I do that? Means user can navigate the site clicking on links, but on any page the address bar will only show the...
1
1912
by: wxqun | last post by:
Our company is now trying to make a "standard" of creating a base view for each user table. This initiative is suggested as a good practice by a data modeling consultant who is helping us to build...
2
1522
by: imtmub | last post by:
Hi, I designed website for Magazine and it contains some jpeg pictures, articles etc., Now i m planning to restrict JPEG file on my page saving on to their local system, User can view but they...
1
4869
by: rajeevs | last post by:
Hi I have a database created in Access. I have a table with different usernames and passwords. i want to create a log on form which will enable users to access the databse. How can i give...
6
1655
by: Max58kl | last post by:
Hi I am trying to allow the user to view the contents of a txt file via the command line. When I run the following script, pressing enter after naming my txt file (which is in the same directory...
1
218
by: tracy | last post by:
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...
0
1704
by: DevInCode | last post by:
I'm new to flash and video in general. I have video that the user needs to be able to view while dragging the the seek bar around. (ie when they drag the seek bar it should show the respective...
0
7093
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7287
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7348
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
5592
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5021
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3175
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1519
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
744
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
397
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.