RHEL/CentOS下 Oracle 11g客户端配置
Oracle 11g linux 32位版客户端配置 先附上自己集成的客户端下载链接:Oracle 11g客户端Linux-32bit 到Linux公社1号FTP下载: --
Oracle 11g linux 32位版客户端配置
先附上自己集成的客户端下载链接:Oracle 11g客户端Linux-32bit
到Linux公社1号FTP下载:
------------------------------------------分割线------------------------------------------
FTP地址:ftp://ftp1.linuxidc.com
用户名:ftp1.linuxidc.com
密码:
在 2013年LinuxIDC.com\12月\RHEL&CentOS下 Oracle 11g客户端配置
下载方法见
------------------------------------------分割线------------------------------------------
功能:
1. 包含oracle基本运行环境;
2. 包含sqlplus组件;
3. 包含开发oracle应用相关的sdk环境;
4. 包含pro*c开发组件;
运行环境:
CentOS 6.5 32位
1. 下载如下组件:
1). instantclient-basic-linux-11.2.0.4.0.zip 基本运行支持库环境,OCI, OCCI, 以及JDBC-OCI运行的基本环境;
2). instantclient-sdk-linux-11.2.0.4.0.zip 包含oracle程序开发的一些头文件;
3). instantclient-precomp-linux-11.2.0.4.0.zip PRO*C程序开发用到的预编译工具,,即proc程序;
4). instantclient-sqlplus-linux-11.2.0.4.0.zip SQL*PLUS工具
2. 将下载的文件放在同一目录下,如我以root用户登陆,将上述4个zip文件其放在/root目录下:
逐一解压4个文件:
[root@rhel ~]# unzip instantclient-basic-linux-11.2.0.4.0.zip
[root@rhel ~]# unzip instantclient-precomp-linux-11.2.0.4.0.zip
[root@rhel ~]# unzip instantclient-sdk-linux-11.2.0.4.0.zip
[root@rhel ~]# unzip instantclient-sqlplus-linux-11.2.0.4.0.zip
完成后4个zip文件中的所有文件都放在了instantclient_11_2目录
3. 进入instantclient_11_2目录,创建libclntsh.so.11.1的链接文件,防止程序找不到libclntsh.so文件而导致出错
在instantclient_11_2目录下执行如下命令:
[root@rhel instantclient_11_2]#ln -s libclntsh.so.11.1 libclntsh.so
4. 建立相关目录:
在 instantclient_11_2目录下建立network目录,在network目录下建立admin目录,命令如下:
[root@rhel instantclient_11_2]#mkdir -p network/admin
5. 配置环境变量
用vi打开用户配置文件:vi ~/.bash_profile
在配置文件中加入如下信息:
export ORACLE_HOME=/root/instantclient_11_2
if [ "$LD_LIBRARY_PATH" = "" ]; then
export LD_LIBRARY_PATH=$ORACLE_HOME
else
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME
fi
export PATH=$PATH:$ORACLE_HOME:$ORACLE_HOME/sdk
export NLS_LANG="AMERICAN_AMERICA.AL32UTF8"
export TNS_ADMIN=$ORACLE_HOME/network/admin
if [ -f "/usr/bin/rlwrap" ]; then
alias sqlplus='rlwrap sqlplus'
fi
接下来让环境变量生效,运行命令:
source ~/.bash_profile

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

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

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics











MySQL is an open source relational database management system. 1) Create database and tables: Use the CREATEDATABASE and CREATETABLE commands. 2) Basic operations: INSERT, UPDATE, DELETE and SELECT. 3) Advanced operations: JOIN, subquery and transaction processing. 4) Debugging skills: Check syntax, data type and permissions. 5) Optimization suggestions: Use indexes, avoid SELECT* and use transactions.

The main role of MySQL in web applications is to store and manage data. 1.MySQL efficiently processes user information, product catalogs, transaction records and other data. 2. Through SQL query, developers can extract information from the database to generate dynamic content. 3.MySQL works based on the client-server model to ensure acceptable query speed.

InnoDB uses redologs and undologs to ensure data consistency and reliability. 1.redologs record data page modification to ensure crash recovery and transaction persistence. 2.undologs records the original data value and supports transaction rollback and MVCC.

MySQL is an open source relational database management system, mainly used to store and retrieve data quickly and reliably. Its working principle includes client requests, query resolution, execution of queries and return results. Examples of usage include creating tables, inserting and querying data, and advanced features such as JOIN operations. Common errors involve SQL syntax, data types, and permissions, and optimization suggestions include the use of indexes, optimized queries, and partitioning of tables.

MySQL's position in databases and programming is very important. It is an open source relational database management system that is widely used in various application scenarios. 1) MySQL provides efficient data storage, organization and retrieval functions, supporting Web, mobile and enterprise-level systems. 2) It uses a client-server architecture, supports multiple storage engines and index optimization. 3) Basic usages include creating tables and inserting data, and advanced usages involve multi-table JOINs and complex queries. 4) Frequently asked questions such as SQL syntax errors and performance issues can be debugged through the EXPLAIN command and slow query log. 5) Performance optimization methods include rational use of indexes, optimized query and use of caches. Best practices include using transactions and PreparedStatemen

MySQL is chosen for its performance, reliability, ease of use, and community support. 1.MySQL provides efficient data storage and retrieval functions, supporting multiple data types and advanced query operations. 2. Adopt client-server architecture and multiple storage engines to support transaction and query optimization. 3. Easy to use, supports a variety of operating systems and programming languages. 4. Have strong community support and provide rich resources and solutions.

Compared with other programming languages, MySQL is mainly used to store and manage data, while other languages such as Python, Java, and C are used for logical processing and application development. MySQL is known for its high performance, scalability and cross-platform support, suitable for data management needs, while other languages have advantages in their respective fields such as data analytics, enterprise applications, and system programming.

MySQL index cardinality has a significant impact on query performance: 1. High cardinality index can more effectively narrow the data range and improve query efficiency; 2. Low cardinality index may lead to full table scanning and reduce query performance; 3. In joint index, high cardinality sequences should be placed in front to optimize query.
