`
liuguofeng
  • 浏览: 436621 次
  • 性别: Icon_minigender_1
  • 来自: 成都
社区版块
存档分类
最新评论

oracle客户端配置

阅读更多
本帖最后由 落↓孤❤寒 于 2010-7-17 13:16 编辑

只使用SQL*Plus,则下载以下两个包即可:
    a)
Instant Client Package - Basic:
    All files required to run OCI, OCCI, and JDBC-OCI applications
    instantclient-basic-win32-11.1.0.6.0.zip (43,316,697 bytes)

    b)
Instant Client Package - SQL*Plus:
    Additional libraries and executable for running SQL*Plus with Instant Client
    instantclient-sqlplus-win32-11.1.0.6.0.zip (788,050 bytes)
(在
http://www.oracle.com/technology/software/tech/oci/instantclient/htdocs/winsoft.html下载
注意要选中
Accept License Agreement 不然不能下载哦


2
、安装配置
    a
、将instantclient-basic-win32-11.1.0.6.0.zip instantclient-sqlplus-win32-11.1.0.6.0.zip解压到同一目录(:F:\Oracle\InstantClient)

    b
、环境变量设置:
   
F:\Oracle\InstantClient增加到系统环境变量PATH中。


   
再添加环境变量TNS_ADMIN (admin目录是自己新建的):
    TNS_ADMIN=F:\Oracle\InstantClient\admin

   
可选环境变量
:
    NLS_LANG=SIMPLIFIED CHINESE_CHINA.ZHS16GBK

    c
、在TNS_ADMIN所指目录F:\Oracle\InstantClient\admin下增加一个配置文件tnsnames.ora。这个文件可以直接从服务器的Oracle安装目录(H:\Oracle\product\11.1.0\db_1\network\admin\tnsnames.ora)下找到,直接复制过来。


tnsnames.ora:

# tnsnames.ora Network Configuration File:
# Generated by Oracle configuration tools.

QINHUA =
#
数据库名字
    (DESCRIPTION =
      (ADDRESS_LIST =
        (ADDRESS = (PROTOCOL = TCP)(HOST =
192.85.1.3)(PORT = 1521)) #
服务器IP
      )
      (CONNECT_DATA =
        (SERVICE_NAME =
QINHUA)
#
数据库名字


      )
    )

3
、使用SQL*Plus
   
打开cmd,输入如下内容:
c:\>sqlplus sys/admin@qinhua
#
数据库名字(注意:登录时不要as sysdba ,不然回报没有权限)
如果输出类似如下内容,则表示连接成功:

SQL*Plus: Release 11.1.0.6.0 - Production on
星期二 7
21 00:03:28 2009

Copyright (c) 1982, 2007, Oracle.  All rights reserved
本帖最后由 落↓孤❤寒 于 2010-7-17 13:16 编辑

只使用SQL*Plus,则下载以下两个包即可:
    a)
Instant Client Package - Basic:
    All files required to run OCI, OCCI, and JDBC-OCI applications
    instantclient-basic-win32-11.1.0.6.0.zip (43,316,697 bytes)

    b)
Instant Client Package - SQL*Plus:
    Additional libraries and executable for running SQL*Plus with Instant Client
    instantclient-sqlplus-win32-11.1.0.6.0.zip (788,050 bytes)
(在
http://www.oracle.com/technology/software/tech/oci/instantclient/htdocs/winsoft.html下载
注意要选中
Accept License Agreement 不然不能下载哦


2
、安装配置
    a
、将instantclient-basic-win32-11.1.0.6.0.zip instantclient-sqlplus-win32-11.1.0.6.0.zip解压到同一目录(:F:\Oracle\InstantClient)

    b
、环境变量设置:
   
F:\Oracle\InstantClient增加到系统环境变量PATH中。


   
再添加环境变量TNS_ADMIN (admin目录是自己新建的):
    TNS_ADMIN=F:\Oracle\InstantClient\admin

   
可选环境变量
:
    NLS_LANG=SIMPLIFIED CHINESE_CHINA.ZHS16GBK

    c
、在TNS_ADMIN所指目录F:\Oracle\InstantClient\admin下增加一个配置文件tnsnames.ora。这个文件可以直接从服务器的Oracle安装目录(H:\Oracle\product\11.1.0\db_1\network\admin\tnsnames.ora)下找到,直接复制过来。


tnsnames.ora:

# tnsnames.ora Network Configuration File:
# Generated by Oracle configuration tools.

QINHUA =
#
数据库名字
    (DESCRIPTION =
      (ADDRESS_LIST =
        (ADDRESS = (PROTOCOL = TCP)(HOST =
192.85.1.3)(PORT = 1521)) #
服务器IP
      )
      (CONNECT_DATA =
        (SERVICE_NAME =
QINHUA)
#
数据库名字


      )
    )

3
、使用SQL*Plus
   
打开cmd,输入如下内容:
c:\>sqlplus sys/admin@qinhua
#
数据库名字(注意:登录时不要as sysdba ,不然回报没有权限)
如果输出类似如下内容,则表示连接成功:

SQL*Plus: Release 11.1.0.6.0 - Production on
星期二 7
21 00:03:28 2009

Copyright (c) 1982, 2007, Oracle.  All rights reserved

只使用SQL*Plus,则下载以下两个包即可:
    a)
Instant Client Package - Basic:
    All files required to run OCI, OCCI, and JDBC-OCI applications
    instantclient-basic-win32-11.1.0.6.0.zip (43,316,697 bytes)

    b)
Instant Client Package - SQL*Plus:
    Additional libraries and executable for running SQL*Plus with Instant Client
    instantclient-sqlplus-win32-11.1.0.6.0.zip (788,050 bytes)
(在
http://www.oracle.com/technology/software/tech/oci/instantclient/htdocs/winsoft.html下载
注意要选中
Accept License Agreement 不然不能下载哦


2
、安装配置
    a
、将instantclient-basic-win32-11.1.0.6.0.zip instantclient-sqlplus-win32-11.1.0.6.0.zip解压到同一目录(:F:\Oracle\InstantClient)

    b
、环境变量设置:
   
F:\Oracle\InstantClient增加到系统环境变量PATH中。


   
再添加环境变量TNS_ADMIN (admin目录是自己新建的):
    TNS_ADMIN=F:\Oracle\InstantClient\admin

   
可选环境变量
:
    NLS_LANG=SIMPLIFIED CHINESE_CHINA.ZHS16GBK

    c
、在TNS_ADMIN所指目录F:\Oracle\InstantClient\admin下增加一个配置文件tnsnames.ora。这个文件可以直接从服务器的Oracle安装目录(H:\Oracle\product\11.1.0\db_1\network\admin\tnsnames.ora)下找到,直接复制过来。


tnsnames.ora:

# tnsnames.ora Network Configuration File:
# Generated by Oracle configuration tools.

QINHUA =
#
数据库名字
    (DESCRIPTION =
      (ADDRESS_LIST =
        (ADDRESS = (PROTOCOL = TCP)(HOST =
192.85.1.3)(PORT = 1521)) #
服务器IP
      )
      (CONNECT_DATA =
        (SERVICE_NAME =
QINHUA)
#
数据库名字


      )
    )

3
、使用SQL*Plus
   
打开cmd,输入如下内容:
c:\>sqlplus sys/admin@qinhua
#
数据库名字(注意:登录时不要as sysdba ,不然回报没有权限)
如果输出类似如下内容,则表示连接成功:

SQL*Plus: Release 11.1.0.6.0 - Production on
星期二 7
21 00:03:28 2009

Copyright (c) 1982, 2007, Oracle.  All rights reserved

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics