Linux ODBC 12504 error

I am doing Linux testing of software (that works on Windows) using ODBC against Oracle and getting a 12504 error (TNS:listener was not given the SID in CONNECT_DATA)
The ODBC call being used is SQLDriverConnect() and connect string that works on Windows is: "DSN=OracleDSN;UID=scott;PWD=tiger"
I have ORACLE_HOME set to /opt/oracle/product/11.1.0 and ORACLE_SID set to demo.
The Linux ODBC driver manager is unixODBC, and my .odbcinst.ini file specifies: Driver = /opt/oracle/product/11.1.0/lib/libsqora.so.11.1
In my .odbc.ini file, I have OracleDSN defined, and in that file I have tried setting: Servername = localhost/demo, to specify the SID, but that didn't help.
Question: How do I avoid the 12504 error and specify the SID name using SQLDriverConnect?

Are you able to connect using SQL*plus l
Yes, I can connect locally using: sqslplust scott/tiger
But for some reason, to connect remotely, I have to use the full service name, instead of just "demo":
sqlplus scott/[email protected]/demo.reddog.gpv.az05.bull.com
You may want to check your listener and tnsnames.ora settings for this error.I didn't see any obvious errors in these files (listed below):
# tnsnames.ora Network Configuration File: /opt/oracle/product/11.1.0/network/admin/tnsnames.ora
# Generated by Oracle configuration tools.
DEMO =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = reddog.gpv.az05.bull.com)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = demo.reddog.gpv.az05.bull.com)
# listener.ora Network Configuration File: /opt/oracle/product/11.1.0/network/admin/listener.ora
# Generated by Oracle configuration tools.
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = reddog.gpv.az05.bull.com)(PORT = 1521))
)

