Changes between Version 2 and Version 3 of OracleSpatialTestSetup
- Timestamp:
- Oct 18, 2012, 4:04:28 AM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
OracleSpatialTestSetup
v2 v3 11 11 Prerequisities 12 12 ============== 13 14 Install Oracle client and set it up as documented in https://docs.djangoproject.com/en/1.4/ref/databases/#oracle-notes15 Install GeoDjango requirements as documented in https://docs.djangoproject.com/en/1.4/ref/contrib/gis/install/13 On host machine: 14 - Install Oracle client and set it up as documented in https://docs.djangoproject.com/en/1.4/ref/databases/#oracle-notes 15 - Install GeoDjango requirements as documented in https://docs.djangoproject.com/en/1.4/ref/contrib/gis/install/ 16 16 17 17 ====================== … … 19 19 ====================== 20 20 21 Easiest way is to use Oracle VirtualBox with prebuilt Oracle installation VM. 21 Easiest way is to use Oracle VirtualBox with prebuilt Oracle installation VM. We will be using the VM as a database server only. 22 22 23 23 #. Download and install **Oracle VirtualBox** from http://www.oracle.com/technetwork/server-storage/virtualbox/downloads/index.html or use package manager from your system. 24 25 24 #. Download **Oracle Developer Day** image from http://download.oracle.com/otn/other/virtualbox/dd/Oracle_Developer_Day.ova 25 #. Use VirtualBox to launch the image 26 26 27 27 **NOTE: You may not use Oracle Developer Day VM for any other purposes than testing** … … 30 30 Database setup 31 31 ============== 32 On virtual machine: 32 33 33 34 #. Create a user and give the needed privileges:: … … 43 44 Run tests 44 45 ========= 46 On host: 45 47 46 48 #. Create geodjango_oracle.py settings file (change IP to one that is reported in VM console):: 47 49 48 50 TEST_RUNNER = 'django.contrib.gis.tests.GeoDjangoTestSuiteRunner' 49 51 … … 52 54 'ENGINE' : 'django.contrib.gis.db.backends.oracle', 53 55 'PORT' : '1521', 54 'HOST' : ' 192.168.56.101',56 'HOST' : 'VM IP', 55 57 'NAME' : 'orcl', 56 58 'USER' : 'djangotest', … … 58 60 }, 59 61 } 62 SECRET_KEY = 'xxxxx' 60 63 61 64 #. Run tests::