标签:bar 条件 shutdown 检查 活动 禁用 ref 任务 logs
转至 “little健健”,仅留作记录。
1 #hr.sh
2 sqlplus hr/hr <<EOF
3 select count(*) from employees;
4 update employees set salary =
5 salary*1.10;
6 commit;
7 quit
8 EOF
9 exit
1 select *
2 from employees
3 where employee_id=101;
数据库启动和关闭
启动 sql>startup [option]
SQL> SELECT sql_text, executions FROM v$sql
WHERE cpu_time > 200000;
SQL> SELECT * FROM v$session WHERE machine =
‘EDRSR9P1‘ and logon_time > SYSDATE - 1;
SQL> SELECT sid, ctime FROM v$lock WHERE
block > 0;
标签:bar 条件 shutdown 检查 活动 禁用 ref 任务 logs
原文地址:http://www.cnblogs.com/huangyuyu/p/7094289.html