Skip to content

example of bash coproc managing oracle sqlplus connection

Notifications You must be signed in to change notification settings

limin-tang/bash_coproc_oracle

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

bash_coproc_oracle

example of bash coproc managing oracle sqlplus connection


Usage

In a bash script, source the bash_coproc_oracle.sh, setup a TRAP so that "sqlplus_exit" is called on exit and then initialize the coproc with "sqlplus_init $schema"

#!/bin/bash

#.....

# load sqlplus coproc code
. $LOCATION_OF_SCRIPT/bash_coproc_oracle.sh

#.....

# close sqlplus connection on exit
trap sqlplus_exit EXIT

#.....

# initialize coproc
sqlplus_init "$schema"

About

example of bash coproc managing oracle sqlplus connection

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%