34 lines
1.3 KiB
Markdown
34 lines
1.3 KiB
Markdown
# Voile Oracle Driver
|
|
|
|
This program is intended to use Oracle.ManagedDataAccess to connect Voile to a Oracle AI Database 26ai database.
|
|
|
|
## Getting started
|
|
|
|
1. Install the database or get a container going. A guide to create the contianer is provided below:
|
|
2. Create a CDB or PDB for Voile. In this example, we're using Oracle's Free Version, so this has already been done for us.
|
|
3. Use any Oracle administration tool to connect to your CDB or PDB using the "sys as sysdba" user.
|
|
4. Using the sys as sysdba user, create a user for Voile:
|
|
<pre>
|
|
create user voile identified by "12345" default tablespace USERS temporary tablespace TEMP
|
|
/
|
|
</pre>
|
|
5. Give the new Voile user Grants:
|
|
<pre>GRANT CONNECT, CREATE TABLE, CREATE VIEW, CREATE SEQUENCE, CREATE PROCEDURE, CREATE TRIGGER TO VOILE;</pre>
|
|
6. Give the user space:
|
|
<pre>ALTER USER voile QUOTA UNLIMITED ON USERS;</pre>
|
|
|
|
7. You're done - happy DXing!
|
|
|
|
### Creating the container
|
|
1. First create a directory to store the ORADATA.
|
|
|
|
`mkdir /data/oracle`
|
|
|
|
2. Give proper permissions to the folder:
|
|
|
|
`chown -Rv 54321:54321 /data/oracle`
|
|
|
|
3. Start the Oracle container:
|
|
|
|
`docker run -d --add-host=oracle:127.0.0.1 --memory=2G --name oracle --hostname oracle -p 1521:1521 -v /data/oracle:/opt/oracle/oradata -e ORACLE_PWD=12345 container-registry.oracle.com/database/free:latest`
|