Home » Developer & Programmer » Precompilers, OCI & OCCI » ocilocator
ocilocator [message #93853] |
Wed, 19 February 2003 20:40 |
Sankar
Messages: 10 Registered: February 2002
|
Junior Member |
|
|
Hi,
The requirement is to insert records into a clob field in oracle database. For this, we made use of the OCIClobLocator bind datatype and included the oci.h header file.
While precompiling we get the following error: The files upidef.h and riddef.h are not found in the Oracle Home directory.
qdca204:/devel/cdb/dvlp/cdb3dv/osdcteam/Temp/source$
$ORACLE_HOME/bin/proc oname=./LOB.c iname=./LOB.pc
Pro*C/C++: Release 8.1.7.0.0 - Production on Wed Feb 19 14:38:05 2003
(c) Copyright 2000 Oracle Corporation. All rights reserved.
System default option values taken from:
/opt/oracle/product/8.1.7.4/precomp/admin/pcscfg.cfg
Error at line 61, column 10 in file ocidef.h
#include <upidef.h>
.........1
PCC-S-02015, unable to open include file
Error at line 65, column 10 in file ocidef.h
#include <riddef.h>
.........1
PCC-S-02015, unable to open include file
Syntax error at line 85, column 4, file ocidef.h:
Error at line 85, column 4 in file ocidef.h
word csrcn; /* cursor
number */
...1
PCC-S-02201, Encountered the symbol "word" when expecting one of the
following:
} char, const, double, enum, float, int, long, ulong_varchar,
OCIBFileLocator OCIBlobLocator, OCIClobLocator, OCIDateTime,
OCIExtProcContext, OCIInterval, OCIRowid, OCIDate, OCINumber,
OCIRaw, OCIString, short, signed, sql_context, sql_cursor,
struct, union, unsigned, utext, uvarchar, varchar, void,
volatile, a typedef name,
Syntax error at line 0, column 0, file ./LOB.pc:
Error at line 0, column 0 in file ./LOB.pc
PCC-S-02201, Encountered the symbol "<eof>" when expecting one of the
following:
; : an identifier, end-exec, random_terminal
Error at line 0, column 0 in file ./LOB.pc
PCC-F-02102, Fatal error while doing C preprocessing
Regards,
Sankar
|
|
|
Re: ocilocator [message #93876 is a reply to message #93853] |
Sun, 02 March 2003 09:51 |
tata
Messages: 2 Registered: September 2002
|
Junior Member |
|
|
change
#include<oci.h>
to
#ifndef ORA_PROC
#include<oci.h>
#endif
check $O_H/rdbms/demo , $O_H/rdbms/public for the missing files .
|
|
|
Goto Forum:
Current Time: Thu Nov 28 06:51:39 CST 2024
|