Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • How to sort list of files on basis of their sizes. Linux/Unix
  • moving lob object to other tablespace lob_mvmt.sql Oracle
  • Global Unique Identifier Generation in Oracle 9.2 SYS_GUID() Oracle
  • Identical Dblink Issue… Oracle
  • mutex in Oracle 10.2.0.2 or Oracle 10g Oracle
  • To find explain plan for a statement that occurred in past. Oracle
  • Find nth max and min. Oracle
  • Create type and Grant on it. Oracle
  • TNSNAMES entries details Oracle
  • PLSQL Table Syntax 2 Oracle
  • Processes parameter and its dependencies on OS kernel parameters Linux/Unix
  • How to start CRS manually Oracle
  • SQL_PLAN.sql for checking real execution plan Oracle
  • shutdown linux Linux/Unix
  • 10g RAC: Troubleshooting CRS Root.sh Problems 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

  • How to know current SID Oracle
  • How to find who is using which Rollback segment and how many rows or blocks in that rollback segments, Oracle
  • Oracle Connections expire_time and firewall Oracle
  • Adding or Dropping Online Redo Log Files When Physical Standby in place Oracle
  • Find sort details from Db find_sort.sql Oracle
  • import-export with multiple files 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 (402)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (1)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (18)
  • rman-dataguard (26)
  • shell (150)
  • SQL scripts (350)
  • SQL Server (6)
  • Uncategorized (3)
  • Videos (0)

Recent Posts

  • runon_allpdbs_show_conname.sh23-Apr-2026
  • runon_allcdbs_find_pdbs.sql23-Apr-2026
  • Running PDB on single node in RAC09-Apr-2026
  • find_arc.sql09-Apr-2026
  • pvm_pre_change.sql08-Apr-2026
  • find_encr_wallet.sql08-Apr-2026
  • find_pdbs.sql08-Apr-2026
  • Creating a Container Database using dbaascli08-Apr-2026
  • track_autoupgrade_copy_progress.sql01-Apr-2026
  • refre.sql for multitenant01-Apr-2026

Archives

  • 2026
  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • Kernel Parameters for Solaris Linux/Unix
  • longtx.sql Oracle
  • Set Role explaination. Oracle
  • Process Map for CPU and Memory for OS processes Linux/Unix
  • eplan9i.sql Oracle
  • Kernel Parameter setting explaination for Processes Parameter Linux/Unix
  • 284785.1 How to check RAC Option is currently linked into the Oracle Binary Oracle
  • PHP code to add WordPress posts in bulk programmatically PHP/MYSQL/Wordpress

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme