Changing trigger, want simple way to get osuser

I am trying to change this trigger, which hardcodes the user:
if inserting then
    insert into vmol_ext_sales_parts_IE
        vmo_unique_key
      , salespartno
      , salespartdesc
      , salesgroup
      , site
      , salesparttype
      , pricelistno
      , salesprice
      , currency
      , uom
      , validfrom
      , minimumquantity
      , iduser_, event_, timeinserted_, tag_
    values
        :newrec.vmo_unique_key
      , :newrec.salespartno
      , :newrec.salespartdesc
      , :newrec.salesgroup
      , :newrec.site
      , :newrec.salesparttype
      , :newrec.pricelistno
      , :newrec.salesprice
      , :newrec.currency
      , :newrec.uom
      , :newrec.validfrom
      , :newrec.minimumquantity
      , 'Admin' , '1' , sysdate, idDB
  end if;I want to replace literal 'Admin' to the osuser and program. It is only 32A so I'd take say 16 of osuser and LAST 16 of program.
Is this simple to do? If so, how, please?!
Thanks

Hi,
USER you can get it this way (but it depends how the changes are done to the TABLE and how you are running your appliction is it in WEB, CITRIC , CLIENT SERVER)
SELECT USER from dual;
THe other thig you can try is to add the user and application in the TABLE and pass those values when you INSERT into the table.
thanks

