tnsnames

Oracle - What TNS Names file am I using?

匆匆过客 提交于 2019-11-28 16:04:27
Sometimes I get Oracle connection problems because I can't figure out which tnsnames.ora file my database client is using. What's the best way to figure this out? ++happy for various platform solutions. stjohnroe Oracle provides a utility called tnsping : R:\>tnsping someconnection TNS Ping Utility for 32-bit Windows: Version 9.0.1.3.1 - Production on 27-AUG-20 08 10:38:07 Copyright (c) 1997 Oracle Corporation. All rights reserved. Used parameter files: C:\Oracle92\network\ADMIN\sqlnet.ora C:\Oracle92\network\ADMIN\tnsnames.ora TNS-03505: Failed to resolve name R:\> R:\>tnsping entpr01 TNS

Use tnsnames.ora in Oracle SQL Developer

梦想的初衷 提交于 2019-11-28 15:50:19
I am evaluating Oracle SQL Developer . My tnsnames.ora is populated, and a tnsping to a connection defined in tnsnames.ora works fine. Still, SQL Developer does not display any connections. Oracle SQL Developer Soars mentions, that if you have Oracle client software and a tnsnames.ora file already installed on your machine, Oracle SQL Developer will automatically populate the Connections navigator from the net service names defined in tnsnames.ora. I also tried to set my TNS_ADMIN environment variable, but after restarting SQL Developer there are still no connections displayed. Any ideas?

Parsing tnsnames.ora using regex

狂风中的少年 提交于 2019-11-28 08:58:43
问题 I am attempting to pull some information from my tnsnames file using regex. I started with the following pattern: MYSCHEMA *? = *?[\W\w\S\s]*\(HOST *?= *?(?<host>\w+\s?)\)\s?\(PORT *?= *?(?<port>\d+)\s?\)[\W\w\S\s]*\(SERVICE_NAME *?= *?(?<servicename>\w+)\s?\) which worked fine when MYSCHEMA was the only schema in the file, but when there are other schemas listed after MYSCHEMA it matches all the way to the last schema. I have since created a new pattern: MYSCHEMA *=\s*\(DESCRIPTION =\s*\

how to use tns entries with macromedia drivers for Oracle

北战南征 提交于 2019-11-28 08:38:20
问题 We are currently forced to use macromedia drivers on ColdFusion in order to connect to Oracle databases. The jdbc connection url is like: jdbc:macromedia:oracle://server:port;sid=service The flip side of this approach is that it forces us to 'hard code' the name of the database server as well as the port number and the service name. Does anyone know how the jdbc url should be to make use of the TNSNames entry? For OCI drivers, it is jdbc:oracle:oci:@tnsentry Is it possible to do the same with

How to install ODP.NET 2.111 and ODP.NET 4.112 in the same machine side-by-side while both point to the same database server

瘦欲@ 提交于 2019-11-28 06:51:43
问题 The question is how to install ODP.NET 2.111 and ODP.NET 4.112 in the same machine side-by-side while both point to the same database server using tnsnames.ora I need to support a legacy system based on Oracle 11.1.0. The system is using ODP.NET 2.111 to connect to oracle. There are two clients installed at: C:\oracle\product\11.1.0\client_1 C:\oracle\product\11.1.0\client_2 The tnsnames.ora for both is something like this: xxxx1_SERVICE= (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST =

Oracle TNS names not showing when adding new connection to SQL Developer

孤街醉人 提交于 2019-11-28 02:46:46
I'm trying to connect to an oracle database with SQL Developer. I've installed the .Net oracle drivers and placed the tnsnames.ora file at C:\Oracle\product\11.1.0\client_1\Network\Admin I'm using the following format in tnsnames.ora: dev = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.XXX.XXX)(PORT = XXXX)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = idpdev2) ) ) In SQL Developer, when I try to create a new connection, no TNS-names show up as options. Is there something I'm missing? JaseAnderson SQL Developer will look in the following location in this order for a

Why would Oracle.ManagedDataAccess not work when Oracle.DataAccess does?

时间秒杀一切 提交于 2019-11-27 17:59:24
I'm developing a very simple application which I intend to use to troubleshoot an issue I am having on a few machines but before I even got that far I ran into a few issues, including cpu architecture differences and Oracle database libraries. I have a database server listed in tnsnames.ora , sitting in my C:\oracle\11g\network\admin directory. If I tnsping this server I get the desired response. If I code my C# program to connect to this server with the following code using Oracle.DataAccess.Client, it works. string connectionString = "Data Source=DSDSDS;User Id=UNUNUN;Password=PWPWPW;";

Use tnsnames.ora in Oracle SQL Developer

跟風遠走 提交于 2019-11-27 09:22:22
问题 I am evaluating Oracle SQL Developer. My tnsnames.ora is populated, and a tnsping to a connection defined in tnsnames.ora works fine. Still, SQL Developer does not display any connections. Oracle SQL Developer Soars mentions, that if you have Oracle client software and a tnsnames.ora file already installed on your machine, Oracle SQL Developer will automatically populate the Connections navigator from the net service names defined in tnsnames.ora. I also tried to set my TNS_ADMIN environment

Parsing tnsnames.ora in Visual C# 2008

六月ゝ 毕业季﹏ 提交于 2019-11-27 08:01:45
问题 How I parse tnsnames.ora file using Visual C# (Visual Studio 2008 Express edition) to get the tnsnames ? For instance, my tnsnames.ora file contains ORCL = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = shaman)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = orcl) ) ) BILL = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.10.58)(PORT = 1522)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = orcl) ) ) How can I parse this file to get the TNSNAMES (ie, ORCL,

Oracle TNS names not showing when adding new connection to SQL Developer

偶尔善良 提交于 2019-11-27 04:58:11
问题 I'm trying to connect to an oracle database with SQL Developer. I've installed the .Net oracle drivers and placed the tnsnames.ora file at C:\Oracle\product\11.1.0\client_1\Network\Admin I'm using the following format in tnsnames.ora: dev = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.XXX.XXX)(PORT = XXXX)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = idpdev2) ) ) In SQL Developer, when I try to create a new connection, no TNS-names show up as options. Is there something