Regarding Procedure & Trigger (Plz Some one Help me... Its Urgent)

HI,
I think its a Big Message........ I dont know How many Will have patience in reading this...... Sorry for this Inconvience........
Iam having 4 tables:
3 Input table and 1 target table.
LOgic: Want to Load in the Target table From the input table Based on Some Criteria
Input Tables:
Table 1:Tbl_A
It has ID and Name
TBL_A
Ex: ID Name
201 Anu
202 Banu
203 Chitra
Table 2: Tbl_B
It has Name and Id
(The record of Column Name in this table should Contain the same Names of Tbl_A and id should be different from Table a)
TBl_B:
ID NAME
501 Anu
502 Banu
503 Chitra
Table 3: TBL_C
(It is independent on both Tbl_A and Tbl_b)
it has this Static records as Follows:
TBL_C
ID NAME
1 A
2 P
Output Table:
TBL_Target: ( It has 3 columns): ID,Source id, and Identifier
ID SRC_ID IDENTIFIER
LOgic:
For Loading data into Target tbl :TBL_Target
1. Procedure should have 'Name' of TBL_C as input parameter. So input will be
'A' or 'P'
*Based on the input Name from TBL_C  the corresponding ID should be taken   
from TBL_C and inserted into the ID Column of TBL_Target
EX: IF 'A' Then 1 Should be inserted . IF P means 2 should be inserted
2. we have to select the IDs from TBL_A and TBL_B based on Their Names as Join condition and insert the ID of TBL_A into IDENTIFIER Column of TBL_Target
and insert the ID of TBL_B into SRC_ID Column of TBL_Target
(Note: Actually We have to get the ID'S of all the rows from TBL_A and TBL_B based on their join Condition and load into Target table)
Out PUt: ( if the input of Procedure is 'A')
TBL_Target
ID SRC_ID IDENTIFIER
1 501 201
1 502 202
1 503 203
Out PUt: ( if the input of Procedure is 'P')
TBL_Target
ID SRC_ID IDENTIFIER
2 501 201
2 502 202
2 503 203
LOgic2:
I want to Write a Trigger So that Whenever Iam Inserting New Records in TBL_A
the Trigger should Call the Procedure We have Created
Thanks......

Hi,
I created a Trigger based on After inserting.....
I called the Procedure inside the Trigger.....
Trigger is created. But While executing the trigger it Throws an error: Table is Mutating .Trigger or Function May not see it.
This is the procedure Created:
CREATE OR REPLACE PROCEDURE Proc_Load (Tblc_Name in Varchar2)
AS
-- VARIABLE AND CURSOR DECLARATION:
V_name Varchar2(100);
V_id_c number;
V_id_a number;
V_id_b number;
CURSOR cur_name IS SELECT a.id,b.id
FROM tbl_a a,tbl_b b WHERE TRIM(a.name)=TRIM(b.name);
begin
V_name:=Tblc_name;
SELECT id INTO V_id_c FROM Tbl_c WHERE name=V_name;
OPEN Cur_name;
LOOP
FETCH cur_name INTO V_id_a,V_id_b;
INSERT INTO tbl_target VALUES (V_id_c,V_id_b,V_id_a);
COMMIT;
EXIT WHEN (cur_name %NOTFOUND);
END LOOP;
CLOSE Cur_name;
END;
Trigger Created:
CREATE OR REPLACE TRIGGER Trig_name
AFTER INSERT ON TBL_A
FOR EACH ROW
BEGIN
Proc_Load ('A');
END;
If iam Executing trigger Error OCcurs Table is Mutating .Trigger or Function May not see it.
How to solve it?

Similar Messages

  • Hi plz some one help me :( i cant play any video in firefox,i see thumbnails but when i go to it said:an error occured plz try again later :( anyone know why?

    i hadnt this problem since i reinstall my windows 7 because of some problems ,after i install firefox and real player,flash player ,... :) i wanted to see some clips on youtube but i cant , not also youtube also any sites :( i have a new version of flash player and... plz help me friend its so annoying :(

    Check your plugins are uptodate!
    *http://www.mozilla.org/en-US/plugincheck/
    Type '''about:addons''' in URL and Goto Plugins
    * Check all the plugins are "Always Active"
    Somewhere on the page right click, go to view page info > permissions and make sure that adobe flash content is allowed to play on that domain.
    Flash in Protected mode occurs issues too
    *http://kb.mozillazine.org/Flash#Flash_Protected_Mode_issues_on_Windows_Vista_and_above
    *http://forums.adobe.com/thread/1018071

  • Hi there, I have MacBook Air (Mid 2012) with OSX 10.8.2. I want to update to latest OSX but it is saying that I need to first install MBA Flash Firmware Update 1.1. When I try to install this firmware, I am told I should have OSX 10.8.3,can some one help?

    Hi there, I have MacBook Air (Mid 2012) with OSX 10.8.2. I want to update to latest OSX but it is saying that I need to first install MBA Flash Firmware Update 1.1. When I try to install this firmware, I am told I should have OSX 10.8.3, Each one asking other to update first, can some one help me in this regard ?

    If you don't already have a current backup, back up all data, then reinstall the OS.* You don't need to erase the startup volume, and you won't need the backup unless something goes wrong. If the system was upgraded from an older version of OS X, you may need the Apple ID and password you used.
    If you use FileVault 2, then before running the Installer you must launch Disk Utility and select the icon of the FileVault boot volume ("Macintosh HD," unless you gave it a different name.) It will be nested below another icon with the same name. Click the Unlock button in the toolbar and enter your login password when prompted. Then quit Disk Utility to be returned to the main screen.
    There are ways to back up a computer that isn't fully functional. Ask if you need guidance.
    If you installed the Java runtime distributed by Apple and still need it, you'll have to reinstall it. The same goes for Xcode.
    *The linked support article refers to OS X 10.9 ("Mavericks"), but the procedure is the same for OS X 10.7 ("Lion") and later.

  • Report Scripts - Please Can Some One Help Me

    Hello Gurus,
    Is it possible to display 2 members of the same dimension in adjacent columns using Report Scripts? if not what is the best available option?
    Consider this Sample Outline
    +Product
    +-Cofee
    +---Cafined
    +-------1100
    +-------1200
    +---Decafined
    +-------1300
    +-------1400
    +-Soda
    +---Coke
    +-------1500
    The format of the desired report is
    ======= Jan Feb Mar
    1100 Cofee 8 8 8
    1200 Cofee 8 8 8
    1300 Cofee 7 7 7
    1400 Cofee 7 7 7
    1500 Soda 6 6 6
    ================
    Please Can some one help me in this regard!
    Thanks In Advance

    If I remember correctly when I wanted to do something similar I imported the report with the level 0 members into SQL Server and then joined on a mapping table (was a parent/child table in our case) to get the other column. In our situation we already had the mapping table readily available because this is where the dimension was built from!

  • I just purchased a complete series on itunes... Im trying to watch the episodes but its only showing 20 seconds.. can some one help me know what Im doing wrong?

    I just purchased a complete series on itunes... Im trying to watch the episodes but its only showing 20 seconds.. can some one help me know what Im doing wrong?

    Hi bibisandoval,
    Thanks for visiting Apple Support Communities.
    If the movie has completely downloaded, I recommend deleting the movie and downloading it again from your list of purchased movies. See this article for the steps:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    http://support.apple.com/kb/ht2519
    If you are still not able to play the movie, you can report an issue with this purchase using the steps in this article:
    How to report an issue with your iTunes Store, App Store, Mac App Store, or iBookstore purchase
    http://support.apple.com/kb/ht1933
    Regards,
    Jeremy

  • Could you some one help me how to send a message on twitter using Oracle SOA?

    Hi Team,
              I am trying to send a message from Oracle SOA to Twitter, But i am not able to do the scenario.Could you some one help me how to send a message on twitter using Oracle SOA?
    Regards,
    Kiran

    Very challenging and doubtful at the same time !
    I don't think, its going to be a straight-forward one... Read about OAuth twitter authentication, before you try to post tweets.

  • New To Iplanet app server.Can some one help me getting started by delpoying and calling one of each of these:JSP,Servlet,EJB.Tried with iplanet docs..didnt quite get it. thanx

     

    Hi,
    What is that you are trying to accomplish ? Is it deployment or
    trying to develop applications ? Are you getting any errors ? If so,
    please post them to help you. I think the documentation is the best place
    for you to begin with.
    Regards & Happy New Year
    Raj
    Arif Khan wrote:
    New To Iplanet app server.Can some one help me getting started by
    delpoying and calling one of each of these:JSP,Servlet,EJB.Tried with
    iplanet docs..didnt quite get it. thanx
    Try our New Web Based Forum at http://softwareforum.sun.com
    Includes Access to our Product Knowledge Base!

  • I cant open some applications like preview or text edid after installing mavericks, im missing the Base.lproj files, can some one help?

    I cant open some applications like preview or text edit after installing mavericks, i found a post that said im missing the Base.lproj files, this fixed my calendar application but i need the file for preview, can some one help?

    Hi vampyro33,
    Thanks for visiting Apple Support Communities.
    If it seems like system files are missing and applications are quitting unexpectedly, I'd suggest reinstalling Mavericks:
    OS X Mavericks: Reinstall OS X
    http://support.apple.com/kb/PH13871
    Best Regards,
    Jeremy

  • Reallly Really Annoying,- Please some one help! ?

    Hey well basicly ive got the curve 8900 and regularly when i go to play music its showing headphones plugged in so i have to click the blackberry button and switch it to handset, But the worst thing is when i get a call its doing the same thing by the looks its switchin from headset, speaker and handset therefore i cannot hear my phone call this is really annoying please can some one help.
    Regards,
    James,

    Unless you haven't already done so... reload the device with latest software from your carriers site, look for funky apps you may have installed (sound/music/games), and then call your carrier for support - it should have a 1 years warranty where they ship you a new one!
    peace and love

  • Wifi works poorly on my brandnew ipad2. can some one help me or shall I return it to the store?

    Wifi works poorly to none on my brandnew (three days old) ipad2.
    The same Wifi connection works perfectly with my PC laptop.
    Can some one help me or shall I return it to the store?

    Try here...
    Apple - Support - iPad - Wi-Fi

  • HT1338 i have apps to be updated but when i try to update them a message pops out saying "You have updates for other accounts, please sigh in with the other id". Can some one help me how can i still update the same with the new apple id ive created.

    i have apps to be updated but when i try to update them a message pops out saying "You have updates for other accounts, please sigh in with the other id". Can some one help me how can i still update the same with the new apple id ive created. As i dont have the access to the earlier id anymore.

    You cannot. The apps are assigned to that Apple ID and there is nothing you can do to change that. You could choose to download them again with the new Apple ID, any paid apps will need to be purchased again.
    Hope that helps.

  • I need help with something could some one help me with installing windows 7 on bootcamp 4.0 with iMac 2.8 ghz model

    could some one help me with something important i have a 2.8 ghz intel quad core Imac with 10.7 with bootcamp 4.0 but still getting that black screen while trying finish the install of windows 7 etc. or do i need a new mac for it to work properly

    This might help point you in the right direction.
    http://support.apple.com/kb/HT4818
    Hope it helps
    Also google it and lots of results come up including youtube clips....

  • Please does anyone knows how to delete the "others" on the iphone becuase it take me a lot of spaace and i cant have anything i have 5 GB of othres coan some one help me please?

    please does anyone knows how to delete the "others" on the iphone becuase it take me a lot of spaace and i cant have anything i have 5 GB of othres coan some one help me please?

    If restoring using your backup didn't work, you'll have to save as much of your data as you can (import your photos to your computer, sync your contacts and other data with iCloud, email things like Notes and Voice Memos to yourself, sync with iTunes to transfer all your purchases, etc.) and then restore it as new without using your backup.

  • I have garagaband for iOs in my iPhone 4S, I connect my squire iOs guitarr to the iPhone, I select a Guitar Amp at the GB app then I Only can tune the guitar but I m not able to make the guitar ring with the amps. May some one help me?

    I have garagaband for iOs in my iPhone 4S, I connect my Squire iOs guitarr to the iPhone, I select a Guitar Amp at the GB app then I Only can tune the guitar but I m not able to make the guitar ring with the amps. May some one help me?

    You got the new iphone?????   I have same problem.  I transferred audiobooks to device to find no audiobooks on device (despite it being in iTunes as if it was).  Have you found a solution?????   I even tried to change import settings on format transfer but hasn't worked. 

  • HT201210 In the attempt of updating the latest itune software, i am faced with the problem of not being able to be connected to itunes with my ipod touch that is blocked living the USB cable and the itune icons on my touch sceen. Can some one help me out

    In the attempt of updating my ipod touch, i am  faced with the problem of not being able to be connected to the itunes in my computer (windows xp ) because my ipod touch got blocked up, leaving the icon of USB cable and itunes on my touch screen. I am asked to restore my ipod first, but i have tried using all the examples stated and still can't help. Please please, can some one help me out ? Ones  in the process of trying, i see an error code: 1656 and most of the time nothing. Thanks

    See if placing the iPod in Recovery mode will allow a restore via iTunes
    Next try DFU mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    You can also try another computer to help determine if you have a computer or iPod problem.

Maybe you are looking for

  • Use a remote iPad for development purposes?

    I want to allow my partner's iPad to test my apps. No problem, of course if the iPad is within connecting distance to XCode. However, the iPad is at a remote location, and my partner doesn't use a Mac. How can I authorise the device and transfer my a

  • WLST and reading a property with a "." in the name...

    I am trying to share a properties file between two processes. The file has entries in it similar to the following: domain.name=myDomainName in my wlst script, when I try to read this property and assign its value to a variable in my script, it chokes

  • ITunes Not Activating When 2.0 Phone Connected

    I've purchased a 3g phone and upgraded my original one to the 2.0 software for my wife. When I connect the original one now by usb to the computer iTunes does not automatically open, I have to manually open it and when I do the phone does show up in

  • Recents updates on my windows is causing problems for Bonjour

    Bonjour print service stopped working after last windows update.  My time capsule not showing up as a data location other than backup.

  • Whats wrong with my inputcheck...

    Hey there, for my study i have to make a system that takes a double as input for the n hours somebody parked and eventually add that to a total.... Parking where the calculation is in is fine... public class parking      public parking()//double atot