(BUG?) Updatable views migration trouble

I have some simple updatable views created as:
select *
from table
where primary_key in (select ...)
which are working well on database Release1 (10.1.0.3.0 - Linux).
After moving application to Release2 (10.2 - Microsoft Windows, 32-Bit) all these views are no longer updateable.
GB

I have some simple updatable views created as:
select *
from table
where primary_key in (select ...)
which are working well on database Release1 (10.1.0.3.0 - Linux).
After moving application to Release2 (10.2 - Microsoft Windows, 32-Bit) all these views are no longer updateable.
GB

Similar Messages

  • (BUG?) Migrating updatable views trouble

    I have some simple updatable views created as:
    select *
    from table
    where primary_key in (select ...)
    which are working well on database Release1 (10.1.0.3.0 - Linux).
    After moving application to Release2 (10.2 - Microsoft Windows, 32-Bit) all these views are no longer updateable.
    GB

    Hi,
    Windows:
    Connected to Oracle Database 10g Enterprise Edition Release 10.2.0.1.0
    Linux
    Connected to Oracle Database 10g Enterprise Edition Release 10.1.0.3.0 Maybe a bug introduced into 10.2.0.1 ?
    What I can say is that your test case work fine on my 10.2.0.3 database :
    SQL> conn system/demo102a@DEMO102A
    Connecté.
    SQL> create user user0 identified by user0 default tablespace users;
    Utilisateur créé.
    SQL> grant connect, resource to user0;
    Autorisation de privilèges (GRANT) acceptée.
    SQL> grant create any synonym to user0;
    Autorisation de privilèges (GRANT) acceptée.
    SQL> grant create public synonym to user0;
    Autorisation de privilèges (GRANT) acceptée.
    SQL> grant drop public synonym to user0;
    Autorisation de privilèges (GRANT) acceptée.
    SQL> grant create view to user0;
    Autorisation de privilèges (GRANT) acceptée.
    SQL>
    SQL> create user user1 identified by user1 default tablespace users;
    Utilisateur créé.
    SQL> grant connect, resource to user1;
    Autorisation de privilèges (GRANT) acceptée.
    SQL> grant create view to user1;
    Autorisation de privilèges (GRANT) acceptée.
    SQL> conn user0/user0@demo102a
    Connecté.
    SQL> drop table foreign_table;
    drop table foreign_table
    ERREUR à la ligne 1 :
    ORA-00942: Table ou vue inexistante
    SQL> create table foreign_table (
      2  foreign_id varchar2(14),
      3  foreign_name varchar2(250),
      4  foreign_alias varchar2(250),
      5  --
      6  constraint pk_foreign_table primary key (foreign_id)
      7  );
    Table créée.
    SQL>
    SQL> grant references on foreign_table to user1;
    Autorisation de privilèges (GRANT) acceptée.
    SQL>
    SQL> create or replace view foreign_view as
      2  select * from foreign_table;
    Vue créée.
    SQL>
    SQL> drop public synonym foreign_view;
    drop public synonym foreign_view
    ERREUR à la ligne 1 :
    ORA-01432: le synonyme public à supprimer n'existe pas
    SQL> create public synonym foreign_view for user0.foreign_view;
    Synonyme créé.
    SQL> grant select on foreign_view to user1;
    Autorisation de privilèges (GRANT) acceptée.
    SQL>
    SQL> create or replace package pkg as
      2 
      3  function func_1(i_id varchar2)
      4  return varchar2;
      5 
      6  function func_2(i_id varchar2)
      7  return varchar2;
      8  end;
      9  /
    Package créé.
    SQL>
    SQL> create or replace package body pkg as
      2 
      3  rec foreign_table%rowtype;
      4  cursor c is select * from foreign_table;
      5 
      6  function func_1(i_id varchar2)
      7  return varchar2
      8  is
      9  begin
    10  return 'SOME_ID';
    11  end;
    12 
    13  function func_2(i_id varchar2)
    14  return varchar2
    15  is
    16  begin
    17  return 'Y';
    18  end;
    19 
    20  end;
    21  /
    Corps de package créé.
    SQL>
    SQL> drop public synonym pkg;
    drop public synonym pkg
    ERREUR à la ligne 1 :
    ORA-01432: le synonyme public à supprimer n'existe pas
    SQL> create public synonym pkg for user0.pkg;
    Synonyme créé.
    SQL> grant execute on pkg to user1;
    Autorisation de privilèges (GRANT) acceptée.
    SQL>
    SQL> connect user1/user1@demo102a
    Connecté.
    SQL> create or replace view inner_view as
      2  select
      3  xc.foreign_id foreign_id,
      4  nvl(xc.foreign_name, xc.foreign_alias) foreign_name
      5  from foreign_view xc
      6  where pkg.func_1(foreign_id) = 'SOME_ID'
      7  and pkg.func_2(foreign_id) = 'Y';
    Vue créée.
    SQL>
    SQL>
    SQL> drop table base_table;
    drop table base_table
    ERREUR à la ligne 1 :
    ORA-00942: Table ou vue inexistante
    SQL> create table base_table (
      2  base_id varchar2(14),
      3  foreign_id varchar2(14),
      4  foreign_text varchar2(250),
      5  --
      6  constraint pk_base_table primary key (base_id)
      7  );
    Table créée.
    SQL>
    SQL> -- Final view
    SQL> -- Updatable on Linux, Non-updatable on Windows
    SQL> create or replace view final_view as
      2  select m.*,
      3  c.foreign_name r_foreign_name
      4  from base_table m,
      5  inner_view c
      6  where m.foreign_id = c.foreign_id (+);
    Vue créée.
    SQL>
    SQL> select * from final_view for update;
    aucune ligne sélectionnée
    SQL>
    SQL> select * from v$version;
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Prod
    PL/SQL Release 10.2.0.3.0 - Production
    CORE    10.2.0.3.0      Production
    TNS for 32-bit Windows: Version 10.2.0.3.0 - Production
    NLSRTL Version 10.2.0.3.0 - Production
    SQL> Well, an upgrade to the latest patchset would be well for you.
    Nicolas.

  • Please  update me migration activity plan in sap mm point of view

    Hi,
    In our company, we have two company codes  have two plants each one, Now management decided to these two plants in to one company code existing, please  update me migration *** Merger activity plan in sap mm point of view?
    Padma
    Edited by: padmap on Apr 14, 2010 7:08 AM

    I guess it can be done. You need to cut all links of plant to the existing company code in ENTERPRISE STRUCTURE, and then reassign the said plant to the other company code.
    Edited by: Afshad Irani on Apr 14, 2010 11:23 AM

  • Updating view mapping for atg migration

    Hi experts
    In the migration document they have mentioned about update view mappings. i am not able to understand this?  they also mentioned
    Before you import the new ATG 10.0 view mappings, edit the following files in
    >/home/localconfig/atg/dynamo/service/jdbc
    FakeXADataSource.properties
    FakeXADataSource_production.properties.
    here is my question- why do we need to change FakeXADataSource.properties. is this mandetory? If you are using Oracle (XA datasource) , why do we need to edit fakexadatasource. please help me to understand .
    thanks
    Krish

    Hi Krish,
    yes, it is mandatory. the FakeXADataSource.properties used during initial export and import of data when installing.
    Thanks & Regards
    Suman Vasireddy
    Please mark any update as "Correct Answer" or "Helpful Answer" if that update helps/answers your question, so that others can identify the Correct/helpful update between many updates.

  • Updatable View as data block source - can't get to work

    I have created a simple form with one data block based on an updatable view, but it doesn't work properly after the form executes a query.
    I can use DML on this view using SQL*Plus and it works as it should.
    DML works in the form too, but only until I execute a query, after that I get the "FRM-40602: cannot insert into or update a view" error each time I try an insert, update, or delete.
    This is repeated for each runtime of the form. I have set the "query only" property to yes for the non-DMLable item from the view so that isn't part of the problem. This is an example out of "Developer Advance Forms and Reports (page 112) - Oracle Press" so it should work. There is nothing else (code, triggers, etc...) in this module besides the one data block.
    Any ideas would be appreciated.
    Thanks. Bill Brosnan.

    I have had the same issue and had to go through Oracle Support to get it working.
    First of all make sure that you have a recent patch installed (patch 9 as being the latest one available).
    Second, set in the data block the property key mode to updatable and the property primary key to yes for one item of the data block. (this is bug 1561423)
    Make sure that you only modify those columns that are updateable.
    Quite a large number of bugs have been reported on the concept of updatable views and the installation of a recent patch will most definitely get you working again.
    This functionality does work !
    Goodluck,

  • Bug when viewing tables?

    There seems to be a bug when viewing tables with identical names in different schemas in SQL Developer. When I view table information in one schema and then go to a table with identical name in another schema the view isn't updated, it still shows the information for the table from the first schema. I have to select another table in the second schema before I select the table I want to look at to get the information correct.
    I have the same problem with views, so this is probably the case for all kinds of objects.
    Regards,
    Sveinung

    I have found that the problem is even more specific. It occurs only when I view schemas in different databases.
    I am not sure that I understand what you mean about abstracted script. I have tried to create a simple test case with two scripts, one for each database, that creates a table, inserts some data and creates a view on the table.
    I have not found a way to upload files, so I have pasted the contents into this thread along with a description of the steps in the GUI. I have run the scripts on Oracle 10g (10.2.0.3.0) databases.
    -- SCRIPT 1
    CREATE TABLE test_table
    col_1 NUMBER,
    col_2 VARCHAR2(6)
    INSERT INTO test_table VALUES (1, 'ROW 1')
    INSERT INTO test_table VALUES (2, 'ROW 2')
    INSERT INTO test_table VALUES (3, 'ROW 3')
    INSERT INTO test_table VALUES (4, 'ROW 4')
    INSERT INTO test_table VALUES (5, 'ROW 5')
    COMMIT
    CREATE VIEW test_view AS SELECT * FROM test_table
    -- END SCRIPT 1
    Run script 1 in some schema in a database.
    -- SCRIPT 2
    CREATE TABLE test_table
    col_1 NUMBER,
    col_2 VARCHAR2(6),
    col_3 VARCHAR2(12)
    INSERT INTO test_table VALUES (1, 'ROW 1', 'COL 3 ROW 1')
    INSERT INTO test_table VALUES (2, 'ROW 2', 'COL 3 ROW 2')
    INSERT INTO test_table VALUES (3, 'ROW 3', 'COL 3 ROW 3')
    INSERT INTO test_table VALUES (4, 'ROW 4', 'COL 3 ROW 4')
    INSERT INTO test_table VALUES (5, 'ROW 5', 'COL 3 ROW 5')
    INSERT INTO test_table VALUES (6, 'ROW 6', 'COL 3 ROW 6')
    INSERT INTO test_table VALUES (7, 'ROW 7', 'COL 3 ROW 7')
    COMMIT
    CREATE VIEW test_view AS SELECT * FROM test_table
    -- END SCRIPT 2
    Run script 2 in some schema in another database.
    Connect to the two databases in SQL Developer.
    Select the table in the first database, then select Data.
    Then select the table in the other database. In my system the data are not refreshed. This is also the case when I look at the views.
    Hope this description is good enough.
    Sveinung

  • Issue in Invoking an Updatable View with Instead of Trigger

    Hi,
    I am trying to insert a record using Updatable View with Instead of Trigger. When i try to save the data, i get the below error:
    java.sql.SQLException: ORA-01403: no data found
    ORA-06512: at line 1
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:457)
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:405)
    at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:889)
    at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:476)
    at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:204)
    at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:540)
    at oracle.jdbc.driver.T4CCallableStatement.doOall8(T4CCallableStatement.java:213)
    at oracle.jdbc.driver.T4CCallableStatement.executeForRows(T4CCallableStatement.java:1075)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1466)
    at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3752)
    at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:3887)
    at oracle.jdbc.driver.OracleCallableStatement.executeUpdate(OracleCallableStatement.java:9323)
    at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeUpdate(OraclePreparedStatementWrapper.java:1508)
    at weblogic.jdbc.wrapper.PreparedStatement.executeUpdate(PreparedStatement.java:172)
    at oracle.jbo.server.OracleSQLBuilderImpl.doEntityDML(OracleSQLBuilderImpl.java:432)
    at oracle.jbo.server.EntityImpl.doDMLWithLOBs(EntityImpl.java:8566)
    Can someone help me resolve this issue?
    Also it would be great if you can share Sample codes for Invoking an updatable view with instead of trigger on Save/commit.
    Regards,
    Jeevan

    As a trigger is executed in the db and not in your app it's really hard to help as you did not give any useful information.
    Have you read this blog http://stegemanoracle.blogspot.com/2006/03/using-updatable-views-with-adf.html ?
    Timo
    Edited by: Timo Hahn on 22.09.2011 09:15
    And my friend google also found http://technology.amis.nl/blog/1447/adf-business-components-resfresh-after-insertupdate-and-instead-of-triggers

  • My ipod touch 4g just updates today on itunes and the update caused more trouble than good. My ipod will no longer show me the battery percentage in the top right hand corner and also I am not allowed to drag other applications to the bottom panel.

    My ipod touch 4g just updates today on itunes and the update caused more trouble than good for me. My ipod will no longer show me the battery percentage in the top right hand corner and I am not allowed to drag other applications to the bottom panel. Also my itunes doesn't allow "enable disk use" anymore. Can anyone help? My ipod now says that it's the 4.3.4 version

    - Unjailbroken iPod never showed % battery.  Just the icon.
    - Unjailbroken iPod Touches never had a disk mode.
    - What happens when you try to drag a wiggling app to a empty space in the bottom? Does it move and snap back?

  • My Mac has stopped playing you tube asking me to update flash player trouble is it is asking me for a password and I don't ever recall setting a password for this mac -!!!!!

    My Mac has stopped playing you tube asking me to update flash player trouble is it is asking me for a password and I don't ever recall setting a password for this mac …!!!!

    When the Mac was setup you had to create an administrative password.and account.  Yo have to sign into that account to install apps/plug-ins like Flash. To reset that password.
    Forgot Mac Password? How to Reset Your Mac Password (with or without CD)
    Change the Admin Password with Mac OS X Single User Mode
    Reset mac mini admin password: Apple Support Communities

  • Update View SM30

    Hallo Guru,
    have you ever had this problem:
    I have created an update view, but when I try to update data via SM30... well, even if I save, no data is really saved...

    No, no events...
    I have:
    1. Created a Z table
    2. Created an update view for the table
    3. Created a maintainance view for the view.
    3. goto transaction SM30
    4. I make modifications, but no data is saved...

  • Update view ( view is based on 3 tables)

    i have view based on 3 tables.
    create view view_master
    select '1' as no , name , no from a
    union all
    select '2' as no , name , no from b
    union
    select '3' as no , name , no from c
    actually i wanted to update view base table, Can i update a view view_master ?
    My question here is does oracle support view update ( view is based on 3 tables)
    Please advise ,,,

    Apart from Instead of trigger any other work around? The best way to answer that question is if you let us know:
    - your database version ( select * from v$version; )
    - give us a narrowed down example of the 'begin-situation' and the desired 'final situation'.\
    See:
    {message:id=9360002} for more details.
    MY ORACLE DBA hates tiggers .He's not the only one ;)

  • Updatable view and Read only view

    Jdev version 11.1.1.6
    1. Can we use an updatable view instead of readonly view for LOVs?
    2. In my use case, I am having a panel-tabbed component. I create Region in the first tab & create Countries in the second tab. If I use a LOV for Regions based on the read-only view, then the data created & COMMITTED in the first tab is not getting reflected in the LOV in the second tab. But, if I use an updatable view for the Region field's LOV, then the LOV works fine. But, want to know if it is fine to use an updatable view for LOVs.

    Quotation from the developer guide
    >
    Best Practice: When you need to create a read-only view object for
    data lookup, you should use the entity-based view object and deselect
    the Updatable option in the Entity Objects page of the view object
    overview editor.
    >
    >
    View objects can either be related to underlying entity objects or not. When a view
    object is related to one or more underlying entity objects the default behavior supports
    creating new rows and modifying or removing queried rows. However, the update
    feature can be disabled by deselecting Updatable in the overview editor for the
    entity-based view object
    >
    So the answer for your first question is Yes

  • Update Rule Migration from ODS to Cube --Error

    Hello SAP Experts,
    I am triing to migrate Update Rule (from 3.x to 7.0 transformation) from DSO 0QM_DS01 to Cube 0QM_C12 and i am getting error.
    Error message:
    Internal error: 32 0NOTIFICATN 01 Standard Group MASTER - Contact SAP.
    Similary with another update rule migration from DSO 0QM_DS02 to Cube 0QM_C13 .
    Error message:
    Internal error: 41 0NOTIFICATN 01 Standard Group MASTER - Contact SAP.
    I dont have any clue about the error message. Need your help to figure it out the issue.
    Thanks in Advance.
    Lasya.

    MR..V.. you are the man... my problem has been solved.
    Anyway my problem has been solved.. do you mind asking one more question regarding the above error?? how did you think about the above solution.. just changing it from read master data --> direct assingmen then back to read master data.. Please tell if i come accorss anything in future shall i follow the same.. please tell me..
    I have assigned full points to you.
    Thanks for all your help.
    Lasya.

  • HELP!!! Constant freezing, Bugged updates, Repair failure, and No Hard disk

    Hi, I have had my iMac for just about a year now. It has never had any major problems up until now. One day, when i was using a downloaded non-Mac application that I had had for a while, my iMac freezes. Only the curser can move now. I pushed the power button putting the computer to sleep, then, waking it up again. All back to normal and I didn't think anything about it.
    A couple of days later, it starst happening again, but with Mac applications too. It to the point to where i had to restart my computer by holing down the power button (aka. "the last resort"). It gets so bad to the point that I cannot use my computer anymore. The only thing I can do when it's frozen is move the curser, nothing else. So I take it to my local Apple Store. Guess what, it works perfectly when I turn it on there! Ha Ha Ha No. But yes it does work which is bad because he cannot fix a working computer. He repairs the permissions on the computer anyway, just to make sure. When I get home I power up my computer and it works aweful. Oh, and I forgot to mention earlier that it takes about 10-25 minutes to get to the login screen! Every time. So now I wait, without a computer for about a month until Christmas. I get the Drive Genius software by Prosoft for Christmas. So I use it to try to fix my iMac. I repaired everything possible to repair. So now the computer is working a lot better, but there are still some things that freeze. Such as, closing a window, or quitting an application, checking my email, and emtying the trash. A few weeks later I was calling an Apple support agent about a different product whitch was accually my fault but he gave me some suggestions to fix my computer. So I did the hardware test like he told me to and it did nothing. I did and archive and install and it worked!. So when you do one, there are like 20 things to update. I updated OS X first, then some other needed updates, when those were done and restarted I had planned on doing all of the security updates. On my second wave, the one right before the security updates, I restared my computer when the finished and then when I came back into the room, the screen was blue and had that little swirly gray loading thing. I left it on that for 6 or 7 hours hoping it would finally go through, but it did not. Back to the archive and install. I performed it once again and decided to change the order of the updates to, OS X, then all of the security ones, then everything else. it worked all of it. But, it eventually started freezing again. This time it was real freezing, the kind where your curser becomes a little "wheel of fortune" thing. BANKRUPT! I figured it was a bugged update because both failures happened close after the updates. It is archive and install time again. So I shut down my computer using "the last resort" while I am busy buying vowels and solving the puzzle. So I put the CD in and start. It took a little too long for the CD to find my hard disc. It made me nervous. I start the install but have to go. When I come bock to my house, the thing says "install failed please restart and try again". So I tried. but it never finds my hard disk. Its gone. Poof! I get the "no startup disk" floder sign on starup. One thing is that my Drive Genius software detects my disk easily. And that concludes my fairytale adventure.
    Thanks and I hope somebody can help,
    Jamey

    Hey, thanks for responding. Well, first of all how do i a PMU? I have connected a logitech L/R click mouse with a scroll wheel, an Apple keyboard with an Apple brand keyboard USB extention cord, an iPod connector cord (no iPod connected), an HP PSC 1200 series all-in-one printer, and some non-Apple speakers. All of the computers in my house are on a airport express wireless internet system. At the Apple store all I had was an Apple mouse, Apple keyboard. Would it make any difference how I plugged these in? I have a battery backup system. Plugged into that are the following: (under battery backup and surge protector) my computer and my printer. (Under just surge protector) another power strip with surge protecctor and isolated outlets. On that are my speakers, my cell phone charger, my neon clock, and my desk light.
    Thanks, I hope this information helps you help me resolve my problem,
    Jamey

  • About bash bug update being available but not showing up in software updates???

    Apple has posted a Bash Bug update (as of 9/29/14) for various versions of OS X.  It can be downloaded on the downloads page.  But why doesn't it show up as an Apple update on the Software Updates page???
    When I go there it says "there are no updates available".  What's up with that???
    thanks.. bob

    Have you tried going to the App Store and finding the update there?  Or getting the updater from the Apple Downloads site: OS X Mavericks 10.9.1 Update
    OT

Maybe you are looking for