Skip to content

Commit 9e85973

Browse files
committed
Make rt-setup-fulltext-index generally work on Oracle 23c
Fulltext index wouldn't be created without the reconnection on Oracle 23c.
1 parent 92c653a commit 9e85973

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

sbin/rt-setup-fulltext-index.in

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,13 @@ elsif ( $DB{'type'} eq 'Oracle' ) {
360360
do_print_error( $dbah => 'GRANT EXECUTE ON CTXSYS.CTX_DDL TO '. $DB{'user'} );
361361
}
362362

363+
# On Oracle 23c, we need to reconnect to the database so the new CTXAPP role could apply.
364+
$RT::Handle->Disconnect;
365+
$RT::Handle->Connect;
366+
$dbh = $RT::Handle->dbh;
367+
$dbh->{'RaiseError'} = 1;
368+
$dbh->{'PrintError'} = 1;
369+
363370
my %PREFERENCES = (
364371
datastore => {
365372
type => 'DIRECT_DATASTORE',

0 commit comments

Comments
 (0)