GetProcedureColumns doesn't distinquish between OUT param and Record column

HI. My problem is that when I do a getProcedureColumns call for
my stored procedure, I cannot distinquish between the stored
procedure OUT parameters and columns in the result set record. Both
are shown to be OUT parameters.
My stored procedure is defined as follows:
PROCEDURE MyProcedure
(state IN VARCHAR2, MyCur OUT MYPACKAGE.MyCurType, Zip OUT VARCHAR2) AS
BEGIN
     OPEN MyCur FOR SELECT ACT_NAME, ACT_STATUS from sysadm.act;
END;
and MyCurType is a REF cursor pointing to a result set
record which is defined as follows:
TYPE MyRec is RECORD
NAME VARCHAR2(100),
STATUS VARCHAR2(100)
AND the REF CURSOR is defined as follows:
TYPE MyCurType is REF CURSOR RETURN MyRec;
When I do getProcedureColumns on the procedure, I get the following:
COL_NAME COL_TYPE TYPE_NAME
STATE 1.0 VARCHAR2
MYCUR 4.0 REF CURSOR
<blank> 4.0 PL/SQL RECORD
NAME 4.0 VARCHAR2
STATUS 4.0 VARCHAR2
ZIP 4.0 VARCHAR2
As you can see, STATE, MYCUR, NAME, STATUS and ZIP are all shown as OUT columns. MYCUR is the only true OUT parameter, but I can't tell this. The reason I need to know this because I need to dynamically build the PrepareCall statment. Any help would be very greatly appreciated.
Thanks

