I'm thinking of something like the following:
CREATE VIEW ABC_USER_ROLES as
SELECT USERNAME, GRANTED_ROLE
FROM DBA_ROLES
WHERE GRANTED_ROLE LIKE '%ABC_%';
Is there any technical or security issue in creating a view like this
for the user.
It would be a time-saver for all concerned to have the view (vs.
generating static reports of what users are in which roles).
My reaction is that a stored procedure owned by some appropriately
privileged schema that could be invoked by PUBLIC might be a better choice.
Thanks Ana. They prefer to not use stored procedures in my
environment, but I will look into it.
Any other thoughts about the original approach? Why specifically might
your solution be preferable?
Thanks again.
Dana
Out of interest, why?
> Any other thoughts about the original approach? Why specifically might
> your solution be preferable?
>
> Thanks again.
>
> Dana
-g
I believe it has something to do with:
1) A standard from higher up in the org to keep all business logic, as
far as possible, out of the data tier and on an application tier
2) A standard from higher up in the org to lessen vendor lock-in by
reducing the use of vendor-specific database features.
They're not my standards and it's all highly debatable.
Dana