Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.
Originally posted by: rboccuzziBharath, that's close. What I was suggesting is this:
Create a library node, called "DB Execute with Context" for example, and add a param called "OracleContext" to it. Then configure the script to be prepopulated with:
exec mo_blobal.set_policy_context('S', {{^OracleContext^}});
Or something like that. You could introduce a new query parameter, hide the existing, and make it a bit cleaner, but hopefully you get the idea. You are correct though, with this mechanism, you are setting the context on each node, which above you mention I believe as "step1 is executing unnecessarily"--however it is necessary, in that we don't have a session that stays alive across nodes, so you need to do this. There is an enhancement request for this functionality, Issue 4556. FYI, this is not currently scheduled for any upcoming release at this time.
Cheers
Rich