ALTER USER p$prodschema ACCOUNT LOCK; BEGIN FOR x IN (SELECT 'alter system disconnect session ''' || sid || ',' || serial# || ''' immediate;' sqlstr FROM v$session WHERE username = 'P$PRODSCHEMA') LOOP EXECUTE IMMEDIATE x.sqlstr; END LOOP; END; DROP USER p$prodschema CASCADE;
Wednesday, February 10, 2010
drop schema on oracle
DROP USER
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment