Problem with creating "updatable" view. Any ideas?

Hello to nice people!
I'm trying to create plain, simple updatable view such as:
CREATE OR REPLACE VIEW v_admin_maint
(from_addrs,mail_invoice_addrs,auth_off,location_cd) AS SELECT
A.from_addrs, A.mail_invoice_addrs, A.auth_off,
A.location_cd FROM admin_maint A, sysusers B WHERE A.location_cd
= B.location_cd and B.user_id = USER;
TABLE admin_maint
from_addrs,
mail_invoice_addrs,
auth_off,
location_cd (PRIMARY KEY)
TABLE sysusers
USER_ID (PRIMARY KEY)
FIRST_NAME
LAST_NAME
LOCATION_CD
View works great as view-only, but I got an error on update
statement "ORA-01779: cannot modify a column which maps to a non
key-preserved table".
UPDATE v_admin_maint SET from_addrs = 'test' where location_cd
= 'HOME';
TABLE admin_maint does have PK and this column included into
VIEW.
Any ideas? Please advice.

You need to create a unique index on the location_cd column of
the sysusers table, then re-create your view:
SQL> ALTER TABLE sysusers
  2  ADD CONSTRAINT sysusers_location_cd_uk
  3  UNIQUE (location_cd)
  4  /
Table altered.
SQL> CREATE OR REPLACE VIEW v_admin_maint
  2    (from_addrs,
  3     mail_invoice_addrs,
  4     auth_off,
  5     location_cd)
  6  AS
  7  SELECT A.from_addrs,
  8         A.mail_invoice_addrs,
  9         A.auth_off,
10         A.location_cd
11  FROM   admin_maint A,
12         sysusers B
13  WHERE  A.location_cd = B.location_cd
14  and    B.user_id = USER
15  /
View created.
SQL> SELECT      column_name,
  2              updatable
  3  FROM        user_updatable_columns
  4  WHERE       table_name = 'V_ADMIN_MAINT'
  5  /
COLUMN_NAME                    UPD
FROM_ADDRS                     YES
MAIL_INVOICE_ADDRS             YES
AUTH_OFF                       YES
LOCATION_CD                    YES
SQL> UPDATE v_admin_maint
  2  SET    from_addrs = 'test'
  3  where  location_cd = 'HOME'
  4  /
1 row updated.

