| 1 | = Oracle for Mapserver = |
| 2 | * You need the Oracle Instant Client |
| 3 | * For this tutorial we'll assume that's it is installed in {{{/opt/oracle/}}} |
| 4 | |
| 5 | * With mapserver installed do |
| 6 | {{{ |
| 7 | sudo apt-get install libmsplugin-oracle-src |
| 8 | }}} |
| 9 | * To install the Mapserver plugin: |
| 10 | * We need to set the ORACLE_HOME environment variable first |
| 11 | {{{ |
| 12 | export ORACLE_HOME=/opt/oracle/ |
| 13 | }}} |
| 14 | * Then we run |
| 15 | {{{ |
| 16 | sudo mapserver-oracle-build yes |
| 17 | }}} |
| 18 | * To use the Mapserver Oracle plugin you need to use the plugin connectiontype and specify the path to libmsplugin-oracle.so, like this |
| 19 | {{{ |
| 20 | MAP |
| 21 | ... |
| 22 | CONNECTIONTYPE plugin |
| 23 | PLUGIN "/usr/lib/msplugins/libmsplugin-oracle.so" |
| 24 | ... |
| 25 | END |
| 26 | }}} |