- 最后登录
- 2015-8-6
- 在线时间
- 5 小时
- 威望
- 0
- 金钱
- 33
- 注册时间
- 2015-1-22
- 阅读权限
- 10
- 帖子
- 6
- 精华
- 0
- 积分
- 0
- UID
- 2245
|
1#
发表于 2015-7-16 20:34:50
|
查看: 3402 |
回复: 2
大神们,重建undo表空间,出现ORA-01552错误,具体操作如下
$sqlplus / as sysdba
SQL> select * from v$version;
BANNER
----------------------------------------------------------------------------
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
PL/SQL Release 11.2.0.3.0 - Production
CORE 11.2.0.3.0 Production
TNS for Solaris: Version 11.2.0.3.0 - Production
NLSRTL Version 11.2.0.3.0 - Production
SQL> CREATE UNDO TABLESPACE UNDOTBS21 DATAFILE '+DATA2DG' SIZE 10240M AUTOEXTEND OFF;
Tablespace created.
SQL> select t.segment_name,t.tablespace_name,t.segment_id,t.status
from dba_rollback_segs t where t.tablespace_name='UNDOTBS21';
no rows selected
这里没有生成段
SQL> alter system set undo_tablespace=UNDOTBS21 scope=both;
System altered.
SQL> show parameter undo;
NAME TYPE VALUE
------------------------------------ --------------------------------- ------------------------------
undo_management string AUTO
undo_retention integer 900
undo_tablespace string UNDOTBS21
SQL>connect rms
SQL> create table wwww as select * from user_tables where rownum<10;
create table wwww as select * from user_tables where rownum<10 *
ERROR at line 1:
ORA-01552: cannot use system rollback segment for non-system tablespace
'RETEK_DATA' |
|