oracle 网络服务名的配置
netca参数

netca参数Netca参数是Oracle数据库安装过程中的一个重要组成部分,它用于配置和管理Oracle网络环境。
在安装Oracle数据库时,我们需要使用Netca参数来设置数据库的网络连接和通信方式,以确保数据库能够正常运行和与其他系统进行通信。
Netca参数包括了一系列的选项和配置项,下面我将介绍一些常用的Netca参数及其作用。
1. Listener配置:Listener是Oracle数据库与客户端之间的通信桥梁,通过Listener,客户端可以与数据库进行连接和通信。
在Netca参数中,我们可以设置Listener的监听地址、端口号、协议等信息,以及监听的服务名称和数据库实例名称。
通过合理配置Listener,可以确保数据库能够被客户端正常访问和使用。
2. 网络协议配置:Oracle数据库支持多种网络协议,如TCP/IP、IPC等。
在Netca参数中,我们可以选择合适的网络协议,并进行相应的配置。
不同的网络协议适用于不同的网络环境,通过正确配置网络协议,可以提高数据库的性能和稳定性。
3. 网络连接配置:在Netca参数中,我们可以设置数据库的网络连接方式,如使用静态IP地址还是动态IP地址,以及是否启用连接池等。
通过合理配置网络连接,可以提高数据库的连接效率和并发性能。
4. 安全配置:在Netca参数中,我们可以设置数据库的安全选项,如启用加密连接、启用身份验证等。
通过合理配置安全选项,可以保护数据库的数据安全和隐私。
5. 高可用性配置:在Netca参数中,我们可以设置数据库的高可用性选项,如启用数据保护、启用故障转移等。
通过合理配置高可用性选项,可以提高数据库的可用性和容错性。
在使用Netca参数进行配置时,我们需要根据实际需求和网络环境进行选择和设置。
同时,我们还需要注意一些常见的问题和注意事项,如避免端口冲突、避免网络防火墙的限制等。
总之,Netca参数是Oracle数据库安装和配置过程中的重要组成部分,它能够帮助我们正确配置和管理数据库的网络环境,以确保数据库能够正常运行和与其他系统进行通信。
oracle连接参数

Oracle连接参数主要用于设置连接数据库的详细信息,包括连接字符串、用户名、密码、端口号、服务名等。
以下是一些常用的Oracle连接参数:1. 连接字符串(TNS名称):用于标识Oracle数据库实例的位置和类型。
通常采用以下格式:TNS_NAME = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 主机名)(PORT = 端口号)) (CONNECT_DATA = (SERVICE_NAME = 服务名)))2. 用户名和密码:用于验证连接数据库的用户身份。
在命令行工具(如SQL*Plus)中使用,格式如下:USERID/PASSWORD=用户名/密码3. 端口号:用于指定Oracle数据库监听的端口。
默认情况下,Oracle数据库监听的端口为1521。
4. 服务名:用于区分同一台服务器上运行的多个Oracle数据库实例。
格式如下:SERVICE_NAME = 服务名5. 数据库字符集:用于指定Oracle数据库的字符集,例如UTF8、AL32UTF8等。
6. NLS参数:用于设置Oracle数据库的时区、语言等环境变量。
例如:NLS_DATE_FORMAT = 'YYYY-MM-DD HH24:MI:SS'NLS_TIME_ZONE = 'PRC'7. 数据库类型:用于指定Oracle数据库的类型,如ORACLE、SEQUEL等。
8. 连接池参数:用于设置连接池的属性,如最大连接数、最小连接数等。
例如:POOL_NAME = 'mypool'MAX_POOL_SIZE = 10MIN_POOL_SIZE = 59. 隐私设置:用于设置连接数据库的隐私选项,如加密、身份验证等。
SECURITY_MEASURES = ('NONE', 'KERBEROS', 'SSL', 'EXTERNAL_AUTH)10. 其他参数:根据具体需求,还可以设置其他相关参数,如数据库备份、恢复等。
Oracle数据库监听器(LISTENER)和本地服务名(Tnsname)配置

Oracle数据库监听器(LISTENER)和本地服务名(Tnsname)配置分类:Oracle 基础知识2009-11-24 10:12 8315人阅读评论(7) 收藏举报一、监听器(LISTENER)监听器是Oracle基于服务器端的一种网络服务,主要用于监听客户端向数据库服务器端提出的连接请求。
既然是基于服务器端的服务,那么它也只存在于数据库服务器端,进行监听器的设置也是在数据库服务器端完成的。
二、本地服务名(Tnsname)Oracle客户端与服务器端的连接是通过客户端发出连接请求,由服务器端监听器对客户端连接请求进行合法检查,如果连接请求有效,则进行连接,否则拒绝该连接。
本地服务名是Oracle客户端网络配置的一种,另外还有Oracle名字服务器(Oracle Names Server)等。
Oracle常用的客户端配置就是采用的本地服务名,本文中介绍的也主要是基于本地服务名的配置。
三、Oracle网络连接配置方法配置Oracle服务器端与客户端都可以在其自带的图形化Oracle网络管理器(Oracle Net Manager)里完成(强烈建议在这个图形化的工具下完成Oracle 服务端或客户端的配置)。
在Windows下,点击“开始/程序/Oracle - OraHome92/Configuration and Migration Tools/Net Manager”启动Oracle网络管理器工具,在Linux/Unix下,利用netmgr命令来启动图形化Oracle网络管理器,如:$ netmgrWindows下启动Net Manager图形窗口如下图示:图(一)1、 Oracle监听器配置(LISTENER)如图(一)示,选中树形目录中监听程序项,再点击左上侧“+”按钮添加监听程序,点击监听程序目录,默认新加的监听器名称是LISTENER(该名称也可以由任意合法字符命名)。
选中该名称,选中窗口右侧栏下拉选项中的“监听位置”,点击添加地址按钮。
Oracle HTTP Server 11g R1配置指南说明书

Oracle HTTP Server 11g R1 Configuration for FLEXCUBEOracle FLEXCUBE Universal BankingRelease 12.4.0.0.0[May] [2017]Table of Contents1.PURPOSE (3)2.INTRODUCTION TO ORACLE HTTP SERVER (OHS) (3)2.1HTTP L ISTENER (3)2.2M ODULES (MODS) (3)3.INSTALLATION OF OHS 11G (4)4.CONFIGURE ORACLE HTTP SERVER INFRONT OF WEBLOGIC SERVER (11)4.1F OR W EB L OGIC IN SINGLE INSTANCE (11)4.2F OR W EBLOGIC INSTANCES IN CLUSTER (12)5.ENABLE “WEBLOGIC PLU G-IN ENABLED” FLAG I N WEBLOGIC (13)PRESSION RULE SETTING (13)6.1L OADING MOD_DEFLATE (13)6.2C ONFIGURING FILE TYPES (14)6.3HTTPD.CONF FILE CHANGES (14)7.CONFIGURING SSL FOR ORACLE HTTP SERVER (16)7.1SSL CONFIGURATION FOR I NBOUND R EQUEST TO O RACLE HTTP S ERVER (16)7.1.1Create a new Wallet and import Certificate (16)7.1.2Configuring Wallet in ssl.conf file (20)7.2C ONFIGURING SSL BETWEEN O RACLE HTTP S ERVER AND O RACLE W EBLOGIC S ERVER (21)7.2.1Turn off KeepAliveEnabled (21)7.2.2To enable one-way SSL (21)7.2.3To enable two-way SSL (22)8.SAMPLE CONFIGURATION FILES (23)9.STARTING, STOPPING, AND RESTARTING ORACLE HTTP SERVER (23)9.1S TART (23)9.2S TOP (23)9.3R ESTART (23)10.TEST THE APPLICATION (24)11.SERVER LOGS LOCATION (24)12.REFERENCES (24)1. PurposeThe objective of this document is to explain the installation and configuration of Oracle HTTP Server 11g R1(11.1.1.6.0). This includes setting up of server details, configuration of compression rules and enabling SSL.2. Introduction to Oracle HTTP Server (OHS)Oracle HTTP Server is the Web server component for Oracle Fusion Middleware. It is based on Apache web server, and includes all base Apache modules and modules developed specifically by Oracle. It provides a HTTP listener for Oracle WebLogic Server and the framework for hosting static pages, dynamic pages, and applications over the Web. Key aspects of Oracle HTTP Server are its technology, its serving of both static and dynamic content and its integration with both Oracle and non-Oracle products.Oracle HTTP Server consists of several components that run within the same process. These components provide the extensive list of features that Oracle HTTP Server offers when handling client requests.Following are the major components:2.1 HTTP ListenerOracle HTTP Server is based on an Apache HTTP listener to serve client requests. An HTTP server listener handles incoming requests and routes them to the appropriate processing utility.2.2 Modules (mods)Modules extend the basic functionality of Oracle HTTP Server, and support integration between Oracle HTTP Server and other Oracle Fusion Middleware components. There are modules developed specifically by Oracle for Oracle HTTP Server. Ex: mod_wl_ohs, mod_plsqlOracle HTTP Server also includes the base Apache and third-party modules out-of-the-box.These modules are not developed by Oracle. Ex: mod_proxy, mod_perl3. Installation of OHS 11gInvoke the setup exe to start the installationSelect Skip Software UpdatesSelect Install and ConfigureSelect only Oracle HTTP ServerEnter the required OHS instance and component namesThis completes the installation of Oracle HTTP Server with <Instance> and <component>. Example: Instance is instance1 and component is ohs1.If you would like to change the port after the installation(OHS Listen Port) edit$ORACLE_INSTANCE/config/OHS/<component_name>/httpd.conf and change the listen port.NOTE: This port is for http protocol and not for https.4. Configure Oracle HTTP Server infront of Weblogic ServerIn Oracle HTTP Server requests from Oracle HTTP Server to Weblogic server are proxied usingmod_wl_ohs module. This configuration file needs to be modified to include the Weblogic server and port details.mod_wl_ohs.conf file is located at${ORACLE_INSTANCE}/config/OHS/{COMPONENT_NAME}/mod_wl_ohs.confAdd the below directives to mod_wl_ohs.conf file.4.1 For WebLogic in single instance<Location /<<context/url>> >SetHandler weblogic-handlerWebLogicHost <<server name>>WeblogicPort <<port>></Location>Example:<Location /FCJNeoWeb>SetHandler weblogic-handlerWebLogicHost wlserver1WeblogicPort 7707</Location>This will forward /FCJNeoWeb from HTTP server to /FCJNeoWeb on WebLogic Server wlserver1: 77074.2 For Weblogic instances in cluster<Location /<<context/url>> >SetHandler weblogic-handlerWebLogicCluster <server1>:<port1>,<server2>:<port2></Location>Example<Location / FCJNeoWeb >SetHandler weblogic-handlerWebLogicCluster wlserver1:7010, wlserver2:7010</Location>This will forward /FCJNeoWeb from HTTP server to /FCJNeoWeb on WebLogic Cluster wlserver1:7010 and wlserver2:70105.Enable “WebLogic Plug-In Enabled” flag in weblogicThis flag needs to be enabled in weblogic if it is accessed through proxy plugins. When the WebLogic plugin is enabled, a call to getRemoteAddr will return the address of the browser client from the proprietary WL-Proxy-Client-IP header instead of the web server.a. Plugin flag at managed server leveli. Click on ‘Environment’- > 'Servers' -> '<ManagedServer>' -> 'General' -> 'Advanced'ii. Check the 'WebLogic Plug-In Enabled' box.iii. Click 'Save'iv. Restart the Server.b. Plugin flag at domain levelv. Click on <Domain> -> 'Web Applications'vi. Check the 'WebLogic Plug-In Enabled' box.vii. Click 'Save'viii. Restart the server.6. Compression rule settingContent compression in Oracle HTTP Server is done using mod_deflate. This can compress HTML, text or XML files to approx. 20 - 30% of their original sizes, thus saving on server traffic. However, compressing files causes a slightly higher load on the server, but clients' connection times to server is reduced.6.1 Loading mod_deflatemod_deflate is used for compression in OHS and this is installed in Oracle HTTP Server under location "${ORACLE_HOME}/OHS/modules/mod_deflate.so"But it might not be loaded.To load the file add the below directive in mod_wl_ohs.conf fileLoadModule deflate_module "${ORACLE_HOME}/OHS/modules/mod_deflate.so"6.2 Configuring file typesmod_deflate also requires to specify which type files are going to be compressed.In the LOCATION section of mod_wl_ohs.conf file add the below entries.AddOutputFilterByType DEFLATE text/plainAddOutputFilterByType DEFLATE text/xmlAddOutputFilterByType DEFLATE application/xhtml+xmlAddOutputFilterByType DEFLATE text/cssAddOutputFilterByType DEFLATE application/xmlAddOutputFilterByType DEFLATE application/x-javascriptAddOutputFilterByType DEFLATE text/htmlSetOutputFilter DEFLATEImages are supposed to be in a compressed format, and therefore are bypassed by mod_deflate.6.3 httpd.conf file changesThis is a server configuration file which typically contains directives that affect how the server runs, such as user and group IDs it should use, and location of other files. Cross check the existence of mod_wl_ohs.conf include in httpd.conf file.httpd.conf file is present under location“${ORACLE_INSTANCE}/config/OHS/{COMPONENT_NAME}/httpd.conf”In this file cross check for the below entryinclude "${ORACLE_INSTANCE}/config/OHS/${COMPONENT_NAME}/mod_wl_ohs.conf"If above include entry is not present, then add the above include section.7. Configuring SSL for Oracle HTTP ServerSecure Sockets Layer (SSL) is required to run any Web site securely. Secure Sockets Layer (SSL) is an encrypted communication protocol that is designed to securely send messages across the Internet.Reading of “SSL_Configuration on Weblogic” document provide d as part of FCUBS installation isrecommended before proceeding with further setup.In Oracle HTTP server, SSL configuration can be done between1. Browser to Oracle HTTP Server(Mandatory)2. Oracle HTTP Server to Oracle Weblogic Server(If required)7.1 SSL configuration for Inbound Request to Oracle HTTP ServerPerform these tasks to enable and configure SSL between browser and Oracle HTTP Server.1. Obtain a certificate from CA or create a self signed certificate.2. Create an Oracle Wallet which contains the above SSL Certificate. The default wallet that isautomatically installed with Oracle HTTP Server is for testing purposes only. The default wallet is located in "${ORACLE_INSTANCE}/config/OHS/${COMPONENT_NAME}/keystores/default"3. Configuring Wallet in ssl.conf file7.1.1 Create a new Wallet and import Certificate1. Go to the \Oracle_WT1\bin\launch.exe, this will launch your wallet manager2. Click on Create new and then click no option.3. Enter the wallet password and click on OK, this will create a new wallet.4. Not it will ask for certificate request creation, Click on NO to proceed5. Right click on trusted certificates and then import trusted certificate.6. Browse to the folder where certificate is stored and click on Open7. Click on Save Wallet button on the left side navigation and save the wallet either to defaultlocation("${ORACLE_INSTANCE}/config/OHS/${COMPONENT_NAME}/keystores/default") or folder of your choice.8. Click on Wallet tab and enable Auto Login7.1.2 Configuring Wallet in ssl.conf fileIn ssl.conf file the newly created wallet need to updated. This file is located under folder"${ORACLE_INSTANCE}/config/OHS/${COMPONENT_NAME}/1. Change the SSLWallet directive to point to the location of new wallet created.SSLWallet "${ORACLE_INSTANCE}/config/${COMPONENT_TYPE}/${COMPONENT_NAME}/keystores/"2. Change the Listen port number in ssl.conf file to the SSL enabled port, by default the value is 44437.2 Configuring SSL between Oracle HTTP Server and Oracle Weblogic ServerSSL for outbound requests from Oracle HTTP Server are configured in mod_wl_ohs.Refer to “SSL_Configura tion on Weblogic” document for weblogic server setting mentioned in below section.7.2.1 Turn off KeepAliveEnabledThe below parameter in mod_wl_ohs should be turned off, by default it is on. Add the below directive under LOCATION section of mod_wl_ohs fileKeepAliveEnabled OFF7.2.2 To enable one-way SSL1. Generate a custom keystore identity.jks for Weblogic Server containing a certificate.2. At Identity section in Keystores tab in weblogic Admin Console for server seta. The custom trust store with the identity.jks file locationb. The keystore type as JKSc. The passphrase used to created the keystore3. Copy the certificate to Oracle HTTP Server and import the new certificate into OHS wallet as a trustedcertificate.4. Add following new directive in mod_wl_ohs.conf to point to the wallet locationWlSSLWallet "${ORACLE_INSTANCE}/config/OHS/{COMPONENT_NAME}/keystores/default"5. Change the port in mod_wl_ohs file to point to SSL port of Weblogic server.6. Restart both Weblogic Server and Oracle HTTP Server7.2.3 To enable two-way SSL1. Perform one-way SSL configuration steps2. Generate a new trust store, trust.jks for Weblogic server3. Keystore created for one-way SSL could be used, but it is recommended to create a separate truststore4. Export the user certificate from Oracle HTTP Server wallet, and import it into truststore created above5. At Trust section in Keystores tab in Weblogic Admin Console for the server seta. The custom trust store with the trust.jks file locationb. The keystore type as JKSc. The passphrase used to created the keystore6. Under the SSL tabEnsure trusted CA is set as from Custom Trust Keystore.7. Restart Weblogic Server8. Sample Configuration Fileshttpd.conf mod_wl_ohs.conf ssl.conf9. Starting, Stopping, and Restarting Oracle HTTP ServerNavigate to the below location in command prompt ${ORACLE_INSTANCE}/bin/ and run below commands 9.1 Startopmnctl startproc ias-component={COMPONENT_NAME}Example: opmnctl startproc ias-component=ohs19.2 Stopopmnctl stopproc ias-component={COMPONENT_NAME}Example: opmnctl stopproc ias-component=ohs19.3 Restartopmnctl restartproc ias-component={COMPONENT_NAME}Example: opmnctl restartproc ias-component=ohs110. Test the applicationTest the application deployed on Weblogic using Oracle HTTP Server after restarting both the oracle http server and weblogic serverhttps://ohs_servername:ohs_https_port/<<context/url>>http://ohs_servername:ohs_http_port/<<context/url>>ohs_servername: server on which OHS is deployedohs_https_port: port number mentioned against LISTEN directive in SSL.conf fileohs_http_port: port number mentioned against LISTEN directive in httpd.conf fileExample:https://localhost:4443/FCJNeoWeb/welcome.jspOrhttp://localhost:7777/FCJNeoWeb/welcome.jsp11. Server Logs LocationOracle HTTP Server Logs are generated under folder${ORACLE_INSTANCE}/diagnostics/logs/OHS/{COMPONENT_NAME}/12. ReferencesSSL_Configuration.doc for Weblogic provided as part of FCUBS installation./cd/E16764_01/web.1111/e10144/under_mods.htm/cd/E25054_01/core.1111/e10105/sslconfig.htmOracle_HTTP_Server_Configuration[May] [2017]Version 12.4.0.0.0Oracle Financial Services Software LimitedOracle ParkOff Western Express HighwayGoregaon (East)Mumbai, Maharashtra 400 063IndiaWorldwide Inquiries:Phone: +91 22 6718 3000Fax:+91 22 6718 3001/financialservices/Copyright © 2007, 2017, Oracle and/or its affiliates. All rights reserved.Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners. U.S. GOVERNMENT END USERS: Oracle programs, including any operating system, integrated software, any programs installed on the hardware, and/or documentation, delivered to U.S. Government end users are "commercial computer software" pursuant to the applicable Federal Acquisition Regulation and agency-specific supplemental regulations. As such, use, duplication, disclosure, modification, and adaptation of the programs, including any operating system, integrated software, any programs installed on the hardware, and/or documentation, shall be subject to license terms and license restrictions applicable to the programs. No other rights are granted to the U.S. Government.This software or hardware is developed for general use in a variety of information management applications. It is not developed or intended for use in any inherently dangerous applications, including applications that may create a risk of personal injury. If you use this software or hardware in dangerous applications, then you shall be responsible to take all appropriate failsafe, backup, redundancy, and other measures to ensure its safe use. Oracle Corporation and its affiliates disclaim any liability for any damages caused by use of this software or hardware in dangerous applications.This software and related documentation are provided under a license agreement containing restrictions on use and disclosure and are protected by intellectual property laws. Except as expressly permitted in your license agreement or allowed by law, you may not use, copy, reproduce, translate, broadcast, modify, license, transmit, distribute, exhibit, perform, publish or display any part, in any form, or by any means. Reverse engineering, disassembly, or decompilation of this software, unless required by law for interoperability, is prohibited.The information contained herein is subject to change without notice and is not warranted to be error-free. If you find any errors, please report them to us in writing.This software or hardware and documentation may provide access to or information on content, products and services from third parties. Oracle Corporation and its affiliates are not responsible for and expressly disclaim all warranties of any kind with respect to third-party content, products, and services. Oracle Corporation and its affiliates will not be responsible for any loss, costs, or damages incurred due to your access to or use of third-party content, products, or services.。
oracle配置文件详解

2. 则查询tnsnames.ora文件,从里边找orcl的记录,并且找到主机名,端口和service_name
3. 如果listener进程没有问题的话,建立与listener进程的连接。
4. 根据不同的服务器模式如专用服务器模式或者共享服务器模式,listener采取接下去的动作。默认是专用服务器模式,没有问题的话客户端就连接上了数据库的server process。
(SERVICE_NAME = sales)
)
)
注意:如果数据库服务器用MTS,客户端程序需要用database link时最好明确指明客户端用dedicated直连方式,不然会遇到很多跟分布式环境有关的ORACLE BUG。一般情况下数据库服务器用直接的连接会好一些,除非你的实时数据库连接数接近1000。
如果我是这个样子
NAMES.DIRECTORY_PATH= (TNSNAMES)
那么客户端就只会从tnsnames.ora查找orcl的记录,括号中还有其他选项,如LDAP等并不常用。
2. Tnsnames.ora------这个文件类似于unix 的hosts文件,提供的tnsname到主机名或者ip的对应,只有当sqlnet.ora中类似
TWO_TASK=appdb;export TWO_TASK
来指定默认的目标数据库
#-------------
平时排错可能会用到的
1.lsnrctl status查看服务器端listener进程的状态
LSNRCTL>; help
The following operations are available
数据库别名的使用方法

