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.

PL/SQL: Schreiben in eine Datei

Empfohlene Antworten

Hallo,

das folgende PL/SQL führe ich aus, jedoch ohne Erfolg.

Es soll in eine Datei auf Laufwerk D:\ geschrieben werde. Die Prozedur wird erfolgreich abgeschlossen, allerdings bleibt die Ergebnisdatei leer.

Lasse ich das Skript auf dem PC laufen, wo auch die lokale Datenbank angelegt ist, wird der Text auch in der Datei ausgegeben.

Der Eintrag in der init.ora ist ebenfalls vorhanden:

utl_file_dir = *

Hier das Skript:

set serveroutput on

DECLARE

f utl_file.file_type;

--vstring varchar2(20) := 'Hallo Test';

BEGIN

f := utl_file.fopen('d:\','test.txt','w');

utl_file.putf(f, 'Hallo \n');

utl_file.fclose(f);

end;

/

Woran könnte das liegen?

Ich dachte schon an Berechtigungen, jedoch hat sich der Verdacht nicht bestätigt. Wer weiss Rat?

Vielen Dank,

Stephanie

Hi,

ist wirklich merkwuerdig. scheint richtig zu sein, aber schau doch mal nochmal hier nach :

http://utplsql.sourceforge.net/Doc/admin.html

Gruesse

Denise

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Konto

Navigation

Suchen

Suchen

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.