This is an old revision of the document!


Integration: Relational Databases

Oracle

Databases

The CREATE DATABASE statement is used to declare an Oracle database within an Omnidex Environment File. This statement can either be issued directly, or it can be extracted from Oracle using the EXTRACT statement as discussed in the previous section.

The CREATE DATABASE statement must include the database name, the Oracle version, and the Oracle user and password.

create database                "SIMPLE"
 type                          oracle
 version                       "11"
 user                          "simple"
 password                      "simple"
 index_directory               "idx"
 in                            "simple.xml";

Using SQL*Net

Omnidex is frequently installed on a separate server than the Oracle database. In fact, this is preferable since it allows both Omnidex and Oracle to operate at their best without competing for resources. This means that Omnidex often accesses the Oracle database through SQL*Net. When using SQL*Net, simply state the name of the SQL*Net service in the SERVICE clause.

create database                "SIMPLE"
 type                          oracle
 version                       "11"
 user                          "simple"
 password                      "simple"
 service                       "simple"
 index_directory               "idx"
 in                            "simple.xml";

Oracle Security

Omnidex uses a single user and password to access an Oracle database. Oracle database administrators should provide an appropriate user and password that gives access to all of the database objects referenced in the Omnidex Environment Files.

When connecting to an Omnidex Environment File, it is generally not possible to pass different user and passwords dynamically; however, there is an exception to this rule. The user and password can reference environment variables or shell commands. This can provide a rudimentary mechanism for providing dynamic user and passwords. Care should be taken when using this approach, though. All users passed should have access to all database objects declared in the Omnidex Environment File, and should also have access to all rows in the tables.

Additional Resources

See also:

 
Back to top
integration/rdbms/oracle/databases.1301885806.txt.gz ยท Last modified: 2016/06/28 22:38 (external edit)