Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • good note for shared pool tunnig Oracle
  • Gather Stats manually using DBMS_STATS after disabling DBMS_SCHEDULER jobs as previous entry Oracle
  • Locktree.sql Oracle
  • Paste command syntax Linux/Unix
  • find_err.sql for finding errors from dba_errors. Oracle
  • oradebug ipcrm ipcs Oracle
  • track_autoupgrade_copy_progress.sql Oracle
  • V$ROLLSTAT status is Full Oracle
  • Which environment is used by currently running process ( Very good) Linux/Unix
  • Key Management in Oracle: The Core Issue: Missing Master Key Oracle
  • Oracle Support Metalink ID 161818.1 Oracle
  • For Perl DBI installation and testing program PHP/MYSQL/Wordpress
  • Library cahe Latches and internal explaination Oracle
  • Adding Datafile on Primary Server and Impact on Standby Server Oracle
  • Oracle10g – Using SQLAccess Advisor (DBMS_ADVISOR) with the Automatic Workload Repository 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

  • Load testing on Oracle 19C RAC with HammerDB Oracle
  • before_trunc.sql Before Truncate table needs to execute following: Oracle
  • plan10g.sql good Oracle
  • arch_configUOCIOTTO.ora Oracle
  • Renaming the column name Oracle
  • get_vmstat_linux 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 (150)
  • MYSQL (5)
  • Oracle (403)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (1)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (18)
  • rman-dataguard (26)
  • shell (151)
  • SQL scripts (349)
  • SQL Server (6)
  • Uncategorized (5)
  • Videos (0)

Recent Posts

  • Key Management in Oracle: The Core Issue: Missing Master Key12-May-2026
  • SAT Mathematics 10 questions and answer at the end.30-Apr-2026
  • top 10 AI news today30-Apr-2026
  • runon_allpdbs_show_conname.sh23-Apr-2026
  • runon_allcdbs_find_pdbs.sh23-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

Archives

  • 2026
  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • get_ratio.sql get the ratio of users from v$session and this uses CASE-WHEN-THEN clause Oracle
  • CPU speed on Linux Linux/Unix
  • set_env_dba Linux/Unix
  • .profile Linux/Unix
  • How to know Number of CPUs on Sun Box Linux/Unix
  • restarting network in linux Linux/Unix
  • oracle_env_10g_CADEV Linux/Unix
  • Read CSV File using Python Python/PySpark

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme