PL/SQL (MOSC)

MOSC Banner

executing sql generated statements dynamically - need help

in PL/SQL (MOSC) 15 commentsAnswered ✓

Hi All,

I would like to do this in single step, dynamically instead of spooling and executing manually.

SELECT 'ALTER USER '||USERNAME||' PROFILE '||'"profile_1"'||' CONTAINER=ALL;' FROM CDB_USERS WHERE profile in ('profile_2') and username not in ('a','b')

Thanks

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center