dbTalk Databases Forums  

problem with longvarchar... reads as long

comp.databases.oracle.misc comp.databases.oracle.misc


Discuss problem with longvarchar... reads as long in the comp.databases.oracle.misc forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Sonnich Jensen
 
Posts: n/a

Default problem with longvarchar... reads as long - 10-09-2007 , 08:46 AM






Hi

I have a problem when reading a longvarchar, displays as memo in DB
Explorer. It reads, but when reading in excel it gives an error (just
that).
When playing around in DB explorer, I cannot use casting as char, the
error: expected char, got long.

In the SQL I cannot use || and add something to it.

NVL fails too.

What should I do?


Reply With Quote
  #2  
Old   
fitzjarrell@cox.net
 
Posts: n/a

Default Re: problem with longvarchar... reads as long - 10-09-2007 , 09:22 AM






On Oct 9, 8:46 am, Sonnich Jensen <sonnich.jen... (AT) jotautomation (DOT) com>
wrote:
Quote:
Hi

I have a problem when reading a longvarchar, displays as memo in DB
Explorer. It reads, but when reading in excel it gives an error (just
that).
When playing around in DB explorer, I cannot use casting as char, the
error: expected char, got long.

In the SQL I cannot use || and add something to it.

NVL fails too.

What should I do?
http://asktom.oracle.com/pls/asktom/...D:839298816582


David Fitzjarrell



Reply With Quote
  #3  
Old   
Sonnich Jensen
 
Posts: n/a

Default Re: problem with longvarchar... reads as long - 10-09-2007 , 10:03 AM



On Oct 9, 5:22 pm, "fitzjarr... (AT) cox (DOT) net" <fitzjarr... (AT) cox (DOT) net> wrote:
Quote:
On Oct 9, 8:46 am, Sonnich Jensen <sonnich.jen... (AT) jotautomation (DOT) com
wrote:

Hi

I have a problem when reading a longvarchar, displays as memo in DB
Explorer. It reads, but when reading in excel it gives an error (just
that).
When playing around in DB explorer, I cannot use casting as char, the
error: expected char, got long.

In the SQL I cannot use || and add something to it.

NVL fails too.

What should I do?

http://asktom.oracle.com/pls/asktom/..._QUESTION_ID:8...
Well, unfortunately I cannot create anything on the DB. That leaves me
to find a solution on SQL only.
Or, it is not possible to do.

WBR
Sonnich



Reply With Quote
  #4  
Old   
fitzjarrell@cox.net
 
Posts: n/a

Default Re: problem with longvarchar... reads as long - 10-09-2007 , 11:15 AM



On Oct 9, 10:03 am, Sonnich Jensen <sonnich.jen... (AT) jotautomation (DOT) com>
wrote:
Quote:
On Oct 9, 5:22 pm, "fitzjarr... (AT) cox (DOT) net" <fitzjarr... (AT) cox (DOT) net> wrote:





On Oct 9, 8:46 am, Sonnich Jensen <sonnich.jen... (AT) jotautomation (DOT) com
wrote:

Hi

I have a problem when reading a longvarchar, displays as memo in DB
Explorer. It reads, but when reading in excel it gives an error (just
that).
When playing around in DB explorer, I cannot use casting as char, the
error: expected char, got long.

In the SQL I cannot use || and add something to it.

NVL fails too.

What should I do?

http://asktom.oracle.com/pls/asktom/..._QUESTION_ID:8...

Well, unfortunately I cannot create anything on the DB. That leaves me
to find a solution on SQL only.
Or, it is not possible to do.

WBR
Sonnich- Hide quoted text -

- Show quoted text -
LONG columns don't play nicely with SQL*Plus or many other tools. I
suspect you'll need to forget this if you can't process the data using
PL/SQL. Simply because someone writes a function doesn't mean you
can't apply something similar with an anonymous PL/SQL block. And it
also depends upon what you intend to do with this data once you get it
'extracted'.

It may well be that you can't do what you want given that you're using
a LONG column.


David Fitzjarrell



Reply With Quote
  #5  
Old   
Mark D Powell
 
Posts: n/a

Default Re: problem with longvarchar... reads as long - 10-10-2007 , 11:07 AM



On Oct 9, 12:15 pm, "fitzjarr... (AT) cox (DOT) net" <fitzjarr... (AT) cox (DOT) net> wrote:
Quote:
On Oct 9, 10:03 am, Sonnich Jensen <sonnich.jen... (AT) jotautomation (DOT) com
wrote:





