My Oracle Support Banner

Tuxedo: Limitation of cname in viewfile; Maximum Length of cname with viewsc32 (Doc ID 775706.1)

Last updated on MAY 13, 2010

Applies to:

Oracle Tuxedo
Information in this document applies to any platform.
Information in this document applies to any platform


When you execute viewc32 viewfile, the cname specified in the viewfile has a maximum limitation of 33 chars.

viewfile- test.tvf

# type cname fbname count flag size null
long a123456789123456789123456789123456789 - 2 -
- -

viewc32 test.tvf produces a .V and a .h file.
The test.h file is as follows

struct TESTIT_IM {
long a12345678912345678912345678912[2]; /* null=0 */

As you can see, the cname has been truncated.

According to our documentation of the viewfile at for cname

cname is the identifier for the structure member, and should be a valid C identifier name, since it is the name of a C structure member. Internally,
the cname is truncated to 30 characters, so cnames must be unique within the first 30 characters. Underscores are mapped automatically to dashes in the


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.