SQL developer connecting problem
Hi,
our remote server has oracle 8 and Oracle 10G. Oracle 8 installs very long before and oracle 10G installs today.
As sql developer cannot support to 8i; when i try to connect to oracle 10G i get the following error. ORA-12505
I have oracle in my laptop and can connect via sqlplus but cannot connect with sql developer.
C:\>sqlplus sys as [email protected]:1521/xxxx
password:
SQL>
Thanks.
Hi,
Not sure if you are running two listeners (one for 8i, one for 10g) on that server. When I had problems connecting to 10g XE and 11g running on the same server, each with its own listener, I read that disabling the 10g listener and updating the 11g listener.ora and tnsnames.ora with entries for 10g solved everything. Always use the listener for the newer Oracle release. Possibly you do not have control over the listener configurations on the server, but this is something to consider.
And here is a thread from a different forum with opinions on when single or multiple listener configurations might be preferred (and some info on how to do it):
Re: Running 10gEE and 10gXE on the same pc
Regards,
Gary
SQL Developer Team
Similar Messages
-
How to solve Oracle SQL Developer connection problem ?
Folks,
Hello. I am using Oracle Database 11gR1. The Database Control Console https://localhost.localdomain:1158/em works correctly. I can create a Database and a table successfully.
My OS is Linux and connects to internet successfully.
In order to run SQL statements. we need to use Oracle SQL Developer. I connect Oracle SQL Developer in the following way:
Connection Name: DB1 (this is my database name as well)
Username: SYS (this is the user name I used to login to the Console)
Password: SYS (this the password used to login to the Console)
Connection Type: Basic
Host Name: localhost
Port: 1158
SID: DB1 (this is created during installing the Database)
But the error message comes up: "Status: Failure - IO exception Connection Reset."
Can any folk tell me how to solve Oracle SQL Developer connection problem ?user8860348 wrote:
Folks,
Hello. I am using Oracle Database 11gR1. The Database Control Console https://localhost.localdomain:1158/em works correctly. I can create a Database and a table successfully.
My OS is Linux and connects to internet successfully.
In order to run SQL statements. we need to use Oracle SQL Developer. I connect Oracle SQL Developer in the following way:
Connection Name: DB1 (this is my database name as well)
Username: SYS (this is the user name I used to login to the Console)
Password: SYS (this the password used to login to the Console)
Connection Type: Basic
Host Name: localhost
Port: 1158
SID: DB1 (this is created during installing the Database)
But the error message comes up: "Status: Failure - IO exception Connection Reset."
Can any folk tell me how to solve Oracle SQL Developer connection problem ?username: sys
password: enter_your_correct_password given at the time of oracle installation
role: select sysdba if you would connect as sysdba else select normal for users other than sys
hostname: enter your oracle server hostname or ip address eg:- 192.168.11.12
to find the hostname open terminal/command prompt in oracle installed machine
type ---> hostname
type ---->ping hostname
you can find the ipaddress of the server
port number: 1521 (default) ----> i guess , else check the port number in the tnsnames.ora file under your ORACLE_HOME/network/admin folder
SID: DB1
try it
Good Luck -
SQL Developer connection problems
I am trying to run for the first time SQL developer and the connections window isnt showing. I tried also to make file>new>and choosing database connection and nothing happens. Also i tried loading the connections toolbar but the toolbar isnt available it isnt listed under the view tab.
Can anyone please help me not only me have the same problem.
I am running it on Windows 7 Ultimate 32-Bit. I tried all versions and it is still the same and tried also all patches and upgrades but no effect.
Can anyone please help
ThanksWell, My java version is :
java version "1.6.0_15"
Java(TM) SE Runtime Environment (build 1.6.0_15-b03)
Java HotSpot(TM) 64-Bit Server VM (build 14.1-b02, mixed mode)
And the exceptions are the next :
_execv() failed, err=2Exception initializing 'oracle.dbtools.raptor.RaptorDBAddi
n' in extension 'Oracle SQL Developer': java.lang.ExceptionInInitializerError
at oracle.dbtools.raptor.RaptorDBAddin.initialize(RaptorDBAddin.java:126
at oracle.ideimpl.extension.AddinManagerImpl.initializeAddin(AddinManage
rImpl.java:407)
at oracle.ideimpl.extension.AddinManagerImpl.initializeAddins(AddinManag
erImpl.java:214)
at oracle.ideimpl.extension.AddinManagerImpl.initProductAndUserAddins(Ad
dinManagerImpl.java:128)
at oracle.ide.IdeCore.initProductAndUserAddins(IdeCore.java:1949)
at oracle.ide.IdeCore.startupImpl(IdeCore.java:1573)
at oracle.ide.Ide.startup(Ide.java:703)
at oracle.ideimpl.DefaultIdeStarter.startIde(DefaultIdeStarter.java:35)
at oracle.ideimpl.Main.start(Main.java:184)
at oracle.ideimpl.Main.main(Main.java:146)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at oracle.ide.boot.PCLMain.callMain(PCLMain.java:62)
at oracle.ide.boot.PCLMain.main(PCLMain.java:54)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at oracle.classloader.util.MainClass.invoke(MainClass.java:128)
at oracle.ide.boot.IdeLauncher.bootClassLoadersAndMain(IdeLauncher.java:
189)
at oracle.ide.boot.IdeLauncher.launchImpl(IdeLauncher.java:89)
at oracle.ide.boot.IdeLauncher.launch(IdeLauncher.java:65)
at oracle.ide.boot.IdeLauncher.main(IdeLauncher.java:54)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at oracle.ide.boot.Launcher.invokeMain(Launcher.java:713)
at oracle.ide.boot.Launcher.launchImpl(Launcher.java:115)
at oracle.ide.boot.Launcher.launch(Launcher.java:68)
at oracle.ide.boot.Launcher.main(Launcher.java:57)
Caused by: java.lang.NullPointerException
at oracle.i18n.text.OraTerritory.getInstance(OraTerritory.java:101)
at oracle.dbtools.raptor.config.DBConfig.<clinit>(DBConfig.java:325)
... 33 more
Exception initializing 'oracle.dbtools.raptor.standalone.RaptorStandaloneAddin'
in extension 'Oracle SQL Developer Extras': java.lang.NoClassDefFoundError: Coul
d not initialize class oracle.dbtools.raptor.config.DBConfig
at oracle.dbtools.raptor.utils.URLChooserShortcuts.<clinit>(URLChooserSh
ortcuts.java:35)
at oracle.dbtools.raptor.standalone.RaptorStandaloneAddin.initialize(Rap
torStandaloneAddin.java:178)
at oracle.ideimpl.extension.AddinManagerImpl.initializeAddin(AddinManage
rImpl.java:407)
at oracle.ideimpl.extension.AddinManagerImpl.initializeAddins(AddinManag
erImpl.java:214)
at oracle.ideimpl.extension.AddinManagerImpl.initProductAndUserAddins(Ad
dinManagerImpl.java:128)
at oracle.ide.IdeCore.initProductAndUserAddins(IdeCore.java:1949)
at oracle.ide.IdeCore.startupImpl(IdeCore.java:1573)
at oracle.ide.Ide.startup(Ide.java:703)
at oracle.ideimpl.DefaultIdeStarter.startIde(DefaultIdeStarter.java:35)
at oracle.ideimpl.Main.start(Main.java:184)
at oracle.ideimpl.Main.main(Main.java:146)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at oracle.ide.boot.PCLMain.callMain(PCLMain.java:62)
at oracle.ide.boot.PCLMain.main(PCLMain.java:54)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at oracle.classloader.util.MainClass.invoke(MainClass.java:128)
at oracle.ide.boot.IdeLauncher.bootClassLoadersAndMain(IdeLauncher.java:
189)
at oracle.ide.boot.IdeLauncher.launchImpl(IdeLauncher.java:89)
at oracle.ide.boot.IdeLauncher.launch(IdeLauncher.java:65)
at oracle.ide.boot.IdeLauncher.main(IdeLauncher.java:54)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at oracle.ide.boot.Launcher.invokeMain(Launcher.java:713)
at oracle.ide.boot.Launcher.launchImpl(Launcher.java:115)
at oracle.ide.boot.Launcher.launch(Launcher.java:68)
at oracle.ide.boot.Launcher.main(Launcher.java:57)
Exception in thread "EditorLoader" java.lang.NoClassDefFoundError: Could not ini
tialize class oracle.dbtools.raptor.config.DBConfig
at oracle.dbtools.raptor.oviewer.base.ViewerAddin.loadXMLEditors(ViewerA
ddin.java:221)
at oracle.dbtools.raptor.oviewer.base.ViewerAddin$1$1.run(ViewerAddin.ja
va:130)
at java.lang.Thread.run(Thread.java:619)
Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: Could not
initialize class oracle.dbtools.raptor.config.DBConfig
at oracle.dbtools.raptor.oviewer.base.NavSelectionListener.viewSelection
Changed(NavSelectionListener.java:176)
at oracle.ide.view.View.fireViewSelectionChangedImpl(View.java:495)
at oracle.ide.view.ViewDecorator.fireViewSelectionChangedImpl(ViewDecora
tor.java:59)
at oracle.ide.view.View.fireViewSelectionChanged(View.java:485)
at oracle.ide.view.View.updateSelectionImpl0(View.java:444)
at oracle.ide.view.View.updateSelectionImpl(View.java:429)
at oracle.ide.view.View.updateSelection(View.java:306)
at oracle.ideri.navigator.DefaultNavigatorWindow$4.viewSelectionChanged(
DefaultNavigatorWindow.java:1108)
at oracle.ide.view.View.fireViewSelectionChangedImpl(View.java:495)
at oracle.ide.view.View.fireViewSelectionChanged(View.java:485)
at oracle.ide.view.View$2.actionPerformed(View.java:349)
at javax.swing.Timer.fireActionPerformed(Timer.java:271)
at javax.swing.Timer$DoPostEvent.run(Timer.java:201)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThre
ad.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.
java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
ad.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
This is a bug to resolve, Oracle should fix this error for OS 64 bits, on Windows 7 or other. Thanks -
Oracle/ SQL Developer connection problem.
I have installed Oracle 11 g and SQL Developer, When I open SQL Developer and try to make a new connection ( I name the connection, put a user name in, put my password in), I click on "Test" and I get this error:
Status: Failure - Test failed: Listener refused the connection with the followong error:ORA-12505, TNS: listener does not currently know of SID given in connect descriptor The connection descroptor used by the client was:localhost:1521:ex
Can anyone explain this to me and help me resolve this issue I am having?
Thank you in advance for your help
-steve
p.s. I have also tried the user name: Scott and Password: TigerWindows 7 Home ... will have challenges at some point, as Oracle may not be completely compatible with Windows 7.
Aside from that, you may find firewall issues even if you are on the same machine, since the default connection from SQLDeveloper is to use the network (even loopback).
First step is to verify that the database and listener are running and that the database is registered to the listener. TO do that, drop into command line and issue:
1) Listener
lsnrctl statuswhich will give one of two results, if properly installed. First - listener is down
C:\temp>lsnrctl status
LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 07-FEB-2010 20:48
:13
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_XE)))
TNS-12541: TNS:no listener
TNS-12560: TNS:protocol adapter error
TNS-00511: No listener
32-bit Windows Error: 2: No such file or directory
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=FCC003L)(PORT=1521)))
TNS-12541: TNS:no listener
TNS-12560: TNS:protocol adapter error
TNS-00511: No listener
32-bit Windows Error: 61: Unknown errorIf the above is displayed, check the Service applet (Control Panel -> Admin Tools > Service) to ensure serivce is up, or enter "lsnrctl start", in which case the status shoud show
C:\temp>lsnrctl status
LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 07-FEB-2010 20:46
:40
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_XE)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Produ
ction
Start Date 05-FEB-2010 14:42:10
Uptime 2 days 6 hr. 4 min. 30 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Default Service XE
Listener Parameter File C:\oracle\app\oracle\product\10.2.0\server\network\adm
in\listener.ora
Listener Log File C:\oracle\app\oracle\product\10.2.0\server\network\log
\listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC_FOR_XEipc)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=FCC003L)(PORT=1521)))
Services Summary...
Service "CLRExtProc" has 1 instance(s).
Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
C:\temp>2) After the service is verified up, make sure the database is up
sqlplus / as sysdbawhich should respond with something like
C:\temp>sqlplus / as sysdba
SQL*Plus: Release 10.2.0.1.0 - Production on Sun Feb 7 20:43:12 2010
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to:
Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
SQL>if it gives something like
C:\temp>sqlplus / as sysdba
SQL*Plus: Release 10.2.0.1.0 - Production on Sun Feb 7 20:44:49 2010
Copyright (c) 1982, 2005, Oracle. All rights reserved.
ERROR:
ORA-12560: TNS:protocol adapter errorthe pull up the Control Panel, Admnistration Tools, Services and start the database. Then recheck the listener and it shoudl show some additional services such as
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "TEST" has 1 instance(s).
Instance "xe", status READY, has 1 handler(s) for this service...
Service "XEXDB" has 1 instance(s).
Instance "xe", status READY, has 1 handler(s) for this service...
Service "XE_XPT" has 1 instance(s).
Instance "xe", status READY, has 1 handler(s) for this service...
Service "xe" has 1 instance(s).
Instance "xe", status READY, has 1 handler(s) for this service...
The command completed successfullyIn the above, remember the "xe" from 'Service "xe" has 1 instance(s).'. I expect to see something about that in the TNSNAMES.ORA file in your ORACLE_HOME\network\admin directory. That file should have an entry like
XE =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = FCC003L)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = XE)
)and you will note the XE on the left side of the equal sign (which is a network alias), and one XE in the (SERVICE_NAME = XE) line. On YOUR system, the XE should be replaced by whatever you called your database (often 'orcl'). REMEMBER THIS ALIAS;-) and also make note of the host that your entry uses. If your host name changes because of DHCP, you're hooped (for a while).
If the database is registered (shows up in the list), the next step is to make sure a userid is available. You could use 'system' (try to avoid using SYS since it is the master userid and if you mess that up, you mess up all your homework. In a production encvironment, every access to SYS will be audited.
So, let's create a userid called me with (in 11g case sensitive) password 'myself'. Make sure that user is allow to log in (create session) and create a table.
C:\temp>sqlplus system/oracle
SQL*Plus: Release 10.2.0.1.0 - Production on Sun Feb 7 20:54:38 2010
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to:
Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
SQL> create user me identified by myself;
User created.
SQL> rem to show you how to change password ...
SQL> alter user me identified by myself account unlock;
User altered.
SQL> grant create session, create table to me;
Grant succeeded.
SQL> exit
Disconnected from Oracle Database 10g Express Edition Release 10.2.0.1.0 - Productionand now see whether we can log in using the same 'network' technique we will later use with SQLDeveloper.
Do you remember the XE discussion above? Replace XE with the one on the left of the equal sign - the system looks that up to find which service it wants to access.
C:\temp>sqlplus me/myself@XE
SQL*Plus: Release 10.2.0.1.0 - Production on Sun Feb 7 20:58:26 2010
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to:
Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
SQL> select * from dual;
D
X
SQL> exit
Disconnected from Oracle Database 10g Express Edition Release 10.2.0.1.0 - ProductionIf the above worked, you should have no problem accessing the system using SQLDeveloper. You simply use the HOST, the PORT and the SID (alias) or service from the "lsnrctl status" output in the SQLDeveloper fields.
If it did not work, try dropping the "@XE" to see whether you can get in (using the bequeath connection) which is useful for troubleshooting but will not help with the traditional SQLDeveloper connection. If you get in without the @XE (or whatever your alias is) but not with it, most likely either your listener is not up or your firewall is blocking the access to the listener. -
Oracle Database 10 g/ SQL Developer connection problem
Hello,
I hope you can help me further. now wants to learn Oracle, Oracle Database 10g Enterprise have
Edition instaled (successful), and wants to connect to SQL Developer but unfortunately was not working.
I get this error:
Status: Failure - Test failed: Listener refused the connection with the followong error:ORA-12505, TNS: listener does not currently know of SID given in connect descriptor.
Thank you for your understanding!881920 wrote:
Hello,
I hope you can help me further. now wants to learn Oracle, Oracle Database 10g Enterprise have
Edition instaled (successful), and wants to connect to SQL Developer but unfortunately was not working.
I get this error:
Status: Failure - Test failed: Listener refused the connection with the followong error:ORA-12505, TNS: listener does not currently know of SID given in connect descriptor.
Thank you for your understanding!welcome to the forum,
what is your operating system name and version?
check
$lsnrctl status
if the listener is down
start the listener
$lsnrctl start
also check the database is up and running.
and try to connect with correct username,password,role (normal or sysdba) hostname or IP, port number, SID or service name.
Good Luck. -
Sql developer connectivity problem
Hi,
I'm finding it difficult to connect my downloaded sql devloper to the oracle. I am doubting if my login details were correct, or there re some other configurations that needs to be done. Please can you tell me how I can get to retrieve my username and password? Also tell me what needs to be at the hostname box and the SID box. Thanks
Herbert.You need a separately installed Oracle database to use with SQL Developer. If you have one at work, ask your DBA for the connection details. If you install one yourself, these details will become obvious.
Have fun,
K. -
SQL Developer Connection Problem (osx)
Hi,
I have a macbook pro with 10.5 and I installed sqldeveloper to acess a db (through a proxy). By clicking TEST I got "I/O exception: The network adapter could not establish the connection". I seems that I have a problem connecting the DB. However with the same connection configuration (username, hostname, port, password) I can connect with sqldeveloper in windows (that I also have installed in my macbook). Does anyone know what can I do? I don't want to use windows...
Thanks.Have you created a TNS entry for your database in $ORACLE_HOME/network/admin/tnsnames.ora or using Net COnfiguration Assistant?
Every other oracle install (in a different Oracle Home from that of the Database) cannot connect directly to the database. They need a Net Services to connect.
Also set TNS_ADMIN variable to the the $ORACLE_HOME/network/admin in the wWindows environment so that all Oracle client install can see the single configuration. -
Sql developer connection problem.
I got this as an error when making a new connection. what should i do?
the error is "the network adapter could not able to establish the connection"Can you ping the server where the database is located? If not, that's a deal breaker.
After you get past that, you'll want to confirm that the SID or SERVICE you have defined in your connection is being serviced by a listener on the server. TNSPing can be used to confirm that from your machine if you have the Oracle Client installed.
If you have a local DBA or other experienced Oracle user, they might be able to help you. -
Hi, I'm running the following setup:
Mac OS X 10.8.4
Virtual Box 4.2.16 r86992
Oracle Developer Days (don't know the version, just downloaded it)
SQL Developer 3.2.20.09
Networking is host-only, I tried bridged but that doesn't make a difference for the problem at hand. I can ping my virtual box just fine, telnet to port 1521 looks good too:
$ ping 192.168.56.101
PING 192.168.56.101 (192.168.56.101): 56 data bytes
64 bytes from 192.168.56.101: icmp_seq=0 ttl=64 time=0.449 ms
^C
--- 192.168.56.101 ping statistics ---
1 packets transmitted, 1 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 0.449/0.449/0.449/0.000 ms
$ telnet 192.168.56.101 1521
Trying 192.168.56.101...
Connected to 192.168.56.101.
Escape character is '^]'.
asdf
asdf
Connection closed by foreign host.
When I create a new connection with sql developer, with the same hostname / IP (192.168.56.101), Port 1521 (didn't change that) and SID orcl, basic connection type, it can't even connect, throwing the error mentioned in the subject:
Status : Failure -Test failed: IO Error: The Network Adapter could not establish the connection
I have looked at various threads in the forums here but I'm still stymied why the connection seems to be ok, yet sql developer has problems with it. If I create an ssh tunnel so sql developer only has to connect to localhost it works:
ssh -L 1521:192.168.56.101:1521 -l oracle 192.168.56.101
Message was edited by: 2a2e67cd-b5b2-4229-9fa6-21f5dfe0760dHi Ali,
This may be of varoius reasons..
Is the database that you are connecting on the same PC?
You have specified Hostname: localhost.
If not please replace it with the IP of that server.
Else please check whether the database listener is started or not. if not please start the listener.
Check the SID by tnsping command.
Hope this will help you..
Thanks
Ashok -
I'm using scan in hostname to connect as Basic that failed ORA-01017. I'm using the same credential system to logon from sqlplus and is fine.
Any ideas?Essentially all you have said is: help me, I have a problem.
1. full version of sql developer being used
2. full version of Java SDK being used
3. full version of JDBC jar file being used
4. full details on the connection information being used
5. full version of the Oracle client being used
6. confirm that both your sql*plus and sql developer connections were made from the SAME machine
A Basic connection uses the thin driver while sql*plus is using OCI -
Partial(?) SQL Developer Connection
Here are the symptoms:
Can only connect to SQL Express as SYS (or SYSTEM)
When using TNS, no schemas show in Network Alias dropdown
No developer-created tables (in SQL Express) can be viewed in SQL Developer connection
Environment:
Using local machine (laptop)
OS: Windows 7
SQL Developer 4
I have a feeling I'm just missing something in configuration or set-up, but am not sure. Since I cannot create a full connection to a database using Developer, it's not useful to me and I would like to use it. Because the Network Alias dropdown isn't showing me anything, I'm wondering if anything is wrong with my SQL Express installation.
Any help will be greatly appreciated.
Thanks.My apologies. I have been told that the developer forum was the incorrect place to ask help for this problem. So I marked it as answered (by direction, presumably by the moderator). In the response, I was told to pose the question in the general area, which is what I thought I was doing.
No need to apologize - we are trying to get you to the right forum for your question.
You said you are using sql developer 4 and pPart of what you said was this:
When using TNS, no schemas show in Network Alias dropdown
Oracle doesn't have any such 'Network Alias dropdown' - and 'schemas' would NOT be in a TNSNAMES.ORA file: that file has SIDs or SERVICE_IDs and is normally used with an OCI Oracle client installation. Is that dropdown something on the connection dialog in sql developer?
And when you connect as one user you won't see any tables or objects for other users unless you open the 'Other Uses' tree.
You don't need a TNSNAMES.ORA file to connect if you use 'BASIC' as the connection type. -
Query on SQL Developer Connections Tree Does Not Display Objects
Hi Gurus, Could you please clarify on the below. As per the note ID 1458753.1, SQL Developer Connections Tree Does Not Display Objects to user in order to access database objects outside the owned schema/account. ------------------------- By default, and without granting wide privileges such as DBA, a user will only see his or her own objects in the first level object nodes under their connection. Objects in other schemas must be accessed via the Other Users node under the connection. This is the intended functionality/display in SQL Developer. ------------------------- Is there any other way we can achieve this? Requirement is very common - user A owns all objects and user B granted read/read-write privileges on user A objects. Now user B wants to Display user A objects in the corresponding objects node of SQL developer. Could any one shed some light here? Thanks Venu
First off, there is a dedicated SQL Developer forum where lots of the developers hang out. Those folks are way more knowledgable that we are about the tool.
That said, I have no problem displaying dates. Do you just have a problem with this particular query/ field/ table? Or does it affect all dates? What version of SQL Developer are you using? 1.1 is out now.
Justin -
SQL Developer Connection to SQL Server
Hi,
could some body help in connection sql developer connection to sql server 2005 please?
thanks,
kamaleshSetting Up SQL Developer for MS SQL SERVER 2000
1) Install/Extract SQL Developer 1.2.1 in C:\Program Files\Oracle
Making the {$sqldevhome} = C:\Program Files\Oracle\sqldeveloper
2) Obtain the JDBC SQL SERVER Pluggin (jtds-1.2.2-dist.zip) from:
http://sourceforge.net/project/showfiles.php?group_id=33291&package_id=25350
3) Unzip jtds-1.2.2-dist.zip
Creates: jtds-1.2.2.jar
\x86\SSO\ntlmauth.dll
4) Copy the jtds-1.2.2.jar into:
{$sqldevhome}\jlib Directory.
5) Copy the the ntlmauth.dll dll in the \x86\SSO subdir into:
{$sqldevhome}\jdk\jre\bin\ntlmauth.dll
6) In SQL Developer:
Got Menu "Tools"
- Preferences...
Expand the "[+] Database
Choose "Third Party JDBC Drivers"
Click "Add Entry"
Then Browse for your copy of "{$sqldevhome}\jlib\jtds-1.2.2.jar"
Note: Use the jar filename, not its parent directory for entry.
7) Restart SQL Developer and try your SQL Server 2000 Connection -
How sql developer connects to a oracle database
hi,
I wonder how sql developer connects to a oracle database. does it use oracle client like Toad?
How does it make the connection with oracle server?
Sameera924164 wrote:
hi,
I wonder how sql developer connects to a oracle database. does it use oracle client like Toad?
How does it make the connection with oracle server?
SameeraWelcome to OTN
From Left side Tab click on (+) New Connection. Then at the window give a connection name,User name,Password.
Then provide Host Name, Port and SID
Click on Test button and then save or connect.
Hope this will help you -
SQL Developer Installation Problems
Hi,
We are trying to find a workable alternative to TOAD and have tried to install SQL Developer with not much success.... I think I am just about to give up but hope this last attempt to post for help can create a miracle.
I would appreciate very much if any one knows of a comprehensive document out there that can help trouble shoot the installation problems.
Let me give you the hardware and software versions first and then the problems.
1) SQL Developer tried: sqldeveloper-1.2.1.3213-no-jre and sqldeveloper-1.2.1.3213
2) JRE tried: JRE 1.5 and JRE 6 (C:\Program Files\Java\jre1.6.0_03)
3) Window: XP Professional version 2002 Service pack 2
4) Hardware: Intel Pentium 4 CPU 2.80 GHz, 1.98 GB of RAM
Problems:
1) SQL Developer could not find native JDBC. I don't understand why, despite all the variables set in Oracleclient10g_basic in the registry, SQL Developer did not seem to be able to find a 10g client on a network drive. I have to install 10g client directly onto my pc (C:\oracle\product\10.2.0\client_1) to solve this problem.
2) SQL Developer abruptly disappeared after database login.
I was able to connect and log into an Oralce 10g database with TNS Connect Identifier approach. There were objects (tables, views, etc) showed up briefly on the left hand side of the SQL Developer and then it just completely disappeared without even an error message or a tearful good-bye.
The only thing I can find is this error log about EXCEPTION_ACCESS_VIOLATION. After hours searching through OTN for possible mentioning of this error with SQL Developer, I found nothing so far.
Why is it so difficult to install SQL Developer? Are there a set of un-spoken pre-requisites that has to be satisfied before it can be installed properly? If so, what are they? Path system variable? Registry? Anything else?
Here's the complete EXCEPTION_ACCESS_VIOLATION error log:
# An unexpected error has been detected by Java Runtime Environment:
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x2ca5683c, pid=952, tid=2576
# Java VM: Java HotSpot(TM) Client VM (1.6.0_03-b05 mixed mode, sharing)
# Problematic frame:
# C [OraOCIEI10.dll+0x4f683c]
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
--------------- T H R E A D ---------------
Current thread (0x04330400): JavaThread "Init Insight" [_thread_in_native, id=2576]
siginfo: ExceptionCode=0xc0000005, reading address 0x00000000
Registers:
EAX=0x31a28e40, EBX=0x00000000, ECX=0x03231622, EDX=0x00000000
ESP=0x04b0f168, EBP=0x04b0f1a8, ESI=0x00000001, EDI=0x0413ded4
EIP=0x2ca5683c, EFLAGS=0x00010297
Top of Stack: (sp=0x04b0f168)
0x04b0f168: 00000001 00a3fb8e 0000000a 00000001
0x04b0f178: 0413c78c 00000001 02c52aa8 0000000a
0x04b0f188: 00000020 00a4047e 090ea038 0413def4
0x04b0f198: 03231622 6d8a87b3 032325c1 0413c78c
0x04b0f1a8: 04b0f1d8 2ca57072 0413ded4 032325c1
0x04b0f1b8: 00000001 00000000 03231620 03231622
0x04b0f1c8: 00000000 00000000 00000000 00000000
0x04b0f1d8: 04b0f234 2ca56e06 0413c78c 0413ded4
Instructions: (pc=0x2ca5683c)
0x2ca5682c: 5c 00 a1 80 58 b3 31 88 9f c4 00 00 00 8b 14 98
0x2ca5683c: 8b 0a 81 e1 00 80 00 00 89 4d dc 0f 85 90 03 00
Stack: [0x04ac0000,0x04b10000), sp=0x04b0f168, free space=316k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C [OraOCIEI10.dll+0x4f683c]
C [OraOCIEI10.dll+0x4f7072]
C [OraOCIEI10.dll+0x4f6e06]
C [OraOCIEI10.dll+0x419685]
C [OCI.dll+0x7333]
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j oracle.jdbc.driver.T2CStatement.t2cParseExecuteDescribe(Loracle/jdbc/driver/OracleStatement;JIIIZZZZ[BIBII[SI[B[CII[SII[B[CII[I[S[BIIIIZZ[Loracle/jdbc/driver/Accessor;[[[B[J[BI[CI[SIZ)I+0
j oracle.jdbc.driver.T2CCallableStatement.executeForDescribe()V+271
j oracle.jdbc.driver.T2CCallableStatement.executeForRows(Z)V+41
j oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout()V+275
j oracle.jdbc.driver.OraclePreparedStatement.executeInternal()I+94
j oracle.jdbc.driver.OraclePreparedStatement.execute()Z+17
j oracle.jdbc.driver.OracleCallableStatement.execute()Z+60
j oracle.dbtools.raptor.insight.CompletionInsight.getInsightableOracleDatabase(Loracle/javatools/db/Database;)Loracle/dbtools/raptor/insight/InsightableDatabase;+70
j oracle.dbtools.raptor.insight.CompletionInsight.<init>(Loracle/ide/Context;Loracle/javatools/db/Database;)V+161
j oracle.dbtools.sqlworksheet.sqlview.SqlEditorMainPanel$5.run()V+52
j java.lang.Thread.run()V+11
v ~StubRoutines::call_stub
--------------- P R O C E S S ---------------
Java Threads: ( => current thread )
=>0x04330400 JavaThread "Init Insight" [_thread_in_native, id=2576]
0x0416ac00 JavaThread "Timer-4" [_thread_blocked, id=1460]
0x0412cc00 JavaThread "Timer-3" [_thread_blocked, id=2544]
0x04323800 JavaThread "WeakDataReference polling" [_thread_blocked, id=3756]
0x0315cc00 JavaThread "Image Fetcher 3" daemon [_thread_blocked, id=3412]
0x02c17c00 JavaThread "Image Fetcher 2" daemon [_thread_blocked, id=2124]
0x04324800 JavaThread "Image Fetcher 1" daemon [_thread_blocked, id=2088]
0x04321800 JavaThread "Image Fetcher 0" daemon [_thread_blocked, id=276]
0x02ca2c00 JavaThread "WaitCursorTimer" daemon [_thread_blocked, id=2096]
0x00296800 JavaThread "DestroyJavaVM" [_thread_blocked, id=3816]
0x02cb0400 JavaThread "Timer-1" [_thread_blocked, id=2832]
0x02c32000 JavaThread "IconOverlayTracker Timer" [_thread_blocked, id=1204]
0x04060800 JavaThread "Log Page Updater" [_thread_blocked, id=2160]
0x03323800 JavaThread "TimerQueue" daemon [_thread_blocked, id=3996]
0x032d1800 JavaThread "AWT-EventQueue-0" [_thread_blocked, id=4004]
0x032ca400 JavaThread "AWT-Windows" daemon [_thread_in_native, id=1488]
0x032c9800 JavaThread "AWT-Shutdown" [_thread_blocked, id=256]
0x032c8400 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=1064]
0x02c0d000 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=2956]
0x02c08400 JavaThread "CompilerThread0" daemon [_thread_blocked, id=3236]
0x02c07400 JavaThread "Attach Listener" daemon [_thread_blocked, id=3248]
0x02c06800 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=3232]
0x02bfe400 JavaThread "Finalizer" daemon [_thread_blocked, id=2328]
0x02bfd400 JavaThread "Reference Handler" daemon [_thread_blocked, id=1668]
Other Threads:
0x02bfc000 VMThread [id=2868]
0x02c0e800 WatcherThread [id=2940]
VM state:not at safepoint (normal execution)
VM Mutex/Monitor currently owned by a thread: None
Heap
def new generation total 1536K, used 500K [0x06960000, 0x06b00000, 0x090c0000)
eden space 1408K, 26% used [0x06960000, 0x069bd3b0, 0x06ac0000)
from space 128K, 100% used [0x06ac0000, 0x06ae0000, 0x06ae0000)
to space 128K, 0% used [0x06ae0000, 0x06ae0000, 0x06b00000)
tenured generation total 19372K, used 12857K [0x090c0000, 0x0a3ab000, 0x26960000)
the space 19372K, 66% used [0x090c0000, 0x09d4e400, 0x09d4e400, 0x0a3ab000)
compacting perm gen total 22272K, used 22205K [0x26960000, 0x27f20000, 0x2a960000)
the space 22272K, 99% used [0x26960000, 0x27f0f780, 0x27f0f800, 0x27f20000)
ro space 8192K, 62% used [0x2a960000, 0x2ae614a8, 0x2ae61600, 0x2b160000)
rw space 12288K, 52% used [0x2b160000, 0x2b7a7278, 0x2b7a7400, 0x2bd60000)
Dynamic libraries:
0x00400000 - 0x00423000 C:\WINDOWS\system32\java.exe
0x7c900000 - 0x7c9b0000 C:\WINDOWS\system32\ntdll.dll
0x7c800000 - 0x7c8f5000 C:\WINDOWS\system32\kernel32.dll
0x77dd0000 - 0x77e6b000 C:\WINDOWS\system32\ADVAPI32.dll
0x77e70000 - 0x77f02000 C:\WINDOWS\system32\RPCRT4.dll
0x77fe0000 - 0x77ff1000 C:\WINDOWS\system32\Secur32.dll
0x7c340000 - 0x7c396000 C:\Program Files\Java\jre1.6.0_03\bin\msvcr71.dll
0x6d7c0000 - 0x6da0a000 C:\Program Files\Java\jre1.6.0_03\bin\client\jvm.dll
0x7e410000 - 0x7e4a0000 C:\WINDOWS\system32\USER32.dll
0x77f10000 - 0x77f57000 C:\WINDOWS\system32\GDI32.dll
0x76b40000 - 0x76b6d000 C:\WINDOWS\system32\WINMM.dll
0x6d310000 - 0x6d318000 C:\Program Files\Java\jre1.6.0_03\bin\hpi.dll
0x76bf0000 - 0x76bfb000 C:\WINDOWS\system32\PSAPI.DLL
0x6d770000 - 0x6d77c000 C:\Program Files\Java\jre1.6.0_03\bin\verify.dll
0x6d3b0000 - 0x6d3cf000 C:\Program Files\Java\jre1.6.0_03\bin\java.dll
0x6d7b0000 - 0x6d7bf000 C:\Program Files\Java\jre1.6.0_03\bin\zip.dll
0x6d000000 - 0x6d1c3000 C:\Program Files\Java\jre1.6.0_03\bin\awt.dll
0x73000000 - 0x73026000 C:\WINDOWS\system32\WINSPOOL.DRV
0x77c10000 - 0x77c68000 C:\WINDOWS\system32\msvcrt.dll
0x76390000 - 0x763ad000 C:\WINDOWS\system32\IMM32.dll
0x774e0000 - 0x7761d000 C:\WINDOWS\system32\ole32.dll
0x5ad70000 - 0x5ada8000 C:\WINDOWS\system32\uxtheme.dll
0x73760000 - 0x737a9000 C:\WINDOWS\system32\ddraw.dll
0x73bc0000 - 0x73bc6000 C:\WINDOWS\system32\DCIMAN32.dll
0x6d2b0000 - 0x6d303000 C:\Program Files\Java\jre1.6.0_03\bin\fontmanager.dll
0x74720000 - 0x7476b000 C:\WINDOWS\system32\MSCTF.dll
0x7c9c0000 - 0x7d1d7000 C:\WINDOWS\system32\shell32.dll
0x77f60000 - 0x77fd6000 C:\WINDOWS\system32\SHLWAPI.dll
0x773d0000 - 0x774d3000 C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.2982_x-ww_ac3f9c03\comctl32.dll
0x5d090000 - 0x5d12a000 C:\WINDOWS\system32\comctl32.dll
0x77b40000 - 0x77b62000 C:\WINDOWS\system32\Apphelp.dll
0x77c00000 - 0x77c08000 C:\WINDOWS\system32\VERSION.dll
0x03850000 - 0x0386a000 C:\sqldeveloper-1.2.1.3213-no-jre\sqldeveloper\ide\lib\idenative.dll
0x77120000 - 0x771ab000 C:\WINDOWS\system32\OLEAUT32.dll
0x6d570000 - 0x6d583000 C:\Program Files\Java\jre1.6.0_03\bin\net.dll
0x71ab0000 - 0x71ac7000 C:\WINDOWS\system32\WS2_32.dll
0x71aa0000 - 0x71aa8000 C:\WINDOWS\system32\WS2HELP.dll
0x6d590000 - 0x6d599000 C:\Program Files\Java\jre1.6.0_03\bin\nio.dll
0x605d0000 - 0x605d9000 C:\WINDOWS\system32\mslbui.dll
0x6d220000 - 0x6d243000 C:\Program Files\Java\jre1.6.0_03\bin\dcpr.dll
0x71a50000 - 0x71a8f000 C:\WINDOWS\System32\mswsock.dll
0x76f20000 - 0x76f47000 C:\WINDOWS\system32\DNSAPI.dll
0x76fb0000 - 0x76fb8000 C:\WINDOWS\System32\winrnr.dll
0x76f60000 - 0x76f8c000 C:\WINDOWS\system32\WLDAP32.dll
0x66210000 - 0x66219000 C:\WINDOWS\system32\netware\NWWS2NDS.DLL
0x50d50000 - 0x50d98000 C:\WINDOWS\system32\NETWIN32.DLL
0x50d00000 - 0x50d15000 C:\WINDOWS\system32\CLNWIN32.DLL
0x50df0000 - 0x50e10000 C:\WINDOWS\system32\LOCWIN32.DLL
0x50db0000 - 0x50ddc000 C:\WINDOWS\system32\NCPWIN32.dll
0x71ad0000 - 0x71ad9000 C:\WINDOWS\system32\WSOCK32.dll
0x66220000 - 0x6622c000 C:\WINDOWS\system32\netware\NWWS2SLP.DLL
0x66250000 - 0x66257000 C:\WINDOWS\system32\NWSRVLOC.dll
0x76fc0000 - 0x76fc6000 C:\WINDOWS\system32\rasadhlp.dll
0x662b0000 - 0x66308000 C:\WINDOWS\system32\hnetcfg.dll
0x71a90000 - 0x71a98000 C:\WINDOWS\System32\wshtcpip.dll
0x6d560000 - 0x6d569000 C:\Program Files\Java\jre1.6.0_03\bin\management.dll
0x62f00000 - 0x62f13000 C:\oracle\product\10.2.0\client_1\ocijdbc10.dll
0x03e50000 - 0x03ea7000 C:\oracle\product\10.2.0\client_1\OCI.dll
0x2c560000 - 0x31bf6000 C:\oracle\product\10.2.0\client_1\OraOCIEI10.dll
0x77a80000 - 0x77b14000 C:\WINDOWS\system32\CRYPT32.dll
0x77b20000 - 0x77b32000 C:\WINDOWS\system32\MSASN1.dll
VM Arguments:
jvm_args: -Xmx512M -Xverify:none -XX:JavaPriority10_To_OSPriority=10 -XX:JavaPriority9_To_OSPriority=9 -Doracle.ide.util.AddinPolicyUtils.OVERRIDE_FLAG=true -Dsun.java2d.ddoffscreen=false -Dwindows.shell.font.languages= -Dide.conf=sqldeveloper.conf -Dide.home.dir.name=.sqldeveloper
java_command: oracle.ide.boot.Launcher
Launcher Type: SUN_STANDARD
Environment Variables:
PATH=C:\oracle\product\10.2.0\client_1;X:\oracle10g\product\10.2.0\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Intel\DMIX;C:\WINDOWS\system32\nls;C:\WINDOWS\system32\nls\ENGLISH;C:\Program Files\IDM Computer Solutions\UltraEdit-32
USERNAME=leexx255
OS=Windows_NT
PROCESSOR_IDENTIFIER=x86 Family 15 Model 2 Stepping 9, GenuineIntel
--------------- S Y S T E M ---------------
OS: Windows XP Build 2600 Service Pack 2
CPU:total 1 (1 cores per cpu, 1 threads per core) family 15 model 2 stepping 9, cmov, cx8, fxsr, mmx, sse, sse2
Memory: 4k page, physical 2079468k(1385300k free), swap 4021668k(3516444k free)
vm_info: Java HotSpot(TM) Client VM (1.6.0_03-b05) for windows-x86, built on Sep 24 2007 22:24:33 by "java_re" with unknown MS VC++:1310
Is this a java problem? SQL Developer problem? Or something else?
Thanks in advance,
a TOAD loverThe problem you are seeing (the EXCEPTION_ACCESS_VIOLATION) is a result of a version mismatch between the JDBC driver being used by SQL Developer and the Oracle client that is found on the path.
This issue only occurs when trying to use the OCI version of the JDBC driver. The simplest fix is to switch to using the basic connection type and thus using the thin (all Java) JDBC driver. As no Oracle client is required in this case, the version mismatch won't be an issue.
However, the connection approach you are using should work, and if you wish to try to sort out the problems there, we should be able to further diagnose the underlying cause of the version mismatch.
To do this, I would need to see what SQL Developer thinks are the potential Oracle client installs, as well as which install it ends up picking. Can you copy/paste the output in the Log Window (Logging Page) that is present after SQL Developer starts (but before you attempt to connect to any database)? There should be a whole series of entries like 'Checking for ORACLE_HOME environment variable' and 'Checking JDBC driver at <some path>'
These log entries are output by SQL Developer as it tries to sort out the various bits of information about Oracle client installs and thus give a peek at the selection logic being used.
Oh, and also - the value of your PATH variable would be useful as well. It may be that there is an Oracle client install on the PATH that supersedes the install SQL Developer is finding via the registry or ORACLE_HOME variable.
- John McGinnis
SQL Developer Team
Maybe you are looking for
-
Hi, I have FCE2. I'm trying to print my project to video. I've used both Sony and Canon Mini DV camcorders. When I hit "Ok to start recording media onto deck", the project plays back ontop of a black screen on my computer and my camera is rolling, it
-
Mac OS X 10.5, Leopard
Hello all, I have G5 power mac with 1.8 dual core PowerPC G5 cpu, and 512 of ram installed. I payed 100 bucks for the thing without the HD display. I think I got a good price but on to my prob the superdrive is making this weird sound if i play a DVD
-
Airport Express w/Ethernet Network
Hi all! Is it possible to use the AX to connect to an ethernet network and stream audio? I've tried turning off the radio and using the bridge mode...the AX will appear in the Airport Utility for a couple of minutes, then disappear. I've also tried t
-
How to set weblogic 8.1SP4 not generated a EAR file; just leave ear folder
Could anyone please tell me how to configurate weblogic 8.1? Thanks.
-
Adobe CS1 and OS 10.6?
Buying a new laptop and have old software. Will the original CS work well on OS 10. 6 or should I look for a machine with 10.5?