Alberto Menghini
Member
Hi Support,
I realized that running in a script if there is the command 'GRANT EXECUTE ON DBMS_REFRESH TO MyUSER' the result of the EXECUTE is false even on then the GRANT is assigned correctly and the Session.ReturnCote is equal to 0
Could you please verify this ?
Thanks
var AUserName := 'MyUSER';
spm := TOracleScript.create
try
spm.Session := ASession;
// spm.Lines.Add('GRANT UNLIMITED TABLESPACE TO '+AUsername+' WITH ADMIN OPTION;');
spm.Lines.Add('GRANT EXECUTE ON DBMS_REFRESH TO '+AUsername+';');
result := spm.execute // ==> result = false but ( ASession.ReturnCode = 0 )
finally
FreeAndNil( spm );
end;
I realized that running in a script if there is the command 'GRANT EXECUTE ON DBMS_REFRESH TO MyUSER' the result of the EXECUTE is false even on then the GRANT is assigned correctly and the Session.ReturnCote is equal to 0
Could you please verify this ?
Thanks
var AUserName := 'MyUSER';
spm := TOracleScript.create
try
spm.Session := ASession;
// spm.Lines.Add('GRANT UNLIMITED TABLESPACE TO '+AUsername+' WITH ADMIN OPTION;');
spm.Lines.Add('GRANT EXECUTE ON DBMS_REFRESH TO '+AUsername+';');
result := spm.execute // ==> result = false but ( ASession.ReturnCode = 0 )
finally
FreeAndNil( spm );
end;