OCI doc says Cursor and Nested table have the same bind type SQLT_RSET but they don't

5 Binding and Defining in OCI
PL/SQL REF CURSORs and Nested Tables in OCI
says SQLT_RSET is passed for the dty parameter.
If I use SQLT_RSET for the return value of a function that returns a table and pass a statement handle's address for the OCI parameter data pointer, I expected that the statement handle will be instantiated as a result of executing the function on which I can further perform fetch, similar to a cursor. But it throws exception PLS-00382: expression is of wrong type ORA-06550: line 2, column 3. Is the above documentation wrong?
From the OCI header file I see that for varray and nested table it mentions to use SQLT_NCO. I could find no example in the OCI documentation on how to pass or receive as return value a nested value when using SQLT_NCO.
Please help before I shoot myself.

So the Nested table I quoted in the doc is not actually used to mean a table type below?
create type t_resultsetdata as object (
i int, d decimal, c varchar(10)
create type t_nested_resultsetdata as table of t_resultsetdata;
create function Blah return t_nested_resultsetdata  is . . .
For this you are saying to use SQL_NTY and not SQL_NCO. Can you tell where this usage is documented, because ocidfn.h says
#define SQLT_NTY  108                              
/* named object type */
#define SQLT_NCO  122 
/* named collection type (varray or nested table) */
Another question - Because of the original document I said I followed, I thought I could treat cursor and nested table similarly in the calling application, i.e. I could repeatedly do a fetch on the OCIStmt* which will be bound for nested table. Now from what you say I understand I can't really bind a OCIStmt* for nested table but have an object type. That means it will get all the data of that collection in one go, right? LIke I said, lack of examples is making this tough. I don't want to look into OCI source code, as that will be too much.

Similar Messages

  • Dimension and Fact table have the same grain

    Hi All,
    How can we join a dimension and a fact table if they have the same grain ? In my case it is a contract number.
    Thanks

    Your Impression is right, In terms of Dimensional Modeling. You have to consider this when you are designing your warehouse tables.
    But now if you already have these tables in database, OBIEE does not care how many rows a table have, it just need to know what is fact and what is Dimension and it will generate sql queries based on join conditions.

  • I have an iPhone and an iPod with the same iCloud/Apple ID but I don't want have the same stuff on them?

    Ok so I have an iPhone and an iPod which share the same iCloud/appleID. I did this today when I got my new iPhone I put in my iCloud details which put everything I had on my iPod onto my iPhone(I was unaware this happened). I'm happy with all the apps added straight on and my contacts added but I don't want to have all my photos from my iPod on my iPhone. I want to keep the photos from my iPod on my iPod and when I take pictures on my iPhone they stay just on my iPhone. I'm wondering if this is possible as it's with the iCloud? I have previous synced my iPod on my laptop when adding music ect but I don't know if that effects iCloud I don't really know but I'm worried if I delete all the pictures off of my iPhone then sync that then sync my iPod into the same laptop will it wipe those pictures since there off my iPhone? I don't really get how all this works so help is very much appreciated!!  And I hope what I've wrote makes sense to someone!

    Welcome to the Apple Community lizzie.
    If you don't want photo stream to sync your photos between devices go settings > iCloud and uncheck photos, do this on each device.

  • I have a serious (and bizarre!) issue with my novation impulse (Although i've tried it with two other keyboards and i still have the same problem) and its compatibility with mainstage 3

    i have a serious (and bizarre!) issue with my novation impulse (Although i've tried it with two other keyboards and i still have the same problem) and its compatibility with mainstage 3.
    the problem is best explained on the following one - page thread: 
    https://discussions.apple.com/thread/3951518?start=0&tstart=0
    (Clearly i'm not alone in this problem, although i think i figured out what's going wrong a little more than he did...read on!)
    his solution, to put mainstage in jump mode, is very unsatisfactory to me, as it bounces all of a sudden to drastically different settings.
    basically, my analysis is that my controller is NOT receiving MIDI date from mainstage.  in other words, mainstage knows what my controller is doing, but my controller doens't know what mainstage is doing.
     let's say i turn the knob all the way to the right ... 127...and the virtual fader goes to the right like it's supposed to. 
    now...next...let's say i change to a different patch, where that same VIRTUAL fader is not at the max clockwise position..maybe it's only at 1pm.  now when i turn the physical knob to the RIGHT, the midi data is still at 127 on the controller!  it didn't "reset" to sync up with the new level (say 80 or so) setting on the new patch.  so i can't increase that new setting of 80 by continuing to turn the knob to the right.  i have to turn it all the way to zero,...and then continue PAST zero until the controller thinks that IT is at 0...at that point the controller and mainstage are in agreement, and things work fine....so bascially, the keyboard thinks the level is at max...but mainstage thinks the level is at 1pm.
    i am using Logic 9, and i have a macbook pro 2.9 Ghz I7 with 8 gigs of memory and OS X 10.8.4

    Hi Josh,
    Thanks for taking the time to contact us here a Novation for technical support. Lets continue to correspond via email so we can get your issue resolved.
    Thanks.
    Mike Towns

  • Secondary hard drive and dvd drive have the same location id's.

    Product Name: HP Pavilion dv7 Notebook PC (DV7t-7000)
    PRODUCT NUMBER: A5F92AV
    SERIAL NUMBER: [removed for privacy]
    My Secondary hard drive and dvd drive have the same location id's. The dvd drive can not write to any disk because of it. Had the dvd drive replaced and that did not help. Tried 3 different HDD and all the same outcome.
    Secondary hard drive and dvd drive have the same location id's. The dvd drive can not write to any disk because of it. Had the dvd drive replaced and that did not help. Tried 3 different HDD and all the same outcome.
    Please help,
    Thank you
    -Rick

    This is what chat support said... Its like talking to yourself sometimes!!
    [Wednesday, October 24, 2012 10:33 PM] -- Automatically generated message:
    Your support request has been submitted and is in queue. Please wait momentarily while the system connects you with the next available support specialist.
    [Wednesday, October 24, 2012 10:46 PM] -- Automatically generated message:
    You are now chatting with support specialist JOLLY R.
    [Wednesday, October 24, 2012 10:46 PM] -- JOLLY R says:
    Welcome to HP Total Care for Notebook and Desktop support. My name is Jolly. I will be your technical support specialist today. Please give me a few moments to review your issue description details.
    NOTE: For security reasons, PLEASE DO NOT send credit card information via chat.
    [Wednesday, October 24, 2012 10:46 PM] -- JOLLY R says:
    How are you doing today ?
    [Wednesday, October 24, 2012 10:46 PM] -- Rick Friedman says:
    Hi Jolly, I tried 3 different HDD's all of them were reformated and reimaged with the HP image from this laptop. When I try to populate the drive, it just closes the window. Same with the dvd drive. Other then no able to write to the dvd/cd drive, everything else is perfect. But that is not good enough...
    [Wednesday, October 24, 2012 10:46 PM] -- Rick Friedman says:
    Great, you?
    [Wednesday, October 24, 2012 10:46 PM] -- JOLLY R says:
    I am fine. Thank you for asking.
    [Wednesday, October 24, 2012 10:48 PM] -- JOLLY R says:
    Please let me know if the following details are correct for the notebook in question.
    PRODUCT NUMBER: A5F92AV
    SERIAL NUMBER: {Private Information Removed}
    EMAIL ADDRESS: {Private Information Removed}
    Am I correct?
    [Wednesday, October 24, 2012 10:48 PM] -- Rick Friedman says:
    Yes
    [Wednesday, October 24, 2012 10:48 PM] -- JOLLY R says:
    Thank You for confirming the details.
    [Wednesday, October 24, 2012 10:49 PM] -- JOLLY R says:
    Are you using the same notebook to chat with me which is in question?
    [Wednesday, October 24, 2012 10:49 PM] -- Rick Friedman says:
    Yes
    [Wednesday, October 24, 2012 10:51 PM] -- JOLLY R says:
    May I know since when you are facing the issue?
    [Wednesday, October 24, 2012 10:51 PM] -- Rick Friedman says:
    I few weeks ago now
    [Wednesday, October 24, 2012 10:52 PM] -- Rick Friedman says:
    HP swapped out the DVD drive and I swapped out the HDD's
    [Wednesday, October 24, 2012 10:53 PM] -- JOLLY R says:
    Please click on the start button and click on computer.
    [Wednesday, October 24, 2012 10:53 PM] -- Rick Friedman says:
    Reimaged, renamed, removed, rotated them to different bays.
    [Wednesday, October 24, 2012 10:53 PM] -- Rick Friedman says:
    ok
    [Wednesday, October 24, 2012 10:53 PM] -- Rick Friedman says:
    Open\
    [Wednesday, October 24, 2012 10:53 PM] -- JOLLY R says:
    Is the CD/DVD drive getting detected ?
    [Wednesday, October 24, 2012 10:54 PM] -- Rick Friedman says:
    Yes
    [Wednesday, October 24, 2012 10:54 PM] -- Rick Friedman says:
    Yes
    [Wednesday, October 24, 2012 10:55 PM] -- JOLLY R says:
    So you need te reseat the CD/DVD drive and the hard drive .
    [Wednesday, October 24, 2012 10:55 PM] -- Rick Friedman says:
    I did, over and over and over
    [Wednesday, October 24, 2012 10:55 PM] -- JOLLY R says:
    Okay
    [Wednesday, October 24, 2012 10:56 PM] -- Rick Friedman says:
    I have swapped out the dvd drive and hard drives
    [Wednesday, October 24, 2012 10:57 PM] -- JOLLY R says:
    Since you have already reseated the hard drive and CD/DVD drive, you need to send the notebook in for a bench repair.
    [Wednesday, October 24, 2012 10:57 PM] -- JOLLY R says:
    It will be a mail in repair service. I will send you a box along with packaging materials and a prepaid shipping label. Once you pack your notebook in the box you can drop it off at you nearest fedex drop box or you can schedule a pickup.
    [Wednesday, October 24, 2012 10:57 PM] -- JOLLY R says:
    Box would contain- packaging material, shipping instructions & pre-paid shipping label.
    • Once you receive the box you need to put the notebook inside the box (without any accessories), call fed-ex- (1800-463-3339).
    • Fed-ex would come at your place pick it up and send it back to hp.
    • This service will cost you $0.00
    • Standard turn around time for service is 7-9 business days.
    You can check the status of your order by going to: www.hp.com/go/csostatus or by calling HP Customer Care at 1-800-hpinvent (1-800-474-6836).
    Your repair service has an estimated turn around time of 7 to 9 business days from when we receive your product at our repair center.
    [Wednesday, October 24, 2012 10:57 PM] -- JOLLY R says:
    In order to set up a service request please provide the following information:
    * Full Name:
    * Mailing Address (No P.O. Boxes):
    * Apartment/Building/Mailstop:
    * City:
    * State:
    * Zip/Postal Code:
    * E-Mail address
    * Phone Number (including area code):
    * Best time to call
    * Time zone of your region
    [Wednesday, October 24, 2012 10:57 PM] -- Rick Friedman says:
    Dont I have on-site?
    [Wednesday, October 24, 2012 10:58 PM] -- JOLLY R says:
    Let me check.
    [Wednesday, October 24, 2012 10:59 PM] -- Rick Friedman says:
    This laptop is my life, my livelyhood.
    [Wednesday, October 24, 2012 10:59 PM] -- Rick Friedman says:
    I can not be without iot...
    [Wednesday, October 24, 2012 11:00 PM] -- JOLLY R says:
    I do understand that .
    [Wednesday, October 24, 2012 11:02 PM] -- JOLLY R says:
    Yes, you do have onsite , but a technician can be sent to your place only if any part needs to be replaced .
    [Wednesday, October 24, 2012 11:02 PM] -- JOLLY R says:
    As the notebook needs to be repaired , you have to send it to the HP service center.
    [Wednesday, October 24, 2012 11:02 PM] -- Rick Friedman says:
    It is the motherboard
    [Wednesday, October 24, 2012 11:03 PM] -- Rick Friedman says:
    What is the difference between repair and replaced?
    [Wednesday, October 24, 2012 11:03 PM] -- JOLLY R says:
    It will be repaired and returned back to you .
    [Wednesday, October 24, 2012 11:04 PM] -- Rick Friedman says:
    But what is there to be repaired if your not replacing anything?
    [Wednesday, October 24, 2012 11:04 PM] -- JOLLY R says:
    If any hardware part needs to be replaced , a technician can be sent to your place .
    [Wednesday, October 24, 2012 11:04 PM] -- JOLLY R says:
    But since the notebook needs to be repaired ,you have to send it .
    [Wednesday, October 24, 2012 11:05 PM] -- Rick Friedman says:
    What is the difference between repaired and replacing something... So you mean that nothing will be repaired on my laptop?
    [Wednesday, October 24, 2012 11:06 PM] -- Rick Friedman says:
    This is NOT right
    [Wednesday, October 24, 2012 11:06 PM] -- JOLLY R says:
    I mentioned earlier that you need to send the notebook for repair.
    [Wednesday, October 24, 2012 11:06 PM] -- Rick Friedman says:
    I would like to talk to someone about this.
    [Wednesday, October 24, 2012 11:06 PM] -- JOLLY R says:
    It will be repaired and returned back to you .
    [Wednesday, October 24, 2012 11:07 PM] -- Rick Friedman says:
    What is the turn around time on this?
    [Wednesday, October 24, 2012 11:07 PM] -- JOLLY R says:
    It is 7 to 9 business days.
    [Wednesday, October 24, 2012 11:08 PM] -- Rick Friedman says:
    NO WAYYYY!
    [Wednesday, October 24, 2012 11:08 PM] -- JOLLY R says:
    If you want to talk to someone , you need to call our voice support in the direct number 1-800-474-68386 and refer to serviceticket number - {Private Information Removed}.
    [Wednesday, October 24, 2012 11:08 PM] -- Rick Friedman says:
    OK, thx
    [Wednesday, October 24, 2012 11:08 PM] -- JOLLY R says:
    We also have an expedite shipment, where the turn around time is 4 to 6 business days .
    [Wednesday, October 24, 2012 11:09 PM] -- JOLLY R says:
    Please take down the service ticket number {Private Information Removed} and SR ID {Private Information Removed} for future reference.
    [Wednesday, October 24, 2012 11:09 PM] -- JOLLY R says:
    You are welcome.
    [Wednesday, October 24, 2012 11:09 PM] -- JOLLY R says:
    Is there anything else apart from this I can help you with now ?
    [Wednesday, October 24, 2012 11:09 PM] -- Rick Friedman says:
    No
    [Wednesday, October 24, 2012 11:09 PM] -- JOLLY R says:
    Thank you

  • Can source and target tables be the same

    Hi there,
    I need to restate profit center column in the delivery fact table. Historical Profit Centers need to be populated since today is the first time we brought in Profit Center field from LIPS table. The source for the delivery fact table is SAP LIPS table. so what I did is:
    joined the LIPS and delivery fact table on (LIPS.delivery number = deliveryfacttable.delivery number & LIPS.delivery line item number = deliveryfacttable.delivery line item number) to get the profit center.
    So the source and the target delivery fact table are the same. Is this a good practice becuase Data services warns me that the source and target tables are the same.
    Please let me know a better alternative approach to this OR a better approach to restate fields for historical data. Thanks in advance.
    Regards,
    samqiue

    Arun,
    actually the LIPS resides on another server and in order to fetch data I have to write an R3 ABAP data flow, so I cant use it directly in a lookup.
    Except what Im thinking based on your reply to use a lookup table is: that I will extract 3 colums (delivery number, delivery line item number and profit center) to a table and then use the lookup.
    Thanks.
    Regards,
    samique

  • Source and Target Table in the Same schema........will that work in ODI

    Hi ,
    Is it possible to have my source and target tables in the Same achema.......will it have any performance issues or some other issues in our ODI.......
    I would like to know whether it works well or not .........
    ( To my understanding it wont have any issues ......But I am not 100 % sure on my judgement)
    Thanks
    AK

    Yes, you're correct.
    Just be sure about you load strategy, it means, if you need only to insert use the KM Control Append, but if need update too, try the IKM Oracle Incremental Update... I believe that will work better for millions of lines.
    Anyway be sure that your database has the necessary tablespaces to manage huge data volume.

  • I have an old I pod that was syncd with a windows computer, now i am trying to sync with my mac itunes account.  We have the same i tunes account but it is saying i will lose all my songs if i sync now.  Help?

    I have an old I pod that was syncd with a windows computer, now i am trying to sync with my mac itunes account.  We have the same i tunes account but it is saying i will lose all my songs if i sync now.  Help?

    I would recommend you use a program called senuti that allows you to copy your songs over to a new computer from an iPod. Unfortunatlly you have to pay for the full version but it allows you to have 1000 free song capacity of copying over and a movie counts as the capacity of 1 song.
    http://www.fadingred.com/senuti/

  • TS2755 My wife and I both have iPhone 5s, I can't send text messages to non iPhone people that I use to but iPhone people I can, My wife can send text to non iPhone numbers.  I have checked and we both have the same settings.

    My wife and I both have iPhone 5s, I can't send text messages to non iPhone people that I use to but iPhone people I can, My wife can send text to non iPhone numbers.  I have checked and we both have the same settings.  Both of our phones are up to date 7.0.4.

    The ability to see and send calendar invites is a function of the calendar you are subscribing to and who owns it. We need more information, like what calendar are you subscribing to? MS Exchange? Google? Mobile Me?

  • I used my apple ID for my daughters new iPod and now we have the same number! Please help

    I just started up my daughters new iPod and use my apple id and now we have the same number! How do I change this on my daughters iPod? I want her to be able to use my apple ID but I'd like her to have her own number... Is this possible?

    Create a new ID for her:
    On the iPod go to
    - Settings>Messages>Send and receive and sign out your ID and sign into hers. Make sure that only her ID email address is listed.
    - Settings>FaceTime sign out of your ID and sign into hers. Make sure that under You can be reached at only her ID email address is listed
    - Settings>iCloud and sign out and sign in with hers
    Continue to use the common ID for Settings>iTunes and App stores.

  • I have family plan of 5 iphones and all them have the same apple id, the q. is how I can set each one with their own apple id? please advise...

    I have family plan of 5 iphones and all them have the same apple id, the q. is how I can set each one with their own apple id? please advise...

    See How to Stop Sharing an Apple ID.
    (Note that I am affiliated with that site, and some pages contain ads).

  • Because me and my parents have the same apple id, my new phone synced all of their songs on to my iPhone. I tried to delete them or transfer them off my phone to iTunes but it wouldn't work. What do I do?

    Because me and my parents have the same apple id, my new phone synced all of their songs on to my iPhone. I tried to delete them or transfer them off my phone to iTunes but it wouldn't work. What do I do?

    im so happy I have a iTunes Card Code absolutely free! I got it at http://linkbitty.com/freeitunes2014

  • My iPod will charge in the computer but not my iPod dock, my sisters iPod dock or the wall charger. My sisters iPod will charge in all and we both have the same sofware and generation. Why won't mine charge?

    My Ipod will charge in the computer but noy my iPod dock, my sisters iPod dock or the wall charger. My sisters iPod will charge in all and we both have the same software and generation. Why won't mine charge?

    Look the dock connector on your iPod. Look for abnormalities like bent or corred contacts, foreign material and cracked/broken plastic.
    Try:
    - A reset. Nothing is lost
    Reset iPod touch: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears..
    - Restore from backup
    - Restore to factory settings/new iPod

  • I am using a PC with window 7 and adobe photoshop 12. I have followed Photoshop Elements Help and I still have the same problem. When I try to backup Photoshop 12 it has stop on7% when calculating Total Media size. What can I do?

    I am using a PC with window 7 and adobe photoshop 12. I have followed Photoshop Elements Help and I still have the same problem. When I try to backup Photoshop 12 it has stop on7% when calculating Total Media size. What can I do?

    Hi Prabhuram and falez,
    This issue appears where there are any inconsistencies in your catalog (generally for video files). This issue may be due to offline files, missing files, video scenes. The recommendation here would be to fix these inconsistencies and try again. If that doesn't solve the issue, please follow steps mentioned in email by me.
    ~Surendra

  • I just updated my phone to iOS7 and me and my mom have the same apple ID, so now for some reason I get all the text messages that are sent to her iPhone on mine..? Help please!!

    I just updated my phone to iOS7 and me and my mom have the same apple ID, so now for some reason I get all the text messages that are sent to her iPhone on mine..? Help please!!

    Stop sharing an Apple ID. That is the cause.
    Settings > Messages > Send & Receive > You can be reached for messages at...

Maybe you are looking for