Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • oracle 10g on linux Linux/Unix
  • Find All internal Parameters Oracle
  • Best approach for Oracle database patching sequence to latest/required patchset along with CPU/PSU/any-other-one-off patch ID 865255.1 Oracle
  • USER_TABLES.Freelists Oracle
  • Rman Notes -1 Oracle
  • How to set Processes Parameter Oracle
  • Goldengate Tutorial Oracle
  • Distributed Transaction Troubleshooting. Oracle
  • Passing from Unix to PLSQL using bind variables Linux/Unix
  • cp_filesystem.sql Oracle
  • oracle Dba site Oracle
  • How To Resolve Stranded DBA_2PC_PENDING Entries ID 401302.1 (Very Good prooven) Oracle
  • oradebug ipcrm ipcs Oracle
  • sid_wise_sql.sql Further explaination Oracle
  • findx.sql /* Find Indexes on specified USER.TABLE_NAME */ 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

  • findx.sql /* Find Indexes on specified USER.TABLE_NAME */ Oracle
  • Good Site for Oracle Internals Oracle
  • FRA Information. Oracle
  • Benefits and Usage of RMAN with Standby Databases Oracle
  • tblwopk.sql /* Find Tables Without PK */ Oracle
  • Oracle Material from OTN 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
  • Physical Standby switchover with session active Oracle
  • CPU speed on solaris Linux/Unix
  • 339939.1 Running Cluster Verification Utility to Diagnose Install Problems Oracle
  • S3 Basic info AWS
  • SAN Linux/Unix
  • _B_TREE_BITMAP_PLANS issue during 8.1.7 to 9.2.0.8 upgrade Oracle
  • purge_trc.sh Linux/Unix
  • replace alphabets using sed Linux/Unix

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme