tower tracking, RT#15538
[freeside.git] / rt / README.Oracle
1 Since RT 3.8.2 RT deployment on Oracle database has been simplified.
2
3 You don't need to create anything beforehead. During installation
4 an user is created and all RT's objects are created in his schema.
5 User is created with the following parameters:
6
7     CREATE USER <DatabaseUser> IDENTIFIED BY <DatabasePassword>
8         DEFAULT TABLESPACE USERS TEMPORARY TABLESPACE TEMP
9         QUOTA UNLIMITED ON USERS
10
11 And as well granted with 'CONNECT' and 'RESOURCE'. It's up to you
12 to do decide how to manage users, change quotas, table spaces and
13 other.
14
15 RT has option DatabaseName which is used to define SID of
16 the Oracle database. You don't have to setup TWO_TASK environment
17 variable or other helpers files for connection.
18
19 Example:
20     
21     ./configure \
22         --with-db-type=Oracle \
23         --with-db-database=XE \
24         --with-db-host=192.168.0.1 \
25         --with-db-dba=system \
26         --with-db-rt-user=rtdb1 \
27         --with-db-rt-pass=rtdb1secret \
28         ... other configure options ...
29
30 This's all specifics of deployment on Oracle you should be aware
31 of. To complete installation you must follow general instructions
32 in the README file.
33
34 As with all databases it is important to analyze the schema and get
35 current statistics after any significant dataset change.  Oracle's
36 cost-based optimizer can provide particularly bad performance when the
37 schema statistics are significantly inaccurate.  To analyze the schema
38 of a user called rt, execute the following from within sqlplus:
39
40   execute dbms_utility.analyze_schema( 'RT', 'estimate');
41