| 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 | |
| | 179 | Oracle Database 10g Express Edition Configuration |
| | 180 | ------------------------------------------------- |
| | 181 | This will configure on-boot properties of Oracle Database 10g Express |
| | 182 | Edition. The following questions will determine whether the database should |
| | 183 | be starting upon system boot, the ports it will use, and the passwords that |
| | 184 | will be used for database accounts. Press <Enter> to accept the defaults. |
| | 185 | Ctrl-C will abort. |
| | 186 | |
| | 187 | Specify the HTTP port that will be used for Oracle Application Express [8080]: |
| | 188 | |
| | 189 | Specify a port that will be used for the database listener [1521]: |
| | 190 | |
| | 191 | Specify a password to be used for database accounts. Note that the same |
| | 192 | password will be used for SYS and SYSTEM. Oracle recommends the use of |
| | 193 | different passwords for each database account. This can be done after |
| | 194 | initial configuration: |
| | 195 | Confirm the password: |
| | 196 | |
| | 197 | Do you want Oracle Database 10g Express Edition to be started on boot (y/n) [y]: |
| | 198 | |
| | 199 | Starting Oracle Net Listener...Done |
| | 200 | Configuring Database...Done |
| | 201 | Starting Oracle Database 10g Express Edition Instance...Done |
| | 202 | Installation Completed Successfully. |
| | 203 | To 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 | {{{ |
| | 209 | ssh -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 | {{{ |
| | 217 | source /etc/lemon/lemon-ora.admin_env.sh |
| | 218 | }}} |
| | 219 | |
| | 220 | * Create databases: |
| | 221 | {{{ |
| | 222 | $ sqlplus system@XE |
| | 223 | |
| | 224 | SQL*Plus: Release 10.2.0.1.0 - Production on Mon Nov 19 15:05:58 2007 |
| | 225 | |
| | 226 | Copyright (c) 1982, 2005, Oracle. All rights reserved. |
| | 227 | |
| | 228 | Enter password: |
| | 229 | |
| | 230 | Connected to: |
| | 231 | Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production |
| | 232 | |
| | 233 | SQL>create tablespace LEMON_INDX logging datafile '/var/oracle/lemon_indx.dbf' size 500m autoextend on next 32m maxsize 2048m extent management local; |
| | 234 | SQL>create tablespace LEMON_DATA logging datafile '/var/oracle/lemon_data.dbf' size 1000m autoextend on next 32m maxsize 2048m extent management local; |
| | 235 | SQL>exit; |
| | 236 | }}} |
| | 237 | |
| | 238 | * You can now initialize databases |
| | 239 | {{{ |
| | 240 | lemon-ora.admin --file=/etc/oramon-server.conf --create-schema |
| | 241 | lemon-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 | {{{ |
| | 253 | register_globals = On |
| | 254 | memory_limit = 32M |
| | 255 | register_long_array = on |
| | 256 | }}} |
| | 257 | |
| | 258 | * Remove following functions from {{{/var/www/html/lrf/oracle.inc}}} : |
| | 259 | {{{ |
| | 260 | batchUpdate |
| | 261 | batchUpdateNC |
| | 262 | batchQuery |
| | 263 | }}} |
| | 264 | |
| | 265 | * Restart Apache |
| | 266 | {{{ |
| | 267 | /etc/init.d/httpd restart |
| | 268 | }}} |