Trouble in extracting Via ODBC to Oracle or Access - Numbers Change

I am running a report that I only want the group records printed. One of the group fields  shows a sum of a function from the detail records.
The following function sj_rec is on the detail record
WhilePrintingRecords;
Numbervar clm_sj_amt;
if {SJE_RECORD.SJER_TYPE} in ["S","J"] then
    clm_sj_amt := clm_sj_amt + {SJE_RECORD.SJER_AMOUNT};
if {SJE_RECORD.SJER_TYPE} = "R" then
    clm_sj_amt := clm_sj_amt - {SJE_RECORD.SJER_AMOUNT};
clm_sj_amt;
Then on the Group Record we have disp_sj function
WhilePrintingRecords;
numberVar   clm_sj_amt;
clm_sj_amt;
On the crystal report  every thing looks fine.
When I extract the  Information Via ODBC to Oracle or Access the numbers change. If I extract to Excel it is fine.
Can you please explain why I canu2019t get on oracle the exact info displayd in crystal ???

Please re-post if this is still an issue to the Data Connectivity - Crystal Reports Forum
Likely differences in how ODBC links and indexes the tables.

Similar Messages

  • HS, ODBC and Oracle XE

    Hi Guys,
    One simple question,
    can one use Heterogenious connectivity via ODBC with Oracle Database Express edition
    10x
    Boris

    Yes I would like this information as well.
    I think only being able to start on listener is part of it as I can't seem to start multiple hsodbc instances.

  • Can SQL*Plus connect via ODBC to NON-Oracle data source?????

    I am struggling to understand something. I downloaded Oracle instance client, SQL*Plus and ODBC components with the hopes of being able to connect via SQL*Plus to a non-Oracle/ODBC compliant database.
    Is this possible? Or is SQL*Plus ability to connect via ODBC only to an Oracle data source??
    Thanks...

    sqlplus only connects to oracle. you can use the odbc driver from instant client to allow other applications to access oracle via odbc (e.g. excel). if you need to connect to non-oracle odbc database (ms-access, foxpro, etc.) you need odbc driver for those sources.
    you can use sqldeveloper to connect to oracle and non-oracle databases. check otn product info for sqldeveloper for more details.

  • Oracle Cloud connections by other databases via ODBC/JDBC/XML

    If we move to the Oracle Cloud, will these tables be available from other SQL clients via ODBC/JDBC/XML? It obviously works fine with an internally hosted Oracle solution, but I didn't know if moving the Oracle Cloud would remove these features. Thanks.

    You need a service to auto start/stop instances. Pls See
    Re: Oracle instance is going to idle when i restart/start the machineRgds,
    Ahmer

  • HY000 error retrieving CLOB-data from oracle database via ODBC

    Hello,
    I get error HY000 [Oracle][ODBC][ORA] ORA-00932: inconsistent datatype when I want to show a CLOB column in my crystal report. The type of the field in the report is memo - in the database it is CLOB.
    How to retrieve CLOB-data from an Oracle 11GR2 database via ODBC in Crystal Report Version 12.3.0.601?
    Thanks in advance for any help.
    kind regards
    Monika Anna

    Hello,
    Who's ODBC driver are you using?
    Try our DataDirect drivers - https://smpdl.sap-ag.de/~sapidp/012002523100008666562008E/cr_datadirect53_win32.zip
    Thank you
    Don

  • Connection to MySQL via ODBC not working

    Hello all together,
    I've got a problem with the ODBC connection to MySQL. The connection via ODBC is established and things like tnsping are working.
    When I select some data within the SQL*Plus environment, I get no real result. For example "select table_name from all_tables@mysql;" returns nothing.
    My entry in listener.ora:
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME=odbc_mysql)
    (ORACLE_HOME=D:\oracle\product\11.0.1\db_1)
    (PROGRAM=dg4odbc)
    My entry in tnsnames.ora:
    MYSQL =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    (CONNECT_DATA = (SID=odbc_mysql))
    (HS=OK)
    The initodbc_mysql.ora in ORACLE_HOME/hs/admin/:
    HS_FDS_CONNECT_INFO = odbc_mysql
    HS_AUTOREGISTER = TRUE
    HS_DB_NAME = hsodbc
    I tried some modifications but I still get no data from mysql database. When I try "select * from customer@mysql;" I get the correct number of records, the correct column names, but the content is always "¬¬¬¬". The odbc driver works, because with MS Access I can fetch the data. I'm using Oracle 11g Release 1 EE and MySQL ODBC 5.1.5.
    What could be the reason for this?
    Greetings,
    Joerg

    created in my UTF-8 Mysql DB your table and inserted a record; the select shows:
    SQL> select * from "movieclass"@mysql;
    idClass
    ClassName
    123
    H e l l o
    As you can see the content is there, the "space" between the letters is related to unicode. Each character is interpreted by 2 bytes and SQL*Plus wrongly displays both. Using iSQLPLus or SQLDeveloper does not show the "space" between the letters.
    Here the data type mapping:
    SQL> desc "movieclass"@mysql;
    Name Null? Type
    idClass NUMBER(3)
    ClassName NOT NULL NVARCHAR2(50)
    What's the exact version of DG4ODBC you're using? 11.1.0.7?
    According to the listener file you're using DG4ODBC on Windows. There was a high/low byte issue in DG4ODBC for Windows. This issue is fixed in 11.1.0.7 and a certain patch. So I recommend you to get first the 11.1.0.7 patchset (if you don't already have it installed):
    6890831 Oracle Database Family: Patchset
    11.1.0.7.0 PATCH SET FOR ORACLE DATABASE SERVER 11.1.0.7.0
    and then please apply also the latest patch:
    8689191 Oracle Database Family: Patch
    ORACLE 11G 11.1.0.7 PATCH 16 BUG FOR WINDOWS 32 BIT 11.1.0.7.0
    There was a high/low byte issue
    Edited by: kgronau on Aug 11, 2009 10:28 AM

  • Error when connecting to SQL*PLUS via ODBC to Excel

    OS: Windows 2000 Professional
    Oracle DB: 9i release 2
    SQL*Plus: Release 9.2.0.1.0
    MS Excel: 2000
    ===================
    When I try to connect to SQL*PLUS via ODBC to Excel with "connect scott/tiger@odbc:libro" I get the following error:
    ORA-03121: no interface driver connected - function not performed

    SQL Server objects are commonly case sensitive, so please surround the column and table names by double quotes:
    SELECT "Type_PK_ID" FROM "dbo"."boundaries"@sqlserver
    SIDE NOTE: Oracle is by default not case sensitive and all object names are stored in upper case. To get case sensitive objects they need to be surrounded by double quotes. In HSODBC case sensitive table names were commonly found even when not surrounded by double quotes as the gateway used internal SQL Server methods to find the correct table nameing - this method does not work for column names. So to be able to query a case sensitive column it needs to be surrounded by double quotes and the table name must be written as stored in the source database.

  • MARS connection to SQL Server in JAVA via ODBC

    Hello.
    I've got this problem.
    I'm managing an application JAVA/JSP, based on a 3-tier architecture.
    The connection to the database is performed via JDBC/ODBC, in order to work with different DRMS.
    Everything is ok when connecting to Oracle or MySql via JDBC, but when we connect to SQL Server via ODBC we get this error: "ODBC SQL SERVER - Connection is busy with result for another stmt".
    That's why the application executes more than one SQL statement, opening a ResultSet object, under the same connection.
    This is the way the application is performing, and we can't change it.
    I've read that on SQL Server 2005 is available a new connection parameter called MARS (Multiple Active Result Sets), that should resolve this problem.
    But I was not able to find any way to invoke this type of connection in JAVA for an ODBC connection! (I've found only tips for .NET...).
    Many thanks if somebody can suggest me how to resolve this problem.
    It's urgent!

    Use JDBC. Get a SQL server JDBC driver. Unfortunately I don't know of any free ones, but one I have used in the past is from http://www.jnetdirect.com/
    Maybe you can search in the JDBC forum for the answer - Its a common enough question I know.

  • URGENT - Unable to link to VFP 9 tables in Access and Excel 2007 in Windows 7 32-bit via ODBC

    I have 3 VFP 9 databases and am able to connect via ODBC to 2 of the 3 in Access '07.  I can open all 3 the dbf's via FoxPro just fine and 2 months ago I could link to all 3 databases via ODBC with no troubles. I know the problem child (specifically
    Accpac/Sage acctg) is intact. Since I had to reformat my computer, I've been able to relink to everything except this one database. Any suggestions as to why I can't make the link work?
    As this is our previous system that is no longer used, I really need to get this link set up for queries and reports in Access.
    Thanks,
    Kristi
    Thanks!

    This does not appear to be related to sql server, so posting to an access forum would likely be more effective.

  • Oracle 10gR2 64bit  odbc  from oracle to sql server  Win 2008 EE 64bits

    Hi, I am having trouble with a 10gR2 64bits creation of odbc from oracle to sql server, I have follow several instruction with no luck at all. My OS is windows 2008 EE 64bits on the oracle and sql server server.
    This is what I have done
    1. in the $oracle_home/hs/admin directory
    inithsodbc.ora
    # HS init parameters
    HS_FDS_CONNECT_INFO = hsodbc
    HS_FDS_TRACE_LEVEL = off
    2. in the $oracle_home/network/admin
    # listener.ora Network Configuration File: C:\oracle\product\10.2.0\db_1\network\admin\listener.ora
    # Generated by Oracle configuration tools.
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = C:\oracle\product\10.2.0\db_1)
    (PROGRAM = extproc)
    (SID_DESC=
    (SID_NAME=hsodbc)
    (ORACLE_HOME=C:\oracle\product\10.2.0\db_1)
    (PROGRAM=C:\oracle\product\10.2.0\db_1\hs\hsodbc)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = xx.xx.xx.xx)(PORT = 1521))
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    And the tnsname.ora
    # tnsnames.ora Network Configuration File: C:\oracle\product\10.2.0\db_1\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    PRUEBA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = xx.xx.xx.xx)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = prueba)
    hsodbc =
    (DESCRIPTION=
    (ADDRESS=(PROTOCOL=tcp)(HOST=xx.xx.xx.xx)(PORT=1521))
    (CONNECT_DATA=(SID=hsodbc))
    (HS=OK)
    I create the odbc connection an test it , the result is TEST PASSED
    4. The i create a database link on my database
    CREATE PUBLIC DATABASE LINK XYZ
    CONNECT TO "sysdba" IDENTIFIED BY "masterkey"
    USING 'hsodbc';
    5 execute a select
    SQL> select * from dual@XYZ;
    select * from dual@XYZ
    ERROR at line 1:
    ORA-28545: error diagnosed by Net8 when connecting to an agent
    Unable to retrieve text of NETWORK/NCR message 65535
    ORA-02063: preceding 2 lines from XYZ
    6. When I check the listener log i'm getting this error
    25-MAR-2011 11:48:40 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=)(USER=Administrator))(COMMAND=status)(ARGUMENTS=64)(SERVICE=LISTENER)(VERSION=169870592)) * status * 0
    25-MAR-2011 11:48:47 * (CONNECT_DATA=(SID=hsodbc)(CID=(PROGRAM=)(HOST=PRO)(USER=PRO\Administrator))) * (ADDRESS=(PROTOCOL=tcp)(HOST=xx.xx.xx.xx)(PORT=49329)) * establish * hsodbc * 12518
    TNS-12518: TNS:listener could not hand off client connection
    TNS-12560: TNS:protocol adapter error
    TNS-00530: Protocol adapter error
    Edited by: user626125 on Mar 26, 2011 11:39 AM
    Edited by: user626125 on Apr 12, 2011 2:49 PM

    Heterogeneous Connectivity

  • How query data in pl/sql via ODBC from DB2 on AS400

    Hi,
    What's the most easy way to do some selects on tables in an external (non-oracle)database via odbc?
    I only need selects, no dml-statements like inserts en updates...
    Where can I find more information about this subject?
    Filip

    You need to use Oracle Heterogeneous Services. Firstly you have to obtain and configure DB2 ODBC drivers. I got mine from ibm.com (not free) but I am sure there are some third party vendors out there. I don't know much about DB2 so I can't help you with the configuration (I asked a DB2 DBA to help me with that part).
    The rest is just setting up Oracle HS and creating the DB link. The following steps should help but there are much more detailed manuals for Oracle HS on http://tahiti.oracle.com.
    Listener Configuration
    Add the following entry into the SID_LIST part of the listener. The SID_NAME will be used in the heterogeneous services configuration
    (SID_DESC=
    (SID_NAME=db2)
    (ORACLE_HOME=D:\oracle\ora92)
    (PROGRAM=hsodbc)
    Restart the listener.
    Heterogeneous Service Configuration
    Under ORACLE_HOME\HS\admin create the following text file called initDB2.ora (the DB2 part should match the SID_NAME used in the listener configuration).
    Put the following line in the text file (the DQ01 is the name of the DB2 ODBC System DSN):
    HS_FDS_CONNECT_INFO=DQ01
    Client Configuration
    The client side refers to an Oracle database that will use the heterogeneous gateway.
    TNSNames Entry
    Put the following entry in the tnsnames.ora file (the SID part should match the SID_NAME in the listener configuration):
    DB2.telkom.co.za =
    (DESCRIPTION=
    (ADDRESS=(PROTOCOL=tcp)(HOST=cntrra20-esdt00)(PORT=1521))
    (CONNECT_DATA=(SID=db2))
    (HS=OK)
    Database Link
    Create a database link that references the new tnsnames.ora entry:
    create public database link db2
    connect to oratst identified by oracle using 'db2';
    Test the database link.

  • Database Access via ODBC

    Hi,
    Since recent (LMS3.2) Cisco released the Open Database Schema support. In the guidelines I find info/procedures to access the database remotely via ODBC. However only Solaris/Solaris Windows/Windows is described. Is there any info how I can access the Database (LMS installed on Sol10) remotely via a Windows system ?
    Jan

    The instructions for Windows/Windows apply, but you'll need to first get the necessary DLLs to allow for database access. The easiest way to do this would be to install Common Services from the LMS 3.2 DVD on a Windows 2003 or 2008 machine. Then extract the DLLs, and uninstall Common Services.
    It may also be possible to start the installer, have it extract the install bits to the TEMP location, then you can pull the DLLS from there. However, I have not tried this for obtaining database DLLs (only device packages).

  • Error when connecting via ODBC connections

    Alright, so....
    I have a Windows 7, 64 bit OS.  I installed Oracle 10g, I installed Crystal Reports Xi release 2.
    Via ODBC Administrator, I set up my data sources, and they all connect successfully.
    I go into Crystal Reports, create a new report, and attempt to set a new connect and use those same data sources. I get prompted for my user name and password.  I get the error:
    Logon failed.
    Details: IM004:[Microsoft][ODBC Driver Manager] Driver's SQLAllocHandel on SQL_HANDEL_ENV failed
    HELP!  I've changed security settings, I've wiped my machine and started over from scratch, I've even installed Oracle 11g. Please help!  I'm about to pull my hair out. I am sure this is probably something easy or something I've overlooked, but I give up and throw the towel in.

    Go into \windows\syswow64 and use the odbcadm32.exe located in there. It's the 32 bit version of the ODBC Administrator.
    Also, search before posting and this has been answered.
    And you need Service Pack 6 to be supported on Windows 7.
    Thank you
    Don
    Edited by: Don Williams on Aug 27, 2010 2:31 PM

  • Reg : I am getting an error while Using MicroSoft ODBC For Oracle Driver

    I am Using MicroSoft ODBC For Oracle Driver  for JDBC. Why i am using this driver is i could not able to get  the arabic content if i use the other driver  .I Right now i cannot change the NLS Lang because its a production server    also it has around 300 gb of data  and i can not take risk now by changing the NLS lang.. coming to the below error .i could able to access my data up to 4 Hours after that i am getting this error.If i restart my tomcat i can use my application  one more 4 hrs  .Please get back to me if u have any solution.Its very very helpful to me......+*
    [java.sql.SQLException] [ Microsoft ODBC for Oracle ]
    at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6957)
    at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:7114)
    at sun.jdbc.odbc.JdbcOdbc.SQLDriverConnect(JdbcOdbc.java:3073)
    at sun.jdbc.odbc.JdbcOdbcConnection.initialize(JdbcOdbcConnection.java:3
    23)
    at sun.jdbc.odbc.JdbcOdbcDriver.connect(JdbcOdbcDriver.java:174)
    at java.sql.DriverManager.getConnection(DriverManager.java:582)
    at java.sql.DriverManager.getConnection(DriverManager.java:185)
    at com.iton.eoffice.DatabaseBean.connecteOfficeMoEnq(DatabaseBean.java:4
    60)
    at org.apache.jsp.MhewProfilesearchMoEnq_jsp._jspService(MhewProfilesear
    chMoEnq_jsp.java:434)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
    .java:384)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:3
    20)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
    icationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
    ilterChain.java:206)
    at com.iton.eoffice.tree.CharacterEncodingFilter.doFilter(CharacterEncod
    ingFilter.java:63)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
    icationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
    ilterChain.java:206)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
    alve.java:228)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
    alve.java:175)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
    ava:128)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
    ava:104)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
    ve.java:109)
    at org.apache.catalina.ha.tcp.ReplicationValve.invoke(ReplicationValve.j
    ava:347)
    at org.apache.catalina.ha.session.JvmRouteBinderValve.invoke(JvmRouteBin
    derValve.java:209)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
    a:212)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
    :844)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
    ss(Http11Protocol.java:634)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:44
    5)
    at java.lang.Thread.run(Thread.java:619)
    ------------1234-----------
    java.lang.NullPointerException
    at com.iton.eoffice.DatabaseBean.getSQLRows(DatabaseBean.java:764)
    at org.apache.jsp.MhewProfilesearchMoEnq_jsp._jspService(MhewProfilesear
    chMoEnq_jsp.java:435)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
    .java:384)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:3
    20)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
    icationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
    ilterChain.java:206)
    at com.iton.eoffice.tree.CharacterEncodingFilter.doFilter(CharacterEncod
    ingFilter.java:63)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl

    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by sreenivas navuluri:
    Oracle(tm)Client and networking components not found. These components are supplied by Oracle Corporation and part of Oracle Version 7.2 or greater Client software installation. You will be unable to use this driver until these components have been installed . This error occurs while selecting the Microsoft Odbc for Oracle driver from the ODBC in control panel. Pls suggest<HR></BLOCKQUOTE>
    null

  • Microsoft ODBC for Oracle / Microsoft Server 2008 r2

    We are testing the operational system Windows Server 2008 r2 in one of our clients. This system does not accept the installation of the tool Microsoft ODBC for Oracle. We’d like to know how to install this Driver, once Microsoft’s webpage does not mention any help related to this issue (there is instruction only for the installation of MDAC). We’ve consulted discussion forums and all types of ocurrence on the Internet, but we started to think it’s a Bug of the version. Can you inform us what’s the solution for the problem?
    We are looking forward to your answer.

    user5459571 wrote:
    We have new webservers (Microsoft Server 2008 r2 64bit) that will need to connect to a variety of Oracle databases.
    Our DBAs have provided:
    10204_vista_w2k8_x64_production_client
    We have installed it, but, notice that the Microsoft ODBC for Oracle driver is not listed.
    It would be better for us to use the Oracle client, but, we do need to connect to Ticket Machines that are based on a Oracle v 8 database. (So, basically, if we use a 10g client trying to connect to a oracle 8 database, it will display the error: ORA-03134 Connections to this server version are no longer supported.)
    It is not possible for us to upgrade the Oracle 8 database to current, so, we have to use the Microsoft ODBC for Oracle driver.
    So, basically, we have a Oracle 8 database that we can not presently connect. (those machines are feeling abandoned)
    Ideas? ThanksIf you insist on using the MS driver, you'll have to get that from MS. Why would you have expected it to come with an Oracle installation?
    And to get the Oracle driver, you have to do a 'custom' installation and select the Windows components, as it is not installed with a default installation.
    And all that aside from the very serious version compatibility issues.

