DB2 user needs help using Oracle SQL*Plus
I've depended on DB2's ability to run outside of interactive mode in my bash scripts. I like how I can throw DB2 commands at the database and on the next line run awk/sed/grep/etc. Now I've got to do the same thing but on an Oracle database using SQL Plus.
What's the SQL Plus version of these DB2 non-interactive commands?
1. db2 connect to SOMEDATABASE user SOMEUSER using SOMEPASSWORD
2. db2 -x "select count(*) from SOME_TABLE where TRANSACTION_TIME between '2012-06-11 10:30:00.000' and '2012-06-11 10:30:10.999'"
Thanks.
|