Using Oracle SQL developer,I need to create a lot of sql views, which will probably bloat the view folder and its one that the whole I.T department uses. Is there a way to organise the views into subfolders, If I have a sales report 2018 can put all my views into a subfolder called sales report 2018, if I have a report called sales cancelled I can put all my sql views into a subfolder called sales cancelled
CodePudding user response:
- Create a new user.
- Grant that user the permissions to
SELECT
from the tables you want to use. - Create the views so they are owned by that user.
Then when you want to use the views you can either:
- connect as that user; or
- grant permission for your usual account to select from that new user's views.
If you go for the second option then, in SQL Developer, after granting permissions you can find the user in the "Other Users" branch at the bottom of the "folder" structure.