Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Settting up get_vmstat.sh for colletinf CPU Usage. Oracle
  • Linux CPU info. Linux/Unix
  • Standby Database File Management in 10g with STANDBY_FILE_MANAGEMENT Oracle
  • cur_sql.sql Oracle
  • Explain Plan Doesn’T Change For Sql After New Statistics Generated Oracle
  • temp_use.sql diplays usage of temp ts Oracle
  • Jai Shree Ram Oracle
  • How to calculate PROCESSES parameter Oracle
  • avail.sh ( find filesystem spae usage) Linux/Unix
  • Oracle Recommended Patches — Oracle Database ID 756671.1 Oracle
  • sid_wise_cursor.sql find open cursor basis on username or SID Oracle
  • Jai Shree Ram Oracle
  • scripts to take listener.log backup Linux/Unix
  • To seee semaphores and shared memory segments in Solaris Linux/Unix
  • How to see which patches are applied. 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

  • Locally Managed Tablespace and Dictionary managed tablespace (LMT-DMT) Oracle
  • find_cons.sql Oracle
  • perf_today.sql Oracle
  • TRUNCATE Privs Oracle
  • v$event_name Oracle
  • Formatter Explain plan Output 1 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 (388)
  • PHP/MYSQL/Wordpress (10)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (337)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • 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
  • Reading config file from other folder inside class24-Sep-2024
  • Python class import from different folders22-Sep-2024
  • Transfer SQL Profiles from One database to other database.05-Sep-2024
  • Load testing on Oracle 19C RAC with HammerDB18-Jan-2024

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • How To Resolve Stranded DBA_2PC_PENDING Entries ID 401302.1 (Very Good prooven) Oracle
  • DB Console Mainenance. Oracle
  • TABLE SIZING WITH DB_BLOCK ARCHITECTURE Reference : Metalink note : 10640.1 Oracle
  • Sort with ASCII order and Numeric Order Linux/Unix
  • Korn Shell Arithmatic Linux/Unix
  • Useful Solaris Commands on 28-SEP-2005 Linux/Unix
  • Read CSV File using Python Python/PySpark
  • find_string_in_database.sql Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme