Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • find_string_in_database.sql Oracle
  • ORA-01220 Oracle
  • Default User Profile Oracle
  • Implementing Listener Security Oracle
  • grep multuple patterns Linux/Unix
  • To see mem usage and CPU usage system wide. Linux/Unix
  • Find Plan Hash value fphv.sql Oracle
  • Sequence Resetting Oracle
  • proc.sql Oracle
  • avail.sh ( find filesystem spae usage) Linux/Unix
  • export import with parameter file. Oracle
  • How does one SELECT a value from a table into a Unix variable? From SQL to Shell Linux/Unix
  • get_vmstat_solaris Oracle
  • Reclaim temp tablespace for oracle 8, 8i Oracle
  • Renaming Global Name GLOBAL_NAME Oracle

UTL_FILE test program

Posted on 03-Jul-2008 By Admin No Comments on UTL_FILE test program

Declare

v_filehandle UTL_FILE.FILE_TYPE;

file_dir VARCHAR2(50) :=’/db3/oracle/utlfiles’;

begin

t_file_name :=’Vatti_test.dat’;

v_filehandle := UTL_FILE.FOPEN(file_dir, t_file_name, ‘w’);

UTL_FILE.PUT_LINE(v_filehandle, ‘Hello TEST’);

UTL_FILE.FCLOSE(v_filehandle);

exception

when others then

dbms_output.put_line(sqlcode || ‘ ‘ || sqlerrm);

end;

/

Oracle, SQL scripts

Post navigation

Previous Post: V$CONTROLFILE_RECORD_SECTION reference notes.
Next Post: Clean up

Related Posts

  • How to analyze statspack or AWR report. Oracle
  • Oracle Recommended Patches — Oracle Database ID 756671.1 Oracle
  • get_aix_vmstat.ksh Oracle
  • Drop specific SQL plan baseline – spm Oracle
  • find_open_cur.sql Find open cursorts per session Oracle
  • How to find who is using which Rollback segment and how many rows or blocks in that rollback segments, Oracle

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Categories

  • AWS (2)
  • Azure (1)
  • Linux/Unix (149)
  • Oracle (392)
  • PHP/MYSQL/Wordpress (10)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (341)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • load SPM baseline from cursor cache05-Jun-2025
  • Drop all SPM baselines for SQL handle05-Jun-2025
  • Load SPM baseline from AWR05-Jun-2025
  • Drop specific SQL plan baseline – spm05-Jun-2025
  • findinfo.sql (SQL for getting CPU and Active session info)27-May-2025
  • SQL Tracker by SID sqltrackerbysid.sql22-Apr-2025
  • How to connect to Oracle Database with Wallet with Python.21-Mar-2025
  • JSON/XML Types in Oracle18-Mar-2025
  • CPU Core related projections12-Mar-2025
  • Exadata Basics10-Dec-2024

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • Rman Notes -1 Oracle
  • Jai Shree Ram Linux/Unix
  • This is from Temi Oracle
  • usnsql.sql Displays information about UNDO segments with sql statements Oracle
  • Good links for x$ tables in oracle. Oracle
  • EXTPROC Oracle
  • Search and replace pattern Linux/Unix
  • OEM-Commnds Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme