Can't save a connection on SQL Developer 1.5

I just installed SQL Dev 1.5. The first time I run it all was fine. The second time it was giving me severe errors.
The first one was 'failed to create naming Context for db connections at url: file:/C:/Documents and Settings/thatzi/Application Data/SQL Developer/system1.5.0.53.38/o.jdeveloper.db.connection.11.1.1.0.22.49.35/connections.xml'.
The second one was 'DatabaseConnections has no JNDI context so cannot list connections.'
After I deleted the 'C:/Documents and Settings/thatzi/Application Data/SQL Developer' directory I was able to run the app one more time, but had the same problem next time I run the app.
There must be a way to fix this. Can anybody help?

I can save new connections to my existing connections.xml file, and I can save to a new connections file. I just can't save existing connections.
I looked at the xml for the old version, and compared to the new version, and they are quite different. I tried deleting the system1.5.1.54.40\o.jdeveloper.db.connection.11.1.1.0.22.49.35 directory, so it would ask me about migrating old settings again, and this time I selected the directory for the previous version, 1.5.0.53.38. The connections weren't migrated. Apparently I can't save the existing connections because the old connections.xml format is not valid. How can I migrate/convert my old connections file to work in the new version. For all I know, this could have been an existing problem from when I converted from 1.2. This is just the first time I've had an occasion to change connection info, so I might be using a connections.xml file from 1.2.
Here is one of my connection xml configs that I am unable to update:
<Reference className="oracle.jdeveloper.db.adapter.DatabaseProvider" name="DB1">
<Factory className="oracle.jdeveloper.db.adapter.DatabaseProviderFactory"/>
<RefAddresses>
<StringRefAddr addrType="subtype">
<Contents>oraJDBC</Contents>
</StringRefAddr>
<StringRefAddr addrType="user">
<Contents>myuser_id</Contents>
</StringRefAddr>
<StringRefAddr addrType="password">
<Contents>myPassword</Contents>
</StringRefAddr>
<StringRefAddr addrType="SavePassword">
<Contents>true</Contents>
</StringRefAddr>
<StringRefAddr addrType="DeployPassword">
<Contents>false</Contents>
</StringRefAddr>
<StringRefAddr addrType="driver">
<Contents>oracle.jdbc.OracleDriver</Contents>
</StringRefAddr>
<StringRefAddr addrType="customUrl">
<Contents>jdbc:oracle:thin:@ (DESCRIPTION= (ADDRESS_LIST= (ADDRESS= (PROTOCOL=TCP) (HOST=NNN.NNN.NNN.NNN) (PORT=NNNNN) ) ) (CONNECT_DATA= (SID=db1) ) )</Contents>
</StringRefAddr>
<StringRefAddr addrType="oraDriverType">
<Contents>thin</Contents>
</StringRefAddr>
</RefAddresses>
</Reference>

