Alert.png The wiki is deprecated and due to be decommissioned by the end of September 2022.
The content is being migrated to other supports, new updates will be ignored and lost.
If needed you can get in touch with EGI SDIS team using operations @ egi.eu.

GOCDB/Regional Module Technical Documentation/DeployOnOracle

From EGIWiki
< GOCDB‎ | Regional Module Technical Documentation
Revision as of 18:52, 14 November 2013 by Davidm (talk | contribs) (Created page with "===Oracle DB Preparation Example=== We advise that you create a dedicated GOCDB user. For Oracle, you can create the gocdb user with the following script (substitute <PASSWORD...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Oracle DB Preparation Example

We advise that you create a dedicated GOCDB user. For Oracle, you can create the gocdb user with the following script (substitute <PASSWORD> with a sensible password and run as system user):

-- CREATE USER SQL
CREATE USER GOCDB IDENTIFIED BY <PASSWORD> 
DEFAULT TABLESPACE "USERS"
TEMPORARY TABLESPACE "TEMP";
-- ROLES
GRANT "RESOURCE" TO GOCDB ;
-- SYSTEM PRIVILEGES
GRANT CREATE TRIGGER TO GOCDB ;
GRANT CREATE SEQUENCE TO GOCDB ;
GRANT CREATE TABLE TO GOCDB ;
GRANT CREATE JOB TO GOCDB ;
GRANT CREATE PROCEDURE TO GOCDB ;
GRANT CREATE TYPE TO GOCDB ;
GRANT CREATE SESSION TO GOCDB ;

Manage the GOCDB password expiry

By default, Oracle 11g will expire a password in 180 days. In previous versions of Oracle, the default policy was UNLIMITED, so please be aware of this change! As a system user, you can see your password expiry settings by looking at the PASSWORD_LIFE_TIME and PASSWORD_GRACE_TIME parameters in the DBA_PROFILES table:

-- select the profile for the GOCDB user (e.g. will return DEFAULT)
SELECT profile FROM dba_users WHERE username = 'GOCDB'; 

-- select the password expiry settings for the profile assigned to the GOCDB user
select resource_name,resource_type, limit from dba_profiles where profile=DEFAULT; 


If you prefer, you can update the default expiry from 180days to UNLIMITED using the following (assumng GOCDB user profile is DEFAULT):

-- requires system privilege
ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED;