载入中
自定义HTML载入中... loading
Oracle 11g DBA:Connecting to an Oracle Database from a Client Computer [转贴 2007-11-05 23:27:26]  删除... 
字体变小 字体变大

To connect to an Oracle database, you must first install Oracle Database client software on the client computer.

The easy connect naming method can eliminate the need for service name lookup in the tnsnames.ora files for TCP/IP environments. It enables clients to connect to an Oracle database by using only a TCP/IP connect identifier consisting of a host name and service name:

CONNECT username/password@host/service_name

This naming method provides TCP/IP connectivity to databases without configuring anything.

To run SQL statements against the database, you use the SQL*Plus utility. On Microsoft Windows platforms, the environment is configured when the software is installed. On other platforms, you may have to configure environment variables such as ORACLE_HOME and PATH before you can start SQL*Plus.

To connect to an Oracle database from a Microsoft Windows client computer using easy connect naming:

  1. On the desktop, click Start.

  2. From the Start menu, select Programs (or All Programs), then select the folder that contains the installed Oracle software, for example, Oracle - OracleDB11g_Home.

  3. Select Application Development, and then select SQL*Plus.

    When SQL*Plus starts, the Log On window appears first.

  4. In the Log On window, enter the name and password of the user you want use to connect to the database. In the Host String field, supply the easy connect naming string for the target database, which is of the form:

    host/service_name
        In this string, host is the name of the Oracle database computer and service_name is one of the services defined by the database. If there are no service names specifically defined, then you can use the name of the service that the database creates by default. This service name defaults to the global database name, a name comprising the database name (DB_NAME parameter) and domain name (DB_DOMAIN parameter).
        For example, to connect as the sample schema user hr to a database with the default database name orcl on a host named main at domain name us.acme.com, you would enter the following:
        
    • User Name: HR

    • Password: password

    • Host String: main/orcl.us.acme.com

  5. The SQL*Plus window appears and displays the prompt:

    SQL>

    You can now issue SQL statements against the database.

 〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓

了解如何利用Google广告让您的网站产生收益,请点击下面连接:

手把手教您注册 GoogleAdsense赚美元

所属版块: 科技
票数:
什么是“我顶”?
点击数:    评论数:
本文章引用通告地址(TrackBack Ping URL)为:
本文章尚未被引用。
发表评论
大 名:
(不填写则显示为匿名者)
网 址:
(您的网址,可以不填)
标 题:
内 容:
请根据下图中的字符输入验证码:
(您的评论将有可能审核后才能发表)
和讯个人门户 v1.0 | 和讯部落 | 客服中心