BookmarkSubscribeRSS Feed
lloraine
Calcite | Level 5

I am getting the following error in Enterprise Guide 4.1 NOTE: The query requires remerging summary statistics back with the original data. ERROR: ORACLE execute error: ORA-01652: unable to extend temp segment by 128 in tablespace TMP_01. NOTE: Table WORK.QUERY_FOR_V_MKTDEC_PROVISIONS created, with 0 rows and 13 columns. I am using this code to create a computed column MAX(CASE When V_MKTDEC_PROVISIONS.LINE_ORDER = 1 Then V_MKTDEC_PROVISIONS.PROVISION_DETAIL ELSE " " END) I am only testing on 1 record but it doesn't bring back anything.  This is a hugh table that I am trying to query.

3 REPLIES 3
ChrisHemedinger
Community Manager

See this SAS Note about the NOTE.

http://support.sas.com/kb/4/308.html

Does your query include any grouping/aggregation?  You can get this message if you have SELECTed additional variables that are not included in the aggregations that you asked for.

Chris

SAS For Dummies 3rd Edition! Check out the new edition, covering SAS 9.4, SAS Viya, and all of the modern ways to use SAS!
lloraine
Calcite | Level 5

I have figured out everything but now I am having a problem with filtering on dates. I want to use the following: Eff_From_Dt=intnx('day',date(),0) This code "intnx('day',date(),0" gives me the current date. When I use the above code, I do not get results.  When I take the filtering out, I get results.  I tried formatting the from and to date to MMDDYYS10.0 but I got ***** for the from date.  It is probably something simple that in my ignorance of Sas, I am missing.

MartyS
Fluorite | Level 6

Temporary tablespaces are used by Oracle as scratchpads during a query.  They can overflow and cause the error you are seeing.  Causes include many things, but the most common reason for end users to see the error is that a large sort is taking place.  Sorts are usually the result of ORDER BY or GROUP BY clauses.

The error can also happen for other reasons, such as index creation or because too many transactions are competing for temp space, but the most common culprit is a large sort.

Glad you got it worked out.

Marty

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 3374 views
  • 0 likes
  • 3 in conversation