New Gen Linux installation and compiler/Oracle precompiler options
search cancel

New Gen Linux installation and compiler/Oracle precompiler options

book

Article ID: 229145

calendar_today

Updated On:

Products

Gen

Issue/Introduction

Configuring a new Linux Server with Gen 8.6 Implementation Tool for building Oracle operational servers. The server has Oracle 19c client .

Currently using AIX server with Oracle client and XLC compiler.
The following Oracle precompiler and compiler options are currently used and need to find the equivalent options on Linux for Oracle precompiler and gcc compiler:

 - While converting *.sqc objects to *.c:
$ORACLE_HOME/bin/proc IRECLEN=511 ORECLEN=511 CODE=ANSI_C LTYPE=NONE MODE=ORACLE DBMS=V7 SQLCHECK=SYNTAX PARSE=NONE RELEASE_CURSOR=NO HOLD_CURSOR=YES iname=./$FILE.sqc oname=./$FILE.c

 - While building *.c to *.o object:
xlc_r -q64 -qsrcmsg -DCM -DRS6000 -DORACLE112 -DORACLE -DIEF_PROLOGUE -I./ -I$IEFH/include -I/usr/include -I/usr/include/sys -DBM_RT -DSNPLOG -DNOTRACE -DPROTO -c ./$filename

Environment

Release: 8.6

Component: CA Gen Build Tool

 

Resolution

The best way to determine what Oracle pre-compiler options should be used on Linux is to do a test build of a Gen remote file generated by targeting Linux and Oracle.
The test build doesn't have to be successful, but the resulting .out file should show the Oracle precompiler and gcc options that are in use.