TRIGGER a view for keeping automatically ip connection

Hi to all,
i've founded that this query give you the ip of current machine:
select sys_context('userenv','ip_address') from dual;
But this is not my purpose or better: the best solution i see for my need would be to trigger an internal table inserting the log in and log out to the system.
Is there a way to trigger sys_context for expample.
Is that possible?
I think no, however maybe there's some interesting trick: thanks a lot.
Not interested in a control at application level.
Thanx a lot

HI Colin,
Ok i can use this function, but can i call it outside an application (apex) or better, can it be triggered?
My purpose was to know if there's a table/view where i can create a trigger to store ip on a 'real table' (or better a table not from FLOWS_020100...), but in a user workspace table.
Other related question is: can FLOWS_020100 access other workspace table?
If yes how can i achieve this?
I think i will look into create a trigger on some flow_020100 table of my interest and then using the update event to send an email when my condition is reached.
Thanks a lot
Message was edited by:
Marcello Nocito

Similar Messages

  • INSTEAD of Trigger View for an Oracle EBS New form development

    Hello,
    I am developing a new EBS form based on a database view.
    This form is an EBS form will run in an 11.5.10.2 environment and developed using 6i.
    The form has one data block that is based on the view. The view is joined and based on following tables.
    Hz_Parties Hp,
    Hz_Cust_Accounts
    Hz_Cust_Acct_Sites_All
    Hz_Party_Sites
    Hz_Locations
    Ra_Salesreps_All
    Hz_Cust_Site_Uses_All
    Ar_Vat_Tax_All
    xx_custom_table t
    The view is inherently not updatable. Therefore, I am thinking to write an INSTEAD OF trigger on the view. The question. The form which is based on the view is require to update Oracle EBS tables mentioned above. As you know, there are APIs available to update above tables.
    Typically, you would write API in a program unit in the form and call from triggers. But here the form is based on the view. And to support DMLs on the view, I HAVE TO write INSTEAD of trigger(or that is the only way i know) so the question is:
    1. Do I write these APIs under INSTEAD of triggers?
    2. Or, I write these API in the form triggers and write DML referencing OLD and NEW values in INSTEAD of trigger? Where, these OLD and NEW values will refer on above tables.
    Please advise.
    And lastly, Do I have to write an INSTEAD of trigger? The USER_UPDATEABLE_COLUMNS view for this table shows no columns are updateable at the moment
    Thanks,
    A

    As you know, there are APIs available to update above tables.No, I don't B-) You'd better ask this in the eBusiness Suite form, as this is very EBS, not Forms, specific.
    In general, I would say that in this case you can use the EBS API's in the instead of trigger, not in the form.
    Or you can base the form on stored procedures, not directly on the view.

  • I use BT Yahoo! but when I try and navigate to email from the home page it keeps jumping between 'connected and waiting for login' and never loads up.

    My internet service provider is BT in the UK. The home page is www.btinternet.com. After I've logged on, the home page displays fine - I can see the summary of my emails in one of the windows on the home page. The problem comes when I click on the mail application. The page then tries to load the email application. However, it never actually loads, it keeps jumping between connected and waiting for login. It never achieves it so I just have to click the 'back' button to get to the home page. I use chrome and ie but neither has this problem.

    I retraced my steps to how i got the Google app:
    App Store icon on Home Screen > Search, at bottom > entered Google
    The first Google App on the screen appears:
    Google logo small g in blue square: Google Search; Open (because it is already installed).  Below that is a picture of the iPod with the usual  Google Search screen.  I have never inserted a link into a discussion group so i hope you can open this. 
    http://https://itunes.apple.com/us/app/google-search/id284815942?mt=8
    Does this bring us any closer? 

  • The HP (USB connected) and Epson (wireless) printers keep losing their connection with my Mac mini.  I have to physically disconnect the HP and then reconnect for the Mac to find it.  Turning off the wireless Epson doesn't work.  All software is updated.

    My HP (USB connected) and Epson (wireless) printers keep losing their connection with my Mac mini.  I have to physically disconnect the HP and then reconnect for the Mac to find it.  Turning off the wireless Epson doesn't resolve anything.  All software/drivers have been updated.

    My HP (USB connected) and Epson (wireless) printers keep losing their connection with my Mac mini.  I have to physically disconnect the HP and then reconnect for the Mac to find it.  Turning off the wireless Epson doesn't resolve anything.  All software/drivers have been updated.

  • Is there any problem for my iphone's battery to keep my charger connecting for few hours after the battery is full?

    s there any problem for my iphone's battery to keep my charger connecting for few hours after the battery is full?
    Sometimes i sleep and the my iphone is charging and of course the battery became full after two or three hours, and definitely i will not wake up in the midnight to just disconnect the charger, please i need your help.

    This is considered normal use. I think everybody does this, including myself. It's not something to worry about in the least bit.
    Just remember to complete a full charge cycle (allow the phone's battery to discharge to 10%-20%, then charge uninterruped to 100%) once a month and you'll be fine.
    http://www.apple.com/batteries/iphone.html

  • Custom dashboard view for multiple connected management groups

    Hi all,
    I've connected 2 scom management groups and I'm able to see the connected alerts in the alert views.
    Is it also possible to show those connected alerts in a dashboard view ? Because the Show Connected Alerts - button is not availble in dashboards views. Is it possible to filter on mgmt group in dashboard views ?
    Kind Regards,
    J. M.

    It is possible, but not without customization. Also, as Alexis mentioned, you could populate a custom field with management group information. It's overkill to use SCORCH just for this, as this could be achieved with much less effort using the command
    channel and a relatively simply powershell script...
    Jonathan Almquist | SCOMskills, LLC (http://scomskills.com)

  • I keep getting network connections error when downloading update for iPhone 4. Any suggestions?

    I keep getting network connections error when downloading update for iPhone 4. Any suggestions?

    I think I solved the problem by initiating the update in a different way, from the itunes panel where I can click to start the update, instead of saying yes when asked if I want to update when itunes launches in response to the iphone being plugged into the computer.

  • Just got an iMac. I am trying to use Migration Assistant. The Mac side seems to be doing it's job, but my PC just keeps "Waiting for the Mac to connect." For over an hour.

    Just got an iMac. I am trying to use Migration Assistant. The Mac side seems to be doing it's job, but my PC just keeps "Waiting for the Mac to connect." For over an hour.

    Probably a PC issue, you can try calling AppleCare, you are covered for 90 days from the date of purchase and can find the phone number in the owners manual. Also please look over:
    http://drtyhnds.blogspot.com/2011/08/how-to-use-migration-assistant-from-pc.html
    and
    http://pondini.org/OSX/SetupLion.html
    Thomas,
    It would also be extremely helpful to those trying to help you if you complted your Profile so we at least know what iMac and version of OS X is installed. Click Your Stuff in the upper right then click Profile and complete the necessary fields including what part of the planet you're located.

  • TS1398 I try to open my email but I keep getting cannot connect to server can some please help or should I go to apple store for help?

    I'm trying to open my email but I keep getting cannot connect to server! Can someone help me or should I just go to an apple store?

    Try This...
    Close All Open Apps... Sign Out of your Account... Perform a Reset... Try again...
    Reset  ( No Data will be Lost )
    Press and Hold the Sleep/Wake Button and the Home Button at the Same Time...
    Wait for the Apple logo to Appear...
    Usually takes about 15 - 20 Seconds... (But can take Longer..)
    Release the Buttons...
    More >  http://www.apple.com/support/ipad/mail/

  • Bluetooth keeps automatically connecting even afte...

    does anyone know the name of the process/service that runs which tries to keep automatically connecting to my phone even when I completely close down Nokia Pc Suite?
    I'm using the latest version, 7.1 believe
    Thanks

    Yes that is correct, I close down all icons/programs to do with PC Suite, and it still tries to connect
    I manually disconnect from within my phone's menu, and it still forces the bluetooth connection shortly after
    It does not force this connection until I start PC Suite

  • Freeware utilities for keeping network connection alive?

    Hi, I am wondering if anyone has recommendations for a freeware utility that can keep the network connection alive on my 2010 mac mini.
    Already have sleep, screen saver, and password lock turned off.  Also using static IP.
    When it sits for a while I can no longer ping it from my PC workstation or use iTunes, VNC etc from my phone.
    When I open up the mac, which I am using as HTPC, it will connect right away to Google etc using Safari yet it has dropped the share connection to my PC.
    Thanks!  Sean

    Thanks for the report!

  • One solution for Apple TV losing connection to its iTunes Library

    In 2012 I bought an Apple TV3 to let me use the AirPlay features of my New iPad with my HD TV. All worked fine and still does. Later in 2012 I subscribed to Netflix and enjoyed streaming movies to my HD TV via the Apple TV. Having had such a good experience with it so far I bought another for our bedroom TV and another for a relative, hoping they would have the same great experience with it.
    Both of my Apple TV units at my house have worked flawlessly since installing them. We can start watching a Netflix movie downstairs then go upstairs and carry on where the movie left off.
    At my relative's house the experience was not so flawless and has resulted in about 2 months of frustration but happily their AppleTV3 is now also working as expected. It has been quite a journey to get to this point and had a surprising solution.
    I am the 'go-to' person in my family for these things so I installed the Apple TV for my relative.
    My relative has a Windows XP (SP3) PC running the latest iTunes (11.0.2), a BTHomeHub 2 router, connected by WiFi to the Apple TV. The PC was connected by ethernet cable to the router. I installed the Apple TV, set up the hdmi connection to the HD TV, connected it to the WiFi network, upgraded to the latest iTunes on the PC, added the Apple ID for Home Sharing to iTunes and the Apple TV and could connect to the iTunes library on the PC, all good so far. I could play video or music or podcast or view photos from the iTunes library on the PC but after a short time (a few minutes or so), if I tried to play a different video or music track the I would get the familiar spinning icon and the Apple TV would not play the media file. Often the Apple TV would still show the contents of the iTunes library but would not play anything from it. When it was in this state it was still possible to play iTunes Trailers or Purchased content or a Youtube video or display photos from my library. This proved it was still connected to the internet and to some extent my library on the PC because it could display photos.
    Initially I thought it was a WiFi problem as that was how the Apple TV was connected to the router. So as I already had a Powerline ethernet link running from the router to the TV for the Humax Freeview box for the BBC iPlayer, I ordered a small network switch to share the Powerline ethernet cable with the Apple TV. However the same drooping connection problems were apparent. I tried changing the QoS settings on the Powerline link, tried to prioritise TCP or UDP or both , but no improvement. I decided to abandon the Powerline link in case it was 'too slow', perhaps that was the issue.
    I tried one of the Apple TV units from my house, where they were working fine and I got the same problem, at my relative's house it behaved like their unit, it would connect play a movie (all the way through if we let it) but after a few minutes if trying to play something else it would not play anything further. I tried their Apple TV at my house and it worked there, so the unit was not at fault.
    At various times while troubleshooting these problems I have unistalled iTunes, reinstalled it, uninstalled Bonjour, reinstalled it (it comes with iTunes), searched the registry and cleaned it (Warning: do this at your own risk as you risk destabilising Windows), I have tried disabling my firewall on the PC and/or on the router, uninstalled the Antivirus / Firewall software (Norton) on the PC, I have added the Ports required for the Apple TV to my router and firewall software, I have read many, many forum posts about what has worked for other people and I tried them all in various combinations.
    I decided having tried the above that the problem must be the Windows PC, so I swapped it for a few days with a laptop, connected wirelessly to the router. I had an iTunes library on the laptop so I shared it with the Apple TV and stopped iTunes running on my relative's PC.  For a few days it actually worked, the Apple TV would play one movie/music track and I could select another and play it after a few minutes, a partial solution had been found except the laptop was needed elsewhere and I wanted the Windows PC to be the source for the iTunes library. I briefly considered suggesting they should buy a modern PC or Mac as their Windows PC was around 9 years old, may be that was the problem? This would have cost around £400+ and was out of the question. Fortunately I had a spare PC and I decided to swap it with the Windows PC, it was only a couple of years old and as such it must be 'better' I thought. Swapping one PC with another and transferring e-mails and documents etc. took quite a few hours but it was done. I uninstalled iTunes, reinstalled it and set up the home sharing again. This second Windows PC was running XP (SP3) and Norton 360 Firewall/Anitvirus software. I checked that after installing iTunes the Program rules in Norton were allowing the TCP and UDP communications expected by the Apple TV, I noted these were not specific ports but all TCP and all UDP communications were allowed. All of this met the recommendations that other posts had suggested. I tried it with the Apple TV but no, exactly the same problem, the iTunes library could not be found after a few minutes.
    I found that if I restarted the Apple TV it would connect and play a file (movie/music etc) but if I played an iTunes trailer or just waited a minute or so then it would lose the connection. Another symptom would be when I landed on the 'Compters' icon it would tell me to 'enable home sharing on the PC with this Apple ID' , which I had already done.
    If I tried playing via the Apple TV while selecting tracks from within iTunes on the PC, then sometimes the AirPlay icon was present or not present, sometimes worked and would then always not work until I restarted at least iTunes and the Apple TV, if not also the router or PC, whatever I tried it would not result in a connection between the Apple TV and the PC that would survive more than a few moniutes at a time.
    Having swapped the Windows PC hosting the iTunes library with another I swapped the Apple TV again with one from my house, again same behaviour. So this suggested the problem was the BTHomeHub router as that was the only bit of hardware not exchanged. I compared its settings with the same unit at my house, I tried forwarding ports, I tried chaging the security from the default 'WPA & WPA2' to WPA or WPA2, still no solution. I tried reducing the default WiFi connection protocol from 802b/g/n to 802/b/g. I tried variations of all the other possible settings that could be changed but in the end set them to match the ones at my house. Still no solution. I considered buying an Airport Extreme or similar to link that via an ethernet cable to the router and enable it to be the WiFi access point for the Apple TV. This would have cost around £80 similar to the cost of the Apple TV itself, so was also dismissed as an idea.
    I decided to restore the router to factory settings, this was done and I set up the WiFi connection again to the Apple TV, still no solution, same behaviour on the Apple TV. I decided it must be  a problem with the WiFi so I tried a direct ethernet cable trailed through the house from the router to the Apple TV to eliminate the WiFi involvement, that would have to be the answer, wouldn't it? No, same problem.
    I discovered some useful diagnostics along the way that are somewhat techie but worth persevering with as they could be useful for diagnosing what the problem could be. Find out on your router what the IP Address is for your computer that is hosting your iTunes library and the IP Address for your Apple TV. The IP address is essential for either device to connect with each other or the internet. The Apple TV IP address can be seen via Settings/General/Network, it has the form like '192.168.1.69'  and for the PC it was '192.168.1.80', the values don't have a particular significance but the last digits after the 3rd dot will be different for each device.
    On the PC (or Mac), open a Command (PC) or Terminal(Mac) prompt and try to 'ping' the Apple TV to see if you get a response
    e.g.
    c:\ping 192.168.1.69
    or
    c:\ping apple-tv
    You should get a response indicating the number of milliseconds it takes for the 'ping' to be returned to the PC from the Apple TV , this will show that the PC can connect to the Apple TV, if it does not get a response then you should check that the PC and Apple TV are connected to the same network (either wired or wifi). You must be able to get a successful ping for the connection between the PC and the Apple TV to work at all.
    Another diagnostic is to check the network status on the PC (or Mac)
    e.g.
    c:\netstat -an
    This will show all the current TCP/UDP connections and also the local and remote IP addresses and ports. Look for the IP address of the Apple TV in the third column, there will be many rows returned so just concentrate on the rows with the IP addressses of the PC and the Apple TV
    e.g.  look for rows like the following:
    TCP 192.169.1.80:3689  192.168.1.69:49123 ESTABLISHED
    UDP 192.168.1.80:5353  *.*
    UDP *.123                     *.*
    TCP Port 3689 is used by the Apple TV to communicate with iTunes for playing content. This connection is essential, there may be more than one 'established' connection to the remote Apple TV from the local PC.
    UDP Port 5353 is used by the Apple Bonjour service to send multicast communications between iTunes and any iOS devices on the same network, such as the Apple TV, again it is essential.
    Port 123 is used by Apple products to obtain the date and time, the UDP row above shows that any local IP Address can communicate with any remote IP address on the router's network and provide it with date and time information. 
    If your firewall software on the PC is blocking any of these ports then the 'netstat' command is useful to see if you need to unblock any. In my experience, this port unblocking was not necessary as when I installed iTunes, the Norton software automatically set up appropriate rules for the iTunes program, and opened the required TCP and UDP communications as iTunes needed.
    Likewise, on the router itself, I have the UPnP setting enabled and this allows software like iTunes and Bonjour to traverse the router's firewall without it being necesssary to explicitly set the ports to be forwarded.
    If I started the Apple TV, and ran the 'netstat -an' command over the next few minutes I could see the number of rows for the Apple TV diminish, and this was a symptom of the dropping connection problem.
    Ultimately having replaced the Apple TV with another 'working' one , swapped the PC, restored the router to factory defaults, disabled the Windows or Norton firewall, tried ethernet and WiFi connection between the router and Apple TV it struck me that the only component I had not  considered was the insignificant ethernet cable linking the PC to the router. This has been present since the router was installed for the original PC around 4 years ago. But surely this was how the original PC and the swapped in PC were getting to the internet quite normally and successfully? Also this was how the Apple TV was accessing the PC via WiFi then via the router through this ethernet cable, there was no way it could be the cable, cables don't allow a connection for a short time and then cause a timeout can they?. Thus, confused, and with all other avenues explored, I removed the cable between the PC and the router and enabled a WiFi connection from the PC to the router. After restarting the PC, Router and Apple TV, just to be sure, I tried the Apple TV again.
    I could play some music on the Apple TV from the iTunes library, I could play it for a minute or so and then go to movies and play a movie from the iTunes library. I tried to play an iTunes trailer, some YouTube videos, these worked as usual. I then went back to the library and yes, I could play another music track or another movie. I forced the Apple TV to 'sleep' via Settings/General/Sleep Now and tried again, I woke it up and could play any music or movie from the library. Elated, I went out for meal with the family, nervously hoping throughout the meal that the solution had been found. After a couple of hours we returned, woke up the Apple TV and yes, oh yes!, it would connect with the library and play a succession of music or videos without seeing any dropped connections. Several hours later I could wake up the Apple TV again and select any content from the iTunes library on the PC and play it, finally the unit is behaving as I would expect.
    This solution may not apply for all, but it worth following all of the components in the path between the Apple TV, router, computer (either PC or Mac) and the iTunes library and checking that each is able to commmunicate successfully and over a period of time reliably so that the Apple TV can perform as flawlessly as it is capable of. 
    Don't, as I did expect the solution to involve a complicated series of special settings of ports or communications protocol changes. Do perform a clean install of iTunes and keep it updated, do keep Firewall settings simple and let the settings be default settings, do rely on UPnP (Universal Plug and Play) on the router. Let the router select which channel it wants to use, it will select the channel with least interference...and check out that insignificant ethernet cable if you have one. It might work fine for general communications from the computer to router to the internet but it can be a source of connections dropping on the Apple TV!
    My relative is now a happy Apple TV user too.

    Useful to watch what is happening to the TCP/UDP connections when the Apple TV is connected to iTunes and when it is actually playing some media from iTunes and when it stops playing.
    To see this, use the Network Statistics command 'netstat' from a Command prompt (Windows PC) / Terminal Window (Mac):
    e.g. for Windows:
    c:\netstat -an 5
    This repeats the netstat command every 5 seconds, use Ctrl-C to quit the command. (Use 'netstat -h' for help with this command)
    While iTunes is running there will be a number of TCP records displayed for the computer's IP address using port 3689, showing at least 3 ports in use for the Apple TV's IP address.
    i.e.
    TCP host_ip:3689 apple_tv_ip:49187 ESTABLISHED
    TCP host_ip:3689 apple_tv_ip:49196 ESTABLISHED
    TCP host_ip:3689 apple_tv_ip:49255 ESTABLISHED
    When it is playing content there are more connections established, some of these rows will gradually disappear when the media file stops playing. These addional TCP records show iTunes using different ports from 3689, but only while media files are being played.
    When a video file is played, (on this Windows PC at least) the iTunes host is using ports 4463 and 4464, with the Apple TV using port 7000. When playing a music track or podcast, the iTunes host is using port 4472 or 4489 and the Apple TV is using port 5000.  
    When the media is playing, the fourth column returned by the 'netstat -an 5' command : 'State' shows as 'ESTABLISHED' and shortly after the media file is stopped playing it shows as 'TIME_WAIT' until the record disappears after a minute or so.

  • My dell inspiron 15r finds my iphone but it doesn't trigger the box for me to give the security number to tether

    When I connect my iPhone 4 to my Dell inspiron 15R the laptop recognises the phone as a personal hotspot but it does not trigger the box for me to input the code to allow tethering.  Why does this happen when my old iPhone 4 (which Apple have just replaced) did produce the box and tethering afterwards was automatic?
    Thanks in advance, Colin from Leicester, England.

    ME TOO.  NOW MY IPHONE 6 PLUS IS SAME LIKE YOU.
    iphone is diabled- connect to iTunes because i forget passcode.
    i cannot connect iTunes because it's always asking to enter passcode on iphone.
    So, i cannot make restore my iphone 6+. And then, I cann't erase "device" in icloud.
    My iphone is new. No icloud. didn't connect to itune backage.
    That's why I try to connect iTunes but it need to enter passcode.
    So, my iphone just keep "iphone is disbled-connect to iTunes".
    IPHONE 6 PLUS

  • How can I quickly view pdf files like I can do with Windows Picture and Fax viewer for jpg files?

    How can I quickly view pdf files like I can do with Windows Picture and Fax viewer for jpg files? I need to look at several thousand PDF files. It takes too long to open each one individually. The only thing I could think of is combining them into large groups and then using the Navigation index. But I like the way windows Picture and Fax Viewer does it because you can keep the files separate. Combining PDFs causes loss of individual file names. That would be a problem since I do need to have the individual file names.

    Windows Picture and Fax Viewer is a DLL and is started via a rundll32.exe call and can't be set as an application to handle images in Firefox 3 and later versions.
    Try to set Windows Picture and Fax Viewer as the default viewer in Windows, then it should be listed automatically in the Mozilla Firefox Browse dialog.
    *http://www.winhelponline.com/articles/115/1/Windows-Picture-and-Fax-Viewer-as-the-default-viewer-in-Mozilla-Firefox.html
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''

  • INSTEAD OF trigger on view to update a table. error in 4.2apex tabular rpt

    I have created a view (LANDINGS_VIEW') that I am hoping to use to add/modify data over several tables. I am using INSTEAD OF trigger to update/insert into the underlying tables. I am receiving the error:
    •ORA-01858: a non-numeric character was found where a numeric was expected ORA-06512: at "SAFIS.LANDINGS_V_IO_UPD_TRG", line 4 ORA-04088: error during execution of trigger 'SAFIS.LANDINGS_V_IO_UPD_TRG' (Row 1)I am only setting PRICE = 300.
    any thoughts? Am I setting this up propertly? thanks for your help!!
    Karen
    The LANDING_VIEW is set up as follows:
    -- Start of DDL Script for View SAFIS.LANDINGS_VIEW
    -- Generated 03-May-2013 10:25:38 from [email protected]
    CREATE OR REPLACE VIEW landings_view (
       landing_seq,
       dealer_rpt_id,
       unit_measure,
       reported_quantity,
       landed_pounds,
       dollars,
       disposition_code,
       grade_code,
       species_itis,
       market_code,
       price,
       area_fished,
       sub_area_fished,
       lease_num,
       gear_code,
       de,
       ue,
       dc,
       uc,
       local_area_code,
       fins_attached,
       explanation,
       late_report,
       modified_data,
       nature_of_sale,
       hms_area_code,
       sale_price,
       deleted )
    AS
    select l.LANDING_SEQ,
           l.DEALER_RPT_ID,
           l.UNIT_MEASURE,
           l.REPORTED_QUANTITY,
           l.LANDED_POUNDS,
           l.DOLLARS,
           l.DISPOSITION_CODE,
           l.GRADE_CODE,
           l.SPECIES_ITIS,
           l.MARKET_CODE,
           l.PRICE,
           l.AREA_FISHED,
           l.SUB_AREA_FISHED,
           l.LEASE_NUM,
           l.GEAR_CODE,
           l.DE,
           l.UE,
           l.DC,
           l.UC,
           l.LOCAL_AREA_CODE,
           a.fins_attached,
           a.explanation,
           a.late_report,
           a.modified_data,
           a.nature_of_sale,
           a.hms_area_code,
           a.sale_price,
           a.deleted
      from landings l,
           landings_hms a
      where  l.dealer_rpt_id = v('P110_DEALER_RPT_ID') and
            l.dealer_rpt_id = a.dealer_rpt_id(+) and
            l.landing_seq = a.landing_seq(+)
    -- Triggers for LANDINGS_VIEW
    CREATE OR REPLACE TRIGGER landings_v_io_upd_trg
    INSTEAD OF
      UPDATE
    ON landings_view
    REFERENCING NEW AS NEW OLD AS OLD
    DECLARE
       v_first_day   date;
       BEGIN
    update landings set landing_seq = :old.landing_seq,
                              dealer_rpt_id = :old.dealer_rpt_id,
                              unit_measure = :new.unit_measure,
                              reported_quantity = :new.reported_quantity,  
                            --  landed_pounds = :new.landed_pounds,
                              dollars = :new.dollars,
                              disposition_code= :new.disposition_code, 
                              grade_code = :new.grade_code,
                              species_itis =  :new.species_itis,
                               market_code = :new.market_code,
                              price =  :new.price,
                              area_fished = :new.area_fished,
                              sub_area_fished = :new.sub_area_fished,
                           --   lease_num = :new.lease_num,
                              gear_code = :new.gear_code,
                              de = :new.de,
                              ue = :new.ue,
                              dc = :new.ue,
                              uc = :new.uc,
                              local_area_code =  :new.local_area_code ;     
        /*  update landings_hms  set dealer_rpt_id = :old.dealer_rpt_id,
                                 landing_seq = :old.landing_seq,
                                 fins_attached = :new.fins_attached,
                                 explanation = :new.explanation,
                                 late_report = :new.late_report,
                                 modified_data = :new.modified_data,
                                 nature_of_sale = :new.nature_of_sale,
                                 hms_area_code = :new.hms_area_code,
                                 sale_price = :new.sale_price,
                                 de = sysdate,
                                 ue = :new.ue,
                                 dc = :new.dc,
                                 uc = :new.uc ;                         
    end;
    -- End of DDL Script for Trigger SAFIS.LANDINGS_KEH_V_IO_TRG
    CREATE OR REPLACE TRIGGER landings_v_io_trg
    INSTEAD OF
      INSERT
    ON landings_view
    REFERENCING NEW AS NEW OLD AS OLD
    DECLARE
       v_first_day   date;
       BEGIN
    insert into landings_keh (landing_seq,
                              dealer_rpt_id,
                              unit_measure,
                              reported_quantity,
                              landed_pounds,
                              dollars,
                              disposition_code,
                              grade_code,
                              species_itis,
                              market_code,
                              price,
                              area_fished,
                              sub_area_fished,
                              lease_num,
                              gear_code,
                              de,
                              ue,
                              dc,
                              uc,
                              local_area_code)      
       values ( landings_seq.NEXTVAL,
                :new.dealer_rpt_id,
                :new.unit_measure,
                :new.reported_quantity,
                :new.landed_pounds,
                :new.dollars,
                :new.disposition_code,
                :new.grade_code,
                :new.species_itis,
                :new.market_code,
                :new.price,
                :new.area_fished,
                :new.sub_area_fished,
                :new.lease_num,
                :new.gear_code,
                sysdate,
                :new.ue,
                :new.dc,
                :new.uc,
                :new.local_area_code)  ;
       insert into landings_hms (dealer_rpt_id,
                                 landing_seq,
                                 fins_attached,
                                 explanation,
                                 late_report,
                                 modified_data,
                                 nature_of_sale,
                                 hms_area_code,
                                 sale_price,
                                 de,
                                 ue,
                                 dc,
                                 uc,
                                 deleted)
           values (:new.dealer_rpt_id,
                   landings_seq.CURRVAL,
                   :new.fins_attached,
                   :new.explanation,
                   :new.late_report,
                   :new.modified_data,
                   :new.nature_of_sale,
                   :new.hms_area_code,
                   :new.sale_price,
                   sysdate,
                   :new.ue,
                   :new.dc,
                   :new.uc,
                   :new.deleted);
    end;
    -- End of DDL Script for Trigger SAFIS.LANDINGS_KEH_V_IO_TRG
    -- End of DDL Script for View SAFIS.LANDINGS_VIEWbtw, I have succefully run the following update in sqlplus.
    update landings set landing_seq = 8604583,
    dealer_rpt_id = 2660038,
    unit_measure = 'LB',
    reported_quantity = 3,
    -- landed_pounds = :new.landed_pounds,
    dollars = 900,
    disposition_code= '001',
    grade_code = '10',
    species_itis = '160200',
    market_code = 'UN',
    price = 30,
    area_fished = null,
    sub_area_fished =null,
    -- lease_num = :new.lease_num,
    gear_code = '050',
    de = sysdate,
    ue = 'keh',
    dc = null,
    uc = 'keh',
    local_area_code = null
    where landing_seq = 8604583; I am using apex 4.2
    Edited by: KarenH on May 3, 2013 10:29 AM
    Edited by: KarenH on May 3, 2013 10:31 AM
    Edited by: KarenH on May 3, 2013 11:04 AM
    Edited by: KarenH on May 3, 2013 4:09 PM

    could it be so simple?
    when I created the tabular form on my view, LANDINGS_VIEW, the APPLYmru was automatically generated, referencing the view name LANDINGS_VIEW. I modified that to indicate the table name (LANDINGS). I am not certain why that would work, but it seems to so far.
    this post was helpful: Re: instead of trigger on view
    I am now testing to make certain both the underlying tables can be updated, LANDINGS and LANDINGS_HMS

Maybe you are looking for

  • How to use background image in ABAP -  webdynpro

    Hi, My requirement is like that. I want to display a background image. Over the background image i want to display my ALV list or report. How to display my personalized image in background. Please assist me.... Thanks in Adv.

  • Error EU 802: Function Module does not exist

    Hello everyone! While running a DTP, I'm getting the following error: EU 802: Function Module RSD_YPERSON_TXT_GET does not exist Anyone has any idea what this is about? Thanks in advance for your responses! Best Regards, Luís.

  • Solaris 11 network. Can't make it work.

    How can i configure the network. We don use DHCP in our area. Please Heelp

  • I am unable to get quicktime to work in IE10

    I am unable to get quicktime to work in IE10 each time it just redirects me to the quicktime download, I've uninstalled and reinstalled quicktime, I've done a reset on IE, tried unchecking ActiveX filtering...Any other ideas?

  • Complex connect by prior query

    I need SQL(for hierarchical tree) for a function which accepts node as input parameter and returns ref cursor. Following is a sample tree: 1 --2.1 ----3.1 ------4.1 --------5.1 ----------6.1 ----------6.2 ----3.2 ------4.2 --------5.2 --2.2 ----3.2 -