Wrox Programmer Forums
General .NET For general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums.  If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category. ** PLEASE BE SPECIFIC WITH YOUR QUESTION ** When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the General .NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old February 29th, 2008, 06:28 AM
Authorized User
Join Date: May 2005
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default oracle

im doing a stored procedure in vb.net 2005 using oracle(10g express edition)with the following commands.

        objCommand.CommandText = "bookpackagetest.usp_selectbook"
        objCommand.CommandType = CommandType.StoredProcedure
        objCommand.Parameters.Add("inSearchStr", OracleType.VarChar, searchText.Length).Value = searchText.ToString
        objCommand.Parameters.Add("results_cursor", OracleType.Cursor)
        objCommand.Parameters.Item(0).Direction = ParameterDirection.Output
        objDataAdapter = New OracleDataAdapter(objCommand)
        objDataAdapter.SelectCommand = objCommand
        objDataReaderBook = objCommand.ExecuteReader

however, i encountered the following error. pls help me find my mistake. thank you so much!

      Message="ORA-06550: line 1, column 7:
      PLS-00306: wrong number or types of arguments in call to 'USP_SELECTBOOK'
      ORA-06550: line 1, column 7:
      PL/SQL: Statement ignored"

create or replace package body bookpackagetest
   procedure usp_selectbook (inSearchStr IN VARCHAR,results_cursor out cursor_type)
    open results_cursor for
       select booklist.isbn,booklist.title,authors.author,bookli st.publisher,booklist.edition,
              booklist.purchasedate,booklist.copyright,booklist. category,booklist.copy
       from booklist left outer join authors on booklist.author_id=authors.author_id
            where upper(booklist.title) like inSearchStr;


Similar Threads
Thread Thread Starter Forum Replies Last Post
Oracle SOA, BPEL and Oracle worklist umeshtheone Pro Java 1 April 16th, 2008 11:01 PM
call oracle function using oracle link server vl SQL Server 2000 1 July 12th, 2007 08:19 AM
How to Read Oracle Data without Oracle being insta badrinarayanang Oracle 1 October 6th, 2005 06:34 AM
Connecting to Oracle without Oracle Client mahaveerar VB Databases Basics 0 February 22nd, 2005 05:18 PM
Connecting to Oracle without Oracle Client mahaveerar Excel VBA 0 February 22nd, 2005 03:55 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.