Cannot figure jdbc connection string using LDAP to lookup db

I found only one example of this
"jdbc:oracle:thin:@ldap://ldap.acme.com:7777/sales,cn=OracleContext,dc=com"
My ldap.ora file has this in it:
DEFAULT_ADMIN_CONTEXT = "dc=ba,dc=ssa,dc=gov"
DIRECTORY_SERVERS= (s07a29b.ba.ssa.gov:389:636,s1pta34.ba.ssa.gov:389:636,r24300a.ba.ssa.gov:389:636)
My db is ismarts1
I've tried all variations I can think of and cannot get it to work. Most obvious would be this:
jdbc:oracle:thin:@ldap://s078a9b.ba.ssa.gov:389:636/ismarts1,dc=ba,dc=ssa,dc=gov
but it is not working...
I don't get the 2 port numbers (if that's what they are) in the ldap.ora list of servers.

You've confirmed that it works in sql*plus?
The typical format of the url is
jdbc:oracle:thin:@ldap://[host]:[port]/[database],cn=OracleContext,[dc=...,dc=...]In your case, you might try
jdbc:oracle:thin:@ldap://s078a9b.ba.ssa.gov:389/ismarts1,cn=OracleContext,dc=ba,dc=ssa,dc=govSince you do have multiple ldap servers configured, you can also specify more than one in the url separated by a space.
jdbc:oracle:thin:@ldap://s078a9b.ba.ssa.gov:389/ismarts1,cn=OracleContext,dc=ba,dc=ssa,dc=gov ldap://s1pta34.ba.ssa.gov:389/ismarts1,cn=OracleContext,dc=ba,dc=ssa,dc=govThe 2 port numbers specify the ports ldap listens on, the first being non-ssl and the second being ssl.

