Oracle InstantClient安装步骤
2013-07-09Instant Client allows you to run your applications without installing the standard Oracle client or having an ORACLE_HOME. OCI, OCCI, Pro*C, ODBC, and JDBC applications work without modification, while using significantly less disk space than before. Even SQL*Plus can be used with Instant Client. No recompile, no hassle.
1、下载(需要注册免费的Oracle Web帐户):
http://www.oracle.com/technetwork/database/features/instant-client/index.html
http://www.oracle.com/technetwork/database/features/instant-client/index-097480.html
http://download.oracle.com/otn/nt/instantclient/112030/instantclient-basic-nt-11.2.0.3.0.zip
http://download.oracle.com/otn/nt/instantclient/112030/instantclient-sqlplus-nt-11.2.0.3.0.zip
2、将下载的zip文件解压缩到
e:\instantclient_11_2
3、批处理添加PATH环境变量
@echo off
path %PATH%;e:\instantclient_11_2
set tmp=%path%
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /v "Path" /t REG_SZ /f /d "%tmp%"
4、创建系统环境变量nls_lang,值为AMERICAN_AMERICA.ZHS16GBK
@echo off
set value=AMERICAN_AMERICA.ZHS16GBK
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /v "NLS_LANG" /t REG_SZ /f /d "%value%"
5、x86设置注册表
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Oracle]
"ORACLE_HOME"="E:\\instantclient_11_2"
"ORACLE_BASE"="E:\\instantclient_11_2"
"ORACLE_SID"="MYDB"
"TNS_ADMIN"="E:\\instantclient_11_2"
"NLS_LANG"="AMERICAN_CHINA.ZHS16GBK"
6、x64设置注册表
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Oracle]
"ORACLE_HOME"="E:\\instantclient_11_2"
"ORACLE_BASE"="E:\\instantclient_11_2"
"ORACLE_SID"="MYDB"
"TNS_ADMIN"="E:\\instantclient_11_2"
"NLS_LANG"="AMERICAN_AMERICAN.ZHS16GBK"
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Oracle\Key_OraDB11g_home1]
"ORACLE_HOME"="E:\\instantclient_11_2"
"ORACLE_BASE"="E:\\instantclient_11_2"
"ORACLE_SID"="MYDB"
"TNS_ADMIN"="E:\\instantclient_11_2"
"NLS_LANG"="AMERICAN_AMERICAN.ZHS16GBK"
7、设置tnsnames.ora
在e:\instantclient_11_2\network\admin创建文件tnsnames.ora
ORCL_test =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS =
(PROTOCOL = TCP)
(HOST = 192.168.100.5)
(PORT = 1521)
)
)
(CONNECT_DATA =
(SERVICE_NAME = orcl)
)
)
8、现在你可用PL.SQL.Developer/Toad/Lib128连接Oracle了。
相关日志
- oracle中drop一个表,让数据文件释放空间
- oracle批量杀掉死锁进程
- ORA-00257: archiver error. Connect internal only, until freed. (DBD ERROR: OCISessionBegin)
- oracle同义词SYNONYM
- substr()函数
- oracle create dblink
- oracle 启动归档模式
- oracle表空间文件
- linux删除oracle表空间文件后空间不释放
- nagios check_oracle_health install shell
- oracle最大连接数processes
- nagios check_oracle_health
- cx_Oracle for python
- 数据库查询重复行shell脚本
- oracle导入txt数据文件实例
- mysql导入txt数据文件实例
- 修改NLS_CHARACTERSET和NLS_NCHAR_CHARACTERSET字符集
- NLS_NCHAR_CHARACTERSET和NLS_CHARACTERSET的区别
- 如何安装mysql-5.6.12
- 设置NLS_LANG环境变量
- Oracle Golden Gate数据库同步技术
- mysql或oracle合并行函数
- shell sqlplus run sql
- oracle误删datafile
- mysqld_safe — MySQL Server Startup Script
- 如何禁用mysql端口3306
- oracle触发器实例 (8)
- sql语句处理BLOB (8)
- Drizzle A database for the Cloud (1)
- SGA/PGA的设置与调整 (9)
- 根据v$SGA_TARGET_ADVICE设置SGA SIZE (6)
- shmmax/shmall和sga_max_size/sga_target应该设置多大 (3)
- exp/imp和expdp/impdp的逻辑哲学 (1)
- oracle安装后期stop big port (1)
- OLTP和OLAP的区别 (3)
- mysql创建数据库及用户 (1)
- Mysql分支MariaDB简介 (6)
- ORA-01843: not a valid month (3)
- sql语句where 1=1和1=2的作用 (4)
- 如何安装mysql-5.5.31 (8)
- rlwrap实现sqlplus使用上下键查历史命令
- CentOS_x64_6.3 install Oracle 10.2.0.1报错ins_emdb.mk (2)