Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Removing NUL characters

Kevin TysonJun 25 2007 — edited Jun 25 2007
When one of my jobs sends an email from the database, it gets the error message "ORA-29279: SMTP permanent error: 550 Requested action not taken: NUL characters are not allowed." The data in one of the columns has trailing NUL values. These are hex value 00. I can't see them and they don't seem to be good for much except getting rejected by spam filters and mail servers.

How do I remove these NUL characters? I've looked at the REPLACE function, but I'm not sure on how to pass it characters that can't be typed. Is there some way to pass it characters in hex representation? I didn't see any such thing in the documentation.

I'm using Oracle 9.2 with UTF8 character set.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 23 2007
Added on Jun 25 2007
2 comments
837 views