DB/Oracle

[정보] Precompiler(proc) 옵션

투칼론 2016. 8. 11. 11:06
반응형

오라클 proc 소스파일(.pc)을 C 소스파일(.c)로 변환 시에 proc 컴파일러를 사용하는데, 이 때 사용가능한 옵션 및 설명은 아래 표와 같다.


SyntaxDefaultSpecifics
AUTO_CONNECT={YES | NO}NOAutomatic CLUSTER$ account connection before the first executable statement.
CHAR_MAP={VARCHAR2 | CHARZ | STRING | CHARF} *CHARZMapping of character arrays and strings.
CLOSE_ON_COMMIT={YES | NO}NOClose all cursors on COMMIT.
CODE={ANSI_C | KR_C | CPP}KR_CKind of C code generated.
COMP_CHARSET={MULTI_BYTE | SINGLE_BYTE}MULTI_BYTEThe character set type the C/C++ compiler supports.
CONFIG=filenamenoneUser's private configuration file.
CPP_SUFFIX=extensionnoneSpecify the default filename extension for C++ output files.
DBMS={V7 | NATIVE | V8}NATIVECompatibility (Oracle7, Oracle8, Oracle8i, Oracle9i, or the database version to which you are connected at precompile time).
DEF_SQLCODE={YES | NO}NOGenerate a macro to #define SQLCODE.
DEFINE=name *noneDefine a name for use by the Pro*C/C++ precompiler.
DURATION={TRANSACTION | SESSION}TRANSACTIONSet pin duration for objects in the cache.
DYNAMIC={ANSI | ORACLE}ORACLESpecifies Oracle or ANSI SQL semantics.
ERRORS={YES | NO}YESWhere to direct error messages (NO means only to listing file, and not to terminal).
ERRTYPE=filenamenoneName of the listing file for intype file error messages.
FIPS={NO | SQL89 | SQL2 | YES} *noneWhether to flag ANSI/ISO non-compliance.
HEADER=extensionnoneSpecify file extension for precompiled header files.
HOLD_CURSOR={YES | NO} *NOHow cursor cache handles SQL statement.
INAME=]filenamenoneName of the input file.
INCLUDE=pathname *noneDirectory path for EXEC SQL INCLUDE or #include statements.
INTYPE=filenamenoneName of the input file for type information.
LINES={YES | NO}NOWhether #line directives are generated.
LNAME=filenamenoneName of listing file.
LTYPE={NONE | SHORT | LONG}noneType of listing file to be generated, if any.
MAXLITERAL=10..10241024Maximum length (bytes) of string literals in generated C code.
MAXOPENCURSORS=5..255 *10Maximum number of concurrent cached open cursors.
MODE={ANSI | ISO | ORACLE}ORACLEANSI/ISO or Oracle behavior.
NLS_CHAR=(var1, ..., varn)noneSpecify multibyte character variables.
NLS_LOCAL={YES | NO}NOControl multibyte character semantics.
OBJECTS={YES | NO}YESSupport of object types.
ONAME=]filenameiname.cName of the output (code) file.
ORACA={YES | NO} *NOWhether to use the ORACA.
PAGELEN=30..25680Page length of the listing file.
PARSE={NONE | PARTIAL | FULL}FULLWhether Pro*C/C++ parses (with a C parser) the.pc source.
PREFETCH=0..655351Speed up queries by pre-fetching a given number of rows.
RELEASE_CURSOR={YES | NO} *NOControl release of cursors from cursor cache.
SELECT_ERROR={YES | NO} *YESFlagging of SELECT errors.
SQLCHECK={SEMANTICS | SYNTAX} *SYNTAXAmount of precompile time SQL checking.
SYS_INCLUDE=pathnamenoneDirectory where system header files, such as iostream.h, are found.
THREADS={YES | NO}NOIndicates a shared server application.
TYPE_CODE={ORACLE | ANSI}ORACLEUse of Oracle or ANSI type codes for dynamic SQL.
UNSAFE_NULL={YES | NO}NOUNSAFE_NULL=YES disables the ORA-01405 message.
USERID=username/password[@dbname]noneUsername/password[@dbname] connect string.
UTF16_CHARSET={NCHAR_CHARSET | DB_CHARSET}NCHAR_CHARSETSpecify the character set form used by UNICODE(UTF16).
VARCHAR={YES | NO}NOAllow the use of implicit VARCHAR structures.
VERSION={ANY | LATEST | RECENT} *RECENTWhich version of an object is to be returned.

[출처] https://docs.oracle.com/cd/B12037_01/appdev.101/a97269/pc_10opt.htm