I regularly need to run a single query on some table in one of my DBs and I would rather not have to create a file and call it as a script and everything if I don't have to.
I would like to be able to send the query directly to sqlplus as a string like this perhaps
sqlplus user/pass@hostname:port/service "select * from table"
instead of having to create a file that holds only that one query and call it with
sqlplus user/pass@hostname:port/service @filename
does anyone know if this is possible?