Advertisement

06.08.2007 at 07:12AM PDT, ID: 22621764
[x]
Attachment Details

convert oracle 9i nvarchar2 to Oracle 8i varchar2

Asked by mdcadu in Oracle 9.x, Oracle Database, PL / SQL

Tags: oracle, nvarchar2, varchar2, convert

Hi, all!  I am having an issue between Oracle 8i and 9i databases.  We have always used varchar2 in Oracle 8i.  Now, in 9i, a vendor has updated the database and changed all varchar2 fields to nvarchar2.  Well, the 8i database uses that data and I can't seem to get the nvarchar2 to convert to varchar2.  I have a stored procedure which gets data from the 9i db and puts it into the 8i db.  However, I keep getting an error of "PLS_00560: chararcter set mismatch."  We have tried a few things, ie wrapping the NVC2 data in a TO_CHAR function which didn't work.  We have also tried TRANSLATE(USING CHAR_CS), which did work, but stored extra stuff in the 8i database.  It prints out in SQLPlus like ' 3 P P ', but there aren't spaces.  When I looked at the data in the 8i db table, it had boxes (looks to me like hard returns!) in between the actual numbers.  I don't know what those are or how to get rid of them.  Any ideas would be appreciated!

Thanks.
SusanStart Free Trial
[+][-]06.08.2007 at 07:32AM PDT, ID: 19242346

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.08.2007 at 07:36AM PDT, ID: 19242385

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.08.2007 at 07:48AM PDT, ID: 19242511

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Oracle 9.x, Oracle Database, PL / SQL
Tags: oracle, nvarchar2, varchar2, convert
Sign Up Now!
Solution Provided By: gbshahaq
Participating Experts: 3
Solution Grade: B
 
 
[+][-]06.08.2007 at 07:59AM PDT, ID: 19242615

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.08.2007 at 08:01AM PDT, ID: 19242644

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.08.2007 at 08:03AM PDT, ID: 19242659

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.08.2007 at 09:08AM PDT, ID: 19243278

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.08.2007 at 09:13AM PDT, ID: 19243327

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.13.2007 at 12:59PM PDT, ID: 19277612

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32