Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • switchover for primary database Oracle
  • database trigger failing Oracle
  • cif crons Linux/Unix
  • _B_TREE_BITMAP_PLANS issue during 8.1.7 to 9.2.0.8 upgrade Oracle
  • Gathering statistics with DBMS_STATS Oracle
  • create trigger syntax Oracle
  • To find explain plan for a statement that occurred in past. Oracle
  • segment_wise_space.sql segspace.sql Segment wise space usage (allocated and used) Oracle
  • Export With Query Another Example. Oracle
  • Global Unique Identifier Generation in Oracle 9.2 SYS_GUID() Oracle
  • OPENING A STANDBY DATABASE IN READ-ONLY MODE Oracle
  • tblwopk.sql tablewopk.sql Oracle
  • scp with ssh2 Linux/Unix
  • DBMS_Shared_pool pinning triggers Oracle
  • run this before doing any dbchange pvm_pre_change.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

  • sess1.sql Oracle
  • mutex in Oracle 10.2.0.2 or Oracle 10g Oracle
  • Nice notes on wait events Oracle
  • How do I get Oracle to automatically start when my server boots up? Oracle
  • Good RAC & Standby Notes Oracle
  • Global Unique Identifier Generation in Oracle 9.2 SYS_GUID() 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 (393)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (1)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (342)
  • SQL Server (6)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • Complete Git Tutorial for Beginners25-Dec-2025
  • Postgres DB user and OS user.25-Dec-2025
  • Trace a SQL session from another session using ORADEBUG30-Sep-2025
  • SQL Server Vs Oracle Architecture difference25-Jul-2025
  • SQL Server: How to see historical transactions25-Jul-2025
  • SQL Server: How to see current transactions or requests25-Jul-2025
  • T-SQL Vs PL/SQL Syntax25-Jul-2025
  • Check SQL Server edition25-Jul-2025
  • Checking SQL Server Version25-Jul-2025
  • Oracle vs MYSQL Architecture differences (For DBAs)24-Jul-2025

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • Good notes for shared pool Oracle
  • Privileges Required to Create Procedures and Functions that uses objects from other schema. Oracle
  • Oracle Metalink useful notes Oracle
  • 284785.1 How to check RAC Option is currently linked into the Oracle Binary Oracle
  • ORA-01220 Oracle
  • JSON/XML Types in Oracle Oracle
  • In Addition to previous note, following grants needed on PERFSTAT user. Oracle
  • USER_TABLES.Freelists Oracle

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme