How is it possibile that a max in a subquery gets a ORA-01652?
I've got a very complex query
Let's suppose having three tables whose alias are x, y and z (and others tables)
Inside the WHERE of the query I've got something like:
x.x2 = (select max(y.y2) from mytable y where y.y1 = z.z1)
If I try to execute it on a single key, after a while I get a
ORA-01652: unable to extend temp segment by ...
if I try to change the line above with this:
x.x2 = constant
and then I execute it, I get the result within few seconds.
Even if I change the line with this:
x.x2 in (select y.y2 from table y where y.y1 = z.z1)
the query works, even if I get more rows.
How is it possibile that the MAX in the subquery makes the whole of the query not to work?
My Oracle version is 8i
Thanks!
You can easily answer this question by looking at the PLAN for this statement.
MAX uses a SORT operation and sort will use temporary segment, if the memory required exceeds the PGA.
Sybrand Bakker
Senior Oracle DBA
Similar Messages
-
Hi,
I have an iTouch. I'd like to download some free apps. but I have a debit card but would like to download apps from the store. how do I do that? I can't possibly get a credit card just for this. please help.I really do not think it is the iPad or your network connection. Other users have reported this very same issue. Try this and see if it works for you - it may not work - but it's easy to try - harmless - and it has worked in the past for others.
Try signing out of your account and restart your iPad.
Go to Settings>Store>Apple ID and tap the ID and sign out. Restart the iPad by holding down on the sleep button until the red slider appears and then slide to shut off. To power up hold the sleep button until the Apple logo appears and let go of the button. Go back to Settings>Store> Apple ID and sign in again. -
after trying to remember my new pass code and failing, my iphone disabled and is now telling me to connect to itunes, ive done that and tried instruction to restore from back up however when i do that i get an error msg saying that i need to turn off the app find my iphone to b able to restore, i cant do that tho because i cant use my phone and i dont see app on my computer on itunes either???what do i do >??
This the Activation Lock. Read here: http://support.apple.com/kb/HT5818
The only way is to login to iCloud with your computer browser and wipe the iPhone.
If you can't then you have a brick, Apple won't help and AL cannot be bypass.
https://www.icloud.com -
This is not an issue of functionality. But in convenience. When you click on a link or pass over a link in a webpage, at the bottom of the browser it shows the url. sometimes if you hover or that it switches to the other side of the browser. For example: The Link is firefox. Hover over it and at the bottom is shows http://www.mozila.org. And if you click on it while it is going to the website, if you hover over the URL it moves to the other corner of the browser. My question is - is there a way to disable that function in Firefox. Sometimes that URL just sits there if you don't have over it or click it off. It's just a bit annoying at times.
That can happen if the link is at the bottom on the browser window and is (partly) covered by the link preview notification that used to be on the status bar in previous Firefox versions.
If you hover such a link that is covered by the pop-up the Firefox may swap that link for right to left or vice versa.
You can use this extension to hide the pop-up that shows the URL of a link on hover and other data that previously appeared on the Status bar.
*Status-4-Evar: https://addons.mozilla.org/en-US/firefox/addon/status-4-evar/ -
How to view the file content from the directory? getting Error:ORA-21560
SQL> create directory READ_LOB_DIR as 'D:\Prj\Comm\Data';
CREATE OR REPLACE Procedure READ_FILE_LOB IS
-- Input Directory as specified in create directory
l_dir CONSTANT VARCHAR2(30) := 'READ_LOB_DIR';
-- Input File which is read word by word
l_fil CONSTANT VARCHAR2(30) := 'testfile.txt';
-- Separator Character between words is a BLANK (ascii = 32)
l_seb CONSTANT RAW(100) := UTL_RAW.CAST_TO_RAW(CHR(32));
-- Character at the end of the file is NEWLINE (ascii = 10)
l_sen CONSTANT RAW(100) := UTL_RAW.CAST_TO_RAW(CHR(10));
-- Pointer to the BFILE
l_loc BFILE;
-- Current position in the file (file begins at position 1)
l_pos NUMBER := 1;
-- Amount of characters have been read
l_sum BINARY_INTEGER := 0;
-- Read Buffer
l_buf VARCHAR2(500);
-- End of the current word which will be read
l_end NUMBER;
-- Return value
l_ret BOOLEAN := FALSE;
BEGIN
-- Mapping the physical file with the pointer to the BFILE
l_loc := BFILENAME(l_dir, l_fil);
-- Check if the file exists
l_ret := DBMS_LOB.FILEEXISTS(l_loc) = 1;
IF (l_ret) THEN
dbms_output.put_line('File ' || l_fil || ' in Directory ' || l_dir ||
' exists');
-- Open the file in READ_ONLY mode
DBMS_LOB.OPEN(l_loc, DBMS_LOB.LOB_READONLY);
LOOP
-- Calculate the end of the current word
l_end := DBMS_LOB.INSTR(l_loc, l_seb, l_pos, 1);
-- Process end-of-file
IF (l_end = 0) THEN
l_end := DBMS_LOB.INSTR(l_loc, l_sen, l_pos, 1);
l_sum := l_end - l_pos - 1;
DBMS_LOB.READ(l_loc, l_sum, l_pos, l_buf);
dbms_output.put_line(UTL_RAW.CAST_TO_VARCHAR2(l_buf));
EXIT;
END IF;
-- Read until end-of-file
l_sum := l_end - l_pos;
DBMS_LOB.READ(l_loc, l_sum, l_pos, l_buf);
dbms_output.put_line(UTL_RAW.CAST_TO_VARCHAR2(l_buf));
l_pos := l_pos + l_sum + 1;
END LOOP;
DBMS_LOB.CLOSE(l_loc);
ELSE
dbms_output.put_line('File ' || l_fil || ' in Directory ' || l_dir ||
' does not exist');
END IF;
EXCEPTION
WHEN OTHERS THEN
dbms_output.put_line('Error:' || SQLERRM);
DBMS_LOB.CLOSE(l_loc);
END;
The Text file content is...
Copyright 1996,2001 Oracle Corporation. All Rights Reserved
This file contains installation instructions for installing the
Oracle8 ODBC Driver software.
It is divided into four parts:
o Part I: Summary of systems supported by Oracle8 ODBC client
software
Lists the platforms on which the Oracle8 ODBC Client software can
be installed.
o Part II: Oracle8 ODBC Driver software.
Describes the files, and installation prerequisites for the Oracle8
ODBC driver software.
o Part III: Exploding the kit onto your system
Describes how to explode the kit onto your system hard drive.
o Part IV: Installation Instructions
Describes how to install the Oracle8 ODBC driver.
Part I: Systems supported by the Oracle8 client software
You can install the ODBC client software on any of the following systems:
o Windows 2000
o Windows NT X86
o Windows 95
o Windows 98
The Oracle8 ODBC Driver provides support for ODBC connections
from Windows 2000, Windows NT, Windows 95, and Windows 98 systems
to Oracle databases.
o Part II: Oracle8 ODBC Driver software.
Refer to the following files for information about the Oracle8 ODBC Driver:
LICENSE.TXT - Oracle8 ODBC Driver License Agreement. Read carefully
before installing and/or using this product. Enclosed in
your software distribution kit.
SQORA.HLP - A Window's Help file which is the primary reference
manual for the Oracle8 ODBC Driver.
ODBCRelnotes.WRI - The release notes for the Oracle8 ODBC Driver
which contains information which may have not been
included in the Help file.
Installation Prerequisites
See the Oracle8 ODBC Driver release notes (ODBCRelnotes.WRI),
for a complete list of software products required and their versions.
Time Required
The installation of the Oracle8 ODBC Driver takes approximately 5
minutes. The actual time may be shorter or longer, depending upon
your hardware configuration.
Disk Space Required
The Oracle8 ODBC driver installation requires approximately 2
megabytes of available storage space. The space required depends upon
what files you already have installed. The installation procedure
checks to see if you have enough available disk space. If you do not,
the installation fails.
Part III: Exploding the Kit onto your system
Expand the self-extracting archive file onto your hard drive.
C:\> ORA8174.EXE
Part IV: Installation Instructions
Oracle8 ODBC Driver 8.1.7.4.0
This section assumes the following:
1. MS Windows 2000, Windows NT, Windows 95 or Windows 98 is running.
2. Oracle Universal Installer shipping with 8.1.7 has already been
installed on your system.
3. Part III has been completed.
Software fixes:
Refer to release notes (ODBCRelnotes.wri) for a complete list of
Software fixes.
Installation Instructions
Once the self-extracting archive file ORA8174.EXE has been
exploded it will create an installable directory structure
onto your hard drive. Run the Oracle Universal Installer from
your local drive.
1. On the screen "File Locations" use the "Browse" button of
the source path to choose the file 'products.jar' from the
folder that ORA8174.EXE was extracted to. Choose 'Next'.
2. You will receive a warning that some of the dependencies of
this product are not found in the staging area. This warning
is OK. The ODBC driver depends on the Net8 Client being already
installed on the system. Answer 'Yes' to continue.
Oracle is a registered trademark of Oracle Corporation.
Microsoft, MS are registered trademarks of Microsoft Corporation.
Microsoft Windows, Windows NT, Windows 95, Windows 98 and Open Database
Connectivity are trademarks of Microsoft Corporation.
All other trademarks and registered trademarks are the property
of their respective owners.
The output was...
File testfile.txt in Directory READ_LOB_DIR exists
Copyright
1996,2001
Oracle
Corporation.
All
Rights
Reserved
This
file
contains
installation
instructions
for
installing
the
Oracle8
ODBC
Driver
software.
It
is
divided
into
four
parts:
o
Part
I:
Summary
of
systems
supported
by
Oracle8
ODBC
client
Error:ORA-21560: argument 2 is null, invalid, or out of range
I want to diplay/view as per file content format from the file under that specified directory.
Have any other method / any help or suggestions would be really appreciated.I changed the code like...
CREATE OR REPLACE Procedure READ_FILE_LOB_tmp IS
-- Input Directory as specified in create directory
l_dir CONSTANT VARCHAR2(30) := 'READ_LOB_DIR';
-- Input File which is read word by word
l_fil CONSTANT VARCHAR2(30) := 'testfile.txt';
-- Separator Character between words is a BLANK (ascii = 32)
l_seb CONSTANT RAW(100) := UTL_RAW.CAST_TO_RAW(CHR(32));
-- Character at the end of the file is NEWLINE (ascii = 10)
l_sen CONSTANT RAW(100) := UTL_RAW.CAST_TO_RAW(CHR(10));
-- Pointer to the BFILE
l_loc BFILE;
-- Current position in the file (file begins at position 1)
l_pos NUMBER := 1;
-- Amount of characters have been read
l_sum BINARY_INTEGER := 0;
-- Read Buffer
l_buf VARCHAR2(4000);
-- End of the current word which will be read
l_end NUMBER;
-- Return value
l_ret BOOLEAN := FALSE;
BEGIN
-- Mapping the physical file with the pointer to the BFILE
l_loc := BFILENAME(l_dir, l_fil);
-- Check if the file exists
l_ret := DBMS_LOB.FILEEXISTS(l_loc) = 1;
IF (l_ret) THEN
dbms_output.put_line('File ' || l_fil || ' in Directory ' || l_dir ||
' exists');
-- Open the file in READ_ONLY mode
DBMS_LOB.OPEN(l_loc, DBMS_LOB.LOB_READONLY);
LOOP
-- Calculate the end of the current word
l_end := DBMS_LOB.INSTR(l_loc, l_sen, l_pos, 1);
-- Process end-of-file
IF (l_end = 0) THEN
EXIT;
END IF;
-- Read until end-of-file
l_sum := l_end - l_pos;
DBMS_LOB.READ(l_loc, l_sum, l_pos, l_buf);
dbms_output.put_line(UTL_RAW.CAST_TO_VARCHAR2(l_buf));
l_pos := l_pos + l_sum + 1;
END LOOP;
DBMS_LOB.CLOSE(l_loc);
ELSE
dbms_output.put_line('File ' || l_fil || ' in Directory ' || l_dir ||
' does not exist');
END IF;
EXCEPTION
WHEN OTHERS THEN
dbms_output.put_line('Error:' || SQLERRM);
DBMS_LOB.CLOSE(l_loc);
END;
Now its working fine with one addtional line...
The file content is...
This is My Content
This is My Content
This is My Content
This is My Content
This is My Content
But The output was...
File testfile.txt in Directory READ_LOB_DIR exists
This is My Content
This is My Content
This is My Content
This is My Content
This is My Content
here, i want to delete that additonal line...? -
When I try to make an in-app purchase it says "purchase could not be completed" how do I fix that?
If you are also getting a message to contact iTunes Support then you can do so via this link and ask them for help : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption
-
How to set naming standard that sets max number of words in column name?
Hi all,
Is it possible to set naming standard that sets max number of words in colum (or table) name?
I was looking video (1:08min)
http://download.oracle.com/otn_hosted_doc/sqldev/UserDefinedDesignRules/UserDefinedDesignRules.html
And here you can see how rule is triggered.
"...Name has 2 words; Max permitted - 1".
Thanks a lotHi,
you need to create glossary and set it in naming standards for your design.
This document is still valid - http://www.oracle.com/technetwork/developer-tools/datamodeler/datamodelernamingstandards-167685.pdf
Naming standard settings are located :
- DM 3.x - "Preferences>Data Modeler>Naming Standard"
- DM 4.0 - Design dialog>Settings>Naming Standard
If you want only check on number of words then glossary can be empty and you can set "Incomplete modifiers" option in that glossary.
Philip -
How can i know that my FPGA VI logic is placed correctly on the FPGA???
Helloo,
I am very new to LABVIEW and using LV8.0 version
I am using cRIO-9002, cRIO-9101 chassis, NI-9401 in slot1 of the chassis. I have written some simple VI which will take True or False as a input and based on that output will come as 12 or 3 respectively. I am writing this output at DIO[7:4] of NI-9401. My VI is running successfully , generating intermediate files and BIT file also. In the Front panel i am able to see correct output also. But when i see the output at the output pins of NI-9401, nothing was coming. I am attaching my file. In this i have used FPGA I/O node to write output on that pins of NI-9401. My Q is
1. Can i expect output pins of NI-9401??
2 . Is there anything is to be done or write anything interface VIs..etc are to be done to get the outputs.
3. My way of procedure is complete or not??
Help me in this issue plz.
Reagrds,
Ravi Kumar.
Attachments:
simpleAIAO.vi 38 KBHello Eli S,
But still i am not getting.
I am seeing voltage level at DIO pins of NI9401 as 0V only.
I observed that in MAX
Cofiguration >> my system >> software >> NI-VISA version is 4.1
and
Cofiguration >> remote system >> software >> NI-VISA version is 3.4.1
will it be a problem?? I am setting initial line direction as a output port in the project explorer NI9401 module and also set the line direction as a output in front panel.
Is there any chance of problem in hardware?? like connection between the FPGA(chassis cRIO9101) and NI9401??
how can i check that my hardware is working perfeclty??
I am thinking that the only way is what i am doing right now...like writing digital data to lines...will be a simple experiment to check my hardware.
Sorry, i may be wasting your time, but if I overcome this problem, i can start my application on cRIO which is bigger in logic.
Thank you very much.
Regards,
Ravi Kumar.
Attachments:
Digital Line Output.vi 269 KB -
How do we know that which processing Class doing what functionality ?
Hi SAP HR Experts .
Q:-1 How do we know that which processing Class doing what functionality ?
Like : Processing class 1 , 2 ,... etc .
Similerly Simulation Class is On (Check Box is Ticked) then what impact we occur ?
Kind Regards : rajneeshHi Rajneesh,
The best way to understand the processing class is to go thru each and every class in table T512W_D ( Go to SM30 -> t512w_d ).Here in this table you will have the wagetypes ,just double click on the wagetypes and you will find the screen with processing classes. Just go thru each and every class by f1 . Each class is having its own importance and implication.
Same with Cumulation class. Go to SM30 -> enter T54C3. Follow the same logic here too, and try to analyse the max thru f1.
This is how we can understand the logic.
Regards,
Sri.. -
I'm trying to install the latest version of iTunes and the pop up tells me that I need to install Mac OS X 10.5. How do I do that?
OS 10.5.x is the max OS for Macs with a PowerPC processor. If your iMac has an Intel processor you can upgrade to Snow Leopard OS 10.6.x and possibly Lion OS 10.7
Mac OS X 10.5 Leopard installation system requirements
http://support.apple.com/kb/TA24950
Leopard is no longer available at the Apple Store but may be available by calling Apple Phone Sales @ 1-800-MY-APPLE (1-800-692-7753).
If you can't obtain a retail install DVD from Apple, look on eBay or Google the installer part numbers to possibly find at an on-line store. Here's what to look for:
MB427Z/A Leopard 10.5.1 install DVD
MB576Z/A Leopard 10.5.4 install DVD
MB021Z/A Leopard 10.5.6 install DVD (single user)
MB022Z/A Leopard 10.5.6 install DVD (5-user family pack)
Installing Mac OS X 10.5 Leopard
http://support.apple.com/kb/HT1544
Mac OS X 10.5 Leopard Installation and Setup Guide
http://manuals.info.apple.com/en/leopard_install-setup.pdf
After you install the base 10.5, download & install the 10.5.8 combo update at http://support.apple.com/downloads/Mac_OS_X_10_5_8_Combo_Update
The DVD should look like this
Caution - Leopard does not support classic mode. So, if you currently open OS 9 apps in classic mode, you won't be able to do this if you upgrade to Leopard.
Cheers, Tom -
Labview 6.i front panel with a chart, multiple plots, several transducers, thermocouples, Vdc, power monitors.
I need a dual "Y" scale for a new application. I had no problem making the duplicate scale and designation which plot goes to what scale, however, when zooming in on a section of the plot and then resetting the chart with the minimum and maximum scaling attributes, it only resets the "0" scale ( -30 to 500) not the "psig" scale (-300 to 5000). How do I designate which (Min Max)attribute node goes to which "Y" scale?
I will be upgrading to 7.1.1 this week, is a new tool available to do this? ThanksHi
Download example about scales.
:ni example
See attached doc. Once you select an y active scale, all Y scale modifications affect that scale.
It works like select active cursor.
Cheers
Alipio
"Qod natura non dat, Salmantica non praestat" -
Count rows that are max timestamp
Hi,
I'm trying to run a query that will count only rows that are max timestamp.
i have a submit table which has dates of submissions, however some application numbers have multiple rows in this table. I need to count only one row per application and it has to be the latest submission data.
I have tried a subquery and its not working, I'm stuck at this point.
Thanks for help :)
example table
pk app # submit_date
12 test-1 02222011 13:30
13 test-2 02232011 09:45
14 test-1 02232011 09:51
how do i count rows but based on max timestamp?select
count(s.pk)
from
submit s
where exists (select s1.app#, max(s1.submit_date) from submit s1 group by s1.app#)
I dont really understand what you are doing there.
SQL> WITH T
2 AS (SELECT 12 pk, 'TEST-1' app#, SYSDATE submit_date FROM DUAL
3 UNION ALL
4 SELECT 13 pk, 'TEST-2' app#, SYSDATE + 1 submit_date FROM DUAL
5 UNION ALL
6 SELECT 14 pk, 'TEST-1' app#, SYSDATE + 2 submit_date FROM DUAL)
7 SELECT * FROM T;
PK APP# SUBMIT_DA
12 TEST-1 23-FEB-11
13 TEST-2 24-FEB-11
14 TEST-1 25-FEB-11
SQL> WITH T
2 AS (SELECT 12 pk, 'TEST-1' app#, SYSDATE submit_date FROM DUAL
3 UNION ALL
4 SELECT 13 pk, 'TEST-2' app#, SYSDATE + 1 submit_date FROM DUAL
5 UNION ALL
6 SELECT 14 pk, 'TEST-1' app#, SYSDATE + 2 submit_date FROM DUAL)
7 SELECT pk, app#
8 FROM (SELECT pk, app#, ROW_NUMBER () OVER (PARTITION BY app# ORDER BY submit_date DESC) rn
FROM T)
9 WHERE rn = 1;
PK APP#
14 TEST-1
13 TEST-2
SQL> -
How do I specify that I want no more than x instances of my MDB ?
How do I specify that I want no more than x instances of my MDB ?
After all, I don't want as many MDB instances as messages, what's a queue for then...
Does Max Beans In Free Pool do the trick ?
Thank you.
[att1.html]
Hi Rosalie,
Max Beans in Free Pool is there for this purpose. Note
that MDB concurrency is also limited by the thread pool size,
and that it is often useful to give MDBs their own
thread pool to prevent them from stealing threads from other
applications. See:
http://edocs.bea.com/wls/docs81/ejb/DDreference-ejb-jar.html#dispatch-policy
You will likely find it useful to read through the
JMS Performance Guide if you haven't already done so. The above
information, as well as related info, is included:
http://dev2dev.bea.com/products/wlserver/whitepapers/WL_JMS_Perform_GD.jsp
Tom
Rosalie Mignon wrote:
> How do I specify that I want no more than x instances of my MDB ?
>
> After all, I don't want as many MDB instances as messages, what's a
> queue for then...
>
> Does Max Beans In Free Pool do the trick ?
>
> Thank you.
>
>
>
>
>
>
>
>
>
-
How do I determine that my audio sample rate matches my tape?
How do I determine that my audio sample rate of my capture preset matches the sample rate of my tape?
You've really got two issues.
DV records audio and video differently and if the camera is substandard, you will have drift over long captures. Solutions: new, better camera or capture in small (max 10 minutes) chunks.
The other issue is the 32k sample rate, which will exacerbate issue 1. You can duplicate the 48k preset and modify the copy for 32k and work in that until you are ready to deliver. Then copy it into a 48k sequence, render and output.
It's funny, sometimes I get that pop up but everything is fine. -
I've been trying to make an account with iTunes n everytime I get to the part of the credit card that's as far as I get because I dnt have one, how can I make an iTunes account without a credit card??
Where are you located?
Just go and buy an iTunes gift card at any store in your country.
Then follow all the steps you did, but when it asks you for the credit card number, there shoujld be a GIFT CARD option which will let you load your account witht eh funds form the gift card without providing a credit/debit card #.
Maybe you are looking for
-
Recovery from Hard Drive Failure
We lost a hard drive on an editing station this week. All of our files, including raws and catalog, are backed up on a netowrk storage drive. I've recovered the files and transferred them back to the local PC's new hard drive. The way our NAS work
-
Interactive PDF data summary page
Is there a way to create an interactive PDF that can display a summary page of data gathered from the form field options selected throughout the Indesign'ed doc?
-
i have just recently attended one of the Dev. Days on our country and one of the topic was comparing the .NET and J2EE and at the same time also comparing the JAVA and C#. Im just puzzled on how they compare those 2 languages, i mean they are not tha
-
Imovie crashed - how do I recover data
I was editing a project that included voice recordings thru the computer microphone and adding titles to describe the audio. My imovie program crashed/unexpectedly quit. When I restarted imovie ALL the data was lost. It looks like a brand new project
-
How can I use an EzCAP116 on OSX 10.9.1?
I wasn't too sure where to post this, but since it deals with mac, I went here. I have an EzCAP116 and multiple times I tried to get it to work with VideoGlide, USBVision, and EasyCapViewer. None of them were sucsessful. Does anyone have any suggesti