Changes between Version 5 and Version 6 of Obsolete/Doc/Monitoring/Lemon


Ignore:
Timestamp:
Nov 19, 2007, 3:25:39 PM (18 years ago)
Author:
/C=BE/O=BEGRID/OU=ULB-VUB/OU=IIHE/CN=Shkelzen Rugovac
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Obsolete/Doc/Monitoring/Lemon

    v5 v6  
    169169}}}
    170170
    171 === Server post-install ===
     171== Server post-install ==
     172
     173=== Configure Oracle-XE ===
     174
     175 * Run the configure command. Just put the same values that you have already set in your QWG templates.
     176{{{
     177$ /etc/init.d/oracle-xe configure
     178
     179Oracle Database 10g Express Edition Configuration
     180-------------------------------------------------
     181This will configure on-boot properties of Oracle Database 10g Express
     182Edition.  The following questions will determine whether the database should
     183be starting upon system boot, the ports it will use, and the passwords that
     184will be used for database accounts.  Press <Enter> to accept the defaults.
     185Ctrl-C will abort.
     186
     187Specify the HTTP port that will be used for Oracle Application Express [8080]:
     188
     189Specify a port that will be used for the database listener [1521]:
     190
     191Specify a password to be used for database accounts.  Note that the same
     192password will be used for SYS and SYSTEM.  Oracle recommends the use of
     193different passwords for each database account.  This can be done after
     194initial configuration:
     195Confirm the password:
     196
     197Do you want Oracle Database 10g Express Edition to be started on boot (y/n) [y]:
     198
     199Starting Oracle Net Listener...Done
     200Configuring Database...Done
     201Starting Oracle Database 10g Express Edition Instance...Done
     202Installation Completed Successfully.
     203To access the Database Home Page go to "http://127.0.0.1:8080/apex"
     204}}}
     205 From now you have access the Database Home Page by either directly running a webbroswer on the lemon box or from another machine using tunneling[[BR]][[BR]]
     206  '''Example''' (from your laptop):
     207  * Run this ssh command
     208{{{
     209ssh -L 18080:localhost:8080 root@lemon.box
     210}}}
     211  * Then go to "http://localhost:18080/apex"
     212
     213=== Initiate Databases ===
     214
     215 * Set the Oracle environment:
     216{{{
     217source /etc/lemon/lemon-ora.admin_env.sh
     218}}}
     219
     220 * Create databases:
     221{{{
     222$ sqlplus system@XE
     223
     224SQL*Plus: Release 10.2.0.1.0 - Production on Mon Nov 19 15:05:58 2007
     225
     226Copyright (c) 1982, 2005, Oracle.  All rights reserved.
     227
     228Enter password:
     229
     230Connected to:
     231Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
     232
     233SQL>create tablespace LEMON_INDX  logging datafile '/var/oracle/lemon_indx.dbf' size 500m autoextend on next 32m maxsize 2048m extent management local;
     234SQL>create tablespace LEMON_DATA logging datafile '/var/oracle/lemon_data.dbf' size 1000m autoextend on next 32m maxsize 2048m extent management local;
     235SQL>exit;
     236}}}
     237
     238 * You can now initialize databases
     239{{{
     240lemon-ora.admin --file=/etc/oramon-server.conf --create-schema
     241lemon-ora.admin --file=/etc/oramon-server.conf --all
     242}}}
     243
     244 * Start services:
     245{{{
     246/etc/init.d/OraMon start
     247/etc/init.d/lemonnrd start
     248}}}
     249
     250
     251 * Edit {{{/etc/php.ini}}}
     252{{{
     253register_globals = On
     254memory_limit = 32M
     255register_long_array = on
     256}}}
     257
     258 * Remove following functions from {{{/var/www/html/lrf/oracle.inc}}} :
     259{{{
     260batchUpdate
     261batchUpdateNC
     262batchQuery
     263}}}
     264
     265 * Restart Apache
     266{{{
     267/etc/init.d/httpd restart
     268}}}