PLEASE HELP!! Trigger on a view that updates a table synonym?

I have a view (PERSONINFO_VIEW) that pulls user information from several ODS.CT tables. This view contains userid, first name, last name, telephone, and email. I'm trying to create a trigger that will insert these values into a remote table with a public synonym (PERSON_CTL_SYN) using a procedure. If I run the procedure alone, it works, and the table is updated. I enter data into the view (by adding a new user account to the portal) the PERSONINFO_VIEW is updated with the new information, but the trigger that calls the procedure doesn't seem to fire, because the PERSON_CTL_SYN is not updated.
My trigger (PERSON_SYN_INS):
On PTS.PERSONINFO_VIEW, INSTEAD OF EACH ROW, INSERT, ENABLED
begin
person_syn_ins_proc(:new.userid, :new.firstname, :new.lastname,:new.phone,:new.email);
end;
My Procedure (PERSON_SYN_INS_PROC):
CUSER IN VARCHAR2,
CFIRST IN VARCHAR2,
CLAST IN VARCHAR2,
CPHONE IN VARCHAR2,
CEMAIL IN VARCHAR2
as
cSecrGrp varchar2(30) := 'ITSUSER';
cLoc varchar2(30) := 'OUS-ITS';
cArea varchar2(3) := '541';
begin
insert into person_ctl_syn(
person_first_name,
person_last_name,
person_username,
person_email,
person_phone_number)
values(
cFirst,
cLast,
cUser,
cEmail,
cPhone);
commit ;
end;

I have a view (PERSONINFO_VIEW) that pulls user information from several ODS.CT tables. This view contains userid, first name, last name, telephone, and email. I'm trying to create a trigger that will insert these values into a remote table with a public synonym (PERSON_CTL_SYN) using a procedure. If I run the procedure alone, it works, and the table is updated. I enter data into the view (by adding a new user account to the portal) the PERSONINFO_VIEW is updated with the new information, but the trigger that calls the procedure doesn't seem to fire, because the PERSON_CTL_SYN is not updated.
My trigger (PERSON_SYN_INS):
On PTS.PERSONINFO_VIEW, INSTEAD OF EACH ROW, INSERT, ENABLED
begin
person_syn_ins_proc(:new.userid, :new.firstname, :new.lastname,:new.phone,:new.email);
end;
My Procedure (PERSON_SYN_INS_PROC):
CUSER IN VARCHAR2,
CFIRST IN VARCHAR2,
CLAST IN VARCHAR2,
CPHONE IN VARCHAR2,
CEMAIL IN VARCHAR2
as
cSecrGrp varchar2(30) := 'ITSUSER';
cLoc varchar2(30) := 'OUS-ITS';
cArea varchar2(3) := '541';
begin
insert into person_ctl_syn(
person_first_name,
person_last_name,
person_username,
person_email,
person_phone_number)
values(
cFirst,
cLast,
cUser,
cEmail,
cPhone);
commit ;
end;

