Disclaimer: Advice is provided to the best of my knowledge but no implicit or explicit warranties are provided. Since the advisor explicitly encourages testing any and all suggestions on a test non-production environment advisor should not held liable or responsible for any actions taken based on the given advice.
if I execute the following query i get the SQL error code 28113
SELECT * FROM ols_test;
2. If I pass the function for the predicate without the quotes(as illustrated below). the function is executed when I apply the policy to the table. as a result the same predicate is used when enforcing the policy irrespective of the user logged on user.
Disclaimer: Advice is provided to the best of my knowledge but no implicit or explicit warranties are provided. Since the advisor explicitly encourages testing any and all suggestions on a test non-production environment advisor should not held liable or responsible for any actions taken based on the given advice.
I solved this by using a VPD policy to generate the predicate on the fly. so I am using an OLS policy together with a VPD policy on the same table.
what I had hoped for was using just an OLS policy and provide a SQL function for the predicate option/argument when applying the OLS policy to a table such that this function is called when the OLS policy is being enforced (meaning that the predicate would be generated on the fly based on user session).
I solved this by using a VPD policy to generate the predicate on the fly. so I am using an OLS policy together with a VPD policy on the same table.
what I had hoped for was using just an OLS policy and provide a SQL function for the predicate option/argument when applying the OLS policy to a table such that this function is called when the OLS policy is being enforced (meaning that the predicate would be generated on the fly based on user session).
Disclaimer: Advice is provided to the best of my knowledge but no implicit or explicit warranties are provided. Since the advisor explicitly encourages testing any and all suggestions on a test non-production environment advisor should not held liable or responsible for any actions taken based on the given advice.
Bookmarks