No rows returns through Oracle, but lots through MS SQL with same SQL.

Help. I am running the following statement on the Oracle 9i Database. The db link @scala references a MS SQL database running on a Windows 2003 machine connecting using the hsodbc.exe with HS.
SELECT
'Scala' "System"
,"A"."Emission Period" "EP"
,"A"."Client Contact Num" "Contract"
,sum("A"."Amount") "Scala_VIC"
FROM
"_GL030106_CC"@scala "CC"
INNER JOIN ("_GL030106_VT"@scala "VT"
INNER JOIN "_GL060106"@scala "A"
ON "VT"."Acc Dim" = "A"."Product")
ON "CC"."Acc Dim" = "A"."Client Contact Num"
where
     not "A"."Account" in (N'80000000',N'70500000',N'46110001')
and "A"."Client Contact Num" <> N'100000'
and "A"."Emission Period" <> ''
and "A"."Product" in (N'080',N'088')
and "A"."Emission Period" >= N'0444'
GROUP BY
"A"."Emission Period", "A"."Client Contact Num"
HAVING
sum("A"."Amount") <> 0
ORDER BY
"A"."Emission Period"
,"A"."Client Contact Num"
This runs and returns 0 rows. I can select data from the tables and get lots of data back, so the connection is working fine. If I run the following command on MS SQL I get 115 rows.
SELECT
'Scala' "System"
,"A."Emission Period" "EP"
,"A"."Client Contact Num" "Contract"
,sum("A"."Amount") "Scala_VIC"
FROM
"iScalaDB"."dbo"."_GL030106_CC" "CC"
     INNER JOIN ("iScalaDB"."dbo"."_GL030106_VT" "VT"
     INNER JOIN "iScalaDB"."dbo"."_GL060106" "_GL060103"
          ON "VT"."Acc Dim"="A"."Product")
     ON "CC"."Acc Dim"="A"."Client Contact Num"
WHERE
not "A"."Account" in (N'80000000',N'70500000',N'46110001') /* Take out Stats, Income and Old accounts */
and "A"."Client Contact Num" <> N'100000' /*Ignore NASS Accounts */
and "A"."Emission Period" <> '' /*Ignore blank EPs */
and "A"."Product" in (N'080',N'088') /* Select Scala CCC & CCP Voucher products */
and "A"."Emission Period" >= N'0444'
GROUP BY
"A"."Emission Period"
,"A"."Client Contact Num"
HAVING
sum("A"."Amount") <> 0
ORDER BY
"A"."Emission Period"
,"A"."Client Contact Num"
Is there anything in the SQL that is wrong or is it the HS connectivity that is causing the problem?

I have been trawling around this forum for similar issues and may have posted the original isue in the wrong post.
I have deducted that there is not a solution for this, using MSSQL2005 64bit you cannot get the msdaora to work( cos its 32 bit)
There is an issue with oracle oledb provider (OraOLEDB.Oracle) and ref cursors come on ORACLE get it bleeding sorted
If anyone else out there has been thwarted by the same problem then all I can suggest is that they utilise a production 32bit SQL2005 box and use it as a proxy to oracle with the msdaora if they can.

