Changes between Version 8 and Version 9 of OracleTestSetup
- Timestamp:
- Nov 14, 2010, 7:16:31 AM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
OracleTestSetup
v8 v9 10 10 suite against Oracle by: 11 11 12 13 14 12 * Providing a step by step setup guide to achieve that. 13 * Hopefully collecting information (best practices, tuning tips) to do that 14 as efficiently as possible. 15 15 16 16 Chosen components are: … … 134 134 ``sudo service xe start``) 135 135 136 #. Make sure the Oracle environment vars needed by its client libraries 137 are set (Bash shell):: 136 137 #. Make sure the Oracle environment vars needed by its client libraries are set. You need to do this in all systems 138 where you will be running client apps (e.g. the django test runner, the Oracle ''sqlplus'' CLI admin tool, etc.): 139 the system where the DB engine will run and/or other systems connected to it through the network (see next item). 140 141 I use the Bash shell, see the Oracle docs for instructions for other shells:: 138 142 139 143 $ echo "source /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/oracle_env.sh" >> ~/.bashrc 140 144 $ source /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/oracle_env.sh 141 142 145 143 146 #. Decide if you will perform the following two tasks … … 154 157 * By default no access of any type (SQL sessions, admin web app) is allowed through the network to the DB engine, you need to change that by using the administrative web interface or possibly using the `sqlplus` tool. 155 158 156 #. Access the DB engine administration web app by pointing our Web browser to ``http://localhost:8080/apex`` (or ``http://server:8080/apex``)159 #. Access the DB engine administration web app by pointing your Web browser to ``http://localhost:8080/apex`` (or ``http://server:8080/apex``) 157 160 and using the ``SYSTEM`` user plus the password you chose above. 158 161 … … 244 247 245 248 In my particular case I've implemented this setup by using a KVM virtual machine 246 (host system is a workstation running Debian unstable *Sid*). The VM got two CPUs, 1 GiB of RAM 247 and a 30 GiB hard disk. Platform is GNU/Debian Linux 5.0 aka *Lenny* (stable as of Nov 2010) 248 because it still is in its support period and as a bonus contains Python 2.4 in pre-packaged 249 form. 249 (host system is a workstation running Debian unstable *Sid*). The VM got: 250 251 * one CPU (Oralce XE won't use any additional CPU). 252 * 512 MiB of RAM (initially it was 1GiB but the Django test suite execution doesn't push memory usage above that at all). 253 * 30 GiB hard disk. 254 255 Platform is GNU/Debian Linux 5.0 aka *Lenny* (stable as of Nov 2010) because it still is in 256 its support period and as a bonus contains Python 2.4 in pre-packaged form. 250 257 251 258 Things to review: 252 259 253 260 * How much does the Oracle installation pollutes the system?. If it result to be confined and easy to undo/cleanup, maybe this setup doesn't need to be done inside a VM. 254 * System resource (CPU, RAM usage while running the full test suite). Maybe I can reduce the RAM assigned to the VM to 512 MiB and the virtual CPU count from two to one.255 261 }}}