Using Refcursor in Callable Statement without using the Oracle Drivers

Hello all,
Is there anyway to have a stored procedure (Oracle 8i) return a refcursor to my CallableStatement without using the Oracle Thin drivers (i'm now using jdbcodbc). I've tried registering my out parameter with every possible type i can think of...REF, JAVA_OBJECT, OTHER, etc. but with no luck.
Help!!!!

Certainly...I connect to the database using the
jdbcodbc driver and when i execute any of the code, i
get the following error:
java.sql.SQLException: [Oracle][ODBC][Ora]ORA-06550:
line 1, column 7:
PLS-00306: wrong number or types of arguments in call
to 'PVISUAL_GET'
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
It's bombing on the line that i attempt to register
OracleTypes.CURSOR. It works fine when i use the
oracle thin drivers, but i want to get this puppy
working with the JdbcOdbcDriver. Here's the code:
CallableStatement dbCall =
nt dbCall =
(CallableStatement)connection.prepareCall("{ call
PAK_VISUAL_GET.pvisual_get(?, ?, ?, ?, ?, ?) }");
dbCall.setString(1, sessionKey);
dbCall.setInt(2,
l.setInt(2, Integer.parseInt(storedVizID));
dbCall.registerOutParameter(3,
arameter(3, OracleTypes.CURSOR);
dbCall.registerOutParameter(4,
arameter(4, OracleTypes.NUMBER);
dbCall.registerOutParameter(5,
arameter(5, OracleTypes.VARCHAR);
dbCall.registerOutParameter(6,
arameter(6, OracleTypes.NUMBER);
dbCall.execute();when you don't use oracle thin driver, you cannot use the OracleTypes. but, instead use the java.sql.Types values.Replace dbCall.registerOutParameter(3, OracleTypes.CURSOR); with
dbCall.registerOutParameter(3,java.sql.Types.OTHER). things should be fine.
Ganesh

Similar Messages

  • Inserting multiple rows using a single Insert statement without using dual

    Hi all,
    i am trying to insert multiple rows using a single insert statement like the below one.
    The below one works fine..
    But is there any other change that can be done in the below one without using dual...
    insert all
    into ps_hd_samp (num1,num2) values (1,1)
    into ps_hd_samp (num1,num2) values (2,2)
    into ps_hd_samp (num1,num2) values (3,3)
    select 1 from dual;

    NiranjanSe wrote:
    Hi all,
    i am trying to insert multiple rows using a single insert statement like the below one.
    The below one works fine..
    But is there any other change that can be done in the below one without using dual...
    insert all
    into ps_hd_samp (num1,num2) values (1,1)
    into ps_hd_samp (num1,num2) values (2,2)
    into ps_hd_samp (num1,num2) values (3,3)
    select 1 from dual;
    SQL> create table ps_hd_samp (num1 number,num2 number);
    Table created.
    SQL> insert all
      2  into ps_hd_samp (num1,num2) values (1,1)
      3  into ps_hd_samp (num1,num2) values (2,2)
      4  into ps_hd_samp (num1,num2) values (3,3)
      5  select count(*)
      6  from ps_hd_samp;
    3 rows created.
    SQL> select * from ps_hd_samp;
          NUM1       NUM2
             1          1
             2          2
             3          3

  • Hello everyone. I currently have an iphone which is part of a 3 people family plan therefore we use the same apple id. So my question is can I use my own apple id without affecting the fact we have a family plan?

    Hello everyone. I currently have an iphone which is part of a 3 people family plan; therefore we were told we need to use the same apple id. So my question is can I use my own apple id without affecting the fact we have a family plan? I would like to make my own app store purchases with my own credit card and not my sisters fiance since we are using his apple id.  PLEASE HELP ME SOMEONE!

    qnzsh0rty20 wrote:
    therefore we were told we need to use the same apple id.
    Whoever told you that has no idea what they're talking about. Ignore that advise.

  • Can I create an apple id that my mother can use to download free books without using my personal apple id that I used when set her ipad up with originally?

    Can I set up another user id that my mother can use to download free books without using my personal apple id that I used to set up her ipad with originally?

    Other options:
    Download the Amazon Kindle app and set your mother up with an Amazon account.  Amazon has a lot of free ebooks.
    Many public libraries allow you to check out audio and ebooks using the Overdrive app.

  • Create database table using Forms Developer 6/6i without using SQL*Plus

    hello there,
    I need help in creating tables in Oracle using Forms Developer 6/6i without using SQL*Plus interface.
    your help is appreciated
    email: [email protected]

    please use Forms_ddl package to create a table dynamically
    from the Developer6/6i.
    you can check the success or failure by using the
    form_success builtin.
    if u want to avoid using the Forms_ddl package
    use stored procedure or create a sql querry record group.
    regards
    sriram.

  • How can i use an existing vpn connection without using the option "Send all traffic over vpn connection"?

    I have been trying to get my computer (os x.7) to astablish a remote desktop connection to my work computer via a vpn tunnel. In fact I have just discovered that it works fine if i select to "send all traffic over vpn connection" from the options in the advanced setup of the vpn.
    If the option is selected microsofts "Remote desktop connection for mac" works just fine. However without selecting the option it is not taking advantage of the tunnel but tries to connect as if the tunnel would not exist.
    Now the question is how do I get program to use the vpn tunnel without checking the above option?
    Thanks for any hints and pointers.

    Then can her computer be authorized to both accounts?
    Absolutely. You can authorize any given computer to up to five iTunes Store accounts.
    If purchases are made on her account, to a computer authorized to my account, can I put those songs on my iPod?
    If you connect your iPod to her computer, yes. Tracks download only to the computer from which they're purchased, regardless of which iTunes Store account is used for the purchase. Or you could copy the tracks from her computer to yours and then authorize your computer to her iTunes Store account. But that's sort of defeating the original purpose, it would seem to me.
    is it better to buy music through Amazon downloads and/or actually purchasing CDs to avoid the security features iTunes puts on its music?
    That's certainly an option. If it's an entire album I want, I buy CDs. That way I can import them at the quality I want and to whichever of my systems I want. Amazon or one of the other download stores that offer tracks as MP3 are also an option, though for me download stores are best when you just want a couple of tracks off a given CD.

  • Use HCM processes and Forms without using the Enterprise Portal

    is it possible to leverage existing HR Admin Services (HCM processes and Forms) functionality without using the Enterprise Portal?
    1) Create an Adobe form and Interface using SFP
    2) Set up ISR and Form Scenario
    3) Set up Forms configuration to use existing Backend and generic Services
    4) Set up workflow to updated Backend using Services
    is it possible to do the above steps and not use the Portal? If Yes, how do we present the forms to the Manager, and provide different buttons that appears on the Portal by default?
    Any ideas will be greatly appreciated.
    Thanks,
    Saurabh

    Hi Saurabh,
    your assumptions and findings (items can not be started from the backend workflow inbox etc.) are correct: These processes can not be started without the Portal and it is not intended to do this.
    The above mentioned backend report are only forseen for implementation and testing purposes and not for productive use.
    In addition to the fact, that you already can't execute the work items a lot of other features of the framework (Process Browser etc.) are only available through the Portal.
    Best Regards
    Michael Bonrat - Solution Manager HCM Processes and Forms
    Info about HCM Processes and Forms:
    www.service.sap.com/erp: 
    - SAP ERP Human Capital Management -> Workforce Process Management -> HCM Processes and Forms

  • Select statement without using Rownum or Rowid

    Hi,
    I have a requirement where I have delete the first 100 records from table without using the rownum or rowid.
    Thanks to all for your time
    Narain

    Hi
    delete from yourtab x where (select count(*) from yourtab where yourpk <= x.yourpk) < 101;HTH
    Laurent Schneider
    OCM DBA

  • How to set client within SQL statement without using another pl/sql stmt.

    I have a following select statement
    SELECT SUM (w.prior_forecasted_costs + w.prior_committed_costs)
    FROM xxsuf.job_cost_summary_table w,
    apps.pa_periods p,
    pa.pa_resources bz,
    pa.pa_resource_list_members cz,
    pa.pa_tasks dz
    WHERE w.project_id = z.project_id
    AND w.task_id = dz.task_id
    AND dz.task_number '98000'
    AND w.resource_list_member_id = cz.resource_list_member_id
    AND cz.resource_id = bz.resource_id
    AND NOT EXISTS (SELECT NULL
    FROM pa.pa_tasks zz
    WHERE zz.parent_task_id = dz.task_id)
    AND w.resource_list_member_id != 1000
    AND p.period_name = w.pa_period
    AND p.current_pa_period_flag = 'Y'
    Above select statement uses pa_periods view which only works when I set my client using "exec DBMS_Application_Info.set_client_info(83);" in Toad or SQL*Plus session.
    I was wondering how can I achieve it within select statement. so that I don't have to use another PL/SQL statement to set my client. Is there anyway to set client with my org id within above select statement ?
    Please advise.
    --Rakesh                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    You can simply create a function which calls dbms_application_info and use that in your sql statement as in
    SQL> create or replace function set_client_info (i_info varchar2)
       return varchar2
    as
    begin
       dbms_application_info.set_client_info (i_info);
       return i_info;
    end set_client_info;
    Function created.
    SQL> create or replace view v_emp
    as
      select * from emp where empno = to_number(sys_context('userenv','client_info'))
    View created.
    SQL> select ename from v_emp where set_client_info(7788) is not null
    ENAME    
    SCOTT    
    1 row selected.
    SQL> select ename from v_emp where set_client_info(7900) is not null
    ENAME    
    JAMES    
    1 row selected.

  • Case sensitivity select statement without using native sql

    please help me ,
    i have a selection screen as select-options : s_vbeln, s_kunnr(mandt),s_matnr and
    p_name as a parameter (type name1) which is case sensitive in sap abap database and i want to get
    output  from these fields in an alv.[vbeln,kunnr,name1,audat,auart,matnr,kwmeng,netwr]
    How to do it? Can any one give me solution please.[i have to handle case sensitivity plz give me solution]

    this is my code : but its not working as i expected plz tell me where did i went wrong...
    type-pools slis.
    tables : vbak , vbap.
    select-options : s_vbeln for vbak-vbeln,
                     s_kunnr for vbak-kunnr,
                     s_matnr for vbap-matnr.
    parameters p_name1 type NAME1_GP.
    ranges r_name for kna1-name1.
    types : begin of ty_vbak,
            vbeln type vbeln_va,
            audat type audat,
            auart type auart,
            kunnr type kunnr,
            end of ty_vbak,
            begin of ty_vbap,
            vbeln type vbeln_va,
            matnr type matnr,
            netwr type netwr_ap,
           kwmeng type kwmeng,
            end of ty_vbap,
            begin of ty_kna1,
            kunnr type kunnr,
            name1 type name1,
            end of ty_kna1,
            begin of ty_final,
            vbeln type vbeln_va,
            audat type audat,
            auart type auart,
            matnr type matnr,
            netwr type netwr_ap,
           kwmeng type kwmeng,
            kunnr type kunnr,
            name1 type name1,
            end of ty_final.
    data : t_vbak type standard table of ty_vbak initial size 1,
           t_vbap type standard table of ty_vbap initial size 1,
           t_kna1 type standard table of ty_kna1 initial size 1.
    data : t_final type standard table of ty_final initial size 1,
           w_final type ty_final,
           w_vbap  type ty_vbap,
           w_kna1  type ty_kna1,
           w_vbak  type ty_vbak.
    data : t_fcat type slis_t_fieldcat_alv,
           w_fcat type slis_fieldcat_alv.
    DATA T_FINAL2 TYPE STANDARD TABLE OF TY_FINAL INITIAL SIZE 1.
    data v_name1 type name1.
    if p_name1 is not initial.
    r_name-sign = 'I'.
    r_name-option = 'EQ'.
    if p_name1 ca '*'.
    r_name-option = 'CP'.
    endif.
    r_name-low = p_name1.
    append r_name.
    endif.
    start-of-selection.
    select vbeln audat auart kunnr from vbak
    into table t_vbak
    where vbeln in s_vbeln and
          kunnr in s_kunnr.
    if sy-subrc <> 0.
    message 'plz enter a valid entry' type 'I'.
    leave list-processing.
    endif.
    if t_vbak[] is not initial.
    select vbeln matnr netwr kwmeng from vbap
    into table t_vbap
    for all entries in t_vbak
    where vbeln = t_vbak-vbeln and
    matnr in s_matnr.
    if sy-subrc <> 0.
    message 'no rec found' type 'I'.
    leave list-processing.
    endif.
    select kunnr name1 from kna1
    into table t_kna1
    for all entries in t_vbak
    where kunnr = t_vbak-kunnr.
    if sy-subrc = 0.
    sort t_kna1 by kunnr.
    endif.
    endif.
    end-of-selection.
    loop at t_vbap into w_vbap.
    read table t_vbak into w_vbak with key vbeln = w_vbap-vbeln binary search.
    read table t_kna1 into w_kna1 with key kunnr = w_vbak-kunnr binary search.
    w_final-vbeln = w_vbak-vbeln.
    w_final-audat = w_vbak-audat.
    w_final-auart = w_vbak-auart.
    w_final-matnr = w_vbap-matnr.
    w_final-netwr = w_vbap-netwr.
    w_final-kwmeng = w_vbap-kwmeng.
    w_final-kunnr  = w_kna1-kunnr.
    w_final-name1  = w_kna1-name1.
    append w_final to t_final.
    endloop.
    delete t_final where name1 not in r_name.
    perform sub_fill_fcat using 'VBELN' 'SALE ORDER NUM'.
    perform sub_fill_fcat using 'KUNNR' 'CUSTOMER NUMBER'.
    perform sub_fill_fcat using 'NAME1' 'NAME OF A CUST'.
    perform sub_fill_fcat using 'AUDAT' 'SALE ORDER DATE'.
    perform sub_fill_fcat using 'AUART' 'SALE DOC TYPE'.
    perform sub_fill_fcat using 'MATNR' 'MATERIAL NUM'.
    perform sub_fill_fcat using 'KWMENG' 'QUANTITY'.
    perform sub_fill_fcat using 'NETWR' 'PRICE'.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
      EXPORTING
        IT_FIELDCAT                       = T_FCAT
      TABLES
        T_OUTTAB                          = T_FINAL
    EXCEPTIONS
       PROGRAM_ERROR                     = 1
       OTHERS                            = 2
    IF SY-SUBRC <> 0.
    * Implement suitable error handling here
    ENDIF.
    *&      Form  SUB_FILL_FCAT
    *       text
    *      -->P_0389   text
    *      -->P_0390   text
    FORM SUB_FILL_FCAT  USING P_FNAM P_TEXT.
    clear w_fcat.
    w_fcat-fieldname = p_fnam.
    w_fcat-seltext_m = p_text.
    append w_fcat to t_fcat.
    ENDFORM.

  • Can't use backspace in ncurses programs without using ctrl

    Heya
    Anyone know how to use the backspace in ncurses programs without the need to press ctrl? If I don't it just gives me "^?", I've tried setting "urxvt*backarrowKey: false/true" but it doesn't help.
    Any help with this annoyance would be appreciated.

    Honken wrote:
    Heya
    Anyone know how to use the backspace in ncurses programs without the need to press ctrl? If I don't it just gives me "^?", I've tried setting "urxvt*backarrowKey: false/true" but it doesn't help.
    Any help with this annoyance would be appreciated.
    Just for the heck of it, try using the number 127 instead of KEY_BACKSPACE or what ever your'e using in your if statement or select statement.  I would have thought it would be the number 08 which is the ascii code for backspace but that didn't work.  Try it and see if it works.  If it does, I'll let you know what steps I took to try and find it. 
      I used the numbers 13 and 27 in my program instead of KEY_RETURN and KEY_ESC, since neither of those worked.  KEY_RETURN required a <shift><return> to work properly which is similar to your problem.

  • Can I use iWork '09 on Lion without using new Lion features?

    I do not wish to use the new features in Lion, primarily autosave, with iWork, at least initially.  In other words have iWork act as it would in S.L.   However, I need to purchase iWork in order to continue using a bunch of Appleworks spreadsheets.  I am using a new MBP with OS 10.7.1.  My plan is to purchase the hard copy iWork '09 from the Apple Store (the AppStore download versions have already been updated).  This CD should be some version of 9.0 as they have not put 9.1 on the CD.  My idea is to just not let the modules (Numbers, Pages, etc.) get updated until I am ready.  My question is -- will Numbers and Pages work properly on Lion without using the final update to the new Lion Features, and which updates to Numbers and Pages should I avoid?
    Any help is appreciated. 

    Sjazbec wrote:
    Resume can be disabled systemwide in Systemsettings, general section.
    Alas, it's reactivated when we shutdown if we don't take care to uncheck the dedicated box.
    More, if we ask to restart on an other device, we have no checkbox available to disable Resume.
    Happily, it seems that pressing option during the shutdown process disable the beast.
    Yvan KOENIG (VALLAURIS, France) vendredi 16 septembre 2011 18:49:31
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.0
    My iDisk is : <http://public.me.com/koenigyvan>
    Please : Search for questions similar to your own before submitting them to the community

  • Using text in a GUI without using .swing classes

    In a Java application, is there any way to create a text object that can be positioned in a GUI like an ImageIcon (using a class from the standard Java API)? For example, when using ImageIcon, you feed the x and y-coordinates, whereas with .swing, you'd have to create a new panel, position the panel, and re-position the panel using BorderLayout.(direction).
    Ex. (with ImageIcon, you'd place it like so):
    //construct ImageIcon w/ URL
    ImageIcon myImage = new ImageIcon(new URL("http://..."));
    //x and y are pixels to the right and to the bottom from the top left corner
    myImage.paintIcon( (Component), (Graphics), x, y);
    //I'm looking for one that does the same, like this (without using an image, preferrably), TextMessage is what the class might be:
    TextMessage myText = new TextMessage("Here is some string to print out");
    myText.printText( (Component), (Graphics), x, y)

    or you can paint a string, like this
    public void paint(Graphics g) {
         super.paint(g);
         g.drawString("Hello World!", x,y);  // replace x, y with your own coordinates
    }hope that helps

  • Can I use photoshop cc and bridge without using lightroom

    Generally i prefer to ignore lightroom and start from Bridge.  I am currently using CS5.  Said another way, if i purchase PS CC do i have to use lightroom?

    Yes, you can use Photoshop+Bridge without using Lightroom.
    You can subscribe to the Photography Package for $9.99/month, use Photoshop and Bridge and ignore Lightroom.

  • Using toshiba canvio hard drive without using time machine

    Has anyone used the Toshiba Canvio external hard drive to save files to without using time machine?  I want to move files off of my computer onto the external drive not just duplicate all the files on my computer as a backup.

    I guess the external drive is hanging off the Mac..
    Getting access to the drive from PC should be possible.. you may need to move public directory onto the external drive and then set up permissions to do it.. I have not done it and simply would not do it.
    External hdd are cheap enough buy one for the pc.. That is then formatted NTFS which windows is going to natively read.. this will be much easier if the backups are ever required than to use HFS+ formatted disk hanging off the Mac.
    You can also get your dead TC fixed.
    https://sites.google.com/site/lapastenague/a-deconstruction-of-routers-and-modem s/apple-time-capsule-repairers

Maybe you are looking for