in reply to Invoke sqlplus
And then gather up the results somehow:spool "foobar.dat"; select count(*) from foo_table; exit;
perl -e '`sqlplus myuser/mypassword@server @foo.sql`; my $res = `cat +foo.dat`; if($res=~m/(\d+)/){print $1}'
Celebrate Intellectual Diversity
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Invoke sqlplus
by chacham (Prior) on Apr 10, 2014 at 01:07 UTC |