Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Oracle Support Metalink ID 161818.1 Oracle
  • 272332.1 CRS 10g Diagnostic Collection Guide Oracle
  • TOP-N Sql to find Nth max or Top N rows Oracle
  • Implementing Listener Security Oracle
  • ext#.sql Oracle
  • Best approach for Oracle database patching sequence to latest/required patchset along with CPU/PSU/any-other-one-off patch ID 865255.1 Oracle
  • Wait Based Tuning Step by step with SQL statement Oracle
  • purge_trc.sh Linux/Unix
  • My Test Case On 21-OCT-2005 Oracle
  • USER_TABLES.Freelists Oracle
  • SQL Tracker by SID sqltrackerbysid.sql Oracle
  • TABLE SIZING WITH DB_BLOCK ARCHITECTURE Reference : Metalink note : 10640.1 Oracle
  • tracksqltime.sql Oracle
  • chk_space_SID.ksh Linux/Unix
  • Roles and Stored Object behaviour 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

  • Nice notes on wait events Oracle
  • Disbaling DBA_SCHEDULER_JOBS Oracle
  • DB Console Mainenance. Oracle
  • TOP-N Sql to find Nth max or Top N rows Oracle
  • Create type and Grant on it. Oracle
  • get_vmstat_linux Oracle

Leave a Reply Cancel reply

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

Categories

  • Ansible (0)
  • AWS (2)
  • Azure (1)
  • Django (0)
  • GIT (1)
  • Linux/Unix (149)
  • MYSQL (5)
  • Oracle (402)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (1)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (18)
  • rman-dataguard (26)
  • shell (150)
  • SQL scripts (350)
  • SQL Server (6)
  • Uncategorized (3)
  • Videos (0)

Recent Posts

  • runon_allpdbs_show_conname.sh23-Apr-2026
  • runon_allcdbs_find_pdbs.sql23-Apr-2026
  • Running PDB on single node in RAC09-Apr-2026
  • find_arc.sql09-Apr-2026
  • pvm_pre_change.sql08-Apr-2026
  • find_encr_wallet.sql08-Apr-2026
  • find_pdbs.sql08-Apr-2026
  • Creating a Container Database using dbaascli08-Apr-2026
  • track_autoupgrade_copy_progress.sql01-Apr-2026
  • refre.sql for multitenant01-Apr-2026

Archives

  • 2026
  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • kill all processes from specific user in solaris. Linux/Unix
  • How to Decide upto what level you can decrement your datafile size. ( Shrink Datafile) Oracle
  • setting prompt display with .profile Linux/Unix
  • compile_inv.sql Oracle
  • standard Monitoring – 1 Oracle
  • Sample WW22 listener.ora Oracle
  • Looping for remote servers and find its database from oratab file. Linux/Unix
  • Explain Plan Doesn’T Change For Sql After New Statistics Generated Oracle

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme