You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: MigrationTools/IndexParser/README.md
+5-4Lines changed: 5 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,7 @@ The purpose of this package is to help migrating indexes from MongoDB to Oracle
10
10
See: [Oracle Database API for MongoDB](https://docs.oracle.com/en/database/oracle/mongodb-api/mgapi/oracle-database-api-mongodb.pdf)
11
11
* This package will scan all your data and suggest SQL indexes to create based on a combination of your MongoDB index definitions and the actual data types used.
12
12
* If your data is large, running this package may take some time as it must scan all of your collection data.
13
+
* Package must be used in the same schema as the collection where indexes are going to be used.
13
14
14
15
## Installation
15
16
@@ -72,7 +73,7 @@ If your Object Store bucket is not public, you must also specify a credential.
72
73
from "INDEXES", json_table(
73
74
json_document, '$' columns (
74
75
collectionName,
75
-
nested '$.indexes[*]' columns(doc format json path '$')
76
+
nested '$.indexes[*]' columns(doc clob format json path '$')
76
77
)
77
78
);
78
79
```
@@ -81,7 +82,7 @@ If your Object Store bucket is not public, you must also specify a credential.
81
82
select ora_idx_parser.getSQLIndexes(collectionName, indexes) as SQL_Idx
82
83
from "INDEXES", json_table(
83
84
json_document, '$' columns (
84
-
collectionName, indexes format json
85
+
collectionName, indexes clob format json
85
86
)
86
87
);
87
88
```
@@ -93,8 +94,8 @@ Example result:
93
94
```
94
95
alter session enable parallel ddl;
95
96
96
-
create index "$ora:shows.summary_1" on shows(
97
-
json_value(data, '$.summary.stringOnly()' error on error null on empty) asc
97
+
create index "$ora:shows.summary_1" on SHOWS(
98
+
json_value(DATA, q'[$."summary".stringOnly()]' error on error null on empty) asc
0 commit comments