473,405 Members | 2,421 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Long Raw to Text Format in Oracle

1
Hi,

I have an Oracle table with a column of long raw datatype. I want to see the data in this column so I can manipulate it. Can you please advice on some function/procedure to convert this to readable format?

SQL> desc EDI_DATA
Name Null? Type
-------------------------- ----- -------------
RELEASE_CHAR VARCHAR2(2)
EDI_DOC LONG RAW

Thanks,
Ritu
Aug 16 '07 #1
3 8599
amitpatel66
2,367 Expert 2GB
Possible with the help of PLSQL

Expand|Select|Wrap|Line Numbers
  1.  
  2. CREATE TABLE EMP1
  3. (
  4.   ID         NUMBER                             NOT NULL,
  5.   NAME       VARCHAR2(100 BYTE)                 NOT NULL,
  6.   NO         CHAR(1 BYTE),
  7.   HIRE_DATE  DATE,
  8.   DATA_TEXT  LONG RAW
  9. )
  10.  
  11. declare
  12. dat varchar2(100);
  13. begin
  14. select data_text into dat from emp1 where id=4;
  15. dbms_output.put_line(dat);
  16. end;
  17.  
  18.  
Nov 6 '08 #2
Pilgrim333
127 100+
It depends on the size of the long raw.

Pilgrim.
Nov 6 '08 #3
amitpatel66
2,367 Expert 2GB
Yes it depends on the amount of data stored in a long raw. If it is large and cannot be hold by a varchar variable then you will need to fix that.
Nov 6 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: jt | last post by:
I posted this yesterday, but I am not seeing this out yet: I am having problems with updating a date field in a certain format. The data is stored in an Oracle database. The date is...
7
by: Galina | last post by:
Hello I am going to copy a data from MS Access table into Oracle table. One of fields is memo type and data in this field range from 1 character to 551 long string. Do I need to create a field...
6
by: Danny Lesandrini | last post by:
I'm using an Access database to drive a web site and the colors of various table backgrounds are stored in Access. I want users of the Access database to be able to select colors for the site, but...
4
by: Serge Klokov | last post by:
Hello! I have a Oracle table with a BLOB field. Each field is actually a simple text file of several lines. How to get this BLOB fields in readable format? I tryied something like...
4
by: Remi Hugnon | last post by:
Hi, I want to build an expandable treeview. I saw some code on VB but I know only C# I plan for my class that each nodes has its own id (using span for example). Into a single aspx page...
12
by: wenmang | last post by:
Hi, I am using following Oracle Proc-C compiler: Pro*C/C++: Release 8.1.7.0.0 - Production on Thu Jun 15 15:57:32 2006 (c) Copyright 2000 Oracle Corporation. All rights reserved. I like to...
3
by: wenmang | last post by:
Hi, I encountered a problem involving storage of unsigned long long. The requirement of incoming data field is an unsigned 64-bit integer, but on our system, due to lack of support of 64-bit...
0
by: Jaye | last post by:
Hi. I was wondering if anyone knows how to convert dates in the SAS format into an Oracle date format without the use of third party software. I'd like to be able to run a procedure that would...
2
by: mzladyd | last post by:
The source table has tbldate formated as long and I want it to be date. I've created another table and set the correct format and have tried to convert to date or char, but I continue to get error...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.