Oracle9i: Export NVARCHAR data to flat file using Pro*C

From: Peter CK Kan <kanpeter_at_graduate.hku.hk>
Date: 27 Feb 2003 18:23:34 -0800
Message-ID: <50c45596.0302271823.22499238_at_posting.google.com>


Hi experts,

I am going to export data from an Oracle 9i database column containing Chinese characters of type nvarchar2 to a flat file by writing a pro*C program.

database character set = utf8
national character set = utf16

Can any experts out here tell me:

(i) what header(s) should I include
(ii) how should I declare the host variables
(iii) how should I declare the host variable length
(iv) how should I set the NLS_* (NLS_LANG, NLS_NCHAR any more ?)
environment variables
(v) any compiler options needed to be set for successful compilation ?

Any help is appreciated.

  • peter
Received on Fri Feb 28 2003 - 03:23:34 CET

Original text of this message