Page History
NOTE TO WRITERS : Add the intro and the TOC in the hosting page when you pull or copy the content.
The following sections describe how to replace the default H2 databases with Oracle:
...
The following sections describe how to set up an Oracle database to replace the default H2 databases with Oracle:database in your WSO2 product:
Table of Contents | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
...
hidden | true |
---|
|
Setting up the database and users
Follow the steps below to set up a an Oracle database.
Create a new database by using the Oracle database configuration assistant (dbca) or manually.
Make the necessary changes in the Oracle
tnsnames.ora
andlistner.ora
files in order to define addresses of the databases for establishing connections to the newly created database.After configuring the
.ora
files, start the Oracle instance using the following command:$ sudo /etc/init.d/oracle-xe restart
Connect to Oracle using SQL*Plus as SYSDBA as follows:
$ ./$<ORACLE_HOME>/config/scripts/sqlplus.sh sysadm/password as SYSDBA
Connect to the instance with the username and password using the following command:
$ connect
As SYSDBA, create a database user and grant privileges to the user as shown below:
Code Block language powershell Create user <USER_NAME> identified by password<PASSWORD> account unlock; grant connect to <USER_NAME>; grant create session, create table, create sequence, create trigger to <USER_NAME>; alter user <USER_NAME> quota <SPACE_QUOTA_SIZE_IN_MEGABYTES> on '<TABLE_SPACE_NAME>'; commit;
- Exit from the SQL*Plus session by executing the
quit
command.
...
- Copy the Oracle JDBC libraries (for example, <
ORACLE_HOME/jdbc/lib/ojdbc14.jar)
to the <PRODUCT_HOME>/repository/components/lib/
directory. - Remove the old database driver from the
<PRODUCT_HOME>/repository/components/dropins/
directory.
Info |
---|
If you get a a " The value of this property should be the GMT difference of the country. If it is necessary to set this property permanently, define it inside the |
...