tnsnames

ORA-12514 TNS:listener does not currently know of service requested in connect descriptor for existing service

纵饮孤独 提交于 2019-12-13 02:23:06
问题 I know that this is a pretty popular problem, and I had run into it several times before but were able to resolve it but not this time. I had made sure that I'm using the correct service name by running SQL> select value from v$parameter where name='service_names'; VALUE -------------------------------------------------------------------------------- XE My tnsnames.ora has the XE service name: XE = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521)) (CONNECT_DATA =

ODAC & C# - TNS: Connect timeout occurred - Connecting only through VS2005 debugger

情到浓时终转凉″ 提交于 2019-12-12 19:08:01
问题 I am new to Oracle, and there is an issue I am facing. When I run the application from IDE - Visual Studio 2005, The database connection is established smoothly, but when I run an installed version of the app, the DB connection fails and I get a TNS: Connect timeout occurred error. I tried with SQLNET.ORA and similar solutions found online, but I could not resolve the issue. I wonder why this happens, since the application running through the IDE and through an installation is on the same PC.

Using pure TNSNAMES rather than host-based database connections in Oracle JDeveloper

半城伤御伤魂 提交于 2019-12-12 18:12:39
问题 I'm using Oracle JDeveloper 11.1.1.4.0, and I can create database connections (with a type of Oracle (JDBC) ) using the thin driver without any problems as long as I'm specifying a host. For instance, I can connect to a locally-running Oracle XE database by specifying: Driver: thin Host Name: localhost JDBC Port: 1521 Service Name: XE For connecting to remote databases, I use TNS, and my tnsnames.ora file is set up as below, where MYDATABASE.EXAMPLE.COM is the Oracle Service Identifier I want

Error when run Oracle database sample schema script

大城市里の小女人 提交于 2019-12-12 05:59:48
问题 (I asked this question: SP2-0606: Cannot create SPOOL file , but I still stucked.) I am using Oracle 12c Release 2 on Windows 10 pro x64. Oracle installed at folder E:\app\summer\ . This is my tnsnames.ora # tnsnames.ora Network Configuration File: E:\app\summer\product\12.1.0\dbhome_1\network\admin\tnsnames.ora # Generated by Oracle configuration tools. ORACLR_CONNECTION_DATA = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521)) ) (CONNECT_DATA = (SID = CLRExtProc)

TOAD connects despite the db name not being present in tnsnames.ora

纵然是瞬间 提交于 2019-12-11 18:35:51
问题 I went in TOAD and put in the TNS name for a db that was supplied to me by the DBA. I also put in the user and password and it connected fine. My confusion is that the tnsnames.ora file does not have any entry corresponding to that db name. So how is TOAD resolving the DB name? 回答1: In your Oracle client, the ldap.ora file can list one or more ldap server names, which can be queried to get the Oracle instance info for the given TNS name. This way, TOAD (and other apps) can resolve Oracle

ora-12154 could not resolve… with oracle instant client

♀尐吖头ヾ 提交于 2019-12-11 09:19:49
问题 Here are the details: I installed the oracle instant client 11.2.0.2.0 from the OTN download page on a windows 7 64 bit vm (vmware). I am trying to to connect to a remote oracle database, and I can successfully connect with one program using TNS, but not with SQL*Plus and other applications. Trying to connect with SQL*Plus, using schema@servicename, password, etc, gives the above error. To connect via SQL Developer, normally I would use the basic connection info and not rely on tnsnames, but

ODP.NET Managed tnsnames.ora IFILE references

柔情痞子 提交于 2019-12-11 07:18:52
问题 Does Managed ODP.NET x64 12.1.0.2 tnsname.ora support using IFILE?? I cannot get it to work. For example, with the normal "thick client" unmanaged Oracle client that I have had installed for years, I used to have my tnsnames.ora file with one line in it: IFILE=C:\OracleDataSources\tnsnames.MAIN And then the C:\OracleDataSources\tnsnames.MAIN file contains IFILE references to config files that contain the actual data source definitions for each of the other Oracle instances within our

Can't connect to Oracle using tns

倾然丶 夕夏残阳落幕 提交于 2019-12-11 03:56:09
问题 I'm using an Oracle 11g R2 database. I use Oracle SQL Developer. If i create a new connection and check Basic Connection Type and fill the fields i can connect. If i select TNS and select the one i want in the dropdown menu, it says Failure E/S Exception: The Network Adapter could not establish the connection. This is the tnsnames.ora. I use it to connect to 2 database, dblilly and astrea. I can connect correctly to astrea. Listener is on and the instances ready. Do you see something i miss?

Connect to Oracle database using ROracle with tnsnames.ora on Mac OS 10.10

别等时光非礼了梦想. 提交于 2019-12-11 03:35:16
问题 Followup to Installation of RODBC/ROracle packages on OS X Mavericks... First of all, I have installed ROracle on Mac OS 10.10.3 (Yosemite) using the answer provided by @joran. Additionally, using the start-up plist file to set DYLD_LIBRARY_PATH, I can run library(ROracle) , and it loads just fine. However, I am unable to connect to my database with a tnsnames.ora file. I have added the TNS_ADMIN variable to the .Renviron file, which RStudio seems to pick up: > Sys.getenv("TNS_ADMIN") [1]

Oracle.ManagedDataAccess not resolving alias in connection string

别来无恙 提交于 2019-12-09 03:46:12
问题 I'm getting the following error while trying to connect to an Oracle database from a new VB.NET 4.5 application "ORA-00351: Network Library: Name-Value premature end of string" It seems like OracleConnection is not resolving the alias I am putting in my connection string Me.sCNX = "Data Source=" & sDSN & ";User ID=" & sUSER & ";Password=" & sPWD & ";Enlist=false;Pooling=False;" sDSN being the said alias I have to put the tnsnames.ora file in a custom folder, so I tried to add the environment