Home Database Mysql Tutorial Linux安装Oracle客户端

Linux安装Oracle客户端

Jun 07, 2016 pm 03:51 PM
linux oracle Install client along with

随着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
Copy after login
3:注意在root用户下执行xhost+这样才可以调出图形化界面

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.
Copy after login

还有一个
[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.
Copy after login


执行完毕之后,把相关的环境变量写上去就可以了
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
Copy after login

然后在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>
Copy after login

另外需要注意的就是,因为我们发布服务是需要使用ArcGIS Server用户来发布服务,那么需要ArcGIS Server用户可以使用Sqlplus执行,那么就需要

1:要么我们的oracle安装在/opt目录下

2:要么Oracle安装在其他目录下,ArcGIS Server用户可以对这个目录有相关权限


因为以后ArcGIS Server10.1连接SDE数据源默认都是直连,所以会经常碰到在Linux环境下安装数据库的客户端,仅供参考!


 -------------------------------------------------------------------------------------------------------

-------------------------------------------------------------------------------------------------------
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

What computer configuration is required for vscode What computer configuration is required for vscode Apr 15, 2025 pm 09:48 PM

VS Code system requirements: Operating system: Windows 10 and above, macOS 10.12 and above, Linux distribution processor: minimum 1.6 GHz, recommended 2.0 GHz and above memory: minimum 512 MB, recommended 4 GB and above storage space: minimum 250 MB, recommended 1 GB and above other requirements: stable network connection, Xorg/Wayland (Linux)

Linux Architecture: Unveiling the 5 Basic Components Linux Architecture: Unveiling the 5 Basic Components Apr 20, 2025 am 12:04 AM

The five basic components of the Linux system are: 1. Kernel, 2. System library, 3. System utilities, 4. Graphical user interface, 5. Applications. The kernel manages hardware resources, the system library provides precompiled functions, system utilities are used for system management, the GUI provides visual interaction, and applications use these components to implement functions.

How to run java code in notepad How to run java code in notepad Apr 16, 2025 pm 07:39 PM

Although Notepad cannot run Java code directly, it can be achieved by using other tools: using the command line compiler (javac) to generate a bytecode file (filename.class). Use the Java interpreter (java) to interpret bytecode, execute the code, and output the result.

vscode terminal usage tutorial vscode terminal usage tutorial Apr 15, 2025 pm 10:09 PM

vscode built-in terminal is a development tool that allows running commands and scripts within the editor to simplify the development process. How to use vscode terminal: Open the terminal with the shortcut key (Ctrl/Cmd). Enter a command or run the script. Use hotkeys (such as Ctrl L to clear the terminal). Change the working directory (such as the cd command). Advanced features include debug mode, automatic code snippet completion, and interactive command history.

How to check the warehouse address of git How to check the warehouse address of git Apr 17, 2025 pm 01:54 PM

To view the Git repository address, perform the following steps: 1. Open the command line and navigate to the repository directory; 2. Run the "git remote -v" command; 3. View the repository name in the output and its corresponding address.

Oracle's Role in the Business World Oracle's Role in the Business World Apr 23, 2025 am 12:01 AM

Oracle is not only a database company, but also a leader in cloud computing and ERP systems. 1. Oracle provides comprehensive solutions from database to cloud services and ERP systems. 2. OracleCloud challenges AWS and Azure, providing IaaS, PaaS and SaaS services. 3. Oracle's ERP systems such as E-BusinessSuite and FusionApplications help enterprises optimize operations.

Where to write code in vscode Where to write code in vscode Apr 15, 2025 pm 09:54 PM

Writing code in Visual Studio Code (VSCode) is simple and easy to use. Just install VSCode, create a project, select a language, create a file, write code, save and run it. The advantages of VSCode include cross-platform, free and open source, powerful features, rich extensions, and lightweight and fast.

laravel installation code laravel installation code Apr 18, 2025 pm 12:30 PM

To install Laravel, follow these steps in sequence: Install Composer (for macOS/Linux and Windows) Install Laravel Installer Create a new project Start Service Access Application (URL: http://127.0.0.1:8000) Set up the database connection (if required)

See all articles