<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Pro*C error in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/pro-c-error/m-p/3377388#M863965</link>
    <description>See the following Note on Metalink:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&amp;amp;p_id=95532.1" target="_blank"&gt;http://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&amp;amp;p_id=95532.1&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Yes, you must not have any boolean as a function parameter: you can transform the boolean parameter into an integer for exemple...</description>
    <pubDate>Mon, 13 Sep 2004 03:31:09 GMT</pubDate>
    <dc:creator>Eric Antunes</dc:creator>
    <dc:date>2004-09-13T03:31:09Z</dc:date>
    <item>
      <title>Pro*C error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pro-c-error/m-p/3377385#M863962</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I do not know whether this is the right place for this if no then please bear with me.&lt;BR /&gt;&lt;BR /&gt;I am trying to compile a Pro*C program on hpux which was compiled and was running on tru64. When I compile it on hpux I get the following error:&lt;BR /&gt;========================&lt;BR /&gt;Precompiling liborah24.pc&lt;BR /&gt;        /opt/oracle/OraHome1/bin/proc sqlcheck=full userid=scott/tiger@ian   mode=ansi  `echo -DTRUE=1 -DFALSE=0    | sed "s/-D/define=/g"` `echo  -DPOSIX_4D9 -D_OSF_SOURCE -D_XOPEN_SOURCE=500  | sed "s/-D/define=/g"` include=../libgen include=/opt/oracle/OraHome1/precomp/public include=.  liborah24.pc&lt;BR /&gt;&lt;BR /&gt;Pro*C/C++: Release 9.2.0.4.0 - Production on Mon Sep 13 10:22:16 2004&lt;BR /&gt;&lt;BR /&gt;Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.&lt;BR /&gt;&lt;BR /&gt;System default option values taken from: /opt/oracle/OraHome1/precomp/admin/pcscfg.cfg&lt;BR /&gt;&lt;BR /&gt;Error at line 678, column 5 in file liborah24.pc&lt;BR /&gt;    EXEC SQL&lt;BR /&gt;....1&lt;BR /&gt;PLS-S-00306, wrong number or types of arguments in call to '&amp;gt;='&lt;BR /&gt;Error at line 678, column 5 in file liborah24.pc&lt;BR /&gt;    EXEC SQL&lt;BR /&gt;=================================&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Manish.&lt;BR /&gt;</description>
      <pubDate>Mon, 13 Sep 2004 01:48:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pro-c-error/m-p/3377385#M863962</guid>
      <dc:creator>Manish Srivastava</dc:creator>
      <dc:date>2004-09-13T01:48:40Z</dc:date>
    </item>
    <item>
      <title>Re: Pro*C error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pro-c-error/m-p/3377386#M863963</link>
      <description>hi manish,&lt;BR /&gt;&lt;BR /&gt;do you have a PL/SQL function that returns a boolean or a procedure which has as an OUT or IN OUT boolean parameter?&lt;BR /&gt;&lt;BR /&gt;you may be facing bug 185212.&lt;BR /&gt;&lt;BR /&gt;please let us know.&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;Yogeeraj</description>
      <pubDate>Mon, 13 Sep 2004 02:20:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pro-c-error/m-p/3377386#M863963</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2004-09-13T02:20:14Z</dc:date>
    </item>
    <item>
      <title>Re: Pro*C error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pro-c-error/m-p/3377387#M863964</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;It is not a PL/SQL returning a boolean. The parameters passed are int and a struct. &lt;BR /&gt;Does this problem occur if any element of the struct is a boolean? &lt;BR /&gt;&lt;BR /&gt;manish</description>
      <pubDate>Mon, 13 Sep 2004 03:25:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pro-c-error/m-p/3377387#M863964</guid>
      <dc:creator>Manish Srivastava</dc:creator>
      <dc:date>2004-09-13T03:25:44Z</dc:date>
    </item>
    <item>
      <title>Re: Pro*C error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pro-c-error/m-p/3377388#M863965</link>
      <description>See the following Note on Metalink:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&amp;amp;p_id=95532.1" target="_blank"&gt;http://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&amp;amp;p_id=95532.1&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Yes, you must not have any boolean as a function parameter: you can transform the boolean parameter into an integer for exemple...</description>
      <pubDate>Mon, 13 Sep 2004 03:31:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pro-c-error/m-p/3377388#M863965</guid>
      <dc:creator>Eric Antunes</dc:creator>
      <dc:date>2004-09-13T03:31:09Z</dc:date>
    </item>
    <item>
      <title>Re: Pro*C error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pro-c-error/m-p/3377389#M863966</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;more details about the error and solution provided by metalink:&lt;BR /&gt;&lt;BR /&gt;&lt;QUOTE&gt;&lt;BR /&gt;Solution Description&lt;BR /&gt;--------------------&lt;BR /&gt;BOOLEAN-type variables cannot be passed directly from/to PL/SQL from/to any of the Oracle Programmatic Interfaces, including Pro*C programs.&lt;BR /&gt;&lt;BR /&gt;The BOOLEAN type is unique to pl/sql and since there is no corresponding&lt;BR /&gt;&lt;BR /&gt;database internal type, the conversion routines do not exist.&lt;BR /&gt;&lt;BR /&gt;Solution&lt;BR /&gt;--------&lt;BR /&gt;Suggestion A:&lt;BR /&gt;Modify the PL/SQL routine to pass an INTEGER parameter rather than a BOOLEAN.&lt;BR /&gt;&lt;BR /&gt;Suggestion B:&lt;BR /&gt;Use an anonymous block to wrap the call to the procedure which converts the parameters from boolean to integer or number.&lt;BR /&gt;&lt;BR /&gt;e.g.&lt;BR /&gt;consider the stored procedure&lt;BR /&gt;PROC_WITH_BOOL(P1 IN OUT NUMBER,P2 IN OUT BOOLEAN)&lt;BR /&gt;&lt;BR /&gt;call this from Pro*C in the following way:&lt;BR /&gt;int io_param;&lt;BR /&gt;int io_bool;&lt;BR /&gt;..&lt;BR /&gt;/* Intervening code omitted */&lt;BR /&gt;..&lt;BR /&gt;&lt;BR /&gt;EXEC SQL EXECUTE&lt;BR /&gt;declare&lt;BR /&gt;d_param BOOLEAN := TRUE;&lt;BR /&gt;begin&lt;BR /&gt; if :io_bool = 0 then&lt;BR /&gt;  d_param = FALSE;&lt;BR /&gt; end if;&lt;BR /&gt; proc_with_bool(:io_param,d_param);&lt;BR /&gt;&lt;BR /&gt; if d_param = FALSE then&lt;BR /&gt;  :io_bool := 0;&lt;BR /&gt; else&lt;BR /&gt;  :io_bool := 1;&lt;BR /&gt; end if;&lt;BR /&gt;end;&lt;BR /&gt;END-EXEC; &lt;BR /&gt;&lt;/QUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;However since this code works on your tru64, this should most probably be a configuration problem.&lt;BR /&gt;&lt;BR /&gt;Can you try to do a simple pro*c and compile it to see it your pro*c is OK?&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;Yogeeraj&lt;BR /&gt;</description>
      <pubDate>Mon, 13 Sep 2004 08:48:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pro-c-error/m-p/3377389#M863966</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2004-09-13T08:48:37Z</dc:date>
    </item>
    <item>
      <title>Re: Pro*C error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pro-c-error/m-p/3377390#M863967</link>
      <description>hi again,&lt;BR /&gt;&lt;BR /&gt;a simple make file that you may wish to consider:&lt;BR /&gt;==========================================&lt;BR /&gt;$(TARGET): $(SOURCE) $(SOURCE:.pc=.c) $(SOURCE:.pc=.o)&lt;BR /&gt;    $(CC) $(LDFLAGS) -t -o $(TARGET) \&lt;BR /&gt;        $(SOURCE:.pc=.o) -L$(ORACLE_HOME)/lib $(PROLDLIBS)&lt;BR /&gt; &lt;BR /&gt;include $(ORACLE_PROC_MAKEFILE)&lt;BR /&gt; &lt;BR /&gt;PROCFLAGS= ireclen=255 lines=yes $(PROC_ENV_FLAGS) \&lt;BR /&gt;           include=$(ORACLE_HOME)/proc/lib&lt;BR /&gt;PROFLAGS=$(PROCFLAGS)&lt;BR /&gt; &lt;BR /&gt;CFLAGS=-I. -g $(CC_ENV_FLAGS)&lt;BR /&gt;&lt;BR /&gt;==========================================&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;Yogeeraj</description>
      <pubDate>Mon, 13 Sep 2004 08:52:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pro-c-error/m-p/3377390#M863967</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2004-09-13T08:52:19Z</dc:date>
    </item>
    <item>
      <title>Re: Pro*C error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pro-c-error/m-p/3377391#M863968</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;My other ProC programs compile. This is the only one where I am facing the problem. &lt;BR /&gt;&lt;BR /&gt;Thanks for the information and help. The problem still exists.&lt;BR /&gt;&lt;BR /&gt;manish</description>
      <pubDate>Tue, 14 Sep 2004 00:53:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pro-c-error/m-p/3377391#M863968</guid>
      <dc:creator>Manish Srivastava</dc:creator>
      <dc:date>2004-09-14T00:53:48Z</dc:date>
    </item>
  </channel>
</rss>

