2008年12月24日星期三

GIS Portal Toolkit (GPT) 9.3 安装配置 - 3.配置数据库

GPT9.3支持Oracle、SQL Server和PostgreSQL,我这里使用的是Oracle 10g sp4。

首先,新建GPT的表空间和用户:
通过sqlplus进入SQL命令行
执行:
create tablespace GPT93 datafile '/opt/oracle/app/oracle/oradata/GPT93.dbf' size 500M AUTOEXTEND ON;
create user gpt93 identified by gpt93pwd default tablespace GPT93 temporary tablespace temp;
commit;
quit;

然后,运行一下几个sql脚本来创建schema:
通过sqlplus进入SQL命令行
我这里使用的是Oracle,脚本位于安装盘的“Database Scripts/Oracle”目录下
首先执行grants_oracle.sql:
@grants_oracle.sql sys syspwd gpt93 sde;
然后执行schema_oracle.sql:
@schema_oracle.sql gpt93 gpt93pwd;

再然后,用sde用户登录,并执行一下命令:
sdetable -o register -t gpt_admin -C none -i 5151 -s machineName -u gpt93 -p gpt93pwd

下面要配置数据库支持XML列
详细查看:http://webhelp.esri.com/arcgisdesktop/9.3/index.cfm?TopicName=Configuring_a_database_to_support_XML_columns

最后可以使用AcrCatalog来测试上述的配置是否正确:
新建一个Spatial Database Connection,server:服务器ip,service:5151,username:gpt93,password:gpt93pwd

没有评论: