Updation on Views

Hi All,
i have developed new form that is based on view.when i'm trying to update with the exsisting data itis notallowing me to update.
I have written code on WHEN-BUTTON-PRESSED
:blockname.item_type := :blockname.item_type
Is there any other way to define the code,if any solution please helpme
Regards
Siva

Hello,
This question comes back so many times, you could have been find tones of posts by using the "Search forum" search box.writing "updatable view" in it.
Regards

Similar Messages

  • ORA-1779 when updating a view

    Hi and thanks in advance !
    i am facing a critical situation.
    i have two schema & both are same!
    the problem which i am facing is during updating a view of one i am facing above error while the same DML is issuing againt that view in other schema and that works fine.
    what's the reason..
    The major difference between two schema's is i hav different live and test database i migrate my access database to Oracle test database # 1.here i created a new user name deals . ok
    i hav done same migration in my another database but a little difference here user deals is already available here and tables and views are also available i drop all the object but forget to purge recyclebin. now whenever i try to issue DML at this schema i am facing above error while the same tables same data and same view is available in above databae where my update statement executed properly. one more thing i like to add here i hav some unwanted trigger 'BIN$##$$%##$# bla bla bla' on different table. i haven't created that .
    here is the view for your kind perusal
    CREATE OR REPLACE VIEW QRYREUTER AS
    SELECT FXdeals.deal_no,
    cparty.name,
    cparty.city,
    FXdeals.brokbill,
    FXdeals.deal_date,
    FXdeals.mode_id
    FROM FXDeals
    JOIN cparty
    ON FXdeals.cpcode = cparty.cpcode
    WHERE ( ( (FXdeals.mode_id) = 3 ) )
    Message was edited by:
    Fiz Dosani

    but i have sample scenario in other schema which replica of this schema so why i haven't got this error there
    one more interesting thing when i query select * from user_updateable_columns where table name ='ABC' in Schema # 1 it return i can modify some columns.
    but when issue the data dictionary view in schema # 2, where i was facing ORA-1779 , select * from user_updateable_columns where table name ='ABC' in Schema # 2 it return i can not modify any columns.
    Tables name are same in both schema.
    Data same in both schema.
    Constraint Same in both schema.
    Indexes same in both schema.
    why facing error in one schema not in other.
    one more interesting thing, i had faced questionable object error when importing DMP into schema # 2.

  • Update maintenance view data by FM .

    Hi friends,
             I want to update Maintenance view data  not by using sm30,sm34,transactions . i want to update by FM . i will pass the data and view name  so that it should update the data in views( and corresponding tables ) .
    and  we need these changes should be stored in change request also .
    Regards,
    Shiva.

    you can use FM
    VIEW_MAINTENANCE_NO_DIALOG
    with action parameter = 'SAVE'
    just do a where used list of this FM to check how this can be used
    Regards
    Raja

  • Creating a role to update a view

    Hi.
    Oracle 10.2.04. Linux 4.
    I have been reading about updating views. The Oracle documentation http://download.oracle.com/docs/cd/B28359_01/server.111/b28310/views001.htm#i1006887 states that:
    The owner of the view (whether it is you or another user) must have been explicitly granted privileges to access all objects referenced in the view definition. The owner cannot have obtained these privileges through roles. Also, the functionality of the view depends on the privileges of the view owner. For example, if the owner of the view has only the INSERT privilege for Scott's emp table, then the view can be used only to insert new rows into the emp table, not to SELECT, UPDATE, or DELETE rows.
    This is helpful, but doesn't resolve my issue.
    A role has been created to allow access to a view called SALES_RESULTS:
    create role update NOT IDENTIFIED;
    GRANT INSERT, SELECT, UPDATE ON SALES_RESULTS TO update;
    GRANT update to user;
    When user tries to update the view however, an error is returned. (Sorry, I dont know the error just yet!!)
    In essence, my question is: in order for the updates to work, does the user 'user' need explicitly granted priviliges on the underlying objects, as stated in the Oracle doc extract above - which was discussing the owner of the view?
    Thanks.
    DA

    You have an actual example that shows it does not work. Also, it is stated in the documentation.
    What else do you need?
    Kind regards
    Uwe
    http://uhesse.wordpress.com

  • Updatable Materialized View and Master Table on same database

    Hi all,
    My first question - Is it possible to have an Updatable Materialized View and the associated Master Table located on the same database?
    This is the requirement scenario:
    One unique database D exists.
    A is a batch table. Only inserts are allowed on Table A.
    M is an updatable materialized view on Table A (Master). Only updates are allowed on M (no insert or delete).
    Requirement is to push updates/changes from M to A periodically and then get the new inserted records from A into M via a refresh.
    Is this possible? What other approaches are applicable here?

    John,
    My question is related to the implementation and setup of the environment as explained in the above example. How can I achieve this considering that I have created an updatable m-view?
    If possible, how do I push changes made to an updatable m-view back to it's master table when/before I execute DBMS_MVIEW.REFRESH on the m-view? What is the procedure to do this if both table and mview exist on the same database? Do I need to create master groups, materialized view refresh groups, etc.?
    One more thing.. Is there a way to retain changes to the m-view during refresh? In this case, only newly inserted/updated records in the associated table would get inserted into m-view. Whereas changes made to m-view records would stay as-is.
    Hope my question is directed well. Thanks for your help.
    - Ankit

  • Scheduling updatable materialized view

    Hi everybody,
    As you may know I have a solution in which I have 5 sites .One master site with 4 updatable materialized view sites.
    I want to know that is it correct if I dont set up schedule push to run periodically and set it up to do continuous push ?
    I want in at least 2 minutes all sites become update and I have to mention that at first I tried multimaster but our client doesn't want that because they want if one special site becomes unavailable they others can not transfer data to eachother.
    I appreciate your help in advance.

    Your requirements are a bit unclear...
    1) In general, if you are looking to have sites updated within a minute or two of the original transaction being committed, you are better off looking at something like Streams rather than using materialized views.
    2) Architecturally, when you set up multi-master replication (which it sounds like you are attempting to do here), you need to choose between synchronous and asynchronous replication. Synchronous replication means that a transaction cannot commit until it has been pushed to all the other nodes, which is great for latency but horrible for performance, scalability, and availability. Very, very few people really want synchronous replication. That leaves asynchronous replication, which would require you to schedule jobs to replicate changes. Some folks who think they want asnychronous replication really want another technology entirely (i.e. DataGuard, RAC, etc).
    3) Are you sure about the requirement "they want if one special site becomes unavailable they others can not transfer data to each other"? That says that if one site fails, they want all transactions everywhere to fail. That pretty much defeats the purpose of setting up multi-master replication. If the system is only available as long as every node is available, and you're going to incur the overhead of synchronous replication on every change, you would be far better served consolidating everything into a single data center and potentially using RAC to create a multi-node cluster to spread the work among nodes. There would be very little benefit to offset the complexity of configuring and maintaining a multi-master replication environment if you didn't want the nodes to be able to continue in the event that one of them failed.
    Justin

  • Updatable materialized view- error with CREATE_SNAPSHOT_REPGROUP

    I'm trying to create an updatable materialized view from the replication administrators account (REPADMIN). I use the assistant and in the third step (after creating the replication group and the materialized view), when the materialized view is going to be added to the group, I got this error:
    ERROR in line 1:
    ORA-01403: No data found
    ORA-06512: in "SYS.DBMS_REPCAT_SNA_UTL", line 5927
    ORA-06512: in "SYS.DBMS_REPCAT_SNA", line 82
    ORA-06512: in "SYS.DBMS_REPCAT", line 1332
    ORA-06512: in "SYS.DBMS_REPCAT", line 1307
    ORA-06512: in line 2
    I have also tried to use the command file that the assistant generates (I add below), and the error is triggered within the CREATE_SNAPSHOT_REPOBJECT procedure.
    Has anybody any idea to resolve the problem?
    Thanks in advance
    BEGIN
    DBMS_REPCAT.CREATE_SNAPSHOT_REPGROUP(
    gname => '"MYGROUP"',
    master => 'DB.DOMAIN.COM',
    propagation_mode => 'ASYNCHRONOUS');
    END;
    CREATE SNAPSHOT "MYUSER"."MYTABLE"
    REFRESH COMPLETE WITH ROWID
    FOR UPDATE
    AS SELECT "COD", "NAME" FROM
    "MYUSER"."MYTABLE"@DB.DOMAIN.COM c
    BEGIN
    DBMS_REFRESH.ADD(
    name => '"MYUSER"."REF3"',
    list => '"MYUSER"."MYTABLE"',
    lax => TRUE);
    END;
    BEGIN
    DBMS_REPCAT.CREATE_SNAPSHOT_REPOBJECT(
    gname => '"MYGROUP"',
    sname => '"MYUSER"',
    oname => '"MYTABLE"',
    type => 'SNAPSHOT',
    min_communication => FALSE);
    END;

    Hello,
    These days I have had some problems with my forum-account and I haven't been able to connect and reply.
    Regarding to your doubt, the name of refresh group was correct, and as I see, the problem can't be related to the refresh group.
    While the problem with my account was resolved, I created two new databases (*) and the problem within the materialized view process is disappeared. I suppose that my first original databases were degraded, but I don't know where.
    (*) of course, I could do that because I use Oracle in an academy institution, not for production, thank God
    Anyway, for now I will give up here. Thanks for your help.
    Regards,

  • Issue updating the viewer version from V20 to V23

    Hello!
    Our team is having an issue figuring out how to update our viewer version of our multi-issue iPad magazine. All of our issues so far have been on the Viewer Version 20, and are now wanting to use Viewer Version 23... except we can't figure out how to do it! We have the latest version of Folio Builder in InDesign CS5.5... so that can't be it? When going to create a new folio in the panel, our options are only 20, and 21... why isn't it showing 22 or 23? Is this a simple problem to fix? Have been searching the discussion boards to find an answer, but can't seem to find one.
    Thanks for your help!

    Thanks for your replies guys, I had tried both your recommendations earlier but unfortunately it's not letting me select anything later than V21... so does this mean it would be an App Builder problem?

  • Update Power View reports properties using custom code

    Is there any way to update power view reports uploaded in SharePoint 2013 shared data source link using custom code?
    Best Regards,
    Sameer Salunke
    MCTS-Please remember to click "Mark As Answer" if a post solves your problem or "Vote As Helpful" if it was useful.

    Someone out here must have an answer????   I know that SharePoint 2013 saves the view created in Power View therefore the metadata must be accessible somehow?  Can someone explain
    how to find that metadata in the SQL tables maybe?  I would be surprised to find out I am the only one who needs this?
    Ken Craig

  • How do you use PL/SQL to update a view?

    Hi there, I know how to use SQL to create and update a view. I am using it to pull data for a specific date.
    But now I want to find a way to parametized it (ie. the date) so that it can be run like a program each day (based on system date) to pull the latest data. I am thinking of using PL/SQL but not sure how it can be done.
    DECLARE
    run_date DATE := '10/12/2009';
    BEGIN
    END
    Can someone shed some light on how I can update a view? Thanks alot.

    Try this
    DECLARE
    run_date DATE := '10/12/2009';
    BEGIN
    execute imeediate 'create view view_name as select * from dual';
    END

  • Asynchronous update and View customization

    Hello!
    I faced with an issue: I have a custom view of the some list with about 9 columns with long header title. For best viewing in properties of header cells we unchecked No Wrap option. And that view became looks good. After that we enabled Asynchronous update
    option with refresh interval, and after that action my view in browser was looking like I don`t unchecked No Wrap option. But when I open that view in SP Designer for editing it looks properly, instead browser.
    When I disable Asynchronous update my view became looks properly (with word wrapping in header cell). Can you advise to something to help me solving this issue.
    Thank You in advance!

    Hi,
    See you can develop reports of fetch it from standard transactions.
    Also for your info, you can fetch it from tables. Ir you run tables like VBRK, VBRP by entering revelant data you can find the previous as well as current sales data.
    For finding returns sales data, you need to pass the necessary return document type (returns memo etc) in the above said tables.
    Hope this helps you
    Regards,
    Dhananjay

  • Updatable materialized views.

    Hi ,
    I am using sqlplus.
    Please can anyone share a simple example to update a base table using a updatable materialized view.
    Thanks

    usera :- Contains the base table tab1.
    userb:- Contains the materialized view
    materialized view create query in userb:-
    CREATE MATERIALIZED VIEW MV_UPDATETAB1
    REFRESH on demand
    FOR UPDATE
    AS
    SELECT * FROM  USERA.TAB1
    MView created.
    Tab1 has 4 rows existing.
    I added one more row to the mview.
    select * from mview shows 5 rows. (base table 4 rows)
    Then I refreshed the mview :-
    exec DBMS_MVIEW.REFRESH('mv_updatetab1','c')
    successfully executed.
    Base table still has 4 rows.
    The mview alos has 4 rows and the newly added is not present in the table and mview either.
    Any thoughts and suggestions

  • Oracle Streams vs. Updatable Materialized View

    Does anyone have an idea in which cases Oracle Streams is better than Updatable MV or visa verse?

    Are you really talking about Updatable Materialized Views? Or multi-master replication? Personally, I'm rather hard-pressed to come up with a situation where updatable materialized views would be useful unless you're taking the next step and doing multi-master replication.
    In general, Streams is going to put less load on the source system than materialized views and is going to replicate data more quickly. The downside tends to be that it's a relatively new technology, so it's not appropriate for environments that have older versions of Oracle. Going along with that, you'll find a lot more people/ organizations/ setups using materialized views than Streams, which can be a good thing if you need to hire new staff/ get support from a local user group/ etc. Streams also tends to be more flexible, which can be a good thing, but also tends to make things a bit more complicated.
    If you can outline the particular problem you're trying to solve, we can probably be a lot more specific...
    Justin

  • Updatable View issues:  cannot select FOR UPDATE from view with DI

    Hi All,
    I have a simple view XY and an instead of trigger on that to insert data into one table which is used in the my view. When I do insert statement on view XY it is working fine from sql but when i used same thing with page process of " Process Row of XY Automatic Row Processing (DML) " i am getting following error. I am using APEX 3.0 . Please help me.
    ORA-20001: Error in DML: p_rowid=xxxx, p_alt_rowid=abc, p_rowid2=, p_alt_rowid2=. ORA-02014: cannot select FOR UPDATE from view with DISTINCT, GROUP BY, etc.
    Thanks

    James,
    are you already on 3.0.1.00.07 or 3.0.1.00.08? Have a look at the release notes, it says something about a bug fix for some occurrences of ORA-02014.
    Also have a look at the new substitution value/item FSP_DML_LOCK_ROW which turns locking off if you set it to FALSE. See http://www.oracle.com/technology/products/database/application_express/html/3.0.1_readme.html#CHDIDIAF and also http://download-west.oracle.com/docs/cd/B32472_01/doc/appdev.300/b32471/advnc.htm#BCGFDAIJ
    Patrick
    My APEX Blog: http://inside-apex.blogspot.com
    The ApexLib Framework: http://apexlib.sourceforge.net
    The APEX Builder Plugin: http://apexplugin.sourceforge.net/ New!

  • UPDATING OSX MOUNTAIN LION ADOBE VIEWER. recently received e-bill statement. could not view. site recommended updating adobe viewer. as this feature comes OEM from Apple, how is this accomplished?

    UPDATING OSX MOUNTAIN LION ADOBE VIEWER. recently received e-bill statement. could not view. site recommended updating adobe viewer. as this feature comes OEM from Apple, how is this accomplished? Note, this was an online view for the PDF document.

    Thanks for your help.  Final question. So I am assuming that PDF funcitonality is accomplished via Preview.  I assume then that the PDF creation in Mail is also similarly accomplished, that is not via an Adobe product, but equivalent funcitonality. I see now that I can download Adobe. But, does the Apple PDF equivlant provide updates to keep up witht the new encoding structures released by Adobe, so that I can only update the Apple equivalent, or is this not practical because Apple would be chasing Adobe for software updates?

  • Triggers are gone when updates the view they are on?

    I found that when I updated a view, all the triggers on this view were dropped.
    Is this supposed to be or I did something wrong?

    To answer the second part of your question, triggers on tables are not dropped if you modify the tables, unlike when you modify views. However, if you modify the table in such a way that it invalidates the trigger, the trigger becomes invalid, but not dropped. Please see the example below.
    scott@ORA92> create table test_tab
      2    (col1 number)
      3  /
    Table created.
    scott@ORA92> create sequence test_seq
      2  /
    Sequence created.
    scott@ORA92> create or replace trigger test_trig
      2    before insert on test_tab
      3    for each row
      4  begin
      5    select test_seq.nextval into :new.col1 from dual;
      6  end test_trig;
      7  /
    Trigger created.
    scott@ORA92> show errors
    No errors.
    scott@ORA92> insert into test_tab values (null)
      2  /
    1 row created.
    scott@ORA92> select * from test_tab
      2  /
          COL1
             1
    scott@ORA92> commit
      2  /
    Commit complete.
    scott@ORA92> alter table test_tab add col2 number
      2  /
    Table altered.
    scott@ORA92> insert into test_tab (col2) values (10)
      2  /
    1 row created.
    scott@ORA92> select * from test_tab
      2  /
          COL1       COL2
             1
             2         10
    scott@ORA92> commit
      2  /
    Commit complete.
    scott@ORA92> select status from user_triggers where trigger_name = 'TEST_TRIG'
      2  /
    STATUS
    ENABLED
    scott@ORA92> select status from user_objects where object_name = 'TEST_TRIG'
      2  /
    STATUS
    VALID
    scott@ORA92> alter table test_tab drop column col1
      2  /
    Table altered.
    scott@ORA92> select status from user_triggers where trigger_name = 'TEST_TRIG'
      2  /
    STATUS
    ENABLED
    scott@ORA92> select status from user_objects where object_name = 'TEST_TRIG'
      2  /
    STATUS
    INVALID
    scott@ORA92> insert into test_tab (col2) values (20)
      2  /
    insert into test_tab (col2) values (20)
    ERROR at line 1:
    ORA-04098: trigger 'SCOTT.TEST_TRIG' is invalid and failed re-validation
    scott@ORA92> select * from test_tab
      2  /
          COL2
            10

Maybe you are looking for

  • Email and Contact Issues

    My emails are not coming through to my phone unless I manually refresh. I have three accounts setup (Yahoo! and 2 school email accounts). Both school accounts, when I sign on from a computer says something about Outlook: one says Mircosoft outlook an

  • Date Data Type in Oracle

    Hi, My SQL Query is: select RECORD_CREATED_DATE FROM ITEM_DETAIL WHERE BARCODE = '09010001638001'; This gives me the result: 29-APR-08 How do I retrieve date with complete year. Is there some conversion done by Oracle when I do the select or this is

  • Returnable Packaging for PO

    Dear Expert, I've a scenario whereby the MM consultant try to push the SD consultant for the scenario below: - There is FOC returnable packaging (wooden pallet) for PO to ship back the these to the supplier in oversea - These wooden packaging will be

  • RFC  and connections test

    Hi all We need to test some data loads for RFC  and connection settings . How do we go about it ? Thanks all

  • Can't save Flash files to server or NAS

    We bought a new iMac yesterday and unfortunately it ships with Mavericks. With Mavericks installed, i am no longer able to (resave) any Adobe Flash files (.fla) to any of our servers or local storage devices. When saving the file the first time all s