Skip to main content

Posts

Showing posts from February, 2016

Generate DBF file in Oracle Directory Using Oracle PL/SQL

Objective : To generate Database File (DBF) in Oracle Directory using Oracle PL/SQL. Scenario : Customer asks us to generate database file format report in oracle directory itself; from there customer will download the report.  Solution : Step 1:  Call the PL/SQL procedure to generate DBF report in oracle directory. Step 2:  Package  sssl_dbase_pkg_clob. << Package Specification <> CREATE OR REPLACE PACKAGE sssl_dbase_pkg_clob AS   PROCEDURE load_table(       p_dir    IN VARCHAR2,       p_file   IN VARCHAR2,       p_tname  IN VARCHAR2,       p_cnames IN VARCHAR2 DEFAULT NULL,       p_show   IN boolean DEFAULT FALSE);   PROCEDURE dump_table(       p_dir          IN VARCHAR2,       p_file         IN VARCHAR2, ...