Similar Messages

  • Simple way to get DVD's on my ipod with H.264.

    I have a bunch of DVD's that I have made with final cut pro and DVD studio pro that are in the video_ts file format, that I want to get on my video ipod. There are a lot of ways to do this, but after hours I haven't found one successful way to get a DVD video converted in the H.264 format on my ipod. I have tried handbrake but that app doesn't do the H.264 format for the ipod. I just want to download free, or spend like $10-15 total for the software, but can someone give me a direct link to a product I can download that they have used? thanks.

    REMINDER:
    Update includes the "Baseline" H.264 codec. Since "Mainline" is the default H.264 codec, make sure you change this setting when converting.
    2.0GHZ G5/533MHz G4 DeskTop/400MHz G4 PB   Mac OS X (10.4.3)  

  • Simple way to get a photo onto the Touch?

    Is there any way--including 3rd party app--to get a single photo, or a few pics, onto the Touch? Sometimes I just want to get something on the Touch without the bother of adding it to iPhoto or creating a dedicated folder, copying the pic to it, manually designating that folder in iTunes, etc.
    In this case, I have a picture of a menu I found online, and I want to be able to reference it to call in an order when I'm out. Since I can't count on available wifi to retrieve it, I'd like to easily get it onto the Touch for when I need it.

    or call it up when you do have wifi, hold your finger on it, and save the photo to your ipod.

  • I changed jobs and purchased a new iPhone I  no longer have any of my iBook information. My Apple account and name has changed is there any way to get the info I had in iBooks to my new phone under my new account?

    I changed jobs and bought a new phone. I would like to get my iBooks info on my new phone but it is under my old account. When I try to log in under the old account i get a message that I will not be able to log back onto my new account for a period of time. HOw do i get the information from my old account over to my new account?

    You can't currently transfer purchases/downloads from one account to another account.
    When you download past purchases from an account then you will potentially tie the device (or computer if you do it on that) to that account for 90 days : http://support.apple.com/kb/HT4627
    Have you got the ibooks already on your computer and/or on a backup so that you can sync them to your new iPhone ? If not then have you bought anything on your new account yet - could you go back to just using the old account ?

  • Any simple way to get the trace file

    One user want the trace file i went to bdump dir.
    any way to fine that trace file from there.

    Re: dbms_session and sql_trace
    ALTER SESSION SET TRACEFILE_IDENTIFIER= will help you identify the file name.
    Search is a wonderful help in this forum.

  • I am over this virus-like intrusion of Yahoo instead of my normal google search engine. If I can't get it fixeed I am back to IE or Chrome. Firefox is allowing this which is pathetic. Does anyone know a simple way to get rid of yahoo?

    Suddenly after upgrading I can't get rid of a Yahoo home page. Really annoying

    Try RIGHT clicking on different areas of the toolbars on Firefox, mainly try right clicking on/around the url bar & forward/back navigation buttons. When you get the correct spot if will give you a menu with the toolbars available (whether or not they're active) and a couple other options. Just uncheck the Yahoo one & you should be all set.
    As you say though it may be some other bar disguised as a yahoo bar. Any chance you can get a screen shot of it & post it here?

  • Need simple steps to get prev. version src

    Greetings,
    We're in a time crunch approaching deployment of a 902 Jdev BC4J project.
    We've ignored todate the issues of important features missing from OSCM
    that we've taken for granted in PVCS and every other SCM tool.
    - We need a very simple way to get the src for an old version of a file.
    Our group use of OSCM has a per-user PWA assoc with a SWA and
    all working on the Main branch.
    Can someone offer a simple set of steps to get a file's previous version src?
    - What is really needed is one click drop current version from OSCM, not just from my PWA. This is a very typical if not
    daily todo of a project CM. This change must be immediately visable to all users of the SWA and be transparent
    that a version was removed.
    Short of this feature, getting the previous version's src and rechecking in as most recent is the simplest way to
    have the same effect unless there's a better suggestion?
    Thanks, curt

    Hi Curt,
    Thanks for the detailed feedback. Many of the suggestions are logged as existing ERs or bugs against JDeveloper. Some comments on your suggestions:
    - "reverting back to some previous version.... In effect dumping the top N versions"
    I agree with you about the main point of using a version control system - because there is high value in the historical information about changes over time to the files making up your application.
    One aspect of this is that it's rarely a good idea to eliminate or alter historical versions of elements.
    This is particularly brought to light when you're using configurations. By creating a configuration, you're saying "I know that these versions of my files all work together in some well defined way (e.g. they all build successfully), and I want to be able to use this as a reference point in the future".
    This is why functionality such as purging, dumping specific revisions, or making changes to historical versions is not encouraged by the UI: by changing a historical version, you're kind of reaching back and changing the past. What was previously a safe configuration representing the successfully building and tested bunch of versions that became release 1.2 of your product might no longer be safe at all.
    I still think we could do way better at providing some kind of revert support. But it would most likely work in a way that didn't affect historical versions. E.g. if you have version 1.2, 1.3 and 1.4, and you wanted to revert the latest version to 1.2, we'd actually create a new version 1.5 which was the same as 1.2. Does this sound like it would meet your needs?
    I can't promise we'll get anything like this in for 9.0.5 (we're fast approaching the feature cutoff for this - I know it sounds bizarre given that 9.0.4 isn't out yet, but that's the way it works :) ), but we are aware of how important strong "usecase-based" features like this are.
    - "Get a copy of older source..."
    You can kind of do this already with compare. It's just that you can't print at the moment. In JDeveloper 9.0.5, this gets slightly easier, because compare has been completely rewritten to work on top of JDeveloper's code editor. You'll at least be able to print one side of the compare editor out, and in future releases, we'll look into better printing support for compare.
    - "Print a report showing..."
    We've rewritten the Version Event Viewer (VEV) from scratch in JDeveloper 9.0.5. One of the new features is the ability to print or save a report such as you describe.
    - "CM power tools for multi-tier modular product configurations"
    Can you provide more info about this one?
    Thanks,
    Brian
    JDev Team

  • Other ways for getting a reference to the current page [ID5, JS]

    To get a reference to the page you're working on (or that holds an object you want to manipulate), you could use app.activeWindow.activePage.id or app.layoutWindows[0].activePage.id.
    But when you're working on a spread and this spread fills your application window, you seldomly get the correct page reference. You could have a selection on the right page, but when you run a script with the active/layoutWindow approach, you could easily get a (wrong) reference to the left page, if that one is more 'dominant' in your program window.
    I work around this by using activeSpread and getting the Y-coordinate of a frame or insertionPoint on the page I'm working on. When you set the ruler origin to spread, you can determine the left or right page by looking at the Y-coordinate. If it's higher than the page width (or spine position) you're on the right hand page. You could than use if...then to assign 0 or 1 a to a variable. Finally, you can get the ID of that page: app.activeSpread.pages.item(variable).id.
    Perhaps this approach is helpfull for others who struggle with page references.
    My question is: are there other reliable (perhaps more simple) ways to get a reference to the page?

    Right. I should have posted the question sooner, because shortly after I found the answer I've been looking for quite long. And once again it's so simple. Nevertheless it might be usefull to share.
    For most page items like textframes and rectangles you can simpy use the property parentPage. For instance, if you have selected a rectangle you get a reference to the page with code like:
    page = doc.selection[0].parentPage.id.
    This might be usefull if you dragged a rectangle holding an image to another page and want to run a script that re-attaches the caption frame. 

  • I changed the password to my ipod but it isn't working and I don't want to restore it. Is there a way of getting rid of the pass word or un-disabling my device?????

    I changed the password to my ipod but it isn't working and I don't want to restore it. Is there a way of getting rid of the pass word or un-disabling my device?????

    Connect the iOS device to your computer and try to make a backup.
    iOS: How to back up
    Then restore via iTunes. Place the iOS device in Recovery Mode if necessary to allow the restore.
    If recovery mode does not work try DFU mode.
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    For how to restore:
    iTunes: Restoring iOS software
    To restore from backup see:
    iOS: How to back up
    If you restore from iCloud backup the apps will be automatically downloaded. If you restore from iTunes backup the apps and music have to be in the iTunes library since synced media like apps and music are not included in the backup of the iOS device that iTunes makes.
    You can redownload iTunes purchases by:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store

  • I bought my iPhone 4 locked from USA. I leave in Cyprus and i want to know if there is a way to get it unlocked. Could it be changed to an unlocked one with a fee paid to apple.

    I bought my iPhone 4 locked from USA. I leave in Cyprus and i want to know if there is a way to get it unlocked. Could it be changed to an unlocked one with a fee paid to apple.

    If you purchased the phone from a person, you need to find out which carrier they used and go to them to see if the will unlock it. If you purchased it from a carrier, give them a call to see what they will do.
    Just like atlantabrave said...Apple does not unlock phones.

  • Getting osuser and terminal identifier in a trigger

    Hello everyone,
    Is there a simple way I can get the osuser and the terminal identifier (os) in a trigger?
    Is there something as simple as using USER for the username?
    Best regards,
    Carl

    This is old my sample program.
    This trigger fire only executing a statement
    such as 'update dept set deptno = '
    from SQL*Plus GUI edition for Windows.
    create or replace trigger trg_dept_for_plusw
    after update of deptno on dept
    for each row
    declare
      p_count number;
    begin
      select count(*) into p_count
        from v$session
        where program in ('SQLPLUSW.EXE')
          and audsid = userenv('sessionid')
          and rownum <= 1;
      if p_count >= 1 then
        update emp set deptno = :new.deptno
          where deptno = :old.deptno;
      end if;
    end;
    show errorCAUTION: before creating you ought to grant.
    GRANT SELECT ON "SYS"."V_$SESSION" TO trigger_creater;
    Original :
    http://otn.oracle.co.jp/otn_pl/otn_tool/code_detail?n_code_id=85
    (This site is closed for Only OTN Japan members)

  • Apart from using a DNS Service, is there a way of getting an Xserve to notify an administrator of a change of external IP address?

    I have an Xserve running 10.5.8 which is I want to notify me when its external IP address changes.
    Is there a way to get it to do this?

    Here is my finished solution using applescript.
    If it is of use to anyone else please feel free to use/improve it.
    global OLD_IP
    global Current_IP
    global IP_text
    set OLD_IP to ""
    set Current_IP to ""
    set Test_text to ""
    ---on run get the current external IP address & set it as the Base IP to compare to
    do shell script "curl -s checkip.dyndns.org"
    set Pub_IP to result
    set OLD_IP to Pub_IP as string
    ---show the address
    display dialog "IP is: " & return & OLD_IP giving up after 2
    on idle
        try
            set IP_Changed to false
            set Current_IP to ""
            ---get the current external IP address
            do shell script "curl -s checkip.dyndns.org"
            set Pub_IP to result
            set Current_IP to Pub_IP as string
            if Current_IP is equal to OLD_IP then
                set IP_Changed to false ---if it is the same then it hasn't changed (false)
            else
                set IP_Changed to true ---if it is different then it has changed (true)
            end if
            if IP_Changed is true then ---if there is a difference the email the change to administrator(s)
                set target_string to Current_IP as string
                set replacement_string_1 to "<html><head><title>Current IP Check</title></head><body>"
                set replacement_string_2 to "</body></html>"
                my replace_and_select(target_string, replacement_string_1, replacement_string_2) ---removes HTML coding
                tell application "Mail"
                    set Mail_to_1 to "[email protected]"
                    set Mail_from to "[email protected]"
                    set theName to "Administrator"
                    set theAddress to Mail_to_1
                    set theSubject to "Server Public IP Address"
                    set theBody to IP_text
                    set newMessage to make new outgoing message with properties {subject:theSubject, content:theBody & return & return}
                    tell newMessage
                        set visible to true
                        set sender to Mail_from
                        make new to recipient at end of to recipients with properties {name:theName, address:theAddress}
                        activate
                        send
                    end tell
                end tell
                set OLD_IP to Current_IP ---set Base IP to the new one ready for next test
            end if
        end try
        return 3600 ---wait one hour before repeating the test
    end idle
    on replace_and_select(target_string, replacement_string_1, replacement_string_2)
        set this_text to target_string as string
        set this_offset to the offset of the replacement_string_1 in this_text
        set this_offset_2 to the offset of the replacement_string_2 in this_text
        set this_offset_3 to this_offset + (length of the replacement_string_1)
        if this_offset is not 0 then
            set IP_text to items this_offset_3 thru (this_offset_2 - 1) of target_string as string
        end if
           return
    end replace_and_select

  • Can someone please tell me a simple but effective method for burning a slideshow to DVD? Now that the connection between iPhoto and iDVD no longer exists, I can't figure out a way to get there with an acceptable quality result.

    Can someone please tell me a simple but effective method for burning a slideshow to DVD? Now that the connection between iPhoto and iDVD no longer exists, I can't figure out a way to get there with an acceptable quality result.

    Export the slideshow out of iPhoto as a QT movie file via the Export button in the lower toolbar.  Select Size = Medium or Large.
    Open iDVD, select a theme and drag the exported QT movie file into the open iDVD window being careful to avoid any drop zones.
    Follow this workflow to help assure the best qualty video DVD:
    Once you have the project as you want it save it as a disk image via the File ➙ Save as Disk Image  menu option. This will separate the encoding process from the burn process. 
    To check the encoding mount the disk image, launch DVD Player and play it.  If it plays OK with DVD Player the encoding is good.
    Then burn to disk with Disk Utility or Toast at the slowest speed available (2x-4x) to assure the best burn quality.  Always use top quality media:  Verbatim, Maxell or Taiyo Yuden DVD-R are the most recommended in these forums.
    If iDVD was not preinstalled on your Mac you'll have to obtain it by purchasing a copy of the iLife 09 disk from a 3rd party retailier like Amazon.com: ilife 09: Software or eBay.com.  Why, because iDVD (and iWeb) was discontinued by Apple over a year ago. 
    Why iLife 09 instead of 11?
    If you have to purchase an iLife disc in order to obtain the iDVD application remember that the iLife 11 disc only provides  themes from iDVD 5-7.  The Software Update no longer installs the earlier themes when starting from the iLIfe 11 disk nor do any of the iDVD 7 updaters available from the Apple Downloads website contain them. 
    Currently the only sure fire way to get all themes is to start with the iLife 09 disc:
    This shows the iDVD contents in the iLife 09 disc via Pacifist:
    You then can upgrade from iDVD 7.0.3 to iDVD 7.1.2 via the updaters at the Apple Downloads webpage.
    OT

  • Unnerving problem: I cannot reliably save the time I want a still to show (in iMovie '11/v. 9.0.4/build 1634). Has anyone found a way to get around this bug?

    My problem comes up in iMovie ’11 (v. 9.0.4/build 1634) and has done so from the beginning of my using the software.
    I want to determine the length of time that I want a a still to show (in the context of stills and movie clips). However, I cannot reliably save the still’s length of time showing.
    That applies to all stills: I doesn’t matter if I change the length of time individually for each still or check the box for »all clips«.
    This looks like a veritable bug, doesn’t it? Has anyone found a way to get around it?

    I assume you are using transitions. This is not a bug - it is how iMovie handles transitions.
    There are two settings for transition overlap - full and half. If you are using photos only, you may get the results you want by setting transition overlap to half.
    For full details, see iMovie Help here on Transition Overlap.
    http://help.apple.com/imovie/#mov3a6201ac

  • What's the correct way to get changes in my iTunes library to sync to my iPod

    It's been a few years since I've used itunes, so please bear with me.
    I'm trying to get my ipod setup but something seems weird. In the past, if I made changes to my itunes library, then plugged in my ipod, those changes would immediately sync. It's not doing that now. When I plug the ipod in, I click on the ipod symbol near the top-right to get to the connected ipod. If I click on "on this ipod" I can clearly see that the old files/metadata are still present. When I click the "sync" button down at the bottom (next to the storage bar) nothing happens. If I click on "Music" near the top (between Summary and Movies) there's a check-box next to "Sync Music" but when I click that it says "Are you sure you want to remove existing music, movies, and tv shows from this ipod and sync with this itunes library?". I don't want to have to wipe the thing clean and then re-write EVERYTHING again every time I want to make a change, that's crazy.
    So what am I missing here? Is there some setting that would make it work the way it did in the past, automatically syncing changes as soon as I plug in the ipod? If not, what's the best way to get the changes to sync over without having to wipe the ipod clean every time? Does the "Sync Music" option I mentioned not actually remove everything, but just sync any changes that were made? That's the only thing I can come up with.

    Chris CA wrote:
    ArmorOfGod7 wrote:
    It's been a few years since I've used itunes, so please bear with me.
    I'm trying to get my ipod setup but something seems weird. In the past, if I made changes to my itunes library, then plugged in my ipod, those changes would immediately sync. It's not doing that now.
    Because you are not syncing your music (you have Sync music unchecked).
    If not, what's the best way to get the changes to sync over without having to wipe the ipod clean every time? Does the "Sync Music" option I mentioned not actually remove everything,
    It shouldn't wipe everything but it will make the iPod match what you have selected in iTunes. So if it's on your iPod now and also in iTunes, it won't remove it then re-add it.
    Is everything on your iPod actually in iTunes? If so, click away.
    How do I get it to stay checked then? I've checked it and gone through the sync process, but every time I go back to that window, it's un-checked again, and I have to sync manually.
    Ok, that's what I was hoping, it just syncs any changes. I've done it this way a couple times but couldn't tell for sure if it was just removing then re-adding evertying or if it was just syncing changes.

Maybe you are looking for

  • Can a PC share a hard drive connected to Airport Extreme?

    I have a new Airport Extreme with a Seagate FreeAgent Desk for Mac 1.5 TB hard drive connected via USB. The Airport connects to the internet via a Linksys Vonage router, and two Macs are set up to use the Airport via wireless. The FreeAgent drive has

  • Regarding: interesting report

    hi, I am making a report in which i have to display the price of the raw material used in the finished product. I have to display it start from the sale bill,which tcodw is used for viewing the sales bill? plzz help me out as help will be definately

  • Urgent !!! Plz help PO with ref to PR

    hi all, i wanna override system error which says "Material and Item No already partially ordered", the error is thrown while im trying to create PO with ref to PR with repeated matnr and item no...coz the scenario is like tht. I have to repaet same m

  • OBIEE 11.1.1.6 Scheduler Server fails to start

    When the server is rebooted we often have failures in start up of the scheduler server in bipublisher. It is always connect to a MBEAN failure. During operations when it does come up we see a lot of error messages about MBEAN errors as well. I would

  • SYSTEM_NO_TASK_STORAGE during client export

    Hello all! I hope you can help me with this problem. I'm getting a SYSTEM_NO_TASK_STORAGE dump during a client export. My system is on Windows 2003 Std Server. I have 4gb of RAM and 20gb of Page file. My current isntance profiles is the following: en