Skip to content

Getting ORA-29275: partial multibyte character #411

@manickaraja

Description

@manickaraja

Hi,
We are extracting data from Oracle to flatfile (CSV seperated) using cx_oracle. While extracting varchar from certain fileds query is getting aborted and below error is thrown.

ORA-29275: partial multibyte character

Ex. Select col1 from tab1; -- col1 is varchar
Upon googling I found the work around as doing || ' ' at the end of string. This does resolve the problem

Modified sql: select rtrim(col1 || ' ', ' ') from tab1.

However problem comes when col1 is > 4000 characters since its a limitation with strings. So I am looking at alternate solution which can avoid ORA-29275 without doing rtrim. Please help us with possible solution here.

Thanks in advance.

Thanks,
Manick.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions