随着arcgis10.1的到来,特别是arcsde10.1默认直连之后,我们直连的一个要求就是要安装数据库的客户端软件,那么比如我们使用arcgis server10.1连接arcsde10.1的数据源,数据库客户端的安装就显得非常重要了。
下面我们就简单说明一下在linux环境下安装oracle的客户端
操作系统:redhat 6.1 64bit
数据库:oracle11.2.0.1 客户端 64bit
1:我们需要创建一个数据库的操作系统帐号:比如ora
2:使用ssh将数据库客户端软件传输到ora用户下
执行安装之前,我们需要对install文件夹和runinstaller有775的权限即可
[ora@redhat6 client]$ lltotal 24drwxr-xr-x. 8 ora oinstall 4096 jul 19 2012 docdrwxrwxrwx. 4 ora oinstall 4096 jul 19 2012 installdrwxr-xr-x. 2 ora oinstall 4096 jul 19 2012 response-rwxrwxrwx. 1 ora oinstall 3230 aug 15 2009 runinstallerdrwxr-xr-x. 14 ora oinstall 4096 jul 19 2012 stage-rw-r--r--. 1 ora oinstall 3924 aug 17 2009 welcome.html
3:注意在root用户下执行xhost+这样才可以调出图形化界面4:安装就比较简单了,其实安装有个系统依赖包检查,其实这个可以跳过去,好多包其实都安装过了(不过还是谨慎点好)
5:安装过程到最后,需要使用root用户执行两个脚本,系统会提示的
[root@redhat6 app]# cd orainventory/[root@redhat6 orainventory]# lscontentsxml logs orainst.loc ouiinstall.platform orainstaller.properties orainstroot.sh[root@redhat6 orainventory]# ./orainstroot.shchanging permissions of /home/ora/app/orainventory.adding read,write permissions for group.removing read,write,execute permissions for world.changing groupname of /home/ora/app/orainventory to oinstall.the execution of the script is complete.
还有一个[root@redhat6 client_1]# lsassistants dc_ocm javavm odbc perl sqljbin deinstall jdbc olap plsql sqlpluscdata diagnostics jdk opatch precomp srvmcfgtoollogs has jlib opmn racg sysmanclone hs jpub oracore rdbms ucpcrs install ldap orainst.loc relnotes uixcsmig install.platform lib ord root.sh utlcss instantclient network oui slax wwgcv inventory nls owm sqldeveloper xdk[root@redhat6 client_1]# ./root.shrunning oracle 11g root.sh script...the following environment variables are set as: oracle_owner= ora oracle_home= /home/ora/app/ora/product/11.2.0/client_1enter the full pathname of the local bin directory: [/usr/local/bin]: copying dbhome to /usr/local/bin ... copying oraenv to /usr/local/bin ... copying coraenv to /usr/local/bin ...creating /etc/oratab file...entries will be added to the /etc/oratab file as needed bydatabase configuration assistant when a database is createdfinished running generic part of root.sh script.now product-specific root actions will be performed.
执行完毕之后,把相关的环境变量写上去就可以了path=$path:$home/binexport pathexport oracle_owner= oraexport oracle_home=/home/ora/app/ora/product/11.2.0/client_1export path=$oracle_home/bin:$pathexport ld_library_path=$oracle_home/lib:/lib:usr/libexport classpath=$oracle_home/jlib:$oracle_home/rdbms/jlibexport lang=en_us
然后在ora用户下执行netca配置netservicename,配置完毕之后就可以使用了[ora@redhat6 ~]$ sqlplus system/oracle@orclsql*plus: release 11.2.0.1.0 production on sat jun 16 03:38:24 2012copyright (c) 1982, 2009, oracle. all rights reserved.connected to:oracle database 11g enterprise edition release 11.2.0.1.0 - 64bit productionwith the partitioning, olap, data mining and real application testing optionssql>
另外需要注意的就是,因为我们发布服务是需要使用arcgis server用户来发布服务,那么需要arcgis server用户可以使用sqlplus执行,那么就需要
1:要么我们的oracle安装在/opt目录下
2:要么oracle安装在其他目录下,arcgis server用户可以对这个目录有相关权限
因为以后arcgis server10.1连接sde数据源默认都是直连,所以会经常碰到在linux环境下安装数据库的客户端,仅供参考!
-------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------