Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Good notes on Oracle Events Oracle
  • replacing ^M character when passing files from Windows to Unix Linux/Unix
  • Changing unix system clock when Oracle database is running. Oracle
  • Gather Stats manually using DBMS_STATS after disabling DBMS_SCHEDULER jobs as previous entry Oracle
  • Reclaim temp tablespace for oracle 8, 8i Oracle
  • chk_space_SID.ksh Linux/Unix
  • RMAN : Consistent Backup, Restore and Recovery using RMAN Oracle
  • Oracle vs MYSQL Architecture differences (For DBAs) MYSQL
  • remove archfiles only when it is applied to DR rm_archfiles.sh Linux/Unix
  • pvmehta.com SQL scripts
    Find which sessions is accessing object that prevent your session to have exclusive locks in Oracle Oracle
  • Drop all SPM baselines for SQL handle Oracle
  • Jai Shree Ram PHP/MYSQL/Wordpress
  • compile_inv.sql Oracle
  • Caching sequence in Memory Oracle
  • Oracle 10g for solaris 10 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

  • Oracle 10g Installation/Applying Patches Tips Oracle
  • Jai Shree Ram Oracle
  • Flowers Resize datafiles Oracle
  • Pending Transaction Neighbors Script Oracle
  • 10g oem configuration Oracle
  • How To Resolve Stranded DBA_2PC_PENDING Entries ID 401302.1 (Very Good prooven) 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 (398)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (1)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (150)
  • SQL scripts (346)
  • SQL Server (6)
  • Uncategorized (3)
  • Videos (0)

Recent Posts

  • 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
  • prepfiles.sh for step by step generating pending statistics files10-Mar-2026
  • tracksqltime.sql05-Mar-2026
  • Complete Git Tutorial for Beginners25-Dec-2025
  • Postgres DB user and OS user.25-Dec-2025

Archives

  • 2026
  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • Oracle Support Metalink ID 161818.1 Oracle
  • adding new line after specific pattern using sed Linux/Unix
  • kill all processes from specific user in solaris. Linux/Unix
  • Find nth max and min. Oracle
  • PHP code to add WordPress posts in bulk programmatically PHP/MYSQL/Wordpress
  • Sending SQLPLUS output in HTML format Oracle
  • SQL_PLAN.sql for checking real execution plan Oracle
  • find_du.ksh to find # of files, their sizes in current folder and its subdolder Linux/Unix

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme