Sql Developer not reading right tnsnames.ora
I have both a local 9iv2 and a 10xe (app_express) databases installed. Oracle home is set to ora92 and therefore should be reading the tnsnames.ora file in c:\oracle\ora92\network\admin. However, I recently used SQL Developer to connect to the 10xe database, and now all it reads is the tnsnames.ora file in the oraclexe\....\network\admin directory.
Any suggestions as to how to get it to use the tnsnames.ora from the ora92 home again??
The only solution I can think of now is to create one tnsnames.ora file with all the connections I need and copy it to each place where a tnsnames.ora file has been installed (ora92, ver 8 server, oraclexe, designer, forms/reports installs - etc.) Any other suggestions would be appreciated. I don't know why it is not reading from the specified home.
Thanks
Glenn
Hi,
This should help.
Re: tns_admin
-kris
Similar Messages
-
SQL Developer can't see tnsnames.ora
Hiya. I hope someone can help with this. I installed Oracle instant client (basic lite) on my new Windows 7 machine (32 bit) - yeah, I know Windows 7 is not supported, but my gut feeling is that this isn't the issue I'm having.
I've put my tnsnames.ora file in the same folder as instant client (C:\program files\oracle\instantclient), have created a system environment variable TNS_ADMIN which points to that folder, and have added that folder to the system "path" environment variable. That should do it, right?
When I try to create a new connection in SQL Developer 2.1.0.63, and change my connection type to "tns", I don't see any database connections.
Troubleshooting ideas? Other ways to test that the needed Oracle files are installed properly?
Thanks!Here's how to debug where it's looking:
http://krisrice.blogspot.com/2008/04/it-seems-to-come-up-often-that-some.html
-kris -
Sql developer not working which i got when i installed oracle 11g on win7
Hi i successfully instaled my oracle 11g on windows 7,but when iam trying to use my sql developer chich i got by default with 11g is not working ..when i open it its asking me for "select the path of java.exe file" when i browse and given the right path .iits again giving me the same pop and not throughing any error msg at least.
Could u pls help me out on this??Well, not supported does not necessarly mean does not work, but if you have problem, then your only way is to find a solution on your own or through other fellows who are doing the same.
Anyway, you could ask your question in the SQL Developer dedicated forum, but again, you could have some unexpected issues by working on non-supported config :
SQL Developer
Nicolas. -
SQL Developer not starting - new installation
I installed Oracle 11g on Windows 8, and am having problems with SQL developer starting. I have tried to debug but not a clue what I am looking for. I really could use some help. It is a 64 bit installation - and seems to be OK as I can connect to the DB in SQL plus. Thanks a lot!
From a self-help perspective, did the following after looking at some threads:
Ran sqldeveloper.exe and the output I got is:
C:\app\kmalik\product\11.2.0\dbhome_1\sqldeveloper\sqldeveloper\bin>set
ALLUSERSPROFILE=C:\ProgramData
APPDATA=C:\Users\kmalik\AppData\Roaming
CommonProgramFiles=C:\Program Files\Common Files
CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files
CommonProgramW6432=C:\Program Files\Common Files
COMPUTERNAME=KMMAC
ComSpec=C:\Windows\system32\cmd.exe
FP_NO_HOST_CHECK=NO
HOMEDRIVE=C:
HOMEPATH=\Users\kmalik
LOCALAPPDATA=C:\Users\kmalik\AppData\Local
LOGONSERVER=\\KMMAC
NUMBER_OF_PROCESSORS=1
OS=Windows_NT
Path=C:\app\kmalik\product\11.2.0\dbhome_1\bin;C:\Program Files (x86)\Parallels\
Parallels Tools\Applications;C:\Windows\system32;C:\Windows;C:\Windows\System32\
Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Microsoft\Web
Platform Installer\;C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v
1.0\;C:\Program Files (x86)\Windows Kits\8.0\Windows Performance Toolkit\;C:\Pro
gram Files\Microsoft SQL Server\110\Tools\Binn\
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE=AMD64
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 58 Stepping 9, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=3a09
ProgramData=C:\ProgramData
ProgramFiles=C:\Program Files
ProgramFiles(x86)=C:\Program Files (x86)
ProgramW6432=C:\Program Files
PROMPT=$P$G
PSModulePath=C:\Windows\system32\WindowsPowerShell\v1.0\Modules\
PUBLIC=C:\Users\Public
SystemDrive=C:
SystemRoot=C:\Windows
TEMP=C:\Users\kmalik\AppData\Local\Temp
TMP=C:\Users\kmalik\AppData\Local\Temp
USERDOMAIN=KMMAC
USERDOMAIN_ROAMINGPROFILE=KMMAC
USERNAME=kmalik
USERPROFILE=C:\Users\kmalik
VS110COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\Tools
windir=C:\Windows
Ran: java -version on the same command prompt and got
'java' is not recognized as an internal or external command, operable program or batch file.And also note the following similar thread:
java.exe Requirement to run SQL Developer? -
SQL Developer in Read-Only-Mode
Oracle SQL Developer version 1.2.1 BUILD MAIN-32.13
Running under WinXP
Issue description:
Impossible to start SQL Developer in Read-Only-Mode for certain users who should not be able to modify any data.The feature is under consideration in http://htmldb.oracle.com/pls/otn/f?p=42626:39:3043613241465472::NO::P39_ID:4701, but something similar was previously rejected in http://htmldb.oracle.com/pls/otn/f?p=42626:39:3043613241465472::NO::P39_ID:2741 ...
K. -
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 -
SQL Developer not only reading tnsnames.ora
Hello,
I have found a very odd behaviour in SQL Developer 1.2 (running on Windows 2000):
I have set TNS_ADMIN to point to a directory on a network drive residing on a Linux host. In this directory there were many backup files of tnsnames.ora created over time whose names followed the pattern tnsnames.ora.<timestamp> or tnsnames.bak or something similar. In SQL Developer in the "New database connection" dialog many TNS-entries showed up multiple times in the "Network alias" listbox. Only after removing all those backup files from the directory the behaviour of SQL Developer was correct and every entry only showed up once. I also found out that even when I moved the backup files to a new directory "tnsnames.bak" under the directory which TNS_ADMIN points to the entries showed up multiple times. After I renamed this directory to bak.tnsnames the behaviour was again correct. In my opinion SQL Developer should only read the file called tnsnames.ora and ignore all other files or directories with similar names.
Kind regards,
Christof BrekerVarious users reported this before.
Maybe others use multiple files, but at least there should be the option to read just this one.
Regards,
Kristof -
TNS_ADMIN not respected, or how do I get sql developer to see my tnsnames
When I installed sql developer at home with a 'static' tnsnames.ora file, sql-developer picked it up right away, and I was able to use the 'connect identifier' pull down menu.
However, at work, all of developer's computers have a TNS_ADMIN registry set pointing to a network share. Sql developer fails to recognize that. The purpose of this is central administration of the file (changes happen at least once a month)
Is there are a way to make it see our tnsnames.ora file? Is there are some kind of workaround (besides copying the file locally)
Thanks.Unfortunately, because SQL Developer is set up to allow an install without any local Oracle client, it is not wonderful at picking up some things from the local Oracle client when it is there - such as the TNS_ADMIN setting.
Assuming you are on an Windows box, rather than having your TNS_ADMIN set in the HKEY_LOCAL_MACHINE\SOFTWARE\Oracle registry 'directory', you need to have a Windows environment variable set for TNS_ADMIN (it doesn't matter if this is a User environment variable or a System environment variable). I assume (but don't know) that on a Linux based version you need a Unix environment variable set.
For example on Windows XP, right click on My Computer and select the Properties menu option. On that page, select the Advanced tab and then the Environment Variables button. Then click on the New button (in either the System or User section) and enter the variable name TNS_ADMIN and the variable value that you are using in the registry (ie z:\orant\network\admin). -
Sql developer - not able to establish connection
I have installed sql developer 3.2.2 and now I am trying to establish a connection with the database 'orcl' which I just created. But it is giving me a 'socket read timed out error' with vendor code 504. Please help. Thanks in advance.
The output from 'lsnrctl status' is -
C:\Users\Bits>lsnrctl status
LSNRCTL for 64-bit Windows: Version 11.2.0.1.0 - Production on 11-OCT-2013 22:59
:55
Copyright (c) 1991, 2010, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for 64-bit Windows: Version 11.2.0.1.0 - Produ
ction
Start Date 11-OCT-2013 10:18:43
Uptime 0 days 12 hr. 41 min. 38 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File C:\Oracle\Bits\product\11.2.0\dbhome_1\network\admin\l
istener.ora
Listener Log File c:\oracle\bits\diag\tnslsnr\Bits-PC\listener\alert\log
.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1521ipc)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
Services Summary...
Service "CLRExtProc" has 1 instance(s).
Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "orcl" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
Service "orclXDB" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
The command completed successfully.
The output for 'tnsping orcl' is -
C:\Users\Bits>tnsping orcl
TNS Ping Utility for 64-bit Windows: Version 11.2.0.1.0 - Production on 11-OCT-2
013 23:04:28
Copyright (c) 1997, 2010, Oracle. All rights reserved.
Used parameter files:
C:\Oracle\Bits\product\11.2.0\dbhome_1\network\admin\sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = localhos
t)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = orcl)))
OK (0 msec)
The windows firewall is not working on my computer. Is that causing this issue? -
Oracle SQL Developer (Not seeing object names within the interface)
Hello,
I was finally able to perform an export/import from our production environment to our training environment. Anyway, this was done using the SYS account and for some reason, I have an issue where in Oracle SQL Developer, there are no object names being displayed, but the objects do exist within SQLPLUS if I should query the table.
The following error message displays when I refresh any of the objects folders within SQL Developer:
ORA-00942: table or view does not exist
Any ideas would be greatly appreciated.
Thank you.825084 wrote:
I'm pretty new to the Oracle DBA space but not to SQL Server Ah. The first thing you need to do is check everything you think you know about rdbms at the door. The similarity between SQL Server and Oracle ends right after SELECT * FROM EMP.
Even the term "database" has different meanings.
First thing I see, in your original post, is that you did the export/import as SYS. Was this "as sysdba"?
From Oracle® Database Utilities
10g Release 2 (10.2):
Invoking Export and Import As SYSDBA
SYSDBA is used internally and has specialized functions; its behavior is not the same as for generalized users. Therefore, you should not typically need to invoke Export or Import as SYSDBA, except in the following situations:
* At the request of Oracle technical support
* When importing a transportable tablespace set
so it's quite possible that I missed something during the import/export of the environments.
Are there any system tables that get invoked when you click on any of the objects within the connection? -
JDBC-Connection in SQL-Developer via Connection-Manager gives ORA-12529
Hi !
This is a followup of this Thread: https://community.oracle.com/thread/3568462
I have the same problem but I have ConnectionManager 11g (11.2.0.1.0) , which doesn't know the setting for AUTHENTICATION_LEVEL=0
And I have to use JDBC, so the OCI/Thick-driver is no option for me.
The same error is raised when I use JDBC with Eclipse,...
SQL-Plus over the Connection-Manager works without any problems.
The ruleset of my cman.ora is:
(rule_list=
(rule=
(src=*)(dst=*)(srv=*)(act=accept)
(action_list=(aut=off)(moct=0)(mct=0)(mit=0)(conn_stats=on))
The error is:
Listener refused the connection with the following error:
ORA-12529, TNS:connect request rejected based on current filtering rules
Anyone got jdbc-connections over ConnectionManager 11g+ running?
CharlyUsing Windows XP/Vista...
After testing in our environment, it appears that SQL Developer 1.5.1 (5440) does in fact ignore the TNS_ADMIN environment variable and ONLY looks in the Oracle Home directory (network/admin). We define a central network location for our tnsnames file and have the tns_admin setup to point there instead of locally for our users.
When selecting to add a new connection (in 1.5.1, it works in previously releases... meaning 1.2.something) and selecting TNS, the drop-down remains empty. However, if I exit SQL Developer and then copy the tnsnames file to the local network/admin directory I can then re-launch SQL Developer and the drop-down is populated. Exiting SQL Developer again, deleting the local copy of tnsnames, and then launching SQL Developer yet again results in the drop-down being empty.
All other Oracle-related applications function as expected (as they have for years) using the TNS_ADMIN environment variable.
Any suggestions/ideas? -
SQL Developer not working on Ubuntu 6.10
Hi all,
I just upgraded to Ubuntu 6.10 and discovered that SQL Developer does not start. It fails with next message:
sofist@null:~/opt/sqldeveloper$ sh sqldeveloper
Oracle SQL Developer 1.0
Copyright (c) 2005 Oracle Corporation. All Rights Reserved.
.: 17: ide.conf: not found
sofist@null:~/opt/sqldeveloper$I've read the ubuntu linux 6.10 does not use bash as the default shell anymore. Most linux distributions use bash as the default shell. Ubuntu 6.10 uses a shell called dash. Not sure why ubuntu would change it. So, I don't know if it has anything or not to do with the shell.
https://launchpad.net/distros/ubuntu/+ticket/1932 -
SQL developer not showing compiler warnings
I'm just testing out the new compiler warning contained in 11g related to the "when others" exception handler when it does not have a subsequent raise or raise_application_error.
in SQL plus, this works fine:
SQL> alter session set plsql_warnings='enable:all';
Session altered.
SQL>
SQL> create or replace function do_stuff
2 return number
3 as
4 v_return number;
5 begin
6
7 v_return := 3;
8 return v_return;
9
10 exception
11 when others then
12 return null;
13 end;
14 /
SP2-0806: Function created with compilation warnings
SQL> show errors;
Errors for FUNCTION DO_STUFF:
LINE/COL ERROR
1/1 PLW-05018: unit DO_STUFF omitted optional AUTHID clause; default
value DEFINER used
11/6 PLW-06009: procedure "DO_STUFF" OTHERS handler does not end in
RAISE or RAISE_APPLICATION_ERRORbut in SQL developer the output is:
BANNER
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
PL/SQL Release 11.2.0.3.0 - Production
CORE 11.2.0.3.0 Production
TNS for Linux: Version 11.2.0.3.0 - Production
NLSRTL Version 11.2.0.3.0 - Production
session SET altered.
FUNCTION do_stuff compiled
No Errors.Anyone experience this issue? is there some setting that makes SQL developer behave differently?it must be something I'm doing wrong, above, I was running under windows 7 pointing at the version above.
I just tried it under an Enterprise Linux pointing at
Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - Production
PL/SQL Release 11.2.0.2.0 - Production
CORE 11.2.0.2.0 Production
TNS for Linux: Version 11.2.0.2.0 - Production
NLSRTL Version 11.2.0.2.0 - Production and I get exactly the same script output and no compiler window....
actually...... if I go into a procedure window from the schema browser and compile it there, then I get the correct warning messages..... the problem is I mostly develop from .sql files extracted from source control rather than directly from the schema browser, I just want the sql worksheet to be able to show me the same compiler log window..... -
SQL Developer not accepting certain characters from the keyboard
Hello,
I have been using SQL Developer for 5 or 6 months now, with minor issues and great satisfaction.
A few days ago, just out of the blue, in the middle of the day, SQL developer started not accepting the following characters:
Ctrlv, Ctrl + c, F5, F9 (I Think all function keys), BackSpace, Delete, Enter and arrow keys.+*
T*his is only happening in the text editor part*. I am able to use this keys in the results, whether they were a script output or an execute query output.
SQL developer also functions properly (if i paste using the mouse, paste works.. and all the other keys)
I checked the pc for viruses, using AVG, no viruses were found (my avg is updated daily and runs daily virus checks on a schedule, and this issue has been here for the past 1 or 2 weeks, so it was a virus, i think it should have been discoverd, besides, the keys are still working in sql developer, only not in the text editor part)
Needless to say, but if i run notepad and type, keys work properly.
I also reinstalled it in another folder with no luck
Tried so many restarts .. no luck
Tried it in safe mode .. no luck
I am using SQL developer Version 1.5.4, Build MAIN-5940.. on Windows Xp
I am suspecting there's some option in it that I disabled without paying attention..
HELP!!!
Regards,
CharlesAll that time trying possible solutions is understandable, but then typing them in your post... when searching the forum would have given you the solution under 1 minute:
Preferences - Accelerators - Load Preset - Default
Hope that helps,
K. -
SQL Developer: Not able to view tables
I am new to sqldeveloper and oracle products. I've recently installed sqldeveloper onto my pc, i am able to connect to the database but when i try and expand the tables item in the treeview i dont get the tables displayed and the error Warning, unhandled exception:Closed connection is shown in the logging page at the bottom. I have uninstalled the oracle client, jdk but still i keep getting this problem.
Current versions are
Operating System= Windows 7 32bit
SQLDeveloper=3.0.03
JDK=1.6.0_21
Oracle Client=11gIt looks like it may be a privilege issue.
I ran SQL Developer with 'IncludeConfFile sqldeveloper-debug.conf' in the 'sqldeveloper.conf' file. I got the following log output when I connected to XXAPI (which hangs) and XX (which works)
For XXAPI, 'oracle.dbtools.db.DBUtil' generates
Prepared:SELECT object_type type, SYS_CONTEXT('USERENV','CURRENT_SCHEMA') owner, object_name, null column_name, null column_id, null data_type
FROM user_objects
WHERE object_type ='TABLE' and object_name not like 'BIN$%' and rownum <=50
union all
SELECT object_type type, SYS_CONTEXT('USERENV','CURRENT_SCHEMA') owner, object_name, null column_name, null column_id, null data_type
FROM user_objects
WHERE object_type ='VIEW' and object_name not like 'BIN$%' and rownum <=50
and the following log message
oracle.dbtools.raptor.controls.grid.RaptorGridPersistedSettings - Persisted settings for this table could not be loaded
For XX, 'oracle.dbtools.db.DBUtil' generates
Prepared:
select * from (
SELECT o.OBJECT_NAME, o.OBJECT_ID ,'' short_name, NULL partitioned,
NULL iot_type,
o.OWNER OBJECT_OWNER, o.CREATED, o.LAST_DDL_TIME, O.GENERATED, O.TEMPORARY, NULL EXTERNAL
FROM SYS.ALL_OBJECTS O
WHERE O.OWNER = :SCHEMA
AND O.OBJECT_TYPE = 'TABLE'
union all
SELECT OBJECT_NAME, OBJECT_ID , syn.SYNONYM_NAME short_NAME, NULL partitioned,
NULL iot_type,
SYN.TABLE_OWNER OBJECT_OWNER, o.CREATED, o.LAST_DDL_TIME, O.GENERATED, O.TEMPORARY, NULL EXTERNAL
FROM SYS.ALL_OBJECTS O, sys.user_synonyms syn
WHERE syn.table_owner = o.owner
and syn.TABLE_NAME = o.object_NAME
and o.object_type = 'TABLE'
and :INCLUDE_SYNS = 1
WHERE /**/OBJECT_NAME NOT IN (SELECT OBJECT_NAME FROM RECYCLEBIN)
AND not object_name like 'BIN$%'
which works
-----
Maybe you are looking for
-
I am looking at buying a MacBook Air over the Pro mainly for the 12 hour battery. Just wondering if battery is compromised by upgrading to 8mb and upgrading to I7 Intel dual core. I am not very tech savvy so apologies if dumb question
-
How can I get text from a text field and display it in an alert?
Hello! I am BRAND NEW to Objective-C and Xcode and iOS, so PLEASE be forgiving of what is going to be a stupid question. I have a text field. I want to enter some text, click "return", and see my text in an alert. It doesn't serve any useful purp
-
Spot healing brush issues in photoshop elements 11
I am new to photoshop elements 11. I am trying to use the spot healing brush. I select "content aware,' "sample all layers," and a brush, but I only get the cross hairs of the cursor, and not the black circle. My cursor preferences are currently a
-
What are the new guitar effects?
can't find what they are? and are ther more software instruments and loops in the new version?
-
My iPod 4g won't let me go on iTunes or app store it says it can't connect
My iPod is a 4g and has 32 gigs and when I go on the app store and iTunes a message pops up and says cannot connect to iTunes and I have wi-fi it just won't work and I'm getting really mad about it