Using OCIArray in Pro*C

I have a stored procedure which takes a VARRY of user defined type as IN parameter and VARRAY of another user defined type as OUT parameter. I am calling this procedure from a Pro*C program.
I have used OTT interface to generate the OUT file and C header file.
Can you please let me know how to initialize the input and output parameters (OCIArray) when calling this stored procedure from Pro*C?
Here is the header file generated by OTT:
#ifndef ARRAY_ORACLE
# define ARRAY_ORACLE
#ifndef OCI_ORACLE
# include <oci.h>
#endif
typedef OCIRef empdet_ref;
typedef OCIArray emplist;
typedef OCIArray idlist;
struct empdet
OCINumber ID;
OCIString * NAME;
OCINumber SALARY;
OCIString * PROJECT;
typedef struct empdet empdet;
struct empdet_ind
OCIInd _atomic;
OCIInd ID;
OCIInd NAME;
OCIInd SALARY;
OCIInd PROJECT;
typedef struct empdet_ind empdet_ind;
#endif
And the ProC code looks like this:
emplist *elist;
idlist *ilist;
main()
EXEC SQL ALLOCATE :elist;
EXEC SQL EXECUTE
BEGIN
callemp1.getempdata1(:ilist,:elist);
END;
END-EXEC;
ilist is a list of employee ids (NUMBER).
elist is struct for employee details.
Thanks in advance,
Vivek

But PRO*c have given that error .is there any usage error. As explained earlier, that has nothing to do with pro*c. your posted code will not compile under a c compiler.
did you see the difference (in bold) between what you posted and the one I posted earlier?
the struct declaration was incomplete. You need fix that. Make that change and post if you still have errors.
Try posting a sample program that you are having trouble with along with the complete error message so we can see the issue.

