We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e861ec commit a524aeeCopy full SHA for a524aee
data-platform/core-converged-db/database-23c/database-search/1-create-ubiquitous-index.sql
@@ -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