Skip to content

Commit 9871cb1

Browse files
committed
Added override user/password/tablespace for install_headless
This is change allows us to easily install two versions of utPLSQL v3 side by side using headless install. We can now install develop version into `ut3_develop` and official release into `ut3` schema. That should open doors for self-testing of utPLSQL v3 using previously released version.
1 parent eab7ad9 commit 9871cb1

File tree

3 files changed

+22
-4
lines changed

3 files changed

+22
-4
lines changed

source/create_utplsql_owner.sql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ define ut3_user = &1
2525
define ut3_password = &2
2626
define ut3_tablespace = &3
2727

28+
prompt Creating utPLSQL user &&ut3_user
29+
2830
create user &ut3_user identified by &ut3_password default tablespace &ut3_tablespace quota unlimited on &ut3_tablespace;
2931

3032
grant create session, create sequence, create procedure, create type, create table, create view, create synonym to &ut3_user;

source/install.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
spool install.log
2121

2222
prompt &&line_separator
23-
prompt Installing utPLSQL v3 framework
23+
prompt Installing utPLSQL v3 framework into &&ut3_owner schema
2424
prompt &&line_separator
2525

2626
whenever sqlerror exit failure rollback

source/install_headless.sql

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,25 @@
1414
See the License for the specific language governing permissions and
1515
limitations under the License.
1616
*/
17-
define ut3_owner = ut3
18-
define ut3_password = XNtxj8eEgA6X6b6f
19-
define ut3_tablespace = users
17+
set echo off
18+
set verify off
19+
column 1 new_value 1 noprint
20+
column 2 new_value 2 noprint
21+
column 3 new_value 3 noprint
22+
select null as "1", null as "2" , null as "3" from dual where 1=0;
23+
column sep new_value sep noprint
24+
select '--------------------------------------------------------------' as sep from dual;
25+
26+
spool params.sql.tmp
27+
28+
column ut3_owner new_value ut3_owner noprint
29+
column ut3_password new_value ut3_password noprint
30+
column ut3_tablespace new_value ut3_tablespace noprint
31+
32+
select coalesce('&&1','UT3') ut3_owner,
33+
coalesce('&&2','XNtxj8eEgA6X6b6f') ut3_password,
34+
coalesce('&&3','users') ut3_tablespace from dual;
35+
2036

2137
@@create_utplsql_owner.sql &&ut3_owner &&ut3_password &&ut3_tablespace
2238
@@install.sql &&ut3_owner

0 commit comments

Comments
 (0)