Professional Documents
Culture Documents
TAFJ-Oracle Install 12c
TAFJ-Oracle Install 12c
R20
TAFJ-O r a cl e 1 2 c I n s t a ll
Document History:
Revisio
Date Amended Name Description
n
G.Gowriman
16 4th Feb 2015 Altered the Database creation steps
i
Page 2
TAFJ-O r a cl e 1 2 c I n s t a ll
Copyri g h t
Copyright © Temenos Headquarters SA 2009-2020. All rights reserved
This document contains proprietary information that is protected by copyright. No part of this
document may be reproduced, transmitted, or made available directly or indirectly to a third
party without the express written agreement of TEMENOS UK Limited. Receipt of this
material directly TEMENOS UK Limited constitutes its express permission to copy.
Permission to use or copy this document expressly excludes modifying it for any purpose, or
using it to create a derivative therefrom.
Temenos Headquarters SA
2 Rue de l’Ecole-de-Chimie,
CH - 1205 Geneva,
Switzerland
Please include your name, company, address, and telephone and fax numbers, and email
address if applicable. TAFJdev@temenos.com
Page 3
TAFJ-O r a cl e 1 2 c I n s t a ll
Table of Contents
Copyright................................................................................................................................................ 3
Errata and Comments............................................................................................................................ 3
Introduction............................................................................................................................................. 5
Install Oracle........................................................................................................................................... 5
Create a Database Instance................................................................................................................... 5
Launch the Database configuration assistant............................................................5
Create TableSpace and a User............................................................................................................ 15
Load the necessary Stored functions................................................................................................... 18
Storing JSON........................................................................................................................................ 19
Procedure for applying JSON fix......................................................................................... 20
Page 4
TAFJ-O r a cl e 1 2 c I n s t a ll
Intro d u c t i o n
This document will show all steps to configure a database, ready to be used by T24 with
TAFJ. At this time TAFJ only supports Oracles Version 11 and up.
This procedure is for Windows® platform. For all other OS please refer to the official product
documentation.
Inst a l l Oracl e
Most steps aren’t shown. Please follow the official Oracle document setup.
Or
Execute %ORACLE_HOME%\BIN\dbca.bat
Page 5
TAFJ-O r a cl e 1 2 c I n s t a ll
Press Next…
Choose Advanced mode
Page 6
TAFJ-O r a cl e 1 2 c I n s t a ll
Page 7
TAFJ-O r a cl e 1 2 c I n s t a ll
Set a Global Database name. You will have to report this name in the property file
of your project to the key temn.tafj.jdbc.url
Press Next…
(This is NOT (!) the password you will set in the properties file...)
Page 8
TAFJ-O r a cl e 1 2 c I n s t a ll
Press Next…
Press Next…
Page 9
TAFJ-O r a cl e 1 2 c I n s t a ll
Press Next…
Page 10
TAFJ-O r a cl e 1 2 c I n s t a ll
Press Next…
Page 11
TAFJ-O r a cl e 1 2 c I n s t a ll
Press Next…
Press Finish…
Page 12
TAFJ-O r a cl e 1 2 c I n s t a ll
Press Exit… (The URL will be used as to connect to the database monitor.)
Press Close…
(The port number will be the one mentioned in the Database configuration Assistant)
Page 13
TAFJ-O r a cl e 1 2 c I n s t a ll
Connect as SYSDBA
Page 14
TAFJ-O r a cl e 1 2 c I n s t a ll
Page 15
TAFJ-O r a cl e 1 2 c I n s t a ll
In the TAFJ installation <TAFJ_HOME> \dbscripts\oracle, you will find 2 SQL scripts:
createtablespace.sql
createuser.sql
You will need to edit this script to reflect the correct data.
i.e:
Page 16
TAFJ-O r a cl e 1 2 c I n s t a ll
In the createuser_oracle.sql, you will need to change the username and the password and
the tablespace name (in Green):
i.e:
Page 17
TAFJ-O r a cl e 1 2 c I n s t a ll
Once these values have been changed, launch a console and from <TAFJ_HOME>
\dbscripts\oracle, type:
Then, type:
@createtablespace_oracle.
sql
And
@createuser_oracle.sq
l
You will have to give the full path to these scripts if there are not in the current directory.
These script can take several minutes to be executed.
exit
Page 18
TAFJ-O r a cl e 1 2 c I n s t a ll
you will need to change the username and the password and the tablespace name (in
Green):
i.e:
>javaload
Page 19
TAFJ-O r a cl e 1 2 c I n s t a ll
>sqlplus <DBUser>
And type
@javafunctions_oracle.sql
This should create your sqlfunction which bind to the java functions you created earlier.
exit
Once this is finished you should be able to run a DBImport for oracle. Don’t forget to copy
the ORACLE drivers from <TAFJ_HOME>/dbdrivers to <TAFJ_HOME>/ext. The
properties that go in the TAFJ properties file look like this:
temn.tafj.jdbc.url = jdbc:oracle:thin:@localhost:1521:T24DB
temn.tafj.jdbc.driver = oracle.jdbc.driver.OracleDriver
temn.tafj.jdbc.username = tafj
temn.tafj.jdbc.password = secret
Stori n g JSON
Oracle supports storing and querying JSON, and TAFJ now supports storing it in Blob
columns. To import your data in JSON format:
1) Put T24’s AllRecords.jar into <TAFJ_HOME>/ext (this jar stores the metadata for
JSON representation of different tables and is needed by TAFJ)
JSON tables are created with a constraint to ensure it is valid JSON. An example CREATE
TABLE statement follows.
Page 20
TAFJ-O r a cl e 1 2 c I n s t a ll
During the DBImport, JSON views will be created with a json_table for single attribute
columns. Multi-value columns will be formed using json_exists function dynamically. Putting
multi-value columns inside a json_table creates an unwanted Cartesian product.
JSON columns can be promoted and indexed. Please see the Oracle documentation.
Note that Oracle has a bug with prepared statements with version 12.2.0.1 that
requires a patch. To get around this bug, one can set the property
temn.tafj.jdbc.use.ps.json.oracle.fix=true in tafj.properties (default is false as applying
the patch is better)
1. Download the patches from support.oracle.com and extract the contents of the patch on
Oracle Server. Ensure that the ORACLE_HOME is set to the correct path and there are no
processes running in the ORACLE_HOME(database or oracle listener)
Note: Before applying the opatch, download the latest version for opatch from the following
Oracle Metalink Note: 6880880 (p6880880_122010_Linux-x86-64.zip) or else you will get
errors apply $ORACLE_HOME/OPatch/opatch lsinventory or
$ORACLE_HOME/OPatch/opatch apply
Reference: https://support.oracle.com/knowledge/Oracle%20Database
%20Products/274526_1.html
$ORACLE_HOME/OPatch/opatch lsinventory
1 ) Navigate to 28662603
a. cd 28662603
b. $ORACLE_HOME/OPatch/opatch apply
2) Navigate to 25028996
a. cd 25028996
b. $ORACLE_HOME/OPatch/opatch apply
Page 21
TAFJ-O r a cl e 1 2 c I n s t a ll
$ORACLE_HOME/OPatch/opatch lsinventory
Page 22