ORA-1445 and maximum width for field selection.
Hello,
We had the ORA-01445 error in the database recently.
A friend of mine directed me to the following address:
http://www.errorhelp.com/search/details/65019/ora-01445
And explained me that Oracle takes every field of every table in the inner and outer joins to build a HUGE table before selecting what fields are really required for the query.
I can't believe that Oracle makes such stupid thing so I ran here to ask the experts.
An example:
Two tables:
TABLE1
Field1
Field2
Field100
TABLE2
Field1
Field2
Field500
Select table1.field1, table2.field1
FROM table1
INNER JOIN table2 on table1.Field2 = table2.Field2
WHERE table1.field3 = '1'
->
Question is:
How the join is built on detail?
Does it build an intermediate table with 100+500 = 600 fields to get only the 5 that are used in the query (table1.field1, table2.field1, table1.Field2, table2.Field2,table1.field3)?
Thank you.
Kindest regards,
864737 wrote:
Hi John,
Maybe it's a complete nonsense but even if has no sense proceeding that way solved the issue here.
I have a query that suddenly failed to execute with the error described, version 10.2.0.3 but it does not happens in 10.2.0.4. As a workaround we did it using subselects and joining as described in the post and the query worked again.
So ORA-01445 is triggered even if it's not the cause of the error. You have there a circumstance where it fits...
So, it is clearly a bug introduced (possibly in 10.2.0.3), and fixed in 10.2.0.4.
I cannot post the query because license restrictions but believe it or not this happens with Oracle. It's great to know that the number fields of the tables does not matter. I was suprised to hear it. But your clarification was good. :D Tnx.
It seems that our DBA found that this behaviour can be corrected with an official patch.
Which clearly indicates a bug, just be sure that the patch is truly the right one.
Thank you again for your response.There are a number of bugs in MOS around ansi joins getting this error, bug
4369235.8 ORA-1445 can occur for ANSI join queries with large views/subqueries
seems possiblefor your case. However the workaround for that was to not use ansi style joins, so again, the number of columns is not directly the cause of the error.
John
Similar Messages
-
Add a custom table for field selection while creating field catalog for LIS
Hi,
I have a requirement to add a Custom table to be available for field selection while creating a field catalog for LIS. Its required as there are many custom fields to be used for field catalog creation and adding them in one of the existing tables listed is not a feasible option for us. Please let me knw if its possible..?? If yes how to get it done..??
Regards,
Akash Sinhahi,
You need to add your field in the Data Dictionary first. For example, if
you want the new field in the Order Item field catalog do the following.
Look at structure MCVBAPUSR (SE11). If you already have a user structure
appended to this structure then you can add your new field to your existing
structure. If there is no structure already appended to MCVBAPUSR then you
must create a new structure with your field in it and then append the new
structure to this one.
If you look at structure MCVBAP you will see the data appended to the end
of it.
Now you should see it in the field catalog.
regards,
balajia -
About Line (pen) color and thickness (width) for DWG/DXF files in ECLVIEWER
Hello,
sapgui 640
set Line (pen) color and thickness (width) for DWG/DXF files in ECLVIEWER Loader Preferences,
is effective for paper A2,A3,A4 dwg file,but isn't effective for paper A1 and extend length dwg file .
this set for line(pen) color and thickness is different to different size paper dwg file?
how to solve this problem?
Vera Pang.Hi Vera,
in fact that this issue is still valid for you. Could you please tell us which ECL Viewer version do you use and in which release this happens? Because in release ECC 500 there was some issue which got solved by note 964419.
Best regards,
Christoph -
Profile for field selection on object detail list
Hi All ,
What is the customizing path or tcode to define Field selection profile and also object profile
to choose in COIO transaction , please advice the assignment process also .
Thanks
AnilHi All , thanks for your quick response
I can create only overall profiles in COISN tcode .Please advice me where can we create Object profile and field profile and assignment of the same to overall profile .
My purpose of defining above profiles is I wish to incorporate a field name resource in the seperate column with including the list of fields which is showing currently in COIO order header (here we can not find resource untill drill down) .For acheiving the same I think I can define new field profile and assigning that one to object profile , and thus I can able to select the desired object profile after executing the COIO order header --> settings --> select profile . Please suggest me if I am wrong and also the other transaction codes
Thanks
Anil -
How to reduce logical count and scan count for a select query
hi,
I have two tables one is master and other is history. i need to combine this two tables into one temporary table.
I am using the below query to create temp table.
Select * into temporders
from
(select * from orders
union
select * from ordershistory) b
where updateon= (select max(updateon)from (select updateon,name,units,subunits from orders
union
select updateon,name,units,subunits from ordershistory) a
where updateon <='11/08/2008 11:18 AM' and a.name=b.name and a.units=b.units and a.subunits=b.subunits group by name,units,subunits)
order by report,subunitsorder
the statistics for this query:
SQL Server parse and compile time:
CPU time = 47 ms, elapsed time = 62 ms.
Table 'Worktable'. Scan count 556, logical reads 1569, physical reads 0, read-ahead reads 0, lob logical reads 0, lob physical reads 0, lob read-ahead reads 0.
Table 'ORDERSHISTORY'. Scan count 116, logical reads 339, physical reads 0, read-ahead reads 0, lob logical reads 0, lob physical reads 0, lob read-ahead reads 0.
Table 'ORDERS'. Scan count 116, logical reads 285, physical reads 0, read-ahead reads 0, lob logical reads 0, lob physical reads 0, lob read-ahead reads 0.
SQL Server Execution Times:
CPU time = 32 ms, elapsed time = 63 ms.
(115 row(s) affected)
you see logical reads and scan count for worktable(temporary) is quite high.
So anyone can give a solution for reduce the scan count and logical reads.
NOTE: name,units, subunits,updateon columns have primarykeySQL ServerAm i reading it properly? :(
This is Oracle Forum And not the SQL Server.
Regards.
Satyaki De. -
User Exit/Field Exit for Field Selection in MM01 & MM02
Dear All,
Please Tell if I want to make Field Purchasing group Mandatory in MM01 & MM02 in Purchasing view only.I dont want the data to be updated in MRP1 view. Please tell me is there any exit for the same.
Regards,
SandeepYou can customize
via
SPRO>Logistics - General>Material Master>Field Selection>
first from
Assign Fields to Field Selection Groups
you must assign MARC-EKGRP (Purchasing Group)
to a selection Group which will be mandatory.
Then from Maintain Field Selection for Data Screens
you must choose the Material Types which you want to make
Purchasing Group mandatory.
You must check Reqd Entry for the material types you want
Best Regards
Hope will help -
Minimum and maximum memory for starting OSB domain.
Hi,
How much minimum/maximum default of memory do we need to run welogic domain for OSB ? I know we can use java comand with Xmx and Xms to set amount of memory to run domain. I want to know minimum and maximum default when we start domain.
Many thanks.Dear All,
I have attach a VI. Bascially, i want to control the maximum and minimum points using the control by keying in the timestamp date and time. How do i do that/
Thanks!
Attachments:
test5.txt 1 KB
timestamp.vi 14 KB -
What is Maximum size for Multi select list?
Hi,
We are using the select_list_from_query given " size=10 attribute " so getting as multiselect list ,but there is a constraint for multiselect list where we can display only 1000 values max i guess,I have around 10,000values to display in list but getting error as given below , how can i overcome this problem in apex?? please suggest me..
getting error saying : ORA-06502: PL/SQL numeric or value error: character string buffer too small
Thanks
Anoo
Edited by: Anoo on Sep 2, 2009 8:00 AM
Edited by: Anoo on Sep 2, 2009 8:06 AMFirst of all, I wouldn't use a multiselect list but a shuttle item since this is much better from the handling point of view. Second, the Patrick's comment is valid. You could use the filetering on the shuttle like in this example
http://apex.oracle.com/pls/otn/f?p=31517:166
where your approach would be to show no results by default and give a user a chance to reduce the nubmer of options by choosing some groups from a select list or by typing in some sting.
Denes Kubicek
http://deneskubicek.blogspot.com/
http://www.opal-consulting.de/training
http://apex.oracle.com/pls/otn/f?p=31517:1
------------------------------------------------------------------- -
Report counterpart sample for field = select(max)
Post Author: JuneCruz
CA Forum: Crystal Reports
Hi Guys,
This the contenct of my table.
NFstCol NSndCol NTrdCol -
1 One 12 One 13 One 14 Two 15 Two 16 Two 17 One 28 One 29 One 210 One 311 One 312 One 316 Two 217 Two 218 Two 219 Four NULL20 Four NULL21 Four NULL
Now I want to display the records all records that have the maximum ntrdcol group by nsndcolso the output should be. Can this be done without using view, command as source for the database, or a subreport ?thanks.
NfstCol NtrdColOne
10 3 11 3 12 3
Two 16 2 17 2 18 2
Four 19 null 20 null 21 null
Again. Thanks guys.Post Author: ROMZILBER
CA Forum: WebIntelligence Reporting
To create a view is not a problem, supporting it is a different story
But we have find a solution, you were correct about the filter. I just did not know you can put the whole subselect in a filter
but here is a logic for the filter if someone would come up with the same problem
tablename.NNNN_PROOF_DT = (SELECT MAX(X.NNNN_PROOF_DT) FROM tablename X WHERE tablename.NNNN_CLAIM_NUMBER = X.NNNN_CLAIM_NUMBER AND tablename.NNNN_LINE_CD = X.NNNN_LINE_CD)
please let me know if you have any questions.
sorry I am new to this so please do not take any offense -
Maximum width for symbols?
I am creating a staff with animated notes. I plan to have the whole thing scroll from right to left so that the current note 'lights' as it comes under a playhead effect. I have a movieclip with a staff and notes, but there seems to be a limit as to how large I can make it, or perhaps it's how I can work on something so long. I'm running into the 'edge' of the flash window no matter how large I make the staff width.
Is there a max width? How would you work on something really long within flash?There is a maximum stage size, but it is pretty large. The max width grows with every new version of Flash, and I am unsure what it is in the newest versions. The last time I had a problem with this sort of thing was in Flash MX04, and a trial of Flash 8 fixed it for me. I think the size of my object then was something like 5000 pixels, but its been a few years so I may be mistaken.
A quick google found this on a different forum "they can be 4096*4096 with a max of 8192 for any dimension."
So it sounds like the maximum object can be 8192 pixels wide, and, if it is wider, the object won't work correctly. This is for player 10 (CS4). Earlier versions of flash have a smaller limit. -
Popup check box screen for fields selection using user structure
Hi all,
could you please help how can i get the popup screen in the program when the user wants to choose the wanted fields.
for ex: in the table after clicking the contents display the selection fields will be displayed. there in setting -> list format->choose, we can check the fields wanted to be displayed. The same functionality i needed with my own structure. can any one help me in this, it is urgent.
Thankyou.Hai Ashok
Check the following Code
S_FIELDS-TABNAME = 'VBAP'.
S_FIELDS-FIELDNAME = 'ARKTX'.
S_FIELDS-VALUE = WC_VALUE.
APPEND S_FIELDS.
CALL FUNCTION 'POPUP_GET_VALUES'
EXPORTING
NO_VALUE_CHECK = ' '
POPUP_TITLE = 'Locate Material'
START_COLUMN = '5'
START_ROW = '5'
IMPORTING
RETURNCODE =
TABLES
FIELDS = S_FIELDS
EXCEPTIONS
ERROR_IN_FIELDS = 1
OTHERS = 2
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ELSE.
READ TABLE S_FIELDS INDEX 1.
WC_VALUE = S_FIELDS-VALUE.
ENDIF.
Thanks & regards
Srenivasulu P -
Search help for Field Selection
Hello Exeperts,
I've added the field ABWGR (Attendance/Absence Reason) in Iview Clock-in / Clock-out corrections, but when I execute the test this field in i-view does not show the codes created in the backend.
Is there a way to activate the search help for this field in clock-in/ou corrections iview?
Thanks in advance!Implement the note 1080414. it contains both front end and backend changes
-
How to make a fix width for a select list
APEX 4
good day everyone I have an apex_item selectlist. My question is How do I make a fix width on it?http://download.oracle.com/docs/cd/E17556_01/doc/apirefs.40/e15519/apex_item.htm#CHDHJJAB
APEX_ITEM.SELECT_LIST(
p_idx IN NUMBER,
p_value IN VARCHAR2 DEFAULT NULL,
p_list_values IN VARCHAR2 DEFAULT NULL,
p_attributes IN VARCHAR2 DEFAULT NULL,
p_show_null IN VARCHAR2 DEFAULT 'NO',
p_null_value IN VARCHAR2 DEFAULT '%NULL%',
p_null_text IN VARCHAR2 DEFAULT '%',
p_item_id IN VARCHAR2 DEFAULT NULL,
p_item_label IN VARCHAR2 DEFAULT NULL,
p_show_extra IN VARCHAR2 DEFAULT 'YES')
RETURN VARCHAR2;Specify
p_attributes => 'style="width: 200px;"'for a width of 200px.
Ta,
Trent -
How can pkg-get resolve and install dependancies for a selected package?
Hi all,
i am using pkg-get for installing phpmyadmin an a solaris 10 os.
when i do "pkg-get -i phpmyadmin", hi try to install apache2 but he cannot because he don't want to install the dependancies for his package
-bash-3.00# pkg-get -i phpmyadmin
WARNING: gpg not found
No existing install of CSWphpmyadmin found. Installing...
Pre-existing local file phpmyadmin-3.1.2,REV=2009.02.27-SunOS5.8-all-CSW.pkg.gz matches checksum
Keeping existing file
Analysing special files...
Trying to install dependancy apache2
No existing install of CSWapache2 found. Installing...
Pre-existing local file apache2-2.2.11,REV=2009.03.29-SunOS5.8-all-CSW.pkg.gz matches checksum
Keeping existing file
Analysing special files...
Trying to install dependancy apache2c
Error: dependancies for apache2c not up to date.
You may call pkg-get again with '-v -u apache2c' to see which ones
Or, call pkg-get with 'upgrade all' to bring all installed pkgs up to date
ERROR: install of CSWapache2c failed
ERROR: could not install required dependancies for CSWapache2
Once dependancies are up to date, call
/opt/csw/bin/pkg-get -i apache2
to (re)install
ERROR: install of CSWapache2 failed
ERROR: could not install required dependancies for CSWphpmyadmin
Once dependancies are up to date, call
/opt/csw/bin/pkg-get -i phpmyadmin
to (re)installif i want to install apache2c, he don't want, because he don't have the dependancies, etc....it's infernal, i try "pkg-get -u" for upgrade all package, but it's don't resolve any thing.....
have we a way for configuring pkg-get for installing the dependancies by himself? (like apt-get)
another pb : when i try to install one of the dependancies, i have the messsage "Les conventions d'administration syst�me n'autorisent la cr�ation que
d'une seule copie du module <CSWggettextrt>. Or, le nombre maximal de
copies de module admis en m�me temps et sur le m�me syst�me est d�j
atteint.
"sorry it's in french but it said that he don't want to install the package because "the system administrattion convention allow only one copy of the package", it is because it's already installed?
thank for your help....Hi
For the last problem, what does
pkginfo | grep gettext
show?
Paul -
Display width for report fields
Hi all
Has anyone determined how to control the display width for fields using the report / report with form wizards ? I am not clear how to define, for example, that a field that seems to get 'wrapped' (thus taking up 2 lines) should be wider, so that it fits on one line, or alternatively that fields much longer than the data values are reduced in length so as to fit more columns within the visible area of the screen ?
Should I do this in the UI Defaults for the table ? Is it down to the report region templates (if so where, how) or ideally is this something I can change when editting the report attributes. (I have tried this and failed).
thanks, Jules.Jules,
This is a combination of Region Templates, Report Templates, and the data in your reports. Region and Report templates are the best places to do this, but you can force some things... & n b s p ; (without spaces) is a non-breaking space. If you replace your spaces ( replace(column_name, ' ', '& nbsp ;') ) you can force at least some things not to break. You can ensure that certain columns are wider by setting the column headings with
Name
Really, though, I think you need to look at your region and report templates.
Maybe you are looking for
-
Oracle Lite web browser cache problem
Hi, I have developed a web application based on jsp and servlet. The application works correctly if the User works "On-Line". When the user works "off-line" the application seems to work correctly, but pages (jsp) are not refreshed and the user gets
-
ICloud Keychain Authentication
Hi. I cannot authenticate my iCloud Keychain on IOS 8.2 . I am asked to enter my iCloud Security code which takes me to the next step. This is where I get stuck. The number used to register my iCloud Keychain is of South African origin (+27 (xx) xxxx
-
New MacBook Pro but Battery Health 97%?
I recently bought a MacBook Pro 13inch just last thursday and I came to notice in the iStat Pro Battery Info the Battery Health is 97%. Is this normal? Number of Cyles are 7.
-
Hi, I am trying to record co60 transaction thro ecatt sapgui mode. I have issue while specifying batch number, qty on the main cockpit sheet. Scripting is not recognizing the actual fields on the PI sheet. Anyone faced this issue ,kindly share your t
-
2.2 wide email not working
My new ipod touch is running 2.2.1. Try as I might to reorientate it I can only see email in portrait mode. Why isn't wide screen email working? thanks