Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • When error comes for temporary tablespace with version <= 9i Oracle
  • Which environment is used by currently running process ( Very good) Linux/Unix
  • Updated LCK.SQL file. Oracle
  • create PLAN_TABLE command. Oracle
  • Kill a session dynanically using execute immediate Oracle
  • Oracle 10g for solaris 10 Oracle
  • Oracle Metalink useful notes Oracle
  • How to know current SID Oracle
  • v$event_name Oracle
  • grep multuple patterns Linux/Unix
  • How to Decide upto what level you can decrement your datafile size. ( Shrink Datafile) Oracle
  • Sending email with file attachment. Linux/Unix
  • proc.sql Oracle
  • oracle 11g RAC on vmware Oracle
  • find_idle_cpu.sql 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 11g Training on 29JAN1010 Oracle
  • RMAN : Consistent Backup, Restore and Recovery using RMAN Oracle
  • How to find who is using which Rollback segment and how many rows or blocks in that rollback segments, Oracle
  • Changing Instance Name ( No DB_NAME) Oracle
  • Rename Tablespace Oracle
  • Monitor Long Running Job 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 (150)
  • MYSQL (5)
  • Oracle (403)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (1)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (18)
  • rman-dataguard (26)
  • shell (151)
  • SQL scripts (349)
  • SQL Server (6)
  • Uncategorized (5)
  • Videos (0)

Recent Posts

  • Key Management in Oracle: The Core Issue: Missing Master Key12-May-2026
  • SAT Mathematics 10 questions and answer at the end.30-Apr-2026
  • top 10 AI news today30-Apr-2026
  • runon_allpdbs_show_conname.sh23-Apr-2026
  • runon_allcdbs_find_pdbs.sh23-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

Archives

  • 2026
  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • Running PDB on single node in RAC Oracle
  • initUOCIOTTO.ora Oracle
  • TRUNCATE table and disabling referential constraints. Oracle
  • get_vmstat_solaris Oracle
  • Creating never expiring DB user accounts in Oracle Oracle
  • Kernel Parameter setting explaination for Processes Parameter Linux/Unix
  • How to Use DBMS_STATS to Move Statistics to a Different Database Oracle
  • Adding addidional hard drive and attach it to a linux box. Linux/Unix

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme