spool TEST.log
set verify on
set time on
set timing on
set echo on
set feedback on
select to_char(sysdate,'DD_MON_YYYY_hh24:mi') install_date from dual;
set define on
alter session set NLS_DATE_FORMAT = 'DD-MON-RRRR HH24:MI:SS';
-- Write your Oracle here. To call a script use following syntax
-- @Alter_User.sql
SELECT * FROM DUAL;
select to_char(sysdate,'DD_MON_YYYY_hh24:mi') install_date from dual;
set verify on
spool off
Step 2: Run it @ prompt using following command:
nohup sqlplus USer/Password@U121 @test.sql &
Step 3: above step will return process id. Note it down.
To check for status of excution use following command:
ps -aef grep
No comments:
Post a Comment