Skip to content

Commit d008553

Browse files
Add script for dropping the test schemas; add copyright and information on how
to execute to the SetupTest.sql script.
1 parent b543850 commit d008553

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

test/DropTest.sql

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/*-----------------------------------------------------------------------------
2+
* Copyright 2017, Oracle and/or its affiliates. All rights reserved.
3+
*---------------------------------------------------------------------------*/
4+
5+
/*-----------------------------------------------------------------------------
6+
* DropTest.sql
7+
* Drops database objects used for testing.
8+
*
9+
* Run this like:
10+
* sqlplus / as sysdba @DropTest
11+
*---------------------------------------------------------------------------*/
12+
13+
begin
14+
for r in
15+
( select username
16+
from dba_users
17+
where username in ('CX_ORACLE', 'CX_ORACLE_PROXY')
18+
) loop
19+
execute immediate 'drop user ' || r.username || ' cascade';
20+
end loop;
21+
end;
22+
/
23+
24+
exit
25+

test/SetupTest.sql

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,20 @@
1+
/*-----------------------------------------------------------------------------
2+
* Copyright 2016, 2017, Oracle and/or its affiliates. All rights reserved.
3+
*
4+
* Portions Copyright 2007-2015, Anthony Tuininga. All rights reserved.
5+
*
6+
* Portions Copyright 2001-2007, Computronix (Canada) Ltd., Edmonton, Alberta,
7+
* Canada. All rights reserved.
8+
*---------------------------------------------------------------------------*/
9+
110
/*-----------------------------------------------------------------------------
211
* SetupTest.sql
312
* Creates a user named "CX_ORACLE" and populates its schema with the tables
413
* and packages necessary for performing the test suite. It also creates a user
514
* named "CX_ORACLE_PROXY" for testing proxying.
15+
*
16+
* Run this like:
17+
* sqlplus / as sysdba @SetupTest
618
*---------------------------------------------------------------------------*/
719

820
whenever sqlerror exit failure

0 commit comments

Comments
 (0)