tns

Is it possible for Oracle sqlldr to accept a TNS entry as an instance qualifier in Oracle 10 and 11?

六月ゝ 毕业季﹏ 提交于 2019-12-03 12:40:24
Is it possible to use a fully qualified TNS entry using sqlldr bundled with Oracle 10/11? For example, in SQLPlus: sqlplus user/password@(description=(address=(host=localhost)(protocol=tcp)(port=1521))(connect_data=(sid=orcl))) @script.sql But using sqlldr (SQL Loader) there appear to be issues with using the TNS entry directly. Specifically: sqlldr user/password@(description=(address=(host=localhost)(protocol=tcp)(port=1521))(connect_data=(sid=orcl))) bad='bad_file.txt' control='control.ctl' data='data.txt' log='log.txt' direct='true' Here is the error message produced: LRM-00116: syntax

Connection to Oracle via TNS is not working

我是研究僧i 提交于 2019-12-01 08:43:58
I have a Spring Boot app that works smoothly when it connects to an Oracle instance in the classic way: jdbc:oracle:thin:@<server name>:<port num>/<service name> However, when I turn to a connection via tns through a tnsnames.ora stored in my local drive "C:\ORACLE\Client11g\network\admin" something doesn't work and I get this exception: Caused by: org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment] at org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:267) at

Connection to Oracle via TNS is not working

不想你离开。 提交于 2019-12-01 05:37:26
问题 I have a Spring Boot app that works smoothly when it connects to an Oracle instance in the classic way: jdbc:oracle:thin:@<server name>:<port num>/<service name> However, when I turn to a connection via tns through a tnsnames.ora stored in my local drive "C:\ORACLE\Client11g\network\admin" something doesn't work and I get this exception: Caused by: org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment] at org

Oracle - What TNS Names file am I using?

↘锁芯ラ 提交于 2019-11-30 06:16:15
问题 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. 回答1: 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:

ORA-12505 :TNS listener does not currently know of SID given in connect descriptor

对着背影说爱祢 提交于 2019-11-29 14:24:55
I am using Oracle database. I've written a small JDBC connection program in Java but I am facing an issue with the listener. import java.sql.Connection; import java.sql.DriverManager; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; public class JdbcConnection { public static void main(String[] args) throws SQLException,ClassNotFoundException { String url = "jdbc:oracle:thin:@localhost:1521:orcl"; String user = "system"; String password = "password"; Connection connection = null; Class.forName("oracle.jdbc.driver.OracleDriver"); connection =

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-29 12:59:53
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 = xxxx2)(PORT = xxx3)) (CONNECT_DATA = (SERVER = DEDICATED) (SID = xxx4) ) ) yyyy1_SERVICE = (DESCRIPTION =

Oracle ORA-12154 error on local IIS, but not with Visual Studio Development Server

为君一笑 提交于 2019-11-29 08:08:35
I've got an ASP.NET application that can connect to Oracle when it's started by Visual Studio Development Server, but when I deploy it to my local IIS, it does not connect, showing the "ORA-12154: TNS:could not resolve the connect identifier specified" error. My connection string was: Data Source=ABC; User Id=USER; Password=PASSWORD; Tt's using TNS. My tnsnames.ora is located at C:\oracle\instantclient_10_2\network\admin, and my ORACLE_HOME system variable is pointing to C:\oracle\instantclient_10_2. To make it work, I changed the connection string to: "SERVER=(DESCRIPTION =(ADDRESS_LIST =

Oracle ORA-12154: TNS: Could not resolve service name Error?

白昼怎懂夜的黑 提交于 2019-11-28 21:29:46
I am a SQL Server user . I am on a project that is using oracle (which I rarely use) I need to create an ODBC connection so I can access the some data via MS Access I have a application on my machine called oraHome90. It seems to allow a configuration of something called a listener in a “net configuration utility”, I think that a “Local Net Service Name Configuration” needs to also be done. The IT support gave me this information to set up the ODBC connection . I have tried every combination that I can think of. I can get past a test that successfully passes a test to “login“ to the oracle

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

ORA-12505 :TNS listener does not currently know of SID given in connect descriptor

安稳与你 提交于 2019-11-28 08:01:56
问题 I am using Oracle database. I've written a small JDBC connection program in Java but I am facing an issue with the listener. import java.sql.Connection; import java.sql.DriverManager; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; public class JdbcConnection { public static void main(String[] args) throws SQLException,ClassNotFoundException { String url = "jdbc:oracle:thin:@localhost:1521:orcl"; String user = "system"; String password = "password";