Oracle
Oracle InstallationTo install Oracle, please consult the Oracle documentation. When you have an Oracle server installed, continue to the Oracle preparation section to prepare your database. Oracle PreparationTo use Oracle with RHQ, you will need to follow the following steps. More preparation is required if the advanced Oracle setup will be used - please refer to Advanced Oracle Configuration for that information.
Oracle is now ready to accept a RHQ installation. RHQ user requirements for XARHQ, internally, uses XA for some of its datasources. To be able to recover from transaction failures, it is required to grant special privileges to the 'rhq' datasource user you just created in the previous section. If you do not do this, XAException.XAER_RMERR errors will occur. The privileges you need to grant include: GRANT SELECT ON sys.dba_pending_transactions TO rhq; GRANT SELECT ON sys.pending_trans$ TO rhq; GRANT SELECT ON sys.dba_2pc_pending TO rhq; GRANT EXECUTE ON sys.dbms_system TO rhq;
Sessions and ProcessesCurrently the recommended algorithm for determining the maximum number of Oracle processes (as kept in v$resource_limit) which RHQ should use is the following: Take the maximum of:
then add 40 if you are also using Oracle Enterprise Manager (EM). For example if you had 100 RHQ Agents and 2 RHQ Servers, and you were using Oracle EM, you would have:
So the maximum of the two is 150; add 40 to support Oracle EM and that gives 190 processes. The number of sessions (as kept in v$resource_limit) should be:
So, in this example, a maximum of 209 sessions should be sufficient. These settings should prevent you from seeing errors such as ORA-00018: maximum number of sessions exceeded. SGA and PGA SizesYour Oracle settings for SGA and PGA sizes are very important in the performance of RHQ. Too small and your database will perform very slow, affecting RHQ in a very negative way. Talk to your DBA for proper sizing of your Oracle's SGA and PGA requirements. The settings you need to make sure you tune are "sga_target" and "pga_aggregate_target". Tuning Open CursorsIf the following sql: select max(a.value) as highest_open_cur, p.value as max_open_cur from v$sesstat a, v$statname b, v$parameter p where a.statistic# = b.statistic# and b.name = 'opened cursors current' and p.name= 'open_cursors' group by p.value; returns a max_open_cur value of less than 300 then execute: ALTER SESSION SET OPEN_CURSORS = 300 SCOPE=BOTH; Oracle Advanced PreparationThere are optional configurations that can help Oracle perform effectively with large RHQ environments. This configuration is not necessary for small to medium environments. An example of an environment where this type of configuration would help performance is an environment with hundreds of RHQ Agents.
|