Solved

Oracle 11.2 - ORA-01465: invalid hex number

Posted on 2013-07-01
4
7,063 Views
Last Modified: 2013-07-01
Hi,

Pls I need help on finding out why Im getting this error below:

DECLARE
  EXISTS_ROW NUMBER :=0;
BEGIN
SELECT COUNT(*) INTO EXISTS_ROW FROM WIG_STATICURLREFERENCE ref WHERE ref.SURL_REFERENCE='*tsd';
  IF EXISTS_ROW=0 THEN
    INSERT INTO WIG_DYNAMICCONTENT (WIGDC_NAME, WIGDC_CONTENT,WIGDC_CONTENTTYPE,WIGDC_INBEARER,WIGDC_OUTBEARER) VALUES
    ('*tsd', 'http://localhost:7900/httper/CP_TSD/httpter/ST.TERMIITCH',0,2,2);
  ELSE
    UPDATE WIG_DYNAMICCONTENT SET WIGDC_CONTENT='http://localhost:7900/httpeventadapter/CP_WIBTSD/httpAdapter/ST.TERMINAL_SWITCH'
    WHERE WIGDC_NAME='*tsd' and WIGDC_CONTENTTYPE=0 AND WIGDC_INBEARER=2 AND WIGDC_OUTBEARER=2;
  END IF;
END;

Error code: 1465
Oracle error: ORA-01465: invalid hex number

Tks,
Joao
0
Comment
Question by:joaotelles
  • 2
  • 2
4 Comments
 
LVL 76

Expert Comment

by:slightwv (䄆 Netminder)
ID: 39290051
Check WIG_DYNAMICCONTENT.  Is one or more of the columns declared as RAW?
0
 

Author Comment

by:joaotelles
ID: 39290068
SQL> desc WIG_DYNAMICCONTENT
 Name                                      Null?    Type
 ----------------------------------------- -------- ----------------------------
 WIGDC_NAME                                NOT NULL VARCHAR2(50)
 WIGDC_TYPE                                NOT NULL NUMBER
 WIGDC_INBEARER                            NOT NULL NUMBER
 WIGDC_OUTBEARER                           NOT NULL NUMBER
 WIGDC_CONTENTTYPE                         NOT NULL NUMBER
 WIGDC_CONTENTENCODING                     NOT NULL NUMBER
 WIGDC_PARENT                                       VARCHAR2(50)
 WIGDC_MENUTEXTENCODING                    NOT NULL NUMBER
 WIGDC_MENUPOSITION                        NOT NULL NUMBER
 WIGDC_RESPENCODING                        NOT NULL NUMBER
 WIGDC_CHANGEDDATE                         NOT NULL DATE
 WIGDC_CONTENT                                      BLOB
 WIGDC_MENUTEXT                                     BLOB
 WIGDC_RESPTEXT                                     BLOB
0
 
LVL 76

Accepted Solution

by:
slightwv (䄆 Netminder) earned 500 total points
ID: 39290097
'http://localhost:7900/httper/CP_TSD/httpter/ST.TERMIITCH' is not a BLOB.

If you want to store this string in a BLOB field, you need to convert it.

drop table tab1 purge;
create table tab1(col1 blob);

--this fails
insert into tab1 values('http://www.notAblob.com');

--this works
insert into tab1 values(utl_raw.cast_to_raw('http://www.notAblob.com'));
commit;

Open in new window

0
 

Author Closing Comment

by:joaotelles
ID: 39290138
tks
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Background In several of the companies I have worked for, I noticed that corporate reporting is off loaded from the production database and done mainly on a clone database which needs to be kept up to date daily by various means, be it a logical…
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now