Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Can we create 2 objects with same name in single schema?

Sid_ Z.Apr 30 2020 — edited Apr 30 2020

Hi Gurus,

Oracle version - 11gR2

Can we create 2 objects with same name in same schema?

If not then I have following requirement to fulfill.

In single schema let's for 2 users - user1 and user2, I have to show user1 as complete data and user2 as some masked data but both will fire the same query.

e.g select * from emp;

Assume i have created emp_view with some masked data on say salary column.

My requirement is - when user1 fires query to emp table he will see data as is

and when user2 fires query to emp table he will see masked data for some column that i have created in emp_view

Any suggestions please?

Regards,

Sid

Comments
Post Details
Added on Apr 30 2020
9 comments
2,695 views