Pro*C mangling our query

I was wondering if anyone could help me with this problem? (I have raised an SR with Oracle, but thought I'd hedge my bets ;-)
Our Pro*C application has suddenly started screwing up one of our queries. Below is an extract from a 10046 SQL trace.
=====================
PARSING IN CURSOR #1 len=57 dep=0 uid=47 oct=3 lid=47 tim=2383911068 hv=1227232938 ad='19e2c4e0'
select zz_dbvr into :b0:b1  from zz_ where zz_dbky='0000'
END OF STMT
PARSE #1:c=0,e=486,p=0,cr=0,cu=0,mis=1,r=0,dep=0,og=4,tim=2383911063
BINDS #1:
EXEC #1:c=15625,e=2888,p=0,cr=0,cu=0,mis=0,r=0,dep=0,og=4,tim=2383946705
WAIT #1: nam='SQL*Net message to client' ela= 4 p1=1111838976 p2=1 p3=0
FETCH #1:c=0,e=35,p=0,cr=2,cu=0,mis=0,r=1,dep=0,og=4,tim=2383952308
WAIT #1: nam='SQL*Net message from client' ela= 16414 p1=1111838976 p2=1 p3=0
WAIT #1: nam='SQL*Net break/reset to client' ela= 57 p1=1111838976 p2=0 p3=0
WAIT #1: nam='SQL*Net message to client' ela= 3 p1=1111838976 p2=1 p3=0
WAIT #1: nam='SQL*Net message from client' ela= 578 p1=1111838976 p2=1 p3=0
STAT #1 id=1 cnt=1 pid=0 pos=1 obj=9602 op='TABLE ACCESS BY INDEX ROWID OBJ#(9602) (cr=2 r=0 w=0 time=25 us)'
STAT #1 id=2 cnt=1 pid=1 pos=1 obj=9603 op='INDEX UNIQUE SCAN OBJ#(9603) (cr=1 r=0 w=0 time=13 us)'You'll notice it's trying to select into ':b1:b0', which is obviously not correct.
But then, according to the trace file, Oracle goes ahead with the PARSE, EXECUTE and FETCH steps with no problem. The FETCH appears to be correctly fetching the one row. There's even a query plan when the cursor is closed.
But our Pro*C application is reporting an error, SQLCODE = -162. This is consistent with the 'SQL*Net break/reset to client' event.
Has anybody seen this before?
Things that are weird:
1. Error ORA-00162 is "external dbid length string is greater than maximum (string)" and this does not appear relevent.
2. Query has bad syntax but appears to parse, execute and fetch ok.
3. Get 'SQL*Net break/reset to client' but this running on the server, so not expecting network problems.
4. OBJ#(9602) and OBJ#(9603) do not correspond to the OBJECT_IDs of the table and index in the query - I thought they should.
Oracle 9.2.0.1 on Windows 2003 r2 32-bit.
Thanks for any help.

Hi Jonah,
Thanks for your interest, and sorry for my late reply.
1. This was the weirdest problem and I never get to the bottom of it, even with Oracle support's help. The SQLCODE returned changed randomly from day-to-day and was masking the true problem (which was just some simple TNS issue).
2. This was my ignorance. The syntax :b0:b1 means that b0 is the regular bind variable, and b1 is an 'indicator' variable - used to indicate whether the value of b0 is null. I guess this is necessary when your bind variable has no concept of 'null', like C/C++ int and bool.
http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14407/pc_02prc.htm#i2000
3. Don't know too much about why this was in the trace file...
4. This was my mistake - running in the wrong database!

Similar Messages

  • We had a MacBook Pro stolen from our home when we were out of town and I am pretty sure we never activated the LoJack type of function on it not sure if its called lojack but you get what I am saying is there any way we can activate such  hardware/app now

    to
    We had a MacBook Pro stolen from our home when we were out of town and I am pretty sure we never activated the LoJack type of function on it not sure if its called lojack but you get what I am saying is there any way we can activate such  hardware/app now so we can possibly recover our laptop? Any one who can point us in the right direction that would be great and we would be very grateful. Thanks So Much

    Lojack for laptops - if that is the product you purchased and installed, you will need to read the user manual or contact the manufacturer as it is 3rd party.  You did file a police report right?

  • We have adobe acrobat pro installed on our computer  - we have changed the password - but it is still not giving us access to update our adobe reader. The name is showing as Marriner. Is this linked to our account?

    We have adobe acrobat pro installed on our computer  - we have changed the password - but it is still not giving us access to update our adobe reader. The name is showing as Marriner. Is this linked to our account?

    What is your operating system?
    To install/update Adobe Reader or Acrobat you need to supply your computer's Administrator password.

  • We live in USA and wish to purchase a Macbook Pro computer for our foreign exchange daughter, who has returned to Guatemala.  is it better to buy it here and hand carry or wait and buy it there?  we want to get her warranty and repair benefits

    we live in Californina and will be travelling to Guatemala City next month to attend our Foreign Exchange Daughters graduation.  We want to buy her a Macbook Pro as a gift and purchase the warranty/protection coverage for her.  We are concerned she will not be entitled to any Apple Support/warranty by it being purchased in USA but using it and living in Guatemala.
    It is better to wait and buy it from a retailer there in Guatemala? 

    Apple Care is global.

  • MacBook Pro 13" Retina Spec Query

    I am looking to buy a MacBook Pro 13" Retina Display with 512GB SSD and I was wondering if it was necessary/worth upgrading to the i7 processor or 16GB of RAM or both. Will it still run fast with i5 and 8GB RAM? I will be using it for Photoshop, GarageBand, Surfing, and various college work. Do I need the i7 or will I be fine with i5. I am trying to future proof because I want it to last me a good few years.

    I spent 30min on the phone to apple support resetting PRAM etc and its made no difference. He said they are compatible with b and g but they don't work as efficiently as the old macs. Because I'm with sky I can't have a custom or dual band router but the support guy suggested buying an airport express to plug in and use that as a dual band 5Ghz, which to be fair will bring better wireless to all of my devices so I'm going to buy one at the weekend.
    I get about 1/5 of my net speed over my current router with my rMBP but if I disable my other devices my sagem sky router will auto N for my mac and it'll be full speed again. Shame you can't make that router only work on 5Ghz.

  • How do you fix this?:  When I sign in to Facetime on my Macbook Pro it says: "Our Servers Cannot Process your Request. Please try again later."   I have tried again "later" every day for almost 3 weeks and it doesn't work. How can I fix this?

    As I stated above, There is a Facetime error. can someone please help?

    Read here:
    http://support.apple.com/kb/TS4185

  • New mac pro playback issues & sluggish

    got my new mac pro this week. wanted a fesh start, so didn't migrate anything. started by installing my must-have apps: adobe cc, ableton, apogee, fontexplorer, natove instrument komplete. everything worked great. then suddenly, when vreating a simple project in premiere, playback didn't work. and neither in quicktime nor itunes. started seeing the beachball in many apps, everything totally sluggish. started deleting apps, but nothing seemed to help. anybody had similar issues?

    My own remedy is more of the ounce of prevention:
    Clone the system so you have the nice vanilla system as it was backed up to another drive volume or sparse image.
    One person runs multiple copies of Mavericks in VMs using VMware Fusion to allow testing any changes first; restore a VM back to before changes, or to switch a VM to a boot image.
    Create a bootable clone of the system, before making changes, in case a system does go south, or just for testing.
    Sluggish is so common but generic, and how many apps run concurrently or have been tested to work even with 10.9.1 builds along with change to new hardware?
    The things we may not see or be aware of, might be like this one uncovered and mentioned on Ars:
    In our recent review of the late 2013 Mac Pro, one of our sticking points was the OpenGL performance that trailed Windows on the same hardware. A particularly damning case was the high-polygon-scene performance in Autodesk Maya showing how OpenGL viewport 2 performance fell off a cliff when you pushed into very high polygon counts of over 20 million with the D700 in OS X. 
    While this issue still needs to be resolved for some programs like modo, some quick sleuthing by Apple and AMD shows that the problem was on the Autodesk side. Maya was not simply querying the GPU RAM; for some reason, it was using a hard ceiling on OS X, so the brutal performance hit was the result of that ceiling. Once you explicitly tell Maya to use your available VRAM with the environment variable MAYA_OGS_GPU_MEMORY_LIMIT=6000 in ~/Library/Preferences/Autodesk/maya/2014-x64/Maya.env, performance is perceptibly the same as in Windows in Boot Camp with very large scenes:
    If you have a GPU with more than 1GB of VRAM, I highly recommend setting this environment variable to your GPU's VRAM amount. This issue will reportedly be fixed in Maya 2015, but Maya is clearly an absolutely massive program with some annoying issues—here is my blog post on how to fix Maya performance when the Help Line is visible in OS X.
    So, fellow Maya users, I just need to implicate Apple in another 17,000-word article about our other bugs, and we'll have them fixed in no time! This brings us to the question of why I thought to blame this on drivers and not the Mac Maya version to begin with. It's odd that this Mac-only hard-coded VRAM amount existed at all because Maya is very much the same beast on all platforms, and from my knowledge of it as a beta tester, platforms don't get specific attention for tuning, and that's the case for the dominant platform as well. That's why I assumed that this was a driver bug and not Maya-specific.
    Anyway, we'd like to thank AMD and Apple for their quick work with Autodesk to resolve this issue. We'll be updating the review today to account for this new information.
    http://arstechnica.com/apple/2014/02/2013-mac-pro-firepro-d700-opengl-is-better- than-we-thought-it-was/
    I don't always follow my own advice, sometimes it works out, sometimes not, but any OS like Apple's needs a couple updates, and any new hardware needs some firmware revision, chips, changes in production, and time to ah "field test" new system in the real world.

  • Error While Filtering a Particular Value in the Query Navigation

    Hi ALL,
            we have a time charecteristic 0FISCPER in our query and the output of the query  is fine until we filter this on the variant  V3 ,system is throwing an error
      "System error in program SAPLRRK0 and form SORT_END_TRUE-01- (see long text)"
         i have tried to fix this in "analysis and repair of infoobjects " by mentioning the name of the  infocube  then the system is showing the inconsistancies by  the  following messages 
    >>InfoCube XFIGL_C11 was marked as a Cube with an inconsistent time dimension.
    >>Record with the DIMID 44 contains non-fitting time characteristics
    >>This DIMID is used by 2475 records of the fact tables
    >>No master data found for characteristic of test described subsequently
    >>Time characteristic 0FISCPER value 102006000 does not fit with time char 0FISCPER3 val 0
                this error is there both on the development and also the production servers. any light thrown on this issue is a awewlcome and i promise to reward points,
    regards

    Hi,
    There are a couple of threads on the same issue.
    Refer to these, just might be handy.
    Re: Uncaught_exception in Report Designer
    Program error in class SAPMSSY1 method  : UNCAUGHT_EXCEPTION in Report
    Good Luck!
    Sandeep Tudumu

  • HP LaserJet Pro 200: Scanning to Network Folder on windows server 2012 - can't find folder

    I have searched everywhere and tried every suggested solution with no luck.   Hence this post.
    I have an HP Laserjet Pro 200 on our small company network (domain).   We use windows server 2012 as our domain controller and as our file and print server.
    There is a shared folder on the windows server that is shared read/write with everyone on the domain.
    I can access the shared folder from any computer on our network.
    However, when trying to setup the scan to network folder capability,  the HP web interface always comes back that it can't find the network folder.
    I have tested that it will work on our network if I want to scan to a shared folder on any of the other computers on our network (other than the main server).
    So it appears to be some sort of security / firewall issue with our server, perhaps ?
    Does anyone have any suggestions on how to troubleshoot this issue?   Is there any technical documentation on how a server environment needs to be changed to allow this to work ?   (BTW,  this used to work,  about a week ago and nothing changed except for installing the latest HP laserjet drivers on the windows server. 
    Thanks for any suggestions.
    Todd

    I have searched everywhere and tried every suggested solution with no luck.   Hence this post.
    I have an HP Laserjet Pro 200 on our small company network (domain).   We use windows server 2012 as our domain controller and as our file and print server.
    There is a shared folder on the windows server that is shared read/write with everyone on the domain.
    I can access the shared folder from any computer on our network.
    However, when trying to setup the scan to network folder capability,  the HP web interface always comes back that it can't find the network folder.
    I have tested that it will work on our network if I want to scan to a shared folder on any of the other computers on our network (other than the main server).
    So it appears to be some sort of security / firewall issue with our server, perhaps ?
    Does anyone have any suggestions on how to troubleshoot this issue?   Is there any technical documentation on how a server environment needs to be changed to allow this to work ?   (BTW,  this used to work,  about a week ago and nothing changed except for installing the latest HP laserjet drivers on the windows server. 
    Thanks for any suggestions.
    Todd

  • How to save Final Cut Pro project to an ftp server to then open on a different computer

    Hello, I work for a graphic design firm that also does video production for businesses. We are using Final Cut Pro X in our office which has an FTP server connected to all office computers.
    What we want is to be able to have on employee start a project in Final Cut Pro X, save it to the server; then have another employee open up the same project and continue working from a different computer.
    Right now, we have a lot of our Final Cut files saved to the server, and the files will show up in the server on the other employee's machine. BUT, we scroll in the server to the file for the Final Cut Pro project on the other computer, and the file is grayed out, unable to be opened on the new computer.
    I've tried right clicking and choosing "open with Final Cut" and Final Cut does then open, but right before it opens the project within Final Cut, a message comes up saying "The document could not be opened. Open documents from within Final Cut Pro," which of course, I see no way to do that from within Final Cut Pro.
    I've also called Apple Care, they reminded me that we can't have one project open on two computers at the same time, and that's fine. We are willing to close the project on computer one to then open on computer two.
    If you have an answer let me know. We don't want to have to load onto an external hard drive to then load onto the other machine, especially since we have a server ready to go.
    Thanks for your help.

    You can share projects via the ftp server, but you need to:
    1) Have all the media in identical events on each editor's machine;
    2) Set up the project  and share the entire folder for that project first;
    3) Afterwards, you can share just the project file itself
    You CANNOT work directly on projects and events stored in the ftp server.
    See Steve Martin explain how to do all this: http://www.youtube.com/watch?v=Hu-ga7fxKh8

  • Problem with unit in Query

    Hallo Experts,
    We encounter a problem with unit in our Query.
    Szenario:
    We use the Unit like PC, SET in Query.
    In Table T006 those Units have value 0 in the field ANDEC, so they will be rounded up and rounded down in Query.
    Our Problem is some Queries need the rounding up and down but others don't need this function.
    Where and how should we change to solve the problem.
    thanks & Best regards

    hi,
    if you want to control the rounding off while unit conversion you can do it from SPRO
    In the BW system, goto SPRO -> SAP NetWeaver -> General Settings -> Check Units of Measurement -> Units of Measurement -> Choose the unit corresponding to 'KM' -> Click on 'Details' button in the toolbar.
    Look the field 'Decimal Pl rounding'. Change this to 3 or whatever value you choose and see if it works.
    in above link i have taken example of KM, you need need to select the required unit.
    let us know if this is solves your problem. I am not sure if this can be done for individual queries but this is controlled by UOM wise as mentioned above.
    Regards,
    Rk.

  • Saving query results to a flat file

    Hello Experts!
    We have a very specific issue on our current project and I would like to know if any of you have ever done something similar. We are taking query results from BW (after complex calculations, some based on SY-DATE) and saving them to flat files to transfer to a SQL database structure on the Enterprise Portal. From here, the portal team renders the information into more "static" dashboards that include mouse over features and even limited drilldown (i.e. no matter where a user clicks the report always drills down on profit center)
    There are many reasons why the model is set up as such (mostly training of executive level end users), and even though it doesn't mesh with the idea that BW could do this work on its own, we have to work with what we have.
    We have come up with 3 possible ways to save this data to flat files and hopefully someone can tell us which might be the most effective.
    1.) Information Broadcasting. If we broadcast XML files to the portal, will the portals team be able to read that data into a SQL database? Is there another way to use broadcasting to create and send a flat file to specific location?
    2.) RSCRM_BAPI. This transaction seems to not support texts.
    3.) Open Hub. In order to get the open hub to work, we first have to save all of our query results to direct write data store objects using APD. (calculations based on current date, for example, would require daily full loads to the underlying data providers otherwise.)
    What is the best way to accomplish this? Is information broadcasting capable of doing this?
    Thanks!

    Hi Adam,
    Do you have to use flat files to load the information to a SQL database? (if so maybe someone else has a suggestion on which way would be the best).
    I try to stay away from flat file uploads as there is a lot of manual work involved. May I suggest setting up a connection to your SQL table in the DBCON table and then writing a small abap program to push data into the SQL database (which you can automate).
    1) Use APD to push data into a table within BW.
    2) Go to transaction SM30 > table DBCON and setup a new entry specifying the conncection parameters to your SQL database.
    3) In SE38 Write an ABAP program along the folloing lines (assuming the connection you set in DBCON is named conn1:
    data: con_name like dbcon-con_name
    con_name = 'conn1'.
    exec sql.
      set connection :con_name
    endexec.
    ****have a select statement which reads data from your table which the data is saved from the APD into an internal table**********
    ****loop on the internal table and have a SQL insert statement to insert the records into the SQL table as below******
    exec sql.
    insert into <SQL TABLE> (column names seperated by ,)
    values (column names of the internal table seperated by ,)  if the internal table is named itab the columns have to be specified as :itab-column1
    If you decide to take this approach you may find more info on DBCON and the process in sdn. Good Luck!
    endexec.

  • Deskjet 5440 stopped printing wirelessly from my MacBook Pro after upgrading to OS 10.8

    My home printer is connected by cable to a desktop Mac (Power Mac G5).  I have always printed wirelessly to it from my MacBook Pro laptop through our home wireless network.  However, just recently I upgraded the operating system on my laptop to 10.8.2.  At the same time, I upgraded the HP driver software (from HP) that is supposed to allow the 5440 to work with the new OS.  Since then, I can print from my laptop if it is connected by cable to the printer, but not wirelessly.  When I attempt to print wirelessly, get a message that says the printer is not connected.

    So you are using Printer Sharing on the PowerMac?  If so, on the PowerMac, go to System Preferences > Print & Fax and delete the printer with the '-' sign at the bottom of the printer list.  Re-add it with the '+' sign.
    Make sure that Printer Sharing is checked and that in System Preferences > Sharing that Printer Sharing is also checked there.
    Now, on the MacBook Pro, go to System Preferences > Print & Scan and click the '+' sign to add the printer.
    Say thanks by clicking "Kudos" "thumbs up" in the post that helped you.
    I am employed by HP

  • Error while executing query on portal-SAPMSSY1 method : UNCAUGHT_EXCEPTION

    Hello all,
    I have created a quey and executed it on portal and everything just works fine. The query has few input varaibles at the start like fiscal year and some other inputs. I saved the query in my Portal favorites and then when I try to excute it from there it gives me a runtime BI error.
    Termination message sent ABEND RSBOLAP (000): Program error in class SAPMSSY1 method : UNCAUGHT_EXCEPTION  MSGV1: SAPMSSY1  MSGV3: UNCAUGHT_EXCEPTION
    I guess it errors out because of the variable input part at the start of query.
    We already have note "950992" in the system so wonder what next now.
    Any inputs appreciated.
    Thanks,
    Kiran

    We are having the same issue too - we are SP13. Our query is built on a Infoset, and the problem comes with 0FISCPER variable, when we try to do a input help (F4) in Bex. this happens only when I use fiscper on queries bulit on INFOSETS, and it works perfectly alright with all other cubes.
    <i>System error in program CL_RSMD_RS_SPECIAL and form
    IF_RSMD_RS~READ_META_DATA-02 (see long text)
        Message no. BRAIN299
    Diagnosis
        This internal error is an intended termination resulting from a program
        state that is not permitted.
    Procedure
        Analyze the situation and inform SAP.
        If the termination occurred when you executed a query or Web template,
        or during interaction in the planning modeler, and if you can reproduce
        this termination, record a trace (transaction RSTT).</i>
        For more information about recording a trace, see the documentation for
        the trace tool environment as well as SAP Note 899572.
    and in portal, it gets to the point of variable screen and then throws a error msg.
    <i>ABEND RSBOLAP (000): Program error in class SAPMSSY1 method : UNCAUGHT_EXCEPTION
      MSGV1: SAPMSSY1
      MSGV3: UNCAUGHT_EXCEPTION</i>
    Message was edited by:
            voodi
    Message was edited by:
            voodi

  • When running a query of a 0IC_C03 cube copy inventory shows as blank

    When loading the 0IC_C03 cube copy ZMM_C01 Cube: Material Stocks/Movements, if there
    is no movements for that day in a plant the inventory values do not show when we run a query on that key date
    When we create a movement type and run the extraction then the ending inventory values
    will show when we run a query usig that key date.
    So if there are no movements types for a plant  then the inventory balance does not show up in our query reports. Once we post a
    movement type for a plant and extract data then rerun our reports then the inventory balances show up.

    Refer link
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/30f15839-0cf1-2b10-c6a7-ebe68cc87cdc?QuickLink=index&overridelayout=true
    & check ur e-mail.

Maybe you are looking for

  • Quicktime fails because 3ivx_dec.dll is not found

    I keep getting a window titled "QuicktimePlayerMain:QuickTime Player.exe - Unable to find Component." "This application failed to start because 3ivx_dec.dll was not found. Reinstalling the application may fix this problem." I have un-installed and re

  • HT1222 Can i get back to iOS 5.1 after i upgrade to iOS 6 ?

    Can i get back to iOS 5.1 after i upgrade to iOS 6 ?

  • HR Structure to SRM...

    Hi All, I would like to know that What are the HR objects and Relationships that will go into SRM system. What is SAP recommended ? I know that we have to send the Org Units, Positions etc. But would like to know what exactly have to be sent to them

  • 12 bit Image from a camera

    Hello, I'm acquiring some data from a x-ray detector. With each acquisition I obtain a column of the image that I want. The problem is that after n iteration I have a matrix of pixel values 192xN (with N=n.of iterations) see image attached for an exa

  • Error when trying to close the project.

    Hello all, When i m trying to close the project i m getting the error "Complete" is not allowed (NTW 5039365),Message no. BS007 The performance assistent show the message as below. Diagnosis The current status of object 'NTW 5039365' prohibits busine