First Time: SQL Developer connect to DB
Need help with TNS entries not showing from the TNSNames entries.
I do not have a TNSNames file?
Oceans_Blue wrote:
if i open the new connection dialog and select TNS as the connection type, there is no list of databases
command window and typing
tnsping xxxx
Failed to resolve name
That means you have the wrong name. However, the output from the tnsping command should, as I said above, show you where the oracle networking files are. Have you looked in there?
Have you looked in toad to see how it is connecting?
Have you read any of the external links people have posted that might give you an understanding of how things are supposed to work?
It is very difficult for us to help you when you are only providing information in bits and pieces. At this rate we will still be here next year trying to understand your setup. The best people to help you are your internal dba team or it support team.
Similar Messages
-
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 -
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 -
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 -
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. -
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 -
Just hooked up new apple tv for first time. able to connect to internet (netflix, youtube) but not able to connect to my itunes account via home sharing. apple tv tells me to make sure computer's itunes has home-sharing enabled, which it does. any advice?
Have done both suggestions, still not working. Could it have somehting to do with my local network? I am using a wireless Internet provided by my apartment building so not sure if apple tv and my computer are not technically on the same "local network?"
apple tv and main computer are connecting to Internet fine. Just cannot see my itunes on apple tv.
any other advice? My itunes is turned on to home sharing. i entered the same apple itunes account into aple tv. but appletv keeps saying my computer's home sharing is not turned on...but it is. -
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 -
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. -
Issue with SQL Developer connect to SQL server
I'm using "SQL Developer 2.1.1.64.45" to work on a migration project which needs to convert a SQL server database to a Oracle 11g database. But I got an issue when I setup the SQL server connection. The SQL Developer let me connect by selecting a SQL server database name (For example: Northwind), but once connected, it always connected to "master" database instead. The "SQL Developer" is running on Windows 7 Professional (x64) platform. My Oracle database is 11g, and SQL server database is SQL 2005. And my SQL server instance name is "SQL2005". Anyone have ever experienced this problem? Thanks in advance.
Edited by: user8276338 on Feb 8, 2011 1:05 PMHi Bob,
Thanks for the feedback, lets stick with SQL Developer 3.
Correct me if I'm wrong,
You attempted to migrate from SQL Server to Oracle including target generation and datamove in one go, by filling in each step of the migration wizard to the end.
During the datamove you got
ORA-01000:maximum open cursor exceeded
So it looks like SQL Developer during the migration is not closing cursors fast enough and hits the maximum number of open cursors in your Oracle database.
I think the default max open cursors is 300 in Oracle.
There are a few things we can do here.
You should be able to see the new migration project in your Migration Projects navigator.
By navigating down the project tree to "Converted Database Objects" we can attempt the data move again by right clicking and choosing "Data Move".
But first I would restart SQL Developer so as to free up any lingering open cursors.
That may allow you to complete the data move, as the only cursors being open are being used in the data move and not some cursors which may have been left open from previous steps in the migration.
Now from my perspective I would like to identify where are we leaving open the cursors, so I'm going to setup some testcases my end to see if I can replicate.
From your perspective Id presume you just want to move on with the migration.
So if the above (shutdown and attempt just the data move) doesnt workyou could
A) Increase the MAX OPEN CURSORs on your Oracle databases so it complete the data move
or
B) Use the offline data move technique.
A) Increase MAX OPEN CURSORs
This wiki explains how to do that, looks like 1000 is fairly common, but even a much larger number is not a problem
http://wiki.oracle.com/page/OPEN_CURSORS
ALTER SYSTEM SET OPEN_CURSORS = 10000;
OR
B) Offline Data Move
If you are moving large amounts of data (say > 1GB), then the standard data move (we call it online), which just uses JDBC to SELECT * FROM and INSERT INTO may not cut the mustard.
In this case you can try using our offline technique. SQL Developer will generate a set of scripts for you.
unload_script.bat will use SQL Servers BCP tool to dump out the table data into DAT files.
oracle_ctl.bat will load the data in the DAT files into Oracle.
As we know the names of all the tables, columns ,both SQL Server and Oracle, we can generate fairly good scripts.
The benefit of this technique is large amounts of data can be migrated and you get to use tools designed to dump data and load in data, so you have better error logging and tweaking.
To attempt this in the Migration Wizard , Data Move page, select offline.
If you can describe your database a bit (number of tables, number of procedures, amount of data to migrate) I may be able to define my testcase better so I can replicate the issue.
Thanks
Dermot
SQL Developer Team. -
Can SQL developer connect to Oracle 8i?
Hi, guys:
Is there any way that we can connect oracle 8i with SQl developer? We are rewriting a system with APEX 4.1 and PL/SQL on Oracle 11g R2. However, the legacy system was written in Oracle portal on Oracle 8i platform. We cannot connect SQL developer 3.1.07 to oracle 8i for some reason. Anyone could give us a hint on this?
Thanks a lot!
Sam
Edited by: lxiscas on Oct 4, 2012 12:22 PM>
Is there any way that we can connect oracle 8i with SQl developer? We are rewriting a system with APEX 4.1 and PL/SQL on Oracle 11g R2. However, the legacy system was written in Oracle portal on Oracle 8i platform. We cannot connect SQL developer 3.1.07 to oracle 8i for some reason. Anyone could give us a hint on this?
>
The JDBC 11.x.x drivers do not support 8i or earlier versions of the database and the current sql developer releases use those drivers.
If your Oracle 8 version is 8.17 or later you should use the JDBC 10.2.0 driver; otherwise prior to 8.17 you will need the JDBC 9.0.1 driver to support it.
Here is the official Oracle JDBC page that shows the Oracle DB versions supported for each of the JDBC drivers available and also describes the JDBC jars and what JDK versions they support.
http://www.oracle.com/technetwork/database/enterprise-edition/jdbc-faq-090281.html#02_01
The various JDBC jar files and supporting files are available via link on that page but no source code.
The official download page for JDBC, SQLJ, Oracle JPublisher and Universal Connection Pool (UCP) is here
http://www.oracle.com/technetwork/database/features/jdbc/index-091264.html
If you download an older version of sql developer as Gary suggested make sure it uses one of the JDBC 10.x or earlier jars and also make sure that the jar you use supports the JDK version you are using. Any mismatch and you will likely have problems. The first link I provided above has ALL of the allowable combinations listed. -
SQL Developer connection to TimesTen
Hi,
I am new to SQL Developer and TimesTen DB.
I am trying to connect to a TimesTen DB running on a Solaris x86 box using a SQL Developer running on a WinXP PC. Is this possible?
The TimesTen Release I am using is 7.0.5.0.0. The SQL Developer version I am using is 1.5.4
After installing the TimesTen Client libraries on the WinXP, I was able to get the TimesTen tab in SQL Developer.
On the server I can connect using "ttIsql" as follows:
./ttIsql -connStr dsn=cas
I am not sure what I need to enter into "New/Select Database Connection" pop-up menu. I entered a "Connection Name". I set the "DSN" to "User Specified" and the "Connection string" to "dsn=cas" but I cannot get the connection setup.
Any help would be greatly appreciated.
Thanks
PaulHi Paul,
In order to connect to a remote TimesTen database, you need to first create a client DSN. The client DSN should map to the DSN "cas" on your Solaris server. To create a client DSN on Windows, follow the step by step instructions listed in the section "Creating and configuring Client DSNs on Windows" of the [TimesTen In-Memory Database Operations Guide|http://www.oracle.com/technology/documentation/timesten_doc.html]. Use ttIsql on Windows to verify that your client DSN is working, and can connect to your TimesTen database. In SQL Developer, you just need to select the same client DSN in the DSN drop down list.
Regards
Simon -
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.
Maybe you are looking for
-
HP LaserJet Pro 100 color MFP M175nw does not connect to wireless network
I recently upgraded my wireless network router. I had my HP LaserJet Pro 100 color MFP M175nw connected to the old wireless network router. The SSID is password protected (WPA2) I need to connect the printer to the new wireless network router. Howeve
-
Hello i have an Xserve G5 and i have to initiate a Round Robin (loadbalancing) configuration for a website. Can someone tell me how to make an automatic mirror of the server. (If a file was deletet on one of them, on the it will be deletet automatic,
-
Error in sales order when selecting a warranty item in configurator 'Please enter required information - Service Reference Type Code' Not able to book the sales order because of this issue
-
Windows 8.1 upgrade not possible because Win 8 isn't activated
A few months ago I bought a new Toshiba Satallite laptop with Windows 8 pre-installed Now I want to upgrade Windows 8 to Windows 8.1. But I don't see the Windows 8.1 upgrade in de Windows store. I think this is because my current installed windows do
-
ITunes can't open - because of QuickTime?!
Hi, recently when I try to open iTunes, I get the notorious "iTunes has encountered a problem and needs to close" error message from windows. The error report is as follows: AppName: itunes.exe AppVer.:6.0.0.18 Offset 0000b77d Now, I did do research,