Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • To find explain plan for a statement that occurred in past. Oracle
  • fkwoind.sql fkwoindex.sql Oracle
  • cold backup scripts to copy locally Linux/Unix
  • telnet listening Linux/Unix
  • Rman Notes -1 Oracle
  • Temporary Tablespsace Temp tablespace behaviour Oracle
  • Good Site for Oracle Internals Oracle
  • EXTPROC Oracle
  • xargs use Linux/Unix
  • Best approach for Oracle database patching sequence to latest/required patchset along with CPU/PSU/any-other-one-off patch ID 865255.1 Oracle
  • lck.sql Oracle
  • Good notes for shared pool Oracle
  • SQLPLUS COPY command Precautions. Oracle
  • Standby Database File Management in 10g with STANDBY_FILE_MANAGEMENT Oracle
  • Some OS level threshold for performance. 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

  • proc.sql Oracle
  • True Session Wait Activity in Oracle 10g Verygood Oracle
  • currwait.sql Oracle
  • JSON/XML Types in Oracle Oracle
  • get_vmstat_solaris Oracle
  • TABLE SIZING WITH DB_BLOCK ARCHITECTURE Reference : Metalink note : 10640.1 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
  • sid_wise_sql.sql Oracle
  • Rename Tablespace Oracle
  • Passing from Unix to PLSQL using bind variables Linux/Unix
  • switchlogfile.sh Linux/Unix
  • AWR settings- MMON is not taking snapshot. Oracle
  • normal maintenance for exp-imp and renaming table Oracle
  • column level grant syntax Oracle
  • Jai Shree Ram Linux/Unix

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme