Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Error ORA-06550 and PLS-00306

Error ORA-06550 and PLS-00306

From: Gerd Schuckar <gerd.schuckar_at_t-online.de>
Date: Mon, 18 Mar 2002 21:59:20 +0100
Message-ID: <3C965527.DCD05EDF@t-online.de>

Dear Sirs,

in the net, in Groups and in books, i don't find the answer for this problem. I have the folling code. When i run inSQL*Plus, i get the error message also when i start the code from vba via ADO. I was reading some news and some tipps in the net. But i didn't found a tipp, that really build a help for the problem. Whats wrong?

Dim OraConn As New ADODB.Connection
Dim RecSet As New ADODB.Record
Dim cmd As New ADODB.Command

Dim param1 As New ADODB.Parameter
Dim param2 As New ADODB.Parameter
Dim param3 As New ADODB.Parameter

Dim ArtNummer As Long
Dim objError As ADODB.Error

On Error GoTo err_test
Let ArtNummer = 14114

OraConn.ConnectionString = DB.ThisDatabase OraConn.Open

cmd.ActiveConnection = OraConn

Set param1 = cmd.CreateParameter("Artikel", adInteger, adParamInput, , ArtNummer)
cmd.Parameters.Append param1

Set param2 = cmd.CreateParameter("Fehler", adInteger, adParamOutput) cmd.Parameters.Append param2

cmd.CommandText = "{CALL pa_kalkulation.GetKalkRecords(?,?)}"

Set RecSet = cmd.Execute

Do While Not RecSet.EOF
MsgBox RecSet.Fields(0)
Loop
Exit Sub

err_test:

    MsgBox Error$
For Each objError In OraConn.Errors

    MsgBox objError.Description
Next
OraConn.Errors.Clear
Resume Next

End Sub

Received on Mon Mar 18 2002 - 14:59:20 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US