Similar Messages

  • OBIEE 11g ODBC connectivity error

    Hi all,
    I am getting the following error when I tried to access a simple query through Answers.
    "*Odbc driver returned an error (SQLExecDirectW).*
    *Error Details*
    *Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P*
    *State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 43119] Query Failed: [nQSError: 16001] ODBC error state: IM002 code: 0 message: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified. (HY000)*
    *SQL Issued: SELECT s_0, s_1, s_2 FROM ( SELECT 0 s_0, "BISample"."Product"."BRAND" s_1, "BISample"."Target"."REVENUE" s_2 FROM "BISample" ) djm*"
    What I did was
    1. Create a DSN 'orcl', 32 bit Oracle ODBC driver. Tested and worked against the Oracle database.
    2. Import metadata using Local, ODBC 3.5 and DSN = orcl
    3. Build a simple BMM and subject area
    4. In the phyiscal layer, right click on a table, and select view data/update row count. Error with message "The connection has failed"
    5. Hoping for the best, create a simple query in answer and got the above odbc driver error in results tab.
    Interestingly, if I edit the connection pool and use OCI (my SID is also orcl), then everything works fine.
    I'm new to OBIEE and hope someone can tell me if I have missed a step or make any mistakes!
    Thanks!
    Regards
    Han Kiat

    Hi All,
    I am able to connect SQL Server database with OBIEE 11g RPD offline and imported metadata and verified update row count/view data but when i was trying to publish the same RPD the data is not returning also "update row count/view data" is giving and error "The connection has failed."
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 43119] Query Failed: [nQSError: 16001] ODBC error state: IM002 code: 0 message: [DataDirect][ODBC lib] Data source name not found and no default driver specified. (HY000)
    Environment:
    OBIEE 11g/WLS 10.3.3/Oracle database 11g installed on RHL 5
    Client tools are installed on local Vista 32 bit system.
    Oracle database is working fin, where as SQL Server is giving issues.
    You want me to create a ODBC connection in RHL 5 server to connect to SQL Server ? i am little bit confused here how to create !
    same time i have created ODBC for oracle apps database and imported and able to view data in RPD when i am in Online mode.
    When i open RPD in online mode and trying to import the data i dont have access to local machine ODBC's which is expected and if i change to "Remote Server" nothing is showing here.
    Appreciate your comments on the above.
    Thanks

  • DataExport problem-ODBC Layer Error: [21S01]-ORA-00947

    Hi,
    I have one planning application from which I want to transfer data to Oracle DB in the table "t". I have 11 dimension in the planning application, so I have created 12 columns in the table "t"(11 for dimension-members and 1 col for value) with the following script---
    create table t (
    a varchar2(100),
    b varchar2(100),
    c varchar2(100),
         d varchar2(100),
         e varchar2(100),
    f varchar2(100),
         g varchar2(100),
         h varchar2(100),
    i varchar2(100),
    j varchar2(100),
         k varchar2(100),
         l number)
    I have created a wire protocol dsn. But when I execute the following calcscript ---
    fix (jan,budget,fy08)
    DATAEXPORT "DSN" "xz" "t" "tstschma" "password" ;
    ENDFIX
    then it is showing error below---
    [Mon Jul 13 00:04:10 2009]Local/essdb/Plan1/admin/Info(1021000)
    Connection With SQL Database Server is Established
    [Mon Jul 13 00:04:10 2009]Local/essdb/Plan1/admin/Info(1012695)
    DataExport can not do batch insert to relational table. The ODBC driver and/or RDBMS doesn't support batch insert. Using record by record SQL export
    [Mon Jul 13 00:04:10 2009]Local/essdb/Plan1/admin/Info(1021013)
    ODBC Layer Error: [21S01] ==> [[DataDirect][ODBC Oracle Wire Protocol driver][Oracle]ORA-00947: not enough values]
    [Mon Jul 13 00:04:10 2009]Local/essdb/Plan1/admin/Info(1021014)
    ODBC Layer Error: Native Error code [947]
    [Mon Jul 13 00:04:10 2009]Local/essdb/Plan1/admin/Error(1012085)
    Unable to export data to SQL table [t]. Check the Essbase server log and the system console to determine the cause of the problem.
    [Mon Jul 13 00:04:10 2009]Local/essdb/Plan1/admin/Info(1021002)
    SQL Connection is Freed
    [Mon Jul 13 00:04:10 2009]Local/essdb/Plan1/admin/Warning(1080014)
    Transaction [ 0x920001( 0x4a5a097a.0x7918 ) ] aborted due to status [1012085].
    [Mon Jul 13 00:04:10 2009]Local/essdb/Plan1/admin/Info(1012579)
    Total Calc Elapsed Time for [datexprt.csc] : [0.062] seconds
    [Mon Jul 13 00:04:10 2009]Local/essdb/Plan1/admin/Info(1013274)
    Calculation executed
    Please guide me if I am doing anything wrong...
    Thanks & Regards.

    Hi,
    It all depends on you dense dimension being used in your export, it will use a column for each member.
    For example if the dense dimension on the export was period and you were doing a level 0 export (level0 members of time are Jan:Dec)
    Then there would need to be a column for each dimension and 12 columns for each of the periods (Jan:Dec)
    The best way to work it out is to export to a file first in column format and you will see how the table needs to look.
    The columns have to exactly match the data being exported.
    Take a look at this post, it something you may experience as well :- Re: DATAEXPORT command- Periods in the columns when sparse
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • "This entry is already exists in tables(JDT1)(ODBC-2035)" Error.

    Hi experts,
    My Production_DB Database was got into  Suspect mode due to power problem,the users unable to open SAP. so  run the script file so production_db came into normal mode and sap opened.
    But which documents were posted at the time of database going to Suspect mode that documents are not visible and then users repost the documents they are getting "This Entry is already exists in Table(JDT1) (ODBC-2035)" Error.
    so we run the select query for JDT1 table in sql server 2005,we got "Msg 605, Level 21, State 3, Line 1
    Attempt to fetch logical page (1:394560) in database 7 failed. It belongs to allocation unit 72057596881666048 not to 72057596584198144".
    I am using SAP PL 20 and SQL server 2005.
    I am waiting for your response ASAP.
    Thanks & Regards.
    Srinu Boddeti.

    Hi Srinu,
    please refer below link for details..
    http://forums.sdn.sap.com/thread.jspa?threadID=1636430
    Thanks and Regards,
    kaviprashu

  • Odbc layer error 01004

    Using Essbase 7.0.1 I have several load rules calling SQL data I copied from one server to another.
    On the new server some rule files work fine but some dont .
    I am getting the following error message in the log file.
    ODBC Layer Error: 01004 ==> [[microsoft] [ODBC Sql server Driver]String data, right truncation]
    ODBC Layer Error: Native Error code [0] Info (1021014)
    can anyone help me in solving this issue
    and where I have to make necessary changes....
    Thanks

    I always kind of work backwards on these sorts of issues until I can isolate where the problem is.
    1. Is it a view or a table you are trying to load from?
    2. Using Query Analyzer or the current SQL Server admin tool, can you query the same table/view that your load rule is trying to load data from?
    3. Can you still query it when you login as the same user that the load rule is running as?
    4. Is there some sort of "weird" data type in the view/table that might be tripping things up?
    5. If you omit that particular column from the load rule, does it start working again?
    6. Does it work if you use CAST or something similar in the SQL query or in the construction of the View itself, in order to make it a more "basic" data type?
    These are all probably different things I would try to see if I can isolate where the problem is. Good luck --
    Jason
    [jasons hyperioni blog|http://www.jasonwjones.com]

  • Microsoft OLE DB Provider for ODBC Drivers error '80040e10'

    Getting the following error:
    Microsoft OLE DB Provider for ODBC Drivers error '80040e10'
    [Microsoft][ODBC driver for Oracle]Wrong number of parameters
    I have a Stored Procedure within a package that has no input parameter and 2 output parameters..
    oConnEngineer.CursorLocation = 3
         oConnEngineer.Open sConnectionString
         oCmdEngineer.ActiveConnection = oConnEngineer
         oCmdEngineer.CommandText = "{Call ENG_TAILORMADE.USER_PKG.GET_ENGINEER_LIST(?,{resultset 100, out_ENGINEER_ID, out_ENGINEER_NAME})}"
         oCmdEngineer.CommandType = 1
         Set rsEngineers = oCmdEngineer.Execute()
    Any suggestions?

    Getting the following error:
    Microsoft OLE DB Provider for ODBC Drivers error '80040e10'
    [Microsoft][ODBC driver for Oracle]Wrong number of parameters
    I have a Stored Procedure within a package that has no input parameter and 2 output parameters..
    oConnEngineer.CursorLocation = 3
         oConnEngineer.Open sConnectionString
         oCmdEngineer.ActiveConnection = oConnEngineer
         oCmdEngineer.CommandText = "{Call ENG_TAILORMADE.USER_PKG.GET_ENGINEER_LIST(?,{resultset 100, out_ENGINEER_ID, out_ENGINEER_NAME})}"
         oCmdEngineer.CommandType = 1
         Set rsEngineers = oCmdEngineer.Execute()
    Any suggestions?

  • Linux ODBC!

    Hi,
    Does Linux ODBC is required to install and setup Oracle BI Apps enviroment on Linux box?
    Thanks
    Cooper

    What is Linux ODBC? Do you mean a Linux OBDC driver to use within OBIEE?
    http://www.catb.org/~esr/faqs/smart-questions.html#beprecise
    All the required software for an OBIEE Linux installation is provided and installed by the OBIEE installer.

  • Copy Express -  ODBC-2028 Error

    Hai to All,
    I am using SAP B1 2005B . I want to Transfer Data From One Data Base To Another Data Base . I am using to Copy Express to Transfer. I am using Replace All Method in Copy Express. While I am Copying the Users from One DB to Another DB , i got the Error  "No Matching Records Found(ODBC-2028) " for Some user ..
    Thanks & Regards
    Madhu

    Hey ,
                I just transfer the User Master Only. I am not able to transfer ,  same problem ODBC-2028 Error is comming.
    Please help me out from this issue.
    thanks & regards
    Madhu

  • Specifying Partner Failover in odbc.ini for Linux ODBC driver for SQL Server

    Hi,
    We are trying to specify the partner failover when making connections via Linux ODBC driver for SQL Server. Do you know a way to specify partner failover in the DSN entry in odbc.ini? 
    We are using Linux ODBC driver for SQL Server and unixODBC DriverManager.
    Our DSN is:
    [MyDSN]
    Driver=ODBC Driver 11 for SQL Server
    Description=MyDSN
    Server=MySERVER,<port>
    I also tried to use the following connection string in Python (via pyodbc) bypassing the DSN and connecting using the server name.
    cnxn = pyodbc.connect("Server=server1,<port>;UID=sa;PWD=<pwd>;Driver=ODBC Driver 11 for SQL Server;Failover_Partner=Server2,<port2>;Database=MyDB")
    If the standby DB is on server1 connection fails. It doesn't try server2. If the DB is principal on server1 connection succeeds.
    Thank you,
     Liviu
    LLL

    Hello,
    Did you use ODBC Driver for SQL Server to connect to database that uses database mirroring?
    According to
    the BOL,it does not list "Failover_Partner" as ODBC Driver for Linux connection string keywords.
    But ODBC driver for Linux supports
    AlwaysOn Availability Groups or Failover Cluster Instance by specify MultiSubnetFailover=True when connecting to a SQL Server 2012 availability group listener or SQL Server 2012 Failover Cluster Instance.
    The following case is about similar issue and it seems that ODBC Driver on Linux does not recognize Failover_Partner in connection string. (Not test myself).You can refer to:
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/6a8b5223-066d-4493-84a3-b5374a32e433/native-client-on-linux-does-not-recognize-failoverpartner-in-connection-string?forum=sqldataaccess
    Regards,
    Fanny Liu
    Fanny Liu
    TechNet Community Support

  • Odbc driver error while OBIEE instal on LINUX tries to access Datawarehouse

    Hi All,
    I have installed OBI Apps on a LINUX machine.The ETL too ran successfully.As we can't install BI tool on LINUX I modified the OracleBIAnalyticsApps.rpd file on a Windows machine and copied it back to the LINUX machine.After modifying the NSQConfig.ini file I could see all the OBI Apps answers and Dashboards ie OBI Apps was installed on LINUX.But whwnever I try to access some data from OLAP i get the following error:
    Odbc driver returned an error (SQLExecDirectW).
    Error Details
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 16023] The ODBC function has returned an error. The database may not be available, or the network may be down. (HY000)
    SQL Issued: SELECT Time."Year" FROM "Human Resources - Workforce Profile" ORDER BY 1
    Probably this is because all the DSN specified in the rpd file were present on the Windows machine.I don't know how to modify these values for LINUX.Please help.Nothing is mentioned in the install docc as far as LINUX installation is concerned.
    regards,
    Soumya.

    I think when your BI Server is running on linux, you would use native drivers to connect to your data warehouse database and not ODBC. If your data warehouse is on a oracle db server, change the call interfact in the RPD connection pool to OCI and give the tnsname for the db server connection in the connection pool.

  • Odbc driver error while connecting with Oracle BI in Linux

    I have Oracle BI Server, Presentation Service and Oracle 11g Client installed in RHEL 5. Oracle BI client is installed in Windows so that I can use Admin tool.
    I have created a repository in Windows for sh schema(by creating ODBC). After that I transferred this repository to the ..server/repository in the linux server.
    I have installed Oracle ODBC Driver from EASYSOFT and added one odbc data source for sh schema in the ../setup/odbc.ini.
    My ODBC setting is as follows.
    [ODBC Data Sources]
    sh=Oracle in OraDb11g_home1
    [sh]
    Driver=/usr/local/easysoft/oracle/libesoracle.so
    Database=//ipaddress_of_ORACLE_SERVER:port/database_service_name
    UID=sh
    PWD=sh
    When I am trying to query through Oracle Answers I am getting the following error.
    Odbc driver returned an error (SQLExecDirectW).
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 16023] The ODBC function has returned an error. The database may not be available, or the network may be down. (HY000)
    SQL Issued: SELECT Customers."Cust First Name" saw_0 FROM SH ORDER BY saw_0
    I have enabled tracing, but I am not getting any clue from trace output.
    Can anybody please help.
    If it is because of wrong driver, can anybody suggest a proper ODBC Driver for Oracle and how to configure it. If the driver is OK and configuration is wrong, can anybody tell me how to create system dsn in linux?
    Thanking you in advance.

    don't use ODBC for Oracle, use OCI
    search on the forum, there's plenty of information about it.

  • Linux ODBC Errors

    I'm trying to port my setup from a Windows machine to a Linux server and haven't been able to thus far. The DB is on one server and the OBIEE instance in on a different server. I have an Oracle Client installed and working on the OBIEE server as I check my DB connection in the oemapp utility. The ODBC setup on the other hand hasn't gone smoothly at all.
    When looking at the OBIEE installation manual it mentions a file named 'tdata.so'; I don't have this file anywhere on my server. I found a posting on Metalink about setting up ODBC in Linux and haven't been able to get it to work successfully thus far. Does anyone have a step by step tutorial for setting up OBIEE in Linux? Thanks for the help in advance as I'm really stuck here.

    Hi there,
    I'm also having some problems trying to connect to an Oracle DB on PHP, using unixODBC and Oracle's Instant Client.
    I've followed every usefull information from tutorials that google pointed to but when I try to test the connection with isql I always get this error:
    #  isql -v SPIDER
    [08004][unixODBC][Oracle][ODBC][Ora]ORA-12154: TNS:could not resolve the connect identifier specified
    [ISQL]ERROR: Could not SQLConnectFor what I've found this problem seems to be very frequent but most of the help applies to the windows.
    I've been retrying and searching for too long so I need some outside and more experienced help. :rolleyes:
    This is my /opt/oracle/instantclient:
    /opt/oracle/instantclient #  ls -l
    total 102716
    -r-xr-xr-x 1 root root    91881 2006-11-15 20:38 ODBCRelnotesJA.htm
    -r-xr-xr-x 1 root root    58416 2006-11-15 20:38 ODBCRelnotesUS.htm
    -r--r--r-- 1 root root    21548 2006-11-15 20:38 ODBC_IC_Readme_Linux.html
    -rw-r--r-- 1 root root      387 2008-01-31 23:17 TNSNAMES.ORA
    -r--r--r-- 1 root root  1600090 2006-11-15 20:37 classes12.jar
    -rwxrwxr-x 1 root root    67053 2006-11-15 20:37 genezi
    -r--r--r-- 1 root root     1525 2006-11-15 20:38 glogin.sql
    -rwxrwxr-x 1 root root 18825267 2006-11-15 20:37 libclntsh.so.10.1
    -r-xr-xr-x 1 root root  5486009 2006-11-15 20:37 libnnz10.so
    -rwxrwxr-x 1 root root  1398088 2006-11-15 20:37 libocci.so.10.1
    -rwxrwxr-x 1 root root 72480394 2006-11-15 20:37 libociei.so
    -r-xr-xr-x 1 root root   120135 2006-11-15 20:37 libocijdbc10.so
    -r-xr-xr-x 1 root root  1057777 2006-11-15 20:38 libsqlplus.so
    -r-xr-xr-x 1 root root  1434235 2006-11-15 20:38 libsqlplusic.so
    lrwxrwxrwx 1 root root       16 2008-01-31 23:05 libsqora.so.1 -> libsqora.so.10.1
    -rwxrwxr-x 1 root root   772395 2006-11-15 20:38 libsqora.so.10.1
    -r--r--r-- 1 root root     3457 2006-11-15 20:38 odbc_update_ini.sh
    -r--r--r-- 1 root root  1545954 2006-11-15 20:37 ojdbc14.jar
    drwxrwxr-x 4 root root     4096 2006-11-15 20:38 sdk
    -r-xr-xr-x 1 root root     8867 2006-11-15 20:38 sqlplusMy odbc.ini:
    [SPIDER]
    Description     = BD database test
    Driver          = oracle-driver
    Server          = spider.di.uminho.pt
    Database        = TRABS
    Port            = 1521and my odbcinst.ini:
    [oracle-driver]
    Description     = Oracle ODBC driver for Oracle 11g
    Driver          = /opt/oracle/instantclient/libsqora.so.1
    FileUsage = 1My TNSNAMES.ORA:
    SPIDER =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS =
            (PROTOCOL = TCP)
            (HOST = spider.di.uminho.pt)
            (PORT = 1521)
        (CONNECT_DATA =
          (SERVICE_NAME = TRABS)
      )My env:
    TWO_TASK=TRABS
    LD_LIBRARY_PATH=/opt/oracle/instantclient
    TNS_ADMIN=/opt/oracle/instantclient
    PATH=/opt/oracle/instantclient:/bin:/usr/bin:/sbin:/usr/sbin:/usr/X11R6/bin:/opt/bin:/usr/share/eclipse:/opt/java/bin:/opt/java/jre/bin:/opt/mozilla/bin
    ORACLE_HOME=/opt/oracle/instantclientI've wasted many hours on this, but I think I'm about to give up to this last error.
    This page http://ora-12154.ora-code.com/ points to problems accessing/reading the TNSNAMES.ORA but I can't see what's wrong with my configuration.
    Any help would be really appreciated.:)
    EDIT: Maybe this wasn't the right forum for this post, so I've created a new Thread on Linux category:
    PHP: ODBC + Oracle Instant Client
    Message was edited by:
    VuDu

  • No SQL Data sources in Essbase 11 EAS on Linux  -- ODBC help

    Hi all,
    Oracle Enterprise Linux 64-bit, Oracle 10.2.0.4 64-bit, Oracle Application Server 10.1.3.1 32-bit, Hyperion 11.1.1.3 32-bit
    While in the Data Prep Editor, I'm trying to create a rules file. however, when I go to File > Open SQL and enter my server/application info, an error is raised: There are no data sources defined. Please create one to continue.
    The contents of my odbc.ini are below. When I run the demoodbc executable (after a . hyperion/products/Essbase/eis/server/is.sh) and connect to the db using my username/password, the connection succeeds and the query runs successfully. But for some reason eas isn't able to use that same odbc connection.
    I have no idea where else to look as far as fixing this issue. None of the data sources that were originally in odbc.ini (the various wire connections, etc) appeared in the open SQL window either, so...?
    Where do I start looking on this?
    Thanks!
    [ODBC Data Sources]
    kcdbnk=KCDBNK on ORCL102
    [kcdbnk]
    QEWSD=40161
    Driver=/app/oracle/product/hyperion/common/ODBC/Merant/5.2/lib/ARora22.so
    Description=KCDBNK on ORCL102
    AlternateServers=
    ApplicationUsingThreads=1
    ArraySize=60000
    CachedCursorLimit=32
    CachedDescLimit=0
    CatalogIncludesSynonyms=1
    CatalogOptions=0
    ConnectionRetryCount=0
    ConnectionRetryDelay=3
    DefaultLongDataBuffLen=1024
    DescribeAtPrepare=0
    EnableDescribeParam=0
    EnableNcharSupport=0
    EnableScrollableCursors=1
    EnableStaticCursorsForLongData=0
    EnableTimestampWithTimeZone=0
    HostName=linux
    LoadBalancing=0
    LocalTimeZoneOffset=
    LockTimeOut=-1
    LogonID=USERNAME
    Password=PASSWORD
    PortNumber=1521
    ProcedureRetResults=0
    ReportCodePageConversionErrors=0
    ReportRecycleBin=0
    SID=ORCL102
    TimestampeEscapeMapping=0
    UseCurrentSchema=1
    WireProtocolMode=1
    Edited by: JustJames on Dec 16, 2009 8:36 PM

    Some posts that may be of use to you
    Re: ODBC.INI - Essbase to Oracle database connection
    Re: How to configure DSN in Linux for use in Essbase?
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Oracle BI Odbc connection error : Mysql

    Hi,
    I use Oracle BI 11g on linux 64, but can not connect Mysql by ODBC when I create an analysis and look at the analysis result.
    I am getting the following error:
    Error
    View Display Error
    Odbc driver returned an error (SQLExecDirectW).
    Error Details
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    *State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 12010] Communication error connecting to remote end point: address = <IP>; port = 9703. (HY000)*
    Odbc Trace:
    ppid=20539:pid= 5051:433e8940   ENTER SQLSetConnectOption
    HDBC                0x10c19e80
    UWORD                      108
    UDWORD                     2
    ppid=20539:pid= 5051:433e8940   EXIT  SQLSetConnectOption  with return code 0 (SQL_SUCCESS)
    HDBC                0x10c19e80
    UWORD                      108
    UDWORD                     2
    ppid=20539:pid= 5051:433e8940   ENTER SQLDriverConnectW
    HDBC                0x10c19e80
    HWND                0x00000000
    WCHAR 0xb1e29098 [4294967293] "******"*
    SWORD                       -3
    WCHAR 0xb1e29098*
    SWORD                        6
    SWORD 0x433dcb3e*
    UWORD                        0 <SQL_DRIVER_NOPROMPT>
    I can connect Mysql via isql on linux.
    Odbc.ini config:
    *[ODBC Data Sources]*
    mysqlDb = libmyodbc5.so
    *[mysqlDb]*
    Driver = /home/mysql_connector/lib/libmyodbc5.so
    Description = MySql
    Server =  <IP>
    Port = 3306
    User = <user>
    Password = <password>
    Database = <database>
    user.sh config:
    LD_LIBRARY_PATH_64=$MYSQL_DRIVER_HOME/lib:$LD_LIBRARY_PATH_64
    export LD_LIBRARY_PATH_64
    Could you please help me for this issue?
    Thanks a lot.
    Edited by: 930841 on 2012-4-28 上午1:32
    Edited by: 930841 on 2012-4-28 上午1:34

    Hi,
    1.) Make sure firewall open for that server.
    2) Try to enable TCP/IP via MYSQL configuration manager.
    3) then try to connect it.
    Thanks
    Deva

  • ORA-12504 error when connecting to Oracle 11G DB using OCI and instantclient-basic-nt-11.2.0.3.0.zip

    Dear Friends,
    I am using OCI and instant_client (11.2.0.3.0)  in my C++ program (on Windows 7) to connect remotely to 11G database.
    While doing a connection using server name as well as servername:port/service_name as connection strings, I am getting error of ORA-12504 TNS:listener was not given the SERVICE_NAME in CONNECT_DATA.
    According to instant client FAQ & white paper at http://www.oracle.com/technetwork/database/features/instant-client/index.html, no tnsnames.ora is required for instant client. Then why could I be getting this error?
    I ensured that only the instant client directory is in Path environment variable. There was a ODBC driver installed on this same host. Could that be modifying the behavior of instant client?
    Kindly guide.
    Many thanks in advance for your help and time.
    Best Regards,
    - ganesh

    >>what is the exact connect string you are using?
    For connection, I am using the plain hostname on which the DB server is running.
    >>are you calling OCIServerAttach before OCISessionBegin?
    I am not using OCISessionBegin. For connecting to DB server, I am using the following sequence of OCI calls (in this same order):
    1) g_OCIEnvNlsCreate
    2) g_OCIHandleAlloc //-- error handle: OCI_HTYPE_ERROR
    3) g_OCIHandleAlloc // --- sevice context: OCI_HTYPE_SVCCTX
    4) Setting driver name and application name for the session:
        OCISession* usersession = 0;
        ret = g_OCIAttrGet(m_pSvcCtx, OCI_HTYPE_SVCCTX, &usersession, NULL,
                                 OCI_ATTR_SESSION, m_pErrHdl);
        if (ret == OCI_SUCCESS)
            ret = g_OCIAttrSet(usersession, OCI_HTYPE_SESSION, (void*)"OCI_DRV", 2,OCI_ATTR_DRIVER_NAME, m_pErrHdl);
            ret = g_OCIAttrSet(usersession, OCI_HTYPE_SESSION, (void*)"ClientApplication", <ub4>(strlen("DataReconScanning")), OCI_ATTR_CLIENT_IDENTIFIER, m_pErrHdl);
    5) g_OCILogon() using the user, password and host name, as below:
    g_OCILogon(m_pDbCon, m_pErrHdl, &m_pSvcCtx,
                                   (text*)user.c_str(), static_cast<ub4>(user.length()),
                                   (text*)pass.c_str(), static_cast<ub4>(pass.length()),
                                   (text*)host.c_str(), static_cast<ub4>(host.length()));
    Thanks.

Maybe you are looking for