linux 安装 ArcSDE10.1
2016-04-28 14:07
537 查看
实验仍未成功,步骤仅供参考。
1:首先检查一下在Linux操作系统下Oracle数据库是否能启动,是否能连通等
[oracle@localhost ~]$ sqlplus
SQL*Plus: Release 11.2.0.1.0 Production on Tue Mar 25 02:17:32 2014
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Enter user-name: sys as sysdba
Enter password:
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
创建操作系统级别的ArcSDE用户
[oracle@localhost ~]$ su root
Password:
[root@localhost oracle]# useradd -d /home/gis -G oinstall -m gis
[root@localhost oracle]# passwd gis
Changing password for user gis.
New password: (jhl123)
BAD PASSWORD: it is based on a dictionary word
BAD PASSWORD: is too simple
Retype new password:
passwd: all authentication tokens updated successfully.
[root@localhost oracle]# su gis
创建SDE的用户、表空间、赋予权限,查看一下相关的SQL文件
'/home/oracle/app/oradata/orcl/sde.dbf'保证该文件夹存在,系统不会自动创建该文件夹,确保Oracle用户对建立sde.dbf路径的文件夹有读写的权限
View Code
根据用户软件安装的位置以及Oracle软件安装的信息,添加sde用户的环境变量
[gis@localhost ~]$ vi .bash_profile
按i进行编辑,原有的PATH=$PATH:$HOME/bin export PATH行前加#注释。加入下面红色部分。
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
#PATH=$PATH:$HOME/bin
export ORACLE_BASE=/home/oracle/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1
export ORACLE_SID=orcl
export TNS_ADMIN=$ORACLE_HOME/network/admin
export SDEHOME=/home/gis/sdeexe101
export LD_LIBRARY_PATH=$SDEHOME/lib:/usr/lib:/lib:$ORACLE_HOME/lib
export PATH=$PATH:$HOME:$ORACLE_HOME/bin:$SDEHOME/bin
#export PATH
~
~ /home/oracle/app/oracle/product/11.2.0/dbhome_1/lib
~
~
输入:wq进行保存。
修改完毕环境变量,使之生效,然后测试一下是否生效
[gis@localhost ~]$ . ./.bash_profile
[gis@localhost ~]$ echo $SDEHOME
/home/gis/sdeexe101
[gis@localhost ~]$ cd $SDEHOME
[gis@localhost sdeexe101]$ pwd
/home/gis/sdeexe101
[gis@localhost sdeexe101]$
修改配置文件参数,在ArcSDE用户下修改$SDEHOME/etc/services.sde文件添加实例名和端口号
[gis@localhost ~]$ cd /home/gis/sdeexe101/etc
[gis@localhost etc]$ vi services.sde
按i进行编辑,把#esri_sde 5151/tcp这行前#去掉即可, 输入:wq保存
在Root用户下/etc/services文件一样添加
修改gis目录权限
[gis@localhost etc]$ su root
Password:
[root@localhost etc]# chown -R gis:oinstall /home/gis
[root@localhost etc]# chmod -R 755 /home/gis
[root@localhost etc]# su gis
[gis@localhost etc]$ cd $SDEHOME
[gis@localhost sdeexe101]$ ll
total 16
drwxr-xr-x. 2 gis oinstall 4096 Mar 25 19:10 bin
drwxr-xr-x. 2 gis oinstall 4096 Mar 25 19:29 etc
drwxr-xr-x. 2 gis oinstall 4096 Mar 25 19:10 lib
drwxr-xr-x. 4 gis oinstall 4096 May 20 2010 locale
sdesetup
[gis@localhost ~]$ sdesetup
ArcSDE 10.1 Setup
Setup Administration Utility
-----------------------------------------------------
Usage for sdesetup:
-?
-h
-o delete -d {ORACLE10G|ORACLE11G}
[-H <sde_directory>] [-u <DB_Admin_user>] [-p <DB_Admin_password>]
[-i <master_geodatabase_service>[:<user_schema>]] [-N] [q]
-o list -d {ORACLE10G|ORACLE11G|SQLSERVER|DB2|DB2ZOS|INFORMIX|POSTGRESQL}
[-H <sde_directory>] [-u <DB_Admin_user>] [-p <DB_Admin_password>]
[-D <database>] [-s <datasource>]
[-i <master_geodatabase_service>[:<user_schema>]] [-q]
-o update_key
-d {ORACLE10G|ORACLE11G|SQLSERVER| DB2|DB2ZOS|INFORMIX|POSTGRESQL}
-l <key> [-u <DB_Admin_user>] [-p <DB_Admin_password>]
[-H <sde_directory>] [-D <database>] [-s <datasource>] [-N]
[-i <master_geodatabase_service>[:<user_schema>]] [-q]
-o install_st_raster
-d {ORACLE10G|ORACLE11G|SQLSERVER|POSTGRESQL}
[-H <sde_directory>] [-u <DB_Admin_user>] [-p <DB_Admin_password>]
[-D <database>] [-s <datasource>] [-N] [-l <key>] [-q]
创建SDE的Schema
[gis@localhost lib]$ sdesetup -o install_st_raster -d oracle11g -p sde
ESRI ArcSDE Server Setup Utility Tue Mar 25 22:59:38 2014
----------------------------------------------------------------
Install or update ST_RASTER schema objects: Are you sure? (Y/N): y
Creating ST_RASTER schema...
Successfully created ST_RASTER schema.
Successfully installed ArcSDE components.
Refer SDEHOME\etc\sde_setup.log for more details.
估计会遇到的错误类型:Error: Underlying DBMS error (-51).
这个问题一般是数据库权限问题,将以下sql语句保存为updatesde.sql执行即可
grant CREATE SESSION to sde;
grant CREATE TABLE to sde;
grant CREATE PROCEDURE to sde;
grant CREATE SEQUENCE to sde;
grant CREATE TRIGGER to sde;
grant CREATE TYPE to sde;
grant CREATE LIBRARY to sde;
grant CREATE PUBLIC SYNONYM to sde;
grant CREATE OPERATOR to sde;
grant CREATE INDEXTYPE to sde;
grant DROP PUBLIC SYNONYM to sde;
grant UNLIMITED TABLESPACE to sde;
grant CREATE VIEW to sde;
prompt * SELECT ANY TABLE is required for compressing the database
prompt * This privilege needs to be granted whenever a compress is run.
grant SELECT ANY TABLE to sde;
prompt * ADMINISTER DATABASE TRIGGER can be revoked after install
grant ADMINISTER DATABASE TRIGGER to sde;
prompt * * * * * * * * * * *
prompt * ArcSDE UPGRADE *
prompt * * * * * * * * * * *
prompt * If upgrading please remove rem from each grant.
prompt * Granting the required privileges to the sde user.
REM grant ADMINISTER DATABASE TRIGGER to sde;
REM grant SELECT ANY TABLE to sde;
REM grant SELECT ANY SEQUENCE to sde;
REM grant EXECUTE ANY PROCEDURE to sde;
REM grant ANALYZE ANY to sde;
REM grant ALTER ANY INDEX to sde;
REM grant ALTER ANY TABLE to sde;
REM grant CREATE ANY SEQUENCE to sde;
REM grant CREATE ANY TRIGGER to sde;
REM grant CREATE ANY INDEX to sde;
REM grant CREATE ANY PROCEDURE to sde;
REM grant DROP ANY INDEX to sde;
REM grant DROP ANY SEQUENCE to sde;
REM grant DROP ANY TABLE to sde;
REM grant DROP ANY VIEW to sde;
REM grant DROP ANY PROCEDURE to sde;
更新相关的lic,注意lic文件的所属用户,所属组以及读写权限
[gis@localhost ~]$ sdesetup -o update_key -d oracle11g -l /opt/sde/sde.ecp -p sde
ESRI ArcSDE Server Setup Utility Wed Mar 26 02:37:39 2014
----------------------------------------------------------------
Error: DBMS table not found (-37).
Error upgrading authorization key.
出错,需要在oracle用户下执行
grant execute on dbms_pipe to public;
grant execute on dbms_lock to public;
[gis@localhost ~]$ su oracle
Password:
[oracle@localhost gis]$ sqlplus
SQL*Plus: Release 11.2.0.1.0 Production on Wed Mar 26 19:36:17 2014
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Enter user-name: sys as sysdba
Enter password:
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> grant execute on dbms_pipe to public;
grant execute on dbms_lock to public;
Grant succeeded.
SQL>
Grant succeeded.
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
[oracle@localhost gis]$ su gis
Password:
[gis@localhost ~]$ sdesetup -o update_key -d oracle11g -l /opt/sde/sde.ecp -p sde
sdesetup: error while loading shared libraries: libsdesetup.so: cannot open shared object file: No such file or directory
再次出错。
启动ArcSDE服务
[gis@localhost ~]$ sdemon -o start -p sde
-------------------------------------------------------
ArcSDE 10.1 for Oracle11g Build 679 Thu Apr 5 11:43:21 2012
-------------------------------------------------------
ST_Geometry Schema Owner: () Type Release: 0
Instance initialized for ((sde)) . . .
Connected to instance . . .
Previous SDE Server Release 0.0.0 is not compatible with the current Release 10.1.0.
Could not start ArcSDE -- Check Network, $SDEHOME disk, DBMS settings and dbinit.sde.
补充:如果要设置随着机器自动启动,那么创建sde.sh文件,加入下面的内容:
然后:
chmod 755 sde.sh
sudo cp sde.sh /etc/init.d/
sudo update-rc.d sde.sh defaults 99
就可以了。
1:首先检查一下在Linux操作系统下Oracle数据库是否能启动,是否能连通等
[oracle@localhost ~]$ sqlplus
SQL*Plus: Release 11.2.0.1.0 Production on Tue Mar 25 02:17:32 2014
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Enter user-name: sys as sysdba
Enter password:
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
创建操作系统级别的ArcSDE用户
[oracle@localhost ~]$ su root
Password:
[root@localhost oracle]# useradd -d /home/gis -G oinstall -m gis
[root@localhost oracle]# passwd gis
Changing password for user gis.
New password: (jhl123)
BAD PASSWORD: it is based on a dictionary word
BAD PASSWORD: is too simple
Retype new password:
passwd: all authentication tokens updated successfully.
[root@localhost oracle]# su gis
创建SDE的用户、表空间、赋予权限,查看一下相关的SQL文件
'/home/oracle/app/oradata/orcl/sde.dbf'保证该文件夹存在,系统不会自动创建该文件夹,确保Oracle用户对建立sde.dbf路径的文件夹有读写的权限
sdeexe101/bin/giomgr sdeexe101/bin/gsrvr sdeexe101/bin/sdemon sdeexe101/bin/sderemote sdeexe101/etc/dbinit.sde sdeexe101/etc/dbtune.sde sdeexe101/etc/services.sde sdeexe101/lib/libicudata.so sdeexe101/lib/libicudata.so.44 sdeexe101/lib/libicudata.so.44.2 sdeexe101/lib/libicuuc.so sdeexe101/lib/libicuuc.so.44 sdeexe101/lib/libicuuc.so.44.2 sdeexe101/lib/libicui18n.so sdeexe101/lib/libicui18n.so.44 sdeexe101/lib/libicui18n.so.44.2 sdeexe101/lib/libxerces-c.so sdeexe101/lib/libxerces-c-3.1.so sdeexe101/lib/libtiff.so sdeexe101/lib/libpe.so sdeexe101/lib/libsg.so sdeexe101/lib/libsde.so sdeexe101/lib/libsdeora11gsrvr101.so sdeexe101/lib/libgsrvrora11g101.so Documentation/ Documentation/Admin_Cmd_Ref/ Documentation/Admin_Cmd_Ref/admincmdref.htm Documentation/Admin_Cmd_Ref/Support_files/ Documentation/Admin_Cmd_Ref/Support_files/admincmd94.log Documentation/Admin_Cmd_Ref/Support_files/admincmdref.htm Documentation/Admin_Cmd_Ref/Support_files/admincmdref_csh.htm Documentation/Admin_Cmd_Ref/Support_files/admincmdref_rhc.htm Documentation/Admin_Cmd_Ref/Support_files/connections.htm Documentation/Admin_Cmd_Ref/Support_files/cshdat_robohelp.htm Documentation/Admin_Cmd_Ref/Support_files/cshdat_webhelp.htm Documentation/Admin_Cmd_Ref/Support_files/ehelp.xml Documentation/Admin_Cmd_Ref/Support_files/ehlpdhtm.js Documentation/Admin_Cmd_Ref/Support_files/envvar.htm Documentation/Admin_Cmd_Ref/Support_files/help.css Documentation/Admin_Cmd_Ref/Support_files/help_ns.css Documentation/Admin_Cmd_Ref/Support_files/robohhre.lng Documentation/Admin_Cmd_Ref/Support_files/syntax.htm Documentation/Admin_Cmd_Ref/Support_files/webhelp.cab Documentation/Admin_Cmd_Ref/Support_files/webhelp.jar Documentation/Admin_Cmd_Ref/Support_files/welcome.htm Documentation/Admin_Cmd_Ref/Support_files/whcshdata.htm Documentation/Admin_Cmd_Ref/Support_files/whcsh_home.htm Documentation/Admin_Cmd_Ref/Support_files/whestart.ico Documentation/Admin_Cmd_Ref/Support_files/whfbody.htm Documentation/Admin_Cmd_Ref/Support_files/whfdhtml.htm Documentation/Admin_Cmd_Ref/Support_files/whfform.htm Documentation/Admin_Cmd_Ref/Support_files/whfhost.js Documentation/Admin_Cmd_Ref/Support_files/whform.js Documentation/Admin_Cmd_Ref/Support_files/whframes.js Documentation/Admin_Cmd_Ref/Support_files/whgbody.htm Documentation/Admin_Cmd_Ref/Support_files/whgdef.htm Documentation/Admin_Cmd_Ref/Support_files/whgdhtml.htm Documentation/Admin_Cmd_Ref/Support_files/whghost.js Documentation/Admin_Cmd_Ref/Support_files/whhost.js Documentation/Admin_Cmd_Ref/Support_files/whibody.htm Documentation/Admin_Cmd_Ref/Support_files/whidhtml.htm Documentation/Admin_Cmd_Ref/Support_files/whiform.htm Documentation/Admin_Cmd_Ref/Support_files/whihost.js Documentation/Admin_Cmd_Ref/Support_files/whlang.js Documentation/Admin_Cmd_Ref/Support_files/whmozemu.js Documentation/Admin_Cmd_Ref/Support_files/whmsg.js Documentation/Admin_Cmd_Ref/Support_files/whnjs.htm Documentation/Admin_Cmd_Ref/Support_files/whphost.js Documentation/Admin_Cmd_Ref/Support_files/whproj.htm Documentation/Admin_Cmd_Ref/Support_files/whproj.js Documentation/Admin_Cmd_Ref/Support_files/whproj.xml Documentation/Admin_Cmd_Ref/Support_files/whproxy.js Documentation/Admin_Cmd_Ref/Support_files/whres.xml Documentation/Admin_Cmd_Ref/Support_files/whrstart.ico Documentation/Admin_Cmd_Ref/Support_files/whskin_banner.htm Documentation/Admin_Cmd_Ref/Support_files/whskin_blank.htm Documentation/Admin_Cmd_Ref/Support_files/whskin_frmset01.htm Documentation/Admin_Cmd_Ref/Support_files/whskin_frmset010.htm Documentation/Admin_Cmd_Ref/Support_files/whskin_homepage.htm Documentation/Admin_Cmd_Ref/Support_files/whskin_info.htm Documentation/Admin_Cmd_Ref/Support_files/whskin_mbars.htm Documentation/Admin_Cmd_Ref/Support_files/whskin_papplet.htm Documentation/Admin_Cmd_Ref/Support_files/whskin_pdhtml.htm Documentation/Admin_Cmd_Ref/Support_files/whskin_pickup.htm Documentation/Admin_Cmd_Ref/Support_files/whskin_plist.htm Documentation/Admin_Cmd_Ref/Support_files/whskin_tbars.htm Documentation/Admin_Cmd_Ref/Support_files/whskin_tw.htm Documentation/Admin_Cmd_Ref/Support_files/whstart.ico Documentation/Admin_Cmd_Ref/Support_files/whstart.js Documentation/Admin_Cmd_Ref/Support_files/whstub.js Documentation/Admin_Cmd_Ref/Support_files/whst_topics.xml Documentation/Admin_Cmd_Ref/Support_files/whtbar.js Documentation/Admin_Cmd_Ref/Support_files/whtdhtml.htm Documentation/Admin_Cmd_Ref/Support_files/whthost.js Documentation/Admin_Cmd_Ref/Support_files/whtopic.js Documentation/Admin_Cmd_Ref/Support_files/wht_abge.jpg Documentation/Admin_Cmd_Ref/Support_files/wht_abgi.jpg Documentation/Admin_Cmd_Ref/Support_files/wht_abgw.jpg Documentation/Admin_Cmd_Ref/Support_files/wht_abte.jpg Documentation/Admin_Cmd_Ref/Support_files/wht_abti.jpg Documentation/Admin_Cmd_Ref/Support_files/wht_abtw.jpg Documentation/Admin_Cmd_Ref/Support_files/wht_fts_h.gif Documentation/Admin_Cmd_Ref/Support_files/wht_fts_n.gif Documentation/Admin_Cmd_Ref/Support_files/wht_glo_h.gif Documentation/Admin_Cmd_Ref/Support_files/wht_glo_n.gif Documentation/Admin_Cmd_Ref/Support_files/wht_go.gif Documentation/Admin_Cmd_Ref/Support_files/wht_hide.gif Documentation/Admin_Cmd_Ref/Support_files/wht_idx_h.gif Documentation/Admin_Cmd_Ref/Support_files/wht_idx_n.gif Documentation/Admin_Cmd_Ref/Support_files/wht_logo1.gif Documentation/Admin_Cmd_Ref/Support_files/wht_logo2.gif Documentation/Admin_Cmd_Ref/Support_files/wht_next.gif Documentation/Admin_Cmd_Ref/Support_files/wht_next_g.gif Documentation/Admin_Cmd_Ref/Support_files/wht_prev.gif Documentation/Admin_Cmd_Ref/Support_files/wht_prev_g.gif Documentation/Admin_Cmd_Ref/Support_files/wht_spac.gif Documentation/Admin_Cmd_Ref/Support_files/wht_sync.gif Documentation/Admin_Cmd_Ref/Support_files/wht_tab0.gif Documentation/Admin_Cmd_Ref/Support_files/wht_tab1.gif Documentation/Admin_Cmd_Ref/Support_files/wht_tab2.gif Documentation/Admin_Cmd_Ref/Support_files/wht_tab3.gif Documentation/Admin_Cmd_Ref/Support_files/wht_tab4.gif Documentation/Admin_Cmd_Ref/Support_files/wht_tab5.gif Documentation/Admin_Cmd_Ref/Support_files/wht_tab6.gif Documentation/Admin_Cmd_Ref/Support_files/wht_tab7.gif Documentation/Admin_Cmd_Ref/Support_files/wht_tab8.gif Documentation/Admin_Cmd_Ref/Support_files/wht_toc1.gif Documentation/Admin_Cmd_Ref/Support_files/wht_toc2.gif Documentation/Admin_Cmd_Ref/Support_files/wht_toc3.gif Documentation/Admin_Cmd_Ref/Support_files/wht_toc4.gif Documentation/Admin_Cmd_Ref/Support_files/wht_toc_h.gif Documentation/Admin_Cmd_Ref/Support_files/wht_toc_n.gif Documentation/Admin_Cmd_Ref/Support_files/wht_ws.gif Documentation/Admin_Cmd_Ref/Support_files/wht_ws_g.gif Documentation/Admin_Cmd_Ref/Support_files/whutils.js Documentation/Admin_Cmd_Ref/Support_files/whver.js Documentation/Admin_Cmd_Ref/Support_files/datamgmt/ Documentation/Admin_Cmd_Ref/Support_files/datamgmt/cov2sde.htm Documentation/Admin_Cmd_Ref/Support_files/datamgmt/sde2cov.htm Documentation/Admin_Cmd_Ref/Support_files/datamgmt/sde2shp.htm Documentation/Admin_Cmd_Ref/Support_files/datamgmt/sde2tbl.htm Documentation/Admin_Cmd_Ref/Support_files/datamgmt/sdeexport.htm Documentation/Admin_Cmd_Ref/Support_files/datamgmt/sdegroup.htm Documentation/Admin_Cmd_Ref/Support_files/datamgmt/sdeimport.htm Documentation/Admin_Cmd_Ref/Support_files/datamgmt/sdelayer.htm Documentation/Admin_Cmd_Ref/Support_files/datamgmt/sderaster.htm Documentation/Admin_Cmd_Ref/Support_files/datamgmt/sdetable.htm Documentation/Admin_Cmd_Ref/Support_files/datamgmt/sdeversion.htm Documentation/Admin_Cmd_Ref/Support_files/datamgmt/sdexinfo.htm Documentation/Admin_Cmd_Ref/Support_files/datamgmt/sdexml.htm Documentation/Admin_Cmd_Ref/Support_files/datamgmt/shp2sde.htm Documentation/Admin_Cmd_Ref/Support_files/datamgmt/shpinfo.htm Documentation/Admin_Cmd_Ref/Support_files/datamgmt/tbl2sde.htm Documentation/Admin_Cmd_Ref/Support_files/datamgmt/images/ Documentation/Admin_Cmd_Ref/Support_files/datamgmt/images/arrow_bullet.jpg Documentation/Admin_Cmd_Ref/Support_files/datamgmt/images/header.jpg Documentation/Admin_Cmd_Ref/Support_files/datamgmt/images/sparse_grid.jpg Documentation/Admin_Cmd_Ref/Support_files/images/ Documentation/Admin_Cmd_Ref/Support_files/images/arrow_bullet.jpg Documentation/Admin_Cmd_Ref/Support_files/images/FullExtent16.jpg Documentation/Admin_Cmd_Ref/Support_files/images/header.jpg Documentation/Admin_Cmd_Ref/Support_files/serveradmin/ Documentation/Admin_Cmd_Ref/Support_files/serveradmin/sdeconfig.htm Documentation/Admin_Cmd_Ref/Support_files/serveradmin/sdedbtune.htm Documentation/Admin_Cmd_Ref/Support_files/serveradmin/sdegdbrepair.htm Documentation/Admin_Cmd_Ref/Support_files/serveradmin/sdelog.htm Documentation/Admin_Cmd_Ref/Support_files/serveradmin/sdemon.htm Documentation/Admin_Cmd_Ref/Support_files/serveradmin/sdeservice.htm Documentation/Admin_Cmd_Ref/Support_files/serveradmin/sdesetup.htm Documentation/Admin_Cmd_Ref/Support_files/serveradmin/images/ Documentation/Admin_Cmd_Ref/Support_files/serveradmin/images/header.jpg Documentation/Admin_Cmd_Ref/Support_files/whdata/ Documentation/Admin_Cmd_Ref/Support_files/whdata/whftdata.js Documentation/Admin_Cmd_Ref/Support_files/whdata/whftdata0.htm Documentation/Admin_Cmd_Ref/Support_files/whdata/whfts.htm Documentation/Admin_Cmd_Ref/Support_files/whdata/whfts.js Documentation/Admin_Cmd_Ref/Support_files/whdata/whfwdata.js Documentation/Admin_Cmd_Ref/Support_files/whdata/whfwdata0.htm Documentation/Admin_Cmd_Ref/Support_files/whdata/whgdata.js Documentation/Admin_Cmd_Ref/Support_files/whdata/whglo.htm Documentation/Admin_Cmd_Ref/Support_files/whdata/whglo.js Documentation/Admin_Cmd_Ref/Support_files/whdata/whidata.js Documentation/Admin_Cmd_Ref/Support_files/whdata/whidx.htm Documentation/Admin_Cmd_Ref/Support_files/whdata/whidx.js Documentation/Admin_Cmd_Ref/Support_files/whdata/whtdata.js Documentation/Admin_Cmd_Ref/Support_files/whdata/whtdata0.htm Documentation/Admin_Cmd_Ref/Support_files/whdata/whtoc.htm Documentation/Admin_Cmd_Ref/Support_files/whdata/whtoc.js Documentation/Admin_Cmd_Ref/Support_files/whgdata/ Documentation/Admin_Cmd_Ref/Support_files/whgdata/whexpbar.gif Documentation/Admin_Cmd_Ref/Support_files/whgdata/whlstf0.htm Documentation/Admin_Cmd_Ref/Support_files/whgdata/whlstf1.htm Documentation/Admin_Cmd_Ref/Support_files/whgdata/whlstf10.htm Documentation/Admin_Cmd_Ref/Support_files/whgdata/whlstf11.htm Documentation/Admin_Cmd_Ref/Support_files/whgdata/whlstf12.htm Documentation/Admin_Cmd_Ref/Support_files/whgdata/whlstf13.htm Documentation/Admin_Cmd_Ref/Support_files/whgdata/whlstf14.htm Documentation/Admin_Cmd_Ref/Support_files/whgdata/whlstf15.htm Documentation/Admin_Cmd_Ref/Support_files/whgdata/whlstf16.htm Documentation/Admin_Cmd_Ref/Support_files/whgdata/whlstf17.htm Documentation/Admin_Cmd_Ref/Support_files/whgdata/whlstf18.htm Documentation/Admin_Cmd_Ref/Support_files/whgdata/whlstf19.htm Documentation/Admin_Cmd_Ref/Support_files/whgdata/whlstf2.htm Documentation/Admin_Cmd_Ref/Support_files/whgdata/whlstf20.htm Documentation/Admin_Cmd_Ref/Support_files/whgdata/whlstf21.htm Documentation/Admin_Cmd_Ref/Support_files/whgdata/whlstf22.htm Documentation/Admin_Cmd_Ref/Support_files/whgdata/whlstf23.htm Documentation/Admin_Cmd_Ref/Support_files/whgdata/whlstf24.htm Documentation/Admin_Cmd_Ref/Support_files/whgdata/whlstf3.htm Documentation/Admin_Cmd_Ref/Support_files/whgdata/whlstf4.htm Documentation/Admin_Cmd_Ref/Support_files/whgdata/whlstf5.htm Documentation/Admin_Cmd_Ref/Support_files/whgdata/whlstf6.htm Documentation/Admin_Cmd_Ref/Support_files/whgdata/whlstf7.htm Documentation/Admin_Cmd_Ref/Support_files/whgdata/whlstf8.htm Documentation/Admin_Cmd_Ref/Support_files/whgdata/whlstf9.htm Documentation/Admin_Cmd_Ref/Support_files/whgdata/whlstfl0.htm Documentation/Admin_Cmd_Ref/Support_files/whgdata/whlstfl1.htm Documentation/Admin_Cmd_Ref/Support_files/whgdata/whlstfl10.htm Documentation/Admin_Cmd_Ref/Support_files/whgdata/whlstfl11.htm Documentation/Admin_Cmd_Ref/Support_files/whgdata/whlstfl12.htm Documentation/Admin_Cmd_Ref/Support_files/whgdata/whlstfl13.htm Documentation/Admin_Cmd_Ref/Support_files/whgdata/whlstfl14.htm Documentation/Admin_Cmd_Ref/Support_files/whgdata/whlstfl15.htm Documentation/Admin_Cmd_Ref/Support_files/whgdata/whlstfl16.htm Documentation/Admin_Cmd_Ref/Support_files/whgdata/whlstfl17.htm Documentation/Admin_Cmd_Ref/Support_files/whgdata/whlstfl18.htm Documentation/Admin_Cmd_Ref/Support_files/whgdata/whlstfl19.htm Documentation/Admin_Cmd_Ref/Support_files/whgdata/whlstfl2.htm Documentation/Admin_Cmd_Ref/Support_files/whgdata/whlstfl20.htm Documentation/Admin_Cmd_Ref/Support_files/whgdata/whlstfl21.htm Documentation/Admin_Cmd_Ref/Support_files/whgdata/whlstfl22.htm Documentation/Admin_Cmd_Ref/Support_files/whgdata/whlstfl23.htm Documentation/Admin_Cmd_Ref/Support_files/whgdata/whlstfl24.htm Documentation/Admin_Cmd_Ref/Support_files/whgdata/whlstfl25.htm Documentation/Admin_Cmd_Ref/Support_files/whgdata/whlstfl26.htm Documentation/Admin_Cmd_Ref/Support_files/whgdata/whlstfl3.htm Documentation/Admin_Cmd_Ref/Support_files/whgdata/whlstfl4.htm Documentation/Admin_Cmd_Ref/Support_files/whgdata/whlstfl5.htm Documentation/Admin_Cmd_Ref/Support_files/whgdata/whlstfl6.htm Documentation/Admin_Cmd_Ref/Support_files/whgdata/whlstfl7.htm Documentation/Admin_Cmd_Ref/Support_files/whgdata/whlstfl8.htm Documentation/Admin_Cmd_Ref/Support_files/whgdata/whlstfl9.htm Documentation/Admin_Cmd_Ref/Support_files/whgdata/whlstg0.htm Documentation/Admin_Cmd_Ref/Support_files/whgdata/whlsti0.htm Documentation/Admin_Cmd_Ref/Support_files/whgdata/whlstt0.htm Documentation/Admin_Cmd_Ref/Support_files/whgdata/whlstt1.htm Documentation/Admin_Cmd_Ref/Support_files/whgdata/whlstt2.htm Documentation/Admin_Cmd_Ref/Support_files/whgdata/whnvf30.htm Documentation/Admin_Cmd_Ref/Support_files/whgdata/whnvf31.htm Documentation/Admin_Cmd_Ref/Support_files/whgdata/whnvf32.htm Documentation/Admin_Cmd_Ref/Support_files/whgdata/whnvf33.htm Documentation/Admin_Cmd_Ref/Support_files/whgdata/whnvl31.htm Documentation/Admin_Cmd_Ref/Support_files/whgdata/whnvl32.htm Documentation/Admin_Cmd_Ref/Support_files/whgdata/whnvl33.htm Documentation/Admin_Cmd_Ref/Support_files/whgdata/whnvp30.htm Documentation/Admin_Cmd_Ref/Support_files/whgdata/whnvp31.htm Documentation/Admin_Cmd_Ref/Support_files/whgdata/whnvp32.htm Documentation/Admin_Cmd_Ref/Support_files/whgdata/whnvp33.htm Documentation/Admin_Cmd_Ref/Support_files/whgdata/whnvt30.htm Documentation/Admin_Cmd_Ref/Support_files/whgdata/whnvt31.htm Documentation/Admin_Cmd_Ref/Support_files/whgdata/whnvt32.htm Documentation/Admin_Cmd_Ref/Support_files/whgdata/whnvt33.htm Documentation/Admin_Cmd_Ref/Support_files/whxdata/ Documentation/Admin_Cmd_Ref/Support_files/whxdata/whftdata0.xml Documentation/Admin_Cmd_Ref/Support_files/whxdata/whfts.xml Documentation/Admin_Cmd_Ref/Support_files/whxdata/whfwdata0.xml Documentation/Admin_Cmd_Ref/Support_files/whxdata/whglo.xml Documentation/Admin_Cmd_Ref/Support_files/whxdata/whidx.xml Documentation/Admin_Cmd_Ref/Support_files/whxdata/whtdata0.xml Documentation/Admin_Cmd_Ref/Support_files/whxdata/whtoc.xml sdeexe101/locale/ sdeexe101/locale/msg/ sdeexe101/locale/msg/default/ sdeexe101/locale/msg/default/error.msg sdeexe101/locale/codepage/ sdeexe101/locale/codepage/88591.txt sdeexe101/locale/codepage/88592.txt sdeexe101/locale/codepage/88593.txt sdeexe101/locale/codepage/88594.txt sdeexe101/locale/codepage/88595.txt sdeexe101/locale/codepage/88596.txt sdeexe101/locale/codepage/88597.txt sdeexe101/locale/codepage/88598.txt sdeexe101/locale/codepage/88599.txt sdeexe101/locale/codepage/885913.txt sdeexe101/locale/codepage/codepage.txt sdeexe101/locale/codepage/dbase.txt sdeexe101/locale/codepage/437.txt sdeexe101/locale/codepage/708.txt sdeexe101/locale/codepage/720.txt sdeexe101/locale/codepage/737.txt sdeexe101/locale/codepage/775.txt sdeexe101/locale/codepage/850.txt sdeexe101/locale/codepage/852.txt sdeexe101/locale/codepage/855.txt sdeexe101/locale/codepage/857.txt sdeexe101/locale/codepage/860.txt sdeexe101/locale/codepage/861.txt sdeexe101/locale/codepage/862.txt sdeexe101/locale/codepage/863.txt sdeexe101/locale/codepage/864.txt sdeexe101/locale/codepage/865.txt sdeexe101/locale/codepage/866.txt sdeexe101/locale/codepage/869.txt sdeexe101/locale/codepage/1250.txt sdeexe101/locale/codepage/1251.txt sdeexe101/locale/codepage/1252.txt sdeexe101/locale/codepage/1253.txt sdeexe101/locale/codepage/1254.txt sdeexe101/locale/codepage/1255.txt sdeexe101/locale/codepage/1256.txt sdeexe101/locale/codepage/1257.txt sdeexe101/locale/codepage/1258.txt sdeexe101/locale/codepage/885910.txt sdeexe101/locale/codepage/885915.txt sdeexe101/bin/sde2shp sdeexe101/bin/sde2tbl sdeexe101/bin/sdeconfig sdeexe101/bin/sdedbtune sdeexe101/bin/sdeexport sdeexe101/bin/sdegdbrepair sdeexe101/bin/sdegroup sdeexe101/bin/sdeimport sdeexe101/bin/sdelayer sdeexe101/bin/sdelog sdeexe101/bin/sdemon sdeexe101/bin/sderaster sdeexe101/bin/sdesetup sdeexe101/bin/sdetable sdeexe101/bin/sdeversion sdeexe101/bin/sdexinfo sdeexe101/bin/sdexml sdeexe101/bin/setup_st_geometry sdeexe101/bin/shp2sde sdeexe101/bin/shpinfo sdeexe101/bin/tbl2sde sdeexe101/etc/dbinit.sde sdeexe101/etc/dbtune.sde sdeexe101/etc/services.sde sdeexe101/etc/gcspcs.cref sdeexe101/lib/archive_util.sps sdeexe101/lib/archive_util.spb sdeexe101/lib/layer_stats_util.sps sdeexe101/lib/layer_stats_util.spb sdeexe101/lib/sde_util.sps sdeexe101/lib/sde_util.spb sdeexe101/lib/svr_config_util.sps sdeexe101/lib/version_util.sps sdeexe101/lib/svr_config_util.spb sdeexe101/lib/version_util.spb sdeexe101/lib/layers_util.sps sdeexe101/lib/layers_util.spb sdeexe101/lib/rastercolumns_util.sps sdeexe101/lib/rastercolumns_util.spb sdeexe101/lib/metadata_util.sps sdeexe101/lib/metadata_util.spb sdeexe101/lib/registry_util.sps sdeexe101/lib/registry_util.spb sdeexe101/lib/sref_util.sps sdeexe101/lib/sref_util.spb sdeexe101/lib/locator_util.sps sdeexe101/lib/locator_util.spb sdeexe101/lib/pinfo_util.sps sdeexe101/lib/pinfo_util.spb sdeexe101/lib/lock_util.sps sdeexe101/lib/lock_util.spb sdeexe101/lib/dbtune_util.sps sdeexe101/lib/dbtune_util.spb sdeexe101/lib/version_user_ddl.sps sdeexe101/lib/version_user_ddl.spb sdeexe101/lib/sdo_util.sps sdeexe101/lib/sdo_util.spb sdeexe101/lib/xml_util.sps sdeexe101/lib/xml_util.spb sdeexe101/lib/logfile_util.sps sdeexe101/lib/logfile_util.spb sdeexe101/lib/instances_util.sps sdeexe101/lib/instances_util.spb sdeexe101/lib/st_domain_methods.stb sdeexe101/lib/st_domain_methods_10g.stb sdeexe101/lib/st_domain_methods.sts sdeexe101/lib/st_domain_operators.spb sdeexe101/lib/st_domain_operators.sps sdeexe101/lib/st_domain_stats.stb sdeexe101/lib/st_domain_stats.sts sdeexe101/lib/st_geom_util.spb sdeexe101/lib/st_geom_util.sps sdeexe101/lib/st_geometry.stb sdeexe101/lib/st_geometry.sts sdeexe101/lib/keyset_util.sps sdeexe101/lib/keyset_util.spb sdeexe101/lib/st_geometry_shapelib_pkg.sps sdeexe101/lib/st_geometry_shapelib_pkg.spb sdeexe101/lib/spx_util.spb sdeexe101/lib/spx_util_10g.spb sdeexe101/lib/spx_util.sps sdeexe101/lib/spx_util_10g.sps sdeexe101/lib/st_geom_cols_util.spb sdeexe101/lib/st_geom_cols_util.sps sdeexe101/lib/st_geometry_operators.spb sdeexe101/lib/st_geometry_operators.sps sdeexe101/lib/st_geomfromtext.stb sdeexe101/lib/st_geomfromtext.sts sdeexe101/lib/st_linestring.stb sdeexe101/lib/st_linestring.sts sdeexe101/lib/st_multilinestring.stb sdeexe101/lib/st_multilinestring.sts sdeexe101/lib/st_multipoint.stb sdeexe101/lib/st_multipoint.sts sdeexe101/lib/st_multipolygon.stb sdeexe101/lib/st_multipolygon.sts sdeexe101/lib/st_point.stb sdeexe101/lib/st_point.sts sdeexe101/lib/st_polygon.stb sdeexe101/lib/st_polygon.sts sdeexe101/lib/st_relation_operators.spb sdeexe101/lib/st_relation_operators.sps sdeexe101/lib/st_spref_util.spb sdeexe101/lib/st_spref_util.sps sdeexe101/lib/st_type_user.spb sdeexe101/lib/st_type_user.sps sdeexe101/lib/st_type_util.spb sdeexe101/lib/st_type_util.sps sdeexe101/lib/st_cref_util.spb sdeexe101/lib/st_cref_util.sps sdeexe101/lib/st_curve.stb sdeexe101/lib/st_curve.sts sdeexe101/lib/st_geomcollection.stb sdeexe101/lib/st_geomcollection.sts sdeexe101/lib/st_linefromtext.stb sdeexe101/lib/st_linefromtext.sts sdeexe101/lib/st_mlinefromtext.stb sdeexe101/lib/st_mlinefromtext.sts sdeexe101/lib/st_mpointfromtext.stb sdeexe101/lib/st_mpointfromtext.sts sdeexe101/lib/st_mpolyfromtext.stb sdeexe101/lib/st_mpolyfromtext.sts sdeexe101/lib/st_multicurve.stb sdeexe101/lib/st_multicurve.sts sdeexe101/lib/st_multisurface.stb sdeexe101/lib/st_multisurface.sts sdeexe101/lib/st_pointfromtext.stb sdeexe101/lib/st_pointfromtext.sts sdeexe101/lib/st_polyfromtext.stb sdeexe101/lib/st_polyfromtext.sts sdeexe101/lib/st_surface.stb sdeexe101/lib/st_surface.sts sdeexe101/lib/st_type_export.spb sdeexe101/lib/st_type_export.sps sdeexe101/lib/gdb_util.spb sdeexe101/lib/gdb_util.sps sdeexe101/lib/st_pixeldata.wts sdeexe101/lib/st_pixeldata.wtb sdeexe101/lib/st_raster.wts sdeexe101/lib/st_raster.wtb sdeexe101/lib/st_raster_util.wps sdeexe101/lib/st_raster_util.wpb sdeexe101/lib/libicudata.so sdeexe101/lib/libicudata.so.44 sdeexe101/lib/libicudata.so.44.2 sdeexe101/lib/libicuuc.so sdeexe101/lib/libicuuc.so.44 sdeexe101/lib/libicuuc.so.44.2 sdeexe101/lib/libicui18n.so sdeexe101/lib/libicui18n.so.44 sdeexe101/lib/libicui18n.so.44.2 sdeexe101/lib/libxerces-c.so sdeexe101/lib/libxerces-c-3.1.so sdeexe101/lib/libtiff.so sdeexe101/lib/libpe.so sdeexe101/lib/libsg.so sdeexe101/lib/libsde.so sdeexe101/lib/libsdeora11gsrvr101.so sdeexe101/lib/libgsrvrora11g101.so sdeexe101/lib/libsdesetup.so sdeexe101/lib/libst_shapelib.so sdeexe101/lib/libst_raster_ora.so Finished loading package(s) Exiting...
View Code
根据用户软件安装的位置以及Oracle软件安装的信息,添加sde用户的环境变量
[gis@localhost ~]$ vi .bash_profile
按i进行编辑,原有的PATH=$PATH:$HOME/bin export PATH行前加#注释。加入下面红色部分。
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
#PATH=$PATH:$HOME/bin
export ORACLE_BASE=/home/oracle/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1
export ORACLE_SID=orcl
export TNS_ADMIN=$ORACLE_HOME/network/admin
export SDEHOME=/home/gis/sdeexe101
export LD_LIBRARY_PATH=$SDEHOME/lib:/usr/lib:/lib:$ORACLE_HOME/lib
export PATH=$PATH:$HOME:$ORACLE_HOME/bin:$SDEHOME/bin
#export PATH
~
~ /home/oracle/app/oracle/product/11.2.0/dbhome_1/lib
~
~
输入:wq进行保存。
修改完毕环境变量,使之生效,然后测试一下是否生效
[gis@localhost ~]$ . ./.bash_profile
[gis@localhost ~]$ echo $SDEHOME
/home/gis/sdeexe101
[gis@localhost ~]$ cd $SDEHOME
[gis@localhost sdeexe101]$ pwd
/home/gis/sdeexe101
[gis@localhost sdeexe101]$
修改配置文件参数,在ArcSDE用户下修改$SDEHOME/etc/services.sde文件添加实例名和端口号
[gis@localhost ~]$ cd /home/gis/sdeexe101/etc
[gis@localhost etc]$ vi services.sde
按i进行编辑,把#esri_sde 5151/tcp这行前#去掉即可, 输入:wq保存
在Root用户下/etc/services文件一样添加
修改gis目录权限
[gis@localhost etc]$ su root
Password:
[root@localhost etc]# chown -R gis:oinstall /home/gis
[root@localhost etc]# chmod -R 755 /home/gis
[root@localhost etc]# su gis
[gis@localhost etc]$ cd $SDEHOME
[gis@localhost sdeexe101]$ ll
total 16
drwxr-xr-x. 2 gis oinstall 4096 Mar 25 19:10 bin
drwxr-xr-x. 2 gis oinstall 4096 Mar 25 19:29 etc
drwxr-xr-x. 2 gis oinstall 4096 Mar 25 19:10 lib
drwxr-xr-x. 4 gis oinstall 4096 May 20 2010 locale
sdesetup
[gis@localhost ~]$ sdesetup
ArcSDE 10.1 Setup
Setup Administration Utility
-----------------------------------------------------
Usage for sdesetup:
-?
-h
-o delete -d {ORACLE10G|ORACLE11G}
[-H <sde_directory>] [-u <DB_Admin_user>] [-p <DB_Admin_password>]
[-i <master_geodatabase_service>[:<user_schema>]] [-N] [q]
-o list -d {ORACLE10G|ORACLE11G|SQLSERVER|DB2|DB2ZOS|INFORMIX|POSTGRESQL}
[-H <sde_directory>] [-u <DB_Admin_user>] [-p <DB_Admin_password>]
[-D <database>] [-s <datasource>]
[-i <master_geodatabase_service>[:<user_schema>]] [-q]
-o update_key
-d {ORACLE10G|ORACLE11G|SQLSERVER| DB2|DB2ZOS|INFORMIX|POSTGRESQL}
-l <key> [-u <DB_Admin_user>] [-p <DB_Admin_password>]
[-H <sde_directory>] [-D <database>] [-s <datasource>] [-N]
[-i <master_geodatabase_service>[:<user_schema>]] [-q]
-o install_st_raster
-d {ORACLE10G|ORACLE11G|SQLSERVER|POSTGRESQL}
[-H <sde_directory>] [-u <DB_Admin_user>] [-p <DB_Admin_password>]
[-D <database>] [-s <datasource>] [-N] [-l <key>] [-q]
创建SDE的Schema
[gis@localhost lib]$ sdesetup -o install_st_raster -d oracle11g -p sde
ESRI ArcSDE Server Setup Utility Tue Mar 25 22:59:38 2014
----------------------------------------------------------------
Install or update ST_RASTER schema objects: Are you sure? (Y/N): y
Creating ST_RASTER schema...
Successfully created ST_RASTER schema.
Successfully installed ArcSDE components.
Refer SDEHOME\etc\sde_setup.log for more details.
估计会遇到的错误类型:Error: Underlying DBMS error (-51).
这个问题一般是数据库权限问题,将以下sql语句保存为updatesde.sql执行即可
grant CREATE SESSION to sde;
grant CREATE TABLE to sde;
grant CREATE PROCEDURE to sde;
grant CREATE SEQUENCE to sde;
grant CREATE TRIGGER to sde;
grant CREATE TYPE to sde;
grant CREATE LIBRARY to sde;
grant CREATE PUBLIC SYNONYM to sde;
grant CREATE OPERATOR to sde;
grant CREATE INDEXTYPE to sde;
grant DROP PUBLIC SYNONYM to sde;
grant UNLIMITED TABLESPACE to sde;
grant CREATE VIEW to sde;
prompt * SELECT ANY TABLE is required for compressing the database
prompt * This privilege needs to be granted whenever a compress is run.
grant SELECT ANY TABLE to sde;
prompt * ADMINISTER DATABASE TRIGGER can be revoked after install
grant ADMINISTER DATABASE TRIGGER to sde;
prompt * * * * * * * * * * *
prompt * ArcSDE UPGRADE *
prompt * * * * * * * * * * *
prompt * If upgrading please remove rem from each grant.
prompt * Granting the required privileges to the sde user.
REM grant ADMINISTER DATABASE TRIGGER to sde;
REM grant SELECT ANY TABLE to sde;
REM grant SELECT ANY SEQUENCE to sde;
REM grant EXECUTE ANY PROCEDURE to sde;
REM grant ANALYZE ANY to sde;
REM grant ALTER ANY INDEX to sde;
REM grant ALTER ANY TABLE to sde;
REM grant CREATE ANY SEQUENCE to sde;
REM grant CREATE ANY TRIGGER to sde;
REM grant CREATE ANY INDEX to sde;
REM grant CREATE ANY PROCEDURE to sde;
REM grant DROP ANY INDEX to sde;
REM grant DROP ANY SEQUENCE to sde;
REM grant DROP ANY TABLE to sde;
REM grant DROP ANY VIEW to sde;
REM grant DROP ANY PROCEDURE to sde;
更新相关的lic,注意lic文件的所属用户,所属组以及读写权限
[gis@localhost ~]$ sdesetup -o update_key -d oracle11g -l /opt/sde/sde.ecp -p sde
ESRI ArcSDE Server Setup Utility Wed Mar 26 02:37:39 2014
----------------------------------------------------------------
Error: DBMS table not found (-37).
Error upgrading authorization key.
出错,需要在oracle用户下执行
grant execute on dbms_pipe to public;
grant execute on dbms_lock to public;
[gis@localhost ~]$ su oracle
Password:
[oracle@localhost gis]$ sqlplus
SQL*Plus: Release 11.2.0.1.0 Production on Wed Mar 26 19:36:17 2014
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Enter user-name: sys as sysdba
Enter password:
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> grant execute on dbms_pipe to public;
grant execute on dbms_lock to public;
Grant succeeded.
SQL>
Grant succeeded.
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
[oracle@localhost gis]$ su gis
Password:
[gis@localhost ~]$ sdesetup -o update_key -d oracle11g -l /opt/sde/sde.ecp -p sde
sdesetup: error while loading shared libraries: libsdesetup.so: cannot open shared object file: No such file or directory
再次出错。
启动ArcSDE服务
[gis@localhost ~]$ sdemon -o start -p sde
-------------------------------------------------------
ArcSDE 10.1 for Oracle11g Build 679 Thu Apr 5 11:43:21 2012
-------------------------------------------------------
ST_Geometry Schema Owner: () Type Release: 0
Instance initialized for ((sde)) . . .
Connected to instance . . .
Previous SDE Server Release 0.0.0 is not compatible with the current Release 10.1.0.
Could not start ArcSDE -- Check Network, $SDEHOME disk, DBMS settings and dbinit.sde.
补充:如果要设置随着机器自动启动,那么创建sde.sh文件,加入下面的内容:
#!/bin/sh # SDEHOME=/home/sde/sdeexe93 SDE_OWNR=sde ORACLE_HOME=/u01/app/oracle/product/10.2.0/db_1 # # if [ ! -d $SDEHOME ] || [ ! -f $SDEHOME/bin/sdemon ] then echo "ArcSDE startup: cannot start" exit 1 fi # case "$1" in start) #ArcSDE startup echo -n "Starting ArcSDE: " su $SDE_OWNR -c " export SDEHOME=/home/sde/sdeexe93&& export ORACLE_HOME=/u01/app/oracle/product/10.2.0/db_1&& export ORACLE_SID=pgis1&& export PATH=$PATH:$SDEHOME/bin:$ORACLE_HOME/bin:/etc&& export LD_LIBRARY_PATH=$SDEHOME/lib:/usr/lib:/lib:$ORACLE_HOME/lib32&& export NLS_.ZHS16GBK&& $SDEHOME/bin/sdemon -o start -p sde" touch /var/lock/sde echo "OK, Started" ;; stop) #ArcSDE shutdown echo -n "Shutdown ArcSDE: " su $SDE_OWNR -c " export SDEHOME=/home/sde/sdeexe93&& export ORACLE_HOME=/u01/app/oracle/product/10.2.0/db_1&& export ORACLE_SID=pgis1&& export PATH=$PATH:$SDEHOME/bin:$ORACLE_HOME/bin:/etc&& export LD_LIBRARY_PATH=$SDEHOME/lib:/usr/lib:/lib:$ORACLE_HOME/lib32&& export NLS_.ZHS16GBK&& $SDEHOME/bin/sdemon -o shutdown -p sde" rm -f /var/lock/sde echo "OK, Stopped" ;; restart) $0 stop $0 start ;; *) echo "Usage: $0 start|stop|restart" exit 1 ;; esac exit 0
然后:
chmod 755 sde.sh
sudo cp sde.sh /etc/init.d/
sudo update-rc.d sde.sh defaults 99
就可以了。
相关文章推荐
- Linux chown改变文件所属关系命令
- linux 信号 --- 产生 阻塞 捕捉
- ArcGIS Server 10.1 for Linux典型问题总结
- 3.linux文件操作跟磁盘存储对应过程
- 2.Linux文件和目录之间对应关系
- linux REDHAT6.4下安装ArcGIS Server 10.1
- VM安装linux
- linux按位运算datalab-handout
- 解决Linux c语言运行时候“段错误 (核心已转储)”问题-采用gdb 解决
- centos 6.7 zerorpc TypeError
- Linux内核分析 期末总结
- 王高利:Kvm虚拟化(4)__为客户机添加virsh console支持
- CentOS 7 安装 mysql-5.6.14
- linux基础(四)
- GraphicsMagick在centos环境的安装
- linux 小技巧
- Centos安装
- Linux下C语言Mysql数据库使用范例
- Linux下python安装升级详细步骤 | Python2 升级 Python3
- Linux System Admin Handbook - Service Config