Similar Messages

  • I have updated to maverick from mountain lion.initially my mac book pro was snow leopard.the multitrack touch pad swapping the page is not happening in finder,it is only working in safari.please help me how to get that swiping gesture in  finder

    i have updated to maverick from mountain lion.initially my mac book pro was snow leopard.the multitrack touch pad swapping the page to get back to previous page is not happening in finder,it is only working in safari.please help me how to get that swiping gesture in  finder

    Hi..
    I repled to you here >  https://discussions.apple.com/message/25598596#25598596
    Please do not start duplicate topics. It makes it that much harder to assist you.

  • I am having problem when i am updating my iphone 4 to ios 5 ..it get update n took 50 minutes then at the end when it was processing file ...suddenly an error comes that an unknown error accurred {9006}..please help me..how will i update my iphone 4

    i am having problem when i am updating my iphone 4 to ios 5 ..it get update n took 50 minutes then at the end when it was processing file ...suddenly an error comes that an unknown error accurred {9006}..please help me..how will i update my iphone 4

    Error 9006: Following Troubleshooting security software frequently resolves this error. There may be third-party software installed that modifies your default packet size in Windows by inserting a TcpWindowSize entry into your Registry. Your default packet size being set incorrectly can cause this error. Contact the manufacturer of the software that installed the packet size modification for assistance.

  • HT3209 Purchased DVD in US for Cdn viewing. Digital download will not work in Cda or US? please help with new Digital code that will work

    Purchased DVD in US for Cdn viewing. Digital download will not work in Cda or US? please help with new Digital code that will work

    You will need to contact the movie studio that produced the DVD and ask if they can issue you a new code valid for Canada. Apple cannot help you, and everyone here in these forums is just a fellow user.
    Regards.

  • HT1918 Please help!!! I cannot update all my free installed programs on my iPhone 4S. I want to remove my credit card info from my Appe ID but there is no none !!!

    Please help!!! I cannot update all my free installed programs on my iPhone 4S. I want to remove my credit card info from my Appe ID but there is no none !!!

    Had you never backed up the phone before? When you saw the iTunes logo and cable, the device was in recovery mode. The data was already lost. The only way to recover from that is to restore the device, which will delete all of your data. You will only be able to restore to your last backup, whenever that was. Sorry this happened, but this highlights the importance of doing regular backups. The backup is the only protection you have against a problem like this.

  • I have updated my iPhone 4s to iOS7 but when i connect it to itunes on my PC it give me a msg to restore your iPhone in summary tab, Please help m using win 7 and updated itunes.

    I have updated my iPhone 4s to iOS7 but when i connect it to itunes on my PC it give me a msg to restore your iPhone in summary tab, Please help m using win 7 and updated itunes.

    What is showing on the screen of the iPhone?
    Does iTunes say the iPhone is in recovery mode?

  • Please help. After a recent iOS7 update my iMessages are gone and I can't get it back, nor can I log into my Apple ID. MY PASSWORD is not expired. iPhone 4.

    Please help. After a recent iOS7 update my iMessages are gone and I can't get it back, nor can I log into my Apple ID. MY PASSWORD is not expired. iPhone 4.

    See Here > Apple ID: Contacting Apple for help with Apple ID account security
              Ask to speak with the Account Security Team...

  • TS1424 My Apple ID has been disabled. I have tried everything and cant get any help correcting it. Any suggestions?? Please help!! I have 25 updates and can't update anything

    My Apple ID has been disabled. I have tried everything and cant get any help correcting it. Any suggestions?? Please help!! I have 25 updates and can't update anything

    http://www.apple.com/support/contact/

  • Can you please help me with validation logic for Events in Table maintenance generator

    Can you please help me with validation logic for Events in Table maintenance generator,i.e if i enter record in 1st internal table then automatically 2nd internal table should be updated.

    Hi Glen Anthony,
        Thanks for replay,
         I used foreign key relationship between those 2 internal tables....
    I used event 05: When creating a new entry. I want to know the custom logic by which my 2nd Internal table gets automatically updated when i update my 1st Internal table
    Thanks Glen.

  • Two forms that update differrent tables on the same page?

    I tried to add two forms that update different tables on to one page.
    Problem is when I do that the forms gives me an error saying the field does not exist. It's like it is trying to update one table with the other tables fields.
    As an example Say I have one forms that is for people table and another one that is the Jobs table.
    When I go to update the people table, it sends the data for the jobs fields too I get an error like the field job description does not exist.
    I have two different forms for these and everything.
    I would hope it is possible to have two forms that update different tables on the same page.

    I was trying the exact same thing, but i managed to work round it by setting the steps to hide one region, so the user would enter the form see one region submit the region then direct back to the same page with the different region visible and the original hidden.
    I don't know if this would be acceptable for you...

  • Help to create Materialized View that has timestamp conversion

    I need help creating materialized view with timestamp conversion between GMT to LocalTime.
    Feel free to make any comments.
    Thanks in advance.
    jon joaquino;)

    Here is one way.
    1. Alter the table hist_table and add a new column pdt_timestamp.
    2. Update the new column using the function 'new_time'
    For example,
    Update hist_table
    set pdt_timestamp = new_time(gmt_timestamp,'GMT','PDT');
    3. create a materialized view log on the table 'hist_table' using the syntax
    create materialized view log on hist_table
    with primary key, rowid, sequence;
    4. create a materialized view now using the syntax:
    (You have to specify your own storage numbers and tablespace name)
    create materialized view mview_hist_table
    pctfree 0 tablespace mymview
    storage (initial 16k next 16k pctincrease 0)
    build immediate
    refresh fast on commit
    as select uid,gmt_timestamp,pdt_timestamp
    from hist_table;
    Please test on your test instance before doing it on production. I have tested this on Oracle 10g for Windows 2000. I assumed that column 'uid' is the primary key on the table. I hope this helps.
    **********************************************************

  • I am an Idiot. Please Help!!! Can't update Macbook...

    Please Help!!
    I have been trying for a while now to update my macbook and I am out of ideas. I've tried the combo and standalone installers and neither are working.
    I am trying to update from OS X 10.5.2 to OS X 10.5.8.
    When I do the combo (automatic) update, It asks to restart the computer and once it restarts it tells me it is unable to install the update.
    When I try the standalone update, it downloads and when i try to install it, It says "You cannot install Mac OS X Update on this volume. This volume does not meet the requirements for this update."
    It says the same thing when i try to update to 10.5.4 or 5.6
    Please help me!!!
    MY MAC INFO:
      Model Name:          MacBook
      Model Identifier:          MacBook4,1
      Processor Name:          Intel Core 2 Duo
      Processor Speed:          2.1 GHz
      Number Of Processors:          1
      Total Number Of Cores:          2
      L2 Cache:          3 MB
      Memory:          1 GB
      Bus Speed:          800 MHz
      Boot ROM Version:          MB41.00C1.B00
      SMC Version:          1.31f1
      Serial Number:          W88146N70P0
      Sudden Motion Sensor:
      State:          Enabled

    Welcome to Apple Support Communities.
    How much hard disk space do you have available?
    You've downloaded several combo updates, so you may have to delete one or more of those large (about 700Mb) .dmg files to make enough free space.
    If you do have enough free space (at least 5GB, minimum space available), then run Disk Utility on your OS X volume (probably named Macintosh HD) and select Repair Permissions.
    Let me also mention that if you don't have a recent backup of your system, it is ALWAYS ALWAYS a good idea to have a complete backup before attempting OS installations and upgrades.  If you don't already have a backup drive, large (1TB or larger) external USB 2.0 backup drives are relatively inexpensive, especially compared to the time and trouble of trying to recover without one! OS X 10.5 has Time Machine software, which is probably adequate for your backup needs.
    Next, OS X 10.5.8 requires OS X 10.5.5 be installed first, so I'd download and install this one first:
    http://support.apple.com/downloads/Mac_OS_X_10_5_5_Combo_Update
    If you successfully get to OS X 10.5.5, then run the 10.5.8 combo (that you've apparently downloaded already) http://support.apple.com/downloads/Mac_OS_X_10_5_8_Combo_Update
    If it still isn't working, is your User Account set to 'Admin'?
    Go to , System Preferences, Accounts, and view your user identity. If you don't have Admin privileges, you'll have to have an Admin user do the upgrade.

  • HT5704 please help me why i cant continue updating my iphone?

    Hi, I try to upgrade my iphone 3GS version 4.1 to become 6.1, I download the itunes then now why its cannot continue updating my iphone? always says that we are sorry, we are unable to continue activation of this time. Please try again later or contact customer care. Please help me for this problem.

    Most likely, your phone was hacked to carrier unlock.  When you updated, the hack was removed and the phone is now re-locked to its original carrier.  It will now activate and operate only with that carrier, using their SIM card

  • PLEASE HELP!!!! ios4 update problem and facebook update problem

    i have been trying to update my ipod for 5 hours now...
    when i clicked update it started to back up my ipod and froze...so i canceled and tried again, it froze again. so then i clicked to backup my ipod, and then after i clicked to update...
    then i got an error "unable to update software becuase of an unknown error (1603)". and now when i tried to click update again it says "the ipod cant connect to itunes"
    my other problem is with the facebook update. before the update if i click on "a farmville picture" to collect that item, it would collect it. but now it just puts a gray box around the picture and wont collect the item.
    has anyone had these problems? 5 hours trying to update...to then be told it wont update. and the facebook issue...i sent a message to facebook feedback but we need more people or they wont have another update to fix it.
    please help!

    Hi there
    I'm not sure there is a way to prevent this. The Skip button is really intended for the review process. Unfortunately it is also active at the time the user encounters the question. Basically, if the user clicks the Skip button they are saying "I don't wish to answer this question". Thus, the question is left unanswered and counts against the final score.
    Perhaps another Captivate author has a suggestion.
    Cheers... Rick
    Helpful and Handy Links
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcerStone Blog
    Captivate eBooks

  • Please help! I cant download or update my apps after upgrade to ios7.0.2

    Anyone have this kind of experience after upgrade to ios7.0.2? I cant download or update my apps? Please help!
    Thanks.

    Hi,
    No, the problems are still here... I've been able to update some apps using the PC itunes (connecting the app to it), but all the other apps are still "wating", and I have two new strange things:
    * I cannnot remove the apps that are downloading (at least those that are supposed to be downolading ) . But I could remove one from the PC... and now there is an "empty line" in the "to update apps list".
    * Stranger: though I cannot download new apps or music from the store, I can do in-app purchases!!! In that case, I'm asked for the password and the item downloads. How is it possible?????
    I'm getting mad...

Maybe you are looking for

  • Schedule line delivery date of sales ordere in production order-MTO

    We have a Make to order scenario where item in sales order can have mutliple scheule lines on different delviery dates. Ex : sales order 100020  and item no 0010 has schedules with schedule line dates as 10.04.2010----1pcs 20.04.2010---1pcs 03.05.201

  • How can I see what my eBook looks like in Mac Preview?

    I just wrote and published an ebook online. Some of my customers who use a Mac have mentioned the Table of Contents has weird symbols in it. It looks fine on my Windows machine. Turns out they are using the Macintosh Preview program to view my pdf fi

  • Uninstall Safari 4.1 and go back to 4.0

    I think I need some help , I want to uninstall Safari 4.1 and install Safari 4.0.

  • Problem in placing the command

    I am developing an application in J2ME. In the midlet I have just added an Exit command and one canvas. But the problem is that the Exit command is coming under Menu. I want it to be displayed as Exit only not under menu. Can you tell me how to overc

  • Problem in licence manager service

    Hello, Even though the licence manager service is set as automatic is services, it stops suddenly and this happens many times. Each time, the service should be restarted manually. I need your help please. Thank you.