On Oct 9, 5:22 pm, "fitzjarr... (AT) cox (DOT) net" <fitzjarr... (AT) cox (DOT) net> wrote:

On Oct 9, 8:46 am, Sonnich Jensen <sonnich.jen... (AT) jotautomation (DOT) com
wrote:

Hi

I have a problem when reading a longvarchar, displays as memo in DB
Explorer. It reads, but when reading in excel it gives an error (just
that).
When playing around in DB explorer, I cannot use casting as char, the
error: expected char, got long.

In the SQL I cannot use || and add something to it.

NVL fails too.

What should I do?

http://asktom.oracle.com/pls/asktom/..._QUESTION_ID:8...

Well, unfortunately I cannot create anything on the DB. That leaves me
to find a solution on SQL only.
Or, it is not possible to do.

WBR
Sonnich- Hide quoted text -

- Show quoted text -

LONG columns don't play nicely with SQL*Plus or many other tools. I
suspect you'll need to forget this if you can't process the data using
PL/SQL. Simply because someone writes a function doesn't mean you
can't apply something similar with an anonymous PL/SQL block. And it
also depends upon what you intend to do with this data once you get it
'extracted'.

It may well be that you can't do what you want given that you're using
a LONG column.

David Fitzjarrell- Hide quoted text -

- Show quoted text -
1 - What is DB Explorer?

2 - What is the length of the actual data? Just as Excel has a limit
to the number of rows of data that it can handle (64k) I would think
that there is also a limit to the length of any cell's data.

3 - The long data type is officially obsolete and where possible
tables with long columns should be converted to using LOB columns.

Just tagging along for info.
-- Mark D Powell --




The Long data type is obsolete and only exists for backward
compatiability.



Reply With Quote
  #6  
Old   
jodleren
 
Posts: n/a

Default Re: problem with longvarchar... reads as long - 10-25-2007 , 11:31 PM



On Oct 10, 7:07 pm, Mark D Powell <Mark.Pow... (AT) eds (DOT) com> wrote:
Quote:
On Oct 9, 12:15 pm, "fitzjarr... (AT) cox (DOT) net" <fitzjarr... (AT) cox (DOT) net> wrote:
On Oct 9, 10:03 am,SonnichJensen <sonnich.jen... (AT) jotautomation (DOT) com
wrote:
On Oct 9, 5:22 pm, "fitzjarr... (AT) cox (DOT) net" <fitzjarr... (AT) cox (DOT) net> wrote:
On Oct 9, 8:46 am,SonnichJensen <sonnich.jen... (AT) jotautomation (DOT) com
wrote:

Hi

I have a problem when reading a longvarchar, displays as memo in DB
Explorer. It reads, but when reading in excel it gives an error (just
that).
When playing around in DB explorer, I cannot use casting as char, the
error: expected char, got long.

In the SQL I cannot use || and add something to it.

NVL fails too.

What should I do?

http://asktom.oracle.com/pls/asktom/..._QUESTION_ID:8...

Well, unfortunately I cannot create anything on the DB. That leaves me
to find a solution on SQL only.
Or, it is not possible to do.

WBR
Sonnich- Hide quoted text -

- Show quoted text -

LONG columns don't play nicely with SQL*Plus or many other tools. I
suspect you'll need to forget this if you can't process the data using
PL/SQL. Simply because someone writes a function doesn't mean you
can't apply something similar with an anonymous PL/SQL block. And it
also depends upon what you intend to do with this data once you get it
'extracted'.

It may well be that you can't do what you want given that you're using
a LONG column.

David Fitzjarrell- Hide quoted text -

- Show quoted text -

1 - What is DB Explorer?
Borland tool for browsing databases. There are better software, but it
is easy to use for testing.

Quote:
2 - What is the length of the actual data? Just as Excel has a limit
to the number of rows of data that it can handle (64k) I would think
that there is also a limit to the length of any cell's data.
484 bytes.

Quote:
3 - The long data type is officially obsolete and where possible
tables with long columns should be converted to using LOB columns.

Just tagging along for info.
-- Mark D Powell --

The Long data type is obsolete and only exists for backward
compatiability
Problem; the DB is probably some ~15 years old... and it far out of my
reach.

WBR
Sonnich



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.