It would somewhat help if you describe your MyCurType as just REF CURSOR:
type MyCurType is ref cursor;
Then, the number of parameters and the number of columns in the result set become equal (at least for me, though I use function with one OUT parameter (return result) and one IN parameter).
Also, you might want to check the field #5 of the getProcedureColumns's ResultSet: it is probably equal to # procedureColumnResult for NAME and STATUS in your case, and you might wish only account for procedureColumnIn(Out,InOut).
Unfortunately, all that might be useless for you if you are trying to do the same thing as I am. The reason is that Oracle driver returns 1111 (java.sql.Types.OTHER) as a type id for REF CURSOR from getProcedureColumns but it does not accept it back in registerOutputParameter(), contrary to the JDBC specification. It only accepts Oracle specific type oracle.jdbc.OracleTypes.CURSOR (-11) for REF CURSOR output parameters and I am not aware of any way to get it back from meta-info using JDBC standard :-(. Please let me know if you are aware of such a way.

Similar Messages

  • When trying to use icloud, my picture doesn't sync between my ipad and iphone.  Additionally, for photo sharing, my wife's icloud picture is mine. Why?

    Hello,
    I have an iPhone 5s (iOS 8.1) and an iPad 2 (iOS 8.1).  My wife has an iPhone 5 (iOS 8.0.2).  I have been trying to set up our icloud accounts  so that it will be ready when we buy a mac in January. 
    When I set up my icloud, the little circular picture that I used on my iPhone 5s did not sync up with the one on my iPad.  They are both under the same ID, but it would not automatically sync up.  Additonally, I set up a icloud phot album between my wife and I for pictures of our little one.  On my phone, when I go to "people" that are synced to that album, it shows my wife and myself, but they both have my picture.  And when I do the same on my iPad, it shows a blank for me but my picture for my wife.  Confused.  Can someone help?
    Thanks!!
    Derek

    This old thread might help you out.
    https://discussions.apple.com/thread/1108754
    There are also many applications that will grab data from your phone and download it to your computer without using iTunes. That might be the easiest solution. I suggest you check out http://www.macroplant.com. I have not used their software but it tends to be well reviewed.

  • Sync doesn't work between my mac and android

    Hi,
    I'm using FF 30 on both my mac and android. I had everything working fine on earlier versions of FF, but as I had to change my phone, I reinstalled FF, upgrading to FF30 in the process. Now I want to get my bookmarks etc back on the phone, so I set up an account on the android, connected to it, and connected to it with my mac as well. All the sync options seem to be checked correctly, I get no error message and both devices tell me I'm connected to my account. Still I can't get the bookmarks on the android. Can you please help me out ?
    Cheers

    If you open the Sync settings on desktop does the settings say "Pair a Device" below the account info? See attached screen shot.
    If so then unlink the device. Restart Firefox and then reconnect the desktop computer to Sync. If not reply and I'll follow up with the Android side.

  • ICal doesn't sync between my iphone and macbook pro

    It takes several hours for my iCal entries to show up on my iPhone, and yet many entries are still incorrectly identified by color (not picking up edits from laptop on iPhone). My iPhone is set to push updates every 15 minutes, and my laptop .Mac preference is to update automatically. Even when I plug in to laptop and sync in iTunes, it does not update iCal from my laptop to my iPhone.
    The Apple store geniuses completely replaced my MobileMe account a few weeks ago since they could not get my laptop & iPhone to sync and hadn't been since I opened the account last summer (apparently neither were talking to the cloud). Compared to not working at all, it synced much better after that, though inconsistently and with delay. Help me!!

    On your Mac, go to sytem preferences and click on the icloud icon.  Turn on iCloud.
    When prompted, enter your Apple ID for iCloud. If you don't see a prompt, click the Apple icon at the top left of your screen and choose System Preferences. Click iCloud, enter your Apple ID, and select the services you’d like to enable.
    One of the services is ICal. 

  • How to register OUT param to  RECORD type for STORED PROCEDURE???

    hi
    i have a SP like this
    CREATE OR REPLACE PACKAGE P1 AS
    TYPE g_con_ref_cursor is REF CURSOR ;
    TYPE g_con_error IS RECORD
      error_code NUMBER,
      error_desc varchar2(2000)
    PROCEDURE PROC_CURSOR
    (i_str_userid  IN VARCHAR2,
      o_cur_ref_cur OUT g_con_ref_cursor,
      o_rec_error   OUT g_con_error,
      o_num_status  OUT NUMBER);
    END;and now i am trying to call this SP using my java program
    i am able to register the out put params for 2nd and 4 th variable
    my doubt is how i can register the output param for 3rd (g_con_error) which is of record type
    and how i can get result from this ????
    my java program is like this
    Connection connection = DatabaseHelper.prepareConnection();
    CallableStatement proc = connection.prepareCall("{ call P1.PROC_CURSOR(?, ?, ?, ?) }");
    proc.setString(1,"jn26557");
    proc.registerOutParameter(2,oracle.jdbc.driver.OracleTypes.CURSOR);
    proc.registerOutParameter(3,???,????); //HOW TO SET  THIS ?????
    proc.registerOutParameter(4,oracle.jdbc.driver.OracleTypes.NUMERIC);
    proc.execute();plz help me in this
    i have no idea how to do it
    any help would be appreciated
    Thanks in advance
    Jaya Prakash Nalajala

    You might give a try using:
    proc.registerOutParameter(3, java.sql.Types.REF, "RECORD");

  • Between SAP Licenses and Employee Records Realtinship

    Hi Experts
    <u>The Scenario of the issue is as below.</u>
    <b>SAP Licenses held by the company is -- numbers.
    And the employee records including PD(appraisal),PA  & OM exceeds the allowed records numbers.</b>
    Qn1 Whats the realtion between SAP license and records ?
    Qn2 How to go about in this scenario?
    Qn3. Should i prioritise the existance of records in appraisals and delete the least priority after consulting the client?anyway OM & PA records should not be deleted.
    Please throw some light on the issue.

    Abhilash,
    Usually the SAP Licenses are with respect to named users and their rights to the system....
    If you have N licences of various types and M employees accessing SAp ( M > N ) then it will be an issue .. usually for services like ESS - you have a licence called employee user and for more access you have professional licenses etc...
    You could check the type of licenses that the company has and the number of licenses of each type and also the Contract signed with SAP as to the licensing policy..
    Arun
    Hope it helps...

  • OLS    AND    VPD Column Masking.

    I have gone over a couple of sources on OLS and VPD.
    BTW I am working with Oracle 11g R1.
    What I am trying to accomplish is cell level protection. Where cell is defined as the intersection between a row and a column.
    OLS will get me the proper row restrictions.
    VPD has the ability to do Column Masking.
    Has anyone mix the two to accomplish cell level protection?
    Basic examples would be GREATLY appreciated.

    Hi again. Thank you for your reply, but I wanted to achieve cell-level security as I'm trying to create conception of fine-grained processing data with different levels of confidentiality. Here is what I have:
    - I created 3 levels of confidentiality: J < P < T (Unclassified < Confidential < Secret)
    - I created a table and here is how it looks for different users:
    User with T-level authorization:
    !http://img709.imageshack.us/img709/1847/screentj.png!
    User with P-level authorization (can't see T-level data):
    !http://img704.imageshack.us/img704/4002/screenp.png!
    I did that by creating two policies on two columns with data:
    CREATE OR REPLACE FUNCTION f_data01 (schema in varchar2, tab in varchar2) -- or "CREATE OR REPLACE FUNCTION f_data02" for second column
      RETURN varchar2 AS
        predicate         varchar2(2000);        -- the VPD 'where' clause
        session_lab        varchar2(4000);        -- the current user's session label
        session_tag        number;            -- numerical expression of session label
        t_sa_user_name    varchar2(2000);        -- only users with Labels are examined, others don't get access.
    BEGIN
      session_lab := sa_session.label('cells');        -- the current user's session label for that policy
      session_tag := char_to_label('cells',session_lab);    -- numerical expression of session label
      predicate := 'dominates(' || session_tag || ',CDATA01)=1'; -- or "predicate := 'dominates(' || session_tag || ',CDATA02)=1';" for second column
      return predicate;
    END;I asked if it is possible to create one policy with variable instead of column name (ex. CDATA01) or if there is another way to get that effect.
    And is it good practice to put column with labels in one table with data?
    Thank you in advance.
    Edited by: arc.undcvr on 2010-01-23 22:50

  • I am trying to create a simple animated gif in Photoshop. I've set up my frames and want to use the tween to make the transitions less jerky. When I tween between frame 1 and frame 2 the object in frame two goes out of position, appearing in a different p

    I am trying to create a simple animated gif in Photoshop. I've set up my frames and want to use the tween to make the transitions less jerky. When I tween between frame 1 and frame 2 the object in frame two goes out of position, appearing in a different place than where it is on frame 2. Confused!

    Hi Melissa - thanks for your interest. Here's the first frame, the second frame and the tween frame. I don't understand why the tween is changing the position of the object in frame 2, was expecting it to just fade from one frame to the next.

  • I am using photos . I add a camera and make my photos slide in.  How do I add a second behavior to the photo to make it slide out.  I want the photo to hold on the screen for a few seconds in between sliding in and sliding out.

    I am using photos in Motion 5.  I add a camera and make my photo slide in.  How do i add a second behavior to the photo to make it slide out?  I want the photo to hold for a few seconds in between sliding in and sliding out.  When I am trying to do this  I am not getting the photo to hold, i am making one continuous motion which I do not want.
    Thanks

    Are you using the "motion path" behavior? If so just duplicate it and drag it down the timeline to where you want it to start. Trim it to end at the end of the project. The gap you leave in the timeline between the two behaviors is your hold time. Not sure why you are using a camera unless you have a behavior on the camera.If you are using keyframes just set two keyframes at the same position values in the inspector for the hold time.

  • I put a windows xp cd in my mac book pro and rebooted the mac,mac doesn't start up any more and the cd doesn't come out,what can I do now?

    I put a windows xp cd in my macbook pro and rebooted the mac,mac doesn't come up any more and the cd doesn't come out,what can I do now?

    Hossein,
    As Guido said, you can  use BootCamp to partition the drive. If you want to install, or reinstall Windows. You would launch BootCamp and it will actually guide you through the installation, you will only need to decide how large a partition you want. I would use BootCamp, I would not use disk utility. When you have installed Windows and you want to boot into windows, when you start your MBP hold down the option key, this will give you trha option of booting Mac OSX or Windows.
    Joseph

  • What's the difference between shut down and log out?

    Hi,
    I have a MacBook Air and will sell it.
    I like to take out my name but don't know how.
    What will happen if I Log Out (my name comes after that)?
    What's the difference between Shut down and Log out?
    Help please,
    Thanks

    Welcome to the Apple Support Communities
    The shut down turns off the Mac and a log out closes your user and take your computer to the log in screen. To sell the Mac, you have to reinstall Mac OS X erasing the disk. Open  > About this Mac and copy Version

  • The plastic hinge between my screen and the computer (macbook pro retina) is cracked and doesn't hold the screen anymore? Can Apple change it?

    The hinge between my screen and my computer (macbook pro retina) has cracked and doesn't hold the screen anymore. Can I fix it without changing my screen. And if it's still on guarantee does Apple have to repair it?

    Apple can fix any and all of their computers.  Whether it would be charged to you would be the question.   Do you have AppleCare?
    Accidental damage is not covered by AppleCare.
    How old is this computer?

  • How can I reduce the width between search results and the preview fly-out?

    Hello, I am using a custom masterpage that reduces the overall width of page content but I am seeing an issue with my enterprise search site. The search results look fine but there is a large horizontal gap between the results and document preview window
    (when mousing over a word/excel/powerpoint result). This means that the preview fly-out is hardly visible unless the user scrolls horizontally to the right. Can someone tell me how to set a reduced width between the results web part and the preview window?
    Example:

    I think the issue is with the Callout orientation, have you customized the page and if so then you can customize the callout.
    check "beakOrientation" and you can set values like topBottom, leftRight as per your requirement.
    see here for more information -
    http://msdn.microsoft.com/en-us/library/office/dn135236(v=office.15).aspx
    Hope this helps!
    Ram - SharePoint Architect
    Blog - SharePointDeveloper.in
    Please vote or mark your question answered, if my reply helps you

  • My SD video keeps jumping between the upper and lower frames. So the video starts frame blending and blurring in and out.

    My SD video keeps jumping between the upper and lower frames.  So the video starts frame blending and blurring in and out.  The sequence settings are set to
    Editing Mode: DV NTSC 29.97 frames/second. 
    Pixel Aspect Ration: D1/DV NTSC (0.9091)
    Fileds: Lower Field First
    Display Format: 30fps Non-Drop-Frame Timecode
    720 x480

    What is the source of your video, and exactly what is inside your video?
    Report back with the codec details of your file, use the programs below... A screen shot works well to SHOW people what you are doing
    http://forums.adobe.com/thread/592070?tstart=30 for screen shot instructions
    Free programs to get file information for PC/Mac http://mediaarea.net/en/MediaInfo/Download

  • When I am on a call and I come to hang up, the phone which when to my ear has a black screen, starts to light up then blacks out intermittently and in the brief moments it is lit up, the hang up button doesn't work unless I press home or lock buttons firs

    When I am on a call and I come to hang up, the phone which when to my ear has a black screen, starts to light up so I can see and click the hang up button, but it then blacks out intermittently and in the brief moments it is lit up, the hang up button doesn't work unless I press the home or lock buttons first

    Wow- thanks Jim! I removed the case and voila... it worked. Knock on wood that you solved my problem with such an incredibly simple solution. I'll find out where this proximity sensor is and make sure my case does not interfere with it.
    Thanks so much.
    Annick

Maybe you are looking for

  • Apps lying about iPad compatibility in iTunes store

    Hi! I recently bought an app (Unicode & Emoji Universal Keyboard by iPhoneBestSoft.com) from the iTunes store that said it was compatible with iPad, but when I installed it, it is only compatible with iPod touch or iPhone. I'm pretty annoyed that I h

  • Images not displayed properly jv:imageButton tag

    Images are not displayed jv:imageButton tag. I am able to see the images sometimes, but not consistently. I have followed the steps mentioned from the Platform RI. I was able to see the images without any problem before Beta 3/JDev R1 uptake. I had m

  • BAPI used to fetch / display Documents from Repository

    Hi Please let me know the BAPI used to fetch / dispaly Data from DMS Repository. Also, do let me know the inputs required. I have tried - BAPI_DOCUMENT_CHECKOUTVIEW (but while executing is always displays - 300 The Knowledge Provider is using documen

  • [SOLVED] All applications lost in Arch Linux Gnome.

    All installed softwares are not accessible even through terminal I am not sure where I made the mistake. But the Gnome application menue was empty in my system. I was installing cairo dock when this happened. I added the following lines in /etc/pacma

  • Mac and PC on Airport

    I am trying to connect a PC and Macbook Pro to the internet using the airport express. I have a cable broadband ISP. The PC was "wired" (basic modem/ethernet direct to PC). Everything worked fine. Installed the airport, followed set-up. The Mac recog