No of inputs differing

Hi
I'm getting the table names as input and i have to do some DML operation based on the table names,
the DML operation is, i have to do a delete in that table and i have to do one insert in another
auditing table.
there are 40 tables, but sometimes i may have to do this operation for all the 40 tables, sometime
only for few tables, the number of inputs will be differing,
Can anyone suggest me how can i do this by using a single stored procedure that will act accordingly
irresepective of the number of inputs provided
Thank you
Mj

Ok lets talk about the DML operation. You have 2 DML
1. Delete
2. Insert
So for Delete is it a conditional delete. Do you have any where condition? Likewise for insert is it an conditional insert. Can you explain that.
If you have a way to handle that and your only problem is passing the table then you can do like this
SQL> create or replace procedure my_proc(ptablelist IN varchar2)
  2  as
  3  begin
  4     for i in (select trim(regexp_substr(ptablelist,'[^,]+',1,n)) str
  5                 from (select level n
  6                         from dual
  7                      connect by level <= length(ptablelist) - length(replace(ptablelist,','))+1))
  8     loop
  9             dbms_output.put_line(i.str);
10     end loop;
11  end;
12  /
Procedure created.
SQL> exec my_proc('TABLE1,TABLE2,TABLE3,TABLE4,MY_TABLE_123,YOUR_TABLE, WHATEVER_TABLE')
TABLE1
TABLE2
TABLE3
TABLE4
MY_TABLE_123
YOUR_TABLE
WHATEVER_TABLE
PL/SQL procedure successfully completed.
SQL>Edited by: Karthick_Arp on Feb 17, 2009 11:26 PM

