Thanks for the question, Karthikeyan.
Asked: July 31, 2003 - 2:22 pm UTC
Last updated: August 02, 2010 - 2:48 pm UTC
Version: 8.1.7
Viewed 1000+ times
A reader, February 23, 2004 - 2:00 pm UTC
Vaij, July 31, 2010 - 11:41 pm UTC
radino, August 02, 2010 - 1:14 pm UTC
Michel Cadot, August 02, 2010 - 2:23 pm UTC
SQL> declare 2 p_usr varchar2(100); 3 begin 4 p_usr := 'toto identified by toto quota unlimited on system --'; 5 execute immediate 'create user '||p_usr||' identified by something'; 6 end; 7 / PL/SQL procedure successfully completed. SQL> select max_bytes from dba_ts_quotas 2 where username='TOTO' and tablespace_name='SYSTEM'; MAX_BYTES ---------- -1
-- could be a table lookup of course <b> if ( p_username in ( 'A', 'B', 'C', .... ) ) </b> then execute immediate 'alter user ' || p_username ||
Check out more PL/SQL tutorials on our LiveSQL tool.
PL/SQL reference manual from the Oracle documentation library