Oct 20, 2009 9:46 AM
External Table with C-Cedilla Delimiter (Ç)
-
Like (0)
I'm using an HP-UX client and trying to create an external table over a file with a C-Cedilla delimiter and I'm having problems.
I can't type that character on the keyboard, so I've extracted it from the first record in the file and managed to get something in my definition that says :
DELIMITER 'Ç'
and I get 'Error : delimiter must be one character long'
I managed to get an NZLOAD working in this way, but it doesn't seem to work for external tables.
Is there anyway I can specify an ASCII value in the table definition? and if so what is the ascii value for this character (I think it is 199 but I'm not sure)
Probably not a good idea (you didn't hear it from me!) but the delimiter for an external file is stored in a system table.. and therefore it can be set 'manually' by something like:
update _t_external set delim = chr(xxx) where _t_external.relid = _t_object.objid and _t_object.objname = 'my_external_table';
Where xxx is the ascii value for your delimiter.
D.
Good One ! However I'd prefer a 'proper' method.
I'll raise a ticket and see what answer I get
You should be able to type it via the keyboard by holding down the Alt key while typing 0231 on the numeric keypad..
D.
on our current environment, we had to add the language extension following (to our .bashrc) to make it work:
export NLS_LANG=AMERICAN_AMERICA.WE8ISO8859P1
this provides you with command-line / script capability, but the database has to recognize it too
Ok, I raised a ticket and got this response (which works for me) :
USING (delim 199)
Looks like the delim option with no quotes is not documented.
Gary,
I just your post.
Yes! 199 is the solution.... It works in LINUX environments..... whereas in UNIX you go with using the cedilla character itself....
Nithin
Hi,
I am using a 4.6.6 NPS box.
When I created the external table with 'Ç' as delimiter, I am getting the error "ERROR: Input is not UTF-8".
PFB the external table description
create external table ext_template_table sameas template_table
using ( DATAOBJECT ('/home/abc/inp_file.pipe') DELIMITER 'ç' );
Any pointers to mitigate this error?
Thanks
Sebastian
Try specifying DELIMITER nnn, where nnn is the ASCII value for the C-Cedilla character.

