首页 > 数据库 > Oracle > 出现ORA-01552错误别忘了查询数据库状态
在我的测试数据库上执行update语句时,报ORA-01552错误,如下:
| scott@CNHTM> update emp set sal=sal+1 where empno=7934; update emp set sal=sal+1 where empno=7934 * ERROR at line 1: ORA-01552: cannot use system rollback segment for non-system tablespace 'TBS_1' |
经检查,是因为数据库处于readonly状态,检查数据库状态的语句为:
| sys@CNHTM> select open_mode from v$database; OPEN_MODE ---------- READ ONLY |
将数据库启动到正常状态后,再次执行更新语句,问题解决
--end--
[@more@]来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/22049049/viewspace-1031719/ ,如需转载,请注明出处,否则将追究法律责任。