how to acess dbms_output in stored procedures

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
yomi1
Posts: 4
Joined: Sun 25 Apr 2010 20:40

how to acess dbms_output in stored procedures

Post by yomi1 » Mon 26 Apr 2010 04:02

Hello,
i'm evaluating acess from delphi to oracle and mysql.
My question is, if it's possible to access oracles dbms_output in stored procedures and how to do it.
Thank you for qour help
regards
markus

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

Post by bork » Tue 27 Apr 2010 07:10

Hello

Yes, you can use DBMS_OUTPUT for Oracle:

At first you should enable DBMS_OUTPUT:
begin
DBMS_OUTPUT.ENABLE(10000); // 10000 - size of buffer
end;

Execute the following script to put a line:
begin
DBMS_OUTPUT.put_line('test');
end;

Execute the following script to get a line:
begin
DBMS_OUTPUT.get_line(:line, :result);
end;

You can find more detailed information about this in the Oracle documentation.

yomi1
Posts: 4
Joined: Sun 25 Apr 2010 20:40

Post by yomi1 » Sun 02 May 2010 13:11

hello,
i tested it and it works well for me
Thanks for your help
I will buy unidac, great tool

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

Post by bork » Wed 05 May 2010 08:11

Hello

It is good to see that this problem has been solved. If any other questions come up, please contact me.

Post Reply