I am in the process of implementing LOB support for an existing application using Pro*C Embedded SQL for ORACLE 10g database. The application is utilizing ORACLE SQL Dynamic Method 4 and, since this method does not support LOBs and ORACLE's recommendation is to use ANSI Dynamic SQL, I am converting it to ANSI Dynamic SQL.
I have read through every document I can find (wow - YES - I read documentation
) and, at this point am at a loss on how to proceed. The documentation also leaves some things out. I thought I had hit the jackpot in Chapter 14 of the PRO*C/C++ Programmers Guide for ANSI Dynamic SQL under the Oracle Extensions section when it describes the support for object types, NCHAR columns, and LOBs but the subsections never cover the LOBs.
I have a few questions:
1. I am a wee bit confused at this point on how to set my pre-compiler options. I know that I need to set my macro option MODE=ANSI. However, what do I need to set DYNAMIC and TYPE_CODE to in order to use ANSI dynamic SQL methodology for LOBs?
2. My second question is in regards to data types when trying to create the dynamic SQL in ANSI. The documentation says you have to set the TYPE when you are setting the descriptor information if you are using TYPE_CODE=ANSI. However, I don't see a data type specified for LOBs (BLOB or CLOB). What is it?
3. Where can I find a code example for ANSI Dynamic SQL (Method 4) using LOBs?
Thanks in advance for your help!