Solved

Oracle 11g

Posted on 2013-11-27
2
640 Views
Last Modified: 2013-11-27
Hi,

When I am running the below command,

exec DBMS_STATS.GATHER_TABLE_STATS (ownname=>'SCOTT', tabname=>'REDEF_TEST_INT', estimate_percent=>100, cascade=>true, degree=>8);

I am getting the below error
ORA-12801: error signaled in parallel query server P001
ORA-04030: out of process memory when trying to allocate 64528 bytes (sort subheap,sort key)
ORA-06512: at "SYS.DBMS_STATS", line 20337
ORA-06512: at "SYS.DBMS_STATS", line 20360
ORA-06512: at line 1

I reduced the estimate_percent to 10 and degree to 2 and ran again. But still I got the same error.
The table is of size 21GB. about(100,000,000 records)

Can you please let me know how can I take the table stats for this table without getting this error?

Thanks.
0
Comment
Question by:GouthamAnand
2 Comments
 
LVL 18

Accepted Solution

by:
sventhan earned 500 total points
ID: 39680874
Try to run with no-parallel or, increase the memory.

What is your SGA size?

exec DBMS_STATS.GATHER_TABLE_STATS (ownname=>'SCOTT', tabname=>'REDEF_TEST_INT', estimate_percent=>100, cascade=>true, degree=>1);
0
 

Author Closing Comment

by:GouthamAnand
ID: 39682748
Thank you. I could run successfully with no parallel.
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Cursors in Oracle: A cursor is used to process individual rows returned by database system for a query. In oracle every SQL statement executed by the oracle server has a private area. This area contains information about the SQL statement and the…
From implementing a password expiration date, to datatype conversions and file export options, these are some useful settings I've found in Jasper Server.
Via a live example, show how to take different types of Oracle backups using RMAN.
This video shows how to Export data from an Oracle database using the Datapump Export Utility.  The corresponding Datapump Import utility is also discussed and demonstrated.

680 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question