forked from oracle/python-cx_Oracle
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDropSamples.sql
More file actions
29 lines (23 loc) · 1023 Bytes
/
DropSamples.sql
File metadata and controls
29 lines (23 loc) · 1023 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/*-----------------------------------------------------------------------------
* Copyright 2017, 2019, Oracle and/or its affiliates. All rights reserved.
*---------------------------------------------------------------------------*/
/*-----------------------------------------------------------------------------
* DropSamples.sql
* Drops database objects used for cx_Oracle samples.
*
* Run this like:
* sqlplus sys/syspassword@hostname/servicename as sysdba @DropSamples
*---------------------------------------------------------------------------*/
whenever sqlerror exit failure
-- get parameters
set echo off termout on feedback off verify off
accept main_user char default pythondemo -
prompt "Name of main schema [pythondemo]: "
accept edition_user char default pythoneditions -
prompt "Name of edition schema [pythoneditions]: "
accept edition_name char default python_e1 -
prompt "Name of edition [python_e1]: "
set feedback on
-- perform work
@@DropSamplesExec.sql
exit