Skip to content

Commit ee0cf49

Browse files
committed
Fixes to installation
1 parent 922d01b commit ee0cf49

File tree

5 files changed

+30
-25
lines changed

5 files changed

+30
-25
lines changed

.travis/setup_account.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
set -ev
44

5-
"$ORACLE_HOME/bin/sqlplus" -L -S / AS SYSDBA <<SQL
5+
sqlplus -L -S / AS SYSDBA <<SQL
66
create user ${DB_USER} identified by ${DB_PASS} quota unlimited on USERS default tablespace USERS;
77
88
grant create session, create procedure, create type, create table, create sequence, create view to ${DB_USER};

source/install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ set -ev
44

55
cd "$(dirname "$(readlink -f "$0")")"
66

7-
sqlplus -L -S ut3/XNtxj8eEgA6X6b6f @install.sql utp ut3
7+
sqlplus -L -S / as sysdba @install.sql utp ut3

source/install.sql

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ prompt Installing utplsql v2-v3 migration utility
22

33
set serveroutput on size unlimited
44
set timing off
5+
set feedback off
6+
set verify off
57

68
whenever sqlerror exit failure rollback
79
whenever oserror exit failure rollback
@@ -11,21 +13,24 @@ define utplsql_v3_owner=&2
1113

1214
alter session set current_schema = &&utplsql_v3_owner;
1315

14-
drop public synonym ut_assert2;
15-
drop public synonym ut_assert;
16-
@@migration/ut_assert2.pks
17-
@@migration/ut_assert.pks
18-
@@migration/ut_assert2.pkb
19-
@@migration/ut_assert.pkb
16+
grant execute on sys.utl_file to &&utplsql_v3_owner;
17+
18+
drop public synonym utassert2;
19+
drop public synonym utassert;
20+
21+
@@migration/utassert2.pks
22+
@@migration/utassert.pks
23+
@@migration/utassert2.pkb
24+
@@migration/utassert.pkb
2025
@@migration/ut_v2_migration.pks
2126
@@migration/ut_v2_migration.pkb
2227

23-
create or replace public synonym ut_assert for &&utplsql_v2_owner..ut_assert;
24-
create or replace public synonym ut_assert2 for &&utplsql_v2_owner..ut_assert2;
28+
create or replace public synonym utassert for &&utplsql_v2_owner..utassert;
29+
create or replace public synonym utassert2 for &&utplsql_v2_owner..utassert2;
2530
create or replace public synonym ut_v2_migration for ut_v2_migration;
2631

27-
grant execute on ut_assert to public;
28-
grant execute on ut_assert2 to public;
32+
grant execute on utassert to public;
33+
grant execute on utassert2 to public;
2934
grant execute on ut_v2_migration to public;
3035

3136
exit success

source/migration/utassert2.pks

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,29 +3,29 @@ CREATE OR REPLACE PACKAGE utassert2 AUTHID CURRENT_USER IS
33

44
/************************************************************************
55
GNU General Public License for utPLSQL
6-
7-
Copyright (C) 2000-2003
6+
7+
Copyright (C) 2000-2003
88
Steven Feuerstein and the utPLSQL Project
99
(steven@stevenfeuerstein.com)
10-
10+
1111
This program is free software; you can redistribute it and/or modify
1212
it under the terms of the GNU General Public License as published by
1313
the Free Software Foundation; either version 2 of the License, or
1414
(at your option) any later version.
15-
15+
1616
This program is distributed in the hope that it will be useful,
1717
but WITHOUT ANY WARRANTY; without even the implied warranty of
1818
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1919
GNU General Public License for more details.
20-
20+
2121
You should have received a copy of the GNU General Public License
2222
along with this program (see license.txt); if not, write to the Free Software
2323
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
2424
************************************************************************
2525
$Log$
2626
Revision 1.2 2003/07/01 19:36:46 chrisrimmer
2727
Added Standard Headers
28-
28+
2929
************************************************************************/
3030

3131
test_failure EXCEPTION;
@@ -53,7 +53,7 @@ CREATE OR REPLACE PACKAGE utassert2 AUTHID CURRENT_USER IS
5353
);
5454

5555
/*
56-
2.0.8 General evaluation program.
56+
2.0.8 General evaluation program.
5757
*/
5858
PROCEDURE eval
5959
(
@@ -653,7 +653,7 @@ CREATE OR REPLACE PACKAGE utassert2 AUTHID CURRENT_USER IS
653653
outcome_in IN number
654654
,p_msg_nm IN VARCHAR2
655655
,proc_name IN VARCHAR2
656-
-- ,params IN utplsql_util.utplsql_params
656+
,params IN utplsql_util.utplsql_params
657657
,cursor_position IN PLS_INTEGER
658658
,table_name IN VARCHAR2
659659
);
@@ -663,7 +663,7 @@ CREATE OR REPLACE PACKAGE utassert2 AUTHID CURRENT_USER IS
663663
outcome_in IN number
664664
,p_msg_nm IN VARCHAR2
665665
,proc_name IN VARCHAR2
666-
-- ,params IN utplsql_util.utplsql_params
666+
,params IN utplsql_util.utplsql_params
667667
,cursor_position IN PLS_INTEGER
668668
,qry IN VARCHAR2
669669
);

source/uninstall.sql

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
drop package ut_assert;
2-
drop package ut_assert2;
1+
drop package utassert;
2+
drop package utassert2;
33
drop package ut_v2_migration;
44
drop public synonym ut_v2_migration;
5-
create or replace public synonym ut_assert for &&utplsql_v2_owner..ut_assert;
6-
create or replace public synonym ut_assert2 for &&utplsql_v2_owner..ut_assert2;
5+
create or replace public synonym utassert for &&utplsql_v2_owner..utassert;
6+
create or replace public synonym utassert2 for &&utplsql_v2_owner..utassert2;
77
drop package ut_v2_migration;

0 commit comments

Comments
 (0)