Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • good note for shared pool tunnig Oracle
  • find_pk.sql /* Find Primary Key */ Oracle
  • Search and replace pattern Linux/Unix
  • find_open_cur.sql Find open cursorts per session Oracle
  • Sort with ASCII order and Numeric Order Linux/Unix
  • ORA-8031 issue and solution if it is occuring due to truncate. Oracle
  • replace alphabets using sed Linux/Unix
  • CPU Core related projections AWS
  • Error Handling in Proc Oracle
  • All Hints for Oracle Databases Oracle
  • Index Range Scan Oracle
  • cache buffer chain latch Oracle
  • Virtual Indexes in Oracle Oracle
  • chk_space_SID.ksh Linux/Unix
  • Guide to Linux System Command Mastery Linux/Unix

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 GoldenGate lag monitoring shell script Linux/Unix
  • Explain Plan Output 2 Oracle
  • Oracle Internal Good Websites 1 Oracle
  • Proc Compilation Oracle
  • normal maintenance for exp-imp and renaming table Oracle
  • The most important Tuning Notes 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 (392)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (0)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (341)
  • SQL Server (6)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • 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
  • MYSQL and Oracle Comparison for Oracle DBA24-Jul-2025

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • get_vmstat_solaris Oracle
  • Histogram Overview Oracle
  • How to know Number of CPUs on Sun Box Linux/Unix
  • CPU Core related projections AWS
  • Good notes for shared pool Oracle
  • S3 Basic info AWS
  • logminer and my_lbu Oracle
  • fkwoind.sql fkwoindex.sql Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme