how to convert long raw data type to readable format(oracle version :11.2.0.3.0) in oracle?

2.8k Views Asked by At

how to convert long raw data type to readable format(oracle version :11.2.0.3.0) in oracle?

Please help me oracle version :11.2.0.3.0 i want to convert long raw data type to readable format

2

There are 2 best solutions below

1
On

I use this code from Adrian Billington. It has versions that work on Oracle 9, 10 and 11 and probably 12.

Essentially the code reads the LONG data and converts it on the fly into a CLOB. You can expose this as a view or select from TABLE(function call)

1
On

For analyzing LONG value from system views I use PL/SQL. As example:

DECLARE
  CURSOR curs IS
    SELECT p.high_value -- LONG value
          ,p.table_name
          ,p.partition_name
    FROM user_tab_partitions p;
  c         curs%ROWTYPE;
BEGIN
  FOR c IN curs 
    LOOP
      IF c.high_value like '%CD_FEED%'
        THEN dbms_output.put_line(c.table_name);
      END IF;
    END LOOP;
END;