Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Oracle error ORA-06550. PLS-00306

Oracle error ORA-06550. PLS-00306

Scheduled Pinned Locked Moved ASP.NET
databasehelpcsharpsharepointoracle
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    newbie net
    wrote on last edited by
    #1

    I am getting the error "ORA-06550: line 1, column 7: PLS-00306 Wrong number or type of arguments in call to SP_NAME. I am calling the procedure SP_NAME and i am giving the same number and type of arguments The stored procedure executes perfectly when i run in the sql plus Here is my .net code OraConn.Open() lCmd.Connection = OraConn lCmd.CommandText = "MADDIE.SP_NAME" lCmd.CommandType = CommandType.StoredProcedure Dim oParm As OracleParameter oParm = New OracleParameter("zInst", OracleType.Varchar) oParm.Direction = ParameterDirection.Input oParm.Value = pInst lCmd.Parameters.Add(oParm) oParm = New OracleParameter("zTempId", OracleType.Varchar) oParm.Direction = ParameterDirection.Input oParm.Value = pTempId lCmd.Parameters.Add(oParm) oParm = New OracleParameter("zRecCnt", OracleType.Int32) oParm.Direction = ParameterDirection.Output lCmd.Parameters.Add(oParm) oParm = New OracleParameter("zExCode", OracleType.Number) oParm.Direction = ParameterDirection.Output lCmd.Parameters.Add(oParm) oParm = New OracleParameter("zExMsg", OracleType.Varchar,500) oParm.Direction = ParameterDirection.Output lCmd.Parameters.Add(oParm) oParm = New OracleParameter("zExDetail", OracleType.Varchar,500) oParm.Direction = ParameterDirection.Output lCmd.Parameters.Add(oParm) oParm = New OracleParameter("zCursor", OracleType.Cursor) oParm.Direction = ParameterDirection.Output lCmd.Parameters.Add(oParm) Try Dim lDA As New OracleDataAdapter(lCmd) Dim lDS As New DataSet() lDA.Fill(xDataSet) OraConn.Close() The Stored procedure starting is as follows. CREATE OR REPLACE PROCEDURE "MADDIE"."SP_NAME" ( iInst IN VARCHAR2, iTempId IN VARCHAR2, ORecCount OUT INTEGER, OExceptionCode OUT NUMBER, OExceptionMsg OUT VARCHAR2, OExceptionDetail OUT VARCHAR2, OCursor OUT MADDIE.MADDIE_CURSOR.CURSOR_TYPES ) Is eExitNoException EXCEPTION; eExitWithException EXCEPTION; lRecCount integer; lExceptionCode NUMBER; lExceptionMsg VARCHAR2(500); lExceptionDetail VARCHAR2(500); lSPID varchar(50); lInvalidParm BOOLEAN; lCursor MADDIE.MADDIE_CURSOR.CURSOR_TYPES; begin sO ON.. Can anybody help me on this??

    _ R 2 Replies Last reply
    0
    • N newbie net

      I am getting the error "ORA-06550: line 1, column 7: PLS-00306 Wrong number or type of arguments in call to SP_NAME. I am calling the procedure SP_NAME and i am giving the same number and type of arguments The stored procedure executes perfectly when i run in the sql plus Here is my .net code OraConn.Open() lCmd.Connection = OraConn lCmd.CommandText = "MADDIE.SP_NAME" lCmd.CommandType = CommandType.StoredProcedure Dim oParm As OracleParameter oParm = New OracleParameter("zInst", OracleType.Varchar) oParm.Direction = ParameterDirection.Input oParm.Value = pInst lCmd.Parameters.Add(oParm) oParm = New OracleParameter("zTempId", OracleType.Varchar) oParm.Direction = ParameterDirection.Input oParm.Value = pTempId lCmd.Parameters.Add(oParm) oParm = New OracleParameter("zRecCnt", OracleType.Int32) oParm.Direction = ParameterDirection.Output lCmd.Parameters.Add(oParm) oParm = New OracleParameter("zExCode", OracleType.Number) oParm.Direction = ParameterDirection.Output lCmd.Parameters.Add(oParm) oParm = New OracleParameter("zExMsg", OracleType.Varchar,500) oParm.Direction = ParameterDirection.Output lCmd.Parameters.Add(oParm) oParm = New OracleParameter("zExDetail", OracleType.Varchar,500) oParm.Direction = ParameterDirection.Output lCmd.Parameters.Add(oParm) oParm = New OracleParameter("zCursor", OracleType.Cursor) oParm.Direction = ParameterDirection.Output lCmd.Parameters.Add(oParm) Try Dim lDA As New OracleDataAdapter(lCmd) Dim lDS As New DataSet() lDA.Fill(xDataSet) OraConn.Close() The Stored procedure starting is as follows. CREATE OR REPLACE PROCEDURE "MADDIE"."SP_NAME" ( iInst IN VARCHAR2, iTempId IN VARCHAR2, ORecCount OUT INTEGER, OExceptionCode OUT NUMBER, OExceptionMsg OUT VARCHAR2, OExceptionDetail OUT VARCHAR2, OCursor OUT MADDIE.MADDIE_CURSOR.CURSOR_TYPES ) Is eExitNoException EXCEPTION; eExitWithException EXCEPTION; lRecCount integer; lExceptionCode NUMBER; lExceptionMsg VARCHAR2(500); lExceptionDetail VARCHAR2(500); lSPID varchar(50); lInvalidParm BOOLEAN; lCursor MADDIE.MADDIE_CURSOR.CURSOR_TYPES; begin sO ON.. Can anybody help me on this??

      _ Offline
      _ Offline
      _AK_
      wrote on last edited by
      #2

      The Parameters what you are passing is not correct that is why you are getting the error. Correct them. :)

      Best Regards, Apurva Kaushal

      1 Reply Last reply
      0
      • N newbie net

        I am getting the error "ORA-06550: line 1, column 7: PLS-00306 Wrong number or type of arguments in call to SP_NAME. I am calling the procedure SP_NAME and i am giving the same number and type of arguments The stored procedure executes perfectly when i run in the sql plus Here is my .net code OraConn.Open() lCmd.Connection = OraConn lCmd.CommandText = "MADDIE.SP_NAME" lCmd.CommandType = CommandType.StoredProcedure Dim oParm As OracleParameter oParm = New OracleParameter("zInst", OracleType.Varchar) oParm.Direction = ParameterDirection.Input oParm.Value = pInst lCmd.Parameters.Add(oParm) oParm = New OracleParameter("zTempId", OracleType.Varchar) oParm.Direction = ParameterDirection.Input oParm.Value = pTempId lCmd.Parameters.Add(oParm) oParm = New OracleParameter("zRecCnt", OracleType.Int32) oParm.Direction = ParameterDirection.Output lCmd.Parameters.Add(oParm) oParm = New OracleParameter("zExCode", OracleType.Number) oParm.Direction = ParameterDirection.Output lCmd.Parameters.Add(oParm) oParm = New OracleParameter("zExMsg", OracleType.Varchar,500) oParm.Direction = ParameterDirection.Output lCmd.Parameters.Add(oParm) oParm = New OracleParameter("zExDetail", OracleType.Varchar,500) oParm.Direction = ParameterDirection.Output lCmd.Parameters.Add(oParm) oParm = New OracleParameter("zCursor", OracleType.Cursor) oParm.Direction = ParameterDirection.Output lCmd.Parameters.Add(oParm) Try Dim lDA As New OracleDataAdapter(lCmd) Dim lDS As New DataSet() lDA.Fill(xDataSet) OraConn.Close() The Stored procedure starting is as follows. CREATE OR REPLACE PROCEDURE "MADDIE"."SP_NAME" ( iInst IN VARCHAR2, iTempId IN VARCHAR2, ORecCount OUT INTEGER, OExceptionCode OUT NUMBER, OExceptionMsg OUT VARCHAR2, OExceptionDetail OUT VARCHAR2, OCursor OUT MADDIE.MADDIE_CURSOR.CURSOR_TYPES ) Is eExitNoException EXCEPTION; eExitWithException EXCEPTION; lRecCount integer; lExceptionCode NUMBER; lExceptionMsg VARCHAR2(500); lExceptionDetail VARCHAR2(500); lSPID varchar(50); lInvalidParm BOOLEAN; lCursor MADDIE.MADDIE_CURSOR.CURSOR_TYPES; begin sO ON.. Can anybody help me on this??

        R Offline
        R Offline
        Ramasubramaniam
        wrote on last edited by
        #3

        Check the size also. Ram

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups