OCI_INVALID_HANDLE if use OraSQLMonitor and XMLTYPE

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
dimon_adv
Posts: 27
Joined: Mon 01 Feb 2010 09:36

OCI_INVALID_HANDLE if use OraSQLMonitor and XMLTYPE

Post by dimon_adv » Tue 30 Mar 2010 14:40

Oracle 11, Delphi2010
DB

Code: Select all

  procedure TST_XML(p_TSTXML SYS.XMLTYPE) is
  begin
    null;
  end;
In source use runtime create components:
procedure TForm3.btn1Click(Sender: TObject);
var
OraSes2: TOraSession;
begin
OraSes2 := TOraSession.Create(nil);
try
OraSes2.Username := 'PSO_DATA';
OraSes2.Password := 'test';
OraSes2.Server := 'dbserver';
OraSes2.Connect;
OraStoredProc1.Session := OraSes2;
OraStoredProc1.StoredProcName := 'PKG_PSO_TEMPLATE_DESCRIPTOR.TST_XML';
OraStoredProc1.Prepare;
OraStoredProc1.ParamByName('P_TSTXML').AsXML.OCISvcCtx := OraSes2.OCISvcCtx;
OraStoredProc1.ParamByName('P_TSTXML').AsXML.AsString := '';
OraStoredProc1.Execute;
finally
OraSes2.Free;
end;
end;
First run - OK
Second run -
---------------------------
Project3
---------------------------
OCI_INVALID_HANDLE.
---------------------------
ОК
---------------------------

If SQLMonitor.Active = False - OK All times.

bork
Devart Team
Posts: 649
Joined: Fri 12 Mar 2010 07:55

Post by bork » Fri 02 Apr 2010 07:11

Hello

Thank you for information. We have reproduced this problem and fixed it. This fix will be included in the next ODAC build.

Post Reply