
This tutorial helps you to understand file handling operation from oracle database using oracle supplied package (UTL_FILE), external table and SQL loader utility.
After completing this section, you will be able to
1. Understand file handling operation in oracle database using UTL_FILE package.
2. Read content from text file using PLSQL code.
3. Write into text file using PLSQL code.
4. Copy file from source to destination folder.
5. Remove a file from operating system.
6. Generate HTML reports of data using PLSQL code.
1.Learn about UTL_FILE package
2.Understand the preparatory steps (or environment setup) to do file handling operation using UTL_FILE package
1. First program to read content from file
2. Understand the open,read & close APIs of UTL_FILE package
Understand how to read all the contents of file using UTL_FILE package
1. Understand how to use UTL_FILE package and PLSQL program to write dynamic content of tabe or SQL output to file.
1. A simple HTML report generation using API's of utl_file package
1. Understand data copy from source file to destination using UTL_FILE provided api.
1. Understand how to rename a file using UTL_FILE package.
Understand how to remove files in operating system using fremove api
Understand exception handling during file handling operation
Reference document containing demo scripts and details of the scripts.
External Table - Learning Objectives
By the end of this section, you will understand the external table, and how to use sqlloader and oracle data pump driver to load & unload data.
Understand external table concept
Example to load data using oracle external table.
Example to load and unload data using external table.
Reference document containing demo scripts and details of the scripts.
After completing this section, you will be able to write sql loader scripts to load data from flat file to oracle database tables.
1. Introduction to SQL Loader.
2. Understand the SQL loader command, and files associated with SQL load operation
Understand how to load data using SQL loader.
Understand how to get the details of records failed during load operation
Understand how to add rows to non empty table using SQL loader "append" option
Understand how to use "Begindata" keyword to pass data in the control file itself
Understand how to escape field terminator.
Understand how to load from positional data file using SQL loader
Understand how to use single row functions to manipulate the data during load
Understand how to load data from multiple data file using SQL loader
Understand how to load data into multiple table using SQL loader
Understand how to use SQL loader to do selective data load
This video explains about how to store the content of text file into CLOB column, and storing binary files into BLOB column using SQL loader utility.
Reference document containing demo scripts and details of the scripts.
Understand how to load binary data into oracle table
Understand how to retrieve the saved binary file from database table to operating system folder.
Attached the scripts used in demo to upload and download the binary content into/from database.
This is a course on file handling operation in Oracle database using UTL_FILE package, SQL Loader Utility and External table.
After completing this course, you will be able to
1. Understand file handling operation in oracle database using UTL_FILE package.
2. Read content from text file using PLSQL code.
3. Write into text file using PLSQL code.
4. Copy file from source to destination folder.
5. Remove a file from operating system.
6. Generate HTML reports of data using PLSQL code.
7. Store and retrieve binary data into/from oracle database.
8. Read data from flat files using SQL loader utility.
9. Read data from files using "External table" functionality.
10. Export data using "External table" functionality.