python-cx_Oracle/test/DropTest.sql
Anthony Tuininga d008553dc1 Add script for dropping the test schemas; add copyright and information on how
to execute to the SetupTest.sql script.
2017-06-16 16:48:15 -06:00

26 lines
736 B
SQL

/*-----------------------------------------------------------------------------
* Copyright 2017, Oracle and/or its affiliates. All rights reserved.
*---------------------------------------------------------------------------*/
/*-----------------------------------------------------------------------------
* DropTest.sql
* Drops database objects used for testing.
*
* Run this like:
* sqlplus / as sysdba @DropTest
*---------------------------------------------------------------------------*/
begin
for r in
( select username
from dba_users
where username in ('CX_ORACLE', 'CX_ORACLE_PROXY')
) loop
execute immediate 'drop user ' || r.username || ' cascade';
end loop;
end;
/
exit