Error in connecting to Oracle webcenter DB with Endeca

Hi,
I gave the passthrough values and the rest of the details in the developer studio. However, on running baseline, I am getting the below error:
Apr 15, 2013 5:22:23 PM com.endeca.soleng.itl.jdbc.AdvancedJDBCColumnHandler <init>
WARNING: Could not find properties file in classpath; defaults will be used.
Apr 15, 2013 5:22:23 PM com.endeca.soleng.itl.jdbc.AdvancedJDBCColumnHandler <init>
WARNING: outputDataDir ..\incoming not writable
Apr 15, 2013 5:22:24 PM com.endeca.edf.adapter.AdapterRunner run
SEVERE: Failed to open connection to: jdbc:oracle:<host>:<port>/<dbname>.
com.endeca.edf.adapter.plugins.JdbcAdapterException: Failed to open connection to: jdbc:oracle:<host>:<port>/<dbname>.
+     at com.endeca.edf.adapter.plugins.JdbcAdapter.connect(JdbcAdapter.java:201)+
+     at com.endeca.edf.adapter.plugins.JdbcAdapter.execute(JdbcAdapter.java:94)+
+     at com.endeca.edf.adapter.AdapterRunner.run(AdapterRunner.java:168)+
+     at com.endeca.edf.adapter.AdapterRunner.main(AdapterRunner.java:43)+
Caused by: java.sql.SQLException: Invalid Oracle URL specified
+     at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:423)+
+     at java.sql.DriverManager.getConnection(DriverManager.java:582)+
+     at java.sql.DriverManager.getConnection(DriverManager.java:154)+
+     at com.endeca.edf.adapter.plugins.JdbcAdapter.connect(JdbcAdapter.java:188)+
+     ... 3 more+
Getting invalid oracle url for jdbc:oracle:<host>:<port>/<dbname>. Please suggest correct url for connecting to oracle db.
Thanks.

Hi,
I found out that the db bundled with webcenter sites is HSQL. So, I performed the same steps using hsql jar but getting the below error:
Apr 16, 2013 2:18:09 PM com.endeca.soleng.itl.jdbc.AdvancedJDBCColumnHandler <init>
WARNING: Could not find properties file in classpath; defaults will be used.
Apr 16, 2013 2:18:09 PM com.endeca.soleng.itl.jdbc.AdvancedJDBCColumnHandler <init>
WARNING: outputDataDir ..\incoming not writable
Apr 16, 2013 2:18:11 PM com.endeca.edf.adapter.AdapterRunner run
SEVERE: Failed to open connection to: jdbc:hsqldb:hsql://<host>:<port>.
com.endeca.edf.adapter.plugins.JdbcAdapterException: Failed to open connection to: jdbc:hsqldb:hsql://<host>:<port>.
     at com.endeca.edf.adapter.plugins.JdbcAdapter.connect(JdbcAdapter.java:201)
     at com.endeca.edf.adapter.plugins.JdbcAdapter.execute(JdbcAdapter.java:94)
     at com.endeca.edf.adapter.AdapterRunner.run(AdapterRunner.java:168)
     at com.endeca.edf.adapter.AdapterRunner.main(AdapterRunner.java:43)
Caused by: java.sql.SQLException: socket creation error
     at org.hsqldb.jdbc.Util.sqlException(Unknown Source)
     at org.hsqldb.jdbc.jdbcConnection.<init>(Unknown Source)
     at org.hsqldb.jdbcDriver.getConnection(Unknown Source)
     at org.hsqldb.jdbcDriver.connect(Unknown Source)
     at java.sql.DriverManager.getConnection(DriverManager.java:582)
     at java.sql.DriverManager.getConnection(DriverManager.java:154)
     at com.endeca.edf.adapter.plugins.JdbcAdapter.connect(JdbcAdapter.java:188)
     ... 3 more
