Skip to content

Commit 3f90392

Browse files
committed
add text index into the list of indexes to rebuild
1 parent eafcbc1 commit 3f90392

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

schema/src/cwms/oracle_text/setup_indexes.sql

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,6 @@
44
* All Rights Reserved. USACE PROPRIETARY/CONFIDENTIAL.
55
* Source may not be released without written approval from HEC
66
*/
7-
8-
prompt Rebuilding all disabled function-based indexes...
9-
begin
10-
for rec in (select index_name from all_indexes where owner = '&cwms_schema' and funcidx_status = 'DISABLED') loop
11-
execute immediate 'alter index &cwms_schema..'||rec.index_name||' rebuild';
12-
end loop;
13-
end;
14-
/
15-
167
prompt Creating Oracle Text preferences and indexes
178

189
begin
@@ -44,3 +35,12 @@ create index at_physical_location_search_idx
4435
wordlist loc_search_wordlist
4536
sync (on commit)');
4637
/
38+
39+
prompt Rebuilding all disabled function-based indexes...
40+
alter index CWMS_20.AT_PHYSICAL_LOCATION_SEARCH_IDX rebuild;
41+
begin
42+
for rec in (select index_name from all_indexes where owner = '&cwms_schema' and funcidx_status = 'DISABLED') loop
43+
execute immediate 'alter index &cwms_schema..'||rec.index_name||' rebuild';
44+
end loop;
45+
end;
46+
/

0 commit comments

Comments
 (0)