When I type in:
C:\>sqlplus user/pass@OMP1 @CheckRowCount.sql
it connects but I don't see any results, in the .sql file I have this:
SELECT COUNT(*) as "rowcount" FROM dmsn.ds3r_1xrtt_voice_trigger;
I've also tried this
C:\>sqlplus user/pass@OMP1 SELECT COUNT(*) as "rowcount" FROM dmsn.ds3r_1xrtt_voice_trigger;
but all I get is the sql*plus commands to use in the CMD window
You don't get anything in this way, if you want result from a script you must add a spool command to you script.
spo result.txt;
SELECT COUNT(*) as "rowcount" FROM dmsn.ds3r_1xrtt_voice_trigger;
spo off;
Then execute C:\\>sqlplus user/pass@OMP1 @CheckRowCount.sql
and open result.txt
to see result.
Anyway for single script like this above just put it in sql> prompt and see what happens.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.