6.检查依赖项
[arcsde@localhost ~]$ cd $SDEHOME/bin
[arcsde@localhost bin]$ ldd sdesetup
看看依赖项是否都已安装:如果有类似libXm.so.3-> not found的提示,则安装对应的依赖项。
如果不检查直接执行sdesetup 命令时出现以下错误:sdesetup: error while loading shared libraries: libXm.so.3: cannot open shared object file: No such file or directory.
安装相关依赖项:yum install openmotif*后重新检查ldd sdesetup。可能还会提示缺少libg2c.so.0,本地yum源中没有libf2c这个rpm,单独下载,点击安装即可。下载地址为:
具体下载目录在 /2014年资料/4月/9日/Linux上安装ArcGIS 10_03安装ArcSDE 10
下载方法见 http://www.linuxidc.com/Linux/2013-07/87684.htm
执行setup安装还可能报以下错误:libclntsh.so.11.1 => not found。 原因是libclntsh.so.11.1位于Oracle的安装目录中,arcsde没有读取权限造成的,需将/home/oracle/app/oracle目录的读取权限开放给oinstall组(arcsde隶属该组)。
7.sde软件安装目录授权
执行sdesetup命令出错
[arcsde@localhost ~]$ cd $SDEHOME/bin
[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
8.创建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.
9.更新相关的lic,注意lic文件的所属用户,所属组以及读写权限
[arcsde@localhost ~]$ ll
-rwxrwxr-x 1 arcsde oinstall 527 02-22 09:42 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/Server10.ecp -p sde
ESRI ArcSDE Server Setup Utility Wed Feb 22 14:41:41 2012
----------------------------------------------------------------
Successfully updated authorization key.
10.启动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
服务启动成功!