Solved

Oracle 11.2 - ORA-01465: invalid hex number

Posted on 2013-07-01
4
6,699 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)
Comment Utility
Check WIG_DYNAMICCONTENT.  Is one or more of the columns declared as RAW?
0
 

Author Comment

by:joaotelles
Comment Utility
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
Comment Utility
'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
Comment Utility
tks
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

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…
From implementing a password expiration date, to datatype conversions and file export options, these are some useful settings I've found in Jasper Server.
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 video shows how to copy an entire tablespace from one database to another database using Transportable Tablespace functionality.

772 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