Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • ENQ: KO – FAST OBJECT CHECKPOINT tips Oracle
  • Finding locked objects Oracle
  • sesswait.sql Oracle
  • replacing ^M character when passing files from Windows to Unix Linux/Unix
  • get_ratio.sql get the ratio of users from v$session and this uses CASE-WHEN-THEN clause Oracle
  • Running select from V$ views from remote server Linux/Unix
  • Histogram information Oracle
  • Test Case for Inserting Multiple (2.3 Million rows in 26 Seconds) Oracle
  • Oracle Recommended Patches — Oracle Database ID 756671.1 Oracle
  • Oracle Identifiers Oracle
  • RMAN : Consistent Backup, Restore and Recovery using RMAN Oracle
  • FRA Information. Oracle
  • Oracle Metalink useful notes Oracle
  • Oracle Internal Good Websites 1 Oracle
  • Drop specific SQL plan baseline – spm 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

  • 339939.1 Running Cluster Verification Utility to Diagnose Install Problems Oracle
  • Oracle Material from OTN Oracle
  • sess_server.sql Oracle
  • sql_plan9i.sql Oracle
  • My Test Case On 21-OCT-2005 Oracle
  • plan10g.sql good1 Oracle

Leave a Reply Cancel reply

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

Categories

  • AWS (2)
  • Azure (1)
  • Linux/Unix (149)
  • Oracle (392)
  • PHP/MYSQL/Wordpress (10)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (341)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • load SPM baseline from cursor cache05-Jun-2025
  • Drop all SPM baselines for SQL handle05-Jun-2025
  • Load SPM baseline from AWR05-Jun-2025
  • Drop specific SQL plan baseline – spm05-Jun-2025
  • findinfo.sql (SQL for getting CPU and Active session info)27-May-2025
  • SQL Tracker by SID sqltrackerbysid.sql22-Apr-2025
  • How to connect to Oracle Database with Wallet with Python.21-Mar-2025
  • JSON/XML Types in Oracle18-Mar-2025
  • CPU Core related projections12-Mar-2025
  • Exadata Basics10-Dec-2024

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • Finding Oracle Patches with opatch Oracle
  • Find Plan Hash value fphv.sql Oracle
  • find_log_switch.sql Find log switches in graphical manner Oracle
  • The most important Tuning Notes Oracle
  • How does one SELECT a value from a table into a Unix variable? From SQL to Shell Linux/Unix
  • export import with parameter file. Oracle
  • currwait.sql Oracle
  • findobj.sql Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme