Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6631930

Browse files
support Oracle DB 11.2, add ace only on 12c and higher
1 parent bfe94cd commit 6631930

1 file changed

Lines changed: 14 additions & 9 deletions

File tree

.travis/install.sh

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -115,18 +115,23 @@ grant create session, create procedure, create type, create table to $UT3_USER;
115115
116116
PROMPT Grants for starting a debugging session from $UT3_USER
117117
grant debug connect session to $UT3_USER;
118+
grant debug any procedure to $UT3_USER;
118119
begin
119-
dbms_network_acl_admin.append_host_ace (
120-
host =>'*',
121-
ace => sys.xs\$ace_type(
122-
privilege_list => sys.xs\$name_list('JDWP') ,
123-
principal_name => '$UT3_USER',
124-
principal_type => sys.xs_acl.ptype_db
125-
)
126-
);
120+
\$if dbms_db_version.version <= 11 \$then
121+
null; -- no addition action necessary
122+
\$else
123+
-- necessary on 12c or higher
124+
dbms_network_acl_admin.append_host_ace (
125+
host =>'*',
126+
ace => sys.xs\$ace_type(
127+
privilege_list => sys.xs\$name_list('JDWP') ,
128+
principal_name => '$UT3_USER',
129+
principal_type => sys.xs_acl.ptype_db
130+
)
131+
);
132+
\$end
127133
end;
128134
/
129-
grant debug any procedure to $UT3_USER;
130135
131136
--------------------------------------------------------------------------------
132137
PROMPT Creating $UT3_TESTER_HELPER - provides functions to allow min grant test user setup tests.

0 commit comments

Comments
 (0)