Similar Messages

  • Adworker using wrong JDBC connect string during upgrade to 12.1.3

    Our env
    APPS - 12.1.2 - running on SLES 11
    DB 11.2.0.3 - running on IMB System z
    We cloned PROD to a new host (instance was previously on DB host - debsdb01 and app host debsap03)
    The clone was made to debsdb04 - and app was reconfigured on debsap03
    I got the app to start up and run before taking it down to apply the 12.1.3 patch.
    However, in the process of the 12.1.3 patch, I see the following entry in the ADworker log files.
    JDBC connect string from AD_APPS_JDBC_URL is
    (DESCRIPTION=(ADDRESS_LIST=(LOAD_BALANCE=YES)(FAILOVER=YES)(ADDRESS=(PROTOCOL=tcp)(HOST=hostname1.companyname.com)(PORT=1549)))(CONNECT_DATA=(SID=DEV3)))
    where as it should be
    JDBC connect string from AD_APPS_JDBC_URL is
    (DESCRIPTION=(ADDRESS_LIST=(LOAD_BALANCE=YES)(FAILOVER=YES)(ADDRESS=(PROTOCOL=tcp)(HOST=hostname4.companyname.com)(PORT=1535)))(CONNECT_DATA=(SID=DEV3)))
    If I do an echo $AD_APPS_JDBC_URL on debspap03, it returns
    JDBC connect string from AD_APPS_JDBC_URL is
    (DESCRIPTION=(ADDRESS_LIST=(LOAD_BALANCE=YES)(FAILOVER=YES)(ADDRESS=(PROTOCOL=tcp)(HOST=hostname4.companyname.com)(PORT=1535)))(CONNECT_DATA=(SID=DEV3)))
    Where are the ADWORKERS getting the old value of the DB host name?
    Any help would be appreciated.
    Thanks
    Edited by: 864641 on Sep 16, 2012 7:32 AM

    I believe figured out what the issue was.
    I was (am) running the patch session from a VNC session that was established during the previous version of this instance - so the previous connect string was being used.
    Once I killed the old VNC session and established a new one, I was able to retrieve the correct value for $AD_APPS_JDBC_URL from the command prompt.
    Yes - the value of the $AD_APPS_JDBC_URL was showing the old value in the old VNC session.
    Thanks for all of your input esp on a Saturday - when I thought I would have to wait until Monday to get this figured out.

  • Connection string - using alias

    I am currently able to connect to Oracle databases using a connect string like:
    con = DriverManager.getConnection("jdbc:oracle:thin:@host_name:post:SID", "userid", "password");
    Is there away I can connect by just passing the alias of the SID that is in my tnsnames.ora file and not specifying the host and the port? We move instances to different boxes etc. and I would like to avoid hardcoding the hosts and the port. I know you can configure connection strings using the tnsnames.ora file but it just parses it and stores the host,port and SID. Any help would be appreciated.
    null

    the format that you stated is correct for jdbc thin drivers.
    the tnsnames.ora format is supported only with jdbc oci drivers.

  • I added the Feedly add on but I cannot figure out how to use it how it functions OS is Win 7 Home premium 64 bit.

    I use feedly.com a lot so I installed the Feedly add on but I cannot figure out how to use it. Can someone please help me out and tell me how to use it in Firefox? OS is Wind 7 home premium 64 bit. Any help would be appreciated. Thanks in advance

    There is no way to contact anyone at feedly about this. Somebody kindly put the answer in feedly - addon - reviews at mozilla addon site:
    "Review for Feedly - Beyond Google Reader by [https://addons.mozilla.org/En-us/firefox/addon/feedly/reviews/506443/ shaggyaxe]"
    >>> by shaggyaxe on September 30, 2013
    For the people who state that it does nothing...
    That's because something's messed up with the icons. It makes it seem like the extension is not there.
    But it's there. The icon it uses is the set of left, right, up, down, etc.
    [http://i.imgur.com/imm9Oj7.png]
    Drag that up to the bar, and it then appears as the feedly icon.
    (Someone else found this a while back. I could not find the original comment. Otherwise I would have pasted the permalink) <<<

  • Specify tablespace within JDBC connect string...

    In MySQL, I can specify a database name within a JDBC connect string. Can one specify an Oracle tablespace within a JDBC connect string? The goal is to have one account to access multiple tablespaces.
    Please advise,
    R

    R,
    I think perhaps you misunderstand what a tablespace is in Oracle.
    If you haven't already done so, I suggest reading Oracle Database Concepts and Oracle Database Administrator's Guide which are part of the Oracle documentation and available from:
    http://www.oracle.com/technology/documentation/index.html
    Good Luck,
    Avi.

  • Jdbc connection string

    Hi All,
    I am trying to connect to sysbase tables with
    Connection String: <b>jdbc:sybase:TDS5:DB110:3400:falud002</b>
    JDBC Driver: <b>com.sybase.jdbc3.jdbc.SybDriver</b>
    But it gives me error in RWB as:
    <b>Error during database connection to the database URL 'jdbc:sybase:TDS:DB110:3400:falud002' using the JDBC driver 'com.sybase.jdbc3.jdbc.SybDriver': 'com.sap.aii.adapter.jdbc.sql.DriverManagerException: Cannot establish connection to URL 'jdbc:sybase:TDS:DB110:3400:falud002': SQLException: JZ0D5: Error loading protocol com.sybase.jdbc3.tds.TDS.'</b>
    Please advice....
    Xier

    Hey
    i know you might have done it but just want to make sure whether u have installed the proper drivers for Sybase or not?
    Thanx
    Aamir

  • JDBC connection string to an MS Access DB

    Hello,
    I was searching for a package that will allow me to do
    a JDBC connection to an MS Access DB. I found out about RMIJDBC, but I am not sure what I need to specify as my connection string. In SQL Server you usually give a url as well, but how about MS Access?
    How do you do a connection??
    Thank you for your help!
    -Lia-

    Why not using the Jdbc/Odbc driver with the Odbc connection of MS Access ? The driver name is "sun.jdbc.odbc.JdbcOdbcDriver" and the URL is something like "jdbc:odbc:myAccessOdbcName".
    Of course, this is not the fastest driver, but it is provided in standard with the JDK.
    Matthieu

  • JDBC Connection String for MS Sql Server 2000 with Instance Name

    Hi All,
    I am having problems connecting to a MS Sql Server 2000 database using MSSqlServer4
    driver when the database server has an Instance Name. If the database server has
    no instance name then I am able to connect using the connection string
    connection=jdbc:weblogic:mssqlserver4:hansa:1433
    But when I have the MS Sql Server DB with an instance name such as "TestInstance",
    then I am unable to connect with any of the connection strings given below
    connection=jdbc:weblogic:mssqlserver4:hansa\TestInstance:1433 or
    connection=jdbc:weblogic:mssqlserver4:hansa\\TestInstance:1433 or
    connection=jdbc:weblogic:mssqlserver4:hansa:TestInstance:1433 or
    connection=jdbc:weblogic:mssqlserver4:hansa:1433:TestInstance
    Can anybody help me in resolving this issue. Appreciate your help.
    Thanks in advance.
    Vikram

    Vikram wrote:
    Hi All,
    I am having problems connecting to a MS Sql Server 2000 database using MSSqlServer4
    driver when the database server has an Instance Name. If the database server has
    no instance name then I am able to connect using the connection string
    connection=jdbc:weblogic:mssqlserver4:hansa:1433
    But when I have the MS Sql Server DB with an instance name such as "TestInstance",
    then I am unable to connect with any of the connection strings given below
    connection=jdbc:weblogic:mssqlserver4:hansa\TestInstance:1433 or
    connection=jdbc:weblogic:mssqlserver4:hansa\\TestInstance:1433 or
    connection=jdbc:weblogic:mssqlserver4:hansa:TestInstance:1433 or
    connection=jdbc:weblogic:mssqlserver4:hansa:1433:TestInstance
    Can anybody help me in resolving this issue. Appreciate your help.Hi. No type-4 jdbc driver is going to be able to use a name for a DBMS instance.
    Let's assume you have two DBMS instances running on the machine hansa. One
    of them may be listening for tcp connections on port 1433, but the other must not.
    The other most be listening on some other port number you have chosen.
    Therefore, to choose which DBMS instance you want to connect to, use the
    working URL you have, and switch the port number as desired.
    Joe Weinstein
    >
    >
    Thanks in advance.
    Vikram

  • How to create SQL Connections String using JSP

    Hi, Dear I wrote sample Jsp program(Create a table and Inserted to Table) using SQLConnection
    I got this Error, how to rectify please help me?
    This is my Connection String
    <%
    String driver = "com.microsoft.sqlserver.jdbc.SQLServerDriver";
         Class.forName(driver).newInstance();
         Connection con=null;
         ResultSet rst=null;
         Statement stmt=null;
         try
              String url=java.sql.DriverManager.getConnection("jdbc:sqlserver://10.1.5.6:1433;Database=manickaraj;User=sa; Password=test*");
              con=DriverManager.getConnection(url);
              stmt=con.createStatement();
         catch(Exception e)
    System.out.println(e.getMessage());
         if(request.getParameter("action") != null)
              String CategoryName=request.getParameter("Category1");
              String Description=request.getParameter("Description1");
    String Status=request.getParameter("Status1");
              stmt.executeUpdate("insert into Category(CategoryName,Description) values('"+CategoryName+"','"+Description+"','"+Status+"')");
              rst=stmt.executeQuery("select * from Category");
    %>
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: 5 in the jsp file: /CategoryAction.jsp
    Generated servlet error:
    C:\Documents and Settings\manickaraj\.netbeans\5.5\apache-tomcat-5.5.17_base\work\Catalina\localhost\SampleJsp\org\apache\jsp\CategoryAction_jsp.java:61: incompatible types
    found : java.sql.Connection
    required: java.lang.String
    An error occurred at line: 5 in the jsp file: /CategoryAction.jsp
    Generated servlet error:
              String url=java.sql.DriverManager.getConnection("jdbc:sqlserver://10.1.2.4:1433;Database=manickaraj;User=sa; Password=test*");
              ^
    1 error
         org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:368)

    package shop;
    import java.sql.*;
    import java.sql.Connection;
    import java.sql.SQLException;
    import java.sql.Statement;
    import javax.naming.InitialContext;
    import javax.sql.DataSource;
    public class DAClass {
         private static Connection conn;
         private static ResultSet rs;
         private static PreparedStatement ps;
         public static void connect(String dsn, String un, String pwd) {
              try {
                   //access or Mysql odbc connectivity
                   //Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
                   //conn=DriverManager.getConnection("jdbc:odbc:"+dsn,un,pwd);
                   //mysql
                   //Class.forName("com.mysql.jdbc.Driver");
                   //conn=DriverManager.getConnection("jdbc:mysql://127.0.0.1:3306/eshop?user=root&password=root");
                InitialContext ctx = new InitialContext();
         DataSource ds = (DataSource) ctx.lookup("jdbc/eshop");
          conn = ds.getConnection();
         //DataSource ds = (DataSource)ctx.lookup("java:comp/env/jdbc/MySQLDB")
              catch(Exception e) {
                   //return "not soory";
         public static boolean chkPwd(String un, String pwd) {
              try {
                   boolean b=false;
                   ps=conn.prepareStatement("select * from cust_info where cust_name=? and cust_pwd=?");               
                   ps.setString(1,un);
                   ps.setString(2,pwd);
                   rs=ps.executeQuery();
                   while(rs.next()) {
                        b=true;
                   return b;
              catch(Exception e) {
                   return false;
    }changed the code like this other part is same.implemented connection pooling but still its too lazy loding can you guide me?

  • JDBC connection strings

    We're having a problem connecting to one of our databases using JDBC thin. There seem to be two formats for the connection strings:
    jdbc:oracle:thin:@opctest.deq.state.ms.us:1522:TEST8131
    jdbc:oracle:thin:@//opctest.deq.state.ms.us:1522/TEST8131
    From a java app, the first throws an "Io exception: Invalid connection string format, a valid format is: "//host:port/service_name" " error; the second throws a TNS-12514: TNS:listener does not currently know of service requested in connect descriptor error.
    What confuses me more is that if I test this string from a JSP page:
    jdbc:oracle:thin:@opctest.deq.state.ms.us:1522:test8131
    it connects fine.
    The environment is Oracle9i on Red Hat, running MTS. Java app is running on WinXP. Anyone have an idea what's going on?
    Thanks,
    Harry

    I can see a couple of issues in your connect string:
    1. I see you are using the sid in uppercase, TEST8131 instead of test8131. If you are working on a unix environment this makes a difference, so use the lower case instead.
    2. You are using the 1522 port, check with your database administrator if the instance is registered against the 1522 port, otherwise the error TNS-12514 will show up. I will assume it currently works fine since you have declared the jsp using the same address works fine with this port.
    3. Ensure the hostname can be solved just exactly the way you have declared it (fully qualified domain) from the perspective where the jdbc program is running.
    4. the format described here: opctest.deq.state.ms.us:1522/TEST8131 is known as the EZConnect, and it is a 10g feature.
    ~ Madrid

  • Load balance not working right with jdbc connection string?

    For months we've used the following connection string to get Tomcat to open connections to our Oracle 10g RAC:
    jdbc:oracle:thin:@(DESCRIPTION = (ADDRESS = (PROTOCOL = TCP) (HOST
    = db1vip) (PORT = 1521)) (ADDRESS = (PROTOCOL = TCP) (HOST = db2vip)
    (PORT = 1521)) (LOAD_BALANCE = yes) (CONNECT_DATA = (SERVER = DEDICATED)
    (SERVICE_NAME = orcl) (PREFER_LEAST_LOADED_NODE_ORCL = OFF) ) )
    Today, db2 became inaccessible during prime time, and the web app completely hung--when you tried to type in a username and password to log into the site, it would just hang indefinitely, and the Tomcat log files were complaining about being unable to open a connection to the database because of a network adapter error.
    I would have expected the JDBC driver Tomcat was using to just switch to the other database server, but none of our Tomcat machines did that, and I'm wondering why (they all just hung trying to connect to db2). Our guess is that the difference this time is not that Oracle was down on db2, but that db2 was down entirely. Maybe that connection string works only if the server is up when the database is down, and not when the server is unreachable (we couldn't SSH to the box, and when we tried to get to it locally using a remote access card, a lot of options were grayed out and we couldn't see a shell, so all we could do was reset the box).

    Hi,
    Please refer to the link below:
    SCOM 2012 – Monitoring Oracle Database OLE DB Management Pack Template
    http://stefanroth.net/2012/12/05/scom-2012-monitoring-oracle-database-ole-db-management-pack-template/
    Note: Microsoft provides third-party contact information to help you find technical support. This contact information may change without notice. Microsoft does not guarantee the accuracy of this third-party contact information.
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

  • Server name problem-jdbc connection string

    hi..
    my server name is SERKANPROX\LOCALHOST .. i couldn't connect to this server with this server name . how can i write the server name in connection string?. this is the part my code:
    Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver").newInstance();
    Connection con = DriverManager.getConnection("jdbc:microsoft:sqlserver://serkanprox//localhost:1 433;DatabaseName=NorthWind","serkan","serkan");
    the exception is : [Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket.
    i can connect to the server which name is "serkan" . but when there is a '\' character ,i couldn't..
    how can i can change the connection string for connecting to this server ..
    thanksss

    hi..
    my server name is SERKANPROX\LOCALHOST No it isn't. Get the right server name. This problem has nothing to do with your username and password and such.

  • Cannot Figure Out How to Use FCE

    We bought Final Cut Express, and after many hours fo trying to figure out how to use it, went back to using iMovie 06 HD on our older Macs (the new iMovie 09 does not have the audio features we need to edit and create movies). We were told at the Apple Store that we must pay for classes to learn FCE because it is not intended to be "intuitive" like iMovie 06 HD. We cannot readily go to an Apple Store to sign up for classes; is there another way to learn how to use FCE? I have to say, it is very frustrating.

    JJ Strawn wrote:
    We bought Final Cut Express, and after many hours fo trying to figure out how to use it, went back to using iMovie 06 HD .. I have to say, it is very frustrating.
    that's the usual career
    I'm a switcher too, thinking, +hey, I'm the iM wizzard, FCE here I come+, and me idiot started with the usual 2h wedding movie. and failed gloriously
    FCE is very different, even a simple dissolve is handled completely different ..
    I do recommend to get a book from *Tom Wolsky* (he's an exceptionally gifted teacher) too, take your time, start with a 5min 'trash project' and start from the very beginning.. after some weeks of pain and sweat, you will never miss iM again.. ok, a few effects ..

  • MS db Connection String using ASP VBScript and DW8

    Hi
    My MS db has been working with DW8 followong my use of a connection string in connSci***.asp. My OS is Windows7. This has worked fine.
    <%
    ' FileName="Connection_ado_conn_string.htm"
    ' Type="ADO"
    ' DesigntimeType="ADO"
    ' HTTP="true"
    ' Catalog=""
    ' Schema=""
    Dim MM_connSciWeb_STRING
    MM_connSciWeb_STRING = "DSN=DSN_******"
    %>
    Now when I update the db and check that the new additional records have been added (and they have been) I can still only access the original records. When I retest the connection string I get the 404 error message.
    Can anyone help?
    Regards
    Kevin

    >This has worked fine.
    When did it stop working? What changes did you make?
    MM_connSciWeb_STRING = "DSN=DSN_******"
    Any particular reason you are using DSN rather than DSNless connections?
    >Now when I update the db and check that the new additional records  have
    >been added (and they have been) I can still only access the  original records.
    Can you explain? How do you know the new records where added if you can't access them?
    >When I retest the connection string I get the 404  error message.
    How are you testing the connection?

  • Jdbc, connection string to a rack

    hello,
    can i connect on jdbc receiver side to a rack ( logical instance instead of a physical instance) or to 2 ipaddresss instead of one in case one node gets down?
    i currently have a connection string as : jdbc:oracle:thin:@ipaddress:port:Databasename
    Please suggest.
    Thanks

    Closing thread.

Maybe you are looking for

  • Spry repeted region: only at filtering

    Hi all: I made a typical spry region with a table and an spry:repeat. Also I included a form with a text field and a button for filter. Everything works fine. When the user loads the page, all data is shown and that was fine while the XML file has fe

  • Any resolution to 10.4.10, wireless router/encryption issues?

    Like many others, I upgraded to 10.4.10 and soon began experiencing connecting to the Internet problems on my ATT/2WIRE gateway/router using WEP encryption as well as kernel panics. Having had my MBP for only two months, I did not have many files so

  • Private Folder Help (Again...)

    Yes, I did it and now I am trying to recover my private folder from the trash. I have read several posts on here and other sites about how to move it from terminal and I can't seem to make it work. VK's help seems good and logical, but I am not sure

  • Issue with quantity display in Adobe forms

    I am trying to display a quantity field MENGE in my Adobe form and I am encountering a problem that it is getting diplayed as 23456.320 while it should be displayed as 23,456.320 i.e. the thousand separator is missing . Please help

  • Exactly q@a database

    sap standard q@a database i am in the preparation of this q@a database like step wise for example sales process related q@a database