Error ORA-01446 when updating a versioned table with SQLDeveloper 1.5.4
Hi,
I have been trying out Oracle Workspace Manager to test how versioned tables might work to our advantage. My basic testing process is:
1. Create a table
2. Add some data rows
3. Version enable the table
4. Create a workspace
5. Goto the created workspace
6. Update a row
7. Commit and I get the following error
UPDATE "COMSERV"."A_OWM_TEST" SET DESCRIPTION = 'ABCDEFGHIJzzzz' WHERE ROWID = 'AAAThNAAIAAAgwqAAY'
One error saving changes to table "COMSERV"."A_OWM_TEST":
Row 10: ORA-01446: cannot select ROWID from view with DISTINCT, GROUP BY, etc.
The same update works fine from SQLPlus so my question is Does SQL developer support table versioning or have I done something wrong is setting up my versioned tables?
Any suggestions greatly appreciated.
Thanks
Richard Wilkinson
hye...
is that any view referring to that table...
check the code on how u create that view...
for e.g.
CREATE OR REPLACE VIEW testview
(id, name)
AS
select * from testing;
this also will populate that ORA-01446 error.
just a suggestion cause i also have a similar problem on ORA-01446 and i resolve it by alter the view..
CREATE OR REPLACE VIEW testview
(id, name)
AS
select id, name from testing;
correct me if i'm worng...i'm just a newbie..
thank you...
Similar Messages
-
ORA-01747 when updating a remote table
Hi,
Here is my table :
SQL> desc infolig2.pylone_type
Nom NULL ? Type
PYL_CODE_PYLONE NOT NULL VARCHAR2(32)
OPY_CODE NOT NULL VARCHAR2(32)
NPY_CODE NOT NULL VARCHAR2(32)
PYL_TENS_CONS VARCHAR2(32)
PYL_NB_TERNE FLOAT(126)
PYL_HAUT_TOTAL FLOAT(126)
PYL_HAUT_SS_CONS FLOAT(126)
PYL_POIDS FLOAT(126)
PYL_SURFACE_SOL FLOAT(126)
PYL_SURFACE_PEINTE FLOAT(126)
PYL_DATE_CREAT NOT NULL DATE
PYL_DATE_MODIF DATE
PYL_TYPE_MODIF VARCHAR2(1)
PYL_CODE_UTIL VARCHAR2(20)
PYL_DESIGNATION VARCHAR2(50)
PYL_ETAT VARCHAR2(15)
PYL_INDICE_REV VARCHAR2(3)
I need to update it from a remote database.
So, I run the following procedure :
set serveroutput on
declare
GET_DESIGNATION VARCHAR2(10) := 'AUVERGNE';
OIP_PYL_CODE_PYLONE VARCHAR2(32) := 'TEST1';
OIP_OPY_CODE VARCHAR2(32) := 'ORIG3';
OIP_NPY_CODE VARCHAR2(32) := 'NATPYL2';
OIP_PYL_TENS_CONS VARCHAR2(32) := null;
OIP_PYL_NB_TERNE FLOAT := 1;
OIP_PYL_HAUT_TOTAL FLOAT := null;
OIP_PYL_HAUT_SS_CONS FLOAT := null;
OIP_PYL_POIDS FLOAT := null;
OIP_PYL_SURFACE_SOL FLOAT := null;
OIP_PYL_SURFACE_PEINTE FLOAT := null;
OIP_PYL_DATE_CREAT DATE := SYSDATE;
OIP_PYL_DATE_MODIF DATE := SYSDATE;
OIP_PYL_TYPE_MODIF VARCHAR2(1) := 'M';
OIP_PYL_CODE_UTIL VARCHAR2(20) := 'RTE REFERENCE';
OIP_PYL_DESIGNATION VARCHAR2(50) := 'TEST 1';
OIP_PYL_ETAT VARCHAR2(15) := 'interdit';
OIP_PYL_INDICE_REV VARCHAR2(3) := '23';
OIP_PYL_CODE_PYLONE_SUBST VARCHAR2(32) := 'CODEPYL5';
begin
execute immediate 'UPDATE infolig2.PYLONE_TYPE@'||GET_DESIGNATION||' SET
PYL_CODE_PYLONE = :1,
OPY_CODE = :2,
NPY_CODE = :3,
PYL_TENS_CONS = :4,
PYL_NB_TERNE = :5,
PYL_HAUT_TOTAL = :6,
PYL_HAUT_SS_CONS = :7,
PYL_POIDS = :8,
PYL_SURFACE_SOL = :9,
PYL_SURFACE_PEINTE = :10,
PYL_DATE_CREAT = :11,
PYL_DATE_MODIF = :12,
PYL_TYPE_MODIF = :13,
PYL_CODE_UTIL = :14,
PYL_DESIGNATION = :15,
PYL_ETAT = :16,
PYL_INDICE_REV = :17,
WHERE PYL_CODE_PYLONE = :18'
USING OIP_PYL_CODE_PYLONE,OIP_OPY_CODE,OIP_NPY_CODE,OIP_PYL_TENS_CONS,OIP_PYL_NB_TERNE,OIP_PYL_HAUT_TOTAL,OIP_PYL_HAUT_SS_CONS,OIP_PYL_POIDS,OIP_PYL_SURFACE_SOL,OIP_PYL_SURFACE_PEINTE,OIP_PYL_DATE_CREAT,OIP_PYL_DATE_MODIF,OIP_PYL_TYPE_MODIF,OIP_PYL_CODE_UTIL,OIP_PYL_DESIGNATION,
upper(translate(OIP_PYL_ETAT,'éè','ee')),OIP_PYL_INDICE_REV, OIP_PYL_CODE_PYLONE_SUBST;
exception
when others then
dbms_output.put_line('ERREUR ORACLE DETECTEE ***');
dbms_output.put_line('Message Erreur : '||SUBSTR(SQLERRM,1,245));
end;
I receive the error :
ORA-01747: invalid user.table.column, table.column, or columns specification
What is the problem ?
Regards,
RachelThis reply was very useful for me. I have written insert scripts in the package where I had put comma after last_updated_date in the insert statement, I got the error -
ORA-01747: invalid user.table.column, table.column, or column specification . After removing the comma and adding right parenthesis it worked fine
INSERT INTO CPT_ACTIVITY_SALES (
WS_DATE,
ACTIVITY,
WS_ITEM_HEAD,
WS_FLAG,
CREATED_BY,
CREATED_DATE,
LAST_UPDATED_BY,
LAST_UPDATED_DATE,
(SELECT a.ws_date,
b.activity,
C.WS_ITEM_HEAD,
'N',
cUser ,
SYSDATE,
cUser,
SYSDATE
FROM CPT_SALES_LINES a,cpm_category b,CPM_ACTIVITY C
WHERE a.COMPANY=nCompany
AND a.SITE=ln_site
AND a.WS_DATE=ld_ws_date
AND a.SALES_HEADER_KEY=ln_Sales_header_key
and B.company=A.company
and b.category_id=a.category_id
AND C.COMPANY=A.COMPANY
AND C.ACTIVITY=B.ACTIVITY) -
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. -
How do I avoid ORA-01473 when querying hierarchial on tables with VPD predicates
My question is how to circumvent what seems to be a limitation i ORACLE, if at all possible. Please read on.
When using VPD (Virtual Private Database) predictaes on a table and performing a hierarchial query on that table I get the following error message:
ORA-01473: cannot have subqueries in CONNECT BY CLAUSE
My query may look like the folwing:
SELECT FIELD
FROM TABLE
START WITH ID = 1
CONNECT BY PRIOR ID = PARENT
As my predicate contains a query in it self, I suspect that the implicit augmentation of the predicate results in a query that looks like:
SELECT FIELD
FROM TABLE
START WITH ID = 1
CONNECT BY PRIOR ID = PARENT
AND OWNER IN (SELECT OWNER FROM TABLE2 WHERE ...)
at least, when executing a query like the one above (with the explicit predicate) I get the identical error message.
So my question is:
Do you know of any way to force the predicate to augment itslef onto the WHERE-clause? I would be perfectly happy with a query that looks like:
SELECT FIELD
FROM TABLE
START WITH ID = 1
CONNECT BY PRIOR ID = PARENT
WHERE OWNER IN (SELECT OWNER FROM TABLE2 WHERE ...)
or do you know of any fix/patch/release to ORACLE that allows you to include subqueries in the CONNECT BY-clause and eliminates the error message?The WHERE clause or AND clause applies to the line directly above it. Please see the examples of valid and invalid queries below, which differ only in the placement of the WHERE or AND clause. If this is not sufficient, please provide some sample data and desired output to clarify what you need.
-- valid:
SQL> SELECT empno,
2 mgr,
3 deptno
4 FROM emp
5 WHERE deptno IN
6 (SELECT deptno
7 FROM dept
8 WHERE dname = 'RESEARCH')
9 START WITH mgr = 7566
10 CONNECT BY PRIOR empno = mgr
11 /
EMPNO MGR DEPTNO
7788 7566 20
7876 7788 20
7902 7566 20
800 7902 20
-- invalid:
SQL>
SQL> SELECT empno,
2 mgr,
3 deptno
4 FROM emp
5 START WITH mgr = 7566
6 CONNECT BY PRIOR empno = mgr
7 WHERE deptno IN
8 (SELECT deptno
9 FROM dept
10 WHERE dname = 'RESEARCH')
11 /
WHERE deptno IN
ERROR at line 7:
ORA-00933: SQL command not properly ended
-- valid:
SQL>
SQL> SELECT empno,
2 mgr,
3 deptno
4 FROM emp
5 START WITH mgr = 7566
6 AND deptno IN
7 (SELECT deptno
8 FROM dept
9 WHERE dname = 'RESEARCH')
10 CONNECT BY PRIOR empno = mgr
11 /
EMPNO MGR DEPTNO
7788 7566 20
7876 7788 20
7902 7566 20
800 7902 20
-- invalid:
SQL>
SQL> SELECT empno,
2 mgr,
3 deptno
4 FROM emp
5 START WITH mgr = 7566
6 CONNECT BY PRIOR empno = mgr
7 AND deptno IN
8 (SELECT deptno
9 FROM dept
10 WHERE dname = 'RESEARCH')
11 /
FROM emp
ERROR at line 4:
ORA-01473: cannot have subqueries in CONNECT BY clause -
Error ORA-01446:cannot select ROWID - Bug?
Hi
I am getting an error message in SQL Developer 3.0.04.34
Error ORA-01446:cannot select ROWID from view with DISTINCT, GROUP BY, etc.
(you can read the full details at http://www.techonthenet.com/oracle/errors/ora01446.php )
when I create a view containing "DISTINCT" even though it doesn't have a rowid anywhere in the select.
Is this a bug? The view seems to function well enough but sql developer itself seems to be struggling a bit.
I have found accounts of similarish bugs on this site from about 2007 but relating to slightly different sets of circs, but if I am asking an old and obvious question then apologies in advance.
CHi C,
Well, the question may be old (see at least: ORA-01446 error in SQL Developer 3EA4 but I doubt it's obvious.
The simplest cases of create view ... as for the following selects
select distinct deptno from dept;
select deptno, count(*) employees from emp group by deptno;work fine in all the 2.x, 3.x releases in the object viewer data tab. Of course, running a select which includes a rowid on these views from a worksheet will fail as expected.
In such situations a simple, reproducible test case is always nice but, at a minimum, please provide a listing of the broken code and a description of exactly how/where in SQL Developer the error occurs.
Regards,
Gary Graham
SQL Developer Team -
Error code 805a0193 when updating apps and install...
Up until Sunday the 12th of August 2012 I have been able to install and update my apps with no fuss. When I tried to install an app on Sunday I got an the error code mentioned above whether through wifi or 3g (for both wifi and 3g my carrier is CELL C) I get the same error message. I have tried to restore my phone software to previous software prior to recent update and even there I get an error code 801812E0. I also tried resetting my phone to factory settings through the phone and this didn't help.
I'm now stuck and I posted the same message on here http://answers.microsoft.com/en-us/winphone/forum/wp7-wpapps/error-code-805a0193-when-updating-apps-... I have not received an answer.
The solutions posted on the site for a similar error relate to a DNS issue with wifi since I am using a cellc 3g card connected to a Sitecom wl-326 router and my Carrier is Cell C for my Lumia 800 i suspect it is an issue with Cell C our the current OS update.
Please Assist
Country: South Africa
Carrier: Cell C
Phone: Lumia 800 phone
OS version: 7.10.8773.98
Firmware version: 1750.0805.8773.12220
Hardware revision number: 112.1402.2.4
Zune Version: 4.8.2345.0I'm experiencing the same problem on my Lumia 800 (as well as my girlfriend on her Lumia 710). The workaround is to set your router to use Google's DNS settings (8.8.8.8 and 8.8.4.4), further details here: http://answers.microsoft.com/en-us/winphone/forum/wp7-wpapps/marketplace-download-error-805a0193-ove...
I've tried it and it works but something still needs to be done about the problem itself.
I doubt there is anything Nokia can do about this sadly.... -
Why do i keep getting error msg #1403 when updating ipod software in itunes
why do i keep getting error msg #1403 when updating ipod software in itunes
I Googled an found no good solutions. II would try:
- Making sure that you have the latest version of iTunes, 10.6.
- Disable firewall and antivirus.
What iOS is currently on the iPod? -
Runtime error ora-12703 when running utl_mail
hello,
I call a procedure through push button to use UTL_MAIL.send(..) and I got error ora-12703.
There is no error during compilation.
For your info, I manage to execute the same code on stored procedure using TOAD and I received the email sent using TOAD and telnet from my local.
For info:
Forms developer version:
Forms [32 Bit] Version 10.1.2.0.2 (Production)
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
procedure:
PROCEDURE test_email IS
BEGIN
UTL_MAIL.send (
sender => '[email protected]',
recipients => '[email protected]',
cc => '[email protected]',
bcc => '[email protected]',
subject => 'Test',
MESSAGE => 'Hello World',
mime_type => 'text; charset=us-ascii',
priority => 3
END;
Could anyone please help me on this.
Regards,
DayangHi All,
I tried another function that use utl_smtp to send email.
Again I could recieve email when I execute the function in TOAD but got error ora-12703 when I ran using forms.
When I ran the form, only "debug 1st" apear, then after that it returned error ora-12703.
Function:
FUNCTION SEND_MAIL
(pIssuer IN VARCHAR2,
pReceiver IN VARCHAR2,
pSender IN VARCHAR2,
pSubject IN VARCHAR2,
pMessage IN VARCHAR2) RETURN VARCHAR2 IS
c utl_smtp.connection;
respuesta utl_smtp.reply;
pServer VARCHAR2(50) := '10.0.3.79';
CRLF CHAR(2) := CHR(13) || CHR(10);
BEGIN
message('debug 1st');
-- Abre la conexión al Server de correo
c := utl_smtp.open_connection(pServer);
message('debug2nd');
respuesta := utl_smtp.helo(c, pServer);
-- Inicia el Issuer del correo.
respuesta := utl_smtp.mail(c, pSender);
-- Inicia el Receiver
respuesta := utl_smtp.rcpt(c, pReceiver);
respuesta := utl_smtp.open_data(c);
-- Escribe la cabecera del e-mail
utl_smtp.write_data(c, 'From: ' || pIssuer || CRLF);
utl_smtp.write_data(c, 'To: ' || pReceiver || CRLF);
-- Escribe el Subject
utl_smtp.write_data(c, 'Subject: ' || pSubject || CRLF);
-- Escribe el texto del Message.
utl_smtp.write_data(c, CRLF || pMessage);
utl_smtp.write_data(c, CRLF || '.');
respuesta := utl_smtp.close_data(c);
-- Cierra la conexión
respuesta := utl_smtp.quit(c);
RETURN '0';
EXCEPTION
WHEN utl_smtp.transient_error OR utl_smtp.permanent_error THEN
utl_smtp.quit(c);
RETURN sqlerrm;
--raise_application_error(-20000,
-- 'El envío del email ha fallado devolviendo el siguiente error: ' || sqlerrm);
END;
Regards,
Dayang -
Error code 50 when updating desktop
I received error code 50 when updating the creative cloud dekstop. It tells me to contact customer support. how do i do that?
Creative Cloud chat support (all Creative Cloud customer service issues)
http://helpx.adobe.com/x-productkb/global/service-ccm.html -
Error ORA-06502 When using function REPLACE in PL/SQL
Hi,
I have a PL/SQL procedure which gives error 'Error ORA-06502 When using function REPLACE in PL/SQL' when the string value is quite long (I noticed this with a string 9K in length)
variable var_a is of type CLOB
and the assignment statement where it gives the error is
var_a := REPLACE(var_a, '^', ''',''');
Can anyone please help!
ThanksEven then that shouldn't do so:
SQL> select overload, position, argument_name, data_type, in_out
2 from all_arguments
3 where package_name = 'STANDARD'
4 and object_name = 'LPAD'
5 order by 1,2
6 /
OVERLOAD POSITION ARGUMENT_NAME DATA_TYPE IN_OUT
1 0 VARCHAR2 OUT
1 1 STR1 VARCHAR2 IN
1 2 LEN BINARY_INTEGER IN
1 3 PAD VARCHAR2 IN
2 0 VARCHAR2 OUT
2 1 STR1 VARCHAR2 IN
2 2 LEN BINARY_INTEGER IN
3 0 CLOB OUT
3 1 STR1 CLOB IN
3 2 LEN NUMBER IN
3 3 PAD CLOB IN
4 0 CLOB OUT
4 1 STR1 CLOB IN
4 2 LEN NUMBER INI wonder what happened? -
How do I overcome error message 1612 when updating acrobat 8 standard ?
How do I overcome error message 1612 when updating acrobat 8 standard ? Kent
Moving this discussion to the Acrobat Installation & Update issues forum.
[email protected] you may want to review the steps listed in Error 1714 | Acrobat, Reader - http://helpx.adobe.com/acrobat/kb/error-1714-acrobat-reader.html as it does reference the 1612 error. -
Getting ORA-1013 when attempting to expand tables within connections
Getting ORA-1013 when attempting to expand tables within connections on new install of Oracle SQL developer 3.1.06.
Any ideas?Hi Steve,
The ORA-01013 usually means a timeout or, more typically on this forum, an intentional user cancellation. Searching the forum, I do not see any prior references to your exact situation. Some recommendations:
1. SQL Developer 3.1.0.6 was an early adopter release. Upgrade to the latest and greatest: 3.2.10.09.57
2. Review this: Re: [SQL Developer 3.0.04] Cannot Drill Down
3. If it is a true timeout, your privileges might make a difference. If you have access to the DBA views, SQL Developer does look-ups using those and performance is better.
So for [3], having the SELECT_CATALOG_ROLE privilege may help. I even read of one case in this forum where the poster finally discovered his database's recycle bin had an issue and the DBA needed to do some clean-up to correct the performance issue.
Hope this helps,
Gary
SQL Developer Team -
HT4623 how do i get past error code 4005 when updating to iphone 6 on itunes
how do i get past error code 4005 when updating to iphone 6 on itunes
Try the troubleshooting for that error code on this page : iOS: Restore errors 4005, 4013, and 4014.
-
Received error message A12E1 when updating desktop cloud. what to do?
Received error message A12E1 when updating cloud on my desktop?
Daniel Fidler for information on how to resolve an A12E1 error please see A12E1 error installing Creative Cloud products | CC - http://helpx.adobe.com/creative-cloud/kb/a12e1-error-downloading-creative-cloud.html.
-
In OWB I need to update the target table with same field for match/update
In OWb I am trying to update the target table with the match and the update on the same field can this be done. I am getting a error match merge error saying you cannot update and match on the same field. But in SQl my select is
Update table
set irf = 0
where irf = 1
and process_id = 'TEST'
Hwo do i do this in OWB.table name is temp
fields in the table
field1 number
field2 varchar2(10)
field3 date
values in the table are example
0,'TEST',05/29/2009
9,'TEST',05/29/2009
0,'TEST1',03/01/2009
1,'TEST1',03/01/2009
In the above example I need to update the first row field1 to 1.
Update temp
set field1 = 1
where field1 = 0
and field2 = 'TEST'
when I run this I just need one row to be updated and it should look like this below
1,'TEST',05/29/2009
9,'TEST',05/29/2009
0,'TEST1',03/01/2009
1,'TEST1',03/01/2009
But when I run my mapping I am getting the rows like below the second row with 9 also is getting updated to 1.
1,'TEST',05/29/2009
1,'TEST',05/29/2009
0,'TEST1',03/01/2009
1,'TEST1',03/01/2009
Maybe you are looking for
-
Yesterday, I have upgraded the system by running pacman -Suy. The following packages were updated: [2011-02-07 13:20] Running 'pacman -Suy' [2011-02-07 13:20] synchronizing package lists [2011-02-07 13:20] starting full system upgrade [2011-02-07 13:
-
Can't get any sound from my headpeice when plugged
Hi there, Could someone help me out with this? I am unable to get any sound from my headpeice when I plug it in to listen to music. The sound only comes from the phone's speaker. I have reboot the phone but the problem still persist. Thank you
-
Hi, all, I have an item validation that fails. When the page reloads, I see the following in the debug output: Do not run process "P41_BEFORE_HEADER", process point=BEFORE_HEADER, condition type=, when button pressed=If that process doesn't run, a fl
-
when i try to see vedio on yahoo it given an error to installed flash player even after installing it gives the same error
-
User SAPJSF eliminates Roles in BW
Hello, We use SRM4.0 (SP10) and BW3.5. When we change data in EP referent to a user (like address or telephone) already replicated in BW, it automatically eliminates the roles in the user. If we check the change documents in the user we can see that