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 $
2
2
Rem
3
3
Rem Copyright (c) 2002 , 2015 , Oracle and / or its affiliates. All rights reserved.
4
4
Rem
@@ -29,6 +29,9 @@ Rem DESCRIPTION
29
29
Rem tbd
30
30
Rem
31
31
Rem 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
32
35
Rem jmadduku 02 / 18 / 11 - Grant Unlimited Tablespace priv with RESOURCE
33
36
Rem cbauwens 02 / 23 / 05 - deprocating connect role
34
37
Rem ahunold 05 / 07 / 03 - no COMPANY_ID
@@ -75,14 +78,17 @@ PROMPT
75
78
PROMPT specify version as parameter 8 :
76
79
DEFINE vrs = &8
77
80
PROMPT
81
+ PROMPT specify connect string as parameter 9 :
82
+ DEFINE connect_string = &9
83
+ PROMPT
78
84
79
85
-- The first dot in the spool command below is
80
86
-- the SQL*Plus concatenation character
81
87
82
88
DEFINE spool_file = &log_path .bi_ &vrs..log
83
89
SPOOL &spool_file
84
90
85
- CONNECT sys/ &pwd_sys AS SYSDBA;
91
+ CONNECT sys/ &pwd_sys@&connect_string AS SYSDBA;
86
92
87
93
REM =======================================================
88
94
REM cleanup section
@@ -120,20 +126,20 @@ REM Changes made as OE
120
126
REM Grant object privileges to BI
121
127
REM =======================================================
122
128
123
- @__SUB__CWD__/ bus_intelligence/ bi_oe_pr .sql &pwd_oe
129
+ @__SUB__CWD__/ bus_intelligence/ bi_oe_pr .sql &pwd_oe &connect_string
124
130
125
131
REM =======================================================
126
132
REM Changes made as SH
127
133
REM Grant object privileges to BI
128
134
REM =======================================================
129
135
130
- @__SUB__CWD__/ bus_intelligence/ bi_sh_pr .sql &pwd_sh
136
+ @__SUB__CWD__/ bus_intelligence/ bi_sh_pr .sql &pwd_sh &connect_string
131
137
132
138
REM =======================================================
133
139
REM Views and synonyms in the 10i BI schema
134
140
REM =======================================================
135
141
136
- @__SUB__CWD__/ bus_intelligence/ bi_views .sql &pwd_bi
142
+ @__SUB__CWD__/ bus_intelligence/ bi_views .sql &pwd_bi &connect_string
137
143
138
144
REM =======================================================
139
145
REM Verification
@@ -143,7 +149,7 @@ SET ECHO ON
143
149
COLUMN TABLE_NAME FORMAT A25
144
150
COLUMN COLUMN_NAME FORMAT A30
145
151
146
- CONNECT bi/ &pwd_bi;
152
+ CONNECT bi/ &pwd_bi@&connect_string ;
147
153
148
154
SELECT COUNT (* ) FROM customers;
149
155
SELECT COUNT (* ) FROM products;
0 commit comments