Similar Messages

  • Need to know how to limit the number of rows returned on Oracle

    MS SQL Server has a command called 'set row count'.
    We are trying to find similar one on Oracle.
    What we are trying to do is that instead of using rownum in the query statement, we would like to find way to limit the number of rows returned. I understand that we can use JDBC resultSet object, but that's not what we want.
    I know Oracle has one called arraysize, but this would not limit the number of rows returned either.
    Pease help.
    Thanks

    I understand that we can use JDBC resultSet object, but that's not what we want.I'm not sure which feature of ResultSet you use and which not.
    But if this question has anything to do with JDBC (that's the forum where you put it), I'd recommend to use Statement.setMaxRows(). This will limit the count of rows which your statement will fetch into it's ResultSet.

  • Sound through speakers but not through headphones

    hello i have an hp envy 15-k002ne laptop wtih beats audio. i recently reinstalled windows 8.1 on the machine and was able to get all my drivers from the hp support website and unortunately the realtek high definition audio driver for sound on my machine made it in such a way that sound only comes from my speakers but not through my headphones. i tried using different headsets but it recognises some of them as microphones only because of that feature. someone please help me for i have been restless for days. thanks in advance

    Hi @aflokko ,
    Welcome to the HP Forums!
    I would like to take a moment and thank you for using the forum, it is a great place to find answers. For you to have the best experience in the HP forum, I would like to direct your attention to the HP Forums Guide First Time Here? Learn How to Post and More.
    I understand that you recently reinstalled Windows 8.1 and were able to get all the drivers from the HP support website.
    You have audio through your speakers but not your headsets.
    Have you ran The HP Support Assistant  to aid with HP updates and resolving issues?
    Have you tried Using Automated Troubleshooting (Windows 8) to aid with this difficulty?
    Here is a link to Troubleshooting Audio Problems with External Speakers, Headphones, and HDMI Sound Devices that should help.
    If you are still having an issue, I suggest contacting HP support for further assistance.
    Please call our technical support at 800-474-6836. If you live outside the US/Canada Region, please click the link below to get the support number for your region Technical Support Sitemap .
    Sparkles1
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the bottom right to say “Thanks” for helping!

  • SQL query can be executed through TOAD but not through Discoverer

    Hallo, everybody:
    Got another problem. A SQL query can be executed through TOAD, but when I want to execute it by a worksheet of Discoverer Plus, it always shows there is no data.
    PS: I copied this query from Discoverer Plus to TOAD, which means, this query is generated through the Discoverer. Does anybody know about how could it be?
    Thank you.
    Geng

    Hi,
    If you are able to get data in TOAD with the same user credential as that of Discoverer Plus then it will implies an issue with Discoverer.
    Else it is privilege issue , your TOAD user has select privilege to the base objects (tables/views etc) where as your Disoverer used does not.
    Compare the privileges granted to these 2 users and you can narrow done to the issue .
    Thanks,
    Sutirtha

  • ACL denied using Pkb but works using anonymous block with same user

    I have a recent 11g installation with a developer that is getting a access denied message when using a package but is able to run the same code manually in sqlplus and it works.
    eg. I have granted access to connect and resolve to the user BLAH.
    from sqlplus, BLAH can do
    select trim(substr(utl_inaddr.get_host_name,1,30)) from dual;
    TRIM(SUBSTR(UTL_INADDR.GET_HOST_NAME,1,30))
    serverhostname
    and get the hostname successfully, but this same line in a pkb fails when called like so
    exec func_name.something()
    BEGIN func_name.something(); END;
    ERROR at line 1:
    ORA-24247: network access denied by access control list (ACL)
    ORA-06512: at "SYS.UTL_INADDR", line 4
    ORA-06512: at "SYS.UTL_INADDR", line 35
    ORA-06512: at line 1
    ORA-06512: at "BLAH.FUNC_NAME", line 83
    ORA-06512: at line 1
    but if you were to do this same bit of code in sqlplus as follows:
    set serveroutput on
    declare
    mhost varchar(30);
    begin
    select trim(substr(utl_inaddr.get_host_name,1,30)) into mhost
    from dual;
    dbms_output.put_line(mhost);
    end;
    it works.
    I do not understand this at all. This is the same user account that owns the pkb and is running it in sqlplus. The user has been granted the connect and resolve priv through being granted a role that has this permission.
    Can anyone help me out here?

    Thanks, the oracle logic behind this doesn't make sense to me - if the user can do this action, then surely the user should be able to run the package...
    Anyway, I will try to grant directly to the user that needs the privs, but then how do I grant this privilege to multiple users, it's some awkward bit of pl/sql just to grant it to one user.
    Here is what I did:
    dbms_network_acl_admin.create_acl(acl => 'filename.xml',
    description => 'Network permissions for BLAH_USER to connect/resolve any host',
    principal => 'BLAH_USER', is_grant => TRUE, privilege => 'connect');
    dbms_network_acl_admin.add_privilege(acl => 'filename.xml', principal => 'BLAH_USER', is_grant => TRUE, privilege => 'resolve');
    dbms_network_acl_admin.assign_acl(acl => 'filename.xml', host => '*');
    grant execute on dbms_network_acl_admin to BLAH_USER;
    but this only works for 1 user and I cannot recreate this as the acl now already exists. Would I have to change filename.xml every time and do all these steps for every user?
    This is why I granted to a role and then granted that role to the BLAH_USER originally.
    Any ideas on how to make this scalable to many users or to add users to this ACL?

  • Discoverer report accessible through Desktop but not through Viewer

    Does anyone have a hint for me about this problem: we can use a Discoverer report via Discoverer Desktop, but when we try to access the same report through Discoverer Viewer, we get an error message: the page cannot be found.

    It sounds like discoverer viewer may not be correctly configured or the permissions on the database account may not be correct. Can you run any reports through Discoverer viewer as any other user? What version of Discoverer are you running?
    Matt Topper
    TUSC, The Oracle Experts
    [email protected]

  • Calculation of output tax A1 in only through Sd but nto through F-22

    Hi all,
    While making posting through SD transaction VA01 by giving output tax code A1,tax is getting calculated but the same tax code A1 when used in TCode F-22 (manual FI posting) tax is not getting calculated even if we check the calculate tax and give the tax code A1.
    Can anybody please explain why it is not getting calculated through F-22.
    Thanks in advance, points are reward for the relevant answer.
    Regards
    SAINT

    VA01 (Create Sales Order) does not create any FI postings.  Tax may be getting calculated basing on the rate in the tax code definition and must be appearing on the sales order conditions.  But when you enter a customer invoice (F-22), it generates an FI posting and needs a GL account behind the tax code.  See if there is a GL account attached to your tax code (FTXP, enter country and tax code and in the next screen, click on 'Tax accounts').

  • Beat audio low volume through speakers but okay through headphones

    My beats audio works fine through my headphones but the volume through the speakers is not very loud.  I am teaching a class where I need to have the volume loud enough for people to hear it across a small room, not huddled around my laptop. I have a HP pavilion dv6, windows 7

    Hi trirainbow,
    For what is described in your post, it sounds as though it is probably functioning as designed. I have tested a similar notebook in a small room, and need to use external powered speakers for it to be audible. Double check all the volumes to make sure that they are maxed, and what program are you using for your presentation?
    Thank you.
    I worked on behalf of HP

  • Heard through speakers but not through applicati

    Greetings,
    Right now with my Audigy 2 card I can plug in my scanner to the line in and hear it through the speakers but I can not use the audio with applications. Another example, connecting line in to my Ham radio I can hear the traffic through the speakers but can not process the audio through a ham radio application.
    Any ideas?
    Thanks.

    I recently got the same problem. Its not that bad but confused me at first. If that is the worst problem you get with your computer consider yourself lucky. You could bring it by an apple store genius and see what they say but its most likely a switch problem like tteuer said. If my memory serves me right that switch is connected to the logic board, if you have it still under warranty, great, if not, you might as well get another laptop if it really bothers you.
    Tip: I have made it work by either slowly removing the headphone from the jack or rotating it. If that did not work the first time I repeated it.

  • Can't logon to directory through sync_user, but can through Tx LDAP - Find

    Hi,
    I'm trying to import users into SAP from MS Active Directory using RSLDAPSYNC_USER. When running it I get the error "Could not logon to directory" with the diagnosis "The combination of user name (DN) and password transferred to the directory was not accepted by the directory."
    My settings in RSLDAPSYNC_USER is:
    Connection: the only server and connector I have created
    User: no information entered here
    Both Dir and DB: Ignore
    Only Dir: Create in DB
    Only DB: Ignore
    Time meas: no information entered here
    I have not extended the schema since I don't want to change anything in AD, only copy the users from AD into SAP. I have set Import Mapping, and Import Synch on all my fields in LDAPMAP, and one field with the additional indicators Filter, Export mapping, RDN Mapping (since theses apparently are required, even if you don't want to write anything in the AD?).
    I can however logon to the server using Tx LDAP, and I manage to get search results using Find in Tx LDAP. I have only created one LDAP server, one System User and one LDAP Connector in Tx LDAP.
    I have tried to use both Simple Memory and Secure Storage as the Credential Storage for the System User. I have entered the password for the user in credentials. When I for testing purporses choose Simple Memeory and also remove the credentials for the System User, and try to run RSLDAPSYNC_USER again, I get the following messaged:
    <green> Conenction created to server AD_X
    <red> Operation Failed
    <red> LDAP_SEARCH failed
    <red> The system could not create the directory object ppol
    <green> Connection to server AD_X terminated
    Can I interpret this error message in some way? Logically I think my first try should work since I'm using the same server/user/connector when running RSLDAPSYNC_USER and it fails, as I do when I run a Find through Tx LDAP and it works.
    Is there something I'm missing?
    Thanks, Oscar

    The order of the DN of the user was wrong... it worked when I switched places of the DCs...

  • Logging into APEX through Oracle XML DB HTTP Server and Embedded PL/SQL

    Hi,
    I have just finished installing Apex 3.0 on RHEL 4. I am not using HTTP Server, but Embedded PL/SQL. When I go to the page administrator page http://host:8080/pls/apex/apex_admin a prompt pops up and when I give the username as "admin" and the password then it doesn't log me in. I ran the apxconf.sql script and reset the admin password and it is still not letting me log in.
    Please advise

    Unfortunately, using the pl/sql gateway is not yet supported. The documentation should be more clear about that.
    You'll need to use the HTTP server.
    See FAQ #8:
    http://www.oracle.com/technology/products/database/application_express/html/3.0_fsps.html#08

  • Can't play sounds through speakers but only through earphones

    I got my new iPad2 yesterday and for a while I was able to play sounds through the speakers. Today speaker did not work anymore and I suspect it is related to the upgrade to the new iOS 4.3.3 that I did just before putting it to sleep. Can anybody help?

    Have you got notifications muted ? Only notifications (including games) get muted, so the iPod and Videos apps, and headphones, still get sound. Depending on what you've got Settings > General > Use Side Switch To set to (mute or rotation lock), then you can mute notifications by the switch on the right hand side of the iPad, or via the taskbar : double-click the home button; slide from the left; and its the icon; press home again to exit the taskbar. The function that isn't on the side switch is set via the taskbar instead : http://support.apple.com/kb/HT4085

  • Anytime I hit send, the message isn't going through? But I can still send the same msg from my iPad!

    Hello everyone! I have been trying to reply to an email from my MacBook Pro without a success. Anytime I press "send", nothing happens. But I could still send emails from iPad! Does anyone know why? Thanks.

    Email may not be the best way to move pictures.
    There are lots of ways of moving files.
    A simple and popular way to copy files and share files among your devices.
    https://www.dropbox.com/
    "Box lets you store all of your content online, so you can access, manage and share it from anywhere. Integrate Box with Google Apps and Salesforce and access Box on mobile devices" Rated the most secure cloud storage by SkyHigh Networks.
    https://www.box.com/
    Using iTunes to transfer files:
    http://support.apple.com/kb/HT4094?viewlocale=en_US&locale=en_US
    Files Connect -- "Cloud Storage services like Dropbox, MobileMe iDisk, Google Docs/Picasa, Facebook photos, FTP, SFTP, WebDAV ... AFS (Apple File Shares) SMB (Windows shares)  protocols"
    https://itunes.apple.com/us/app/files-connect/id404324302?mt=8
    Windows File server
    http://itunes.apple.com/us/app/filebrowser-access-files-on/id364738545?mt=8
    "The kiteworks mobile file sharing solution provides secure creation, viewing, and sharing of enterprise content on smartphones and tablets while providing IT and security teams the administrative controls to manage user privileges and access rights necessary to ensure enterprise security and compliance."  " Includes choice of private cloud on-premise."
    http://www.accellion.com/solutions/mobile-enablement/mobile-file-sharing
    "Dukto is a simple application that allows you to share files between devices connected to the same (wireless) LAN network."
    http://www.tidal.it/?page_id=309&lang=en
    http://www.msec.it/blog/?page_id=11

  • IPhone won't charge through dock but will through same cable

    Hello All
    I have been facing some weird issues since last couple of weeks. I will try to be as clear and descriptive of my problems as I can.
    What I have:
    I have an iPhone 4S, two iPhone docks I bought with the 4S.
    Current setup:
    One dock is connected to wall mount through iPad charger.
    Second one is connected to my thunderbolt display.
    What does happen:
    I am able to charge my iPhone when I connect with either of the cables directly (removing the docks).
    What doesn't happen:
    I am not able to charge my iPhone when I connect with either of the cables with either of the docks.
    Any thing shown by device:
    It doesn't give any error messages, just the charging symbol changes to "Full Charge" symbol and I think (I think) it charges the phone really really slow.
    What I tried doing:
    Googling the problem (and failed)
    Restarting the iPhone
    What I am looking for:
    Any one got any clue as to what could be happening? or any steps that I should follow to perhaps find a solution to this?
    Thanks
    Sajat Jain

    Reinstall iTunes. If that doesn't work, remove and reinstall AMDS:
    http://support.apple.com/kb/HT1747

  • Messages in Oracle SOA-ESB queues duplicate - enqueing with same ENQ_TXN_ID

    Hi,
    We have a flow which accepts payloads from a third party application and this payload is enqueued into an advanced queue. Another process dequeues these payloads and does further processing. During the process of enqueuing, we observe that one payload gets enqueued more than once. I have observed that these messages get the same ENQ_TXN_ID. Please note that this issue happens sporadically.
    Please advice if there is any patch that should be applied to fix the multiple enqueue issue.
    This issue is seen in the production instance.
    We are able to reproduce this error in QA also. But so far, no solution is working.
    Below is the script used to create our queue.
    BEGIN
    dbms_aqadm.stop_queue(queue_name=>'SAVE_REQUISITION_Q');
    dbms_aqadm.drop_queue(queue_name=>'SAVE_REQUISITION_Q');
    dbms_aqadm.drop_queue_table(queue_table=>'SAVE_REQUISITION_Q_TAB');
    dbms_aqadm.create_queue_table(queue_table=>'SAVE_REQUISITION_Q_TAB',
    queue_payload_type=>'sys.aq$_jms_text_message',multiple_consumers=>true);
    dbms_aqadm.create_queue(queue_name=>'SAVE_REQUISITION_Q', queue_table=>'SAVE_REQUISITION_Q_TAB');
    dbms_aqadm.start_queue(queue_name=>'SAVE_REQUISITION_Q');
    END;
    Please help.
    Thanks,
    Ved
    Edited by: user582595 on Mar 1, 2012 7:56 AM

    Anyone with JMS queue knowledge please help me fix this problem. This is happening in production and Oracle support is not able to suggest a resolution yet. They are working with me, but I would need to resolve this issue ASAP.
    Thanks much,
    ved

Maybe you are looking for

  • Fixing parameter based on User in Infoview

    Hi I want to know whether there is an option in Infoview to fix the parameter values based on the user who has logged in or any othe similar actions. What I want to do is I have one report which gives data for different departments. I have included o

  • FP memory leak

    I'm using a lot of cFP hardware in a LV 2011 project. The program has started to crash, indicating that all memory is taken. After using the Desktop Execution Trace Toolkit, I see that it is the FP Read (Float -IO).vi that eats 4 kbytes? of data each

  • Everything is very slow and I can almost always hear processing in the background

    I will copy my Etrecheck report below: Thanks! EtreCheck version: 2.1.7 (114) Report generated January 30, 2015 at 8:15:42 AM EST Download EtreCheck from http://etresoft.com/etrecheck Click the [Support] links for help with non-Apple products. Click

  • Automatic release of notification

    Hai PM gurus , Is it possible to release PM notification automaically when created , as create and release person are same . Thanks in advance gmr

  • Firefox 19.0 Crashing in Windows 8

    I recently got a new computer with Windows 8. One of the first things I did was download Firefox. However, Firefox has been crashing frequently. Sometimes it will crash several times in a row, either upon starting the browser or after a very short am