数据库别名的使用方法数据库别名是指为了方便使用,给一个数据库或表起一个简短、易记的名称,用这个名称来代替原来的完整名称。
这样就可以在不引起混淆的情况下简化命名,方便查询和使用。
使用数据库别名可以提高操作效率和准确性,尤其是在处理多个数据库时更加方便。
下面我们来介绍一下数据库别名的使用方法。
1. 创建数据库别名在数据库管理系统中,创建数据库别名通常是在连接到数据库时进行的。
在进行数据库连接时,可以通过配置文件或命令行参数的方式指定使用的别名。
以Oracle为例,创建数据库别名的方法如下:1.1 使用网络服务名在Oracle数据库中,使用网络服务名来创建别名是比较常用的方式。
首先,在TNSNAMES.ORA文件中配置网络服务名,格式为:<alias>=(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=<hostname>)(PORT=<port>))(CONNECT_DATA=(SERVICE_NAME=<service_name>)))其中:- <alias>为别名名称,可以自定义。
- <hostname>为主机名称或IP地址。
- <port>为监听端口号。
- <service_name>为服务名称。
配置完网络服务名后,在Sqlplus或其他工具中创建别名即可。
例如:SQL> create public database link <alias> connect to <username> identified by <password> using '<alias>';- <alias>前半部分为数据库别名名称。
- <alias>后半部分为网络服务名。
1.2 使用tnsnames.ora中的别名如果在tnsnames.ora文件中已经配置好别名,还可以直接使用这些别名进行连接。
oracle客户端安装指南(10g)

