Connection Logic in SQL Developer?
Can anyone explain the design of the connection handling in SQLDeveloper?
You seem to get 2 sessions when you connect to the database ( maybe one for the browser and one for the worksheet ), and then one for every worksheet you launch afterwards, but when you close the worksheets , the connections don't seem to get closed.
Is this JDBC Connection Pooling - or is there some other design behind it - and how does it handle transactions?
This is using SQLDeveloper Production ( 1.0.0.14.67 ) on Win XP against a 9.2.04 database on Solaris, using the Thin Driver
See this Re: Connection keeps open, PL/SQL Compilation
-kris
Similar Messages
-
Able to connect via Oracle SQL Developer, but not sql plus
Using Oracle 10.2.0.
I can connect using the TNS connection type in SQL Developer, but cannot do so in SQL PLUS. SQL Plus gives me the error -- could not resolve the connect identifier.
When I do tnsping USPO_ADHOC, I get:
C:\oracle\product\10.2.0\client_1\network\admin\sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION =
TNS-12533: TNS:illegal ADDRESS parameters
So here is my tnsnames.ora file:
INTL_ADHOC =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.239.162.108)(PORT = 1521))
(CONNECT_DATA =
(SID = intl1)
USSYN_ADHOC =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.239.162.109)(PORT = 1521))
(CONNECT_DATA =
(SID = USSYN)
USPO_ADHOC =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.239.162.107)(PORT = 1521))
(CONNECT_DATA =
(SID = uspo)
Any assistance gratefully appreciated. Thanks.I actually did not have that environmental variable, so I added it, but nothing changed.
I would note that if I do tnsping foo, I get: failed to resolve name.
If I do tnsping USPO_ADHOC, I get: illegal address parameter.
In both cases, the output correctly identified the path to my sqlnet.ora file, which is in the same directory as my tnsnames.
So I would conclude from that, that the system was already able to find my tnsnames file.
Anyway, here's my sqlnet.ora:
SQLNET.AUTHENTICATION_SERVICES= (NTS)
NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
Thanks again for any ideas! -
Typing letter doesn't skip to connection name in SQL Developer 1.5
When I open SQL Developer 1.5 and execute a query, a popup window lets me choose a database connection. In SQL Developer 1.2.1 and before, I could type a letter to jump to a specific name, similar to any dropdown menu. However, this doesn't work in SQL Developer 1.5, where I have to mouse click to find the connection. This keyboard functionality was very useful and should be put back. Thanks.
Yep... ur right... I can confirm this.
WinXP SP2
Oracle 10g
SQL Dev 1.5.1.5440
Java 6 U6
-Tim -
Sybase connection tab not showing in New connection option in SQL developer
Hi,
I do not see a Sybase connection tab in New connection option in SQL developer 2.1 where as it was available in ver 1.5
Why is that? how to fix it?Hi,
Have you installed the JTDS JDBC driver yet into SQL Developer.
This is required before you get the connection tab for SQL Server and Sybase.
You can install the JTDS driver from the Check For Updates action.
Regards,
Dermot
SQL Developer Team -
I can't connect me In Sql Developer
Mrs,
I can't connect me in Sql Developer , because it Show me a Error : UnKnown Instance .
I have a named Instance ( e-xyon-inf-13\sql2005 ) , when a Put the name , it didnt know.
Is There any configuration that I must do ?
Because I am able to connect with another instances and ( e-xyon-inf-13\sql2005 ) exists .
Thank you,
AndreCan u plz make this out...?
I want to migrate my data in MsSQL to Oracle ...
Downloaded the SQL Developer, Downloaded the latest patches... however not able to connect to the SQL server with all parameters specified... a red line message displayed "Failure - cannot connect to MS SQL Server on <hostname>" can there b any reason? I am tryng to migrate from MS SQL 2000 to Oracle 10g using Oracle SQL Developer ....
--- I AM WORKING ON WIN-XP
--- Host Ip is well configured in Client n/w utility & SAME ENTERED IN THE SQL Developer's Host Name
--- SQL Developer can create the connection for oracle successfully
--- I am working on standalone machine i.e my laptop.
Regards,
Mani -
Hi,
because of some security reasons, there is a need to disable export connections functionality in SQL developer.
Is it possible to do this somehow?
Many thanks,
DejanNot that I know of.
Even if we did, they are still stored in a file that most of your users would be able to access.
You can however disable the ability to save passwords.
And exporting connections now do not include passwords by default, although you can include them if you supply an additional password. -
Am not able to connect to oracle sql developer first time
Hai all,
am not able to connect to oracle sql developer first time in my windows server.
in my server sql developer icon is not showing in "all_programs>oracle_home>application development".
am first time working in windows env..
server : windows
database_version:11.2.0.3
please let me konw how to connect to the sql developer.
Thanks,
subbuam not able to connect to oracle sql developer first time in my windows server.
in my server sql developer icon is not showing in "all_programs>oracle_home>application development".
am first time working in windows env..
server : windows
database_version:11.2.0.3
please let me konw how to connect to the sql developer.
Did you perhaps do a custom install? The DB software includes a version of sql developer and, by default, installs it in the sqldeveloper folder of the DB_HOME. Does that folder have sql developer in it?
I suggest that you NOT use the version of sql developer that ships with the database. That version will NOT be the current version.
Download the current version of SQL Developer, unzip it into a new folder and create a desktop icon for it.
http://www.oracle.com/technetwork/developer-tools/sql-developer/downloads/index.html
The current version includes many, many bug fixes from that earlier DB version and you will have far fewer probems with it. -
Create connection with Oracle SQL Developer
Hello,
my test to connect my Oracle database with SQL*PLUS works. Here I need only the username (I test with system), my password and the hostname (orcl).
Now I want to create this connection with the SQL Developer.
Here I need the Port. I don't know the port of my database. How can I find it out?Hi, the port must be the used by listener, review the $ORACLE_HOME/network/admin/listener.ora file or get the listener status(lsnrctl status) for get the correct port.
You can try with the default port. (1521).
Luck.
Havea good day.
Regards. -
How to open new connection in Oracle SQL Developer ???
Hi folks,
I have installed SQL Developer Version 1.5.0.53 in a XP sp2 system. tried to open a Database Connection, with OR_OHCL connection name and 'hr' username & password, but when I click on Connect it showed me "Failure- Io Exception The network adapter could not establish the connection". How can i resolve this issue?
Thanks in adavance. I need urgent reply, if not lot of replies!!!i need to mention that i have never used SQL Developer before. but i have done some oracle coding 1year ago when i had Oracle 9i installed in my computer. but i don't have any oracle installed in my computer. do i need to install any for using SQL Developer? i am not sure what to do?
i want to use it for just learning. if i need to install Oracle DB which one do you guys suggest me to install ---
1.Oracle Database 10g Express Edition (Western European)
2.Oracle Database 10g Express Edition (Universal)
3.Oracle Database 10g Express Client
4. or anything else
please help me out.
Sarwar -
TNS connection in Oracle SQL Developer
We have been using TNS connections in SQL Developer. Today we moved a database to a new server but still used the same TNS alias in tnsname.ora file for the database. However, the tns connections in SQL Developer shows this alias still points to the old database host server, therefore unable to connect. There is only one tnsnames.ora file on my PC and I have TNS_ADMIN set up to point to it. But it seems to me SQL Developer does not read this altered alias, but used some kind of "cached" alias which points to the old host. If I add a new alias in tnsnames.ora file, it reads correctly. But it does not refresh an existing alias.
So how is this "Network Alias" dropdown list populated? Even after I delete tnsnames.ora file, the drop down list still not changed. How do I reinitialize this list?Hi,
You should try and search SQLDeveloper help for TNS, that would give you some clues.
The list for selecting a network alias is initially filled from the tnsnames.ora file on your system, if that file exists.
Connections are stored in IDEConnections.xml.
Regards
Peter -
Configuring RAC-aware JDBC connection in Oracle SQL Developer?
How can Oracle SQL Developer be configured to properly connect to an [Oracle RAC|http://en.wikipedia.org/wiki/Oracle_RAC] environment, I.E., not just setup to always connect to one of the individual nodes?
[http://programmersjournal.blogspot.com/2008/08/jdbc-connection-string-for-oracle-rac.html] has an example of a classic and the equivalent RAC-aware version of a JDBC connection string. I've already been using a RAC connection string of the same format from within custom Java applications without issue. I thought the same should be configurable in Oracle SQL Developer by setting the "Connection Type" drop-down to "Advanced", then entering the RAC-aware JDBC connection string as the "Custom JDBC URL". However, upon testing the connection, the following error is displayed at the bottom of the dialog:
Status : Failure -Test failed: Io exception: NL Exception was generated
There is no additional information shown on the "Logging Page" view. Using Oracle SQL Developer 1.5.5.
Thanks!Thanks, Barry. Just F.Y.I., it is working for me now that I upgraded to the 2.1 EA as -K- suggested. I had marked his reply as "Correct", but probably should have left a response indicating my success as well.
Now, if there's anything you could do regarding the [issues around the display performance of CLOBs, etc., in the Query Result view|http://forums.oracle.com/forums/message.jspa?messageID=3906571] , it'd be very appreciated! -
How to connect from oracle sql developer ?
I've made one java class, to access UserRecord Data Base from sql developer.
My class file is :-
import java.sql.*;
import java.io.*;
public class SelectData{
public SelectData(){}
public void selectData(){
String url="jdbc:oracle:thin:@10.1.236.10:1521:dev92i";//connection url
Connection con= null; //connection create
Statement stat = null; //prepared statement create
ResultSet rs=null; //result set to hold result
try{
Class.forName("oracle.jdbc.driver.OracleDriver");
con = DriverManager.getConnection(url,"scott","tiger");
stat = con.createStatement();
rs = stat.executeQuery("select Name from UserRecord");
while (rs.next()) { // Position the cursor
// Retrieve the first column value
System.err.println("Name= " +rs.getString("Name"));
// Retrieve the first column value
System.err.println("Pswd= " +rs.getString("Password"));
rs.close();
catch(SQLException e){
System.err.println(e.getMessage());
catch(ClassNotFoundException e){
System.err.println(e.getMessage());
catch(Exception e){
System.err.println(e.getMessage());
finally{
try{
if(con!=null)
con.close();
catch(Exception e){
System.err.println(e.getMessage());
public static void main(String args[]){
SelectData sd=new SelectData();
sd.selectData();
When i run this class file it gives error :-
"oracle.jdbc.driver.OracleDriver"
Plz help me out from this problem and suggest any configuration if required in oracle sql developer to run my programs.{color:#0000ff}hi,
add the jar for oracle jdbc to the libraries.
if you are using any IDE then just change the project properties adding the jar file.
if not edit the classpath of the envoirnment variables.
{color}{color:#ff0000}*manik*{color} -
Connection problems with SQL Developer -- ANSWERED
running on win2k
connecting to local oracle
1 Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
2 PL/SQL Release 10.2.0.1.0 - Production
3 CORE 10.2.0.1.0 Production
4 TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
5 NLSRTL Version 10.2.0.1.0 - Production
SEVERE 63 0 oracle.jdeveloper.db.DatabaseConnections DatabaseConnections has no JNDI context so cannot list connections.
SEVERE 64 21298 oracle.jdevimpl.db.adapter.DefaultContextWrapper failed to create naming Context for db connections at url: file:/C:/Documents and Settings/llhatch/Application Data/SQL Developer/system1.5.0.53.38/o.jdeveloper.db.connection.11.1.1.0.22.49.35/connections.xml
I get this error when trying to save or connect to a connection, even after test connection says successfull.
I just installed sqldeveloper-5338.zip
Message was edited by:
user634867Sue, thank you very much for the clarification.
I did update the C:\Program Files\sqldeveloper\sqldeveloper\bin\sqldeveloper.conf file file by appending the lines below and it solved the problem.
AddJavaLibFile ../../lib/java/api/jaxb-api.jar
AddJavaLibFile ../../lib/java/api/jsr173_api.jar
AddJavaLibFile ../../j2ee/home/lib/activation.jar
AddJavaLibFile ../../lib/java/shared/sun.jaxb/2.0/jaxb-xjc.jar
AddJavaLibFile ../../lib/java/shared/sun.jaxb/2.0/jaxb-impl.jar
AddJavaLibFile ../../lib/java/shared/sun.jaxb/2.0/jaxb1-impl.jar
One last question.
How do I force SQL Developer to look at TNSNames. Currently I have to enter all info for each connection manually.
Thanks again. -
Error while connecting database from SQL developer
Hello experts,
i have installed oracle 11g R2 database on WIN32 platform, and my database is working in sql plus but while connecting the same via sql developer am getting the following error:
NO more data to read from socket
Vendor code 17410
Kindly suggest.
Regards,
KKI have restarted the listener service but still getting the same in sql dev
LSNRCTL> status
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for 32-bit Windows: Version 11.2.0.1.0 - Produ
ction
Start Date 05-JAN-2013 21:56:29
Uptime 0 days 0 hr. 2 min. 44 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File d:\app\Karan\product\11.2.0\dbhome_1\network\admin\lis
tener.ora
Listener Log File d:\app\karan\diag\tnslsnr\Karan-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 "OIMDB" has 1 instance(s).
Instance "OIMDB", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
LSNRCTL> stop
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
The command completed successfully
LSNRCTL> start
Starting tnslsnr: please wait...
TNSLSNR for 32-bit Windows: Version 11.2.0.1.0 - Production
System parameter file is d:\app\Karan\product\11.2.0\dbhome_1\network\admin\list
ener.ora
Log messages written to d:\app\karan\diag\tnslsnr\Karan-PC\listener\alert\log.xm
l
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1521
ipc)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for 32-bit Windows: Version 11.2.0.1.0 - Produ
ction
Start Date 05-JAN-2013 21:59:45
Uptime 0 days 0 hr. 0 min. 6 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File d:\app\Karan\product\11.2.0\dbhome_1\network\admin\lis
tener.ora
Listener Log File d:\app\karan\diag\tnslsnr\Karan-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 "OIMDB" has 1 instance(s).
Instance "OIMDB", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
LSNRCTL>
Edited by: 958122 on Jan 5, 2013 9:59 PM -
Regarding connection tab in sql developer
Hi,
i click on sql developer.exe it shows me connection tab only when the oracle database 11g release 2 is not installed on the PC
but when i installed the 11g release 2 connection tab disappears
please help me in setting sql developer connection with the databaseSee this Re: Connection keeps open, PL/SQL Compilation
-kris
Maybe you are looking for
-
My iMac will not boot up!
I get the start up tone with the apple on the screen. This last a bit, goes to the blue screen and will remain like that. Any help?
-
Gurus, Have a question regarding running 64 bit oracle on intel vs amd (RHEL). We are currently running on AMD and have been happy. We are seeing a hardware switch away from amd in my co. Does anyone know if the performance of the Xeon 64bit oracle i
-
Upgrade 3.1.1 to 3.1.2
Hi Friends, My Apex was originally Apex 2.2 bundled in 10g XE. Then I downloaded Apex 3.1.1 and do the upgrade. Then comes a new Apex 3.1.2. Is this version compatible with 10gXE too? Thanks
-
firefox won't run
-
Recovering mail folder from TIME MACHINE
I've recovered a folder from Time Machine, but I can't seem to get it to go into my mail program. I've just looked inside the folder, though, and some of the messages seem to be blank. I have created a new folder and have tried to migrate over just t