OTL 4.0, Examples for Oracle 9i, Unicode

The examples below show how to use OTL with Oracle 9i and Unicode based strings. At the database level,, the string format may vary, and at least at the C++ level all string data gets converted  into 2-byte Unicode characters with possible surrogate pairs.  In order to enable OTL/OCI9I and Unicde, the following #defines need to be defined: #define OTL_ORA9I, #define OTL_UNICODE.
  1. Example 188  (Simple Unicode Insert/Select)
  2. Example 189 (Simple Unicode Insert/Select an the NLS (NVARCHAR2))
  3. Example 190 (Unicode Insert and Select via referenced cursor)
  4. Example 191 (Simple Unicode Insert/Select with LONG)
  5. Example 192 (Simple Unicode Insert/Select with CLOB)
  6. Example 193 (Simple Unicode Insert/Select with NCLOB)
  7. Example 194 (Simple Unicode Insert/Select with CLOB via referenced cursor)
  8. Example 195 (Simple Unicode Insert/Select with NCLOB via referenced cursor)
  9. Example 196 (Simple Unicode Insert/Select with CLOB, and LOB streams)
  10. Example 197 (Simple Unicode Insert/Select with NCLOB, and LOB streams)
  11. Example 198 (Unicode, VARCHAR2, and otl_refcur_stream)
  12. Example 199 (Unicode, NVARCHAR2, and otl_refcur_stream)
  13. Example 200 (Unicode, PLSQL/index-by tables as parameters)
  14. Example 201 (Unicode, PLSQL/index-by tables as parameters, and NVARCHAR2s)
  15. Example 285 (Simple Unicode Insert/Select for both VARCHAR2 and NVARCHAR2 at the same time)
  16. Example 286 (Simple Unicode Insert/Select for both CLOB  and NCLOB  at the same time)
  17. Example 351 (Simple Unicode Insert/Select and #define OTL_UNICODE_CHAR_TYPE)
  18. Example 352 (Unicode NVARCHAR2 Insert/Select and #define OTL_UNICODE_CHAR_TYPE)
  19. Example 353 (Simple Unicode Insert/Select and #define OTL_UNICODE_STRING_TYPE)
  20. Example 354 (Unicode NVARCHAR2 Insert/Select and #define OTL_UNICODE_STRING_TYPE)
  21. Example 366 (Unicode NCLOB Insert/Select and #define OTL_UNICODE_STRING_TYPE)
  22. Example 732 (Large numbers (larger than singed 64-bit int) when using OTL_UNICODE)

Prev NextContentsGo Home

Copyright © 1996-2017, Sergei Kuchin, email: skuchin@gmail.com, skuchin@gmail.com .

Permission to use, copy, modify and redistribute this document for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.