Run Query without TNSNAMES.ora information??
I have created a simple tool in Microsoft Excel which basically runs macro to create a reports. Macro contains queries which executes on oracle database server. I can run this tool because I do have the TNSNAMES.ORA file on my desktop but I want to distibute this tool to multiple users. These users are not able to run this tool because TNSNAMES.ORA file is missing on their side.
Is there any way so that the users can run this tool without having TNSNAMES.ORA file?
Can I include this information somewhere in the sql query or macro itself?
of course, it seems that Microsoft ODBC for Oracle" driver was no longer supported after v8 (I said I hadn't done ODBC in a while).
I tested using the oracle supplied driver, and in the "TNS Service Name" box, just ignore the pull down, and type "//host:tnsport/service". I think you need the full service name, as defined on the remote machine. I stopped my local listener, and the odbc connection worked.
this was done on 10.1
Similar Messages
-
Developing without Full client / tnsnames.ora
I am trying to develop an OCI application using Borland C++ Builder. I want to deploy and develop using Instant Client 10G without tnsnames.ora file. I have 2 PCs - NT4 & XP.
On the NT4 PC I had installed the full Oracle Client and was using the tnsnames.ora file and things were working fine. I've since uninstalled the full client and am now getting the "ORA-12154: TNS:could not resolve the connect identifier specified" error (using Instant Client)
The XP box has never had the full client installed, does not have a tnsnames.ora file but works fine using the same code.
I've been looking through this forum and note Justin Cave's comments that you can deploy but not develop using Instant Client but this seems to work fine on my XP box. (I am an Oracle novice so I could be missing something here).
I have also checked the FAQ on connection strings and think I have got that correct (same code works on 1 PC and not the other) and don't think I've set the enviroment variables TNS_ADMIN or ORACLE_HOME on either machine.Hrm, interesting. It always used to be DBQ but it seems it might have changed to SERVER at some point.
Anyway, I tried this and it worked fine for me (using 10204)
TESTFILE.DSN
================
[ODBC]
DRIVER=Oracle in OraDb10g_home1
server=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=gdarling-pc2)(PORT=1521)))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=orcl)))
TEST.VBS
==========
set con = createobject("adodb.connection")
con.open "filedsn=testfile;uid=scott;pwd=tiger;"
set rs = createobject("adodb.recordset")
rs.open "select user from dual",con
msgbox rs.fields(0).value
Note also that unless you really want to create a file dsn, you could also just use a dsnless connection string and pass that directly too:
set con = createobject("adodb.connection")
con.open "driver={Oracle in OraDb10g_home1};uid=scott;pwd=tiger;server=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=gdarling-pc2)(PORT=1521)))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=orcl)))"
set rs = createobject("adodb.recordset")
rs.open "select user from dual",con
msgbox rs.fields(0).value
Hope it helps,
Greg -
Does ODBC SQLDriverConnect allow connections without using tnsnames.ora?
I am trying to find out if the Oracle ODBC driver supports a connection attempt through the SQLDriverConnect() ODBC API function without the need to use the tnsnames.ora file. In other words, I would like to pass into the SQLDriverConnect() function the connection string information that would normally be found in the tnsnames.ora file. The purpose of this would be to force the ODBC driver to bypass reading the tnsnames.ora file entirely and simply use the connection information I pass into the connection buffer in the SQLDriverConnect() function.
If this is possible, can someone explain how to do it? I've tried what I think should have worked, so I'm either not doing this right or this functionallity is not supported by the driver.
Thank you.
-DaveYou might try logging a support request to see if that functionality got restored at some point. My recollection is a year or two old...
The Easy Connect syntax is just another feature of the TNS layer, so it should be available to any apps using the 10g client.
The documentation discusses using the Easy Connect Naming Method in some detail. I've not used it with the Oracle ODBC driver, but it should just work.
Justin -
How to use ODBC SQLDriverConnect() without using tnsnames.ora file
I have an ODBC application that connects to an Oracle 10g database. Currently, my SQLDriverConnect() function call uses the following connection string:
DRIVER={Oracle in OraClient10g_home1}; DBQ=MyDB.world; DBA=W; UID=foo; PWD=bar
This requires an entry in the tnsnames.ora file that looks like this:
MyDB.world =
(DESCRIPTION = (ADDRESS_LIST =
(ADDRESS =
(PROTOCOL = TCP)(Host = server1.intel.com)(Port = 1521)
(ADDRESS =
(PROTOCOL = TCP)(Host = server2.intel.com)(Port = 1521)
(ADDRESS =
(PROTOCOL = TCP)(Host = server3.intel.com)(Port = 1521)
(ADDRESS =
(PROTOCOL = TCP)(Host = server4.intel.com)(Port = 1521)
(LOAD_BALANCE = yes)
(CONNECT_DATA = (SERVER = DEDICATED)
(SERVICE_NAME = MY_SRVC))
However, I would really like to be able to connect using ODBC without having to create that entry in the tnsnames.ora file. I have tried to substitute the DBQ=MyDB.world with the entire (DESCRIPTION=..... string from the original tnsnames.ora file, but it returns the error:
ORA-12154: TNS: Could not resolve the connect identifier specified.
I have heard others are able to use sqlplus with no tnsnames.ora file and the do specify the entire (DESCRIPTION=.... string on the sqlplus connection string, but is this possible to do using the ODBC SQLDriverConnect() function? If so, do I need to use a different keyword/value pair other than DBQ=?
Any help on this would be greatly appreciated.
Thank you.How would that work in a load balanced configuration? Take a closer look at the tnsnames.ora example I included in my original post. I have 4 ADDRESS= sections to denote 4 servers that are part of the load balanced environment.
Also, I'm not familiar with that syntax, I need to use the syntax supported by the SQLDriverConnect() API function, which looks like this:
DRIVER={Oracle in OraClient10g_home1}; DBQ=MyDB.world; DBA=W; UID=foo; PWD=bar
I don't know as SQLDriverConnect() would accept an alternative syntax. But the more important issue here is the ability to specify those 4 servers in the load balanced configuration as indicated by that tnsnames.ora entry. -
How to define a DSN without using a tnsnames.ora on the PC client machine
Hi,
Client : Windows XP with Oracle9i ODBC driver
Server : Oracle 10 on Solaris
I need to define a DSN which does not rely on tnsnames.ora on the client machine.
I tried to use a file dsn, but without success, because I don't know the parameters to use.
I used these params in the file.dsn :
[ODBC]
DRIVER=Oracle9i ODBC Driver
UID=testuser
PWD=testpw
SERVER=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=myhost)(PORT=9999))(CONNECT_DATA=(SERVICE_NAME=testSID)))
It does not work ....Hrm, interesting. It always used to be DBQ but it seems it might have changed to SERVER at some point.
Anyway, I tried this and it worked fine for me (using 10204)
TESTFILE.DSN
================
[ODBC]
DRIVER=Oracle in OraDb10g_home1
server=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=gdarling-pc2)(PORT=1521)))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=orcl)))
TEST.VBS
==========
set con = createobject("adodb.connection")
con.open "filedsn=testfile;uid=scott;pwd=tiger;"
set rs = createobject("adodb.recordset")
rs.open "select user from dual",con
msgbox rs.fields(0).value
Note also that unless you really want to create a file dsn, you could also just use a dsnless connection string and pass that directly too:
set con = createobject("adodb.connection")
con.open "driver={Oracle in OraDb10g_home1};uid=scott;pwd=tiger;server=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=gdarling-pc2)(PORT=1521)))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=orcl)))"
set rs = createobject("adodb.recordset")
rs.open "select user from dual",con
msgbox rs.fields(0).value
Hope it helps,
Greg -
How to list the datasources without use a tnsnames.ora file?
Hi,
I want to use the OracleDataSourceEnumerator class of ODP.Net to list the datasources on which the user can connect.
It's work with a tnsnames.ora on the local station, so good.
But I want use the easy connect naming methode so i have edited the sqlnet.ora file with this:
NAMES.DIRECTORY_PATH= (EZCONNECT, TNSNAMES)
then i have deleted the content of the tnsnames.ora
so my code don't work : none datasource is returned by the OracleDataSourceEnumerator
So my question : is it a way to list the datasources without use a tnsnames.ora file?
Edited by: user13499556 on 17 déc. 2010 08:21You can check
DataConnectionFile.EnumerateDependants method
This post is my own opinion and does not necessarily reflect the opinion or view of Slalom. -
Is there a way to query TNSNames.ora info from OEM repository?
Hello,
My project requires me to generate TNSNames.ora from OEM repository.
Is this possible? Does anyone know how to query this from OEM repository.
I would need HOST, SID and PORT to generate the file in format being asked.
Thanks,
MihirHi Team,
The easiest way is to check the output of below command
OMS_HOME/bin
emctl config oms -list_repos_details
The command works for both 11g and 12c
For EM 11g the output would be like
Oracle Enterprise Manager 11g Release 1 Grid Control
Copyright (c) 1996, 2010 Oracle Corporation. All rights reserved.
Repository Connect Descriptor : (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=xyz.oracle.com)(PORT=1522)))(CONNECT_DATA=(SID=orcl)))
Repository Host :
Repository SID :
Repository User : SYSMAN
For 12c the output would be like
$ emctl config oms -list_repos_details
Oracle Enterprise Manager Cloud Control 12c Release 12.1.0.1.0
Copyright (c) 1996, 2011 Oracle Corporation. All rights reserved.
Repository Connect Descriptor : (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=xyz.oracle.com)(PORT=1522)))(CONNECT_DATA=(SID=orcl)))
Repository User : SYSMAN
Regards,
Rahul -
Bulk import of tnsnames.ora file into SQL developer on first run
Is there a way for SQL developer to read the tnsnames.ora file and import all of the connections from that? Near as I can see, I would either have to manually add each of them or import an xml file of some kind...Thoughts?
There's a feature request for this at the Exchange (http://htmldb.oracle.com/pls/otn/f?p=42626:39:3634225177876117::NO::P39_ID:4582), but they closed it down like a crack-house :-(
So you just have to continue your manual slave-labours...
Have fun,
K. -
Configuring tnsnames.ora / listener.ora with HOST = localhost
Dear Oracle experts,
presently I'm trying to configure an Oracle installation on a Win2k server
to work with HOST = localhost entries in my tnsnames.ora and listener.ora.
I have to do that because I want to use that Oracle installation as an image
for several computers which will get different IPs and computer names.
My problem is, taht I only can configure my entries with a real IP adres (127.0.0.1 does not work ) or with the present name of the system but not with localhost or 127.0.0.1.
My listener.ora looks like below :
# listener.ora Network Configuration File: D:\oracle\product\10.1.0\Db_1\NETWORK\ADMIN\listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SDU = 4096)
(SID_NAME = EMS)
(ORACLE_HOME = D:\oracle\product\10.1.0\Db_1)
(PRESPAWN_MAX = 10)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost )(PORT = 1521))
The listener above lead to a
ERROR - ORA-12541: TNS:no listener
if I try to connect via iSQLPlus. If I exchange HOST = localhost with HOST = mydnsname the I can connect to the computer via isqlplus.
Is there any possibility to configure the listener and tnsnames without using real IP adresses ?
Best regards,
Daniel WetzlerHi maran,
thanks for your answer.
i started the listener from cmd and had the output below :
C:\Documents and Settings\ECS>lsnrctl start
LSNRCTL for 32-bit Windows: Version 10.1.0.2.0 - Production on 22-MAR-2007 16:04
:32
Copyright (c) 1991, 2004, Oracle. All rights reserved.
Starting tnslsnr: please wait...
TNSLSNR for 32-bit Windows: Version 10.1.0.2.0 - Production
System parameter file is D:\oracle\product\10.1.0\Db_1\network\admin\listener.or
a
Log messages written to D:\oracle\product\10.1.0\Db_1\network\log\listener.log
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for 32-bit Windows: Version 10.1.0.2.0 - Produ
ction
Start Date 22-MAR-2007 16:04:33
Uptime 0 days 0 hr. 0 min. 0 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File D:\oracle\product\10.1.0\Db_1\network\admin\listener.o
ra
Listener Log File D:\oracle\product\10.1.0\Db_1\network\log\listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
Services Summary...
Service "EMS" has 1 instance(s).
Instance "EMS", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
C:\Documents and Settings\ECS>
In my listener.log I found the following information :
TNSLSNR for 32-bit Windows: Version 10.1.0.2.0 - Production on 22-MAR-2007 16:11:42
Copyright (c) 1991, 2004, Oracle. All rights reserved.
System parameter file is D:\oracle\product\10.1.0\Db_1\network\admin\listener.ora
Log messages written to D:\oracle\product\10.1.0\Db_1\network\log\listener.log
Trace information written to D:\oracle\product\10.1.0\Db_1\network\trace\listener.trc
Trace level is currently 0
Started with pid=1672
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
TIMESTAMP * CONNECT DATA [* PROTOCOL INFO] * EVENT [* SID] * RETURN CODE
22-MAR-2007 16:11:43 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=)(USER=ECS))(COMMAND=status)(ARGUMENTS=64)(SERVICE=LISTENER)(VERSION=168821248)) * status * 0
So it seems that my lister is running fine, isn't it ?
But I cannot conect to my database....
I pasted my tnsnames.ora below.
Perhabs there's a bug I didn't fins yet. But if I replace in both files t(tnsnames.ora and listener.ora the "localhost" with my local IP it works just fine...
# tnsnames.ora Network Configuration File: D:\oracle\product\10.1.0\Db_1\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.
SIG =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost )(PORT = 1521))
(CONNECT_DATA =
(SERVER = SHARED)
(SERVICE_NAME = SIG)
Hpe someone can help.....
Best regards,
Daniel -
Hi all,
I am using a laptop to connect remotely to my office db. When I checked my tnsnames.ora file in my laptop, i could not find any entry for the SID/DB NAME i am connecting to. I am a bit confused as how it is still connecting to the DB when there is no entry in the tnsnames.ora file. Is there any other means of establishing connection, which may be the case here?
Please give some insight on this topic.
RegardsYou are probably using a "direct" connection (like in basic SQL developer).
Check out this TOAD blog on the three [connection styles|http://www.toadworld.com/BLOGS/tabid/67/EntryID/460/Default.aspx] .
"+The “Direct” connection style does not require the tnsnames.ora file! Instead you provide sufficient database connection info on the connection screen for TOAD and “SQL*Net” to directly access the database – and without requiring an alias name or any translation. You’ll still need the correct or proper Oracle Home identified so that TOAD knows where the “SQL*Net” DLL files are found. But that’s it. Plus TOAD’s saved connection file will contain all that information. So you can utilize TOAD more portably – e.g. carrying and running your “all-inclusive” TOAD tool around on a Flash Drive. Plus it helps to eliminate potential incorrect connections, because with the TNS method you really don’t know where you think you’re pointing to unless you open and/or edit the tnsnames.ora file!+" -
IO read error while running query
Hi All,
I am getting the following error while running queries
ORA-12801: error signaled in parallel query server P066
ORA-01114: IO error writing block to file 4012 (block # 1046921)
ORA-27063: number of bytes read/written is incorrect
SVR4 Error: 28: No space left on device
Additional information: -1
Additional information: 1040384
ORA-01114: IO error writing block to file 4012 (block # 1046921)
ORA-27063: number of bytes read/written is incorrect
SVR4 Error: 28: No space left on device
Additional information: -1
Additional information: 1040384
Pls help
Thanks in AdvanceThis is not a SQL or PL/SQL error and thus not related to the subject matter of this forum.
The error is however specific to exactly what is wrong.
SVR4 Error: 28: No space left on device
Oracle tried to write for example 100 bytes and it could only write 10 bytes - as there were no space left for the other 90 bytes on the disk. -
Hello
[Sorry for asking the same question in the wrong place/forum of "Hyper-V"]
I am using a CentOS 6.5 VM (Linux kernel 2.6.32-431) and (generation 2) CentOS 7 VM (Linux
kernel 3.10.0-123) with Hyper-V KVP daemon installed,
and I periodically query its IP (via using WMI or Powershell to query its KVP information) to manage it.
However, after querying its IP (KVP) for several times, its IP can’t
be queried or shown on Hyper-V Manager anymore (Windows VM is ok without this problem).
And here is the vmIntegrationService status of my CentOS 7 VM for the references.
PS C:\Users\Administrator> (Get-VM -name G2_CentOS7).vmIntegrationService
VMName Name Enabled PrimaryStatusDescription SecondaryStatusDescription
G2_CentOS7 Time Synchronization True OK
G2_CentOS7 Heartbeat True OK
G2_CentOS7 Key-Value Pair Exchange True OK The protocol version of the component installed ...
G2_CentOS7 Shutdown True OK
G2_CentOS7 VSS True No Contact
G2_CentOS7 Guest Service Interface False OK
I attached a simple KVP query Powershell script as
the follows, and this problem can be reproduced in couple minutes if you run two instances with this script at the same time.
$VMName = $args[0]
write-host "$VMName"
filter Import-CimXml
$CimXml = [Xml]$_
$CimObj = New-Object -TypeName System.Object
foreach ($CimProperty in $CimXml.SelectNodes("/INSTANCE/PROPERTY"))
if ($CimProperty.Name -eq "Name" -or $CimProperty.Name -eq "Data")
$CimObj | Add-Member -MemberType NoteProperty -Name $CimProperty.NAME -Value $CimProperty.VALUE
$CimObj
$CimObj = $null
for ($i=1 ; $i -le 10000 ; $i++) {
$a = Get-Date
write-host "$i - Time: " $a.ToLocalTime()
$vm = Get-WmiObject -Namespace root\virtualization\v2 -Query "Select * From Msvm_ComputerSystem Where ElementName='$VMName'"
$vm.ElementName
$vmkvp = Get-WmiObject -Namespace root\virtualization\v2 -Query "Associators of {$vm} Where AssocClass=Msvm_SystemDevice ResultClass=Msvm_KvpExchangeComponent"
$vmkvp.GuestIntrinsicExchangeItems | Import-CimXml
Actually, if your CentOS VM (has LIS) installed with KVP daemon running well,
my test script will show more than 4 keys (include NetworkAddressIPv4 or NetworkAddressIPv6 keys).
However, while the KVP daemon becomes problematic, it will only show a few keys
(ex. 4~6 keys) and at this moment, Hyper-V Manager also can't show IP address of it anymore and you may need to reboot the CentOS VM to recover it.
For example (KVP in 252 time is good, but KVP in 253 and 254 times become problematic)
252 - Time: 8/26/2014 7:19:42 PM
G2_CentOS7
localhost FullyQualifiedDomainName
3.1 IntegrationServicesVersion
10.1.145.190;192.168.122.1 NetworkAddressIPv4
fe80::215:5dff:fe91:b902 NetworkAddressIPv6
3.10.0-123.el7.x86_64 OSBuildNumber
0 OSDistributionData
0 OSDistributionName
199168 OSKernelVersion
7 OSMajorVersion
OSMinorVersion
CentOS Linux OSName
129 OSPlatformId
3.10.0 OSVersion
x86_64 ProcessorArchitecture
253 - Time: 8/26/2014 7:19:42 PM
G2_CentOS7
localhost FullyQualifiedDomainName
3.1 IntegrationServicesVersion
10.1.145.190;192.168.122.1 NetworkAddressIPv4
0 OSDistributionData
0 OSDistributionName
199168 OSKernelVersion
129 OSPlatformId
254 - Time: 8/26/2014 7:19:44 PM
G2_CentOS7
0 OSDistributionData
0 OSDistributionName
199168 OSKernelVersion
129 OSPlatformId
I
found the following patches and gave them a try, but the
problem still remains after applying these patches and the (generation 2) Ubuntu 14.04 with Linux kernel 3.13 also has this problem.
- Patch "Drivers:
hv: util: Fix a bug in the KVP code" has been added to the 3.14-stable tree
- Drivers: hv: vmbus: Fix a bug in the channel callback dispatch code
But (generation 1) Ubuntu 14.04 VM with Linux kernel 3.17 doesn't encounter this problem after querying its KVP/IP information on Hyper-V host several times.
Does anyone know what changes between Linux kernel 3.13 and 3.17 fix this issue?
Thanks,
PaulHi Dexuan and Mike,
Thanks for your help!
I did the patch with rpmbuild on CentOS 6.5 (with kernel 2.6.32-431).
However, the second patch cannot patch on CentOS6.5 since there is no target_cpu in such version.
So we are patching that with the following similar patch but this issue still occurs. (also replace ko in initrd)
https://lists.ubuntu.com/archives/kernel-team/2014-August/047725.html
Can you tell me if any patch I could miss or any suggestion?
Thanks for your time. -
Oracle 8i clients, inconsistent handling of tnsnames.ora (ORA-06401 gotcha)
This is more of a bug report / oddity declaration than a real problem, though it was a pain in the butt to nail down. I post it here for the benefit of anyone else who may run into it down the road.
Using the linux sqlplus client, I kept getting consistent failures connecting to one of a dozen db's, but tests with the (java) netasst client worked fine. After various debugging of other potential causes, it came down to strace'ing the sqlplus client, and noting that it was attempting to connect to the wrong host, despite what was specified on the command line.
What we identified as the most probable cause:
The routines that load and parse the tnsnames.ora file differ between the linux and java clients, with the java client being more tolerant/robust. The tnsnames.ora file I'd been supplied with had come from a fellow user's Win32 machine, and had been edited there, which probably included a couple ^M's or other non-visible characters within the file.
The solution (at least, what I did):
Load the tnsnames.ora file with netasst, and save it again with netasst. Netasst wrote the file in a manner that sqlplus could read accurately, and I got to go have a beer.
- billnHi Fredrik,
You r right. But I have its entry in tnsnames.ora file. The entry looks like this -
My_Service_Name.world =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS =
(COMMUNITY = tcp.world)
(PROTOCOL = TCP)
(Server = Computer_Name_of_Server_having_Ora8i)
(Host = IP_Add_of_Server_having_Ora8i)
(Port = 1521)
(Pipe = ORAPIPE)
(CONNECT_DATA = (SID = ORCL)
The same entry exists in the tnsnames.ora file on the local PCs (same office where the Oracle 8i Server is present) at Site 1 and these PCs connect the server without any problem.
Thanks
Lokesh -
Problem with TNSNAMES.ORA (urgent)
Dear Freinds,
I am trying to run my Forms(6i) on the Form server , but as I try to login to the database to run the form I am getting an error 'ora-12154 : TNS could not resolve the service names' . I have checked the local TNSNAMES.ORA file and it has the entry for my Oracle SID , (my local machine registry has also been changed).
Please tell me if I am missing to set anything .
Thanks in advance .Hellow There,
Go to services,i.e: Start -> Settings -> Control Panel -> Services.
There is a service nam:
OracleTNSNames80
Right click on it and then click "START".
If this could not solve, then go to Oracle Net8 and try to configure "Database location" and/or "Listener Location" and see what happen in the Listener node.
If this did not help, you would go to www.Informit.com -> Free Library.
and navigate through the Library to a free electronic book:"teach u r self Oracle8 in 21 days" .. good book.
Regards
Tariq Khalaf -
SQL developer cannot see connection info from tnsnames.ora file
Greetings All,
I have been using sql developer for a while. Currently on 3.0.04.34.
I have 16 database connections.
Everything was working fine until yesterday.
Today when I tried to connect to a database from the list of connections I am getting following error:
Invalid connection information specified. Verify url format for specified driver.
When I pull up the property for this connection -connection type is still TNS, Netwrok Alias is now greyed out and what was in Netwrok Alias has shifted to Connect Identifier.
When I try to create a new connection I do not see entry from tnsnames.ora file for the databse I am trying to connect to in the Network Alias drop down list.
I can connect to this database from sqlplus.
Has anyone seen this behavior? Does any one know the fix for this?
Thanks.Hi,
Maybe your preference settings got corrupted, or the Tnsnames.ora file got moved to somewhere SQL Developer can't find it.
Are you using either:
1. Tools|Preferences|Database|Advanced|Tnsnames Directory, or a
2. TNS_ADMIN environment variable
to point to your Tnsnames? Having one of those should enable the Network Alias drop-down list to get populated. Otherwise, if the values moved to Connection Identifier are correct, then you won't be to connect in that mode without also having an Oracle client installed with an 11.1 JDBC thick driver (ocijdbc11.dll).
If there is no issue with the Tnsnames. ora location, it might be a good idea to use Export Connections to make a backup of your connections. Then you can try deleting the connections from SQL Developer and re-importing them. Even if that doesn't fix the problem, you should be no worse off.
Regards,
Gary
SQL Developer Team
Maybe you are looking for
-
My itunes freezes when i connect my ipod touch?
I have had my 4th gen. 8GB iPod Touch for about 8 months now. It has worked perfectly, up until now. When i plug my iPod in, iTunes finds it( after about 30 seconds) and it just shows the little icon showing that it's syncing, or loading. It keeps do
-
≥≤ Symbols output in different sizes. Please help!
Working in Quark Xpress 9.5.1, on OS 10.8.4 using Font Agent Pro 5.028... I am having difficulty with the the font Helvetica Condensed. Sometimes the greater than/equal (≥) or less than/equal signs (≤) are different sizes. We have three different mac
-
In trying to reduce my CPU load, I compressed the Activity Monitor. Before I can use the compressed file, I mistakenly deleted it and now when I try to open it, I get the dreaded spinning wheel. After a long wait, I forced quit. What happened and how
-
Records getting multiplied by a factor of 3 when joining with other table
When i query a table association_1 records for a particular network element i get 7 records but join it with rtts_association table to get the rtts_no i m getting 21 records..... the problems is ... 7 records are getting multiplied by a factor of 3 r
-
OS: Win2k3 DB: 10gR2 I have a job that calls a procedure xxx. On weekdays, it runs fine and no issues at all. On weekend, I have been getting ORA-20212: ORA-20212: ORA-06512: at "yyy.SRW", line 648 ORA-29273: HTTP request failed ORA-06512: at "SYS.UT