Unable to Extend Vo
Hi all ,
I am trying to extend VO in R12 for that i am getting bellow error
Each row in the Query Result Column must be mapped to a unique Query Attribute in the Mapped Entity column.
I am not even modified the Base Vo just trying to extend base VO (i.e. HzPuiOrgSearchResultsVO.xml)
when i click the Base Vo it is giving the below error and that vo is read only not able to modify any thing (i.e. mappings if nay case may change) i copied java files in my projects also
warning : There was java error for this object the wizard will be read only until tehy are corrected and it is showing
vo impl file and vorow impl java files in my projects..
please any one help me to resale this issue.
Regards,
Sridhar.
This error comes when we add the new columns to query of VO before creating View attributes.
So before adding new columns to query of VO, go to Attribute screen of View Object Editor and create the attributes by clicking on New button.
Similar Messages
-
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 -
Hi All,
I have Oracle 8i installed on Redhat 7.3
I am trying to import from a large dmp file (10 GB). Initially I was getting error related to "unable to extend datafile", which I got over by creating multiple datafiles with size 2GB each. Thanks to the help provided on this list.
But now I ran into another error that reads as following:
IMP-00058: ORACLE error 1653 encountered
ORA-01653: unable to extend table XXX.XXX_DAT by 311072 in tablespace YYY
IMP-00017: following statement failed with ORACLE error 1031:
"CREATE TRIGGER "USERME".XXX_BI before insert"
I have created enough datafile and I have 60 GB available space on the drive. Please guide me as to what am I doing wrong here, and how could I get over this problem.
Thanks.
AmitHi Joel,
Thanks for your time.
I have already done that part before I started import. The user has unlimited quota on the tablespace. But the problem still shows up.
By the way, I have multiple dmp files, I could import the first dmp file, but this error shows up while doing the import for the next dmp file, which should just append the data to the existing table. I am sorry, I should have mentioned this before.
Please advise.
-Amit -
Unable to extend table SYS.yyy_xx1$ by 8192 in tablespace SYSTEM
While trying to compile a package with lots of objects i am getting the below error message.
Oracle 11gr2
ORA-00604: error occurred at recursive SQL level 1
ORA-01653: unable to extend table SYS.yyy_xx1$ by 8192 in tablespace SYSTEM
00604. 00000 - "error occurred at recursive SQL level %s"
*Cause: An error occurred while processing a recursive SQL statement
(a statement applying to internal dictionary tables).
*Action: If the situation described in the next error on the stack
can be corrected, do so; otherwise contact Oracle Support.
How can i resolve the issueResult of query
select -- file_name
blocks
, maxblocks
, status
, autoextensible
from dba_data_files
where tablespace_name = 'SYSTEM';
4194302
4194302
AVAILABLE
YES
4194302
4194302
AVAILABLE
YES
4194302
4194302
AVAILABLE
YES
262144
0
AVAILABLE
NO
524288
0
AVAILABLE
NO
524288
0
AVAILABLE
NO
524288
0
AVAILABLE
NO
524288
0
AVAILABLE
NO
524288
524288
AVAILABLE
YES
524288
524288
AVAILABLE
YES
518400
524288
AVAILABLE
YES
517120
524288
AVAILABLE
YES
655360
0
AVAILABLE
NO
655360
0
AVAILABLE
NO
262144
0
AVAILABLE
NO
262144
0
AVAILABLE
NO
262144
0
AVAILABLE
NO
262144
0
AVAILABLE
NO
262144
0
AVAILABLE
NO
262144
0
AVAILABLE
NO
262144
0
AVAILABLE
NO
262144
0
AVAILABLE
NO
262144
0
AVAILABLE
NO
262144
0
AVAILABLE
NO -
Trying to create a fact table,error:unable to extend temp segement
Using Oracle 10.2g
SQL>
create materialized view facts_table
( s_id
, g_id
, sb_id
, sc_id
, y_id)
refresh with rowid
as select s.s_id
, g.g_id
, sb.sb_id
, sc.sc_id
, y.academicyear
from student s
, grade g
, subject sb
, school sc
, comqdhb.teachinggroup y;
ERROR at line 3:
ORA-01652: unable to extend temp segment by 1024 in tablespace POSTGRADSI am creating the fact table as materialized view because its specified for us.
I am trying to create a fact table from the dimension tables and its giving this error
what is the mistake kindly help.
Also when creating the fact table do all the columns need to be foreign keys compulsorily.
Edited by: Trooper on Jan 10, 2009 5:25 AM
Edited by: Trooper on Jan 10, 2009 6:37 AMWell basically what your saying is absolutely right
I realized what i am doing right now is stupendous blunder.
Basically my aim is there are 5 dimensional tables that are created
Student->s_id primary key,upn(unique pupil no),name
Grade->g_id primary key,grade,exam_level,values
Subject->sb_id primary key,subjectid,subname
School->sc_id primary key,schoolno,school_name
year->y_id primary key,year(like 2008)
s_id,g_id,sb_id,sc_id,y_id are sequences
select * from student;
S_ID UPN FNAME COMMONNAME GENDER DOB
==============================
9062 1027 MELISSA ANNE f 13-OCT-81
9000 rows selected
select * from grade;
G_ID GRADE E_LEVEL VALUE
73 A a 120
74 B a 100
75 C a 80
76 D a 60
77 E a 40
78 F a 20
79 U a 0
80 X a 0
18 rows selectedThese are basically the dimensional views
Now according to the specification given, need to create a fact table as facts_table which contains all the dim tables primary keys as foreign keys in it.
The problem is when i say,I am going to consider a smaller example than the actual no of dimension tables 5 lets say there are 2 dim tables student,grade with s_id,g_id as p key.
create materialized view facts_table(s_id,g_id)
as
select s.s_id,g.g_id
from (select distinct s_id from student)s
, (select distinct g_id from grade)gThis results in massive duplication as there is no join between the two tables.But basically there are no common things between the two tables to join,how to solve it?
Consider it when i do it for 5 tables the amount of duplication being involved, thats why there is not enough tablespace.
I was hoping if there is no other way then create a fact table with just one column initially
create materialized view facts_table(s_id)
as
select s_id
from student;then
alter materialized view facts_table add column g_id number;Then populate this g_id column by fetching all the g_id values from the grade table using some sort of loop even though we should not use pl/sql i dont know if this works?
Any suggestions.
Edited by: Trooper on Jan 10, 2009 6:38 AM -
Unable to extend TEMP segment even after adding fresh temp files
Hi All,
I have a huge table with rows nearly 2 million. When this table is moved to another tablespace, the command failed giving the following error:
ORA-01652: unable to extend temp segment by 128 in tablespace XYZ
To overcome this error, an additional temp file was added with huge size. Unfortunately, the same error appeared again when the table was tried to move to another tablespace. I wonder if the new temp file was not recognized by database, so tried to see how many files belong to temporary tablespace, but the query listed the newly added temp file also.
What could be the possible reason for this error? Suggestions or clues are most welcome.
Thanks,
...The temp segment is for the table that is being moved.
Oracle creates a temporary segment when doing a move. If the target tablespace has enough space, the move succeeds and the temp segment gets converted to a Table segment. Else, if the move fails because of lack of space (the temp segment itself unable to grow), then the temp segment is dropped on failure.
Thus, in a
alter table ABC move tablespace MY_TBS;or
the target tablespace MY_TBS should have enough space for ABC. While Oracle is building the copy of ABC in MY_TBS, it is being built as a temporary segment. If the copy succeeds, the temporary segment is renamed as a Table segment 'ABC' and the original table segment 'ABC' is dropped.
This behaviour also happens when you do an ALTER TABLE .. MOVE ; into the same tablespace that it is existing in. The new copy of the table is a temporary sgement till the copy succeeds. -
Request of one report fails with error: unable to extend tablespace
Hi All,
When I submit one request of report, the request end up with error:
unable to extend temp segment by 128 in tablespace XXXX
The request costs too much tablespace in short time, but the temp is about 20 G large.
The sever have been add storage recently, but I don't know whether it is related to the performance issue, because the request had not such issue.
How do I deal with it ?
Thanks,
XinyaWhat report is it ?
Did you try and search metalink ?
How to handle 'ORA-01652: unable to extend the temp segment by 128 in tablespace' error messages? (Doc ID 1359238.1)
R12 Journal Entries Report (XLAJELINESRPT) Has Performance Issue Or Fails With Error: "java.sql.SQLException: ORA-01652: unable to extend temp segment by 128 in tablespace TEMP1" (Doc ID 1141673.1)
This forum may be the right one for your question - General EBS Discussion -
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. -
I'm a newby to the OAF world. Itook a class based on 11.5.10 version of jdev but now trying to do a R12 customization. Of course the tools are not the same...
I've copied the $JAVA_TOP/oracle/apps folder to myclasses
I've exported the page I want to extend
Trying to create a new AM while extending the vanilla AM. at first attempt the vanilla AM is not available to extend so I've copied the AM.xml file under myprojects subfolders. Now it's an option to extend it. However, when I attempt it, I get this type of error
"Unable to Extend from object... Invalid View instance..."
How do I get around these errors? I'm totally stuck.
thxuser593515,
Yes, it is always advisable to use extension, personalization instead of recoding the whole thing, but there are some limitations with extension, personalization. What Sumit was pointing to is the fact that OAF doesn't support substituting a Root AM. But again that doesn't stop you from moving ahead, there are workarounds to get the things done staying within the framework standards.
--Shiv -
Unable to extend table in tablespace
Hi,
I have a Oracle Database 11g Release 11.1.0.6.0 - 64bit Production With the Real Application Clusters option.
I'm receiving the unable to extend table T_DATA in tablespace USER
I'm using ASM.
This is the situation of datafiles of USER tablespace (dimension is in GB):
+DATA/evodb/datafile/users.277.737627613 USERS 9,97265625
+DATA/evodb/datafile/users.275.731805999 USERS 60,97265625
+DATA/evodb/datafile/users.261.662113927 USERS 63,999969482421875
+DATA/evodb/datafile/users.264.705345395 USERS 63,999969482421875
+DATA/evodb/datafile/users.265.698502565 USERS 63,999969482421875
+DATA/evodb/datafile/users.268.718788313 USERS 63,999969482421875
It seems I still have 2 datafile that can grow (maximium size is 63,999969482421875)
This is the situation of DATA group (the one to which USER tablespace belongs):
Group # | Name | Free_mb | Usable_file_mb | total_mb
2 DATA 300051 300051 1134809
And this is the situation of every device belonging to DATA diskgroup:
Path | disk_number | group_name | group_number | header_status| free_mb | os_mb | total_mb
/dev/asm212 13 DATA 2 MEMBER 56627 208500 208500
/dev/asm9 7 DATA 2 MEMBER 12607 48127 48127
/dev/asm6 4 DATA 2 MEMBER 12600 48127 48127
/dev/asm8 6 DATA 2 MEMBER 12595 48127 48127
/dev/asm11 9 DATA 2 MEMBER 13315 51199 51199
/dev/asm211 11 DATA 2 MEMBER 56555 208500 208500
/dev/asm5 3 DATA 2 MEMBER 12611 48127 48127
/dev/asm3 1 DATA 2 MEMBER 12614 48127 48127
/dev/asm12 10 DATA 2 MEMBER 0 5115 5115
/dev/asm7 5 DATA 2 MEMBER 12584 48127 48127
/dev/asm213 12 DATA 2 MEMBER 60138 228352 228352
/dev/asm4 2 DATA 2 MEMBER 12608 48127 48127
/dev/asm10 8 DATA 2 MEMBER 12598 48127 48127
/dev/asm2 0 DATA 2 MEMBER 12599 48127 48127
Why table cannot extend??
And more:
if I try to add a datafile to USER tablespace, I got:
ORA-17502: ksfdcre:4 Failed to create file +DATA
ORA-15041: diskgroup space exhausted
01119. 00000 - "error in creating database file '%s'"
Any suggestion??
thanks in advance,
SamuelOK, but what does FREE_MB mean?
Is it the unallocated space?
Is it possible that this disk:
path | disk_number | group_name | group_number | header_status| free_mb | os_mb | total_mb
/dev/asm12 10 DATA 2 MEMBER 0 5115 5115
is causing the error?
Does it make sense to try to remove it from the diskgroup? I should have more than enough space on other disks of the DATA diskgroup.
Edited by: Samuel Rabini on Jan 12, 2011 6:14 PM -
Hi All,
I received the following error;
ORA-01652: unable to extend temp segment by 128 in tablespace TEMP2
Then I added the datafile in temp2 tablespace.
But still it giving the same error;
Syntax of Create tablespace is
Create temporary tablespace temp2
Datafile \temp_01.dbf size 500m;
Table contains 100000 records;
Please help me.
Thanks and regards,
Prathamesh.Please check the allocation and deallocation of space in a temporary tablespace sort segment using the V$SORT_SEGMENT view. The V$TEMPSEG_USAGE view identifies the current sort users in those segments.
Also, check settings of TEMP tablespace. May be it's trying to create a huge extent as NEXT (larger than available space), which is not required. In that case reduce NEXT EXTENT for this. -
Unable to extend index name of the index by 8 in tablespace
Hello,
I am not a DBA and do not have much experience in Oracle. When I was trying to restore the backup of my application, I received the following error. I could not able to proceed further in my tasks.
ORA-01654: unable to extend index <name of the index> by 8 in tablespace <name of the Index tablespace>The following query was used to create the table space. Oracle version is 10g.
CREATE TABLESPACE TS_JIRA
DATAFILE 'D:\oracle\product\10.2.0\oradata\jiraadmi\TS_JIRA.dbf' SIZE 100M REUSE
AUTOEXTEND ON NEXT 10M MAXSIZE 200M
MINIMUM EXTENT 64K
DEFAULT STORAGE ( INITIAL 64K NEXT 64K MINEXTENTS 1 MAXEXTENTS UNLIMITED PCTINCREASE 0);I do not know how to extend the size of the tablespace. Can anyone help to sort out this issue?
Thanks in advance
RamHi Ram;
I suggest also review below doc for your future issue
TROUBLESHOOTING GUIDE (TSG) - UNABLE TO CREATE / EXTEND Errors [ID 1025288.6]
Overview Of ORA-01654: Unable To Extend Index %s.%s By %s In Tablespace %s [ID 146595.1]
OERR: ORA 1654 unable to extend index <name.name> by <num> for tablespace <nam [ID 19049.1]
I belive they will answer all your question ;)
PS:Please dont forget to change thread status to answered if it possible when u belive your thread has been answered, it pretend to lose time of other forums user while they are searching open question which is not answered,thanks for understanding
Regard
Helios -
Unable to extend the VO ConsInvTableVO in the iReceivables page
Hi All,
I am getting the error message "Each row in the Query Result Columns must be mapped to a unique Attribute in the Mapped Entity columns" when I am trying to extend view object ConsInvTableVO in iReceivables page. Though there were many posts available for the error, I have tried the solutions like
1. modifying the option in step1 of wizard from Read-Only to Updatable, but still error exists.
My requirement is to add an new column, but even without modifying the SQL query in the extended VO, I am facing this error at step4 in VO wizard.
There are some transient attributes in the standard VO like TransactionDetailsRegionCode, AmountDueRemainingFormatted, AmountDueOriginalFormatted, IrSalesOrder, TransactionDetailsClass, LkpCodeStatusMeaningModified which I think were causing the issue.
Please let me know whether any workaround/solution is available.
Regards,
Ramakrishnan
Edited by: 877977 on Sep 1, 2011 3:51 AMHi Pratap,
Thanks a lot for your reply. The problem is I am unable to extend the standard view object in Jdev itself. I think there is an view link exists in the VO. When I uploaded the java files and xml file of the VO "oracle.apps.ar.irec.accountDetails.server.ConsInvTableVO" in my local JDev, I got an error msg that "Could not find the following referenced objects oracle.apps.ar.irec.accountDetails.server.InvoiceDetailsVO".
Later I uploaded the files of that referenced VO also in the JDev. Let me know how to extend the View object which is having view link.
Regards,
Ramakrishnan -
Hi,
I have taken export backup of table from 9.2.0.4 on AIX & trying to import in 11.1.0.7.0 on AIX
while importing im getting the following error.
ORA-01653: unable to extend table CUSTOM.CASA_TRAN_HIST_UPLD by 699912 in tablespace CUSTOM
As the table size is 37G , total free space in tablespace is 40G,
& no index on the table.
following are sum lines from import file
Connected to: Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Export file created by EXPORT:V09.02.00 via direct path
import done in US7ASCII character set and UTF8 NCHAR character set
import server uses AL32UTF8 character set (possible charset conversion)
export server uses AL16UTF16 NCHAR character set (possible ncharset conversion)
. importing DATAMIG's objects into CUSTOM
. . importing table "CASA_TRAN_HIST_UPLD"
IMP-00058: ORACLE error 1653 encountered
ORA-01653: unable to extend table CUSTOM.CASA_TRAN_HIST_UPLD by 699912 in tablespace CUSTOM
IMP-00028: partial import of previous table rolled back: 62844421 rows rolled back
IMP-00017: following statement failed with ORACLE error 1917:
"GRANT SELECT ON "CASA_TRAN_HIST_UPLD" TO "BSGUSER""
IMP-00003: ORACLE error 1917 encountered
ORA-01917: user or role 'BSGUSER' does not exist
Import terminated successfully with warnings.
is there any to resolve the issue.
how to change NCHAR set for import.
ThanksHello,
which & how i can set character set for import.About the Character Set, it's a setting at the Database creation. You may check it by using the following query on the Source and Target Databases:
select * from v$nls_parameters; The NLS_CHARACTERSET will give you the Character set of the Database.
It cannot be changed easily. It may imply a Database creation and export/import of data ( see Note *225912.1* ).
Else, when you export (with the Original Export/Import utility) it's recommended to set the NLS_LANG parameter.
The NLS_LANG parameter has 3 components:
- Language
- Territory
- Client Character Set
A wrong setting of the NLS_LANG may lead to conversion. However starting with *9i* most data is exported with the Character Set of the Database regardless the NLS_LANG setting. The following note may give you some details about it:
Export/Import and NLS Considerations [ID 15095.1]Hope this help.
Best regards,
Jean-Valentin -
ORA-1653: unable to extend table - but enough space for datafile
We encountered this problem in one of our database Oracle Database 10g Release 10.2.0.4.0
We have all datafiles in all tablespaces specified with MAXSIZE and AUTOEXTEND ON. But last week database could not extend table size
Wed Dec 8 18:25:04 2013
ORA-1653: unable to extend table PCS.T0102 by 128 in tablespace PCS_DATA
ORA-1653: unable to extend table PCS.T0102 by 8192 in tablespace PCS_DATA
Wed Dec 8 18:25:04 2013
ORA-1653: unable to extend table PCS.T0102 by 128 in tablespace PCS_DATA
ORA-1653: unable to extend table PCS.T0102 by 8192 in tablespace PCS_DATA
Wed Dec 8 18:25:04 2013
ORA-1653: unable to extend table PCS.T0102 by 128 in tablespace PCS_DATA
ORA-1653: unable to extend table PCS.T0102 by 8192 in tablespace PCS_DATA
Datafile was created as ... DATAFILE '/u01/oradata/PCSDB/PCS_DATA01.DBF' AUTOEXTEND ON NEXT 50M MAXSIZE 31744M
Datafile PCS_DATA01.DBF had only 1GB size. Maximum size is 31GB but database did not want to extend this datafile.
We used temporary solution and we added new datafile to same tablespace. After that database and our application started to work correctly.
There is enough free space for database datafiles.
Do you have some ideas where could be our problem and what should we check?
ThanksShivendraNarainNirala wrote:
Hi ,
Here i am sharing one example.
SQL> select owner,table_name,blocks,num_rows,avg_row_len,round(((blocks*8/1024)),2)||'MB' "TOTAL_SIZE",
2 round((num_rows*avg_row_len/1024/1024),2)||'Mb' "ACTUAL_SIZE",
3 round(((blocks*8/1024)-(num_rows*avg_row_len/1024/1024)),2) ||'MB' "FRAGMENTED_SPACE"
4 from dba_tables where owner in('DWH_SCHEMA1','RM_SCHEMA_DDB','RM_SCHEMA') and round(((blocks*8/1024)-(num_rows*avg_row_len/1024/1024)),2) > 10 ORDER BY FRAGMENTED_SPACE;
OWNER TABLE_NAME BLOCKS NUM_ROWS AVG_ROW_LEN TOTAL_SIZE ACTUAL_SIZE FRAGMENTED_SPACE
DWH_SCHEMA1 FP_DATA_WLS 14950 168507 25 116.8MB 4.02Mb 112.78MB
SQL> select tablespace_name from dba_segments where segment_name='FP_DATA_WLS' and owner='DWH_SCHEMA1';
TABLESPACE_NAME
DWH_TX_DWH_DATA
SELECT /* + RULE */ df.tablespace_name "Tablespace",
df.bytes / (1024 * 1024) "Size (MB)",
SUM(fs.bytes) / (1024 * 1024) "Free (MB)",
Nvl(Round(SUM(fs.bytes) * 100 / df.bytes),1) "% Free",
Round((df.bytes - SUM(fs.bytes)) * 100 / df.bytes) "% Used"
FROM dba_free_space fs,
(SELECT tablespace_name,SUM(bytes) bytes
FROM dba_data_files
GROUP BY tablespace_name) df
WHERE fs.tablespace_name = df.tablespace_name
GROUP BY df.tablespace_name,df.bytes
UNION ALL
SELECT /* + RULE */ df.tablespace_name tspace,
fs.bytes / (1024 * 1024),
SUM(df.bytes_free) / (1024 * 1024),
Nvl(Round((SUM(fs.bytes) - df.bytes_used) * 100 / fs.bytes), 1),
Round((SUM(fs.bytes) - df.bytes_free) * 100 / fs.bytes)
FROM dba_temp_files fs,
(SELECT tablespace_name,bytes_free,bytes_used
FROM v$temp_space_header
GROUP BY tablespace_name,bytes_free,bytes_used) df
WHERE fs.tablespace_name = df.tablespace_name
GROUP BY df.tablespace_name,fs.bytes,df.bytes_free,df.bytes_used
ORDER BY 4 DESC;
set lines 1000
col FILE_NAME format a60
SELECT SUBSTR (df.NAME, 1, 60) file_name, df.bytes / 1024 / 1024 allocated_mb,
((df.bytes / 1024 / 1024) - NVL (SUM (dfs.bytes) / 1024 / 1024, 0))
used_mb,
NVL (SUM (dfs.bytes) / 1024 / 1024, 0) free_space_mb
FROM v$datafile df, dba_free_space dfs
WHERE df.file# = dfs.file_id(+)
GROUP BY dfs.file_id, df.NAME, df.file#, df.bytes
ORDER BY file_name;
Tablespace Size (MB) Free (MB) % Free % Used
DWH_TX_DWH_DATA 11456 8298 72 28
FILE_NAME ALLOCATED_MB USED_MB FREE_SPACE_MB
/data1/FPDIAV1B/dwh_tx_dwh_data1.dbf 1216 1216 0
/data1/FPDIAV1B/dwh_tx_dwh_data2.dbf 10240 1942 8298
SQL> alter database datafile '/data1/FPDIAV1B/dwh_tx_dwh_data2.dbf' resize 5G;
alter database datafile '/data1/FPDIAV1B/dwh_tx_dwh_data2.dbf' resize 5G
ERROR at line 1:
ORA-03297: file contains used data beyond requested RESIZE value
Although , we did moved the tables into another TB , but it doesn't resolve the problem unless we take export and drop the tablespace aand again import it .We also used space adviser but in vain .
As far as metrics and measurement is concerned , as per my experience its based on blocks which is sparse in nature related to HWM in the tablespace.
when it comes to partitions , just to remove fragmentation by moving their partitions doesn't help .
Apart from that much has been written about it by Oracle Guru like you .
warm regards
Shivendra Narain Nirala
how does free space differ from fragmented space?
is all free space considered by you to be fragmented?
"num_rows*avg_row_len" provides useful result only if statistics are current & accurate. -
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 optionsGiven 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
Maybe you are looking for
-
Hi all, In the TECHNICAL CONTENT of my system I have a variable for the Exchange Rate Type (0RTYPE)called Z_RTYPE. When I run a query that use the currency conversion type this variable pops up in the variable screen, but it is not specifically added
-
How do I upgrade from 10.5.8 to 10.6?
I have three computers, when purchasing 10.6 which type should I purchase? The regular or up to 5 users?
-
"App_DispatcherUnhandledException" cannot work while migrating from VSTS2010 to VSTS2013
In the past, our project was developed in VSTS2010 and .NET 4.0, everything works well. Right now, while migrating from VSTS2010 to VSTS2013 and from .NET 4.0 to .NET 4.5.1, we found that the exceptions thrown from one UI thread cannot be caught and
-
What will work for stop-motion animation?
I'm a student and Maryland Institute college of art studying animation. I'm a senior and considering necessary investments. Camera, software, etc. Does anyone have suggestions of what software/camera will best work for my computer. I need to be able
-
Scope ONE searchs fails after imports
I have a problem after import a very big amount of data. The import process (with ldapmodify) finish properly and I can retrieve all the data I imported with ldapsearch easily using a scope SUB and a filter. But if I tried to get the data using a the