I was playing around a bit and came up with the following... Not sure if this is what you are looking for:
sel 'revoke logon on all from ' || '"' || trim(databasename) || '"' || ';' (TITLE '')
from dbc.dbase
where databasename in ('user1','user2',...)
and passwordSalt is not null
and databasename not in ( 'DBC','SYSDBA',...)
order by 1;
I was playing around a bit and came up with the following... Not sure if this is what you are looking for:
sel 'revoke logon on all from ' || '"' || trim(databasename) || '"' || ';' (TITLE '')
from dbc.dbase
where databasename in ('user1','user2',...)
and passwordSalt is not null
and databasename not in ( 'DBC','SYSDBA',...)
order by 1;