修改完毕环境变量,使之生效,然后测试一下是否生效
[arcsde@localhost ~]$ vi .bash_profile
[arcsde@localhost ~]$ . ./.bash_profile
[arcsde@localhost ~]$ echo $SDEHOME
/home/arcsde/sdeexe100
[arcsde@localhost ~]$ cd $SDEHOME
[arcsde@localhost sdeexe100]$ pwd
/home/arcsde/sdeexe100
[arcsde@localhost sdeexe100]$
修改配置文件参数,在ArcSDE用户下修改$SDEHOME/etc/services.sde文件添加实例名和端口号
[arcsde@localhost etc]$ vi services.sde
[arcsde@localhost etc]$ more services.sde
/* $Id: services.sde,v 1.2 1999/01/22 01:01:35 donna Exp $ */
#
# ESRI SDE Remote Protocol
# Note: uncomment the line below to use ESRI's default port
#
esri_sde 5151/tcp
在Root用户下/etc/services文件一样添加
[root@localhost ~]# vi /etc/services
执行sdesetup命令出错
[arcsde@localhost bin]$ sdesetup -o
-bash: sdesetup command not found
查看一下sde软件的安装目录
[arcsde@localhost sdeexe100]$ ll
总计 20
drwxr-xr-x 2 root root 4096 02-22 13:34 bin
drwxr-xr-x 2 root root 4096 02-22 13:48 etc
drwxr-xr-x 2 root root 4096 02-22 13:34 lib
drwxr-xr-x 4 10018 kmem 4096 2010-01-09 locale
drwxr-xr-x 3 root root 4096 02-22 13:34 tools
这目录应该为arcsde用户所属oinstall组,切换到root用户执行以下
[root@localhost ~]# chown -R arcsde:oinstall /home/arcsde
[root@localhost ~]# chmod -R 755 /home/arcsde
[root@localhost ~]# su - arcsde
[arcsde@localhost ~]$ cd $SDEHOME
[arcsde@localhost sdeexe100]$ ll
总计 20
drwxr-xr-x 2 arcsde oinstall 4096 02-22 13:34 bin
drwxr-xr-x 2 arcsde oinstall 4096 02-22 13:48 etc
drwxr-xr-x 2 arcsde oinstall 4096 02-22 13:34 lib
drwxr-xr-x 4 arcsde oinstall 4096 2010-01-09 locale
drwxr-xr-x 3 arcsde oinstall 4096 02-22 13:34 tools
创建SDE的Schema
[arcsde@localhost ~]$ sdesetup -o install -d Oracle11g -p sde
ESRI ArcSDE Server Setup Utility Wed Feb 22 14:37:22 2012
----------------------------------------------------------------
Install or update ArcSDE, GDB schema objects: Are you sure? (Y/N): y
Checking INSTALL privileges for geodatabase ...
Current user has privilege to install geodatabase instance.
Checking geodatabase XML datatype support...
Underlying RDBMS database instance supports XML data type.
Creating ArcSDE schema.....
Successfully created ArcSDE schema.
Installing St_Geometry ....
Successfully installed St_Geometry.
Creating geodatabase schema.....
Successfully created GDB schema.
Successfully installed ArcSDE components.
Refer SDEHOME\etc\sde_setup.log for more details.
更新相关的lic,注意lic文件的所属用户,所属组以及读写权限
[arcsde@localhost ~]$ ll
×Ü¼Æ 16
-rwxrwxr-x 1 arcsde oinstall 527 02-22 09:42 ArcGIS Server10.ecp
drwxrwxr-x 10 arcsde oinstall 4096 2010-05-15 Help
drwxr-xr-x 3 arcsde arcsde 4096 02-22 14:37 oradiag_arcsde
drwxrwxr-x 7 arcsde oinstall 4096 02-22 14:17 sdeexe100
[arcsde@localhost ~]$ sdesetup -o update_key -d oracle11g -l /home/arcsde/ArcGIS\ Server10.ecp -p sde
ESRI ArcSDE Server Setup Utility Wed Feb 22 14:41:41 2012
----------------------------------------------------------------
Successfully updated authorization key.
启动ArcSDE服务
[arcsde@localhost ~]$ sdemon -o start -p sde
Unable to get service name from '/home/arcsde/sdeexe100'.
Set service name to use default 'esri_sde'
-------------------------------------------------------
ArcSDE 10.0 for Oracle11g Build 685 Fri May 14 12:05:43 2010
-------------------------------------------------------
ST_Geometry Schema Owner: (SDE) Type Release: 1007
Instance initialized for ((sde)) . . .
Connected to instance . . .
DBMS Connection established...
RDBMS: "Oracle"
Instance Name: "esri_sde"
IOMGR Process ID (PID): 25017
ArcSDE Instance esri_sde started Wed Feb 22 14:43:12 2012
服务启动成功,使用ArcCatalog连接成功!