# Schema Setup for Oracle Database

This topic provides the steps that need to be performed by the individual responsible for the administration of the Oracle Database to setup the schema for PDFKeeper.

Note, due to changes with permissions starting with Oracle Database Free, this topic only provides instructions for performing the schema setup on the same computer as Oracle Database. This requires that PDFKeeper be installed on the same computer as Oracle Database to perform the schema setup. As an alternative, you can copy OracleDatabaseSchemaSetup.sql from %LOCALAPPDATA%\Programs\PDFKeeper to the computer hosting Oracle Database.

Perform the following steps on the same computer as Oracle Database while logged in as the same user that installed Oracle Database:

1. Open a Command Prompt.

2. Enter sqlplus / as sysdba

3. For Oracle Database Free, enter grant execute on ctx_ddl to system;

4. For Oracle Database Free, enter alter session set container=freepdb1;

5. For Oracle Database Express Edition, enter alter session set container=xepdb1;

6. For Oracle Database Enterprise or Standard Edition, enter alter session set container=orclpdb;

- If you wish to use a different pluggable database name, replace orclpdb with that name.

7. Enter @"<ABSOLUTE_PATH>\OracleDatabaseSchemaSetup.sql"

- Replace <ABSOLUTE_PATH> with %LOCALAPPDATA%\Programs\PDFKeeper if PDFKeeper is installed on the same computer as Oracle Database or the folder path where OracleDatabaseSchemaSetup.sql was copied to.