ORA-01410 when selecting data via ROWID
hi there,
after update on 11.2.0.2 we are getting the following error in our application when selecting a record using the comparison via the ROWID:
select s.rowid , S.VRZNG_ENHT_TITEL from vws_vrzng_enht_haupt_sys s where s.rowid='AAASN0AAFAAACBUAAB';
-- => ORA-01410 (it doesn't matter which other column additionally to the rowid will be chosen)
performing the same select but using the * for all data
select s.rowid , s.* from vws_vrzng_enht_haupt_sys s where s.rowid='AAASN0AAFAAACBUAAB';
-- => one row will be received.
that is very strange to me.
Using the former release 10.2.0.4 everything was fine without receiving such an error.
Also the dirty workaround with setting the optimizer_features_enable to 10.2.0.4 will work....
Has anyone faced this error, too? Any help will be higly appreciated.
thanks Stefan
Plan causing the ORA-01410:
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
| 0 | SELECT STATEMENT | | 1 | 72 | 1 (0)| 00:00:01 |
| 1 | NESTED LOOPS | | 1 | 72 | 1 (0)| 00:00:01 |
| 2 | NESTED LOOPS | | 1 | 57 | 1 (0)| 00:00:01 |
| 3 | TABLE ACCESS BY USER ROWID| TBS_VRZNG_ENHT | 1 | 54 | 1 (0)| 00:00:01 |
|* 4 | INDEX UNIQUE SCAN | CPK_GSFT_OBJ | 22 | 66 | 0 (0)| 00:00:01 |
|* 5 | INDEX UNIQUE SCAN | CUK_GOBH_GO2_ID | 17 | 255 | 0 (0)| 00:00:01 |
Predicate Information (identified by operation id):
4 - access("G"."GSFT_OBJ_ID"="VRZNG_ENHT_ID")
5 - access("GOBH"."GSFT_OBJ_2_ID"="G"."GSFT_OBJ_ID")Plan using the DUAL subquery:
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
| 0 | SELECT STATEMENT | | 1 | 39 | 4 (0)| 00:00:01 |
| 1 | NESTED LOOPS | | 1 | 39 | 2 (0)| 00:00:01 |
| 2 | NESTED LOOPS | | 1 | 18 | 1 (0)| 00:00:01 |
|* 3 | TABLE ACCESS BY USER ROWID| TBS_GSFT_OBJ_BZHNG_HRCH | 1 | 15 | 1 (0)| 00:00:01 |
| 4 | FAST DUAL | | 1 | | 2 (0)| 00:00:01 |
|* 5 | INDEX UNIQUE SCAN | CPK_GSFT_OBJ | 1 | 3 | 0 (0)| 00:00:01 |
| 6 | TABLE ACCESS BY INDEX ROWID| TBS_VRZNG_ENHT | 1 | 21 | 1 (0)| 00:00:01 |
|* 7 | INDEX UNIQUE SCAN | CPK_VRZNG_ENHT | 1 | | 0 (0)| 00:00:01 |
Predicate Information (identified by operation id):
3 - access(CHARTOROWID( (SELECT 'AAASN0AAFAAACBUAAB' FROM "SYS"."DUAL" "DUAL")))
5 - access("GOBH"."GSFT_OBJ_2_ID"="G"."GSFT_OBJ_ID")
7 - access("G"."GSFT_OBJ_ID"="VRZNG_ENHT_ID")Have you spotted the difference yourself? One execution plan applies the ROWID to a different table than the other one. You might have hit a bug here, potentially caused by a transformation applied by the optimizer.
Can you show us the execution plan that worked in 10.2.0.4?
Would it be possible to share the definition of the view "vws_vrzng_enht_haupt_sys"?
Hope this helps,
Randolf
Similar Messages
-
Change mm/dd/yyyy to dd/mm/yyyy when selecting date via dateSelector??
Hi Experts,
i have attribute of date type that has been binded to input field in a web dynpro Java application. when application is executed user can select a date via DateSelector that appears automatically.
Problem is after the date has been selected input field is populated in mm/dd/yyyy format ( ex 03/28/2008). My client wants that to be changed . It must read 28/03/2008 (dd/mm/yyyy).
I tried creating simple type using base type Date and setting representation dd/MM/yyyy however that does NOT work!!
Edited by: Eureka on Mar 28, 2008 5:30 PMHi,
Simple type with representation dd/MM/yyyy works for me.
Here is what I have done.
Create a simple type
Name :testDateFormat
package : com.test
Dictionary : Local Dictionary
Built-In-Type : Date
In the Representation Tab :
Format : dd/MM/yyyy
In the WD view created a context of type : com.test.testDateFormat and assinged the context to the inputfield
Now I see date format dd/MM/yyyy, make sure the u specify the correct format.
regards,
AE -
Error when selecting date range in query designer
hi all,
when iam trying to select date range in query designer like 01.04.2009 to 10.04.2009 it has to select only that dates where as it is selecting all the dates in between those like 010.04.2009,01.03.2009,01.02.2009.why this is happening ,iam unable to understand.plzz help me in this issue.
Vamshi D Krishnahi ,
i have created a variable as you told but no use.still i have to select the dates manuallyone after the other.for more user friendly can i have a calander where i can select date ranges.is it posible to have calander for selecting date ranges instead selecting dates one by one,if posible i request you to give the detailed steps.plzz guide me in this issue.thanks in advance.
Vamshi D Krishna -
Add Command when selecting data tables
I've been playing with the Add Command option that allows you to enter an SQL statement to select data for the report. I was wondering what people use this type of command for? I've used Crystal over 10 years but while I've been using Crystal XI for only about 3 years, I have never used this option.
So what advantages does it have over the graphically selection and linking of data tables?
What types of reporting is usually done with them?
TIA, rasincYou have to know your database well and have fairly good SQL skills, but I've found that there are things I can't do directly in Crystal that I can do when I use a command as the data source. A couple of examples are:
1. When I want to use cross-server joins (MS SQL) or dbLinks (Oracle) to get data from a second (or third!) database, this is the only way to do it short of using a stored procedure, which has it's own issues.
2. When I want to do something complex in the SQL, such as using a set of selects with Unions to "pivot" data without using a cross-tab.
Also, Crystal doesn't always create the most efficient SQL so if I'm having problems with query performance in a report, I'll re-write it using a command so that I can tweak the performance.
-Dell -
Cannot see table data when selecting data tab
In SQL developer 2.1, when I look at table definitions I see the column names and types etc, then when I click on the data tab to see the data in that table, I don't see the data only row numbers, this does'nt happen in version 1.54. Any idea what it could be causing the data not to be displayed?
I don't know if there is a synonym or not, I'll have to check. In the table browser when I click on a table I get the table columns in the main window with tabs on top for 'data', 'constraints' etc. when I select data, I see row numbers on the left, column names at the top but no data when there is data in the table (checked it using sql).
I've gone back to version 1.5.5, thanks for your help.
Arshad -
Incorrect year conversion when selecting date from DatePicker
Hi,
I have a problem when I select date from the date picker calendar to the inputDate item.
The date in input item and date picker calendar are displayed as Buddhist year (Gregorian year + 543) ex. year 2012 is 2555 Buddhist year.
When I selected date from the date picker, the year put in the inputDate item is converted to Gregorian year (2012). It should be buddhist year (2555)
Does anybody know where I can check how the year is converted?
Thanks.
nat...Hi Bijesh,
I use version 11.1.2.2.0. Actually, I got the patch from Oracle support already but it is not working properly with my application. The behavior is like this...
- First, I set the current date as a default date in the inputDate item and date is shown correctly -- 10/10/2555.
- The calendar in datePicker is also displayed correctly with year 2555.
- But when I selected the date from the datePicker, it put 10/10/2012 in the inputDate item.
I am not sure where I can check how the year is converted back to Gregorian. Any clue?
Thanks.
nat... -
Error ORA-03113 when execute procedure via OEM
Hi All,
I got error messages
ORA-03113: end-of-file on communication channel
ERROR at line 1:
ORA-03114: not connected to ORACLE
when execute procedure via Oracle Enterprise Manager
Who do you know what 's the problem and how can I resolves ?
Thanks,
MckaSolution Description:
=====================
The ORA-3113 error is a general error reported by Oracle client tools,
which signifies that they cannot communicate with the oracle shadow
process. As it is such a general error more information must be collected
to help determine what has happened.
This short article describes what information to collect for an
ORA-3113 error when the Oracle server is on a Unix platform.
General Issues:
===============
1) Is it only one tool that encounters the error or
do you get an ORA-3113 from any tool doing a similar operation?
If the problem reproduces in SQL*Plus, use this in all tests
below.
2) Check if the problem is just restricted to:
[ ] One particular UNIX user,
[ ] Any UNIX user
or [ ] Any UNIX user EXCEPT as the Oracle user.
3) Check if the problem is just restricted to:
[ ] One particular ORACLE logon
or [ ] Any ORACLE logon that has access to the
relevant tables.
4) If you have a client-server configuration does this occur from:
[ ] Any client
[ ] Just one particular client
or [ ] Just one group of clients ?
If so what do these clients have in common ?
Eg: Software release .
5) Do you have a second server or database version where the
same operation works correctly? -
ORA-01446 when selecting ROWID from View with Union
I have a View that uses a Union to select from 3 tables. I would like the View to return the ROWID for the record that is returned so that I can update it in my form. The View compiles fine but when I select from the View I get ORA-01446 error.
Example of my view:
SELECT ROWID, col_a, col_b, col_c
FROM tab_a
UNION ALL
SELECT ROWID, col_a, col_b, col_c
FROM tab_b
UNION ALL
SELECT ROWID, col_a, col_b, col_c
FROM tab_c
I need the ROWID because my tables do not contain UNIQUE/PRIMARY key constraints. In my form I want to update the view with an underlying INSTEAD OF database trigger.
Any suggestions?I think it will work if you give the column an alias (ie a name after the first rowid) and select that instead.
You will probably also need another column in your view indicating which table the row came from if you want to update it. -
ORA-28150 when accessing data from a remote database
Portal Version: Portal 3.0.9.8.0
RDBMS Version: 8.1.6.3.0
OS/Vers. Where Portal is Installed:: Solaris 2.6
Error Number(s):: ORA-28150
I have a problem with using a database link to access a table in
a remote database. So long as the dblink uses explicit logins
then everything works correctly. When the dblink does not have a
username then I get the ORA-28150 message. The database link is
always public. A synonym is created locally that points to a
synonym in the remote database. I am using the same Oracle user
in both databases. The Oracle portal lightweight user has this
same Oracle user as its default schema. The contents of the
remote table are always visible to sqlplus, both when the link
has a username and when it doesn't have a username.
All the databases involved are on the same version of Oracle.
I'm not sure which Oracle login is being used to access the
remote database, if my lightweight user has a database schema
of 'xyz' then does portal use 'xyz' to access the remote
database? I would be very grateful for any help or pointers that
might help to solve this problem.
James
To further clarify this, both my local and remote databases
schemas are owned by the same login.
The remote table has a public synonym.
The link is public but uses default rather than explicit logins.
The local table has a public synonym that points to the remote
synonym via the database link.
If I change the link to have an explicit login then everything
works correctly.
I can view the data in the remote database with TOAD and with
sqlplus even when the database link has default login rather
than explicit login.
This seems to point to Portal as being the culprit. Can anyone
tell me whether default logins can be used across database links
with portal?
TIA
James832019 wrote:
One way to do this is by creating a database link and joining the two tables directly. But this option is ruled out. So please suggest me some way of doing this.Thus you MUST use two connection strings.
Thus you are going to be either constructing some intricate SQL dynamically or you are going to be dragging a lot of data over the wire and doing an in memory search.
Although realistically that is what the database link table would have done as well.
Might be better to look at moving the table data from one database to the other. Depends on size of course. -
How to avoid ORA-3113 when selecting from XMLTYPE table
Hi,
If I register an XML-schema, Oracle automatically creates a table xxxxxx_tab of XMLTYPE. (I use Oracle 9.2.0.1)
When I do a DESCRIBE or a SELECT from this table I get the error: 'ORA-03113:
end-of-file on communication channel' and my connection is dropped.
I opened a TAR for this and Oracle says: 'It is an internal bug so cannot be viewed in metalink. This is fixed in release 10i.' (do they mean oracle DB rel 10i, or a new version of XDK?)
I saw an example in Oracle Magazine (Jan
2003) "Make XML Native and Relative" about Oracle 9i Rel 2 and XML. As you can see in codeListing 7, the author also does a select from such a
table (CD331_tab): Why doesn't he have any problems?
Is there a workaround for this bug? What's the purpose of being able to automatically upload XML-data to a registered schema if you can't do a select of the data?
Thank you!It appears that the XML Schema is not entirely valid. Specifically, the definition of element "DeviceCategory" has two definitions of element "Audio" appearing within a <choice> model i.e. something like :
<element name="DeviceCategory">
<choice>
<sequence>
<element name="Audio">
</sequence>
<sequence>
<element name="Audio">
</sequence>
</choice>
This is disallowed by XML Schema spec per. the Unique Particle Attribution Constraint. The general idea is that a XML Schema describes a determinstic content model i.e. schema processor can always unambiguosly determine the matching declaration when it encounters an element. However that's not the case with the declaration above. On encoutering "Audio", it could match either the first or the second declaration of the element. Hence the error.
You will have to rework the schema to avoid this constraint. One mechanism could be to define complexType and their restrictions.
- Ravi -
Showing more than one month while selecting date via mx:DateField
Hello,
I would like to show previous month, current and next accordingly to current date.
Is it possible to achieve this using DateField?
If no is there any 3rd party control allows such a feature? I found nothing on this.
I suppose I'm not the first one who need this ability. Please, could any kind sould help me?
Thanx in advance.Its seems like an awfully old post but I am facing same problem at the moment so I thought I will put in my 2 cents to the discussion;)
Jason, what you wrote is not true I am afraid. Property selectableRange of DateField expects object and not an array. In other words it will only work with singular date range.
I am currently working on a tool where I need to limit date selection on DateField. Basically user will select some task on drop down and type of the task (assignment) should restrict possible entries on DateField component. I am no stranger to using property selectableRange but sadly it does not work with multiple ranges:(
I would not like to try and change standard Flex code (DateChooser.as for instance) to achieve that as I don’t want to be bothered with re-doing these bits when upgrading (migrating to newer Flex or whatnot).
kilyas2007, I would suggest doing the following:
1) Merge your date ranges into one (from lowest to highest value)
2) Disable unwanted dates in between using disabledRanges property (this is an array parameter thankfully)
Perhaps someone knows a better way to do it?
Regards
Michael -
Heterogeneous Connectivity: Error when select data from table
Hi all,
I use Heterogeneous Connectivity in Oracle 10g Linux to connect SQL server Database. I use FeeTDS ODBC driver. After configuration, I create database link in Oracle, Database link is active.
But in SQLplus, I write: select * from all_catalog@DBL; It views all tables and views in sql server database.
When I write: select * from AA@DBL; It produce error:
ORA-00942: table or view does not exist
[Generic Connectivity Using ODBC]Record AA has no fields. Loading failed
ORA-02063: preceding 2 lines from DBL
Please help me. Thank you very much!I am sorry, i did not go through the entire message of yours
Does AA exist, does not contain columns, describe the table please.
Maybe you should not try Select * from ,,,, rather Select specific fields.. Also if in the remote database, the field and tablename are written in lower case you may want to try
select "field_name" , from "aa" etc
ammar sajdi -
ORA-00903 when selecting from a view
Hi,
I'm migrating our existing database on 8.1.7 to 9.2 and I keep getting an ORA-00903 error (on Oracle 9.2.0.1.0) when I try to select from a view with nested selects. Here's a very simple example - no rows are returned when I issue the query (its a dummy query, but it illustrates the problem). However, as soon as I turn it into a view, and do a select from the view, I get an Invalid Table Name error. Can anyone suggest why this is happening?
So... This works on its own
SELECT ID
FROM (
SELECT /*+ ORDERED */
t.id
FROM tblmsg t,
tblevent e,
e_workflowstate s,
(SELECT e_taskstatus_id
FROM e_taskstatus s,
e_workflowplntasks ws
WHERE s.e_taskstatus_id = ws.taskid
UNION ALL
SELECT e_taskstatus_id
FROM e_taskstatus s,
e_workflowmantasks ws
WHERE s.e_taskstatus_id = ws.taskid
UNION ALL
SELECT e_taskstatus_id
FROM e_taskstatus s,
e_workflowtrgtasks ws
WHERE s.e_taskstatus_id = ws.taskid) V
WHERE t.id = e.id
AND t.id = v.e_taskstatus_id
AND V.e_taskstatus_id = e.id)
But this doesn't
CREATE OR REPLACE VIEW TESTVIEW AS
SELECT ID
FROM (
SELECT /*+ ORDERED */
t.id
FROM tblmsg t,
tblevent e,
e_workflowstate s,
(SELECT e_taskstatus_id
FROM e_taskstatus s,
e_workflowplntasks ws
WHERE s.e_taskstatus_id = ws.taskid
UNION ALL
SELECT e_taskstatus_id
FROM e_taskstatus s,
e_workflowmantasks ws
WHERE s.e_taskstatus_id = ws.taskid
UNION ALL
SELECT e_taskstatus_id
FROM e_taskstatus s,
e_workflowtrgtasks ws
WHERE s.e_taskstatus_id = ws.taskid) V
WHERE t.id = e.id
AND t.id = v.e_taskstatus_id
AND V.e_taskstatus_id = e.id);
View created
SELECT * FROM TESTVIEW;
ERROR at line 1:
ORA-00903: invalid table name
This works fine on 8.1.7. I haven't tested it on 9.1 though.
Any ideas?
ThanksOne thing to try would be to use SCHEMA.TABLENAME rather than just TABLENAME to refer to the tables.
Its just a shot in the dark, but hopefully it may help.
Martin. -
ORA-22337 when select geometry within external procedure
Hi all
I want to make a C external procedure. This external procedure need to select a set of geometries (MDSYS.SDO_GEOMETRY) from a table in database.
How can I do that?
Well, I've tried to use callback functions, but I realized that some important OCI object functions don't work on callbacks (like object pinning).
So, I've tried to make a new connection from the external procedure. I can do that, but, when I make the object pinning (yes, I did map the SDO_GEOMETRY object to a C struct), I get the error ORA-22337 (the type of accessed object has been evolved)
How can I handle this?Hi Ben,
The use of the union operator tells Oracle only to return a unique set of rows, hence a sort is done (in this case attempted, since there is no geometry sorting routine).
If you choose union all, then no sort will be attempted.
Hope this helps,
dan -
ORA-06502 when downloading report via BI Publisher
I'm getting this error when trying to export an interactive or standard report using the BI Publisher report server. It doesn't happen on all reports, but I'm not sure what could be causing the error. The result is an excel file with the message:
<pre>report error:
ORA-06502: PL/SQL: numeric or value error: character string buffer too small</pre>
The standard report has 45 columns and 755 rows. There aren't any errors on the UI when the report is generated.
Has anyone had this problem or know what to do to fix it? I can't recreate the interactive report region on the same page because there are hundreds of saved reports that I can't delete.
APEX 4.1.1.00.23
Oracle 11g 11.2.0.2.0 - 64bit Production
Thanks!
Jonathan HartAfter reading through the trace file from the report generation it looks like the error is caused from binding the sql query to some query or data type within the APEX engine. I double-checked the length of the query and it is longer than 4000 characters. I'm sure some of the interactive report queries are also longer than 4000 with all the filters added in.
Is there anyway to fix this?
Edited by: YodaHart on Feb 13, 2013 11:24 AM
Maybe you are looking for
-
Validation required so that invoice, billing and accounting is done on same
Validation required so that invoice, billing and accounting is done on same date as the PGI date. Very urgent please help. Please look into the below scenario. Excise invoice posting date u2013 07.10.2011 A/c doc posting date u2013 29.09.2011 Reflect
-
Why does autofill in safari no longer work in iOS8?
Autofill no longer functions as before now that I have upgraded my iPhone 5 to iOS8. It no longer fills in my username and password automatically when I go to a website. Instead I have to put the cursor in the username space and then an autofill opti
-
Hi, I'm trying to learn how to use formatted searches and SQL in SAP Business One. Can anyone give me some simple examples to start with? For example, on AR Invoice, if customer (OINV cardcode) is X, a UDF field should be populated 'Y". If customer (
-
i want to hide some coulumns in standerd tcode, like qe51n , can i change it for only perticular user??? if yes then how?
-
When I print to my Epson R1800 4 x 6 borderless I always get a border on the right and bottom of the print. I tired doing the calibration in the print dialog making the changes but it did not solve the problem. I still got a border (of about 1/4" or