oracle客户端安装指南(Oracle 10g)注意:1.oracle客户端与oracle冲突,两者只能安装其一。
2.为进行说明的安装配置步骤按默认设置进行即可。
安装Oracle客户端为正常使用汇文客户端需要安装Oracle客户端,有两种安装方式,详细安装方式如下:除了下面提到的安装步骤外,其它的都用默认选项安装完成即可。
选择“自定义”安装方式选择下面的组件● Oracle Database Utilties● SQL * PLUS● Oracle Windows Interfaces● Oracle Net安装完成以后一般会自动弹出网络配置对话框,网络配置如下所述:配置连接Oracle数据库的网络服务名在Oracle客户端安装完成时,会出现配置网络服务名的界面,按照下面的方法进行配置:也可以通过“开始”●->“程序” ❍->“Oracle–OraClient10g_home1”■->“Configuration and Migration T ools”(配置和移植工具)■->“Net Configuration Assitant”配置连接Oracle数据库的网络服务名。
Net8 Configuration Assitant 的配置过程见下图1. 选择下一步2. 输入Oracle数据库的全局数据库名,一般是“orcl”3. 输入Oracle数据库的IP地址4. 输入网络服务名,可以任意填写,一般配置为“libsys”在完成上述配置后,运行SQL/PLUS看是否成功,如不成功则需手动配置监听。
手动配置监听步骤如下:1.开始- Oracle–OraClient10g_home1- Configuration and Migration Tools”(配置和移植工具)-Net Manager;这是服务器名配置完成的画面。
这是监听配置完成的情况。
2.新建服务器名,如果已存在就不需要建立,直接进行第三步。
Oracle Net Configuration Assistant 配置步骤

