How to fix the Oracle error PCC-00118: Use of host variable initialization not supported by ANSI SQL?
In this post, you’ll learn more about the Oracle ErrorPCC-00118: Use of host variable initialization not supported by ANSI SQL with the details on why you receive this error and the possible solution to fix it.
Oracle Error Description
PCC-00118: Use of host variable initialization not supported by ANSI SQL
Reason for the Error PCC-00118: Use of host variable initialization not supported by ANSI SQL
Cause: An Oracle extension to the ANSI/ISO SQL standard was used. Specifically, a host variable was initialized in its declaration, as shown in the following Pro*C example: EXEC SQL BEGIN DECLARE SECTION; int dept_number = 20; — not ANSI/ISO-compliant EXEC SQL END DECLARE SECTION; This informational message is issued by the FIPS Flagger when FIPS=YES.
How to fix the Error PCC-00118: Use of host variable initialization not supported by ANSI SQL ?
You can fix this error in Oracle by following the below steps
Action: No action required. However, for ANSI/ISO compliance, do not initialize host variables in their declarations.
Leave Your Comment