Maybe you are looking for

  • Unable to edit document template in SharePoint 2013

    We have uploaded a set of templates that users can select from the drop down list in the Document field in the Document Library.  We now need to edit one of these document templates. We follow the procedure and make the edits which changes the templa

  • FW table disappears in IE

    I made a layout in FW. Initially, I placed the Fireworks table directly into the page, with default table alignment. This worked in Explorer, as well as Opera, Firefox and Safari. Then, I centered the table using table alignment. The page appeared no

  • How to retrive data ?

    Hi, I have a table with 900,000 records on that. I have third party tool call TOAD.Databse is on Windows with Oracle8 database. My Question: When i try to see the "data" in the one of the tab in TOAD, it is taking too long time to buffer. Can anybody

  • IPod screen says to plug in to iTunes, but iTunes will not read the device and the iPod cannot be restarted by home and lock buttons. How do I fix this?

    The screen shows the usb cable pointing to the iTunes ico. I've tried resetting the device by using the home and lock buttons, but the same screen shows up. Just redownloaded iTunes, but I can't get it to see the device.

  • OT - Adobe Premiere Elements vs FCE

    Hello, This subject is slightly OT. I have been asked to teach a community education class (read: very basic) on video editing. I, of course, use Macs and FCP (and will continue to promote Apple!). Unfortunately, most of the community will use someth