ORA-25153 Temporary Tablespace is Empty Error in Oracle ORA-25153 Temporary tablespace đang rỗng Lỗi trong Oracle
When executing SQL query, the following Oracle error may appears: Khi thực hiện truy vấn SQL, Oracle lỗi có thể xuất hiện sau đây:
ORA-25153: Temporary Tablespace is Empty ORA-25153: Temporary tablespace đang rỗng
The cause for the ORA-25153 error is because attempt was made to use space in a temporary tablespace with no files (no datafiles defined). Nguyên nhân cho ORA-25153 lỗi là vì nỗ lực đã được thực hiện để sử dụng không gian trong một tablespace tạm thời không có tập tin (không datafiles được định nghĩa).
To solve the problem, the solution is just by adding files (datafiles) to the TEMP tablespace by using ADD TEMPFILE command, or by using “Add Datafiles” in Oracle Enterprise Manager. Để giải quyết vấn đề, giải pháp là chỉ cần bằng cách thêm các file (datafiles) cho tablespace TEMP bằng cách sử dụng ADD TEMPFILE lệnh, hoặc bằng cách sử dụng "Thêm Datafiles" ở Oracle Enterprise Manager.
If you check and found that TEMP tablespace already has data files, check the default temporary tablespace for all users and your database and set the default temporary tablespace to a valid temporarary tablespace. Nếu bạn kiểm tra và thấy rằng TEMP tablespace đã có tập tin dữ liệu, kiểm tra các tablespace mặc định tạm thời cho tất cả người dùng và tablespace cơ sở dữ liệu của bạn và thiết lập mặc định tạm thời để một tablespace temporarary hợp lệ.
To check the default temporary tablespace of the database: Để kiểm tra mặc định tablespace tạm thời của cơ sở dữ liệu:
SQL> select property_name, property_value from database_properties; SQL> chọn property_name, property_value từ database_properties;
The SQL will return the following results, look for DEFAULT_TEMP_TABLESPACE for the setting: SQL sẽ trả về các kết quả sau, hãy tìm cho DEFAULT_TEMP_TABLESPACE đặt:
| PROPERTY_NAME PROPERTY_NAME | PROPERTY_VALUE PROPERTY_VALUE |
| —————————— ---------- | —————————— ---------- |
| DICT.BASE DICT.BASE | 2 2 |
| DEFAULT_TEMP_TABLESPACE DEFAULT_TEMP_TABLESPACE | TEMP TEMP |
| DBTIMEZONE DBTIMEZONE | +01:00 +01:00 |
| NLS_NCHAR_CHARACTERSET NLS_NCHAR_CHARACTERSET | AL16UTF16 AL16UTF16 |
| GLOBAL_DB_NAME GLOBAL_DB_NAME | ARON.GENERALI.CH ARON.GENERALI.CH |
| EXPORT_VIEWS_VERSION EXPORT_VIEWS_VERSION | 8 8 |
| NLS_LANGUAGE NLS_LANGUAGE | AMERICAN American |
| NLS_TERRITORY NLS_TERRITORY | AMERICA AMERICA |
| NLS_CURRENCY NLS_CURRENCY | $ $ |
| NLS_ISO_CURRENCY NLS_ISO_CURRENCY | AMERICA AMERICA |
| NLS_NUMERIC_CHARACTERS NLS_NUMERIC_CHARACTERS | ., ., |
| NLS_CHARACTERSET NLS_CHARACTERSET | WE8ISO8859P1 WE8ISO8859P1 |
| NLS_CALENDAR NLS_CALENDAR | GREGORIAN Gregory |
| NLS_DATE_FORMAT NLS_DATE_FORMAT | DD-MON-RR DD-MON-RR |
| NLS_DATE_LANGUAGE NLS_DATE_LANGUAGE | AMERICAN American |
| NLS_SORT NLS_SORT | BINARY Nhị phân |
| NLS_TIME_FORMAT NLS_TIME_FORMAT | HH.MI.SSXFF AM HH.MI.SSXFF PM |
| NLS_TIMESTAMP_FORMAT NLS_TIMESTAMP_FORMAT | DD-MON-RR HH.MI.SSXFF AM DD-MON-RR HH.MI.SSXFF PM |
| NLS_TIME_TZ_FORMAT NLS_TIME_TZ_FORMAT | HH.MI.SSXFF AM TZR HH.MI.SSXFF PM TZR |
| NLS_TIMESTAMP_TZ_FORMAT NLS_TIMESTAMP_TZ_FORMAT | DD-MON-RR HH.MI.SSXFF AM TZR DD-MON-RR HH.MI.SSXFF PM TZR |
| NLS_DUAL_CURRENCY NLS_DUAL_CURRENCY | $ $ |
| NLS_COMP NLS_COMP | BINARY Nhị phân |
| NLS_LENGTH_SEMANTICS NLS_LENGTH_SEMANTICS | BYTE BYTE |
| NLS_NCHAR_CONV_EXCP NLS_NCHAR_CONV_EXCP | FALSE FALSE |
| NLS_RDBMS_VERSION NLS_RDBMS_VERSION | 9.2.0.6.0 9.2.0.6.0 |
If default temporary tablespace is wrong the alter it with the following command: Nếu tablespace mặc định tạm thời là sai sự thay đổi nó bằng lệnh sau:
SQL> alter database default temporary tablespace temp; SQL> thay đổi cơ sở dữ liệu temp tablespace mặc định tạm thời;
To check default temporary tablespace for all users of the database: Để kiểm tra mặc định tablespace tạm thời cho tất cả người dùng của các cơ sở dữ liệu:
SQL> select username, temporary_tablespace, account_status from dba_users; SQL> chọn tên người dùng, temporary_tablespace, account_status từ dba_users;
will return the following result, check if all users TEMPORARY_TABLESPACE is set to correct settings: sẽ trả về kết quả sau, kiểm tra xem tất cả các TEMPORARY_TABLESPACE người dùng được thiết lập để sửa các thiết lập:
| USERNAME USERNAME | TEMPORARY_TABLESPACE TEMPORARY_TABLESPACE | ACCOUNT_STATUS ACCOUNT_STATUS |
| —————————— ---------- | —————————— ---------- | ——————————– ----------- |
| SYS SYS | TEMPRY TEMPRY | OPEN MỞ |
| SYSTEM HỆ THỐNG | TEMP TEMP | OPEN MỞ |
| OUTLN OUTLN | TEMP TEMP | OPEN MỞ |
| DBSNMP DBSNMP | TEMP TEMP | OPEN MỞ |
| DBMONITOR DBMONITOR | TEMP TEMP | OPEN MỞ |
| TEST TEST | TEMP TEMP | OPEN MỞ |
| WMSYS WMSYS | TEMP TEMP | EXPIRED & LOCKED Hết hạn & LOCKED |
If wrong temporary tablespace is found, alter it with the correct tablespace name (for example, sys) with the following SQL: Nếu sai tablespace tạm thời là các mặt hàng, thay đổi nó với tên tablespace đúng (ví dụ, sys) với SQL sau đây:
SQL> alter user sys temporary tablespace temp; SQL> thay đổi người dùng sys temp tablespace tạm thời;
Alternatively, recreate or add a datafile to your temporary tablespace and change the default temporary tablespace for your database; Ngoài ra, tạo lại hoặc thêm một DATAFILE để tablespace tạm thời của bạn và thay đổi mặc định tablespace tạm thời cho các cơ sở dữ liệu của bạn;
SQL> drop tablespace temp including contents and datafiles; SQL> drop tablespace temp bao gồm các nội dung và datafiles;
SQL> create temporary tablespace temp tempfile '/db/temp01.dbf' size 100m autoextend off extent management local uniform size 1m; SQL> tạo tempfile tạm thời temp tablespace '/ db/temp01.dbf' kích thước 100m autoextend giảm kích thước phạm vi quản lý thống nhất địa phương 1phút;
SQL> alter database default temporary tablespace temp; SQL> thay đổi cơ sở dữ liệu temp tablespace mặc định tạm thời;
IMPORTANT : The page is machine translated and provided "as is" without warranty. Quan trọng: Sửa là máy dịch và cung cấp "như là" không có bảo hành. Machine translation may be difficult to understand. Máy dịch thuật có thể khó hiểu. Please refer to Vui lòng tham khảo original English article bản gốc tiếng Anh bài viết whenever possible. bất cứ khi nào có thể.
Related Articles Bài viết liên quan
- Oracle ORA-01658 Unable to Create INITIAL Extent for Segment in Tablespace Error Oracle ORA-01658 Không thể Tạo ĐẦU Mức độ cho Segment trong tablespace Lỗi
- How Drop Tablespace and Recover Oracle Database When Accidentally Delete Datafile Làm thế nào Drop tablespace và Recover Oracle Database Khi Accidentally Xóa DATAFILE
- How to Rename or Move Oracle Tablespace Datafile to Another Location Làm thế nào để Đổi tên hoặc Move Oracle tablespace DATAFILE để khác Địa điểm
- How to Remove and Drop Datafiles from Tablespace in Oracle Database Làm thế nào để Hủy bỏ và Thả Datafiles từ tablespace trong Oracle Database
- Oracle ORA-14074 Create or Add New Partition Fails Error Oracle ORA-14074 Tạo hoặc Add New Partition Không Lỗi
- IMP-00013 Oracle Import Error IMP-00013 Oracle Import Lỗi
- Oracle EXP-00091 Error When Export Database Oracle EXP-00091 Lỗi Khi xuất khẩu Cơ sở dữ liệu
- IMP-00016 Required Character Set Conversion Not Supported Error when Import to Oracle Database IMP-00016 Bắt buộc Character Set Chuyển đổi không được Hỗ trợ Lỗi khi nhập vào Oracle Database
- Create, Add or Split Oracle Database Partition Fails with ORA-14080 Error Tạo, Thêm hoặc Split Oracle Database Partition Không với ORA-14080 Error
- ORA-02449 Oracle Drop Table Error ORA-02449 Oracle Drop Bảng Lỗi










































September 19th, 2008 16:15 Ngày 19 tháng 9 2008 16:15
very informative rất thông tin
helps to find out giúp để tìm hiểu
why wrong and what to do to overcome tại sao sai và phải làm gì để khắc phục
May 7th, 2008 13:28 07 Tháng 5 2008 13:28
Hi, Chào,
Thank you for such clear details. Cám ơn các chi tiết như vậy rõ ràng.
It helped me solve a problem in SAP BW system. Nó đã giúp tôi giải quyết một vấn đề trong hệ thống SAP BW.
Regards Kính trọng
Sharath Sharath
January 28th, 2008 17:52 28 Tháng 1 2008 17:52
very good informative articale. articale thông tin rất tốt.
thanks cảm ơn
srinivas srinivas