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
A database user is required to store the embeddings, used for **RAG**, into the Oracle Database. A non-privileged user with a *non-SYSTEM tablespace* should be used for this purpose. Use the below syntax as an __example__ of creating a new user with least privileges:
92
+
A database user is required to store the embeddings, used for **RAG**, into the Oracle Database. A non-privileged user with a *non-SYSTEM tablespace* should be used for this purpose. Use the below syntax as an __example__ of creating a new user with least privileges (change the value of `c_user_password`):
WHERE property_name ='DEFAULT_PERMANENT_TABLESPACE';
106
+
107
+
-- Get default temporary tablespace
108
+
SELECT property_value
109
+
INTO v_default_temp
110
+
FROM database_properties
111
+
WHERE property_name ='DEFAULT_TEMP_TABLESPACE';
112
+
113
+
-- Build dynamic CREATE USER statement
114
+
v_sql :='CREATE USER demo IDENTIFIED BY "'|| c_user_password ||'" '||
115
+
'DEFAULT TABLESPACE '|| v_default_perm ||''||
116
+
'TEMPORARY TABLESPACE '|| v_default_temp;
117
+
EXECUTE IMMEDIATE v_sql;
118
+
END;
119
+
/
98
120
GRANT"DB_DEVELOPER_ROLE" TO "DEMO";
99
121
ALTERUSER"DEMO" DEFAULT ROLE ALL;
100
122
ALTERUSER"DEMO" QUOTA UNLIMITED ON DATA;
@@ -103,7 +125,6 @@ ALTER USER "DEMO" QUOTA UNLIMITED ON DATA;
103
125
If running on a supported database for [SelectAI](https://docs.oracle.com/en-us/iaas/autonomous-database-serverless/doc/select-ai.html) and want to use the feature, grant the following additional privileges and open appropriate ACLs:
0 commit comments