Similar Messages

  • Connect from SQL Developer to several SQL Server instances

    Our SQL Server has more than one instance, but I see only one instance of them trying to connect from SQL Developer 1.2 to SQL Server. How I should define the connection information? Usually we connect to SQL Server by <hostname>/<instancename> and then the database name as CatalogName (Initial Catalog). In the Oracle world you can give only the hostname, a port number and the database name. How I can convince the SQL Developer to choose one of our SQL Server instances?

    Hi user627927,
    Bug/Enhancement request already logged.
    We have not got this configuration in house, two people have suggested workarounds but we are unable to test them for now. The last person was unable to get these workarounds working, and we have not confirmed them in house.
    Can you get the instances connected through two different ports?
    It would be great if you could confirm either workaround.
    -Turloch
    *1/Suggestion 1 change the URL through SQLDevelopers xml connection store.
    *2/Overload the port field to have instance in the eventual url
    *1/Suggestion 1 change the url through SQLDevelopers xml connection store.
    [Note it is probably simpler to connect a dummy connection through the connection dialog as usual save it (you cannot connect) and then add the instance information rather than having to enter all the information in an unmanaged way.]
    Hi Naveen,
    I had same problem as you and user579801. I managed to resolve it by doing the following.
    1. Locate the file called IDEConnections.xml in the folder where you have installed SQL Developer (eg. c:\sql developer\sqldeveloper\system\oracle.jdeveloper.db.connection.11.1.1.0.11.42.62).
    2. Create the following entries under <connections> tag.
    <connection>
    <URL>jdbc:jtds:sqlserver://\\.\;namedPipe=true;instance=SQLDBNam;</URL>
    <ConnectionName>SQLServer</ConnectionName>
    <user>SQLUser</user>
    <ConnectionType>JDBC</ConnectionType>
    <DeployPassword>false</DeployPassword>
    <JdbcDriver>net.sourceforge.jtds.jdbc.Driver</JdbcDriver>
    <RaptorConnectionType>Microsoft SQL Server</RaptorConnectionType>
    </connection>
    3. Save the file; Close and re-open the SQL Developer and try connecting.
    Hope this will solve your problem. Good luck.
    Regards
    Raja
    *2/Overload the port field to have instance in the eventual url
    This took some figuring out but I cracked it in the end....
    SQLServer tab:
    Hostname: <servername>
    Port: <portnumber>/<databasename>;instance=<instancename>
    so for me the Port field looks like this: 1433/Gaffa;instance=SQL01
    That should now connect to a named instance SQL Server.
    Paul Fairhurst

  • Question about creating a cloud connection to SQL Developer

    Hi all!
    I want to create a cloud connection on SQL Developer to Oracle cloud, but keep getting the following error (NOTE: I have the trial version. Also, I have replace the identity domain name with asterisks for the post) :
    Connection to https://databasetrial1875-******.db.us1.oraclecloudapps.com refused
    Additional Details:
    oracle.dbtools.raptor.cloud.auth.AuthenticationFailedException: Connection to https://databasetrial1875-******.db.us1.oraclecloudapps.com refused
      at oracle.dbtools.raptor.cloud.auth.basic.BasicAuthenticationEngine.doPost(BasicAuthenticationEngine.java:228)
      at oracle.dbtools.raptor.cloud.auth.basic.BasicAuthenticationEngine.authenticate(BasicAuthenticationEngine.java:73)
      at oracle.dbtools.raptor.cloud.connection.ConnectionCreator.createConnection(ConnectionCreator.java:24)
      at oracle.dbtools.raptor.cloud.connection.CConnections$C.getConnection(CConnections.java:39)
      at oracle.dbtools.raptor.cloud.connection.CConnections.getConnection(CConnections.java:176)
      at oracle.dbtools.raptor.cloud.navigator.CloudConnection.openConnectionImpl(CloudConnection.java:127)
      at oracle.dbtools.raptor.cloud.navigator.CloudConnection.getConnection(CloudConnection.java:89)
      at oracle.dbtools.raptor.cloud.navigator.ConnectionTreeNode$LoadTask.doWork(ConnectionTreeNode.java:74)
      at oracle.dbtools.raptor.cloud.navigator.ConnectionTreeNode$LoadTask.doWork(ConnectionTreeNode.java:38)
      at oracle.dbtools.raptor.backgroundTask.RaptorTask.call(RaptorTask.java:193)
      at java.util.concurrent.FutureTask.run(FutureTask.java:262)
      at oracle.dbtools.raptor.backgroundTask.RaptorTaskManager$RaptorFutureTask.run(RaptorTaskManager.java:554)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
      at java.util.concurrent.FutureTask.run(FutureTask.java:262)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      at java.lang.Thread.run(Thread.java:744)
    Caused by: org.apache.http.conn.HttpHostConnectException: Connection to https://databasetrial1875-******.db.us1.oraclecloudapps.com refused
      at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:158)
      at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:149)
      at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:121)
      at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:561)
      at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:415)
      at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:820)
      at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:941)
      at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:919)
      at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:910)
      at oracle.dbtools.raptor.cloud.connection.DefaultClient.executeRequest(DefaultClient.java:90)
      at oracle.dbtools.raptor.cloud.auth.basic.BasicAuthenticationEngine.doPost(BasicAuthenticationEngine.java:219)
      ... 16 more
    Caused by: java.net.ConnectException: Connection refused: connect
      at java.net.DualStackPlainSocketImpl.connect0(Native Method)
      at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:79)
      at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
      at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
      at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
      at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
      at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
      at java.net.Socket.connect(Socket.java:579)
      at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:618)
      at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:375)
      at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:148)
      ... 26 more
    I have followed the steps to the last letter using: Data Loading and the Oracle Database Cloud Service
    What I have done on the dashboard and APEX:
    I changed the password of the SFTP user.
    I have created a new user on APEX that belongs to the SQL Developer Group and changed the 'Require change on Password on First Use' to NO before creating the user
    SQL Developer:
    I set the database username to the new user I created in APEX
    I set the database URL to the URL I used to reach the APEX page...https://databasetrial1875-******.db.us1.oraclecloudapps.com/apex/  
    I set the SFTP username to the username listed next to 'Service SFTP User Name' on the dashboard
    I set the SFTP hostname to: sftp.us1.cloud.oracle.com
    I left the port set to 22
    When I login on SQL Developer to database, I use the password for the user I created in APEX
    Thanks in advance to all who help!

    Hi,
    You have to use the admin account to add the admin role to the developer account. Can you please try this and let me know of your feedback.
    The settings you added look good, and the you have the latest version of Sql DEVELOPER     , ...so this should be an issue.
    Maybe you have some firewall setting on your computer, that are blocking the connection?
    If , after checking all of the above you still have an issue, please contact oracle support via the chat on the cloud.oracle.com and ask the engineer to open a Service Request under your name.
    Thanks,
    Flori

  • Unable to create a connection in SQL developer

    hii
    I'm unable to create a connection in SQL developer..it says I/O Exception, Network Adapter could not establish a connection...i provided the username and password which i used for SQL*Plus, which is working fine. And i gave the host as localhost. I don't know how to fill the connection name field..can anyone help me in connecting to the database...By the way I'm using Oracle 11g. Thankssssss

    you could try to change the connection type to TNS and pick the database name available to you in the Network Alias drop-down list.
    Edited by: Alex Nuijten on Sep 5, 2008 10:13 AM

  • Problems Creating Custom Connections In SQL Developer

    I have the Auto-Generated Local Connections available in SQL Developer 3.2.20.09 Build MAIN-09.87, but cannot create my own connections. I've searched the forums, but haven't had an "AHA" moment.
    I installed the 32-Bit Oracle 11gR2 and SQL Developer with JRE on my Windows x64 system because installing the x64 version of Oracle 11gR2 failed. This is for database classes I'm taking at the local community college.
    Trying to create a connection with OS Authentication:
    Connection Name: PaulK
    Connection type: Basic
    Role: default
    Hostname: localhost
    Port: 1521
    SID: orcl
    and clicking Test returns Status: Failure - Test failed:  The Network Adapter could  not establish the connection
    When I run lsnrctl services, I get
    Microsoft Windows [Version 6.1.7601]
    Copyright (c) 2009 Microsoft Corporation. All rights reserved.
    C:\Users\PaulK>lsnrctl services
    LSNRCTL for 32-bit Windows: Version 11.2.0.1.0 - Production on 26-APR-2013 13:36:35
    Copyright (c) 1991, 2010, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
    Services Summary...
    Service "CLRExtProc" has 1 instance(s).
    Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:0 refused:0
    LOCAL SERVER
    listener.ora contains
    # listener.ora Network Configuration File: E:\app\PaulK\product\11.2.0\dbhome_1\network\admin\listener.ora
    # Generated by Oracle configuration tools.
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = CLRExtProc)
    (ORACLE_HOME = E:\app\PaulK\product\11.2.0\dbhome_1)
    (PROGRAM = extproc)
    (ENVS = "EXTPROC_DLLS=ONLY:E:\app\PaulK\product\11.2.0\dbhome_1\bin\oraclr11.dll")
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    ADR_BASE_LISTENER = E:\app\PaulK
    tnsnames.ora contains
    # tnsnames.ora Network Configuration File: E:\app\PaulK\product\11.2.0\dbhome_1\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    ORACLR_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    (CONNECT_DATA =
    (SID = CLRExtProc)
    (PRESENTATION = RO)
    ORCL =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = orcl)
    I assume something is missing or incorrect, but I don't know what.
    Thanks in advance for your help.

    I reinstalled Oracle 11gR2 x86 and ran lsnrctl:
    Microsoft Windows [Version 6.1.7601]
    Copyright (c) 2009 Microsoft Corporation. All rights reserved.
    C:\Users\PaulK>lsnrctl status
    LSNRCTL for 32-bit Windows: Version 11.2.0.1.0 - Production on 02-MAY-2013 15:51:56
    Copyright (c) 1991, 2010, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for 32-bit Windows: Version 11.2.0.1.0 - Production
    Start Date 02-MAY-2013 14:57:07
    Uptime 0 days 0 hr. 54 min. 53 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File E:\app\PaulK\product\11.2.0\dbhome_1\network\admin\listener.ora
    Listener Log File e:\app\paulk\diag\tnslsnr\PaulK-PC\listener\alert\log.xml
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1521ipc)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
    Services Summary...
    Service "CLRExtProc" has 1 instance(s).
    Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "orcl" has 1 instance(s).
    Instance "orcl", status READY, has 1 handler(s) for this service...
    Service "orclXDB" has 1 instance(s).
    Instance "orcl", status READY, has 1 handler(s) for this service...
    The command completed successfully
    C:\Users\PaulK>lsnrctl services
    LSNRCTL for 32-bit Windows: Version 11.2.0.1.0 - Production on 02-MAY-2013 15:53:19
    Copyright (c) 1991, 2010, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
    Services Summary...
    Service "CLRExtProc" has 1 instance(s).
    Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:0 refused:0
    LOCAL SERVER
    Service "orcl" has 1 instance(s).
    Instance "orcl", status READY, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:4 refused:0 state:ready
    LOCAL SERVER
    Service "orclXDB" has 1 instance(s).
    Instance "orcl", status READY, has 1 handler(s) for this service...
    Handler(s):
    "D000" established:0 refused:0 current:0 max:1022 state:ready
    DISPATCHER <machine: PAULK-PC, pid: 8880>
    (ADDRESS=(PROTOCOL=tcp)(HOST=PaulK-PC)(PORT=51451))
    The command completed successfully
    As you can see, my Service "orcl" matches your example, but I am still unable to create a new connection in SQL Developer.
    This is my tnsnames.ora file:
    # tnsnames.ora Network Configuration File: E:\app\PaulK\product\11.2.0\dbhome_1\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    LISTENER_ORCL =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    ORACLR_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    (CONNECT_DATA =
    (SID = CLRExtProc)
    (PRESENTATION = RO)
    ORCL =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = orcl)
    and my listener.ora file:
    # listener.ora Network Configuration File: E:\app\PaulK\product\11.2.0\dbhome_1\network\admin\listener.ora
    # Generated by Oracle configuration tools.
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = CLRExtProc)
    (ORACLE_HOME = E:\app\PaulK\product\11.2.0\dbhome_1)
    (PROGRAM = extproc)
    (ENVS = "EXTPROC_DLLS=ONLY:E:\app\PaulK\product\11.2.0\dbhome_1\bin\oraclr11.dll")
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    ADR_BASE_LISTENER = E:\app\PaulK
    These files are just as the install process created them, but are there any sore thumbs sticking out?
    Thanks.

  • No tables listed when using a proxy connection in SQL Developer

    Hello, I'm trying to use a connection in SQL developer that uses the proxy connection to connect to another users tables. In the SQL worksheet area I can access the other users tables with no problems. And using SELECT COUNT(*) FROM USER_TABLES i get the count of the number to tables. But on the tables view on the left hand side of SQL developer no tables are listed. So the question is why do I not see any tables under the tables view? Is this a bug or is it working by design? Thanks

    To access other user's objects, use the Other Users node...
    K.

  • Establish new connection in SQL developer

    hi,
    i am trying to establish new connection in sql developer, i m just new in orcale and installed 10g , from where i can get all the required information for new connection like HOSTNAME, port , sid etc
    pls someone can help me on this

    Depends. All this was presented to you when installing. If you didn't wrote anything down...
    If you accepted all defaults, it still depends on your DB version (which?).
    K.

  • Unable to connect using SQL Developer.

    Hi,
    I am having a hard time connecting to the database instance using "Cloud Connections," in SQL Developer.
    I am using the information found in here: http://docs.oracle.com/cloud/CSDBU/develop.htm#BABDBHJA to connect to my cloud-service, but all I get is an error:
    "Authentication Failed Invalid resource owner credentials."
    I am positive that I am using the same username and password as when logging in to could.oracle.com.
    Can anybody help me?

    Apologies for any difficulty you have been having.
    I would start by reviewing the white paper on data movement. My guess is that you have not defined an APEX user with SQL Developer privileges (yes, I know the process could be more clear - it's getting there.)
    You can find the white paper here - http://www.oracle.com/technetwork/database/database-cloud/public/data-movement-wp-1844121.pdf. Please make sure you follow all the steps properly, for both initialization and the actual connection.
    Hope this helps.
    - Rick Greenwald, Product Management, Database Cloud Service

  • Connection ... able to connect using sql developer, but not sqlplus or toad too

    Hi folks, having this issue, with only one of my so many databases, what might be the reason and how to fix/correct this, please assist.
    Able to connect using sql developer, but not sqlplus or toad too; sqlplus error: ORA-12154: TNS:could not resolve the connect identifier specified
    thanks in advance.

    SQLDEVELOPER works since it use JDBC Thin & does not use tnsnames.ora
    ORA-12154 ALWAYS only occurs on SQL Client & no SQL*Net packets ever leave client system
    ORA-12154 [B]NEVER[/B] involves the listener, the database itself or anything on the DB Server.
    ORA-12154 occurs when client requests a connection to some DB server system using some connection string.
    TNS-03505 is thrown by tnsping & is same error as ORA-12154 thrown by sqlplus or others.
    The lookup operation fails because the name provided can [B]NOT[/B] be resolved to any remote DB.
    The analogous operation would be when you wanted to call somebody, but could not find their name in any phonebook.
    The most frequent cause for the ORA-12154  error is when the connection alias can not be found in tnsnames.ora.
    The lookup operation of the alias can be impacted by the contents of the sqlnet.ora file; specifically DOMAIN entry.
    TROUBLESHOOTING GUIDE: ORA-12154 & TNS-12154 TNS:could not resolve service name [ID 114085.1]
    http://edstevensdba.wordpress.com/2011/02/26/ora-12154tns-03505/

  • How to connect to sql developer

    i have oracle 11g enterprise edition on my laptop i installed sql developer on my laptop how to connect sql developer to databace(oracle 11g enterprise edition) in my
    laptop

    Hi,
    Just launch SQL Developer and read the Getting Started section of the SQL Developer Concepts and Usage in Help|Table of Contents.
    Otherwise try searching this forum for earlier posts on the topic. For example, my entry in this thread:
    can't create connection in SQL developer
    Regards,
    Gary Graham
    SQL Developer Team

  • Able to connect from SQL-Assistant BUT unable to connect from Sql Developer

    Hello,
    I have been troubling with this issue for the last two weeks...tried so much, but could not able to resolve....
    sqlplus username/password@IPAddress:port/ServiceName
    I am able to connect to DATABASE from SQLAssistant only when I provide string like ABOVE........If I dont mention the SERVICE, m unable to connect to DB...
    Now the biggest issue is with SQL Developer.....m not at all able to connect to DB using SQL Developer....I tried all options...but no use...
    waiting for your reply......
    Thanks Much in Advance.....

    What have you tried, and what error messages are you getting?
    When you create a connection in SQL Developer, you should specify IPAddress,port,ServiceName as in your sqlplus connect string.

  • Can't create connection in SQL developer

    hi,
    i download sql developer from oracle website but when i want to start and start it with making new connection it always give me error saying
    test faild IO error: the network adapter could not estabilished a connection
    please help
    i am using windows vista 32bit OS

    Hi Saqid,
    If you performed a default Oracle 10g Express Edition installation on your local machine, then you should find something like the following:
    Services:
    OracleXEService Started Automatic
    OracleXETNSListener Started Automatic
    TNSNAMES.ORA file entry:
    XE =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = XE)
    You should be able to do the following from a Windows command prompt and get similar results:
    C:\>sqlplus /nolog
    SQL*Plus: Release 10.2.0.1.0 - Production on Mon Jul 25 14:53:17 2011
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    SQL> conn system
    Enter password:
    Connected.
    SQL>
    SQL> quit
    Disconnected from Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    C:\>
    C:\>tnsping xe
    TNS Ping Utility for 32-bit Windows: Version 10.2.0.1.0 - Production on 25-JUL-2011 14:22:35
    Copyright (c) 1997, 2005, Oracle. All rights reserved.
    Used parameter files:
    C:\oraclexe\app\oracle\product\10.2.0\server\network\admin\sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)
    (PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = XE)))
    OK (50 msec)
    When your installation works correctly for these commands, then the SQL Developer connection should work as well.  If not, please provide specific installation and machine details.  But first you need to verify using sqlplus and tnsping that the 10g installation is working correctly.  If not, then please post to the appropriate forum for help in that area.
    Regards,
    Gary Graham
    SQL Developer Team

  • Can't see package body in SQL Developer version 3.1

    Hello,
    Have been scouring the boards and google for this issue for quite some time now. I think I have discovered the issue, but would like to see if a work around exists.
    Problem:
    I am unable to view packages, procs, VIEW DDl, etc. of other users. When a colleague of mine uses Toad, with the EXACT same connection ID and setting, they are in fact able to see all the source code...
    What I've found:
    Looking around, apparently Toad and SQL Dev work in different ways. Toad apparently uses DBA_SOURCE and DBA_OBJECTS to generate everything.
    SQL Dev uses the META_DATA package to retrieve everything. Further, in order to use the meta_data package, I need the grant catalog role, or something like that.
    Is there a way to set up SQL Developer to use the same method as Toad to retrieve the code? It's a fact that I WILL NOT receive the catalog permission per the DBAs... I can write out the
    select text from DBA_SOURCE where OWNER = 'OWNER' and NAME = 'OBJECT NAME';
    But, I would prefer to just be able to use the tree nodes and click on objects to generate all this. Anyone know of any setting for this?

    Hi,
    No doubt SQL Developer wants to be competitive with Toad but, in terms of raising red flags over inconsistencies in basic functionality, any difference versus SQL*Plus would be more surprising than versus Toad.
    DBA_SOURCE and DBA_OBJECTS are public synonyms available in any standard Oracle installation, but you also need the SELECT ANY DICTIONARY privilege to get maximum benefit from them. That lets you view code in another user's schema without having an explicit privilege (like EXECUTE) on a package/procedure/function.
    If you already do have such privileges (either SELECT ANY DICTIONARY, or EXECUTE or DEBUG on specific executable objects), and the Code tab is empty, then you will need to provide a test case, as Vadim indicates.
    In terms of any case where SQL Developer utilizes DBMS_METADATA, my understanding is the API relies on the SELECT_CATALOG_ROLE privilege if a user does not own or otherwise have an explicitly granted privilege on an object. Developers like to use this API wherever possible in place of writing a script that might break or need maintenance to deal with future versions of the Oracle database.
    I have no idea how Toad works, and I probably shouldn't speculate, but here is one scenario that could explain the case you mention without the connection user having any of the privileges noted above. Let's say the Toad client software calls a PL/SQL package that selects from DBA_SOURCE and is installed in a schema that has the SELECT ANY DICTIONARY privilege. All Toad users are granted EXECUTE on this package and therefore inherit SELECT ANY DICTIONARY in the context of running the package. This will work, but at the price of complicating installation of Toad. Also, it doesn't afford an administrator fine-grained control over metadata security.
    Regards,
    Gary
    SQL Developer Team

  • New Connection in SQL Developer

    Hi all,
    Everything went well from the setting up of APEX, SQL DEV to the exporting of the Northwind DB. I am now trying to create a connection with the credentials in the application migration workshop pdf. I came across the following error : Listener does not currently know of SID given in connect descripter....
    tried to use 10GR2 which was specified and XE, the one of my database...
    can someone please help me in this regard, urgently.
    Thanks in Advance
    Melvin

    Hi Melvin,
    I'm not sure which connection you are trying to make. You mention that you are trying to make a connection using the credentials in the application migration workshop pdf - which credentials are you talking about? Please note that any username/password/host/SID information used in the documentation is for demonstration purposes. You should supply the information that corresponds with your environment. Is "10GR2" the SID for your Oracle Database instance? Please ensure that you use the connection details that correspond with your own database instance.
    If you are attempting to create a connection in Oracle SQL Developer to the newly migration Oracle schema, then ensure that the username/password combination you supply corresponds with the user created at the top of the generated DDL statements by the Migration Workbench e.g. if your database is called Northwind, then you can expect the username/password combination to be northwind/northwind.
    If you are attempting to create a connection to the Oracle database for your Migration Repository, please ensure that the user you are connecting as has the required privileges necessary for carrying out a migration. Please refer to the Migration documentation in Oracle SQL Developer for further information.
    I hope this helps.
    Regards,
    Hilary

  • Help how to connecting Oracle SQL Developer 3.0  with Oracle Database 11g

    Hello,
    I'm new in oracle developer yesterday i setup in my laptop database 11g the last version (11.2.0.1.0), well i follow steps still i got succeed to install, and i got my local host URL and i test my user name and password work very well, my problem now is i try to connect database 11g using Oracle SQL Developer 3.0 (3.0.04.34) but always filed and with my little experience i don't know where the wrong. as i said i test database after finish install is work fine the my URL is https://Ahmed-HP:1158/em and i test my username and password that i already set before is enter normal in my local database, please i need help to know how i connect database with Oracle SQL Developer 3.0 (3.0.04.34).
    Thanks,

    885173 wrote:
    EdStevens, thanks for your quick answer, sorry for my explain was doesn't clear, i open oracle sql developer and choose new connection i set connection name system_orcl username:system password:*i set my password that i create when i setup database*
    -Now the link that i got after finish install database is https://Ahmed-HP:1158/em so i have question about this point Hostname and port if the link to access database is this https://Ahmed-HP:1158/em so this mean i typing at Hostname:localhost and port:1158 ?
    because the message when i test connection always is filed and I'm sure i typing username and password and SID:orcl as i set when install database.port 1158 is what the dbcontrol (Oracle Enterprise Manager) is listening on. OEM is NOT the database. As far as the database is concerned, OEM is "just another client".
    Actually, the database doesn't listen for requests on any port. There is another process, the "listener" that listens for requests to connect to the database. Typically, it listens on port 1521. You should have a tnsnames.ora file set up to resolve a connection request to the correct host. You can read more on this at http://edstevensdba.wordpress.com/2011/02/09/sqlnet_overview/

