You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: INSTALL.md
+48-41Lines changed: 48 additions & 41 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,7 +26,7 @@ This file is best viewed using a browser-plugin for markdown `.md` files.
26
26
27
27
*[Database server](#database-server)
28
28
* Oracle 11g+ or MariaDB/MySQL
29
-
*(note: the free Oracle 11g XE Express Editions which comes with a free license is perfectly suitable)
29
+
* Oracle 18c XE Express Edition available under the Oracle Free Use Terms and Conditions is suitable for development and testing (https://www.oracle.com/downloads/licenses/oracle-free-license.html).
30
30
* MariaDB/MySQL
31
31
* package `mariadb-server`
32
32
@@ -117,13 +117,23 @@ For GocDB, three URL alias/directory-mappings are needed, one for the portal GUI
117
117
Note that, depending on Apache/httpd version, the "Require all granted" statements in gocdbssl.conf may cause an HTTP Error "500 - Invalid configuration..." and can be commented out.
118
118
119
119
### Database Server
120
-
GOCDB uses a DB abstraction layer (Doctrine) and with some configuration should be deployable on different RDBMS platforms that are supported for Doctrine. Instructions are provided here for Oracle (the free Oracle 11g is perfectly suitable) and MySQL/MariaDB.
120
+
GOCDB uses a DB abstraction layer (Doctrine) and with some configuration should be deployable on different RDBMS platforms that are supported for Doctrine. Instructions are provided here for Oracle and MySQL/MariaDB.
121
121
122
-
#### Oracle 11g
123
-
The free to use XE/11g Oracle DB can be used to host run GOCDB on Win/nix. To use Oracle on nix systems, the OCI8 extension/driver needs to be compiled and installed.
122
+
#### Oracle XE (18c)
123
+
The free to use XE/18c Oracle DB can be used to host the GOCDB database for development and testing. This document adapts the instructions used for the unsupported Oracle 11g database. However, using a single, 'common user' at the root of a multitenant container database is not necessarily the best, or most secure, configuration.
124
+
125
+
To download and install the database server, follow the instructions linked from here - https://www.oracle.com/database/technologies/appdev/xe.html.
126
+
127
+
Notes on Oracle 18c XE installation:
128
+
- "SEVERE: [FATAL][DBT-06103] The port (5,500) is already in use." is caused by the short host name (alias) not being configured in /etc/hosts. (https://dba.stackexchange.com/questions/268437/fatal-dbt-06103-the-port-5-500-is-already-in-use)
129
+
- PATH Bash environment variable should be updated to include the Oracle executables BEFORE the oraenv script is run -
Using Oracle on Linux requires the OCI8 extension/driver for php: http://php.net/oci8.
124
136
125
-
##### Compiling/Installing OCI8
126
-
The OCI8 extension/driver for php needs to be installed, see: http://php.net/oci8
127
137
This can be most easily installed with the free Oracle Instant Client libs which can be installed in a number of ways (http://php.net/manual/en/oci8.installation.php), but the most easy is via PECL as descibed below:
128
138
129
139
Install the basic, devel and sqlplus instantclient rpms from Oracle (http://www.oracle.com/technetwork/database/features/instant-client/index-097480.html) and install GCC, PHP dev and pear packages:
@@ -277,36 +287,33 @@ deployment of your GOCDB instance:
If you intend to populate the database from a dump of an existing GOCDB5 instance you do NOT need to create the GOCDB5 user. Simply deploy the data as described at ["Deploy and existing DB"](#deploy-existing-dump) below remembering that you might want to ALTER the password for the GOCDB5 user after the import.
292
+
If you intend to populate the database from a dump of an existing GOCDB5 instance you do NOT need to create the GOCDB5 user. Simply deploy the data as described at ["Deploy and existing DB"](#deploy-existing-dump).
283
293
284
-
Create a dedicated GOCDB5 user using the following script (substitute GOCDB5 for your username and a secure password). Run this script as the Oracle admin/system user:
294
+
Create a dedicated GOCDB5 user using the following script (substitute C##GOCDB5 for your username and a secure password). The C## (or c##) prefix is required to indicate an Oracle 'common user'. Run this script as the Oracle admin/system user:
285
295
286
296
```
287
297
-- Manage GOCDB5 user if already exists (optional) --
288
-
drop user gocdb5 cascade;
289
-
290
-
-- CREATE USER SQL
291
-
CREATE USER GOCDB5 IDENTIFIED BY <PASSWORD>
298
+
DROP USER C##GOCDB5 CASCADE;
299
+
CREATE USER C##GOCDB5 IDENTIFIED BY <PASSWORD>
292
300
DEFAULT TABLESPACE "USERS"
293
301
QUOTA UNLIMITED ON "USERS"
294
302
TEMPORARY TABLESPACE "TEMP";
295
-
-- ROLES - GRANT "RESOURCE" TO GOCDB5
296
-
-- SYSTEM PRIVILEGES
297
-
GRANT CREATE TRIGGER TO GOCDB5 ;
298
-
GRANT CREATE SEQUENCE TO GOCDB5 ;
299
-
GRANT CREATE TABLE TO GOCDB5 ;
300
-
GRANT CREATE JOB TO GOCDB5 ;
301
-
GRANT CREATE PROCEDURE TO GOCDB5 ;
302
-
GRANT CREATE TYPE TO GOCDB5 ;
303
-
GRANT CREATE SESSION TO GOCDB5 ;
303
+
--
304
+
GRANT CREATE TRIGGER TO C##GOCDB5;
305
+
GRANT CREATE SEQUENCE TO C##GOCDB5;
306
+
GRANT CREATE TABLE TO C##GOCDB5;
307
+
GRANT CREATE JOB TO C##GOCDB5;
308
+
GRANT CREATE PROCEDURE TO C##GOCDB5;
309
+
GRANT CREATE TYPE TO C##GOCDB5;
310
+
GRANT CREATE SESSION TO C##GOCDB5;
304
311
```
305
312
306
313
If you are using sqlplus to connect to the database remotely you will need also -
307
314
308
315
```
309
-
GRANT CONNECT TO GOCDB5;
316
+
GRANT CONNECT TO C##GOCDB5;
310
317
```
311
318
312
319
By default, Oracle 11g will expire a password in 180 days. In previous versions
### ORACLE ONLY: Deploy an existing DB .dmp file to populate your DB<aid="deploy-existing-dump"></a>
444
448
@@ -457,13 +461,11 @@ This directory object defines the directory where the .dmp file is loaded from.
457
461
```
458
462
459
463
* Import your dmp file. Note, the example below assumes the 'gocdb5' user/schema does not exist in the db - the import actually creates this user with all its permissions/roles.
460
-
If you want to use a different schema/username, then specify this in the value of the remap_schema argument on the right of the colon.
461
-
You may need to change different arguments for your install such as modifying the remap_tablespace:
464
+
If you want to use a different schema/username, then specify this in the value of the remap_schema argument on the right of the colon. (The following example remaps to an Oracle 'common user' as described in [creating the Oracle user/account](#oracle-user) above, after importing an Oracle 11 dump to an Oracle 18 service). You may need to change different arguments for your install such as modifying the remap_tablespace:
Copy file name to clipboardExpand all lines: README.md
+8-5Lines changed: 8 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,13 +5,16 @@
5
5
Grid Operations Configuration Management Database. A Repository, Portal and REST style API for managing Grid and Cloud topology objects including; projects, administrative domains, sites, services, service-endpoints, service-groups, downtimes, users, roles and business rules.
GOCDB is provided by [STFC](https://stfc.ukri.org/) for [EGI](https://www.egi.eu/federation/), co-funded by [EGI.eu](https://www.egi.eu/) and [EOSC-hub](https://www.eosc-hub.eu/). Licensed under the [Apache 2 License](http://www.apache.org/licenses/LICENSE-2.0).
15
+
GOCDB is provided by [STFC](https://stfc.ukri.org/), part of [UK Research and Innovation](https://www.ukri.org/), and is co-funded by [EGI](https://egi.eu) via [EGI-ACE](https://www.egi.eu/project/egi-ace/), [EOSC-Future](https://eoscfuture.eu/) and the [IRIS](https://www.iris.ac.uk/) community.
16
+
17
+
Licensed under the [Apache 2 License](https://www.apache.org/licenses/LICENSE-2.0).
0 commit comments