LU4.CONV - Dcdo.driver Configuration and Testing
LU4.CONV - Dcdo.driver Configuration and Testing
Drivers . In this learning unit, you will learn about creation of Tablespaces and users
Configure Driver
Testing the working of driver
The first option is database setting which is used to specify the data tablespace and
index tablespace
The second option is used to specify the oracle user name and password, which the
driver will be using to connect to oracle
The third option is used to run a script called install.sql (we will learn about this later)
After getting this setup done you can choose the fouth option to test whether we are
successfully able to connect to the external database using the driver.
1. You will choose option 2 in main menu to get into User menu.
2. In user menu choose option 2 to set Oracle user name.
3. You will choose option 3 on User menu to set password for this user.
You will choose option 4 in main menu to check the connectivity between jBASE and
Oracle. If the option result in displaying system date and time you can be sure that
connectivity between jBASE and Oracle is fine. When it results in a error, you
need to double check the setting in config-XMLORACLE utility and the listener
configuration at Oracle.
Executing install.sql script, will create the STUBFILES table in Oracle. Apart from
creating the STUBFILES table, this script will also create the JBASEXML package
that has a number of procedures which are used during read/write operations. The
procedures that are part of the JBASEXML package are:
PROCEDURE BLOB_INSERT ()
PROCEDURE BLOB_UPDATE ()
PROCEDURE XML_INSERT ()
PROCEDURE XML_UPDATE ()
FUNCTION Index_List ()
You will choose option 5 in the main menu to save the settings
You will choose option 6 in the main menu to save and exit
Note:
The table STUBFILE get screated when the script install.sql is executed. The data in
Eg:
SELECT TABLESPACE_NAME FROM USER_TABLESPACES;
To view the description of those tables created for TRG.TEST, use the command
DESC followed by table name.
To view the type of file and path of the stub file at T24, you can query STUBFILES
table.
Once we have inserted data, let us query the table from sqlplus to view its content.
What we see on this screenshot is the content of the record – SAMPLE.RECORD. The
type of record is XML RECORD and the record id is SAMPLE.RECORD. The data is
stored within xml tags in column.
1. The Oracle supplied script catblock.sql must have been run in the database by the
DBA. This creates the Oracle DBA Lock Views.
2. The “execute” privilege on DBMS_LOCK must be granted to the T24 Oracle User.
To complete this, do the following using the sqlplus command line tool:
sqlplus sql> conn / as sysdba
sql> @$ORACLE_HOME/rdbms/admin/catblock.sql
To fix this error: Check the database and User setting in jedi_config file and at Oracle
level check if the Oracle service and listener are running. It is also recommended to
check the listener setting.
To fix this error: Check the environmental variables associated with the driver
configuration, JBCOBJECTLIST does not include the location of the driver. This could
also be because TYPE=XMLORACLE is not specified correctly in the CREATE-FILE
command. jBASE was unable to find driver. As discussed earlier use jshow command
on XMLORACLEInit to find the location.
Configure Driver
Test the working of the driver