SQL> insert into emp2 select * from emp2;
14 rows created.
SQL> shutdown immediate
ORA-01097: cannot shutdown while in a transaction - commit or rollback first
因为在本机执行DML操作后没有提交,导致数据库无法停机,
解决办法:
1、在本事务session窗口将事务提交或回滚,然后停机;
2、在其它的窗口执行shutdown immediate停机。
在CentOS 6.4下安装Oracle 11gR2(x64) http://www.linuxidc.com/Linux/2014-02/97374.htm
Oracle 11gR2 在VMWare虚拟机中安装步骤 http://www.linuxidc.com/Linux/2013-09/89579p2.htm
Debian 下 安装 Oracle 11g XE R2 http://www.linuxidc.com/Linux/2014-03/98881.htm
更多Oracle相关信息见Oracle 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=12
本文永久更新链接地址:http://www.linuxidc.com/Linux/2014-07/104752.htm