Arcgis Access Oracle Spatial data __oracle

Source: Internet
Author: User

1. Execute the following SQL command via Sqlplus

Sql>colcomp_name format A10;

Sql>selectcomp_name,status from Dba_registry where comp_name= ' Spatial ';

If the result type is the following, the installation is successful (the status is valid or loaded is OK)

2. The version of spatial installation can be checked by the following command

sql> Select Sdo_versionfrom Dual;

3. General process Shpfile Import oraclespatial

² using the Shp2sdo.exe and Oracle built-in tools (Sqlplus and Sqlldr), download the SHP2SDO tool address as follows:

Http://www.oracle.com/technology/software/products/spatial/files/shp2sdo.zip

Run Shp2sdo.exe

4. According to the prompt input, mainly the first two, to import the Shpfile file location and export file location, generate. sql,. ctl, and. Dat three files, and the resulting files and Shp2sdo.exe are in the same directory.

5. Execute the. sql file generated by the step through SQL Plus, the following command for reference

6. Upload data to the space table created in the previous step, the following command for reference

Sqlldruserid=prod/prod control=c: \city.ctl data=c: \city.dat

7. Finally create the space index, the following command for reference

CreateIndex idx_tablename on TableName (geometry_cloumname) Indextype Ismdsys.spatial_index;

8. Finally, the query function provided by arcmap10.0 can see the imported spatial data

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.