ORA-01552: cannot use system rollback錯誤解決方法
/* 2008/06/1 4 星期六
*蒙昭良
*環境:linux5 + Oracle10gR2
*ORA-01552: cannot use system rollback錯誤解決方法
*
*/
SQL> connect sys/mzl as sysdba
Connected.
SQL> create table scott.test
2 (id number(8),
3 name varchar2(30));
create table scott.test
*
ERROR at line 1:
ORA-01552: cannot use system rollback segment for non-system tablespace 'USERS'
提示系統的回滾段不能使用,可以檢視回滾還原段的空間情況。
1 檢視還原表空間的名稱
SQL> show parameter undo
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
undo_management string AUTO
undo_retention integer 900
undo_tablespace string UNDOTBS1
2 檢視還原表空間的剩餘空間
SQL> l
1* select file_name,tablespace_name,bytes/1024/1024 MB,autoextensible from dba_data_files
SQL> /
FILE_NAME TABLESPACE_NAME MB AUT
-------------------------------------------------- --------------- ---------- ---
/u01/app/oracle/oradata/orcl/risenet.dbf RISENET
/u01/app/oracle/oradata/orcl/perfstat.dbf PERFSTAT 500 NO
/u01/app/oracle/oradata/orcl/example01.dbf EXAMPLE 100 YES
/u01/disk1/users01.dbf USERS 5 YES
/u01/app/oracle/oradata/orcl/sysaux01.dbf SYSAUX 250 YES
/u01/app/oracle/oradata/orcl/undotbs01.dbf UNDOTBS1
/u01/disk2/system01.dbf SYSTEM 490 YES
/u01/app/oracle/oradata/orcl/undotbs02.dbf UNDOTBS2 50 NO
/u01/disk1/pioneer_data.dbf PIONEER_DATA 5 YES
/u01/disk2/pioneer_indx.dbf PIONEER_INDX 6 NO
/u01/disk3/pioneer_undo.dbf PIONEER_UNDO 7 NO
11 rows selected.
SQL> l
1* select tablespace_name,bytes/1024/1024 "MB" from dba_free_space where tablespace_name like '%UNDO%'
SQL> /
TABLESPACE_NAME MB
--------------- ----------
UNDOTBS2 31.75
PIONEER_UNDO 5.6875
由上查詢可知,預設表空間沒有空間了,可以切換回滾空間untotbs2為系統的預設表空間。(也可以增加預設表空間untotbs1的大小。)
SQL> alter system set undo_tablespace=undotbs2;
System altered.
SQL> show parameter undo
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
undo_management string AUTO
undo_retention integer 900
undo_tablespace string UNDOTBS2
SQL> create table scott.test
2 (id number(8),
3 name varchar2(20));
Table created.
問題解決!
*蒙昭良
*環境:linux5 + Oracle10gR2
*ORA-01552: cannot use system rollback錯誤解決方法
*
*/
SQL> connect sys/mzl as sysdba
Connected.
SQL> create table scott.test
2 (id number(8),
3 name varchar2(30));
create table scott.test
*
ERROR at line 1:
ORA-01552: cannot use system rollback segment for non-system tablespace 'USERS'
提示系統的回滾段不能使用,可以檢視回滾還原段的空間情況。
1 檢視還原表空間的名稱
SQL> show parameter undo
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
undo_management string AUTO
undo_retention integer 900
undo_tablespace string UNDOTBS1
2 檢視還原表空間的剩餘空間
SQL> l
1* select file_name,tablespace_name,bytes/1024/1024 MB,autoextensible from dba_data_files
SQL> /
FILE_NAME TABLESPACE_NAME MB AUT
-------------------------------------------------- --------------- ---------- ---
/u01/app/oracle/oradata/orcl/risenet.dbf RISENET
/u01/app/oracle/oradata/orcl/perfstat.dbf PERFSTAT 500 NO
/u01/app/oracle/oradata/orcl/example01.dbf EXAMPLE 100 YES
/u01/disk1/users01.dbf USERS 5 YES
/u01/app/oracle/oradata/orcl/sysaux01.dbf SYSAUX 250 YES
/u01/app/oracle/oradata/orcl/undotbs01.dbf UNDOTBS1
/u01/disk2/system01.dbf SYSTEM 490 YES
/u01/app/oracle/oradata/orcl/undotbs02.dbf UNDOTBS2 50 NO
/u01/disk1/pioneer_data.dbf PIONEER_DATA 5 YES
/u01/disk2/pioneer_indx.dbf PIONEER_INDX 6 NO
/u01/disk3/pioneer_undo.dbf PIONEER_UNDO 7 NO
11 rows selected.
SQL> l
1* select tablespace_name,bytes/1024/1024 "MB" from dba_free_space where tablespace_name like '%UNDO%'
SQL> /
TABLESPACE_NAME MB
--------------- ----------
UNDOTBS2 31.75
PIONEER_UNDO 5.6875
由上查詢可知,預設表空間沒有空間了,可以切換回滾空間untotbs2為系統的預設表空間。(也可以增加預設表空間untotbs1的大小。)
SQL> alter system set undo_tablespace=undotbs2;
System altered.
SQL> show parameter undo
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
undo_management string AUTO
undo_retention integer 900
undo_tablespace string UNDOTBS2
SQL> create table scott.test
2 (id number(8),
3 name varchar2(20));
Table created.
問題解決!
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/12778571/viewspace-346816/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- ORA-01552: cannot use system rollback segment for non-system tablespace 'USERS'錯誤解決
- Workspace in use or cannot be created, choose a different one.--錯誤解決辦法
- Ubuntu Cannot allocate memory 錯誤解決方案Ubuntu
- 錯誤解決:Attempting to use uninitialized value VariableZed
- hive報system:java.io.tmpdir錯誤解決HiveJava
- PbootCMS 404 錯誤解決方法boot
- vsftpd 錯誤:530 and 500 錯誤解決方法FTP
- virtualbox中Cannot register the hard disk錯誤解決辦法
- ORA-01407: cannot update to null 錯誤解決Null
- undefined reference to錯誤的解決方法Undefined
- AFNetworkingErrorDomain 錯誤解決方法ErrorAI
- PHP錯誤“Thisfilehasexpired”的解決方法PHP
- dbfread報錯ValueError錯誤解決方法Error
- HTTP 錯誤 500.19- Internal Server Error 錯誤解決方法HTTPServerError
- 【Oracle】ORA-00054 錯誤解決方法Oracle
- 錯誤Namenodeisinsafemode的解決方法
- Android錯誤解決方法集錦Android
- hadoop日常錯誤解決方法整理Hadoop
- ORA-04098錯誤解決方法
- ORA-25154錯誤解決方法
- npm WARN unmet dependency錯誤解決方法NPM
- ORA-04092: cannot COMMIT in a trigger錯誤的解決MIT
- standby新增檔案錯誤的解決方法
- MYSQL中 TYPE=MyISAM 錯誤的解決方法MySql
- Mac上搭建chromedriver的錯誤解決方法MacChrome
- 寬頻連線錯誤691解決方法
- ORA-14452錯誤及解決方法
- ubuntu網路卡啟動錯誤解決方法Ubuntu
- IMP-00098 錯誤及解決方法
- nginx出現403錯誤的解決方法Nginx
- steam磁碟寫入錯誤怎麼解決 steam磁碟寫入錯誤解決方法大全
- ora-01034 ora-27121 Cannot allocate memory錯誤解決
- redhat vsftpd及vsftpd 500 OOPS: cannot change directory錯誤解決RedhatFTPOOP
- cannot allocate new log 的解決方法
- Ocelot錯誤解決
- mongodb錯誤解決辦法-bash: ./mongod: cannot execute binary file: Exec format errorMongoDBORMError
- Error:/etc/fstab:Read-only file system錯誤的解決辦法Error
- ORACLE匯入遇到ORACLE錯誤959解決方法Oracle