Linux安装Oracle客户端
随着ArcGIS10.1的到来,特别是ArcSDE10.1默认直连之后,我们直连的一个要求就是要安装数据库的客户端软件,那么比如我们使用ArcGIS Server10.1连接ArcSDE10.1的数据源,数据库客户端的安装就显得非常重要了。 下面我们就简单说明一下在Linux环境下安装Oracle
随着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]$ ll total 24 drwxr-xr-x. 8 ora oinstall 4096 Jul 19 2012 doc drwxrwxrwx. 4 ora oinstall 4096 Jul 19 2012 install drwxr-xr-x. 2 ora oinstall 4096 Jul 19 2012 response -rwxrwxrwx. 1 ora oinstall 3230 Aug 15 2009 runInstaller drwxr-xr-x. 14 ora oinstall 4096 Jul 19 2012 stage -rw-r--r--. 1 ora oinstall 3924 Aug 17 2009 welcome.html
4:安装就比较简单了,其实安装有个系统依赖包检查,其实这个可以跳过去,好多包其实都安装过了(不过还是谨慎点好)
5:安装过程到最后,需要使用root用户执行两个脚本,系统会提示的
[root@redhat6 app]# cd oraInventory/ [root@redhat6 oraInventory]# ls ContentsXML logs oraInst.loc oui install.platform oraInstaller.properties orainstRoot.sh [root@redhat6 oraInventory]# ./orainstRoot.sh Changing 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]# ls assistants dc_ocm javavm odbc perl sqlj bin deinstall jdbc olap plsql sqlplus cdata diagnostics jdk OPatch precomp srvm cfgtoollogs has jlib opmn racg sysman clone hs jpub oracore rdbms ucp crs install ldap oraInst.loc relnotes uix csmig install.platform lib ord root.sh utl css instantclient network oui slax wwg cv inventory nls owm sqldeveloper xdk [root@redhat6 client_1]# ./root.sh Running 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_1 Enter 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 by Database Configuration Assistant when a database is created Finished running generic part of root.sh script. Now product-specific root actions will be performed.
PATH=$PATH:$HOME/bin export PATH export ORACLE_OWNER= ora export ORACLE_HOME=/home/ora/app/ora/product/11.2.0/client_1 export PATH=$ORACLE_HOME/bin:$PATH export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:usr/lib export CLASSPATH=$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib export LANG=en_US
然后在ora用户下执行netca配置netservicename,配置完毕之后就可以使用了
[ora@redhat6 ~]$ sqlplus system/oracle@orcl SQL*Plus: Release 11.2.0.1.0 Production on Sat Jun 16 03:38:24 2012 Copyright (c) 1982, 2009, Oracle. All rights reserved. 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>
另外需要注意的就是,因为我们发布服务是需要使用ArcGIS Server用户来发布服务,那么需要ArcGIS Server用户可以使用Sqlplus执行,那么就需要
1:要么我们的oracle安装在/opt目录下
2:要么Oracle安装在其他目录下,ArcGIS Server用户可以对这个目录有相关权限
因为以后ArcGIS Server10.1连接SDE数据源默认都是直连,所以会经常碰到在Linux环境下安装数据库的客户端,仅供参考!
-------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------

熱AI工具

Undresser.AI Undress
人工智慧驅動的應用程序,用於創建逼真的裸體照片

AI Clothes Remover
用於從照片中去除衣服的線上人工智慧工具。

Undress AI Tool
免費脫衣圖片

Clothoff.io
AI脫衣器

Video Face Swap
使用我們完全免費的人工智慧換臉工具,輕鬆在任何影片中換臉!

熱門文章

熱工具

記事本++7.3.1
好用且免費的程式碼編輯器

SublimeText3漢化版
中文版,非常好用

禪工作室 13.0.1
強大的PHP整合開發環境

Dreamweaver CS6
視覺化網頁開發工具

SublimeText3 Mac版
神級程式碼編輯軟體(SublimeText3)

Linux系統的五個基本組件是:1.內核,2.系統庫,3.系統實用程序,4.圖形用戶界面,5.應用程序。內核管理硬件資源,系統庫提供預編譯函數,系統實用程序用於系統管理,GUI提供可視化交互,應用程序利用這些組件實現功能。

要查看 Git 倉庫地址,請執行以下步驟:1. 打開命令行並導航到倉庫目錄;2. 運行 "git remote -v" 命令;3. 查看輸出中的倉庫名稱及其相應的地址。

Oracle不僅是數據庫公司,還是雲計算和ERP系統的領導者。 1.Oracle提供從數據庫到雲服務和ERP系統的全面解決方案。 2.OracleCloud挑戰AWS和Azure,提供IaaS、PaaS和SaaS服務。 3.Oracle的ERP系統如E-BusinessSuite和FusionApplications幫助企業優化運營。

雖然 Notepad 無法直接運行 Java 代碼,但可以通過借助其他工具實現:使用命令行編譯器 (javac) 編譯代碼,生成字節碼文件 (filename.class)。使用 Java 解釋器 (java) 解釋字節碼,執行代碼並輸出結果。

在 Sublime 中運行代碼的方法有六種:通過熱鍵、菜單、構建系統、命令行、設置默認構建系統和自定義構建命令,並可通過右鍵單擊項目/文件運行單個文件/項目,構建系統可用性取決於 Sublime Text 的安裝情況。

要安裝 Laravel,需依序進行以下步驟:安裝 Composer(適用於 macOS/Linux 和 Windows)安裝 Laravel 安裝器創建新項目啟動服務訪問應用程序(網址:http://127.0.0.1:8000)設置數據庫連接(如果需要)

MongoDB適合非結構化數據和高擴展性需求,Oracle適合需要嚴格數據一致性的場景。 1.MongoDB靈活存儲不同結構數據,適合社交媒體和物聯網。 2.Oracle結構化數據模型確保數據完整性,適用於金融交易。 3.MongoDB通過分片橫向擴展,Oracle通過RAC縱向擴展。 4.MongoDB維護成本低,Oracle維護成本高但支持完善。
