La seguente procedura PL/SQL mostra come leggere la prima riga del file
contenuto in c:\tmp\mytextfile.txt. La directory deve essere abilitata nel file
init.ora attraverso il parametro utl_file_dir, per esempio:
utl_file_dir=c:\tmp o per esempio attraverso
Oracle
CREATE OR REPLACE PROCEDURE PRO_READFILE AS
F utl_file.file_type;
S varchar2(200);
BEGIN
F := utl_file.fopen('c:\tmp','mytextfile.txt','R');
utl_file.get_line(F,S);
utl_file.fclose(F);
dbms_output.put_line(S);
EXCEPTION
WHEN utl_file.invalid_path THEN
raise_application_error(-20000, 'ERROR: path non valido, non autorizzato o non in INIT.ORA.');
END;
Warning: include(ads/text468x15.html): failed to open stream: No such file or directory in D:\inetpub\webs\fishscriptcom\documents\view_document.php on line 131
Warning: include(): Failed opening 'ads/text468x15.html' for inclusion (include_path='.;C:\php\pear') in D:\inetpub\webs\fishscriptcom\documents\view_document.php on line 131
A good scientist is a person with original ideas.
A good engineer is a person who makes a design that works with as few original ideas as possible. There are no prima donnas in engineering. Freeman Dyson
A good scientist is a person with original ideas.
A good engineer is a person who makes a design that works with as few original ideas as possible. There are no prima donnas in engineering. Freeman Dyson
fishScript.Com is accessible by Mobile access technology
as mobile phones, Palm and Pocket PC .
Nicoleta e Marco Magnani tutorial, examples, courses, esempi, corsi, esercizi, appunti vari Dottoressa Nicoleta Dragu Formatrice Docente Insegnante Mediatrice Culturale
Dott. Marco Magnani Universita La Sapienza Roma Master Computer Science Hunter College New York , Data Base Administrator DBA oracle System architect