Skip to content

peihanw/plsql_runlog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

'L' : Oracle PL/SQL logging utility package

  • Installation
$ git clone https://github.com/peihanw/plsql_runlog.git
$ cd plsql_runlog/
$ sh ./pls_chg_tbs.sh $REAL_TABLESPACE_NAME
$ sqlplus user/passwd@sid
> @run_log.sql
> @run_log_cfg.sql
> @l.sql
  • Usage examples
$ sqlplus user/passwd@sid
> @pkg_unit_test.sql
> exec pkg_unit_test.case_01;

alt tag

While RUN_LOG_CFG is configed below:

alt tag

Only log text from line 10,8 and 7 will be logged.

Pkg_unit_test.case_02 is another example. Result screenshot below:

alt tag

'CSV' : Oracle PL/SQL csv utility package

  • For now, only 'extract' is provided in the CSV utility.
$ sqlplus user/passwd@sid
> @csv.sql
> select csv.extract('a,bb,ccc,dddd',3) from dual;

Memo

  • Test environment is Oracle 11g (11.2.0.3.0).
  • SQL is formatted with Toad Extension for Eclipse.

About

Oracle PL/SQL logging and misc utilities.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published