vu sur Metalink :?Citation:
I opened a TAR with oracle , They say it is an unreported bug
with 8.1.7.2 database . They asked me to apply patches to bring it
up to 8.1.7.4 to fix the problem .
Version imprimable
vu sur Metalink :?Citation:
I opened a TAR with oracle , They say it is an unreported bug
with 8.1.7.2 database . They asked me to apply patches to bring it
up to 8.1.7.4 to fix the problem .
C'est très surprenant quand même :?Citation:
WRITE is valid in 9i but not 8i which gives error: ORA-22928: invalid privilege on directories
Tu peux essayer de passer par le paramétre UTL_FILE_DIR à ce moment là.
Donc dans le fichier init<SID>.ora tu ajoute la ligne :
UTL_FILE_DIR='D:\ORA817\TEST'
Et tu passes pas les commandes suivantes après avoir redémarré la base :
Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 DECLARE f_file_id UTL_FILE.FILE_TYPE; v_file_location VARCHAR2(256) := 'D:\ORA817\TEST'; v_line VARCHAR2(4000); BEGIN f_file_id := UTL_FILE.FOPEN(v_file_location,'numero.txt','a'); UTL_FILE.PUT_LINE(f_file_id,'abcdefghijklmnopqrstuvwxyz'); UTL_FILE.FCLOSE (f_file_id); f_file_id := UTL_FILE.FOPEN(v_file_location,'numero.txt','r'); UTL_FILE.GET_LINE(f_file_id,v_line); DBMS_OUTPUT.PUT_LINE(v_line); UTL_FILE.FCLOSE (f_file_id); EXCEPTION WHEN OTHERS THEN dbms_output.put_line(SQLERRM); UTL_FILE.FCLOSE_ALL; END; /
On dois rajouter la ligne a un endroit precis dans le fichier .ora ??
Es t on obliger de redemarrer la base??
non et oui ;)
AAHHHHHHH Ca a enfin marcher !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! :P :P :P 8)
Merci bien pour toute ces infos !!!!!!!
excellent :bravo:
garde dans un coin de ton esprit qu'à partir de la 9i le DIRECTORY remplace l'UTL_FILE_DIR ;)
:wink: OKi Pas de Problème !!! :D