Getting Socket creation error :( Can u pls help in connecting to hsql db? Probably my DB_URL is also wrong, not sure of the correct parameter. I have given :
jdbc:hsqldb:hsql://<host>:<port>
Also, 1 more surprising thing is that even though hsql db is working from webcenter sites explorer, in services, there is no hsql service visibile.

Similar Messages

  • Connecting ATG 10.1.2 with endeca 3.1.1 without CRS..

    Hi Guys,
    I'm trying to connect ATG 10.1.2 with endeca 3.1.1 without CRS Application. I'm able to connect to endeca app by using the OOTB configuration component.
    My real problem is "AssemblerPipelineServlet" is getting the ContentItem from the endeca for the requested page eg:"pages/browse" and forwarding the request to the cartridge JSP. But the fowarded page is not get compiled, Instead browser showing the complete jsp content.
    Any help in this regard will be much appreciated.
    -Rajaram
    Edited by: 991199 on Mar 1, 2013 10:46 AM
    Edited by: 991199 on Mar 1, 2013 6:58 PM

    Please find the web.xml below:
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.5" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
    <display-name>ATG Commerce Reference Store</display-name>
    <context-param>
    <param-name>atg.session.parentContextName</param-name>
    <param-value>/dyn</param-value>
    </context-param>
    <context-param>
    <param-name>atg.dafear.bootstrapContextName</param-name>
    <param-value>/dyn</param-value>
    </context-param>
    <context-param>
    <param-name>context-root</param-name>
    <param-value>prepaid</param-value>
    </context-param>
    <context-param>
    <param-name>atg.assembler</param-name>
    <param-value>true</param-value>
    </context-param>
    <filter>
    <filter-name>PageFilter</filter-name>
    <filter-class>atg.filter.dspjsp.PageFilter</filter-class>
    </filter>
    <filter>
    <filter-name>ForwardFilter</filter-name>
    <filter-class>atg.servlet.ForwardFilter</filter-class>
    </filter>
    <filter>
    <filter-name>ErrorFilter</filter-name>
    <filter-class>atg.servlet.ErrorFilter</filter-class>
    </filter>
    <filter-mapping>
    <filter-name>ErrorFilter</filter-name>
    <url-pattern>/*</url-pattern>
    <dispatcher>ERROR</dispatcher>
    </filter-mapping>
    <filter-mapping>
    <filter-name>ForwardFilter</filter-name>
    <url-pattern>/*</url-pattern>
    <dispatcher>FORWARD</dispatcher>
    <dispatcher>ERROR</dispatcher>
    </filter-mapping>
    <filter-mapping>
    <filter-name>PageFilter</filter-name>
    <url-pattern>/*</url-pattern>
    <dispatcher>REQUEST</dispatcher>
    <dispatcher>ERROR</dispatcher>
    <dispatcher>FORWARD</dispatcher>
    </filter-mapping>
    <filter>
    <filter-name>ADCDataInsertFilter</filter-name>
    <filter-class>atg.filter.ConditionalDelegatingFilter</filter-class>
    <init-param>
    <param-name>targetFilter</param-name>
    <param-value>
    atg.adc.filter.ADCDataInsertFilter
    </param-value>
    </init-param>
    <init-param>
    <param-name>mimeTypes</param-name>
    <param-value>text/html,dynamo-internal/html</param-value>
    </init-param>
    </filter>
    <filter-mapping>
    <filter-name>ADCDataInsertFilter</filter-name>
    <url-pattern>/*</url-pattern>
    </filter-mapping>
    <servlet>
    <servlet-name>MappedJumpServlet</servlet-name>
    <servlet-class>atg.repository.seo.MappedJumpServlet</servlet-class>
    <init-param>
    <param-name>loggingDebug</param-name>
    <param-value>true</param-value>
    </init-param>
    <init-param>
    <param-name>jumpServlet</param-name>
    <param-value>
    ctx:dynamo:/atg/dynamo/servlet/dafpipeline/JumpServlet
    </param-value>
    </init-param>
    </servlet>
    <servlet>
    <servlet-name>NucleusServlet</servlet-name>
    <servlet-class>atg.nucleus.servlet.NucleusServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet>
    <servlet-name>DynamoProxyServlet</servlet-name>
    <servlet-class>atg.nucleus.servlet.NucleusProxyServlet</servlet-class>
    <load-on-startup>2</load-on-startup>
    </servlet>
    <servlet-mapping>
    <servlet-name>MappedJumpServlet</servlet-name>
    <url-pattern>/jump/*</url-pattern>
    </servlet-mapping>
    <servlet>
    <servlet-name>link</servlet-name>
    <servlet-class>atg.endeca.servlet.NucleusPreviewLinkServlet</servlet-class>
    <init-param>
    <description>
    The Nucleus component path of the NavigationStateBuilder.
    </description>
    <param-name>navigationStateBuilderComponent</param-name>
    <param-value>/atg/endeca/assembler/cartridge/manager/NavigationStateBuilder</param-value>
    </init-param>
    <init-param>
    <description>
    The Nucleus component path of the ContentSource.
    </description>
    <param-name>contentSourceComponent</param-name>
    <param-value>/atg/endeca/assembler/cartridge/manager/WorkbenchContentSource</param-value>
    </init-param>
    </servlet>
    <servlet-mapping>
    <servlet-name>link</servlet-name>
    <url-pattern>/link.json/*</url-pattern>
    </servlet-mapping>
    <listener>
    <listener-class>atg.taglib.dspjsp.RegisterELResolverServletContextListener</listener-class>
    </listener>
    <welcome-file-list>
    <welcome-file>index.jsp</welcome-file>
    </welcome-file-list>
    <error-page>
    <error-code>404</error-code>
    <location>/global/pageNotFound.jsp</location>
    </error-page>
    <error-page>
    <error-code>500</error-code>
    <location>/global/serverError.jsp</location>
    </error-page>
    <error-page>
    <error-code>409</error-code>
    <location>/global/sessionExpired.jsp</location>
    </error-page>
    <jsp-config>
    <jsp-property-group>
    <url-pattern>*.jsp</url-pattern>
    <page-encoding>UTF-8</page-encoding>
    <scripting-invalid>true</scripting-invalid>
    <include-prelude>/includes/prelude.jspf</include-prelude>
    </jsp-property-group>
    </jsp-config>
    </web-app>

  • Error when connecting an oracle DB with Integration gateway

    I followed the steps from the blog How to connect an Oracle DB with Integration Gateway in SMP3 and the ojdbc was deployed successfully to SMP. Still, i'm getting "Driver class oracle.jdbc.driver.OracleDriver not found" error message when i try to test my connection. The first difference i saw when completing these steps was that I'm using SMP3 SP05, could this be the issue?

    Joao D Franco Net
    Could you share below information:
    Can you cross check if deployed driver are OSGi enabled? Refer this.
    Can you share screenshot of the destination settings and error ?
    note: The blog you followed is referring to SP03 (1st GA of SMP3)..You should not have any problem in connecting to Oracle DB being on any SP.
    Regards,
    JK

  • I met an error when connect to oracle db with tag sql:DataSource

    When I use the jstl tag <sql:DataSource> connect to oracle db ,I met an error as :
    javax.servlet.jsp.JspException: Unable to get connection, DataSource invalid: "java.sql.SQLException: No suitable driver"
    My Source code as follow:
    <sql:setDataSource var="dataSource" driver="oracle.jdbc.driver.OracleDriver" url="jdbc:oracle:thin:@192.168.1.220:1521:gzserver" scope="request" user="lnmisscall" password="lnmcadmin"/>
    <sql:query dataSource="{$dataSource}" var="data">
    I am sure the connection information are right (I can connecte to the db with them in jsp & java bean) , and I have put the oracle's jdbc driver under the tomcat/common/lib folder,
    Please help me to fit it ,thanks.

    Sabrina,
    Its all dependent on the application and whether its 32-bit or 64-bit.  For example, SSRS reporting services 2008 R2 is a 64-bit application, so load the 64-bit oracle client there for report execution.  Report builder is a 32-bit client application,
    assuming its running on a different machine, so load the 32-bit oracle client on any user computers using RB 3.0 and working with Oracle.  If the computers are one in the same, then do as the post above says, load both...

  • Error creating connection to Oracle Application Server 10g(10.1.3)

    Hey
    Im using Oracle JDeveloper 10g and when i tried to create a new connection to Oracle App Server 10.1.3 and test it, I received the following error message
    Error while parsing OPMN dump in XML format: XML Parse Exception: tag=[null] Ran out of data, content []
    I have no idea what this means and any help on this will be highly appreciated. Thank you
    Arjhun

    OK, in short:
    Cause: Wrong OPMN request port used to configure the connection (third step of "Create Application Server Connection" wizard). You might have kept the default (6003) but your OPMN is configured with different request port.
    Solution: Check $ORACLE_HOME/opmn/conf/opmn.xml file and look for entry like this:
    <port local="6140" remote="6240" request="6040" />
    Create the connection using OPMN request port that is set in opmn.xml file.
    Thanks
    Shail

  • Error when connecting linux oracle dataabse for replication thru oms

    I have installed oracle 8.1.7 ee on Redhat linux 7.1 and 6.2 both and also on windows2000.
    When i try to access database of any oracle installed on linux machines from any of management server it gives following errors:
    ora-01034 oracle not available
    ora-27101 shared memory realm does not exist
    linux error:2: file or dir does not exist.
    if i try to access dataabse without login to any management server ( i.e thru dba studio) then it connects to it.
    i want to setup master replication with two linux machine database.
    if any person has solution for this then please help me.
    Thx in advance
    if possible mail me at [email protected]
    thx in advance
    pranav shah
    null

    1010056 wrote:
    When iam connecting getting the following error
    [rmancln@orawave ~]$ sqlplus '/as sysdba'
    SQL*Plus: Release 10.2.0.1.0 - Production on Wed Jun 5 21:16:53 2013
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    SQL> select status from v$instance;
    STATUS
    MOUNTED
    SQL> alter database open;
    alter database open
    ERROR at line 1:
    ORA-01589: must use RESETLOGS or NORESETLOGS option for database open
    SQL> alter database open resetlogs;
    alter database open resetlogs
    ERROR at line 1:
    ORA-01152: file 1 was not restored from a sufficiently old backup
    ORA-01110: data file 1: '/u01/rmancln/oradata/CLN/system01.dbf'provide details on what events lead up to this situation.
    [oracle@localhost ~]$ oerr ora 1152
    01152, 00000, "file %s was not restored from a sufficiently old backup "
    // *Cause:  An incomplete recovery session was started, but an insufficient
    //         number of logs were applied to make the database consistent. This
    //         file is still in the future of the last log applied. The most
    //         likely cause of this error is forgetting to restore the file
    //         from a backup before doing incomplete recovery.
    // *Action: Either apply more logs until the database is consistent or
    //         restore the database file from an older backup and repeat recovery.

  • Sun Ray error when connecting to Oracle VDI - No Kiosk Sessions Available

    When the Sun Ray DTUs go to connect to the Oracle VDI cluster at times they will throw the error "Error starting Kiosk session: No Kiosk accounts configured." We have tried going through the steps to confirm that the Kiosk sessions are configured on the two secondary hosts but the problem persists. When the Sun Ray DTUs do connect they will work for a while and then when left idle for a period of time will loose their connection and be unable to restart the connection with the error mentioned. The Screen Blanking option on the Sun Ray DTUs is set to "0" to prevent them from going into power-save mode but this makes no difference. The Sun Ray DTUs are all updated with the latest GUI firmware and there are no custom options set in the Sun Ray Session Servers.
    The thing that bothers me the most is I have not seen any error messages in the logs. I will post up the logs as links in a follow-up post.
    Has anyone had any similar issues while connecting with a Sun Ray DTU?
    Currently we are running Oracle VDI 3.2.1 on the cluster.
    Here are the commands we used to reset the Sun Ray Kiosk accounts:
    # /opt/SUNWkio/bin/kioskstatus -c
    # /opt/SUNWkio/bin/kioskuseradm status
    # /opt/SUNWkio/bin/kioskuseradm delete
    # /opt/SUNWkio/bin/kioskuseradm create -l utku -g utkiosk -i auto -u –c

    I was trying to transfer data from oracle to sql server 2008 on a daily basis.
    I have very hard time connecting to oracle from ssis package on windows server 2008. I am almost dead and cannot find any help. i was able to connect to oracle using import/export 64 bit feature of SQL Server 2008 using Oracle provider for OLEDB. But I am not sure why the same does not work with BIDS?
    Here's the environment info:
    1. Oracle Client 10g
    2. SQL Server 2008
    3. Windows Server 2008
    Appreciate your help. Please save me.
    Thanks,

  • Error in connection to oracle using java

    hi ,
    i am tring to make a connection to oracle database using java with this code
    public class DataBase {
    public DataBase(){
    Connection connection = null;
    try {
    // Load the JDBC driver
    String driverName = "oracle.jdbc.dirver.OracleDriver";
    Class.forName(driverName);
    // Create a connection to the database
    String serverName = "http://localhost:7777";
    String portNumber = "1521";
    String sid = "ora9i";
    String url = "jdbc:oracle:thin:@" + serverName + ":" + portNumber + ":" + sid;
    String username = "scott";
    String password = "tiger";
    connection = DriverManager.getConnection(url, username, password);
    } catch (ClassNotFoundException e) {
    JOptionPane.showMessageDialog(null,"Coud not find the database driver ");
    // Could not find the database driver
    } catch (SQLException e) {
    JOptionPane.showMessageDialog(null,"Coud not connect to the database ");
    // Could not connect to the database
    public static void main(String[] args) {
    new DataBase();
    i always got the compilation error Coud not find the database driver
    i am using oracle9i and jdk1.5.0_04 and my classpath is C:\oracle\ora92\jdbc\lib\ojdbc14.zip;C:\oracle\ora92\jdbc\lib\orai18n.zip
    i am realy stuck with this so any one can help me with this probelm
    thanks alot,

    thanks for your reply,
    yes i changed the server name and i verified the location of the JDBC driver file(s) on my computer. any way i solved my problem.
    you know there was a misunderstanding in what you mean by classpath, i thought that i have to change the classpath from control panel>system>advance>enviroment variable
    and then select classpaht and edit it. i was doing this but this is didn't work.
    then i don't know why i did that
    i went to java program and select my project,right click on it and then select properties>java build path and then select "add external Jars" button and then i simply choose them and add them to my project. and finaly it worked.
    thanks alot

  • Error in Connecting the Oracle Attunity Source in SSIS package

    Hi ,
        May this question might have been posted before but as far as i am concerned i was not able to find the solution i am looking after , so please help me out on this . 
    I am using the Oracle Attunity Software to connect to the Oracle source and the Testing is also successful but during Run time the Attunity Oracle source is failing and the Error found was as shown below
    [Oracle Source [65]] Error: The AcquireConnection method call to the connection manager Oracle Connector 1 failed with error code 0x80004005.  There may be error messages posted before this with more information on why the AcquireConnection method
    call failed.
    [SSIS.Pipeline] Error: Oracle Source failed validation and returned error code 0x80004005.
    [SSIS.Pipeline] Error: One or more component failed validation.
    Error: There were errors during task validation.
    Validation is completed
    [Connection manager "Oracle Connector 1"] Error: OCI error encountered. ORA-01005: null password given; logon denied
    Warning: SSIS Warning Code DTS_W_MAXIMUMERRORCOUNTREACHED.  The Execution method succeeded, but the number of errors raised (5) reached the maximum allowed (1); resulting in failure. This occurs when the number of errors reaches the number specified
    in MaximumErrorCount. Change the MaximumErrorCount or fix the errors.
    I have tried the following solutions like changing the "Run64BitRuntime" to False also but its not working and i have even tried converting my package Protection Level with the "EncryptSensitiveWithPassword" but still of no use 
    Please help me out 
    Thanks & Regards,
    Santosh

    Hi Santosh,
    Please try to run the package under a proxy account, here is the article regarding how to schedule a package the safe way with SQL Server Agent:
    http://microsoft-ssis.blogspot.com/2010/12/how-to-schedule-package-save-way-with.html
    Regards,
    Elvis Long
    TechNet Community Support
    Oh.. much Thanks :) Let me try that 

  • Error while connecting to Oracle 8 from PI 7.1

    I am trying the connect oracel 8.0 from PI 7.1,
    I am getting following error in communication channel monitoring
    "Exception caught during JDBC adapter processing: java.lang.NullPointerException "
    at the same time I can connect to oracle 10g smoothly without any error.
    Please suggest what would be the reason.
    regards,

    Hi Check this thread
    same problem disueed here & solved
    Error in Sender JDBC communication channel
    Regards
    Abhishek

  • Error While Connecting to Oracle

    Hi All,
    While Connecting to Oracle through jdbc thin driver, following error is displayed. Please help me in resolving the same.
    <b>SQL Exception:
    State  : null
    Message: Io exception: The Network Adapter could not establish the connection
    Error  : 17002</b>

    hi,
    Any or all of the following conditions may also apply:
    1) You are able to establish a SQL*Plus connection from the same client to the same Oracle instance.
    2) You are able to establish a JDBC OCI connection, but not a Thin
       connection from the same client to the same Oracle instance.
    3) The same JDBC application is able to connect from a different
       client to the same Oracle instance.
    4) The same behavior applies whether the initial JDBC connection
       string specifies a hostname or an IP address.
    Go thru the foll url
    http://www.websina.com/bugzero/kb/oracle-connection.html
    wbr,
    KK

  • [Error] Not connected to Oracle...

    I've installed oracle8.1.7 on a Sun Enterprise 450 Solaris box.
    Followed every steps listed in the installation Manual(SGA configuration, etc...)
    i tried to create databaase using dbassist but failed.
    The error I got is "ORA-01034 ORACLE not found" or "Not connected to Oracle".
    Can anyone tell me why?
    what steps to resolve the problems?
    I miss any pre_installaiont steps...???
    Thanks in advance.

    This is a very common error.
    Until you post your script - i don't think we can do any help for you. Or, at least post some relevant information.
    Regards.
    Satyaki De.

  • Integrating Oracle WebCenter Discussions with ALUI/OWCI

    How easy is it to integrate a WebCenter Discussions Portlet into a WebCenter Interaction Portal (Previously BEA ALUI)? We want to develop a Forum application using Oracle WebCenter Discussions and also add/access it as a portlet to the existing portal running in WebCenter Interaction. Could anyone suggest a good approach to this?

    The product you are using at forums.oracle.com is WebCenter Discussion, or what used to be "Jive Forums." It's currently called WebCenter Discussions.
    Here's a link for integrating with WC Discussions to give you insight into how it could be done in WebCenter Interaction (WCI):
    http://database.in2p3.fr/doc/oracle/Oracle_Application_Server_10_Release_3/webcenter.1013/b31074/jpsdg_jive.htm

  • Error while connecting to oracle 10g data base

    Following is the code we used to connect to oracle 10g data base using symbian 7.1 series 80 SDK
    int CTest_S80AppUi::SetupODBC(void)
    RETCODE rc;
    char *DataSource = OD_DATA_SOURCE;
    char UserId = "system", Password = "manager";
    rc=SQLAllocEnv(&Henv);
    //if (TEST_CHECK_ERR(SQL_NULL_HSTMT, rc, "SQLAllocEnv", FALSE) < 0) return(-1);
    rc=SQLAllocConnect(Henv, &Hdbc);
    //if (TEST_CHECK_ERR(SQL_NULL_HSTMT, rc, "SQLAllocConnect", FALSE) < 0)
         //return(-1);
    rc = SQLConnect(Hdbc, (unsigned char *)DataSource, SQL_NTS,
              (unsigned char *)UserId, SQL_NTS,
              (unsigned char *)Password, SQL_NTS);
    bConnected = TRUE;
    //if (TEST_CHECK_ERR(SQL_NULL_HSTMT, rc, "SQLConnect", FALSE) < 0) return(-1);
    SQLAllocStmt(Hdbc, &Hstmt);
    //if (TEST_CHECK_ERR(SQL_NULL_HSTMT, rc, "SQLAllocStmt", FALSE) < 0) return(-1);
    return (1);
    } /* SetupODBC */
    iam getting the return code for SQLConnect as -1.
    Thanks in advance.

    Thanks for the reply.
    //syntax means comments.
    chk the following code.
    int SetupODBC(void)
    char *DataSource = "polite";
    char UserId = "system", Password = "manager";
    if ( SQLAllocEnv(&Henv) < 0 )
    return -1;
    if ( SQLAllocConnect(Henv, &Hdbc) < 0 )
    return -1;
    if ( SQLConnect(Hdbc, (unsigned char *)DataSource, SQL_NTS,
    (unsigned char *)UserId, SQL_NTS,
    (unsigned char *)Password, SQL_NTS) < 0 )
    return -1;
    if (SQLAllocStmt(Hdbc, &Hstmt) < 0 )
    return -1;
    return (0);
    As said earlier there is a problem in SQLConnect. It is returning -1.
    But the code should return 0 if successfully connected.
    The info regarding the arguments used in the above methods:
    HENV Henv; /* Handle to ODBC Environment object */
    HDBC Hdbc; /* Handle to ODBC Connection object */
    HSTMT Hstmt; /* Handle to ODBC Statement object */

  • Connect on Oracle 11g Xe with ADODB c++ and VS2010 (compiled in 64)

    Hello everybody,
    I develop an application in C++ and ADODB to connect at Oracle 11g XE. I use this connection string : *"Provider=OraOLEDB.Oracle;Data Source=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=MyHost)(PORT=1521)))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=XE)));User Id=MyUserId;Password=MyPwd*;";*
    when I compiled in win32, it's run successfuly but in x64 i catch exception : Can not find the provider. It may not be installed.
    At this line
    hr=m_pConnection->Open(strCs.AllocSysString(),"","",adConnectUnspecified);
    someone have an idea ? Thanks for you answer.
    Edited by: user13819505 on 3 sept. 2012 06:31

    user13819505 wrote:
    when I compiled in win32, it's run successfuly but in x64 i catch exception : Can not find the provider. It may not be installed.Did you install the 64-bit Oracle client?

Maybe you are looking for

  • How to access a value from "List of Values" by giving a name?

    I have a "List Of Values" defined in my BI Report. It comprises list of label-value pairs. I have defined a parameter :p_Value for the above "List Of Values" defnition. this parameter is used in datasource sql defnition to filter the query results. I

  • On the Iphone 5 when I select a playlist, it keeps automatically scrolling through songs, I can't get it to stop.  Anyone else having this issue?

    I click the music Icon, then chose "my top rated" playlist.  Then my covers just started scrolling and wouldn't stop even if I selected the back or forward arrows.  Then I tried going back to the main menu in music and it won't do that, its like it i

  • Plug-in update ACR 6.4.1

    Whan selecting "Edit in" option to edit a DNG in Photoshop CS4, I get the prompt, "This version of Lightroom may require the Photoshop Camera Raw plug-in v. 6.4.1 for full compatibility. Please update the Camera Raw plug-in using the update tool avai

  • Regarding pricing

    hi evryone, how ru i am new to SAP MM so i would like to know wether we create pricing procedures in MM if yes wat are the important conditions for which we create n wat are the tables we use with the fields in them plz anyone answer my question n he

  • LMS 4.2 discovery failure

    Hi I have Cisco LMS 4.2 installed i was using SNMP V2c for polling my devices. After i turned on SNMPv3 all devices are reachable and even when i make credentials check it's ok, but the issue when i access any device from search pane it shows me in t