ORA-20011: Approximate NDV failed: ORA-08103: object no longer exists [message #677323] |
Thu, 12 September 2019 02:56  |
 |
revathitirun
Messages: 16 Registered: May 2011
|
Junior Member |
|
|
Hi All,
When I am trying to execute the STATS GATHER on one particular Table its giving the following error message :
ORA-20011: Approximate NDV failed: ORA-08103: object no longer exists
ORA-06512: at "SYS.DBMS_STATS", line 24281
ORA-06512: at "SYS.DBMS_STATS", line 24332
Code to do stats gather :
DBMS_STATS.GATHER_TABLE_STATS (ownname=>'SCHEMA_NAME', TABNAME=> 'TABLE_NAME' , CASCADE=>TRUE, degree=>16);
There is possibility to run this statement two times exactly at the same time.Only few times we are getting this error messages.
Most of the cases its working fine .
Please help me to resolve the issue.What are circumstances which to leads to this error.
Thanks
Revathi.T
|
|
|
Re: ORA-20011: Approximate NDV failed: ORA-08103: object no longer exists [message #677333 is a reply to message #677323] |
Thu, 12 September 2019 07:39   |
 |
EdStevens
Messages: 1375 Registered: September 2013
|
Senior Member |
|
|
revathitirun wrote on Thu, 12 September 2019 02:56Hi All,
When I am trying to execute the STATS GATHER on one particular Table its giving the following error message :
ORA-20011: Approximate NDV failed: ORA-08103: object no longer exists
ORA-06512: at "SYS.DBMS_STATS", line 24281
ORA-06512: at "SYS.DBMS_STATS", line 24332
Code to do stats gather :
DBMS_STATS.GATHER_TABLE_STATS (ownname=>'SCHEMA_NAME', TABNAME=> 'TABLE_NAME' , CASCADE=>TRUE, degree=>16);
There is possibility to run this statement two times exactly at the same time.Only few times we are getting this error messages.
Most of the cases its working fine .
Please help me to resolve the issue.What are circumstances which to leads to this error.
Thanks
Revathi.T
The error means exactly what it says. Apparently, you have some other process that is dropping, and possibly recreating, a table. If it is an external table, I'd suggest you lock stats on it to prevent GATHER_STATS from trying to hit it.
|
|
|
|
|
|
Re: ORA-20011: Approximate NDV failed: ORA-08103: object no longer exists [message #677437 is a reply to message #677349] |
Fri, 20 September 2019 06:39  |
 |
revathitirun
Messages: 16 Registered: May 2011
|
Junior Member |
|
|
Hi All
We found solution to the above problem.As we are going Parallel execution of multiple jobs at the same time with different branches(internally different partitions), instead of the going for full table stats gather every time we are planning to go for Partition gathering.
Even though stats gathering running parallel, each branch can take care of his own partition.
Thanks
Revathi.T
|
|
|