1- Rem $Header: rdbms/ demo/ schema/ bus_intelligence/ bi_main .sql / main/ 6 2011 / 05 / 27 08 : 25 : 53 jmadduku Exp $
1+ Rem $Header: rdbms/ demo/ schema/ bus_intelligence/ bi_main .sql / main/ 7 2015 / 03 / 19 10 : 23 : 26 smtaylor Exp $
22Rem
33Rem Copyright (c) 2002 , 2015 , Oracle and / or its affiliates. All rights reserved.
44Rem
@@ -29,6 +29,9 @@ Rem DESCRIPTION
2929Rem tbd
3030Rem
3131Rem MODIFIED (MM/ DD/ YY)
32+ Rem smtaylor 03 / 19 / 15 - added parameter 9 , connect string
33+ Rem smtaylor 03 / 19 / 15 - added @&connect_string to CONNECT
34+ Rem smtaylor 03 / 19 / 15 - added pararmeter &connect_string to script calls
3235Rem jmadduku 02 / 18 / 11 - Grant Unlimited Tablespace priv with RESOURCE
3336Rem cbauwens 02 / 23 / 05 - deprocating connect role
3437Rem ahunold 05 / 07 / 03 - no COMPANY_ID
@@ -75,14 +78,17 @@ PROMPT
7578PROMPT specify version as parameter 8 :
7679DEFINE vrs = &8
7780PROMPT
81+ PROMPT specify connect string as parameter 9 :
82+ DEFINE connect_string = &9
83+ PROMPT
7884
7985-- The first dot in the spool command below is
8086-- the SQL*Plus concatenation character
8187
8288DEFINE spool_file = &log_path .bi_ &vrs..log
8389SPOOL &spool_file
8490
85- CONNECT sys/ &pwd_sys AS SYSDBA;
91+ CONNECT sys/ &pwd_sys@&connect_string AS SYSDBA;
8692
8793REM =======================================================
8894REM cleanup section
@@ -120,20 +126,20 @@ REM Changes made as OE
120126REM Grant object privileges to BI
121127REM =======================================================
122128
123- @__SUB__CWD__/ bus_intelligence/ bi_oe_pr .sql &pwd_oe
129+ @__SUB__CWD__/ bus_intelligence/ bi_oe_pr .sql &pwd_oe &connect_string
124130
125131REM =======================================================
126132REM Changes made as SH
127133REM Grant object privileges to BI
128134REM =======================================================
129135
130- @__SUB__CWD__/ bus_intelligence/ bi_sh_pr .sql &pwd_sh
136+ @__SUB__CWD__/ bus_intelligence/ bi_sh_pr .sql &pwd_sh &connect_string
131137
132138REM =======================================================
133139REM Views and synonyms in the 10i BI schema
134140REM =======================================================
135141
136- @__SUB__CWD__/ bus_intelligence/ bi_views .sql &pwd_bi
142+ @__SUB__CWD__/ bus_intelligence/ bi_views .sql &pwd_bi &connect_string
137143
138144REM =======================================================
139145REM Verification
@@ -143,7 +149,7 @@ SET ECHO ON
143149COLUMN TABLE_NAME FORMAT A25
144150COLUMN COLUMN_NAME FORMAT A30
145151
146- CONNECT bi/ &pwd_bi;
152+ CONNECT bi/ &pwd_bi@&connect_string ;
147153
148154SELECT COUNT (* ) FROM customers;
149155SELECT COUNT (* ) FROM products;
0 commit comments