Similar Messages

  • HT1918 I am unable to set up an iTunes billing account as I don't have an issue number on my card, I have tried just inputting different numbers such as just putting 1 but its not allowing me further!?

    I am unable to set up an iTunes billing account as I don't have an issue number on my card, I have tried just inputting different numbers such as just putting 1 but its not allowing me further!?

    Sorry, but you can't. You can only use a credit card issued by a French bank and with a French billing address. Your only solution is going to be to purchase prepaid iTunes cards (there should be several places you can buy them; perhaps FNAC) and use prepaid cards to open the account and purchase.
    Regards.

  • How to input different values without logging out everytime in OATS

    Hi,
    I am new to OATS. I was trying the functional testing of a web application. For this I recorded it by first logged in the application then input some values in a field, submit it and logout.Then i tried to iterate it with different values in the input field, but the problem was that for every iteration it was logging in every time. How can i stop logging in everytime and put the values all in one login. Also can anyone provide me online tutorial for OpenScript used in OATS.
    Edited by: user13268396 on Jul 6, 2011 3:36 AM

    Hi,
    If you go to
    http://www.oracle.com/technetwork/oem/downloads/index-084446.html
    There is a section for Documentation download. Within this there is the OpenScriptUserGuide.pdf, with full explanations of the technology.
    For the iteration with out logging again you have to insert "for" loop.
    Regards,
    Srinivas

  • Error -200279 with simultaneous analog input (different devices) and digital output.

    Hi guys,
    I am a beginner in Labview and have been dealing with this problem for a couple of weeks now and just can't seem to get it completely right, I have a feeling there are a few small bugs in my code/hardware setup.
    I am running an scxi-1000 chassis with a 1600 module and 1302C along with a 1303 accesory for temperature measurements, this is connected to four thermoucouples. Unfortunately I have a limited number of modules available so I am also using a PCI-6221 DAQ card with an scb-68 breakout box used for a digital output and analog input voltage channel. Attached is my labview program. When I run the code at a 50 Hz sampling rate it runs with no errors but the data file comes out extremely wrong, this is also attached. When I run the code at 100 Hz I get error-200279 after a few loops. I used to have 2 daqmx timing VIs (one for each input), but the same error would eventually happen, I have also tried increasing the buffer size on said timing VI. I am also using an old computer (Pentium IV) could this effect the program?
    I have learned a lot going through forms for similar problems to mine but I just can't get it to for an extended period of time, I have posted my simplest code.
    Thanks in advance,
    Luca
    Attachments:
    tc_2.txt ‏1102 KB
    FinalCombined_2.vi ‏128 KB

    Ok this makes sense. I have made the suggested modifications but still getting the same error with sampling rates of 100 Hz or higher. Could you check that I have implemented the queue VIs properly (new file attached)? Also when running at 50 Hz in debug mode it does not look like the second while loop (with the dequeue element) comes into play until I hit the stop button, once I hit the stop button I get the following error:
    Error 1 occurred at Dequeue Element in FinalCombined_2.vi
    Possible reason(s):
    LabVIEW: An input parameter is invalid. For example if the input is a path, the path might contain a character not allowed by the OS such as ? or @.
    =========================
    NI-488: Command requires GPIB Controller to be Controller-In-Charge.
    This leads me to believe I have programmed the queue elements incorrectly.
    Thanks for your help, any suggestions are greatly appreciated.
    Luca
    Attachments:
    FinalCombined_2.vi ‏102 KB

  • Why is the audio input different on my new macbook air?

    I am trying to use a third-party headset with built in microphone.  The adapters that I bought were recommended to me by the Apple store; they work fine in older models but do not work in the new macbook air. Why on earth would that be? There is no way to have this laptop recognize the microphone in my headset, the internal microphone stays on.  I think this is an issue with the 2013 macbook air!

    Its not hardware no, unless your specific Air had a problem.
    reset SMC and recheck.  ALSO do not use same plugged in after a sleep mode, there can be a fault, until this is fixed, that connected headsets and earphones will drop sound in sleep mode using Mavericks.
    SMC reset
    Shut down the computer.
    Plug in the MagSafe power adapter to a power source, connecting it to the Mac if its not already connected.
    On the built-in keyboard, press the (left side) Shift-Control-Option keys and the power button at the same time.
    Release all the keys and the power button at the same time.
    Press the power button to turn on the computer. 
    Note: The LED on the MagSafe power adapter may change states or temporarily turn off when you reset the SMC.

  • Native2ascii - same input - different output!??

    Hello all,
    I have to convert this UTF-8-Property-String:
    label_from=&#1054;&#1090;
    into "ISO 8859-1 with Unicode escapes" with native2ascii.
    On my Linux-Machine (Java 5) I get:
    label_from=\u041e\u0442
    This is right and leads to a correct output :)
    On a Windows-Machine (I unfortunately have to work with time by time) with Java 6 I get:
    label_from=\u00d0\u017e\u00d1\u201a
    This leads to a broken output :(
    Can anybody tell me why this happens? Are there ways to make the Windows-machine behave like the Linux-machine (besides "format c:" and than install LInux...)?
    Thanks a lot in Advance!
    Best regards
    Stephan

    I think you need to specify the encoding: native2ascii -encoding UTF-8 <infile> <outfile> Otherwise, it treats <infile> as if it were in the system default encoding (which just happens to be UTF-8 on your Linux box).

  • How to apply different Logical operations to N.of Signals

    Hello all,
    Please help me if anyone have idea about this.
    I have “N” number of signals. I want to apply different Logical operations for this.
    For Example:
          (((SigA >= 30 && SigB <=55) || (SigC = 42)) && (SigD > 45))
    ((((SigD >= 89.25 && SigF <=55.568) ||(SigG = 156.89)) && (SigA >= 45)) || ((SigF – Sig A) >25))
    Here Conditions will change every time. User can input different conditions (like Excel calculations). I need to check signals as per these type of conditions. Is there is any tool kits available in LabVIEW / we need to develop?
    Currently I’m thinking about string manipulations to extract the each condition . Once first condition is finished then check this results with next conditions (so on..)
    Munna

    Hi GerdW,
    After long time again I stated doing this task. Could you please help me in this.
    As per my snippet, at 1st making array based on given String. From that string I need to check where open & closed brackets are coming to do logical operations.
    For Example: (2 OR ((1 AND 2) OR 3))
    Index
    0
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    String
    2
    O
    R
    1
    A
    N
    D
    2
    O
    R
    3
    Please give me any idea/sample VI for the same.
    Here, 1,2 & 3 are Indices of Boolean 2D Array.
    Munna

  • Inputting a list into an alternative to inputting it into an editable region in a template

    Hello all,
    I did ask this question yesterday but only got partial feedback so I'm hoping someone can help as I can't find the answer anywhere.
    I'm hoping you can help me.
    I am creating an online clothing shop website and am having trouble.
    I have created a main template from scratch that reflects in the mens and womens pages, and the contact, about etc pages with all headers, logos, footer, a spry menu etc. I made these pages from the main template via new - Page from template etc so any changes I made to the header, logo etc will easily reflect in all of these pages.
    This part is all fine.
    This is my issue - in the main template I have an editable region so that I can input different content ie. 'about' info on the 'about' page, and product info on the mens / womens pages etc.
    Basically in each page Mens / Womens I need category pages - tops, shirts etc. These are all in the drop down spry menu but I also want them as a list in the mens and womens pages.
    From the template I created the mens and womens pages and have now saved these as a template as there will be around 10 categories for each mens and womens (tops, shirts etc) that I want to be able to replect any changes, ie. in the 'mens template' instead of having to do it in each category page - as this will take a long time.
    The problem is that I put the list in the editable region in the mens template, but I now know any changes I make wont be relfected in the category pages I have made from the mens template as this is an editable region.
    How can I make a category list in the mens template page that will be reflected in each category page?
    I'm really stuck and have no idea how to do this, I'd appreciate any help.
    Thankyou in advance

    I don't recommend using multiple or nested Templates.  There are much better ways to do what you want without going down this very slippery slope.
    Use Server-Side Includes alone or with your main Template.
    Build a Dynamic Site with databases and server-side programming.
    E-commerce Solutions:
    Cartweaver (extension for Dreamweaver)
    http://www.cartweaver.com/
    Web Assist
    http://www.webassist.com/support/ecommerce-options.php
    Building an e-comm site with DW & PHP (video training) 
    http://www.lynda.com/Web-Interactive-Web-Design-Projects-tutorials/Building-eCommerce-Web- Site-Using-Dreamweaver-PHP/83091-2.html?utm_medium=affiliate&utm_source=ldc_affiliate&utm_ content=524&utm_campaign=CD4386&bid=524&aid=CD4386&opt=
    Nancy O.

  • Extra row in input template in BPS

    hI EXPERTS
    Our business is shared by our company(referred to as 'internal') and some partners(referred to as External). we use web template reporting..so all web reports we have show data on internal and external business.So even in planning reports we have internal planning and external planning.
    we have one strange problem in one planning scenario.Until June this year,we had same Target value for both internal and external..so our user used to input one figure in one Input template which inturn will be showed as Target value in both Internal reports and External reports....we are using static webtemplate based reports...
    for e.g Sales Target  -
    10 million (in input template)
    but from July,its different target value for internal and external....so my user is giving first Internal figure in Sales Target column in Input template and generating static report for Internal users and then going back to Input template and giving 'external' figure in same Sales Target row in input template and generating static reports for External....so he is doing it two times every month....
    he wants to avoid this....he suggested something like have one row for 'Internal Sales Target' and one row for 'External Sales Target' in input template....so he can input different figures in one go and generate reports in one go....
    How can I achieve this?I am new to BPS....where do I need to do changes and what care I need to take while doing this...
    Thanks alot for your advice..........
    Rgds.

    Hello polintram,
    there are many, many options to solve the issue and it will depend on your data model, the konfiguration of your reports, and so on..
    if i understand your example, in your cutrent planning application it´s not possible to save the values permanent. you loose the internal  value by overwriting with the external value, because you use the same keyfigure-datamodel!? mhhh... the diffrent values are only stored in the generated reports!?
    possible solutions:
    1. two diffrent keyfigures - one for internal, one for external - there you will have one row and two columns
    2. diffrent character-combinations/ one keyfigure - that means you split your characterdefinition (for example with an infoobject which discrebed the "internal" "external" status)
    i think it shouldn´t be a big problem, but it depends on your datamodel and planning layout...
    BR david

  • Problem in inputting other language characters

    Hello,
    We have a problem in displaying Canadian French character in SAP Script layout. First I installed the French (Canada) - FR as input language from Control Panel and applied the language bar tool settings. Then logged into the develpoment server with FR as login language. Entered the Canada French text in a Notepad first and copied it from the notepad to SAP Script layout. Once i enter the text and save it, it says "The input field contains prohibited characters (already deleted)". And one of the character in the word is getting deleted and getting replaced by a junk character. The following is the Canadian French word which i was trying to copy and paste in SAP script layout:
    main-d'œuvre
    The SAP script layout is not recognizing the character 'œ' in the above word. It says this character is a prohibited character.
    I dont have any issue in inputting all other Canadian French alphabets/characters other than the above one particular character.
    Earlier I had worked on inputting different character sets like Japanese, Korean etc. and followed the same procedure to enter/input the other language text and had never faced this problem.

    Hi Sairam,
    I already tried using Text id created in SO10 for this purpose and there also i'm getting the same problem. Before i could save, the prohibited characters are deleted and replaced by junk characters.
    Thanks,
    Hema.

  • Report requirement, for count before the input selection.

    Hi All,
    I have a requirement:
    And in infoprovider we have :
    in 07.2011, 10 records were created.
    in 08.2011, 40 records were created.
    in 09.2011, 50 records were created.
    in 10.2011, 70 records were created.
    User enters month interval like 07.2011 - 10.2011
    and wants outout like:
    Calmonth:... 07.2011....08.2011.......09.2011.......10.2011
    Count  : ........30010.......30050...........30100..........30170
    Means.in report  07.2011 should show all the count upto 07.2011,
    Similarly 08.2011 show all counts upto 08.2011 month. And in same way others also.
    Since input is  07.2011 to 10.2011, so report is considering  only data between this range only.
    How do i get count before 07.2011 in report and meet report requirement.
    Please suggest and let me know if more information is required.
    Thanks,
    Jitender.

    Hi Jitender,
    It is not possible to generate the query columns dynamically in the output based on the user input.
    For getting the aggregated value what you can do is, create a customer exit variable on fiscal period and restrict it from some starting period till user entered period.
    In your example let us say you have data from 07.2009 then your customer exit variable will have range from 07.2009 till 07.2011. Use this variable in a RKF with count as key figure and period as customer exit variable here you will get the output as 30010.
    For getting the next columns you can change the period range by using offset. But you will have to create different columns beforehand in the query design itself. The only thing you can do is based on the user input different columns will be populated even you can keep the dynamic text using text variable so that you will get dynamic period heading but dynamic creation of columns is not possible.
    Regards,
    Durgesh.

  • Contacts CSV Input, order of columns?

    Hi,
    another beginning with Verizon email question...
    I tried importing a CSV file exported from Microsoft Live Mail into my Verizon Contacts list.
    After the import, all of the names and phone numbers were there in my Verizon contact list, but no email addresses, and I can see the email addresses in the CSV..
    I am thinking that the columns in my CSV file do not match what the CSV Importer is expecting.
    Anyone know what the order of the first few columns is?
    Thanks,
    Bryan.

    As far as the inputing into the Verizon contacts, it depends on the output format of the CSV file from your other emial account. You can manually add or delete the rows to make it input differently. If you have not already fixed this and still need help, please send me a private message.
    Anthony_VZ
    **If someones post has helped you, please acknowledge their assistance by clicking the red thumbs up button to give them Kudos. If you are the original poster and any response gave you your answer, please mark the post that had the answer as the solution**
    Notice: Content posted by Verizon employees is meant to be informational and does not supersede or change the Verizon Forums User Guidelines or Terms or Service, or your Customer Agreement Terms and Conditions or plan

  • Workflow advice on matching different cameras and lenses

    Greetings. I'm currently trying to match six cameras and all their different lenses to produce identical images and I need advice on fine tuning my workflow on making the camera profiles.
    Me and my team are shooting weddings. We have Nikon D3s, Nikon D3, 2x Canon 5D mk III, Canon 1D mk 3, Canon 5D mk II with 17 lenses and I'm in the middle of the process of matching their colors so when we shoot together I don't go crazy trying to match the white balance between all the cameras in Lightroom.
    The issue I have is that I managed to make all the colors, contrast, saturation and brightness for all cameras and lenses on daylight shots identical (with minimal differences) but shots under 2800k light are very different.
    I'll explain what I've done so far so that you can find my error and hopefully decide to help me.
    I bought a 24 patch color checker and took photos with all cameras - once with a 2800k halogen lamp and then with a 5500k strobe (Nikon SB-800 @ 1/16 power). I shot in RAW. The exposures are good - no blown highlights or unexposed parts. In Camera raw I applied the "Camera neutral" color profile for all cameras. I exported the shots in DNG. For each camera and lens I imported the halogen and flash lit file into DNG Profile editor.
    In the chart section I created a color table for the "2850 K only" halogen lit shot and then for the flash lit shot choosing "6500 K only".
    So far so good. The colors are good but to achieve them for the different cameras or lenses I need to input different color temperatures and tint. What I want is to set identical color temperature for all photos (say 5500k) and to get identical colors regardless of camera or lens.
    So the next step I took to get at least the daylight shots identical is to play with the "White balance calibration" under the "Color matrices" tab. For instance - DNG Profile editor determines that the flash shot should be set to 6050k +8 tint. I move the "white balance calibration" sliders until I reach the numbers I want above the flash shot (5500k). Because the colors shift I press the "Create color table" button again. My goal is to show the program that I want these (calibrated) colors to be achieved at 5500k +0 tint and not 6050k +8 tint. I get the result I want but that affects the 2850k shot. If I readjust the "white balance calibration" sliders for the 2850k shot and use "create color table" again, that ruins the 6500k adjustment.
    So using this workflow I get either the daylight shots right or the tungsten lit shots, but not both.
    So in short my question is - How do I create proper profiles that produce identical colors among all cameras and lenses under all white balance settings?
    Thanks in advance for your help and for your patience to read all this.
    PS
    I fear I may have put this topic in a wrong section. If you don't mind, I'd post it in the Lightroom section.

    Greetings. I'm currently trying to match six cameras and all their different lenses to produce identical images and I need advice on fine tuning my workflow on making the camera profiles.
    Me and my team are shooting weddings. We have Nikon D3s, Nikon D3, 2x Canon 5D mk III, Canon 1D mk 3, Canon 5D mk II with 17 lenses and I'm in the middle of the process of matching their colors so when we shoot together I don't go crazy trying to match the white balance between all the cameras in Lightroom.
    The issue I have is that I managed to make all the colors, contrast, saturation and brightness for all cameras and lenses on daylight shots identical (with minimal differences) but shots under 2800k light are very different.
    I'll explain what I've done so far so that you can find my error and hopefully decide to help me.
    I bought a 24 patch color checker and took photos with all cameras - once with a 2800k halogen lamp and then with a 5500k strobe (Nikon SB-800 @ 1/16 power). I shot in RAW. The exposures are good - no blown highlights or unexposed parts. In Camera raw I applied the "Camera neutral" color profile for all cameras. I exported the shots in DNG. For each camera and lens I imported the halogen and flash lit file into DNG Profile editor.
    In the chart section I created a color table for the "2850 K only" halogen lit shot and then for the flash lit shot choosing "6500 K only".
    So far so good. The colors are good but to achieve them for the different cameras or lenses I need to input different color temperatures and tint. What I want is to set identical color temperature for all photos (say 5500k) and to get identical colors regardless of camera or lens.
    So the next step I took to get at least the daylight shots identical is to play with the "White balance calibration" under the "Color matrices" tab. For instance - DNG Profile editor determines that the flash shot should be set to 6050k +8 tint. I move the "white balance calibration" sliders until I reach the numbers I want above the flash shot (5500k). Because the colors shift I press the "Create color table" button again. My goal is to show the program that I want these (calibrated) colors to be achieved at 5500k +0 tint and not 6050k +8 tint. I get the result I want but that affects the 2850k shot. If I readjust the "white balance calibration" sliders for the 2850k shot and use "create color table" again, that ruins the 6500k adjustment.
    So using this workflow I get either the daylight shots right or the tungsten lit shots, but not both.
    So in short my question is - How do I create proper profiles that produce identical colors among all cameras and lenses under all white balance settings?
    Thanks in advance for your help and for your patience to read all this.
    PS
    I fear I may have put this topic in a wrong section. If you don't mind, I'd post it in the Lightroom section.

  • How to input japanese text in x11 and openoffice

    I posted this question in the Mac OS section, but someone suggested that I post it here, too.
    I recently installed X11 on my computer to run OpenOffice.org. Unfortunately, I can't figure out how to switch between languages. Normally, I use the hot keys shift-cmnd-space to toggle between languages, but on X11, it won't allow me to do that.
    I don't know very much about X11, and I only downloaded it because I needed it to use OOo. OOo seems to have the easiest way to to input furigana characters when typing in Japanese, so it would make my life a lot easier if I could use OOo when creating Japanese documents. I'm not hellbent on using OOo, but the furigna input seemed easier to do than with Word (also, word has been crashing a lot lately, so I thought I'd try something else). If anyone out there uses a different program with furigana capabilities, I'd be open to hearing about that, too. Especially if it's easier to configure.
    Either way, I still need to figure out how to get X11 to input different languages. Can I use the katoeri program in X11 to input Japanese characters? Do I need to install something else? I'd also like to be able to use French, so if I need to do something special for that, please let me know how to do that, too.
    Also, if you couldn't tell, I don't know anything about computers, open source or codes. I don't have unix on my computer, but figured maybe someone here might be able to help me. Please be patient with my ignorance about all this stuff!
    Thanks in advance

    Either way, I still need to figure out how to get X11 to input different languages.
    Not really. You wouldn't use X11 for anything other than OO I think.
    Do I need to install something else?
    Yes, after some more research it seems you need something called kinput2. You can search this forum for Japanese. Here is one item of possible interest:
    http://discussions.apple.com/thread.jspa?messageID=5249892&#5249892
    I'd also like to be able to use French,
    No problem. You should be able to demonstrate that for yourself already, since it is the same as normal OS X apps. Do you know how to do that?
    I don't have unix on my computer
    Yes you do, OS X is based on Unix, and X11 requires it.
    http://www.apple.com/macosx/technology/unix.html

  • Passing 2 input structures into 1 output structure

    I have a BPM where I have data from 2 input different structures that needs to be mapped and passed to the same output structure at the same time.  Is this do-able through the BPM builder or the mapping builder or what?

    As i understand you have two inputs to be mapped to one output structure. You can do this in your BPM using Transformation step. You need to do multimapping to achieve this.
    Check this..
    http://help.sap.com/saphelp_nw04/helpdata/en/21/6faf35c2d74295a3cb97f6f3ccf43c/content.htm
    hope this helps...
    Regards
    Anand

Maybe you are looking for

  • SLA Alerts in DB polling proxy

    Hi I have created a DBAdapter to poll a table in the database for any inserts/updates. Have adopted the Logical Delete processing. Now I need to configure an SLA alert for the proxy service based on this DBAdapter. The alert needs to be raised when n

  • Specification of 2D barcoded forms

    Hi all, I am wondering if anyone can help we with my question. I am wondering how much data one barcode can contain, I mean how much data can I type into textfields. If I have a lot of data in my form which can not be contained in the barcode - how i

  • Photoshop CS 5.1 Crashing Before Start

    Hello, I have a bit of a problem and I'd appreciate any help.      I recently had to put in a new hard drive and reinstall Windows. Photoshop worked fine until two days ago when it stopped. When I try to start it, it will start going though the routi

  • Having trouble opening StuffIt Pro 2 privacy violation

    Unable to open StuffIt Pro 2 due security issue. It says the app can't be downloaded as its not compatible with Apple????

  • IPod Touch freezing everyday

    Hi, I'vd had my Touch since October and never had any problems with it. For the last week everytime I sync my Touch in my computer and unplug it when it's done syncing, the touch freezes (everytime) and I have to do a hard reset to get it working aga