3

I have the following column in oracle database table.

Column name : objectdata
Data type : LONG RAW

When I query this column via sqlplus output is like below.

SQL> select objectdata from tableA where login_id = 'xxxxxxxx';
O
-
A

This should be actually

Objectdata
----------------------
ACED0005737200136A617661... (very long value)

I have tried set long 10000 SET PAGESIZE 32766 SET LINESIZE 32766 etc. Still it shows as truncated. How to get this value without truncated?

asked Jul 26, 2022 at 11:21

1 Answer 1

3

FAQ: LONGS and LONG RAW Columns (Doc ID 1022030.6)

  1. How can you view LONG and LONG RAW data?

    You can view LONG and LONG RAW data using OCI,PRO*C, FORM4.0 and 4.5 GUI, pl/sql. LONG RAW cannot be viewed using sqlplus, sqldba.

LONG RAW

Note: SQL*Plus is unable to SELECT a LONG RAW column, you have to write your own program (in C, Java, VB, PHP or whatever supports OCI or OO4O).

Meaning, it can not be displayed directly, you need to process or convert it to something else.

answered Jul 26, 2022 at 12:42

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.