Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Oracle GoldenGate lag monitoring shell script Linux/Unix
  • Renaming Global Name GLOBAL_NAME Oracle
  • SQLPLUS COPY command Precautions. Oracle
  • Benefits and Usage of RMAN with Standby Databases Oracle
  • To see mem usage and CPU usage system wide. Linux/Unix
  • How to specify 2 arch location to avoid any kind of DB hanging. Oracle
  • Convert multiple rows to single column Oracle
  • sqlnet.ora paramters Oracle
  • cur_sql.sql Oracle
  • how to find VIP from ifconfig Linux/Unix
  • sid_wise_sql.sql Oracle
  • Guide to Linux System Command Mastery Linux/Unix
  • Single character replacement in Unix Linux/Unix
  • Good link for LIO in Oracle ( Logical IOs) Oracle
  • Load testing on Oracle 19C RAC with HammerDB 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

  • Proc code Oracle
  • Roles and Stored Object behaviour Oracle
  • How to connect to Oracle Database with Wallet with Python. Oracle
  • Jai Shree Ram Oracle
  • Export With Query Another Example. Oracle
  • Find execution plan from dba_hist_sql_plan for a specific SQL_ID and PLAN_HASH_VALUE fplan.sql 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
  • Backup and Recovery Scenarios Oracle
  • check_copy_progress.sh Linux/Unix
  • How does one overcome the Unix 2 Gig file limit? Linux/Unix
  • oracle_env_10g_CADEV Linux/Unix
  • Find Plan Hash value fphv.sql Oracle
  • DBMS_UTILITY.ANALYZE_SCHEMA Oracle
  • Default User Profile Oracle
  • New OFA for 11g Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme