Add Unique Constraint - Unable to extend temp segment
I'm getting the error "ORA-01652: unable to extend temp segment by 1024 in tablespace ...". I'm a developer, and our DBA is on vacation. I'm trying to understand what's happening, so I monitor V$SORT_SEGMENT while the constraint is being created. Here is what that view looks like immediately before and after the exception is thrown:
10:43:07 < ... > select * from v$sort_segment;
TABLESPACE_NAME SEGMENT_FILE SEGMENT_BLOCK EXTENT_SIZE CURRENT_USERS TOTAL_EXTENTS TOTAL_BLOCKS USED_EXTENTS USED_BLOCKS FREE_EXTENTS FREE_BLOCKS ADDED_EXTENTS EXTENT_HITS FREED_EXTENTS
FREE_REQUESTS MAX_SIZE MAX_BLOCKS MAX_USED_SIZE MAX_USED_BLOCKS MAX_SORT_SIZE MAX_SORT_BLOCKS RELATIVE_FNO
TEMP 0 0 128 1 460 58880 460 58880 0 0 460 505 2809
1 2809 359552 460 58880 460 58880 0
Elapsed: 00:00:00.04
10:43:13 < ... > select * from v$sort_segment;
TABLESPACE_NAME SEGMENT_FILE SEGMENT_BLOCK EXTENT_SIZE CURRENT_USERS TOTAL_EXTENTS TOTAL_BLOCKS USED_EXTENTS USED_BLOCKS FREE_EXTENTS FREE_BLOCKS ADDED_EXTENTS EXTENT_HITS FREED_EXTENTS
FREE_REQUESTS MAX_SIZE MAX_BLOCKS MAX_USED_SIZE MAX_USED_BLOCKS MAX_SORT_SIZE MAX_SORT_BLOCKS RELATIVE_FNO
TEMP 0 0 128 0 460 58880 0 0 460 58880 460 505 2809
1 2809 359552 460 58880 460 58880 0
Elapsed: 00:00:00.02My DBA had previously instructed me to issue this command to try to avoid this error:
alter database tempfile '...' resize 12g;I do that, but I still only show 460 free segments. Can someone point me to some documentation on how to make the Free Extents be larger than 460?
Here's my client info:
SQL*Plus: Release 11.2.0.3.0 Production on Tue Nov 6 10:40:39 2012
Copyright (c) 1982, 2011, Oracle. All rights reserved.Here's my server info:
Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Given that you appear to be able to add/increase temp files, you are also likely to be able to see the dba_* views. As a first shot, try:
select sum(bytes) from dba_free_space
where tablespace_name = <name from the error message>If there appears to be sufficient space (no idea what that would be since I do not know how big your objects are) then try something like:
select file_id, block_id, bytes from dba_free_space
where tablespace_name = <name from the error message>
order by bytes descIf you have large amounts of contiginous free space (i.e. the first few rows have a large value for the bytes column) then ther may be something else going on.
If both queries show relativel small values for the amount of free space, you will need to add another datafile to the tablespace, or increase the size of one of the existing datafile.
To see the datafiles in the tablespace use:
select file_name, bytes from dba_data_files
where tablespace_name = <name from the error message>You can increase the size of a datafile using something similar to the alter database command you have for the tempfiles like:
alter database datafile <a quoted full name from dba_data_files> resize some bigger numberJust make sure that the file system has enough free space for the new size.
John
Similar Messages
-
Unable to extend temp segment by 128 in tablespace PSAPTEMP
Hi everybody!
While processing a UNICODE coversion with SAPINST on my SAP NW2004s system (AIX 5,2 - Oracle 10.2 - BW 7.0) into my.SAPDFACT_1.log file the following errors occured:
DbSl Trace: ORA-1403 when accessing table SAPUSER
(DB) INFO: connected to DB
(DB) INFO: DbSlControl(DBSL_CMD_NLS_CHARACTERSET_GET): UTF8
(GSI) INFO: dbname = "HBQ20080503070541 "
(GSI) INFO: vname = "ORACLE "
(GSI) INFO: hostname = "si088ss1 "
(GSI) INFO: sysname = "AIX"
(GSI) INFO: nodename = "si088ss1"
(GSI) INFO: release = "2"
(GSI) INFO: version = "5"
(GSI) INFO: machine = "0031832B4C00"
(DB) INFO: /BIC/FZHPY_LIM created #20080503200234
(IMP) INFO: import of /BIC/FZHPY_LIM completed (133182692 rows) #20080503212420
DbSl Trace: Error 1652 in exec_immediate() from oci_execute_stmt(), orpc=0
DbSl Trace: ORA-1652 occurred when executing SQL stmt (parse error offset=42)
(DB) ERROR: DDL statement failed
(CREATE UNIQUE INDEX "/BIC/FZHPY_LIM~0" ON "/BIC/FZHPY_LIM" ( "KEY_ZHPY_LIMP", "KEY_ZHPY_LIMT", "KEY_ZHPY_LIMU", "KEY_ZHPY_LIM2", "KEY_ZHPY_LIM3", "KEY_ZHPY_LIM4", "KEY_ZH
PY_LIM5", "KEY_ZHPY_LIM6", "KEY_ZHPY_LIM7" ) TABLESPACE PSAPSR3 STORAGE (INITIAL 65536 NEXT 0000002560K MINEXTENTS 0000000001 MAXEXTENTS 2147483645 PCTINCREASE 0 ) NOLOGGING COMPUTE STATISTICS )
DbSlExecute: rc = 99
(SQL error 1652)
error message returned by DbSl:
ORA-01652: unable to extend temp segment by 128 in tablespace PSAPTEMP
(DB) INFO: disconnected from DB
Anybody can help me?
Thanks a lot!Hi Stefan!
desc SAPSR3."/BIC/FZHPY_LIM";
Name Null? Type
KEY_ZHPY_LIMP NOT NULL NUMBER(10)
KEY_ZHPY_LIMT NOT NULL NUMBER(10)
KEY_ZHPY_LIMU NOT NULL NUMBER(10)
KEY_ZHPY_LIM2 NOT NULL NUMBER(10)
KEY_ZHPY_LIM3 NOT NULL NUMBER(10)
KEY_ZHPY_LIM4 NOT NULL NUMBER(10)
KEY_ZHPY_LIM5 NOT NULL NUMBER(10)
KEY_ZHPY_LIM6 NOT NULL NUMBER(10)
KEY_ZHPY_LIM7 NOT NULL NUMBER(10)
/BIC/ZHCONTING NOT NULL NUMBER(17,2)
/BIC/ZHD_IMP NOT NULL NUMBER(17,2)
/BIC/ZHPERC2 NOT NULL NUMBER(10)
SELECT AVG_ROW_LEN FROM ALL_TABLES WHERE TABLE_NAME = '/BIC/FZHPY_LIM';
AVG_ROW_LEN
SELECT BYTES, BLOCKS FROM DBA_SEGMENTS WHERE SEGMENT_NAME = '/BIC/FZHPY_LIM';
BYTES BLOCKS
7180648448 876544
SELECT FILE_NAME, TABLESPACE_NAME, BYTES, BLOCKS, AUTOEXTENSIBLE, MAXBYTES, MAXBLOCKS FROM DBA_TEMP_FILES;
FILE_NAME
TABLESPACE_NAME BYTES BLOCKS AUT MAXBYTES MAXBLOCKS
/oracle/HBQ/sapdata1/temp_1/temp.data1
PSAPTEMP 1048576000 128000 YES 1.0486E+10 1280000
/oracle/HBQ/sapdata1/temp_1/temp2.data1
PSAPTEMP 298844160 36480 YES 3.4359E+10 4194176
Thanks. -
ORA-1652: unable to extend temp segment by 128 in tablespace
HI,
i am getting an error in alert log file.....
Thread 1 advanced to log sequence 1758
Current log# 2 seq# 1758 mem# 0: /dev/vx/rdsk/racdg/orcl_raw_log12
Mon Sep 8 12:34:16 2008
ARC1: Evaluating archive log 1 thread 1 sequence 1757
ARC1: Beginning to archive log 1 thread 1 sequence 1757
Creating archive destination LOG_ARCHIVE_DEST_1: '/arch/log/1_1757.dbf'
ARC1: Completed archiving log 1 thread 1 sequence 1757
Mon Sep 8 13:04:26 2008
Completed checkpoint up to RBA [0x6de.2.10], SCN: 0x0000.6c1f757f
Mon Sep 8 13:49:16 2008
ORA-1652: unable to extend temp segment by 128 in tablespace TEMPI don';t want to add datafile
SQL> select bytes,maxbytes,increment_by from dba_temp_files;
BYTES MAXBYTES INCREMENT_BY
6134169600 0 0
SQL> select TABLESPACE_NAME, BYTES_USED, BYTES_FREE from V$TEMP_SPACE_HEADER;
TABLESPACE_NAME BYTES_USED BYTES_FREE
TEMP 6037700608 96468992i have also referred metalink note: 19047.1
Is there any way to avoid this problem without adding any datafile........how to find out which session is using temp tablespace
SQL> select * from v$sort_usage;
USERNAME USER SESSION_ADDR
SESSION_NUM SQLADDR SQLHASH TABLESPACE
CONTENTS SEGTYPE SEGFILE# SEGBLK# EXTENTS BLOCKS SEGRFNO#
DATA3 DATA3 000000044D84F558
25860 00 0 TEMP
TEMPORARY DATA 201 183561 1 128 1pls correct me if the above query is worng to find out the no. of session s using temp tablespace
i think we have already allocated good amt of space to pga_aggregate_target
SQL> show parameter pga
NAME TYPE VALUE
pga_aggregate_target big integer 524288000
SQL>Edited by: user00726 on Sep 8, 2008 2:29 AM -
ORA-01652: unable to extend temp segment by 8192 in tablespace CDR_TAB
Dear All,
While create index command
"create index idx_CALLED_NO on dbs(CALLED_NO) nologging"
an error occure
ORA-01652: unable to extend temp segment by 8192 in tablespace CDR_TAB
how to retify it.what is the command to add datafile or tablespace......
Using oracle 9i...
Thanks in advancecreate tablespace or add index, that you can find out at http://tahiti.oracle.com
You should check space on CDR_TAB.
I think you can create new tablespace
http://download.oracle.com/docs/cd/B10501_01/server.920/a96540/statements_74a.htm#SQLRF01403
Create tablespace CDR_IND datafile 'xxx' ...After that create index
create index idx_CALLED_NO on dbs(CALLED_NO) nologging tablespace CDR_IND ;Good Luck;) -
ORA-1652: unable to extend temp segment
Hi,
I am new here and i am not sure if my question is for that section but will be happy to get some answers.
I found ORA-1652: unable to extend temp segment by 128 in tablespace PSAPTEMP in alert log and checked the space in PSAPTEMP.
TABLESPACE_NAME MB_FREE FRAGMENTS BIGGEST_BIT
PSAPTEMP 0.00 1 0.00
Could you advice me what to do?
Thanks in advance
MikiMiki, you probably need to add space via adding another data file as the posted error message information says or you might first look to see what is using the space to make sure someone did not do something 'stupid'. In this case stupid would be assigning the wrong usernames the affected tablespace as their default temporary tablespace when the users should be assigned a different one or some other misconfiguration.
Most likely you just need a larger tablespace, but it never hurts to know why or how much larger before taking action.
HTH -- Mark D Powell -- -
Hi,
I am still facing the error for table space evnthough datafile is avl
READER_1_1_1 RR_4035 SQL Error [
ORA-01652: unable to extend temp segment by 128 in tablespace TEMP2
Database driver error...
Function Name : Execute
SQL Stmt : SELECT
ONLINE DATA PERMANENT LOCAL 200 0.063 0.03
ONLINE DEV1_BIPLATFORM PERMANENT LOCAL 64 44.313 69.24
ONLINE DEV1_IAS_TEMP TEMPORARY LOCAL 100 0 0
ONLINE DEV1_MDS PERMANENT LOCAL 100 5.438 5.44
ONLINE DEV_BIPLATFORM PERMANENT LOCAL 64 44.313 69.24
ONLINE DEV_IAS_TEMP TEMPORARY LOCAL 100 0 0
ONLINE DEV_MDS PERMANENT LOCAL 100 5.438 5.44
ONLINE EXAMPLE PERMANENT LOCAL 975.188 109.125 11.19
ONLINE FLA_TBS1 PERMANENT LOCAL 10 0.063 0.63
ONLINE MES_DW2 PERMANENT LOCAL 2,091.19 1,794.19 85.8
ONLINE SYSAUX PERMANENT LOCAL 1,245.38 906.938 72.82
ONLINE SYSTEM PERMANENT LOCAL 3,300.00 2,429.44 73.62
ONLINE TEMP TEMPORARY LOCAL 24,458.00 5,020.00 20.52
ONLINE TOOLS PERMANENT LOCAL 1,050.00 0.063 0.01
ONLINE UNDOTBS1 UNDO LOCAL 2,670.00 95.438 3.57
ONLINE USERS PERMANENT LOCAL 43,530.98 30,366.30 69.76No Sense:
ORA-01652: unable to extend temp segment by 128 in tablespace TEMP2
tablespace TEMP2
Database driver error...
Function Name : Execute
SQL Stmt : SELECT
ONLINE DATA PERMANENT LOCAL 200 0.063 0.03
ONLINE DEV1_BIPLATFORM PERMANENT LOCAL 64 44.313 69.24
ONLINE DEV1_IAS_TEMP TEMPORARY LOCAL 100 0 0
ONLINE DEV1_MDS PERMANENT LOCAL 100 5.438 5.44
ONLINE DEV_BIPLATFORM PERMANENT LOCAL 64 44.313 69.24
ONLINE DEV_IAS_TEMP TEMPORARY LOCAL 100 0 0
ONLINE DEV_MDS PERMANENT LOCAL 100 5.438 5.44
ONLINE EXAMPLE PERMANENT LOCAL 975.188 109.125 11.19
ONLINE FLA_TBS1 PERMANENT LOCAL 10 0.063 0.63
ONLINE MES_DW2 PERMANENT LOCAL 2,091.19 1,794.19 85.8
ONLINE SYSAUX PERMANENT LOCAL 1,245.38 906.938 72.82
ONLINE SYSTEM PERMANENT LOCAL 3,300.00 2,429.44 73.62
ONLINE TEMP TEMPORARY LOCAL 24,458.00 5,020.00 20.52
ONLINE TOOLS PERMANENT LOCAL 1,050.00 0.063 0.01
ONLINE UNDOTBS1 UNDO LOCAL 2,670.00 95.438 3.57
ONLINE USERS PERMANENT LOCAL 43,530.98 30,366.30 69.76
tablespace TEMP2 doesn't exist.
i used statement
ALTER TABLESPACE temp
ADD TEMPFILE 'D:\app\TEMP16.DBF' SIZE 128M autoextend on;
ALTER TABLESPACE
USERS ADD DATAFILE 'D:\app\SYS00.DBF' SIZE 1080M autoextend on;
alter user DATAWAREHOUSE quota unlimited on USERS
why add datafile in user tablespace¿?
and you solved the issue doing the same like we told you a few days before in:
ORA-1652: unable to extend temp segment by 128 in tablespace
unable to create INITIAL extent for segment in tablespace USERS
Remember close your threads:
896398
Handle: 896398
Status Level: Newbie
Registered: Nov 9, 2011
Total Posts: 530
Total Questions: 158 (116 unresolved) -
Query to find which past ses caused ORA-1652: unable to extend temp segment
Hi,
I m trying to get information on the sessions/sql query that have cause ORA-1652: unable to extend temp segment from past 2 days. Basically need to know which all sessions in past 2 days have caused ORA-1652: unable to extend temp segment.
I have generated the AWR report but not able to figure it out which sessions caused this error.
Thanks in advance913410 wrote:
Hi,
I m trying to get information on the sessions/sql query that have cause ORA-1652: unable to extend temp segment from past 2 days. Basically need to know which all sessions in past 2 days have caused ORA-1652: unable to extend temp segment.
I have generated the AWR report but not able to figure it out which sessions caused this error.
Thanks in advance
01652, 00000, "unable to extend temp segment by %s in tablespace %s"
// *Cause: Failed to allocate an extent of the required number of blocks for
// a temporary segment in the tablespace indicated.
// *Action: Use ALTER TABLESPACE ADD DATAFILE statement to add one or more
// files to the tablespace indicated. -
ORA-01652: unable to extend temp segment by 256 in tablespace TEMP
ORA-01652: unable to extend temp segment by 256 in tablespace HDM_DBUSER_TEMP
HI GURUS PLEASE HELP ME,
I Have 9i database on solaris version 9,
i am repeatedly getting the following error in the alert.log file.
Failed write to clobORA-01652: unable to extend temp segment by 256 in tablespace HDM_DBUSER_TEMP
using the meta link Doc ID: 280578.1, i have increased the temp TS, but still getting the same alert message in alert.log file.
In metalink it is given second solution,
If there is severe temp segment space contention across instances, a
slowdown can occur. The following are potential workarounds:
- Increase size of the temp tablespace
- Do not use the DEFAULT temp tablespace feature in RAC.
- Increase sort_area_size and/or pga_aggregate_target "
I have increased the size of the temp TS, but the error is poping up still in alert.log.
I don't know how to assign DEFAULT temp tablespace feature in RAC????
SQL> select inst_id, tablespace_name, total_blocks, used_blocks, free_blocks
from gv$sort_segment; 2 ^R
from gv$sort_segment;
INST_ID TABLESPACE_NAME TOTAL_BLOCKS USED_BLOCKS FREE_BLOCKS
1 TEMP 2304 0 2304
1 HDM_DBUSER_TEMP 519424 519424 0
PLEASE Help !!!
Thanks in advanceHello,
Add additional datafile to followign tablespace, also post out of the followign command
SELECT dt.tablespace_name,
file_name,
bytes,
extent_management,
segment_space_management
FROM dba_tablespaces dt, dba_data_files ddf
WHERE dt.tablespace_name = ddf.tablespace_name;
ALTER TABLESPACE hdm_dbuser_temp ADD DATAFILE '/location/...' SIZE 512M
AUTOEXTEND ON NEXT 256M MAXSIZE 4096M; -- or unlimited on 8192 MRegards -
ORA-01652 unable to extend temp segment in 11gR2 with ASM and 2 node RAC
Hi ,
I have a 11.2.0.1 system with 2 node RAC and ASM . We are hitting ORA-01652 very frequently
and I can see space is available in TEMP .
CREATE TEMPORARY TABLESPACE "TEMP" TEMPFILE
SIZE 21474836480,
SIZE 137437904896
AUTOEXTEND ON NEXT 655360 MAXSIZE 131071M ( Will the next size ignored as the extent size is 1MB ?)
EXTENT MANAGEMENT LOCAL UNIFORM SIZE 1048576
And during the failure
SELECT tablespace_name,
total_blocks,
used_blocks,
free_blocks,
total_blocks*32768/1024/1024 as total_MB,
used_blocks*32768/1024/1024 as used_MB,
free_blocks*32768/1024/1024 as free_MB
FROM gv$sort_segment;
TABLESPACE_NAME TOTAL_BLOCKS USED_BLOCKS FREE_BLOCKS TOTAL_MB USED_MB FREE_MB
TEMP 4849568 2385728 2463840 151549 74554 76995
TEMP 0 0 0 0 0 0
Also when I checked from v$sort_usage I see only two session consuming space
SQL> SELECT b.tablespace tablespace,
2 -- b.segfile#,
3 -- b.segblk#,
4 b.blocks,
5 b.blocks * (SELECT value FROM v$parameter WHERE name = 'db_block_size')/1024/1024 bytes,
6 a.sid,
7 a.username username,
8 a.osuser osuser,
9 a.inst_id,a.sid,a.serial#,a.module
10 FROM gv$session a, gv$sort_usage b
11 WHERE a.saddr = b.session_addr and
12 b.blocks != 16 and
13 a.inst_id = b.inst_id
14 ORDER BY b.tablespace, b.blocks, bytes desc;
BLOCKS BYTES SID USERNAME OSUSER INST_ID SID SERIAL# MODULE
1,192,864 37277 381 CN obiqb 2 381 860 nqsserver@icmqapp01cdp (TNS V1
1,192,864 37277 3952 CN obiqb 2 3952 1374 nqsserver@icmqapp01cdp (TNS V1
2,385,728 74554 (mb)
Wat is causing the 1652 ?877394 wrote:
Thanks Srini,
But I did try all that notes with no luck .
I have a temporary tablespace with 150gb (130+20) datafiles .
TABLESPACE_NAME FILE_NAME (BYTES/1024/1024)
TEMP +DATA_01/tempfile/temp.314.743964 131071
TEMP +DATA_01/tempfile/temp.312.757303 20480
and the DDL is
CREATE TEMPORARY TABLESPACE "TEMP" TEMPFILE
SIZE 21474836480,
SIZE 137437904896
AUTOEXTEND ON NEXT 655360 MAXSIZE 131071M
EXTENT MANAGEMENT LOCAL UNIFORM SIZE 1048576
And on querying v$sort_usage
SQL> SELECT b.tablespace tablespace,
2 -- b.segfile#,
3 -- b.segblk#,
4 b.blocks,
5 b.blocks * (SELECT value FROM v$parameter WHERE name = 'db_block_size')/1024/1024 bytes,
6 a.sid,
7 a.username username,
8 a.osuser osuser,
9 a.inst_id,a.sid,a.serial#,a.module
10 FROM gv$session a, gv$sort_usage b
11 WHERE a.saddr = b.session_addr and
12 b.blocks != 16 and
13 a.inst_id = b.inst_id
14 ORDER BY b.tablespace, b.blocks, bytes desc;
TABLESPACE BLOCKS BYTES SID OSUSER INST_ID SID SERIAL# MODULE
TEMP 63,328 1,979 3952 CN 2 3952 1374
TEMP 84,384 2,637 381 CN 2 381 860
TEMP 433,184 13,537 381 CN 2 381 860
TEMP 1,117,728 34,929 3952 CN 2 3952 1374
sum 1,698,624 53,082 (mb)
So the space utilization was less than 150gb and on querying v$sort_Segment
SQL> SELECT tablespace_name,
total_blocks,
used_blocks,
free_blocks,
total_blocks*32768/1024/1024 as total_MB,
used_blocks*32768/1024/1024 as used_MB,
free_blocks*32768/1024/1024 as free_MB
FROM gv$sort_segment;
TABLESPACE_NAME TOTAL_BLOCKS USED_BLOCKS FREE_BLOCKS TOTAL_MB USED_MB FREE_MB inst
TEMP 4849568 2311104 2538464 151549 72222 79327 2
TEMP 0 0 0 0 0 0 1
why for inst 1 it is showing 0 (which means no sort is happening in instance 1)
But still we got the error
ORA-1652: unable to extend temp segment by 32 in tablespace TEMP
01652, 00000, "unable to extend temp segment by %s in tablespace %s"
// *Cause: Failed to allocate an extent of the required number of blocks for
// a temporary segment in the tablespace indicated.
// *Action: Use ALTER TABLESPACE ADD DATAFILE statement to add one or more
// files to the tablespace indicated. -
Unable to extend temp segment by 4096 in tablespace error
Hi
Can some help me resolving this problem .which occured when i try to import some dump file to an user.
ORA-39171: Job is experiencing a resumable wait.
ORA-01652: unable to extend temp segment by 4096 in tablespace HDM_INDEX
i added 2 gb of datafile to the table space it is still shows the same .
any expert suggestion is highly apprciated.
thanks790072 wrote:
Hi
Can some help me resolving this problem .which occured when i try to import some dump file to an user.
Pl post details of OS and database versions, along with the complete import command and parameters used.
ORA-39171: Job is experiencing a resumable wait.
ORA-01652: unable to extend temp segment by 4096 in tablespace HDM_INDEX
i added 2 gb of datafile to the table space it is still shows the same .Pl identify the tablespace you added space to (and the commands used to add space)
>
any expert suggestion is highly apprciated.Pl post relevant sections from the database alert.log
>
>
thanks
ORA-1652 Error Troubleshooting [Document 793380.1]
ORA-01652: Estimate Space Needed to CREATE INDEX [Document 100492.1]
TROUBLESHOOTING GUIDE (TSG) - UNABLE TO EXTEND Errors [Document 1025288.6]
HTH
Srini -
Unable to extend temp segment by 128
Hello
In our Company an erp is running very well.
All reports were running very fine. and forms lov also.
an error is comming when seen from sql
unable to extend temp segment by 128 in tablespace MAKESS_TEMP
for e.g
1 select e.vc_group_desc,f.vc_sub_group_desc,
2 to_number(substr(d.vc_invoice_no,3)) inv_no1,d.dt_invoice_date inv_date,
3 b.vc_item_group,b.vc_item_sub_group,
4 d.vc_item_code,d.vc_item_desc,d.vc_unit,d.vc_invoice_no,d.dt_invoice_date,
5 d.nu_item_disc,
6 d.vc_invoice_no inv_no,
7 d.vc_cust_name cf_cust_name,d.nu_tot_sale_val,
8 d.nu_tot_charge charge,d.nu_tot_disc disc,
9 d.nu_tot_freight freight,d.nu_product_quantity,d.nu_product_rate,
10 d.nu_item_val ,d.vc_voucher_no voucher_no,
11 d.nu_tot_cycle_val,d.nu_tot_parts_val
12 from dt_sale_invent d,
13 makess.mst_item b,
14 mst_group e,mst_sub_group f
15 where
16 f.vc_comp_code='01'
17 and f.vc_sub_group_code=b.vc_item_sub_group
18 and e.vc_comp_code='01'
19 and e.vc_group_code=b.vc_item_group
20 and b.vc_comp_code='01'
21 and b.vc_item_code =d.vc_item_code
22 and d.vc_comp_code='01'
23 and d.dt_invoice_date between '01-APR-03' AND '31-MAR-04'
24 and e.vc_group_code='66'
25 and d.vc_item_group='66'
26* order by 2,4,3
SQL> /
from dt_sale_invent d,
ERROR at line 12:
ORA-01652: unable to extend temp segment by 128 in tablespace MAKESS_TEMP
here makess_temp is temporary tablespace
i have seen makess_temp.ora file size has gone to 16 GB
This tablespace was generated by this query
CREATE TEMPORARY TABLESPACE makess_temp TEMPFILE 'D:\ORACLE9I\avondata\avon\maketemp.ora' SIZE 200M AUTOEXTEND ON NEXT 20M DEFAULT STORAGE ( INITIAL 100K NEXT 100K MINEXTENTS 1 MAXEXTENTS UNLIMITED PCTINCREASE 1 );
pls recommend me what to do,how to increase its sizeAs Jeroen suggests, you could add a datafile to your temp tablespace, but, I'm not sure that that is your problem.
Unless your tables are really huge (and I mean several tens of Gb each), and that query actually returns a substantial percentage of the rows in the tables, I don't see why it would use 16Gb of temp.
I would re-create the temp tablespace with:
EXTENT MANAGEMENT LOCAL UNIFORM SIZE 1M
for starters. Minimally, I would set pctincrease to 0.
I would also look at the the Explain Plan for the query to see if there are a lot of sort joins going on. Make sure that the tables and indexes are analyzed properly so the statistics are up to date.
HTH
John -
Unable to extend temp segment in diffrent tablespace
Hi
Even no user has default temp tablespace other than 'TEMP'
I sometimes get the following error in alert log.
Any idea?
ORA-1652: unable to extend temp segment by 1280 in tablespace PCSYST_DATA_INXORA-1652: unable to extend temp segment by 1280 in tablespace PCSYST_DATA_INXYou need to increase the size of the present datafile or add another datafile to tablespace PCSYST_DATA_INX
From metalink:-
>
# symptom: ORA-1652 out of space errors in the PERMANENT Tablespace.
# symptom: ORA-01652 : Unable to extend temp segment by %s in tablespace %s
# cause: Some session creates large object but there is not space enough. Object exists as TEMPORARY during creation.
>
Refer to Doc ID: 106717.1 and Doc ID: 19047.1
Anand
Edited by: Anand... on May 13, 2009 3:31 AM -
Unable to extend temp segment by 128 in tablespace TEMP
Hi all,
I am using apps 11.5.10.2 and i think this is a database issue
ERROR at line 1:
ORA-01652: unable to extend temp segment by 128 in tablespace TEMP
Do i have to increase the tablespace, if so how to do it. I don't even know the EM Pass
Regards
Jaganwhat is the size of your temp tablespace?
Have another try, if the problem persists, increase the temp datafile size.
alter database tempfile <temp file name> resize <integer> M;
You can also add a new datafile.
ALTER TABLESPACE name ADD TEMPFILE 'filename.dbf' SIZE 10M;
You can always investigate and try to avoid too much sort by checking the SQL.
Jaffar -
Unable to extend temp segment by 32 in tablespace EDWSTGDAT
Hi All,
I'm getting the error
ORA-1652: unable to extend temp segment by 32 in tablespace EDWSTGDATA00.
Please let me know for this do i need to add more tempfiles or add more space in EDWSTGDATA00 tablespace.
Regards,
NarayanYou do not need to add more temp files. This is not a problem of your temp tablespace. This is the problem of temp segments in your permanent tablespace. You need to add another datafile in EDWSTGDATA00 tablepsace. This happens when you are trying to create tables and indexes. Oracle first does the processing in temp segments(not temp tablespace) and at the end oracle converted those temp segments into permanent segments.
Also, post the result of below query
select file_name,sum(bytes/1024/1024)in_MB,autoextensible,sum(maxbytes/1024/1024)in_MB from dba_data_files where tablespace_name='STAGING_TEST' group by file_name,autoextensible order by FILE_NAME; -
ORA-01652: unable to extend temp segment by 128 in tablespace TEMP2
Dear all,
received this error when generate a report.
check the TEMP1 and TEMP2 they all have lot of spaces.
check the env $APPLLCSP return empty.
Please advise how to correct this error.
Regards,
Payables: Version : 12.0.0
APXSSIMP module: Supplier Sites Open Interface Import
APPLLCSP Environment Variable set to :
Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :
American_America.UTF8
Enter Password:
REP-0069: Internal error
REP-57054: In-process job terminated:Terminated with error:
REP-300: MSG-00001: After SRWINIT
MSG-00002: After Get_Company_Name
MSG-00003: After Get_NLS_Strings
MSG-00004: After Importing Suppliers
MSG-00005: After Get_Header_Information
ORA-01652: unable to extend temp segment by 128 in tablespace TEMP2
==> SELECT assi.org_id C_Rejected_Org_Id,
MSG-00020: After SRWEXIT
Report Builder: Release 10.1.2.0.2 - Production on Mon May 11 09:55:36 2009>
check the TEMP1 and TEMP2 they all have lot of spaces.
>
How much is "lot" ? :-) How did you determine this "lot" ?
Pl see MOS Doc 1025288.6 (How to Diagnose and Resolve UNABLE TO EXTEND Errors)
HTH
Srini
Maybe you are looking for
-
How to transfer video from iPhone to ipad
How do you transfer video from iPhone to ipad
-
Hi experts please help me here back order calculation is 10 4000-36 = 3964 10 3964-276= 3688 10 3688-700= 2988
-
My Adobe reader won't open/read a mobi file created by a professional formatter.
-
Bug (?): Here maps application minimizes, cannot be used
I have the Here Maps program (a store app). After the installation of the tech preview the Here Maps application is unusable. The application loads and shows the current map for about 5 seconds, then the application minimizes to the task bar and ca
-
How do I clear or remove "Places" search?
Motorola Razr Maxx HD My phone came equiped with numerous applications one of which is an app titled "Places" I conducted a search of a number of businesses and those search lists still appear when I access the "Places" app and depress the magnifying