Maybe you are looking for

  • Configuration error while creating index in KM

    Hi KM Expets, I am getting the following error while creating a new index via System Adminstration > System Configuration > Knowledge Management > Index Adminstration. Index could not be created; creating index failed: Invalid entry in configuration:

  • Mac version of BlackBerry Desktop Manager KB articles

    The following is a list of knowledge base articles for the Mac version of BlackBerry® Desktop Manager: KB18769 - System requirements for BlackBerry Desktop Manager version 1.0 (for Mac OS) KB18770 - Features of BlackBerry Desktop Manager 1.0 (for Mac

  • Plugin check errors

    just installed firefox 32.0 on windows 7 and windows xp and got a new plugin check bug - comes up with "Adobe Acrobat NPAPI Plug-inAdobe Acrobat NPAPI Plug-in" as vulnerable but when you hit the red button the page just navigates to itself have also

  • Capture Last ten Shots (Shift Registers)?

    Situation: - I am continuously acquiring data on 4 channels of the DAQ card using conditional triggering. Each loop captures 2000 samples, which are stored in 2-D waveform arrays containing each scan of each channel. The data is continually updated o

  • Hi, i am working in E.C.C. 6.0 , IN SMARTFORMS i am not getting the fields

    Hi, i am working in E.C.C. 6.0 , IN SMARTFORMS i am not getting the fields from field list on/off?