Can't connect to Database through JDeveloper with TNS connection

Hello there,
My work server we can connect to the server using TNS connection and it is working fine with Oracle SQL Developer that provide the type of connection. On the other hands, JDeveloper doesn't. I tried couple time to connect and I am unable to. Can someone tell me how to use a TNS type connection in JDeveloper?
Thank you.

I put server name for host name
From http://asktom.oracle.com
tell me what you consider to be the "server name".  do you want the sid?
do you want the database name?
do you want the global database name?  what is your concept of a "server name", we don't really have one  
Ask Tom "Server Name of the Oracle Database"

Similar Messages

  • How to Connect MySQL Database Through JTable?

    Hi,
    How to Connect MySQL Database Through JTable? anyone of u knows these concept please send me coding of that Part..
    Thanks,
    Guru..

    Start by reading the tutorials. There's a section on Swing which shows you how to use tables and a section on JDBC which shows you how to use SQL.
    And you can always search the forum as well since there are working examples of both posted on the forum.
    If you need further help with a specific problem then you need to create a [Short, Self Contained, Compilable and Executable, Example Program (SSCCE)|http://homepage1.nifty.com/algafield/sscce.html], that demonstrates the incorrect behaviour.
    Don't forget to use the [Code Formatting Tags|http://forum.java.sun.com/help.jspa?sec=formatting], so the posted code retains its original formatting.

  • Connecting to database through jsp

    i want to connect to database through jsp actually my requirement is i want to populate data in one list box in accordance with the selected option in another list box this must done in the same jsp and i must manupulate every thing java script can i found any solution to this with example

    just write ur code in scriplets if it is jdbc code & if it is html then write it out side scriplet.

  • How to connect 10g database through Enterprise manager???

    Hi All,
    I want to connect the database through Enterprise manager.
    My database is on 10g. Version is 10.1
    Please tell me the procedure to connect the database through E.M.
    Thanks and Regards,
    Prathamesh.

    Are you thinking of the Enterprise Manager supplied with Oracle9i? If yes - it doesn't work quite that way ... and the 9i java OEM is not compatible.
    Use the enterprise manager supplied with the 10g database, called the dbconsole (look for a service or start it using 'emctl start dbconsole') and access it using http://{localhost}:5500/em
    If that doesn't satisfy you, load the updated version of the OEM 9i java standalone from the 10g client disk.

  • Connecting to database through Captivate?

    Hello all...  
    I am using captivate4.
    My question description:    I have a requirement to connect to database through captivate(any  version) & retrieve the data & . I have "N" number of categories  in my course where the user will be given an option to select the  category according to his preference. I would like to place the  questions(category wise) in the data base (so that adding the additional  questions would be more flexible) & would like to call it into  Captivate quiz accordingly based on the user selection.
    How is this possible?
    Thanks & regards,
    Pullela.

    Have a look at Jim Leichliter's blog, if someone can do it it will be him:
    http://captivatedev.com/
    Lilybiri

  • How to connect sybase database in JDeveloper 11g using JConnect

    Hi
    How to connect sybase database in JDeveloper 11g using JConnect? Please help.

    User,
    It would help if you explained Sybase Jconnect instead of leaving us to google.
    At any rate, it appears you need to create a library definition in JDeveloper, add the appropriate JConnect JAR files to the library's classpath, and then add the library to your project.
    John

  • How we can create Oracle 9i Database through Commands.

    How we can create Oracle 9i Database through Commands.
    We need step by step process and all the scripts.

    CREATE DATABASE
    Caution:
    This statement prepares a database for initial use and erases any data currently in the specified files. Use this statement only when you understand its ramifications.
    Note Regarding Security Enhancements:
    In this release of Oracle and in subsequent releases, several enhancements are being made to ensure the security of default database user accounts.
    To provide guidance for configuring Oracle9i in a secure manner, Oracle Corporation provides a security checklist. Oracle Corporation recommends that you read this checklist and configure your database accordingly. The security checklist can be found at the following URL:
    http://otn.oracle.com/deploy/security/oracle9i/pdf/9iR2_checklist.pdf
    Examples
    Creating a Database: Example
    The following statement creates a database and fully specifies each argument:
    CREATE DATABASE sample
    CONTROLFILE REUSE
    LOGFILE
    GROUP 1 ('diskx:log1.log', 'disky:log1.log') SIZE 50K,
    GROUP 2 ('diskx:log2.log', 'disky:log2.log') SIZE 50K
    MAXLOGFILES 5
    MAXLOGHISTORY 100
    MAXDATAFILES 10
    MAXINSTANCES 2
    ARCHIVELOG
    CHARACTER SET AL32UTF8
    NATIONAL CHARACTER SET AL16UTF16
    DATAFILE
    'disk1:df1.dbf' AUTOEXTEND ON,
    'disk2:df2.dbf' AUTOEXTEND ON NEXT 10M MAXSIZE UNLIMITED
    DEFAULT TEMPORARY TABLESPACE temp_ts
    UNDO TABLESPACE undo_ts
    SET TIME_ZONE = '+02:00';
    http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96540/statements_55a.htm#SQLRF01204
    Joel P�rez

  • I have mac book pro and recently changed to Lion.  since then it will not recognise my epson r2880 printer telling me it is not connected when it plainly is with usb connection?

    I have mac book pro and recently changed to Lion.  since then it will not recognise my epson r2880 printer telling me it is not connected when it plainly is with usb connection?

    Turn off your printer.
    Go to System Preferences > Print & Scan > Printers window and delete the printer from the list, then add it back.
    Turn on your printer.
    Any difference?
    Here are some more tips from Apple Support article.

  • Failed to connect to database instance: ORA-12541: TNS:no listener

    Hello -
    This is the error in grid alert:
    Failed to connect to database instance: ORA-12541: TNS:no listener (DBD ERROR: OCIServerAttach).
    But the test of connection string in database configure screen is successful. tnsping works too.
    Grid version: 11.2.0.1.0, no patches.
    Target database version: 10.2.0.2
    Connect string: (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP) (HOST = s08) (PORT = 1528))) (CONNECT_DATA = (SID = S08) (GLOBAL_NAME = S08.WORLD)))
    Any ideas?

    OK.. Are you testing the connectivity from "Preferred Credentials " setting page?
    Try to configure target from
    Targets-->databases--> then select your database and click on "configure" button.
    Enter all the details and press "Test Connection" button once it shows that connection is successful go to next page and finally save the setting.
    Let me know how it goes....

  • Odbc connection test success but can't link the database to oracle with 1013 call failed error.

    i am using my MS Access 2013 to connect with my oracle database. I created the odbc link and successfully have connection test pass. However i can;t link the database with my MS access. When i am using different software (mapinfo), i am able to connect to oracle database. The error is"1013: user requested cancel of current operation"

    In MS access, i open the external data and select odbc. Select my odbc link created previously, enter the password and after a while the error message pop up.
    But if i am using another tools, such as SQL Developer or Mapinfo, i will able to connect to oracle database using the same odbc link.

  • Connect a database to jdeveloper webcenter suite

    Hi, i got some problems, maybe because i'm a beginer.
    I am creating with jdeveloper webcenter suite, a web portal. I learn that i need to connect my web in to a database to can run and try to use my web portal. Now, i'm trying to create a database in my computer, i do it with databse oracle 10g express edition, that is correct? i have to create something? any body knows any tutorial to help me how to create and connect a database to my project? it is easy?
    thanyou very much
    Valenti, from Barcelona
    Edited by: user11933068 on 06-oct-2009 0:48

    Hi,
    wrong forum, try
    WebCenter Portal
    Frank

  • How to connect Oracle database  through Microsoft ODBC?

    My ODBC Configuration:
    DSN name is :db
    Username : india
    Server :db.world
    Now, i am trying to connect with oracle database through SQL*plus or TOAD.
    But, it is giving the following error.
    ORA-03121: no interface driver connected - function not performed
    Database version : 9.2.0.1.0
    Operating System : Microsoft Windows XP
    ODBC Version : 2.575.1117.00
    I am trying to connect with the database like this:
    Username : india
    Password : india
    Database : ODBC:db
    Can i connect like this otherwise whether i need install any other supporting driver?

    Now, i am trying to connect with oracle database
    through SQL*plus or TOAD.
    But, it is giving the following error.
    ORA-03121: no interface driver connected -
    function not performed
    I am trying to connect with the database like this:
    Username : india
    Password : india
    Database : ODBC:db
    As already stated, you can not use the DSN in SQL*Plus (nor TOAD, afaik)!
    I can reproduce the error message with the following:
    C:\>sqlplus a/b@ODBC:c
    SQL*Plus: Release 11.1.0.6.0 - Production on Mon Aug 4 21:34:58 2008
    Copyright (c) 1982, 2007, Oracle.  All rights reserved.
    ERROR:
    ORA-03121: no interface driver connected - function not performedLooking up the message, it says:
    Cause: A SQL*Net version 1 prefix was erroneously used in the connect string
    Looks like this has nothing to do with your DSN - it is more a matter of not using a proper connection string.
    If 'Test Connection' works then you should probably proceed to work with Crystal Reports, using the DSN in question.
    However, you should note that the old MS ODBC driver for Oracle was designed for OCI 7 (and for databases 7.x-8.x) and is now considered obsolete by both MS and Oracle.
    Deprecated MDAC components and MS KB Article 244661.
    Use the Oracle ODBC driver included with a supported Client version instead.
    Edit:
    Clarifying and adding references.
    Message was edited by:
    orafad

  • Need to Connect oracle database through EP

    Hi,
    my requirement is trying to connect oracle database and getting values from oracle database and displaying in portal (through EP)
    i created driver name called - sapdirect and import the jars like pOracle.jar in the driver and then i'll try to create datasource with the following configurations
    Name : sapdsn
    Aliases : sapalias
    Driver name: selected whatever i created before (ex: sapdirect)
    class : com.sap.portals.jdbc.oracle.OracleDriver
    url : jdbc:sap:oracle://10.145.4.171:1521;RAMS
    user name :scott
    password :tiger
    But the datasource can't create , the follwing error shown,
    Please gimme Solution for this.
    Even, all the services running oracle m/c.
    im wating for solution,
    Thanks in advance
    Bye for now
    Vasu
    Error:
    java.rmi.RemoteException: Error occurred while starting application in whole cluster and wait.; nested exception is:
    com.sap.engine.services.deploy.exceptions.ServerDeploymentException: Clusterwide execption: server ID 3739150:Exception while preparing start of application sap.com/JDBCConnector_sapdsn.xml.
    at com.sap.engine.services.deploy.server.DeployCommunicatorImpl.startApplicationAndWait(DeployCommunicatorImpl.java:679) at com.sap.engine.services.deploy.server.DeployCommunicatorImpl.startApplicationAndWait(DeployCommunicatorImpl.java:661) at com.sap.engine.services.dbpool.deploy.DataSourceManagerImpl.startApplication(DataSourceManagerImpl.java:562) at com.sap.engine.services.dbpool.deploy.DataSourceManagerImpl.deploy(DataSourceManagerImpl.java:261) at com.sap.engine.services.dbpool.deploy.DataSourceManagerImpl.createDataSource(DataSourceManagerImpl.java:317) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.sap.pj.jmx.introspect.DefaultMBeanInvoker.invoke(DefaultMBeanInvoker.java:58) at com.sap.pj.jmx.mbeaninfo.AdditionalInfoProviderMBean.invoke(AdditionalInfoProviderMBean.java:289) at com.sap.pj.jmx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:944) at com.sap.pj.jmx.server.interceptor.MBeanServerWrapperInterceptor.invoke(MBeanServerWrapperInterceptor.java:288) at com.sap.engine.services.jmx.CompletionInterceptor.invoke(CompletionInterceptor.java:400) at com.sap.engine.services.jmx.RedirectInterceptor.invoke(RedirectInterceptor.java:340) at com.sap.pj.jmx.server.interceptor.MBeanServerInterceptorChain.invoke(MBeanServerInterceptorChain.java:330) at com.sap.engine.services.jmx.MBeanServerSecurityWrapper.invoke(MBeanServerSecurityWrapper.java:287) at com.sap.engine.services.jmx.MBeanServerInvoker.invokeMbs(MBeanServerInvoker.java:157) at com.sap.engine.services.jmx.ClusterInterceptor.invokeMbs(ClusterInterceptor.java:220) at com.sap.engine.services.jmx.ClusterInterceptor.invoke(ClusterInterceptor.java:803) at com.sap.engine.services.jmx.MBeanServerInterceptorInvoker.invokeMbs(MBeanServerInterceptorInvoker.java:102) at com.sap.engine.services.jmx.connector.p4.P4ConnectorServerImpl.invokeMbs(P4ConnectorServerImpl.java:61) at com.sap.engine.services.jmx.connector.p4.P4ConnectorServerImplp4_Skel.dispatch(P4ConnectorServerImplp4_Skel.java:64) at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:291) at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:183) at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:119) at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37) at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71) at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37) at java.security.AccessController.doPrivileged(Native Method) at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94) at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:162)Caused by: com.sap.engine.services.deploy.exceptions.ServerDeploymentException: Clusterwide execption: server ID 3739150:Exception while preparing start of application sap.com/JDBCConnector_sapdsn.xml.
    at com.sap.engine.services.deploy.server.application.ParallelAdapter.sleepClientThread(ParallelAdapter.java:232) at com.sap.engine.services.deploy.server.application.ParallelAdapter.runInTheSameThread(ParallelAdapter.java:113) at com.sap.engine.services.deploy.server.application.ParallelAdapter.makeAllPhasesAndWait(ParallelAdapter.java:214) at com.sap.engine.services.deploy.server.DeployServiceImpl.startApplicationAndWait(DeployServiceImpl.java:4601) at com.sap.engine.services.deploy.server.DeployCommunicatorImpl.startApplicationAndWait(DeployCommunicatorImpl.java:677) ... 31 more

    Go to System Administration
    -> System Configuration
    -> System Landscape
    -> select a Folder where you want to store your system object
    -> right click -> New System
    -> in the wizard, select JDBC System
    -> enter values
    -> edit
    Then fill in the correct values as stated here:
    http://help.sap.com/saphelp_nw04/helpdata/en/84/d5df3df2ad685ae10000000a11405a/frameset.htm
    Then assign an Alias and enter some usermapping data for the system.
    You then can use the ConnectorService to get a native sql connection and fire statements. I'm sure you can find some examples here.
    Regards, Karsten

  • Connecting to database through applet

    hi friends
    I am trying to connect to sql database through applet but I cant.
    in fact it can not connect to database.
    plz any body tell me how can i do this. Thanks

    // class depends on
    //     msbase.jar
    //     mssqlserver.jar
    //     msutil.jar
    // these api's are part of Microsoft SQL Server 2000 Driver for JDBC
    // allso need JNDI file system Service provider: found @ sun http://java.sun.com/products/jndi/#DOWNLOAD12 the JNDI 1.2.X class librarys and
    //          File system provider 1.2 beta 3
    //     fscontext.jar
    //     providerutil.jar
    //      (jndi.jar) provided in java > 1.3*
    // to compile:
    // javac -classpath "C:\Program Files\Microsoft SQL Server 2000 Driver for JDBC\lib\msbase.jar;C:\Program Files\Microsoft SQL Server 2000 Driver for JDBC\lib\mssqlserver.jar;C:\Program Files\Microsoft SQL Server 2000 Driver for JDBC\lib\msutil.jar;C:\j2sdk1.4.2_01\jndi\lib\fscontext.jar;C:\j2sdk1.4.2_01\jndi\lib\jndi.jar;C:\j2sdk1.4.2_01\jndi\lib\providerutil.jar" SQLTest.java
    import javax.sql.*;
    import java.sql.*;
    import javax.naming.*;
    import java.util.Properties;
    public class SQLTest extends Thread {
        String sqlServerUser = "sql login account";
        String sqlServerPWD = "sql password";
        String sqlServerName = "sql machine";
        String sqlServerPort = "1433";
        public SQLTest() {
        public static void main(String[] args) {
            (new SQLTest()).run();
        public void run(){
            Connection conn = null;
            try{
                Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
                conn = DriverManager.getConnection("jdbc:microsoft:sqlserver://" + sqlServerName + ":"+ sqlServerPort + ";User=" + sqlServerUser + ";Password=" + sqlServerPWD + ";ProgramName=JAVA-jdbc;DatabaseName=Northwind");
                Statement stmt = conn.createStatement();
                ResultSet result = stmt.executeQuery(
                    "SELECT * from [Shippers]"
                if(result.next()){
                    System.out.println(result.getString("CompanyName") + " " + result.getString("Phone"));
                    while(result.next()) {   // for each row of data
                        System.out.println(result.getString("CompanyName") + " " + result.getString("Phone"));
                System.out.println("Getting a connection with drivermanager works fine");
            } catch(Exception e){
                e.printStackTrace(System.out);
            } finally{
                try{
                    conn.close();
                } catch(Exception e){
                    e.printStackTrace(System.out);
            if(true){return;}
    // try it with a datasource
            try{
            // Setting the context:
                com.microsoft.jdbcx.sqlserver.SQLServerDataSource sds = new com.microsoft.jdbcx.sqlserver.SQLServerDataSource();
                sds.setServerName(sqlServerName);
                sds.setDatabaseName("Northwind");
                sds.setNetAddress(sqlServerPort);
                Properties p = new Properties();
                p.put(Context.INITIAL_CONTEXT_FACTORY,     "com.sun.jndi.fscontext.RefFSContextFactory");
                Context ctx = new InitialContext(p);
                try{
                    ctx.unbind("jdbc/EmployeeDB");
                }catch(Exception e){
                }finally{
                    ctx.bind("jdbc/EmployeeDB",sds);
                DataSource ds = (DataSource)ctx.lookup("jdbc/EmployeeDB");
                conn = null;
                conn = ds.getConnection(sqlServerUser,sqlServerPWD);
                Statement stmt = conn.createStatement();
                ResultSet result = stmt.executeQuery(
                    "SELECT * from [Shippers]"
                if(result.next()){
                    System.out.println(result.getString("CompanyName") + " " + result.getString("Phone"));
                    while(result.next()) {   // for each row of data
                        System.out.println(result.getString("CompanyName") + " " + result.getString("Phone"));
                System.out.println("works with datasource");
            } catch(Exception e){
                e.printStackTrace(System.out);
            } finally{
                try{
                    conn.close();
                } catch(Exception e){
                    e.printStackTrace(System.out);
    }To give an applet special privileges you can specify the prifs in the java.policy file or sign the applet and choose "yes I trust" or "yes I allways trust" when the applet is loaded.
    To give special prifs with the java.policy, it should look like this:
    grant {
    permission java.lang.RuntimePermission "usePolicy"; // prevents the popup from showing for signed applets
    grant codeBase "file:C:/-" {
      permission java.security.AllPermission;
    grant codeBase "http://localhost/-" {
      permission java.security.AllPermission;
    };

  • How to connect to database through TOAD(using tnsnames & sqlnet)

    Hi All,
    Hope everyone doing fine.. Actually i am new to oracle. Oracle9i and TOAD 9.7.0.51 are installed in my office PC. When I try to connect to the database through TOAD i am getting ORA-12560: TNS:protocol adapter error.
    And i've the tnsname details.
    Now i want to connect to the database.But i am not aware of the process about what to do. So Can anyone please help me on the above problem.
    Please give the steps to follow(one by one)
    Thanks,
    mkr

    Oracle9i and TOAD 9.7.0.51 are installed in my office PC.sqlplus> connect / as sysdba
    connected.
    Check your $ORACLE_HOME/network/admin/tnsnames.ora
    If it does not exist create as an example.
    example
    DBX =
    (DESCRIPTION =
    (ADDRESS_LIST =
         (ADDRESS = (PROTOCOL = TCP)(HOST = <host or ip>)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME =<sid_name>)
    set ORACLE_SID=SID
    tnsping DBX
    try to connect by toad after that it should work...

Maybe you are looking for

  • Applescript to print a .doc file using TextEdit with print dialog.

    I want to print a pdf file using TextEdit . I want to display the print dialog before doing the print operation. Can any one help me with apple scripts to perform this operation. We tried to use this script; but when I click Cancel on print dialog. I

  • How to Create a Prompt in Web Intelligence

    Hi Experts!!! I am trying to create a prompt to get the value of one variable that i need in my webi report. This variable needs to receive its value when users are refreshing the report (like a prompt). Its important to say that this is a external v

  • Idiot's guide needed...streanming music

    Would like to stream music from my Mac to home theater, as well as internet radio. If using an AXpress, how do you control the selection to be played ? Does the computer need to be running? iTunes open? thanks, folks for any info. (the Mac is connect

  • RSA SecurID Software Token for Nokia

    Hi C7-00 is on the symbian^3 platform, which is the same as N8 & E7. While SecurID Software Token for nokia is qualified for N8 & E7, why is it not qualified for C7? They are all on the same platform (Symbian^3) !! When can it be qualified?

  • Feedback deferred constraint is incorrect in sql developer 2.1.0.63.41

    In the earlier 2.1.0.63 the set contraint didnt work entirely in sql developer. In this new release the set constraint can be executed and it works, however when you violate a constraint there is no feed back. example: I create the following table an