Solved

Oracle 11.2 - ORA-01465: invalid hex number

Posted on 2013-07-01
4
6,906 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

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.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Oracle -- identify blocking session 24 43
how to replace '&' and '()' in sql query for oracle using regex 8 61
Oracle Pivot Question 8 45
How to free up undo space? 3 31
Why doesn't the Oracle optimizer use my index? Querying too much data Most Oracle developers know that an index is useful when you can use it to restrict your result set to a small number of the total rows in a table. So, the obvious side…
This article started out as an Experts-Exchange question, which then grew into a quick tip to go along with an IOUG presentation for the Collaborate confernce and then later grew again into a full blown article with expanded functionality and legacy…
This video shows how to Export data from an Oracle database using the Original Export Utility.  The corresponding Import utility, which works the same way is referenced, but not demonstrated.
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

863 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

18 Experts available now in Live!

Get 1:1 Help Now