Having problem or error on this parameter "ResultSet    In Out ResCursor"

This is the stored procedure,
Procedure RetrieveReservations(pProperty In Varchar2,
pResHeaderId In Varchar2,
pEmail In Varchar2,
pPasswd In Varchar2,
               ResultSet In Out ResCursor);
This is the old .asp code (part of it)
     objConn.ConnectionString = Application("BackEndConnection_ConnectionString")
     objConn.Open
     objComm.ActiveConnection = objConn
     objComm.CommandText = "internet_package.RetrieveReservations"
     objComm.CommandType = adCmdStoredProc
     objComm.Parameters.Append objComm.CreateParameter("pProperty", adVarChar , adParamInput, 8, Request.QueryString("propid"))
     objComm.Parameters.Append objComm.CreateParameter("pResHeaderId", adVarChar, adParamInput, 32, Request.QueryString("confirmnum"))
     objComm.Parameters.Append objComm.CreateParameter("pEmail", adVarChar, adParamInput, 64, sUserID)
     objComm.Parameters.Append objComm.CreateParameter("pPasswd", adVarChar, adParamInput, 16, sPwd)
     'objComm.Parameters.Append objComm.CreateParameter("pMsg", adVarChar, adParamInput, 8)
     Set objRS = objComm.Execute
This is my code (part of it)
Private strOracleString = "Data Source=PMS2;User Id=pmstrain;Password=pmstrain;Integrated Security=no;"
oraconn = New OracleConnection(strOracleString)
oracmd = New OracleCommand
oracmd.Connection = oraconn
oracmd.CommandText = "internet_package.RetrieveReservations"
oracmd.CommandType = CommandType.StoredProcedure
oracmd.Parameters.Add("pProperty", OracleType.VarChar, 8, Session("propid")).Direction = ParameterDirection.Input
oracmd.Parameters.Add("pResHeaderId", OracleType.VarChar, 32, Session("confirmnum")).Direction = ParameterDirection.Input
oracmd.Parameters.Add("pEmail", OracleType.VarChar, 64, sUserID).Direction = ParameterDirection.Input
oracmd.Parameters.Add("pPasswd", OracleType.VarChar, 16, sPwd).Direction = ParameterDirection.Input
My problem is the fifth parameter ... see the stored procedure ...
this is the error message when I try to run and debug it ...
"ORA-06550: line 1, column 7:
PLS-00306: wrong number or types of arguments in call to 'GETDAILYRATES'
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
My question is how do I fix this error ? what specific data provider should I use?
We have already use System.Data.OracleClient, System.Data.OleDB, Oracle.DataAccess.Client, and Oracle.DataAccess.Type
We are using Visual Studio 2003 (ASP.NEt-VB.NET), Oracle 8 or 9 (not sure with this version)
Message was edited by:
user560312

ResCursor is the datatype ... while Resultset is the variabel ...not sure about ... I am knowledgeable in oracle ... these stored procedures and asp were supplied by the client ...
I was able to correct the error but thers is a problem with the results of the stored procedures ... it does not return any values at all
here are my new codes ... we used ODP.NET version Release 9.2.0.7.0
which imports Oracle.DataAccess.Client and Oracle.DataAccess.Types
Imports Oracle.DataAccess
Dim odcmd As Oracle.DataAccess.Client.OracleCommand
Dim odda As Oracle.DataAccess.Client.OracleDataAdapter
Dim oddr As Oracle.DataAccess.Client.OracleDataReader
Dim odconn As Oracle.DataAccess.Client.OracleConnection
sUserID = Session("UserID")
sPwd = Session("Password")
Session("propid") = "314"
Session("confirmnum") = "314027819"
odconn = New Oracle.DataAccess.Client.OracleConnection(strOracleDataaccessString)
odconn.Open()
odcmd = New Oracle.DataAccess.Client.OracleCommand
odcmd.CommandText = "internet_package.RetrieveReservations"
odcmd.CommandType = CommandType.StoredProcedure
odcmd.Connection = odconn
odcmd.Parameters.Add("pProperty", Oracle.DataAccess.Client.OracleDbType.Varchar2, 8, Session("propid"), ParameterDirection.Input)
odcmd.Parameters.Add("pResHeaderId", Oracle.DataAccess.Client.OracleDbType.Varchar2, 32, Session("confirmnum"), ParameterDirection.Input)
odcmd.Parameters.Add("pEmail", Oracle.DataAccess.Client.OracleDbType.Varchar2, 64, sUserID, ParameterDirection.Input)
odcmd.Parameters.Add("pPasswd", Oracle.DataAccess.Client.OracleDbType.Varchar2, 16, sPwd, ParameterDirection.Input)
odcmd.Parameters.Add("ResultSet", Oracle.DataAccess.Client.OracleDbType.RefCursor, ParameterDirection.InputOutput)
odda = New Oracle.DataAccess.Client.OracleDataAdapter(odcmd)
Dim ds As New DataSet
Dim dt As New DataTable
odda.Fill(ds)
oddr = odcmd.ExecuteReader
If Not ds Is Nothing Then
If ds.Tables.Count > 0 Then
If ds.Tables(0).Rows.Count > 0 Then
Else
Me.dgrReservation.Visible = False
Me.lblList.Visible = True
Me.lblList.Text = "None"
End If
Else
Me.dgrReservation.Visible = False
Me.lblList.Visible = True
Me.lblList.Text = "None"
End If
Else
Me.dgrReservation.Visible = False
Me.lblList.Visible = True
Me.lblList.Text = "None"
End If
While oddr.Read
If oddr.FieldCount > 0 Then
oddr.GetOracleString(0)
oddr.GetString(0)
End If
End While
...both dataset and datatable return 0 rows
Message was edited by:
user560312