Net Configuration Assistant 配置步骤假设数据库所在服务器IP地址为: 192.168.0.1数据库实例名为:ora92用户名: umap密码:umap第一步:打开配置程序位于:程序-->Oracle - OraHome92 -->Configuration and MigrationTools-->Net Configuration Assistant ;第二步:选择配置项:打开程序后,出现的界面中有四个选项, 分别为(1)监听程序配置,(2)命名方法配置,(3)本地NET服务名配置,(4)目录使用配置. 这里我们选择第3个,点下一步第三步:根据需要选择操作内容,是添加还是对以前的配置进行修改或删除;第四步:根据您要连接的Oracle数据据库版本选择, 这里我们选择Oracle8i或更高版本数据库或服务;第五步:服务名,输入示例中的实例名;第六步:选择TCP;第七步:主机名:输入示例中的IP地址; 使用默认端口1521;第八步:使用您的登录帐户与密码进行连接测试“ORA-12514:TNS:监听程序当前无法识别连接描述符中请求的服务”的解决方法ORA-12154:TNS: 无法处理服务名解决方案:1.服务是否打开2.监听是否打开3.C:\oracle\ora92\network\admin目录下tnsnames.ora文件中是否有你建的库名和主机名比如:AA =(DESCRIPTION =(ADDRESS_LIST =(ADDRESS = (PROTOCOL = TCP)(HOST = 10.144.100.89)(PORT = 1521)) )(CONNECT_DATA =(SERVICE_NAME = AA)))SQL SERVER连接oracle数据库几种方法2010年08月27日星期五09:35 P.M.--1 方式--查询oracle数据库中的表SELECT *FROM OPENDA TASOURCE('MSDAORA','Data Source=GE160;User ID=DAIMIN;Password=DAIMIN')..DAIMIN.JOBS举一反三:在查询分析器中输入:SELECT *FROM OPENDA TASOURCE('MSDAORA','Data Source=ORCL;User ID=SYSTEM;Password=manager')..HKDY.S_HD_HKDY--在sqlserver中创建与oracle数据库中的表同名的表select * into JOBS fromOPENDA TASOURCE('MSDAORA','Data Source=GE160;User ID=daimin;Password=daimin')..DAIMIN.JOBSselect * from JOBS--2、方式--在master数据库中查看已经存在的链接服务器select * from sysserversEXEC sp_addlinkedserver@server = 'GE160',@srvproduct = 'Oracle',@provider = 'MSDAORA',@datasrc = 'GE160'exec sp_addlinkedsrvlogin 'GE160', false, 'sa', 'daimin', 'daimin'--要在企业管理器内指定登录帐号exec sp_dropserver GE160select * from GE160..DAIMIN.JOBSdelete from GE160..DAIMIN.JOBS--备注:引用ORACLE服务器上的表时,用户名称与表名一定要大写字母。