Similar Messages

  • TS3899 I just installed the latest software update on my iPhone this weekend (9/22/12), and now I can't get email. I've restarted and closed all my apps to no avail. I'm able to get email on my laptop, so it's not a problem with my provider. Any ideas?

    I just installed the latest software update on my iPhone this weekend (9/22/12), and now I can't get email. I've restarted and closed all my apps to no avail. I'm able to get email on my laptop, so it's not a problem with my provider. Any ideas?

    Originally we were getting the error that the phone could not connect. Then, after deleting the account multiple times and re-adding it again, the error message CHANGED to having to log in to Yahoo and authorize.
    When we went to Yahoo in a regular browser and logged in there was an alert telling us about connection attempts so it disabled mobile/iphone connectivity. It required that we change our password FIRST.
    Then, we went in to Manage Apps and Webpages and saw that iPhone was not there but Facebook was.
    After all of this went back to the phone and deleted then re-added the account again and SUCCESS!
    It now also shows up on the Yahoo Manage Apps and Webpages.
    Hope this helps someone else. Please consider giving me points if it does or like the post.
    Fred

  • Oxc000007b problem with audition cc download-any ideas?

    Hi, had the same problem when downloading Lightroom 5 from the creative cloud desktop - dll package for lightroom solved the problem here.
    I am on Windows 7 Ultimate 64 bit.
    (I uninstalled audition cc and installed it again with the same result)
    Thanks for your help
    Best Bee

    SteveG, thanks for the link again. I tried before to extract both (msvcr80.dll and msvcr100.dll)  to audition cc like I did with the lightroom 5 problem and I failed.
    This time I only extracted msvcr100.dll to audition cc and it worked!
    Thanks for your encouragement . . .
    Best, Bee
    Date: Sat, 8 Feb 2014 15:58:27 -0800
    From: [email protected]
    To: [email protected]
    Subject: Oxc000007b problem with audition cc download-any ideas?
        Re: Oxc000007b problem with audition cc download-any ideas?
        created by SteveG(AudioMasters) in Audition CS5.5, CS6 & CC - View the full discussion
    Well it's those .dlls that are the only reason that I'm aware of for this failing. Can I suggest downloading and installing them again? I presume that it's the information in this thread that you are referring to?
         Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/6101356#6101356
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/6101356#6101356
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/6101356#6101356. In the Actions box on the right, click the Stop Email Notifications link.
               Start a new discussion in Audition CS5.5, CS6 & CC at Adobe Community
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

  • I just bought an iphone4 and is connected to my wifi at home but I can't bring anything up in the app store, itunes, etc. My husband has a droid 2 and he has no problems with the wifi? Any ideas?

    I just bought an iphone4 and is connected to my wifi at home but I can't bring anything up in the app store, itunes, etc. My husband has a droid 2 and he has no problems with the wifi? Any ideas?

    If you look at the top left of your screen you will either see a 3G (or 4G if you have AT&T) or you will see the wi-fi symbol.  If you don't see the wi-fi symbol you are connecting to Gmail through your cellular data plan, not via wi-fi.
    To answer your question, it doesn't happen often but when it does the steps I mentioned above will normally resolve it.  Hopefully you won't have any further problem with this.

  • Problems with My Bt Website- any ideas?

    Hi
    I have been unable to access My Bt broadband usage monitor since Feb 2012. I gave up trying to get help with this as I don't expect to go over. However, I had an email telling me that I'd used 32gb out of 40gb. I was still ok for my 40gb limit last month, but would like to be able to access my BT usage monitor now that they say i'm getting close to going near the limit for the first time.
    It seems that the MY Bt part of the Bt website is worse than ever. I've tried loads of browsers and different computers, but the usage monitor still has red letters warning me that it is undergoing maintenance. Well that's been over a year now. Also, the navigation is not working, I have blank white pages in the middle with no info and a page can't be displayed error message. I know I'm online and logged in as I can view my phone bill and latest phone usage.
    Which department should I try? I've spoken to Uk based customer service broadband department and India call centre and live chat but they say they don't deal with the website. What should I try?
    Any ideas?- thanks.

    Lyn2000 wrote:
    Thanks. I used the link and logged in but still received the message:
    The usage monitor is currently undergoing maintenance. Please try again later.
    That link seems to be the one that works for most people, but there are some more suggestions at Section 14 here (© Andy_N). It's certainly about time this was fixed especially given that it's the only way BT offer to check on usage they might charge for.
    You can click the white star next to this message if you think it was helpful.

  • I can't access hotmail or gmail. I get the message "unable to connect to the server". However I can access both msn and google main page and not problems with other sites. Any ideas of what to do?

    Cannot access hotmail or gmail, although no problems with the actual msn home page or other sites. I get the message: Firefox can't establish a connection to the server at .....
    == URL of affected sites ==
    http://login.live.com; http://www.google.com

    Hi thanks for reply.
    No, not that I'm aware. How/Where can I check this?
    The only think I've done recently is install a different antivirus program and uninstall the old one which had expired. Not sure if this is linked to the problem...?

  • Runnung on UBUNTU. Cannot open files hosted by Imagebam. Only started recently. No problems in the past. Contacted Imagebam. They reviewed Linux diagnostic results and think it's a problem with the browser. Any ideas?? Thanks.

    All attempts to open thumbnail images hosted by Imagebam are unsuccessful. Imagebam provided me with some diagnostic commands. I ran them and sent the results back to them. They said the results looked okay and that it was probably a browser issue. I have no trouble with any other file hosts and this problem only surfaced in the last few days. Hoping someone can help. Thanks.

    All attempts to open thumbnail images hosted by Imagebam are unsuccessful. Imagebam provided me with some diagnostic commands. I ran them and sent the results back to them. They said the results looked okay and that it was probably a browser issue. I have no trouble with any other file hosts and this problem only surfaced in the last few days. Hoping someone can help. Thanks.

  • Problem with creating new view and binding it wht existing ViewSet/viewArea

    Hi All,
    I created a new view.
    Now I am trying to dynamically change the veiw in ViewArea : product of ViewSet : BupaMainViewSet .
    I added my new view in the views for viewarea : "product".
    Now I wanted to get this new view based on some button clicks on view BupaSearchB2B.
    If search Account button is clicked my new View has to appeared. Othewise the standard view in the Product view area shud appear.
    I dont know how to do.
    Your response will be highly appreciated with your reward points.
    kindly assist me on this.
    Thanks,
    SR.

    Hi,
    You can find detailed information at the following link:
    <a href="https://portal.wdf.sap.corphttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/go/km/docs/corporate_portal/ws%20service%20%26%20support/product%20support/workspace_public/product%20support%20knowledge%20base/crm/crm-ic/crm-ic/icwc_cbk_crm50_290306.pdf">https://portal.wdf.sap.corphttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/go/km/docs/corporate_portal/ws%20service%20%26%20support/product%20support/workspace_public/product%20support%20knowledge%20base/crm/crm-ic/crm-ic/icwc_cbk_crm50_290306.pdf</a>
    Please reward points if helpful
    Best regards
    Reyes

  • Problem with my ipod. Any ideas?

    ive had my ipod nano for just over a year and up and untill recently it was working satisfactory and serving its purpose well. However two days ago for no reason what so ever the screen has stopped working properly. Its as if its had a stroke or something. Only the top half of the screen works and even that isn't to good in quality. On the bottom half it remains completly blank. The music and stuff still works perfectly fine however. Its annoying as basically i have just had it over the year and im not sure if im covered by a warrenty. Im also pretty annoyed as for once i haven't been responsable for breaking something which has stopped working and this problem is clearly manufactural. Just wondering if any of u guys know if there is anything i can try to get it working? thanks.

    Do a reset of everything on your ipod. Then reconnect it and it should work.

  • ITunes 7.0.1 Did not fix the problem with registering modules. Any ideas? T

    Dell desktop   Windows XP Pro  

    I have reported this problem several times and no word back from Apple. Don't they monitor these boards or are they too arogant for this?
    what a silly boy you are, jimpiatt. did you try reading the help and terms of use? we're a user to user troubleshooting forum:
    What is Apple Discussions?
    you've also chosen to rant about a problem that Apple Hosts are actively soliciting information about. in this very forum. here's a set of search results on that:
    Apple looking for info on registering modules
    speaking of searching, did you actually search on "registering modules"? that way you can keep up to date with progress is also being made by your fellow users on troubleshooting the hang:
    a search on "registering modules" at the iTunes for Windows forums

  • Problem with jsp:include ..any ideas ?

    Hi,
    I have the following code in a recordfollowup.jsp,
    <jsp:include page="contacthistory.jsp" flush="true">
    <jsp:param name="packet" value="<%=somevalue%>"/>
    </jsp:include>
    I get this exception "recordfollowup.jsp(364,0) "Unterminated
    I tried using the end tag /> and then I was able to include the contacthistory.jsp but I need to get the additional param sent to the contacthistory.jsp so this will not do...
    please help me with suggestions/sample code .....
    thanks a lot !

    Sounds to me like the variable someValue contains a quote (").
    You could try putting it into the pageContext and getting it out in the included page. Or if that doesn't work, try the session.
    // using pageContext
    <%
    pageContext.setAttribute("someValue", someValue);
    %>
    <jsp:include page="contacthistory.jsp" flush="true"/>
    then in contacthistory.jsp
    <%
    String value = (String)pageContext.getAttribute("someValue");
    // swap 'pageContext' with 'session' to use the session
    %>

  • Problems with auto update

    I just bought a new 60GB ipod video. When I connected to itunes on my pc, it started the automatic upload, but experienced an error after about 4,000 of the 6,000 songs in the library. It said "unknown error (Type 69)." After reading other posts, where people suggested reloading itunes, I tried the various remedies, but eventually returned the ipod to Best Buy and got a new one.
    When I brought it home the new one did the same thing, at almost the exact same spot. I noticed that a few songs in my itunes could not find the files that went with them, so I tried to purge those files. When I reconnected the ipod, it synced another 200 songs and then experienced the error again.
    So I know it isn't a problem with the ipod. Any ideas?

    hi joshm!
    just checking. have you seen this article yet? (it sounds like you've already tried a number of things from it, but i'll throw it in the mix, just in case.)
    iTunes displays a -69 error when syncing iPod
    love, b

  • Mac user, OSX 10.9.4. CS6, in the new Blur gallery the pin with adjusters does not appear for any of the three blur filters. This may have occurred since taking adobe watermark add-on and updating Bridge. any ideas?

    Mac user, OSX 10.9.4. CS6, in the new Blur gallery the pin with adjusters does not appear for any of the three blur filters. This may have occurred since taking adobe watermark add-on and updating Bridge. any ideas?

    I am using Mac OSX 10.10.1 (memory 8 GB 1600 MHz DDR3, graphics Nvidia GeForce GT 650M 1024 MB)
    and my version of Photoshop is CC.
    I ran into  the same problem: I am able to place and view Blur Gallery pins but the adjustment wheel or outer control arounf the pin that allows you to tweak the blur value disappeared after being initially available. Additionally, the placed pin or pins appear to flicker on screen (while in blur gallery mode) until committing the change with the OK button. I have tried restarting both the computer and Photoshop, as well as what some other users have suggested such as View>Show>Edit pins turned on. Nothing has helped so far. I am still able to adjust the blur amount  from the Blur Tools slider. thank you.

  • I have tried to update my iPod Touch 4G to the latest update. After the 4 hours an error message appears saying iTunes had lost connection even when I am fully connected to the internet. I have repeated the update 4 times now with not luck. Any ideas?

    I have tried to update my iPod Touch 4G to the latest update, I currently have iOS 4.1. After the 4 hours an error message appears saying iTunes had lost connection even when I am fully connected to the internet. I have repeated the update 4 times now with not luck. Any ideas?
    Thanks in advance
    Adam

    If you get a network timed out error, try disabling the security software on the computer during the download and install.
    You can also try a direct download andinstall by:
    iPod, iPhone and iPad Firmware Download
    Nera the top of the page aretheinstructions for selecing the download for the install.

  • After updating iTunes to 11.0.1.12 and updating Apple TV to 5.1.1 my Apple TV is no longer picking up my photo library. It just keeps saying "loading library" but never brings the pictures up. This didn't happen with previous versions. Any ideas?

    After updating iTunes to 11.0.1.12 and updating Apple TV to 5.1.1 my Apple TV is no longer picking up my photo library. It just keeps saying "loading library" but never brings the pictures up. It also tells me that home sharing isn't on even though it is and then I have to turn it off and on on the PC so the Apple TV even recognizes the photo library. These issues didn't happen with previous versions. Any ideas?

    Update on my previous comment. I have solved my issue. Issue was with Windows 7 firewall not operating correctly. I was unable to add itunes to the 'Allow programs to communicate through windows firewall'. Found the following page useful http://answers.microsoft.com/en-us/windows/forum/windows_7-security/windows-fire wall-cant-change-some-of-your-settings/514d78fb-39e9-47b1-b561-bc49cbdad904
    Followed the instructions to the foot of the page, restarted PC, normal service resumed on windows firewall, added itunes to list to communicate through firewall. restarted itunes, restarted appletv, success!!!
    Hope this may help somone else.

Maybe you are looking for

  • Blue Screen of Death when connecting ipod

    Ever since the 2.0 update, when I try and connect my ipod about 50% of the time i get the BSOD. What the heck is going on? Is it another 2.0 bug?

  • Mass uploading of Documents with ABAP

    Hello, i have to write an ABAP-Program, to automatically mass-upload documents to cFolders. I have the FUBA CFX_API_DOC_CREATE where i can create document-hulls. Now i think i have to use CFX_API_DOC_DOCUMENT_WRITE to upload the content. The FUBA nee

  • Can I see the budget of unread emails on ipad and iphone before update?

    Hello everyone. I would like to know if I can see the budget of my unread e-mails on ipad and iphone before update. That is, I turn on my ipad or iphone and see immediately if and how many unread messages I have. Thank you!

  • ITunes won't add or import new files

    I am running mountain lion 10.8.2 and my system is fully updated.I have my itunes library on an external drive but I am unable to add new files to iTunes.  I have tried dragging and dropping and the plus appears and when I release the files I get the

  • "/var/spool/postfix/maildrop" Missing After Time Machine Restore

    Hello, After performing a full restore via Time Machine, the following error message appears constantly in my console: 3/8/08 9:48:00 PM com.apple.launchd[1] (org.postfix.master) Failed to count the number of files in "/var/spool/postfix/maildrop": N