Similar Messages

  • I copied my PS CS5 Plug Ins folder into my CS6  one & it started having problems opening & errors...

    I copied my PS CS5 Plug Ins folder into my CS6  one & it started having problems opening & errors... would someone be able to tell me what the basic/original ones should be in PS CS^6 Plug In folder please?

    That would be any other plug-ins you've installed after Photoshop.  Out of the box that folder is completely empty with Photoshop CS6.
    To be completely accurate, what you did wrong was that you copied plug-ins that were supplied by Adobe with the earlier version of Photoshop.  Those plug-ins logically conflict with the current ones Adobe supplies with Photoshop, which are now provided in another place.
    They've changed the folder structure, so no longer are any plug-ins supplied by Adobe put in that folder.  Hopefully for a future version update you can copy those you have in Photoshop CS6 without getting yourself into the same trouble.
    -Noel

  • I was having problems burning DVDs' fro iDVD and it turned out my burner is at fault I have a 27 inch iMac using a OPTIARC DVD RW AD-5680H. Where can I buy a replacement in UK?

    I was having problems burning DVDs' from iDVD and it turned out my burner is at fault.
    I have a 27 inch iMac using a OPTIARC DVD RW AD-5680H. Where can I buy a replacement in UK? I have seen these with SATA is this the correct cable for my mac?
    I have also tried the Mac superdrive but my imac wont recognise it as it's been configured for macbook air and mini mac. I know I can "make" it work by doing something or other in com.apple/plist, but dont want to mess about in there.
    I'm also told an external drive would work but does "mac compatible" mean only for air and mini as their own superdrive is or all macs?
    Any help appreciated before I convince myself mac is no better than windows pc!

    Thanks but this didn't really help.
    I can buy the drives at a dozen places but none of them seem to know what connection is correct (SATA etc) and that includes the apple store. It was the store who told me buy the superdrive and all my problems would be over. Wrong! It isn't recognised by imac as it's confifured for air and mini mac. Only way to make it work is as i said in earlier post. (Would you be happy buying a car you were told would start and then discover you have to open the bottome and fiddle to make it go?)
    The apple store I would not even consider taking it to. Days without the pc, over priced and don't have a good reputation for actually fixing things!
    But thanks

  • I am having problems with Apple tv radio. It cuts out after a few minutes this appears to have happened after update to IOS 8

    I Am having problems with the radio on the Apple TV cutting out after a few minutes. This has started to happen after software update to Ios8. Has anyone else had this problem and are Apple looking into fixing it?

    I am having the same problem also  Thought it was my network and reset everything including Apple TV but still the problem is there . I assume now it is down to iOS 8 prior to that was perfect

  • HI YANN/VADIM...Still having problem in BADIs...please help me out

    Hi Yann/Vadim,
    Facing a problem in BADI can u please help me out...
    I am implementing sourcing dashboard.
    I am facing problem while implementing the badi BBP_ECS_PO_OUT_BADI in SRM. and BBP_PO_INBOUND_BADI in R3.
    i have written following code in BBP_ECS_PO_OUT_BADI in SRM
    method IF_EX_BBP_ECS_PO_OUT_BADI~BBP_B46B_PO_OUTBOUND.
    data : ls_item type BBP_PDS_PO_ITEM_D.
    data : w_customer_fields type BBPS_IF_CUSTOMER_FIELDS_PI.
    move 'POITEM' to w_customer_fields-refobject.
    move 'CATALOGID' to w_customer_fields-fieldname.
    move ls_item-catalogid to w_customer_fields-container.
    append w_customer_fields to ct_bapi_customer_fields.
    endmethod.
    i have created field zsrmcatalogid field in R3 in EKPO table.and i am now implementing the Badi in R3 for BBP_PO_INBOUND_BADI .....in extended classic scenario.
    i have written following code in R3 BADI
    method IF_EX_BBP_PO_INBOUND_BADI~BBP_MAP_BEFORE_BAPI.
    data : wa_customer_fields type bbps_if_customer_fields,
    wa_bapi_te_mepoitem type bapi_te_mepoitem,
    wa_bapi_te_mepoitemx type bapi_te_mepoitemx,
    wa_extensionin type bapiparex.
    data : txt_960(960) type c.
    read table bbp_customer_fields into wa_customer_fields with key
    refobject = 'POITEM' fieldname = 'CATALOGID'.
    if sy-subrc eq 0.
    move wa_customer_fields-container TO
    wa_bapi_te_mepoitem-zsrmcatalogid.
    wa_bapi_te_mepoitemx-zsrmcatalogid = 'X'.
    endif.
    clear txt_960.
    clear wa_extensionin.
    write wa_bapi_te_mepoitem to txt_960 left-justified.
    wa_extensionin-structure = 'BAPI_TE_MEPOITEM'.
    wa_extensionin-valuepart1 = txt_960(240).
    wa_extensionin-valuepart2 = txt_960+240(240).
    wa_extensionin-valuepart3 = txt_960+480(240).
    wa_extensionin-valuepart4 = txt_960+720(240).
    append wa_extensionin to bapi_extensionin.
    clear txt_960.
    clear wa_extensionin.
    write wa_bapi_te_mepoitemx to txt_960 left-justified.
    wa_extensionin-structure = 'BAPI_TE_MEPOITEMX'.
    wa_extensionin-valuepart1 = txt_960(240).
    wa_extensionin-valuepart2 = txt_960+240(240).
    wa_extensionin-valuepart3 = txt_960+480(240).
    wa_extensionin-valuepart4 = txt_960+720(240).
    append wa_extensionin to bapi_extensionin.
    endmethod.
    But its not working...
    The PO details are not passed from SRM to R3.......
    PLEASE CAN U GIVE ME EXACT CODE FOR CHANGES TO BE MADE IN THIS BADI ..AS IT IS NOT WORKING...
    Can anybody help me regarding how to debug the BADI in R3.
    Thanks in Advance...

    Hi Ravi,
    You can transfer the standard SRM catalog ID field to R/3 tracking number field (if not already used for another purpose) in the R/3 PO.
    This will avoid to implement the R/3 inbound bapi.
    Here is an extract of the code.
    The ECS PO badi example was here used to transfer the unlimited delivery flag to R/3 PO for a Z combination of criteria as well as the transfer of <b>catalog ID</b> to <b>tracking number field</b> in R/3 PO :
    method IF_EX_BBP_ECS_PO_OUT_BADI~BBP_B46B_PO_OUTBOUND.
    update unlimited delivery flag in R3 PO for combination of vendor +
    Product Category maintained in the bespoke table ZUD_PC_VNDR ..
      LOOP AT ct_bapi_poitem INTO ls_bapi_poitem.
        lv_tabix = sy-tabix.
        IF ls_bapi_poitem-po_item IS NOT INITIAL.
          READ TABLE it_item INTO ls_item
               WITH KEY number_int = ls_bapi_poitem-po_item
                          del_ind    = ' '.
          IF sy-subrc = 0.
    Set Unlimited delivery Flag
            read table li_zud_pc_vndr into ls_zud_pc_vndr
                            with key partner       = ls_partner-PARTNER_ID
                                       category_id = ls_item-category_id.
            if sy-subrc eq 0.
              ls_bapi_poitem-UNLIMITED_DLV = 'X'.
            endif.
    Set the Dummy catalog.. entry..
            if ls_item-catalogid eq c_dummy.
              ls_bapi_poitem-TRACKINGNO = c_noncat.
            endif.
            ls_bapi_poitem-GR_BASEDIV = ' '.
            modify ct_bapi_poitem from ls_bapi_poitem index lv_tabix
                          transporting UNLIMITED_DLV TRACKINGNO GR_BASEDIV.
          ENDIF. "READ TABLE it_item ..
        ENDIF.   "IF ls_bapi_poitem-po_item ..
      ENDLOOP.   "LOOP AT ct_bapi_poitem ..
    endmethod.
    Kind regards,
    Yann
    PS : please do reward helpful answers ))

  • Having problems with error on xbox

    I keep getting a nat error on my xbox 360.need help fixing the problem

        Hi Lyn815!
    So sorry to learn you're having issues with your device! I'd love to help. I reviewed my references and I'm not showing that this is something that is a known issue with the device. Is there any physical or liquid damage? When did this begin? Please power off/on for a soft reset. If you're still having the issue, please follow these steps: http://vz.to/1tXBQVR and keep me posted!
    Thank you,
    ChristinaB_VZW
    VZW Support
    Follow us on Twitter @VZWSupport

  • I'm having problems with error message 404...so I thought I'd uninstall Firefox and try installing again, but it won't let me uninstall, ANY SUGGESTIONS????

    WHEN I CLICK ON MY FIREFOX ICON....I GET THIS LITTLE 1"X 1" BOX THAT LOOKS LIKE IT'S BRINGING UP THE PAGE, BUT IT DOESN'T GET ANY BIGGER THAN THAT LITTLE 1" BOX............HELP

    It is possible that your security software (firewall, anti-virus) blocks or restricts Firefox or the plugin-container process without informing you, possibly after detecting changes (update) to the Firefox program.
    Remove all rules for Firefox and the plugin-container from the permissions list in the firewall and let your firewall ask again for permission to get full unrestricted access to internet for Firefox and the plugin-container process and the updater process.
    See:
    *https://support.mozilla.org/kb/Server+not+found
    *https://support.mozilla.org/kb/Firewalls
    *https://support.mozilla.org/kb/fix-problems-connecting-websites-after-updating

  • Having problem submitting error report to Apple.

    I keep getting the message Submission failed.  Your report could not be submitted. Please try again later.  My email and internet both work so it's not a connection problem.  I have had this problem in the past and just never sent the report.

    Very strange. This doesn't fit my view of the world. Please, tell us if a reinstall worked.
    Otherwise one thing you could try is to open the application package, (Ctrl-click on the application and choose "See Package content".) Navigate to Contents > MacOS and double click on the icon there. That may "remind" MacOS that this is a MacOS X application.

  • Having problems passing more than one parameter with html:link tag

    Hi guys,
    for my web application I�m using Struts. I�ve got a database with user details. I would like to get users list and link to the details of each user. I wrote the code and everything is working fine only the users list is repeating as many times as users in the list.
    For ex: I have in the database User1, User2 and User3. I would like to have a result like:
    User1
    User2
    User3
    Instead of it I have the result like:
    User1
    User2
    User3
    User1
    User2
    User3
    User1
    User2
    User3
    What I�m doing wrong? Could somebody help me please?
    Thank you in advance
    There is a snippet of the code, which I�m using in jsp:
    <code>
    <logic:iterate id="root" name="user">               
                   <%
                        java.util.HashMap users = new java.util.HashMap();
                        params.put("user",root);
                        pageContext.setAttribute("usersName", users);
                   %>
                   <html:link name=" usersName " scope="page" page="/name.do">
                        <logic:iterate id="folder" name="user">
                             <bean:write name="folder" /><br>
                        </logic:iterate>
                   </html:link><br>
                   </logic:iterate>
    </code>

    Suggestion: next time you post code use the "CODE" button to put code tags around it. It formats much nicer that way :-)
    You have a nested loop structure here.
    <logic:iterate id="root" name="user">
      <%
        java.util.HashMap users = new java.util.HashMap();
        params.put("user",root);
        pageContext.setAttribute("usersName", users);
      %>
      <html:link name=" usersName " scope="page" page="/name.do">
        <logic:iterate id="folder" name="user">
          <bean:write name="folder" /><br>
        </logic:iterate>
      </html:link><br>
    </logic:iterate>Both loops iterate over your "user".
    Your first loop loops over each user.
    Then your second loop also loops over each user - hence you get number of users * number of users = 3 groups of 3.
    If you have 4 users, you would have 4 groups of 4.
    I only see you setting one parameter: "usersName" What other parameters do you need to pass?
    At a guess, the inner loop is unnecessary, and you want to write the users name as the text for the link, and also use it as a link parameter.
    <logic:iterate id="root" name="user">
      <%
        java.util.HashMap users = new java.util.HashMap();
        params.put("user",root);
        pageContext.setAttribute("usersName", users);
      %>
      <html:link name="usersName" scope="page" page="/name.do">
          <bean:write name="user" /><br>
      </html:link><br>
    </logic:iterate>

  • I am having problem with Error 0xE8000012 iPhone 4S when I connect to itunes.

    Please help me with
    Error 0xE8000012 iPhone 4S.

    What happened when you contacted iTunes support as directed?
    http://www.apple.com/support/itunes/contact/

  • Having problem with wireless symbol on my mac greys out allot but is still connected and working on the Internet. Does this mean anything?

    When my new mac is switched on (running lion) and on the Internet and working fine, occasionally the wireless symbol keeps greyish out but the Internet etc is still working fine. Does this mean anything?

    Hello,
    My first guess would be some kind of interference, any TVs, Phones, Microwaves, neighbors, etc. around?

  • Having problems passing more than one parameter with html:li nk tag

    Hi guys,
    for my web application I�m using Struts. I�ve got a database with user details. I would like to get users list and link to the details of each user. I wrote the code and everything is working fine only the users list is repeating as many times as users in the list.
    For ex: I have in the database User1, User2 and User3. I would like to have a result like:
    User1
    User2
    User3
    Instead of it I have the result like:
    User1
    User2
    User3
    User1
    User2
    User3
    User1
    User2
    User3
    What I�m doing wrong? Could somebody help me please?
    Thank you in advance
    There is a snippet of the code, which I�m using in jsp:
    <logic:iterate id="root" name="user">               
                   <%
                        java.util.HashMap users = new java.util.HashMap();
                        params.put("user",root);
                        pageContext.setAttribute("usersName", users);
                   %>
                   <html:link  name=" usersName " scope="page"  page="/name.do">
                        <logic:iterate id="folder" name="user">
                             <bean:write name="folder" /><br>
                        </logic:iterate>
                   </html:link><br>
                   </logic:iterate>

    Why do u need the first iterator
    <logic:iterate id="root" name="user">
    remove that and see the result.
    Bye.

  • I'm having problems opening  iPhoto, just this morning (was fine last night)..

    .... it asks 'What photo library do you want to use?' and asks me to select from a list but provides no options, though previously it automatically opened and showed all my events/pics... any advice very gratefully received please!

    Thanks Terence. A very basic f/ip question I'm afraid as I'm new to the Mac; could you talk me through how to find/restore from my backup?
    Nothing in pictures which makes me think I must have accidentally deleted it - so I'm hoping a restore from backup could be the key to recovering it.

  • Having problems in massachusetts

    I am in massachusetts and have just realized that anyone who has tried to call me today is getting a busy signal. I can call out just fine. I called AT&T twice. They told me they are working on the data network and that this can cause problems with the phone. Anyone else having problems in massachusetts?

    I can make calls out fine. I have called through my homeline and all i get is a busy signal. AT&T says they are working on the data network in Massachusetts and this can cause all sorts of problems.

  • Hi, so I keep having problems logging onto the iTunes store in iTunes and I get this error message: "iTunes could not connect to the iTunes Store. An unknown error occurred (0x80090318) Make sure your network connection is active and try again."

    Hi,
    So I keep having problems logging onto the iTunes store in iTunes where an error message pops up saying: "iTunes could not connect to the iTunes Store. An unknown error occurred (0x80090318) Make sure your network connection is active and try again."
    How do I fix this?

    Hey thatssoivi,
    If you are having an issue with being unable to connect to the iTunes store, I would suggest that you troubleshoot using the steps in this article - 
    iTunes for Windows: iTunes Store connection troubleshooting - Apple Support
    Thanks for using Apple Support Communities.
    Be well,
    Brett L 

Maybe you are looking for

  • Configuring automatic email notification in P6 EPPM?

    Please help to figure out, how to configure the P6 EPPM system that user would get automatic notification via e-mail when some important activity is started. For example - project which consist of 5 activities and when the 5th activity is starting us

  • Table statistics

    Greetings All, Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production Windows 2008 R2I had 18 unexplained columns appear on a table in one of the schemas. The column names are like SYS_000080$, SYS_000079$, ... Anybody know if g

  • How To: Lock a folder to prevent it being deleted but still access it?

    How can I lock a folder to prevent it from being moved or trashed but still have access to move/add folders within that folder? The scenario is that we have a daily jobs folder and a final jobs folder. The daily jobs folder was accidently moved into

  • How to hide/show images or master items?

    Hi, Just getting started in pages (on the free trial for now). So far I like the way items (e.g. images) can be placed as "master objects". I'm using this feature to insert my business logo and address, so that I can send a PDF which matches my lette

  • Mobility group same ssid multiple WLC

    I have a 4400 and a 5508 WLC in the same location We want to be able to roam between ap joined to both the 4400 and the 5508 using only one ssid Do I only need to create a mobility group and add both WLC then create only one WLAN on one of the contro