Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8859627
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T15:06:46+00:00 2026-06-14T15:06:46+00:00

I try to load some textinformation into clob fields. I reduced the code I’m

  • 0

I try to load some textinformation into clob fields. I reduced the code I’m having trouble to the following snippet:

DECLARE
    WS_MAIN_CHUNK RAW(12001);
BEGIN
    WS_MAIN_CHUNK := 'Do';
END;
/

It gives me the error ORA-06512 PL/SQL: numeric or value error: hex to raw conversion error. Why is the string ‘Do’ a hex value and how can I fix it -> Just assign the string to the raw variable?

Thx for your help

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T15:06:47+00:00Added an answer on June 14, 2026 at 3:06 pm

    In Oracle, RAW data type is used to store binary data and any data that is byte oriented. You cannot directly assign a string value to a variable of RAW datatype. If there is such a need, you can use utl_raw package and cast_to_raw function to do that:

    SQL> DECLARE
      2      WS_MAIN_CHUNK raw(12001);
      3  BEGIN
      4      WS_MAIN_CHUNK :=  utl_raw.cast_to_raw('Do');
      5  END;
      6  /
    
    PL/SQL procedure successfully completed
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I load some images into an object list , and then try to recall
i have the following code to try and load a local html page in
Intention Using the following code, I managed to load some applications in my windows
I am having an issue where I try and load some images using the
I try to load data into a certain column into a table with the
When I try to load the following page in IE7 & IE8 I receive
I'm using the following HQL query to try and load a set of objects
Im a new web developer trying to load some xml files into a JSP
I have a gridview that I load some ticket data into. Depending on the
Trying to load some XML into a document: <Custom AttributeA='' AttributeB='Bob' AttributeC='HUNTERS' COMPANY EMPLOYEES'

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.