网络编程 | 站长之家 | 网页制作 | 图形图象 | 操作系统 | 冲浪宝典 | 软件教学 | 网络办公 | 邮件系统 | 网络安全 | 认证考试 | 系统进程
Firefox | IE | Maxthon | 迅雷 | 电驴 | BitComet | FlashGet | QQ | QQ空间 | Vista | 输入法 | Ghost | Word | Excel | wps | Powerpoint
asp | .net | php | jsp | Sql | c# | Ajax | xml | Dreamweaver | FrontPages | Javascript | css | photoshop | fireworks | Flash | Cad | Discuz!
当前位置 > 网站建设学院 > 网络编程 > 数据库 > Oracle教程
Tag:注入,存储过程,分页,安全,优化,xmlhttp,fso,jmail,application,session,防盗链,stream,无组件,组件,md5,乱码,缓存,加密,验证码,算法,cookies,ubb,正则表达式,水印,索引,日志,压缩,base64,url重写,上传,控件,Web.config,JDBC,函数,内存,PDF,迁移,结构,破解,编译,配置,进程,分词,IIS,Apache,Tomcat,phpmyadmin,Gzip,触发器,socket
数据库:数据库教程,数据库技巧,Oracle教程,MySQL教程,Sybase教程,Access教程,DB2教程,数据库安全,数据库文摘
本月文章推荐
.Oracle 9i轻松取得建表和索引的D.
.如何创建SQL Server 2000 故障转.
.ORACLE数据库体系框架介绍及SQL语.
.Oracle数据库字符集问题解决方案.
.Oracle新的Linux应用环境测试标准.
.zSeriesLinux可以运行在哪个版本.
.Oracle9i初始化参数中文说明(2).
.当“菜鸟”遭遇 Linux.
.怎样在Oracle中创建,维护图形大.
.如何制作grub启动软盘.
.PB如何连接Oracle数据库.
.PHP连ORACLE的类文件.
.PLSQL单行函数和组函数详解.
.Linux下的压缩/解压缩工具.
.使用索引的视可以增加程序的性能.
.优化Oracle数据 获取角斗士般的性.
.Oracle数据库中Undo数据段的作用.
.Oracle 10g跨越Resetlogs时间点进.
.如何移动控制文件到新的目录中?.
.oracle 中的数据结构.

部署MapViewer到Oracle Application Server上的步骤

发表日期:2008-2-9


  Installation InstrUCtions
Oracle, MapViewer and Geospatial data
  • Download Oracle and MapViewer from www.oracle.com
    1. the database software: oracle10g rel2 standard edition 10.2.0.10 for Microsoft Windows 'a'ena-7
    2. The application server MapViewer: MapViewer 10.1.2.0.2 kit and Quickstart
     
  • Install the oracle software and create the database
    • double click on the setup
    • Login to DB: installed in C:\oracle\product\10.2.0\mapdb
      (DB installed on machine with static IP preferably)
    • login as SYS and conect as SYSDBA
    • Name: mapdb (this is the sid)
    • Passwd: ???  
    • Create a DB
      • Administration tab
      • Tablespaces link
      • Create button
      • Object: maptablespace (name the tablespace)
      • Add button
      • mapdata (file on disk. created!)
      • Reuse same file 4G
      • Automatic extend 500MB
    • Create a user in DB mapsdb
      • Under "Users & Privileges" select:
      • Users [link] -> mapuser (<- this is the user name)
      • pass l
      • Default Tablespace: maptablespace (from above!)
      • Temporary Tablespace: temp
      • Roles link
      • Edit List link
      • Move "DBA" to the right (this user is dba)
     
  • Connecting to oracle:
    • Admin user name: SYS
    • Connect as SYSDBA
      • To login to admin oracle: http://localhost:1158/em Username: SYS, PassWord: ???, Connect As: SYSDBA
      • To login to mapsdb (our db) http://localhost:1158/em Username: mapuser, Password: l, Connect as: Normal
       
      • the following I don't use:
      • The iSQL*plus URL is: http://localhost:5560/isqlplus
      • The iSQL*plus DBA URL is: http://localhost:5560/isqlplus/dba
     
  • MapViewer Installation
    • unzip MapViewer QS (read readme file!! and fix the start.bat)
    • It is installed!
    • To start MapViewer execute the start.bat in the Directory where unziped
    • To login to MapViewer: http://localhost:8888
    • To create a password in Mapviewer, read its readme file
       
    • Configure MapViewer to use the right DB all the time.
      • edit the config file in MAPVIEWER_INSTALLATION\oc4j\j2ee\home\applications\mapviewer\web\WEB-INF\conf
      • near the end of the file (see the tags there) place the following:
        Note: map_data_source is the name that your app and Mapviewer use to refer to the db
        Another note: in the passwd field place a ! so that mapviewer will encrypt the passwd next time MapViewer comes up.
        Another note: below the map_data_source is simply a name such as my_dataSource.
        <map_data_source name="maptablespace" jdbc_host="localhost" jdbc_sid="mapdb" jdbc_port="1521" jdbc_user="mapuser" jdbc_password="!l" jdbc_mode="thin" number_of_mappers="3" />
       
    • Import Data
      some additional notes from Farshad
      • esri.com search for Census 200 tuger (census)
        the exacl URL where we downloaded the files is: http://arcdata.esri.com/data/tiger2000/tiger_download.cfm
      • Use second pull down menu to select and download (GEORGIA).
      • County 2000
      • Line Features-Roads
      • Water Polygons
      • see cd for some of the files we have.  
      • Java USER APPLICATIONS **AND** IMPORTER JAVA PROGRAM NEED THE FOLLOWING jars:
        • From: \oc4j\j2ee\home\applications\mapviewer\web\WEB-INF\lib
          mvclient.jar (size 134K)
        • From: C:\oracle\product\10.2.0\db_1\md\lib
          sdoapi.jar (size 14K)
        • You need a patched sdoutl.jar. To get this go to:
          • http://www.oracle.com/technology/software/products/spatial/index.Html
          • dounload the Java Kit for the "Oracle Java Shapefile Converter"
          • In this page there is also a readme file.
          • The kit contains the PATCHED sdoutl.jar that you need to:
            • use to compile/execute your app
            • use to compile/execute the converter.
            • it also contains a sample converter file to convert Shape files (from ESRI) into SPATIAL files (oracle format).
        • From: C:\oracle\product\10.2.0\db_1\jdbc\lib (where I installed oracle)
          ojdbc14.jar (size 1501K)

       
    • Create Indexes in the database that the Mapviewer needs:
      Note do this after you import the data in your db.
      • Log in to mapdb.
      • "Tables"
      • in "Object Name" enter GA_Counties (see the importer file on how it names this)
      • Actions -> create index
      • provide a name: COUNTY_GEOM_IDX
      • Click OK
      • Go back and click on the radio "Create index on one or more non-spatial columns"
      • County ....... value 1

上一篇:Oracle ADF框架介绍 人气:742
下一篇:配置shark与oracle的连接 人气:1004
浏览全部Oracle教程的内容 Dreamweaver插件下载 网页广告代码 祝你圣诞节快乐 2009年新年快乐