home technical personal links weddings
spacer general tech mapinfo/gis oracle/database misc/useless
MapInfo Professional / Oracle Spatial Integration
DownloadClick here to download zip file (~ 60KB)


Summary

The zip file above contains several files that will allow you to demo the Oracle Spatial Option in Oracle 8i (and previous versions) against the latest version of MapInfo Professional 5.0.

The included MapBasic program - which should be run from within MapInfo (use the File-->Run MapBasic Program menu choice) will allow you to demo Oracle Spatial from within MapInfo. For instance if you have the debug mode turned on all the queries and sql statements can be printed out to an ASCII file or the screen so the user sees the steps needed to create and populate a Spatial table. You can also visually show how Spatial indexes the data by uploading a MapInfo table to Oracle and then using the 'Manage Spatial Indexes' menu choice to use different tiling levels and you can then use the 'Map Spatial Table's Tiles' menu choice to show the actual tiles visualized on a map - show how a tiling level of 12 differs from a tiling level of 4 or how fixed-sized tiles differ from variable-sized tiles - you can also use the MapInfo menu choice under the 'File' menu called 'Open ODBC table' to show how a query where you want to return all the Spatial objects within the current screen dimensions will vary the time to complete based on the tile level chosen (this last step only works with the pre-8i spatial cartridge since MapInfo 5.0 isn;t integrated yet with Oracle 8i Spatial).

As you can see from the directions below this combination of products isn't the easist to demo (there are a lot of steps you have to complete to even get started), but please call me if you run into any bugs or have any questions. Someone should really have a basic familiarity with MapInfo in order to demo this properly (also MapInfo doesn't work right with the Oracle8i ODBC drivers that ship on the CD) - so you need a listener to be running if you are running againt Oracle8i and you need to use the ODBC drivers that ship with MapInfo. Good luck and thank you to all the Spatial folks who have provided me with assistance.

Directions
Attached Files Steps to Install
  1. make sure Oracle8i is installed including the Spatial option
  2. run following scripts from SQL*Plus for complete Spatial install (logged in as mdsys/mdsys)

    for 8i these scripts are in $ORACLE_HOME\md\admin\

    @sdowin.sql
    @prvtwin.plb
  3. install MapInfo products (see above about getting products)

    - run setup.exe from MapInfo Professional 5.0 CD and click on 'Install Products...'

    - click on 'MapInfo Professional' to install
    - click on 'ODBC Support' to install ODBC drivers (be sure to check 'MapInfo Win32 Oracle7 Driver3.10' in component list)
    - click on 'Data' to install data products
  4. run Control Panel->Services to make sure both Oracle Service and Oracle Listener are up and running
  5. make sure have good entry in tnsnames.ora to your instance of Oracle (under $ORACLE_HOME\network\admin\ for Oracle 8i) - test it using tnsping.exe
  6. run Control Panel-->ODBC to set up a data source for the downloaded ODBC driver

    go to 'System DSN' tab and press the 'Add...' button
    select the 'MapInfo Win32 Oracle7 Driver3.10' driver and set up the information under the 'General' tab with your database information (for 'Data Source Name:' use 'MapInfo Win32 Oracle7')
    under the 'Advanced' tab be sure to check 'Enable Scrollable Cursors'
  7. run following scripts (included in zip file) from SQL*Plus for features the attached MapBasic application uses

    @my_sdo_admin.sql (logged in as mdsys)
    @spatial_mi.sql (logged in as user whose schema will contain spatial tables)
  8. run d:\mapinfo\tools\miodbccat.mbx from MapInfo and then go to go to Tools -> ODBC Catalog -> ODBC Catalog... abd click on Create Catalog button (creates MapInfo/MapInfo user and MAPINFO_MAPCATALOG table)

Features
(All Under 'Oracle' Menu in MapInfo)


for questions/comments: kgmahoney@yahoo.com   © 2001-2017 kmahoney.com