Similar Messages

  • How to use Final Cut Pro with multiple user accounts?

    Hi,
    I want to use Final Cut Pro on a clean user account. How do I set it up? How can I access my old FCP library and still work on it from multiple users?
    Also, I want my DropBox account to back-up my media. Any tips?

    I use external drives as backup. But I don't trust them. And in case of fire or what ever...It is of no use...
    But I agree on your comment about DropBox. It would have been the perfect solution though.
    What else is there?
    I have a 2TB HD but these projects are huge and still growing - so I have to move my projects to several external drives. So maybe I should just work directly from external drives and skip the partition of the computers main drive? I am thinking of the disadvantage of reducing the total storage of the disk.

  • I have CC and DC Pro on my account. How do I designate a family member to use the DC Pro?

    Is there a way to designate a family member to be able to use the DC Pro subscription on my account? I have the Creative Cloud (all apps) for myself, but I specifically purchased the monthly DC Pro plan.
    Or will they need to use my email address log in to their application? If so, if there are two different types of subscriptions.. which one will be used? Sorry to confuse you.. as I'm so confused myself.

    Correct. They need to register under their name. Contact support to sort this out.
    Mylenium

  • 2 Users simultaneously using a mac pro

    I'm not sure this is the correct forum for this, but here is what i'd like to achieve: Have 2 users each with their own keyboard and monitor using one mac pro tower... i know they can run multiple monitors, but what about 2 keyboards and users... this is doable on most other unix based systems ive used in the past (sgi irix and suns).
    Any ideas?
    thank you,
    ken

    I'm not sure this is the correct forum for this, but here is what i'd like to achieve: Have 2 users each with their own keyboard and monitor using one mac pro tower... i know they can run multiple monitors, but what about 2 keyboards and users... this is doable on most other unix based systems ive used in the past (sgi irix and suns).
    Any ideas?
    thank you,
    ken

  • How Do I Use DVD Studio Pro Files In iDVD?

    I had somebody create a DVD for me using DVD Studio Pro. (This was a compilation of many different videos.) It turned out great.
    I now want to make a DVD of one of those videos on my own using iDVD '08.
    I have the raw video/audio files. But, my problem is the raw files that were used for the DVD Studio Pro project are separated into one video file and one audio file. I don't know how I can get them both into iDVD. I was told that I have to recombine these two files into one file. But, how do I do this and still maintain the best quality?
    (I am not a video expert by any means, but I can tell you that the video file is a ".mpeg" and the audio file is an ".ac3". When looking at the .mpeg file in the finder it lists its Kind as "MPEG Movie" and when looking at the .ac3 file in the finder it lists its Kind as "Unix Executable File".)
    (I'm using iDVD 7.0.1 - I do have Quicktime Pro - I do not have the Quicktime MPEG-2 Playback component - I do not have DVD Studio Pro)
    Thanks in advance for your help!

    Q: How Do I Use DVD Studio Pro Files In iDVD?
    A: You don't, essentially.
    DVDSP is apple's top end app and it is intended to be used with FCP > Compressor > DVDSP. All of these are pro apps.
    i-Apps are consumer apps all of which are QT based. With that in mind ....
    now that doesn't mean you can't use FCP > iDvd. You can. But you have to do it in a way that iDvd will read all the files (meaning you must think in terms of QuickTime and export in this way). So when you export your QT File / Movie from FCP over to iDvd, it will look something like this hopefully regardless of the raw image & audio files you have already compiled which unfortunately will NOT work with i-Apps BUT will work with apple's pro apps which is the intended workflow / direction of said files in the first place.
    Btw ... if your QT movie has chapter markers then please use the following settings so iDvd can read these markers. (if on the other hand you were looking to export this file to DVDSP; then you would choose DVDSP Markers.
    Let me know if the above helps. If not, just come on back.

  • How do I use my MacBook Pro to do video chat with my Gmail account

    I have a gmail video/audio chat account and would like to use my Macbook Pro as my communication device. I cann't seem to get the video portion going. Anyidea?

    You could use Elgato Systems' EyeTV product to view external video sources on your MBP.
    There is additional cost involved, but it would achive what you want. You can buy the Hybrid product, and connect your external DVD player via Composite (red, white and yellow connectors) to your MBP via the EyeTV.
    http://www.elgato.com/index.php?file=products_eyetvhybridna&PHPSESSID=3c4e16afe5 0303162b285a6f70791f86

  • How do i use Facebook in china using my macbook pro?

    how do i use Facebook in china using my macbook pro?

    Have a look to the right of this page under 'More like this'.
    Facebook may not be available.

  • How do I use my macbook pro lid closed

    How do I use my macbook pro lid closed?

    Well what i'm trying to do is keep file sharing on while macBook is closed so i can access files through "newtwok" (Back to my mac) with my imac...
    Ideally i would then control my macBook with screen sharing on my imac while the MacBook is stored behind my iMac...
    Somehow it worked before but now it stopped...and everytime i close the lid ..mac book pro goes black screen and completly disconnects from the newtwork...
    Everything works fine with lid open..
    I am trying to do this because i have a new imac with thunderbold and an older macbook pro with mini display port..and as you might already know...you canot connect these thow devices using thunderbolt cable...which really *****....there is also no adaport enabling this...and i really dont need to buy another mac book that just has one more hole in it >.<
    Anyway..hope there is a solution somewhere to keep file sharing going while lid down..
    regards remo

  • How do I use my MacBook Pro to watch exactly what my digital cable box would send to my TV?

    How do I use my MacBook Pro to watch exactly what my digital cable box would send to my TV?

    You could use Elgato Systems' EyeTV product to view external video sources on your MBP.
    There is additional cost involved, but it would achive what you want. You can buy the Hybrid product, and connect your external DVD player via Composite (red, white and yellow connectors) to your MBP via the EyeTV.
    http://www.elgato.com/index.php?file=products_eyetvhybridna&PHPSESSID=3c4e16afe5 0303162b285a6f70791f86

  • How Do I Use my MacBook Pro to Watch a DVD From External DVD Player

    Hello Everyone!
    While waiting for Apple TV to become available in my place of work, I want to use my MacBook Pro monitor for watching a DVD movie played on an external DVD player. The DVD player I have is an LPC-D1000, which is a new model. While Mac has its own DVD player, I'm trying to make use of my LG DVD player. If that's possible, please guide me on how to do it.
    Thank you.

    You could use Elgato Systems' EyeTV product to view external video sources on your MBP.
    There is additional cost involved, but it would achive what you want. You can buy the Hybrid product, and connect your external DVD player via Composite (red, white and yellow connectors) to your MBP via the EyeTV.
    http://www.elgato.com/index.php?file=products_eyetvhybridna&PHPSESSID=3c4e16afe5 0303162b285a6f70791f86

  • How do I use my Macbook pro retina display as a monitor for a PC?

    How do I use my Macbook pro retina display as a monitor for a PC?

    MacQueries wrote:
    How do I use my Macbook pro retina display as a monitor for a PC?
    Unfortunately, that is not possible. The computer only can "output" your display image, it cannot "input" an image from an external computer and display it on your MacBook's retina display.

  • How do i use my macbook pro as a fax

    how do i use my macbook pro as a fax

    I bought a US Robotics USB modem that has a phone jack.  I then went into Settings, and set it up as a fax.  I can RECEIVE, but haven't really tried to send, although I do have access to a scanner.  I do have to physically jack into the wall to receive.  I do not know if I (or anyone else) can do this wirelessly. 
    The modem is 56K, and relatively cheap...I think I paid $25 or less for it.
    bkb

  • I to use iphoto library manager to save corrupted iphoto and each time it saves some and the first time it brings up iphoto, iphone goes into "not responding" mode.  Using mac book pro, iphoto 9.5.1, and maverick 10.9.2.

    I've had issues with my iPhoto "not responding" and as a result I am attempting to save my photos to an external hard drive using iPhoto library Manager but each time I start the program it saves some, and then when it starts iPhoto, iPhoto then goes into not responding mode. Using mac book pro, iphoto 9.5.1, and maverick 10.9.2. I have completed all of the photo library first aid steps several times, but it makes no difference, iphoto eventually goes to "not responding."  Initial issues started with Time Machine back ups stopping because of iphoto. Thanks......

    Do you have a back up?
    If you're just trying to recover the photos you can do that much more simply:
    Go to your Pictures Folder and find the iPhoto Library there. Right (or Control-) Click on the icon and select 'Show Package Contents'. A finder window will open with the Library exposed.
    Look there for a Folder called 'Originals' or 'Masters'. (varies according to the version of iPhoto)
    Your photos are inside - these are the originals as imported from your camera.

  • Comparing video quality of AVCHD BluRay discs using Final Cut Pro Share vs Compressor

    Up front, I will admit to being a newbie when it comes to using Final Cut Studio 3 and would appreciate some feedback from the Apple forum experts.
    I have spent a lot of time trying to determine how to achieve an optimum group of Compressor 3.5.2 settings so that the playback video quality of an AVCHD BluRay disc is equal to or better than one created by using the simpler auto settings of FCPro Share, version 7.0.2.
    When using Compressor’s auto/default maximum settings, I experienced the same error message reported in:
    Error MessageDuring Creation of Blu-ray Disc in FCP and Compressor 3.5
    https://discussions.apple.com/message/12073794#12073794
    I have since made some Compressor AVCHD Discs with smaller bit rate settings and compared video quality with a single FCP Share AVCHD disc.  Both seem to be equal in providing a very good video when viewed on my new Panasonic DMP BDT 310 BluRay player. However, the Compressor AVCHD discs show some motion artifacts not present with the FCPro Share version, especially when scrolling text or when objects are moving through the field of view, and visible artifacts are seen from a stationary chain link fence and other lattice work in the background of the video sample.
    My sample video used for the comparisons between Compressor and FCP Share discs is a 21 minute duration home movie, originally captured from a mini DV, Canon HV30 1080i camcorder using ProRes HQ encoding(1440x1080), and dragged into FC Pro 7.0.2 timeline where 10 chapter markers have been inserted. 
    To create an AVCHD disc using FCPro Share, Markers are used to set the IN and OUT points, Select IN to OUT from the timeline, pull down File Menu Share, Select Create BluRay from options in pop out Share pane, and designate output device along with picture files for Background, Logo, and Title options. When these are completed, click on Export.  My 21-minute video required almost two hours for encoding including about 10 minutes for burning. This accomplished on an iMac 3.06 GHz Intel Core 2 Duo.
    To prepare this same 21-minute video for use with Compressor, I again Select IN to Out from the FCPro timeline, but this time use File Export as a QuickTime Self Contained movie including Chapter markers. Then Open Compressor, choose Create BluRay from Template pane, right click on the down arrow in the Batch window and load the QT self contained movie file. From there I went to the Inspector window and tried various combinations of bit rate settings along with Frame Encoder options such as Better or Best motion parameter controls.
    I have tried the following combinations of Bit rate settings along with varying Frame Encoder controls and burned an AVCHD disc for each example:
    Example A
    Compressor set to 6 Mbps Average and 8Mbps Maximum, Frame Encoder settings OFF. Approximately 4 hours to encode although the time remaining estimator indicated a larger value of ~7 hours; not an accurate estimator at all. 
    Example B
    Compressor set to 6 Mbps Average and 8Mbps Maximum, Frame Encoder settings ON, using “Better (Linear Filter) and Better (Motionadaptive)” settings. Approximately 4 hours to encode, not the 13 hours that were estimated.
    Conclusion: Comparing A & B Compressor versions, Disc B showed some improvements in reducing motion artifacts over Disc A.
    Example C
    Compressor set to 13 Mbps Average and 15 Mbps Maximum, Frame Encoder settings ON, using “Better (Linear Filter) and Better (Motion adaptive)” settings. Multipass checked. DeInterlace was checked. Unknown hours to encode; about 8 hours done overnight..
    Conclusion: Disc C showed some minor improvements reducing motion artifacts over Disc B
    Example D
    Compressor Auto settings,i.e., 15 Mbps Average and 17 Mbps Maximum, Frame Encoder settings ON, using “Better (Linear Filter) and Better (Motion adaptive)” settings. Multipass checked. Approximately 12 hours to encode, done overnight. Inserted disc next morning after the overnight encoding was completed, and a few minutes later an error message pane appeared that the maximum bit rate had been exceeded.  This message was consistent with the Apple posted thread referenced above. Unfortunately the long overnight encoding was wasted.
    It seemed to me that the best Compressor settings for suppressing the motion artifacts were displayed by the disc burned in Example C, i.e.,  13/15 Ave/Max Mbps with“Better” Motion settings in the Frame Encoder.
    However, when this disc was compared to the AVCHD Disc burned using the FCPro Share, the latter still seemed much better. I do not know what the auto bit rate values are as set in FC Pro, but for me, the quality is quite good AND the motion artifacts are significantly reduced, especially evident with the scrolling text.
    Sorry about this long post, but I thought the detail would be necessary for the experts, and maybe helpful to others trying to get started in this BluRay arena.  Did I misuse Compressor?  I think the sample video exported as a self contained QT movie was the right thing to do?  Not sure where I went wrong.
    Thanks in advance for Feedback and Recommendations.  For now, I’m going to stay with the simpler process using Final Cut Pro Share function.
    BoBo

    Thank You, Brad, for responding;  glad to hear I'm not the only one having similar Compressor issues.  
    You may have hit on something.  Perhaps Compressor's use of H.264 encoding was the reason for my motion artifacts?  And perhaps Final Cut Pro Share retains the 1440x1080 quality as it burns the AVCHD BluRay disc?
    I had Toast 10 for less than 30 days a couple of years ago, and was lucky to get a refund.
    What version of Toast do you have?  Wondering if new Toast 11 has improved previous bugs, especially upgrading its Chapter text, pictures, music.  I would go back to Toast if it came close to mirroring DVD Studio Pro, or even iDVD capabilities.
    Thanks,
    BoBo

  • I am using Adobe XI Pro and in various parts of the document there is brown / biege lettering when on the document it shows as black.  My printer guy has been in and checked it out top to bottom and that part is fine.  I have tried to print the same docum

    I am using Adobe XI Pro and in various parts of the document there is brown / biege lettering when on the document it shows as black.  My printer guy has been in and checked it out top to bottom and that part is fine.  I have tried to print the same document and it comes out fine.  Any ideas ?   Using Windows 7 Service Pack 1

    Sorry my bad.  I have tried to print the same document on another printer and all the formatting is fine. 

Maybe you are looking for