-
Notifications
You must be signed in to change notification settings - Fork 365
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add script for dropping the test schemas; add copyright and informati…
…on on how to execute to the SetupTest.sql script.
- Loading branch information
1 parent
b543850
commit d008553
Showing
2 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/*----------------------------------------------------------------------------- | ||
* 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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters