Re: Stored procedures unter Windows XP mit Oracle ODBC Treiber 10.01.0

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Hallo Silvio,

mit jeder ORACLE Clientversion wird automatisch ein ORACLE ODBC-Treiber
installiert.

Also ist es nicht nötig, separat einen ORACLE ODBC-Treiber zu installieren.

Verwende den Treiber, der schon auf dem System installiert ist.

Über ADO kannst Du das nicht beeinflussen.

mit freundlichen Grüssen

Klaus Sobel

Microsoft Developer Support EMEA

"Silvio Wangler" <SilvioWangler@xxxxxxxxxxxxxxxxxxxxxxxxx> schrieb im
Newsbeitrag news:D77C8741-1F3E-4A3F-A7D8-FBD33856F33C@xxxxxxxxxxxxxxxx
> Hallo NG,
>
> Wir portieren eine ActiveX Applikation von Windows NT 4 nach Windows XP.
> Dabei wurde auf Windows XP auch ein neuer ODBC Treiber von Oracle (Version
> siehe Subject) installiert, welcher uns beim Aufruf der Stored Procedure
> grosse Mühe bereitet.
>
> Beim Execute des ADO Commands hängt sich die Applikation auf und muss via
> Task Manager abgeschossen werden. Auch das angegebene Command Timeout
> reagiert nicht nach abgelaufer Zeit und wir erhalten keine Fehlermeldung.
> Im
> ODBC Trace sieht man das die Stored Proc zwar aufgerufen aber nie beendet
> wird. Es scheint so als bliebe man in der C-API SQLExecDirectW hängen.
>
> Kennt jemand von euch das Problem? Gibt es die Möglichkeit ADO statt
> SQLExecDirectW (für Unicode) SQLExecDirect aufrufen zu lassen?
>
> [VB 6 Listing]
> Public Function StartePruefung(ByRef s_GeVoNr As String, ByRef s_Rolle As
> String) As Boolean
>
> Dim cmdCommand As ADODB.Command
> Dim prmGeVoNr As ADODB.Parameter
> Dim prmRolle As ADODB.Parameter
>
> On Error GoTo ErrHandler
>
> Set cmdCommand = New ADODB.Command
>
> cmdCommand.ActiveConnection = db_Regeln
> cmdCommand.CommandType = adCmdStoredProc
> cmdCommand.CommandText = "regel_interpreter.kick_interpreter"
>
> Set prmGeVoNr = cmdCommand.CreateParameter("verarb_nr_in", adVarChar,
> adParamInputOutput, 13)
> Set prmRolle = cmdCommand.CreateParameter("mandant_in", adVarChar,
> adParamInputOutput, 10)
>
> prmGeVoNr.Value = CDbl(s_GeVoNr)
> prmRolle.Value = s_Rolle
>
> cmdCommand.Parameters.Append prmGeVoNr
> cmdCommand.Parameters.Append prmRolle
>
> cmdCommand.CommandTimeout = 30 ' 30 secs
>
> cmdCommand.Execute ' hier bleibt das Programm hängen
>
> StartePruefung = CBool(db_Regeln.Errors.Count = 0)
>
> Exit Function
>
> ErrHandler:
>
> MsgBox "Fehler bei der Prüfung: " & Err.Description, vbCritical +
> vbOKOnly, App.ProductName
>
> StartePruefung = False
> End Function
>
> [ODBC Trace Ausschnitt]
> ScoringX b20-d30 ENTER SQLExecDirectW
> HSTMT 01781BA8
> WCHAR * 0x013D7650 [ -3] "{ call
> regel_interpreter.kick_interpreter(?, ?) }\ 0"
> SDWORD -3
>
>


.



Relevant Pages

  • Hope springs eternal...
    ... ORACLE to the ADO component ... greater value doesn't translate very well in Delphi. ... you can specify the connection information on a Command item. ...
    (borland.public.delphi.database.ado)
  • Re: ADO.NET and ODBC { CALL ..... } Syntax
    ... > Coonecting to Oracle 8i DB running on Unix ... > OleDB connection with provider as MSDAORA. ... > the same way as it works in ADO arena. ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: ADO.NET and ODBC { CALL ..... } Syntax
    ... > Coonecting to Oracle 8i DB running on Unix ... > OleDB connection with provider as MSDAORA. ... > the same way as it works in ADO arena. ... You should really only do this at design-time, or with a command you will ...
    (microsoft.public.dotnet.framework.adonet)
  • ADOrs from Oracle StoredProc. Cannot *correctly* pass params into db.
    ... knowledge when working with Oracle SP's. ... Dim sLOCN As String 'street/address number ... Dim objParam1 As New ADODB.Parameter ... street_no in varchar2, street_name in varchar2); ...
    (microsoft.public.vb.database.ado)
  • Re: Table open times and rowsize discontinuity
    ... some manner related to ADO or the tool you are using. ... Puget Sound Oracle Users Groupwww.psoug.org- Hide quoted text - ... For the array fetching, the only parameter I can find in the ADO ... exceeding the SDU and the MTU. ...
    (comp.databases.oracle.misc)