Unix Technical Forum

OCI problem

This is a discussion on OCI problem within the Oracle Miscellaneous forums, part of the Oracle Database category; --> I'm studing OCI, and got a problem. I wrote a small program that calls oracle procedure and prints the ...


Go Back   Unix Technical Forum > Database Server Software > Oracle Database > Oracle Miscellaneous

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-08-2008, 12:20 PM
Victor Polukcht
 
Posts: n/a
Default OCI problem

I'm studing OCI, and got a problem.

I wrote a small program that calls oracle procedure and prints the
result.

The program code is posted to pastebin:

http://pastebin.ca/364875

The text of oracle procedure is:

create or replace PROCEDURE TEST ( param1 IN VARCHAR2, param2 OUT
VARCHAR2)
AS
BEGIN
param2 := param1;
END TEST;

But while running it, i got segfault. It is very strange, i can't
understand why. Can anybody help me to find a error?

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-08-2008, 12:20 PM
Laurenz Albe
 
Posts: n/a
Default Re: OCI problem

Victor Polukcht <vpolukcht@gmail.com> wrote:
> I'm studing OCI, and got a problem.
>
> I wrote a small program that calls oracle procedure and prints the
> result.
>
> But while running it, i got segfault. It is very strange, i can't
> understand why. Can anybody help me to find a error?


Use a debugger to analyze the core dump.

If the segmentation fault is in your code, fix it.

If the segmentation fault is in Oracle's code, open a service request.

Yours,
Laurenz Albe
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-08-2008, 12:20 PM
Mathias Waack
 
Posts: n/a
Default Re: OCI problem

Victor Polukcht wrote:

> I'm studing OCI, and got a problem.
>
> I wrote a small program that calls oracle procedure and prints the
> result.
>
> The program code is posted to pastebin:
>
> http://pastebin.ca/364875


Why not here?

> But while running it, i got segfault. It is very strange, i can't
> understand why. Can anybody help me to find a error?


At least a stack trace would be helpful.

Mathias
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-08-2008, 12:20 PM
Victor Polukcht
 
Posts: n/a
Default Re: OCI problem

On Feb 20, 8:57 pm, Mathias Waack <M.Wa...@gmx.de> wrote:
> Victor Polukcht wrote:
> > I'm studing OCI, and got a problem.

>
> > I wrote a small program that calls oracle procedure and prints the
> > result.

>
> > The program code is posted to pastebin:

>
> >http://pastebin.ca/364875

>
> Why not here?


I think most of readers use web-interface, so it's not a problem to
open a link. Btw, there are 112 lines of code.

>
> > But while running it, i got segfault. It is very strange, i can't
> > understand why. Can anybody help me to find a error?

>
> At least a stack trace would be helpful.


Actually i'm not looking for suggestions how to debug. The problem is
that i was doing everything according to dauby OCI documentation and
examples from companion cdrom. But that code doesn't work. May be you,
or somebody else can give me a small working example of binding
strings and calling pl/sql procedures?

> Mathias


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 04-08-2008, 12:20 PM
Ana C. Dent
 
Posts: n/a
Default Re: OCI problem

"Victor Polukcht" <vpolukcht@gmail.com> wrote in
news:1171995323.698812.179310@t69g2000cwt.googlegr oups.com:

> On Feb 20, 8:57 pm, Mathias Waack <M.Wa...@gmx.de> wrote:
>> Victor Polukcht wrote:
>> > I'm studing OCI, and got a problem.

>>
>> > I wrote a small program that calls oracle procedure and prints the
>> > result.

>>
>> > The program code is posted to pastebin:

>>
>> >http://pastebin.ca/364875

>>
>> Why not here?

>
> I think most of readers use web-interface, so it's not a problem to
> open a link. Btw, there are 112 lines of code.
>
>>
>> > But while running it, i got segfault. It is very strange, i can't
>> > understand why. Can anybody help me to find a error?

>>
>> At least a stack trace would be helpful.

>
> Actually i'm not looking for suggestions how to debug. The problem is
> that i was doing everything according to dauby OCI documentation and
> examples from companion cdrom. But that code doesn't work. May be you,
> or somebody else can give me a small working example of binding
> strings and calling pl/sql procedures?
>
>> Mathias

>


check out http://asktom.oracle.com for many fine coding examples
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 08:15 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com