| 1 | = Oracle for GDAL and Mapserver = |
| 2 | |
| 3 | * You need the Oracle Instant Client |
| 4 | * For this tutorial we'll assume that's it is installed in {{{/opt/oracle/}}} |
| 5 | |
| 6 | * With gdal and mapserver installed do |
| 7 | {{{ |
| 8 | sudo apt-get install libmsplugin-oracle-src libgdal-oci-src |
| 9 | }}} |
| 10 | * To install the GDAL plugin: |
| 11 | {{{ |
| 12 | sudo gdal-oci-build /opt/oracle/sdk/include /opt/oracle/ |
| 13 | }}} |
| 14 | The script takes 2 arguments, first is the path to the include directory and the second one is the path to the lib directory |
| 15 | Now you should see OCI in ogrinfo --formats |
| 16 | * To install the Mapserver plugin: |
| 17 | * We need to set the ORACLE_HOME environment variable first |
| 18 | {{{ |
| 19 | export ORACLE_HOME=/opt/oracle/ |
| 20 | }}} |
| 21 | * Then we run |
| 22 | {{{ |
| 23 | sudo mapserver-oracle-build yes |
| 24 | }}} |
| 25 | * To use the Mapserver Oracle plugin you need to use the plugin connectiontype and specify the path to libmsplugin-oracle.so, like this |
| 26 | {{{ |
| 27 | MAP |
| 28 | ... |
| 29 | CONNECTIONTYPE plugin |
| 30 | PLUGIN "/usr/lib/msplugins/libmsplugin-oracle.so" |
| 31 | ... |
| 32 | END |
| 33 | }}} |