Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

CLOBS und BLOBS - Inhalt ansehen

Empfohlene Antworten

Veröffentlicht

Hallo!

Kleines Problem: Wie kann ich in einer 9i DB von Oracle irgendwie den Inhalt von CLOB oder BLOB -Felder ansehen???

In SQL-Plus gehts schon mal nicht. Der führt den select gar nicht aus. Im EnterpriseManager und SQLDeveloper läßt er die Spalte einfach aus.....

Bitte um nen guten TIP! Merci, Claudia

also zumindest CLOB-felder kann ich in SQL*plus anzeigen:

SQL> select data_type from user_tab_columns where table_name = 'TEST' and column_name = 'DATEINAME';

DATA_TYPE

--------------------------------------------------------------------------------

CLOB

SQL> select dateiname from test;

DATEINAME

--------------------------------------------------------------------------------

d:\Datei.gif

d:\Datei.pdf

d:\Datei.gif

6 Zeilen ausgewählt.

SQL>

bei BLOBs musst du AFAIR mit dem package DBMS_LOB den inhalt zuerst in einen VARCHAR umwandeln und kannst ihn erst dann ausgeben.

s'Amstel

also zumindest CLOB-felder kann ich in SQL*plus anzeigen:

auch wenn > 4000 zeichen?

-j

Im EnterpriseManager und SQLDeveloper läßt er die Spalte einfach aus.....

mein sqldeveloper (1.1.0.23) kann lobs anzeigen.

-j

Ich probiers mal aus. Danke.

auch wenn > 4000 zeichen?

der CLOB wird bis zum 4100. zeichen ausgespuckt, oder irre ich mich:

SQL> select length(dateiname) from test;

LENGTH(DATEINAME)

-----------------

4100

SQL> set long 40000

SQL> set heading off

SQL> select dateiname from test;

DATEINAME

--------------------------------------------------------------------------------

Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy

s'Amstel

Und hier ein sehr sehr guter Artikel über LOBs:

LOB - Oracle Large Object

Gruß

moo_kuh

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.