I need to execute a query by logging into oracle DB using command prompt, Please help me with the query
cd\ && D: && Cd app\Administrator\product\11.1.0\db_1\BIN && (set ORACLE_HOME=D:\app\Administrator\product\11.1.0\db_1) && (sqlplus / as sysdba)
I am able to log into db using this but i want to execute the below query in the same script
SELECT TO_CHAR (startup_time, 'dd-mon-yyyy hh24:mi:ss') start_time
from V$instance;
When I add this query using &&
, it's not working.