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/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 錯誤解決:Attempting to use uninitialized value VariableZed
- Ubuntu Cannot allocate memory 錯誤解決方案Ubuntu
- PbootCMS 404 錯誤解決方法boot
- dbfread報錯ValueError錯誤解決方法Error
- dedecms提示500錯誤解決方法
- undefined reference to錯誤的解決方法Undefined
- HTTP 錯誤 500.19- Internal Server Error 錯誤解決方法HTTPServerError
- SyntaxError: Non-ASCII character 與 Cannot decode using encoding "ascii" 錯誤解決ErrorASCIIEncoding
- steam磁碟寫入錯誤怎麼解決 steam磁碟寫入錯誤解決方法大全
- mongodb錯誤解決辦法-bash: ./mongod: cannot execute binary file: Exec format errorMongoDBORMError
- IIS網站配置錯誤定義了重複的“system.web.extensions/scripting/scriptResourceHandler” 解決方法網站Web
- nginx出現403錯誤的解決方法Nginx
- Mac上搭建chromedriver的錯誤解決方法MacChrome
- standby新增檔案錯誤的解決方法
- MYSQL中 TYPE=MyISAM 錯誤的解決方法MySql
- Ocelot錯誤解決
- PHP & Linux: libsodium.so.23 錯誤解決方法PHPLinux
- Nginx報504 gateway timeout錯誤的解決方法NginxGateway
- Linux yum提示Loaded plugins錯誤的解決方法LinuxPlugin
- ORACLE匯入遇到ORACLE錯誤959解決方法Oracle
- Go 自定義日期時間格式解析解決方案 - 解決 `parsing time xx as xx: cannot parse xx as xx` 錯誤Go
- 印表機提示列印錯誤怎麼解決 印表機狀態錯誤的方法
- 解決service iptables save出錯please try to use systemctl
- 解決 Python UnicodeEncodeError 錯誤PythonUnicodeError
- 織夢提示dedecms error warning錯誤的解決方法Error
- 帝國CMS搬家常見錯誤及解決方法
- 解決java5 發行錯誤最好的方法Java
- adobe安裝提示【錯誤程式碼1】解決方法
- ORA-06550錯誤程式碼的解決方法QB
- The operation, ‘DecodeJpeg/contents‘, does not exist in the graph.錯誤解決方法
- 高階複製錯誤ORA-23474解決方法
- mysql 發生系統錯誤1067的解決方法MySql
- tensorflow安裝使用過程錯誤及解決方法
- 解決String cannot be cast to java.util.List報錯ASTJava
- [已解決] [HiveCatalog]Kerberos GSS initiate failed, No valid credentials provided, Cannot read from System.inHiveROSAIIDE
- eclipse中:The type java.lang.object cannot be resolved錯誤(jdk配置錯誤)EclipseJavaObjectJDK
- 資料庫連線錯誤的原因及解決方法資料庫
- 解決伺服器返回錯誤的方法和步驟伺服器
- SSL證書7大常見錯誤及解決方法!