crear usuarios en un procedimiento PL/SQL
¿Se pueden crear usuarios dentro de un procedimiento PL/SQL?
Estoy haciendo lo siguiente:
FOR i in 1..3 LOOP
var := 'U' || TO_CHAR(i);
Create user var identified by var;
END LOOP;
Y me da el error:
ERROR en lÃnea 9:
ORA-06550: lÃnea 9, columna 2:
PLS-00103: Se ha encontrado el sÃmbolo "CREATE" cuando se esperaba uno de los
siguientes:
begin case declare end exit for goto if loop mod null pragma
raise return select update while with <an identifier>
<a double-quoted delimited-identifier> <a bind variable> <<
close current delete fetch lock insert open rollback
savepoint set sql execute commit forall merge
<a single-quoted SQL string> pipe
Muchas gracias
Estoy haciendo lo siguiente:
FOR i in 1..3 LOOP
var := 'U' || TO_CHAR(i);
Create user var identified by var;
END LOOP;
Y me da el error:
ERROR en lÃnea 9:
ORA-06550: lÃnea 9, columna 2:
PLS-00103: Se ha encontrado el sÃmbolo "CREATE" cuando se esperaba uno de los
siguientes:
begin case declare end exit for goto if loop mod null pragma
raise return select update while with <an identifier>
<a double-quoted delimited-identifier> <a bind variable> <<
close current delete fetch lock insert open rollback
savepoint set sql execute commit forall merge
<a single-quoted SQL string> pipe
Muchas gracias
