Problem in Setting up database connection

Hi,
When i try to create a new database connection on jdeveloper 9.0.3 and click on test connections i get this error:ORA-28030: Server encountered problems accessing LDAP directory service. Can anyone help me out of this problem.
Infact i copied a dbc file from the server and pasted it in the local directory dbc_files/secure/.

Hi,
seems that your database is configured to perform Enterprise User Security (EUS) for which it needs to access LDAP. Check with your DB administrator if this is the case
Frank

Similar Messages

  • Problem in getting the database connection from a connection pool

    Hai All,
    I am facing a problem in getting the database connection from a connection pool created on weblogic server 8.1.
    I am using the Oracle database 8.1.7.
    I have configured my connection pool, datasource and JNDI in weblogic.
    In my java program i have the following code to retrieve the connection.
    import java.sql.*;    
    import java.util.Hashtable;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    class jdbcshp1 {
        public static void main(String[] args) {
         Connection connection = null;
         try {
               Hashtable ht = new Hashtable();
               ht.put(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFactory");  // Wanna get rid of this.
               ht.put(Context.PROVIDER_URL,"t3://localhost:7001"); // wanna get rid of this.
               // Get a context for the JNDI look up
               Context ctx = new InitialContext(ht);
            javax.sql.DataSource ds = (javax.sql.DataSource) ctx.lookup ("myjndi1");
              //Create a connection object
              connection = ds.getConnection();
         The above code is working fine but, the two ht.put statements are creating problem.
    The problem is, after converting the application into WAR file it can be deployed
    on any machine or different port on same machine. My application fails if its deployed on
    weglogicserver which is at different port.
    Is there any way that i can get rid of those ht.put statements or any other way to solve the problem.
    any help is appreciated.
    Thanks in advance
    Pooja.

    Hai All,
    Firstly, thanks for ur reply.
    Even i have seen some code which uses context constructor with out any parameter and works fine.
    i dont understand why its not working for my code.
    When i remove those ht.put code and use context constructor with out any parameter, it giving an error.
    Context ctx = new InitialContext();
    javax.sql.DataSource ds = (javax.sql.DataSource) ctx.lookup ("ocjndi");
    connection = ds.getConnection();The error is as follows:
    javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
    the above error is forcing me to include those code but if the port number is changed the code will not work. Plz let meknow if some setting have to be made.
    I appreciate all ur valuable help.
    Thanks once again.
    Pooja.

  • Dynamic Portlet: Setting the database connection

    With OmniPortlet, I can set the database connection I wish to use for that instance of the portlet in the configuration, but I can't seem to find a way to accomplish this with Dynamic Page portlets. How can I configure what server/user the portlet is using?
    Thanks,
    Rick

    Damn. That is exactly what I was afraid of. We'll have dblinks all over the place!
    Is there a way to create multiple instances of the Dynamic Page Portlet that use different database providers, or is that impossible? (I'm somewhat new to Portal, so forgive me if that is an ignorant question)
    Thanks for the help!

  • Problem in using javabean database connections file

    Hi..I have a javabean file which contains some database connections.I would like to use this file in another javabean file. However, I got this 'cannot resolve symbol' error on the following line.The two javabean files i have here are sqlBean and TransactInfoBean which are contained in the same package.
    <coding>
    public class TransactInfoBean extends sqlBean {
    </coding>

    Did you check the class path.
    The folder containg the package shold be set to classpath.
    If you send your total error messages , i can help you more.
    Regards

  • Problem with having several database connection registered in JDEVElOPER

    Hi
    Thank you for reading my post
    I have several AS registered in my Jdeveloper environemtn and several database connections.
    unfortunately some times Jdeveloper can not deploy an application into a server beacause it say that "I failed to create the connection pool", the project has no database stuff at all but Jdeveloper try to register and create connection pools for those connection that i hace registered in the Databse coonnection node.
    It fails because in that particular server which i want to deploy the application i have not add all databases JDBC driver.
    is there any solution for it?
    thanks

    Hi,
    see Tools --> Preferences --> Deployment
    Uncheck the "Bundle default data-sources.xml during deployment
    Frank

  • Set the Database connection in report at runtime in VB 6.0

    Hi,
    I have a report created in CR XI that connects to the oracle server. The report works fine if I have same Service name in the tnsnames.ora file which I had used while creating the report.
    But I dont want that. I want that I pass a recordset directly to the report and it uses the connection that was used to create the recordset. but it doesnt do that and I get "Failed to open the connection" error
    This is the way I have the code
    dim lrpt as CRAXDRT.Report
    AdoRecordset.open (ReportQueryString)
    lrpt.Database.SetDataSource (AdoRecordSet)
    Can someone tell how can I make this working??
    Thanks,
    Reena

    Hi Reena,
    If you have code related issue.
    Post your question in Development - Forum
    Business Objects SDK Application Development
    Link is here :
    [https://www.sdn.sap.com/irj/sdn/businessobjects-sdk-forum]
    Regards,
    Shweta

  • Setting up database connectivity

    I have installed SQL Developer on my system. When I give the userid , password, sid, and ip of my database (remote) and click on Test connection I am getting "IO Exception - Network adapater could not establish the connection".
    Any help?

    Often means a network or firewall is getting in the way.
    Can you ping the remote server?
    Do you have any other oracle tools installed?
    If so, can you tnsping the database?
    Can you connect to the database using sqlplus?

  • Problem with configuring generic database connectivity

    Hi All.
    I’m very new to Oracle. I’m trying to configure ODBC for excel to read data from excel into oracle table; however I cannot go thru. I followed some instructions from this forum and managed to configure the ODBC, updated listner.ora, tnsnames.ora and inithsodbc.ora files and successfully created a database link. However, when I tried the command SELECT * FROM TABLE$@EXCEL, I got the following message: ‘ORA-12154: TNS: could not resolve service name’. Is there any one to assist me to resolve the problem?
    Regards,
    Jasson Yotham
    [email protected]

    Is this the example you're looking for:
    http://technology.amis.nl/blog/?p=1303

  • Problem in Oracle Database Connectivity in JSP

    I am having big problem such as Oracle Database connectivity problem
    Following code i am used for database connection. but it throw an exception call class not found exception.
    Pls any one can help me. With a sample code for Oracle Database connection in JSP
    Class.forName ("oracle.jdbc.driver.OracleDriver");
    String url="jdbc:oracle:thin:@172.25.44.54:1521:bbo";
    con = DriverManager.getConnection(url,"user", "user123");
    Thank you

    Well i've never used oracle or their drivers before but i'm presuming that you'd go to oracle.com or something and look for downloads. Otherwise you could goodle for Oracle JDBC drivers. Then just follow the instructions.
    Again i've never used JSP but if you have a manifest file somewhere you'll need to put a class-path: entry in their referecning the jar file with the driver so that it is availble at run-time.
    Wes

  • Changing Database connection at runtime in CR2008

    Hi,
    I have a VS2008 application which is using CR2008 to generate pdf reports for the user. Problem is I am not able to change the database connection to any server other than the one that was used to create the report template.
    My environment has CR2008 SP2. I have tried reports with no paramter as well as the ones with parameters both dont seem to work.
    I have already tried a couple of things:
    a) report document refresh after loading it
    b) setting the database connection as
    this._crReport.DataSourceConnections[0].SetConnection(dbServerName, dbName, dbUserId, dbPwd);
    c) setting the database connection as
    tbls = this._crReport.Database.Tables;
                    bool test = false;
                    foreach (Table tbl in tbls)
                        tblLogonInfo = tbl.LogOnInfo;
                        tblLogonInfo.ConnectionInfo = connInfo;
                        tbl.ApplyLogOnInfo(tblLogonInfo);
                        test = tbl.TestConnectivity(); ** note this alwys return a true for the changed database server
    I have read a couple of thread but none has worked for me...Is this a known issue with CR2008?
    Thanks
    Kajal

    Hi Kajal,
    I am assuming that you are not changing the schema of the report at any point of time. I would suggest you to try pointing to the other database through designer to make sure that you can hit the database and the schema is correct. You can also create a udl file to check the database connectivity.
    Then just for testing purpose you can try the following code:
    ReportDocument reportDoc = new ReportDocument();
    reportDoc.Load("path of the report");
    reportDoc.SetDatbaseLocation("uid","pwd","Servername","tablename");
    reportDoc.SetParameterValues("Parameter-Name","values");
    CrystalReportViewer.ReportSoure=reportDoc;
    Does that help?
    Thanks.

  • How to correct close database connection after report generation

    Hello
    I have problem a with alive database connection after report creation and report  closing. How to properly to close connection to database?
    Best regards
    Edited by: punkers84 on Jun 17, 2011 10:38 AM

    that's what I am doing... after viewing the report, I call the close method on the window closing event of the container window. but the connection is still open. I had a lot of other issues with my jdbc driver but after downgrading to an older version those issues are resolved.Only this one is still there! Is there any other way to close the connection (like using dbcontroller or etc.)?

  • OIM 11g: Error After starting OIM server :retrieving database connection

    Hi All,
    After patching OIM 11.1.1.5.0 to BP02 I am getting following error in logs of OIM and not able to see Import Deployment Manager File and..continuously this error bounce back
    Error
    <Error> <XELLERATE.DATABASE> <BEA-000000> <Class/Method: DBPoolManager/getConnection/Exception encounter some problems: Error while retrieving database connection.Please check for the following
    Database srever is up.
    DirectDB settings in configuration file are correct.>
    <Mar 16, 2012 6:50:31 AM EDT> <Error> <XELLERATE.DATABASE> <BEA-000000> <Class/Method: DirectDB/getConnection encounter some problems: Error while retrieving database connection.Please check for the follwoing
    Database srever is running.
    Datasource configuration settings are correct.
    java.sql.SQLException: java.sql.SQLException: Exception occurred while getting connection: oracle.ucp.UniversalConnectionPoolException: Cannot get Connection from Datasource: java.sql.SQLRecoverableException: IO Error: The Network Adapter could not establish the connection
    at com.thortech.xl.util.DirectDB$DBPoolManager.getConnection(DirectDB.java:441)
    at com.thortech.xl.util.DirectDB.getConnection(DirectDB.java:176)
    at com.thortech.xl.dataobj.util.ADPClassWatchDog.getMaxUpdateTimestamp(ADPClassWatchDog.java:50)
    at com.thortech.xl.dataobj.util.ADPClassWatchDog.run(ADPClassWatchDog.java:145)
    >
    <Mar 16, 2012 6:50:31 AM EDT> <Error> <XELLERATE.ADAPTERS> <BEA-000000> <ADPClassWatchDog: Error occured while getting the max adp_update timestamp>
    Earlier before patching to BP02 in weblogic Datasources we have
    Driver Class Name: oracle.jdbc.xa.client.OracleXADataSource
    But when I was providing this value in weblogic.profile during patching attribute name "operationsDB.driver=oracle.jdbc.xa.client.OracleXADataSource ", I am getting this error
    /data/oim/Oracle/Middleware/Oracle_IDM1/server/setup/deploy-files/setup.xml:204: java.lang.ClassCastException: oracle.jdbc.xa.client.OracleXADataSource cannot be cast to java.sql.Driver
    So I changed this value to "operationsDB.driver=oracle.jdbc.OracleDriver" and it runs fine. Patch completed successfully.
    Is there any issue with this Driver Class Name mismatch, so I am getting this error? I have also tried for all Datasources same Driver Class Name but invain.
    Regards,
    Amit

    Hi Bikash,
    Nothing is changed between network/firewall. From Database machine I am able to see tnsping running fine. From weblogic admin console I have checked the connectivity of different datasource is successfull. Right now I have these datasources, all have Driver Class Name=oracle.jdbc.OracleDriver.
    EDNDataSource
         EDNLocalTxDataSource
         mds-oim     
         mds-owsm
         mds-soa     
         oimJMSStoreDS
         oimOperationsDB     
         OraSDPMDataSource     
         SOADataSource     
         SOALocalTxDataSource
    You mean For all the datasources I need to make it oracle.jdbc.xa.client.OracleXADataSource. I make it this also but no success.
    Also tell me..Summary of Security Realms >myrealm >Providers >OIMAuthenticationProvider here also I need to provide Xadatasource Driver name.

  • DRM-21003 error for database connection

    Hi,
    I installed DRM 11.1.2 for win32 on my laptop and when I tried to set up database connection (to 11g XE), I am getting error message:
    Connection Failed: DRM-21003: The Oracle.DataAccess client is not the expected version.
    I installed Oracle XE 11.2.0.2 on my laptop. I also tried to connect to 10g server(10.2.0.4), but still has the same error.
    Thanks.
    -Rong

    Hi,
    Apparently,this is a bug in version 11.2.1.0.I had the same issue.I believe this is an bug identified internally.BUG # 9911822.I uninstalled 11.2.1.0 and installed 11.2.1.102 version of the DRM software and this error no longer appears.
    -Sireesha.

  • Labview Database Connection Toolkit and decimal point

    Hi,
    on my system I use "," (comma) as decimal point.
    In Labview Options I unflagged "Use localized decimal point", and numeric controls and indicators use "." (dot) as decimal point.
    The problem is that Labview Database Connection Toolkit keeps returning floating point numbers as strings with comma as decimal point.
    Has anyone experienced this issue?
    Is this related to Labview or MySQL ODBC Connector (that I'm using to connect to a mySQL DB)?
    Thanks in advance for any help,
    Marco

    You have two or three places to look. First there is the DCT. Second, there's a couple layers there that could cause problems (the mySQL drivers and ADO) and then there's even the posibility that the issue could be in the DBMS itself.
    I would start by burrowing down through all the DCT layers and find the spot where the results are actually being read back fromt he database. If the resutls are read as variants and converted to LV datatypes, the problem is on the LV side. If the values are being read as strings and converted, the problem coiuld be on the other side.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • Dynamically Changing Database Connections Information

    Post Author: Robert Flaherty
    CA Forum: .NET
    USing Crystal 2008 and Visual Studio 2008 in C#:
    Below is the code that I am using to set the database connection at runtime.  This does not work when the Server/Database is different from the Server/Database that was used when the report was generated.  What happens is a dialog box appears with the original connection information,  The textbox for the server and the database are disabled.
    public partial class ViewOrder : Form
    string sqlStmt;
    public ViewOrder(string SqlStmt)
    InitializeComponent();
    GlobalVaribles gv = GlobalVaribles.Instance;
    sqlStmt=SqlStmt;
    ConnectionInfo connectionInfo = new ConnectionInfo();
    connectionInfo.ServerName = gv.Server;
    connectionInfo.DatabaseName = gv.Database;
    connectionInfo.UserID = gv.UserID;
    connectionInfo.Password = gv.Password;
    crystalReportViewer1.SelectionFormula = sqlStmt;
    string reportPath = Util.BuildFileName(gv.ReportPath, "Order001.Rpt");
    crystalReportViewer1.ReportSource = reportPath;
    crystalReportViewer1.ShowGroupTreeButton = true;
    crystalReportViewer1.EnableDrillDown = false;
    SetDBLogonForReport(connectionInfo);
    private void SetDBLogonForReport(ConnectionInfo connectionInfo)
    TableLogOnInfos tableLogOnInfos = crystalReportViewer1.LogOnInfo;
    foreach (TableLogOnInfo tableLogOnInfo in tableLogOnInfos)
    tableLogOnInfo.ConnectionInfo = connectionInfo;

    Post Author: Robert Flaherty
    CA Forum: .NET
    USing Crystal 2008 and Visual Studio 2008 in C#:
    Below is the code that I am using to set the database connection at runtime.  This does not work when the Server/Database is different from the Server/Database that was used when the report was generated.  What happens is a dialog box appears with the original connection information,  The textbox for the server and the database are disabled.
    public partial class ViewOrder : Form
    string sqlStmt;
    public ViewOrder(string SqlStmt)
    InitializeComponent();
    GlobalVaribles gv = GlobalVaribles.Instance;
    sqlStmt=SqlStmt;
    ConnectionInfo connectionInfo = new ConnectionInfo();
    connectionInfo.ServerName = gv.Server;
    connectionInfo.DatabaseName = gv.Database;
    connectionInfo.UserID = gv.UserID;
    connectionInfo.Password = gv.Password;
    crystalReportViewer1.SelectionFormula = sqlStmt;
    string reportPath = Util.BuildFileName(gv.ReportPath, "Order001.Rpt");
    crystalReportViewer1.ReportSource = reportPath;
    crystalReportViewer1.ShowGroupTreeButton = true;
    crystalReportViewer1.EnableDrillDown = false;
    SetDBLogonForReport(connectionInfo);
    private void SetDBLogonForReport(ConnectionInfo connectionInfo)
    TableLogOnInfos tableLogOnInfos = crystalReportViewer1.LogOnInfo;
    foreach (TableLogOnInfo tableLogOnInfo in tableLogOnInfos)
    tableLogOnInfo.ConnectionInfo = connectionInfo;

Maybe you are looking for

  • ICal not syncing with MobileMe

    I know there have been other posts on this, but I have tried them all and cannot figure this out. MobileMe is syncing with my iPhone 4 (iOS 4.2) but it is not syncing with my MacBook under my current user profile. I created a new profile as a test an

  • Wifi, wifi

    Hello, i have a problem with my wifi on Iphone 4s, it's always turn off....?

  • When networking, iPhoto loses slideshow order and setting

    I am airport streaming iPhoto slideshows from my iMac to my Macbook Pro. The shared folders show up on my Macbook Pro, seemingly in a completely random order irrespective of the order in my iMac iPhoto where my library is kept. I have a couple of doz

  • Why client is downloading update from server while installing sccm client.

    Dear team, Can anybody give answer to my question? I am new to sccm so when I am installing any client software the ccmsetup.log file is showing connecting to the server for downloading updates and it's taking long time to downloading because the off

  • Possible to attach an Interactive pdf to DPS ? ( & Keep the interactivity alive )

    Hi, Is it possible to open an interactive pdf from an DPS app and keep the interactive alive ( buttons /textboxses /submit / send to email ) ? I know how to make an zip-folder and link to the document form a button ( HTMLResources/filename.pdf ) But