Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • ENQ: KO – FAST OBJECT CHECKPOINT tips Oracle
  • To see how much time or progress of long transaction Oracle
  • Temporary Tablespsace Temp tablespace behaviour Oracle
  • Removing Blank lines from file using grep Linux/Unix
  • SQL Server: How to see current transactions or requests SQL Server
  • How to find Unix server conguraiton including Server Model number and underlying disk sub-system ( On Solaris) Linux/Unix
  • Oracle Recommended Patches — Oracle Database ID 756671.1 Oracle
  • How to sort list of files on basis of their sizes. Linux/Unix
  • Finding Oracle Patches with opatch Oracle
  • to see when crontab is changed. Linux/Unix
  • sid_wise_cursor.sql find open cursor basis on username or SID Oracle
  • Monitor Long Running Job Oracle
  • Oracle 11g RAC on OEL 5 and Vmware 2 Oracle
  • DBMS_STATS Metalinks Notes Oracle
  • _B_TREE_BITMAP_PLANS issue during 8.1.7 to 9.2.0.8 upgrade 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

  • Renaming Oracle Instance Name Oracle
  • database trigger failing Oracle
  • Parallel DML Oracle
  • 272332.1 CRS 10g Diagnostic Collection Guide Oracle
  • Creating never expiring DB user accounts in Oracle Oracle
  • switchover for primary database Oracle

Leave a Reply Cancel reply

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

Categories

  • Ansible (0)
  • AWS (2)
  • Azure (1)
  • Linux/Unix (149)
  • MYSQL (5)
  • Oracle (393)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (0)
  • 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

  • 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
  • V$INSTANCE of Oracle in MYSQL24-Jul-2025
  • Day to day MYSQL DBA operations (Compared with Oracle DBA)24-Jul-2025

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • Monitor and Trace Unix processes using truss Linux/Unix
  • Oracle Release Explaination Oracle
  • login.sql Oracle
  • Important Solaris Commands Linux/Unix
  • Insert cause enqueue locks Oracle
  • SQL Server: How to see current transactions or requests SQL Server
  • oracle fast start failover best practice Oracle
  • Load testing on Oracle 19C RAC with HammerDB Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme