program Project1;
{$APPTYPE CONSOLE}
uses
SysUtils,
ShellApi,
windows;
begin
if ParamStr(2)='min' then
WinExec(PChar(ParamStr(1)),SW_SHOWMINNOACTIVE);
if ParamStr(2)='max' then
WinExec(PChar(ParamStr(1)),SW_SHOWMAXIMIZED);
if ParamStr(2)='normal' then
WinExec(PChar(ParamStr(1)),SW_SHOWNORMAL);
end.
select t.grantee
from (select grantee, count(grantee) as counts
from dba_role_privs
where grantee in
(select grantee
from dba_role_privs
where granted_role = 'PRESS'
and grantee in
(select grantee
from dba_role_privs
where granted_role = 'CONNECT'))
group by grantee) t
where t.counts = 2