Update oracle_db_configuration.rst

This commit is contained in:
Carla Schroder
2015-08-17 15:35:29 -07:00
parent e21b3881b7
commit 47fe6d65de

View File

@@ -8,8 +8,8 @@ Oracle Database Setup
This document will cover the setup and preparation of the ownCloud server to
support the use of Oracle as a backend database. For the purposes of testing,
we are setting up using Oracle Enterprise Linux as both the web server that
will host ownCloud and as a host for the Oracle Database.
we are using Oracle Enterprise Linux as both the Web server that
will host ownCloud, and as a host for the Oracle Database.
Outline of Steps
================
@@ -17,7 +17,7 @@ Outline of Steps
This document will cover the following steps:
* Setup of the ownCloud user in Oracle: This involves setting up a user space
in oracle for setting up the ownCloud database.
in Oracle for setting up the ownCloud database.
* Installing the Oracle Instant Client on the web server (facilitating the
connection to the Oracle Database).
* Compiling and installing the Oracle PHP Plugin oci8 module
@@ -27,7 +27,6 @@ The document assumes that you already have your Oracle instance running, and
have provisioned the needed resources. It also assumes that you have installed
ownCloud with all of the prerequisites.
Configuring Oracle
==================
@@ -44,21 +43,19 @@ DBA and running the script below:
ALTER USER owncloud DEFAULT TABLESPACE users TEMPORARY TABLESPACE temp QUOTA unlimited ON users;
GRANT create session, create table, create procedure, create sequence, create trigger, create view, create synonym, alter session TO owncloud;
Substitute an actual password for ``password``. Items like TableSpace, Quota etc. will be determined by your DBA.
Substitute an actual password for ``password``. Items like TableSpace, Quota etc. will be determined by your DBA.
Downloading and Installing the Oracle Instant Client
----------------------------------------------------
As was mentioned at the outset of this document, the example in this document
involves the Web servers being Oracle Enterprise Linux, in this case it is
As our example system is Oracle Enterprise Linux, it is
necessary to go to the Oracle site and download the `Oracle Instant Client`_ for
your OS Distribution.
.. _Oracle Instant Client: http://www.oracle.com/technetwork/database/features/instant-client/index-097480.html
.. note:: Download the instant client and the instant client SDK and place them
in a directory on the server, in this example they were RPM packages.
in a directory on the server, in this example they are RPM packages.
* Install the basic client from the RPM. Use the ``rpm ivh`` command
* Install the SDK RPM package. Use the ``rpm ivh`` command
@@ -71,9 +68,9 @@ Install the OCI8 PHP Extension:
The next step is to compile and install the OCI8 PHP extension for connectivity to the Oracle Database.
* Creating a folder for these bits on your server.
* Create a folder for these bits on your server.
* Download the latest version of the extension from `http://pecl.php.net/package/oci8 <http://pecl.php.net/package/oci8>`_.
* Unpack the OCI8 PHP extension obtained above and copy it over to the server.
* Unpack the OCI8 PHP extension and copy it over to the server.
* There should be two things in the folder:
* ``package.xml`` file
* ``oci8-*.*.*`` folder (folder will change based on version of the extension you downloaded).
@@ -144,7 +141,7 @@ Represents the database or the service that has been pre-configured on the TSN L
This should also be provided by the DBA.
In this example, the default setup in the Oracle install was orcl (there is a TSN Listener entry for orcl on our database server).
This is not like setting up with MySQL or SQL Server where a database based on the name you give the form is created.
This is not like setting up with MySQL or SQL Server, where a database based on the name you give is created.
The oci8 code will call this specific service and it must be active on the TSN Listener on your Oracle Database server.
Database Table Space
@@ -156,7 +153,7 @@ In this example the users table space (as is seen in the user creation script ab
Configuration File
------------------
Assuming all of the steps have been followed to completion, The first run wizard should complete and an operating instance of ownCloud should appear.
Assuming all of the steps have been followed to completion, the first run wizard should complete successfully, and an operating instance of ownCloud should appear.
The configuration file should look something like this:
@@ -176,11 +173,3 @@ The configuration file should look something like this:
'dbpassword' => '********',
'installed' => true,
);