spool create&&fnName..log

prompt
prompt Stergere user &&fnName
prompt ===========================
prompt
drop user &&fnName cascade;

prompt
prompt Creare user &&fnName
prompt ===========================
prompt
create user &&fnName
  identified by "&&fnPassword"
  default tablespace ROA
  temporary tablespace TEMP
  profile DEFAULT;
-- Grant/Revoke role privileges 
grant connect to &&fnName;
grant resource to &&fnName;
-- Grant/Revoke system privileges 
grant create materialized view to &&fnName;
grant create procedure to &&fnName;
grant create sequence to &&fnName;
grant create table to &&fnName;
grant create trigger to &&fnName;
grant create view to &&fnName;
grant debug connect session to &&fnName;
grant select any table to &&fnName;
grant create type to &&fnName;
grant unlimited tablespace to &&fnName;

spool off