Skip to content

Commit a524aee

Browse files
authored
Create 1-create-ubiquitous-index.sql
1 parent 2e861ec commit a524aee

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
REM Script for 23c: 1-create-ubiquitous-index.sql
2+
REM Create an ubiquitous index
3+
4+
-- prereq: install Oracle Customer order sample schema from https://github.com/oracle-samples/db-sample-schemas/tree/main/customer_orders
5+
-- create an ubiquitous index with the name SEARCH_PRODUCTS
6+
7+
execute DBMS_SEARCH.CREATE_INDEX(index_name=>'SEARCH_PRODUCTS');
8+
9+
-- it creates the infrastructure for Oracle Text including a table SEARCH_PRODUCTS with two JSON columns DATA and METADATA.
10+
11+
desc SEARCH_PRODUCTS
12+
13+
-- if you need to drop the index first use
14+
-- execute DBMS_SEARCH.DROP_INDEX('SEARCH_PRODUCTS');
15+

0 commit comments

Comments
 (0)