Using a package for solving many mutating tables.....

Hi,
I need to solve more than one cases of mutating tables .. following the 'traditional' way described in:
http://asktom.oracle.com/tkyte/Mutate/index.html
For these cases , do you recommend me to use an individual package for each case ... or one to cover all cases (with different variables and PL/SQL tables... of course)....???
Many thanks ,
Simon

No , I meant that there are cases on different
tables....Then there is no other possibility but to create different packages.
When you write "use api's"... can you give some more
details....?????I mean to have a package to do all your dml in nice clean functions and procedures like procedure hire_employee, procedure fire_employee, function salary_including_commission and so on. Your procedures will include logic to validate all business rules. Then grant execute privileges on this package (api) to the users that should be able to work with employees and revoke all DML privileges on the table from anyone, even revoke the "CREATE SESSION" privilege from the schema owner when done installing to prevent direct access on the table.
Now every DML action will be through your api and it's not possible to bypass constraint validation.
Regards,
Rob.

Similar Messages

  • Can i use create function for MSSql scalar and table valude function.

    Hi,
    1) Can i use create function for MSSql scalar and table valued function?
    2) How many type of user defined function are there in oracle 11g express?
    3) And can i reture any "type" form user defined function?
    yourse sincerely

    944768 wrote:
    Q1)That means even if i return predefined types like integer, varchar2 then also PGA is used ?The data type does not determine where the variable is stored. A string (called a varchar2 in Oracle) can be stored in stack space, heap space, on disk, in a memory mapped file, in a shared memory, in an atom table, etc.
    It is the who and what is defining and using that string, that determines where and how it is stored.
    The Oracle sever supports 2 languages in PL/SQL. The PL (Programming Logic) language is a procedural/declarative language. It is NOT SQL. SQL is integrated with it. The PL/SQL engine uses private process memory (PGA). So PL/SQL variables exist in the PGA (but there are exceptions such as LOBs).
    Q2) So please suggest me solution in oracle.Sounds to me you are looking at how to implement a T-SQL style function as an Oracle function, and once implemented, do joins on the function.
    Do not use PL/SQL in SQL in place of a SQL select. It is not T-SQL.
    One cannot use PL/SQL to create functions along the style of T-SQL, where the function executes a SQL using some conditional logic, and then return as if the function was a native SQL select.
    T-SQL is an extension to the SQL language - making it a hybrid and very impure language implementation. PL is based on ADA - part of the Pascal family of languages. The E-SQL (embedded SQL) approach used in languages like C/C++, Cobol and Ada, has been transparently done in PL/SQL. You can write and mix PL code and variables with SQL code. And the PL/SQL engine figures out how to make the call from the PL/SQL engine to the SQL engine.
    But PL/SQL is not "part" of the SQL language and does not "extend" the SQL language in a T-SQL fashion.
    So you need to check your SQL-Server preconcepts in at the door, as they are not only irrelevant in Oracle, they are WRONG in Oracle.
    The correct way in Oracle, in a nutshell - Use the SQL language to do data processing. Use PL/SQL to manage conditional process flow and the handling of errors.

  • Hi Dude,     I ve seen all the threads from first to last even am gonna geta iphone 4s from Thailand. Would like to know which sim will be working fine in chennai as you all are using d phone for past many days???  Is it advisable to buy a phone

    Hi Dude,
    I ve seen all the threads from first to last even am gonna get a iphone 4s from Thailand. Would like to know which sim will be working fine in chennai as you all are using d phone for past many days???  Is it advisable to buy a phone from abroad.

    Thanks for that. Much more constructive than the last comment. It's only the restriction code I can't recall, not the access passcode. So I can currently access the device, just not age restricted content. Does that's make a difference? I also wondered if anyone knew how many attempts you get to try to get it right. Now tried 21 times and so far nothing bad has happened but I am concerned I'll eventually be completely locked out of the device. That doesn't seem in the spirit of things though. Surely it's foreseeable that a child could repeatedly try to guess the code so I can't see that it would be right to lock the device down completely in that circumstance, particularly if the access code is being typed in correctly every time.
    Thanks

  • How to use the Packager for iPhone ?

    Hi What`s up guys??
    I Download the Packager for iPhone and i can`t used this ?
    please help me and show me in picture how to use this.

    my question about http://labs.adobe.com/technologies/packagerforiphone/ package.

  • Is there an RI that uses div s for layout instead of table s?

    I am using Struts Tiles, DWR, script.acu.lous drag and drop and JSF.
    So, my problem is that since I have incorporated <f:verbatim>, the page is being rendered incorrectly and I don't know how to recombine it back to look like it should. The layout I am doing has a header at top, left hand column for navigation and content well in the middle. Essentially, this boils down to, in JSF, a table row with one table data element for the header and one table row with two table data elements for the nav and content. In the content well, it utlizes a JSF subview with JSF components and then below this a JSF subview with a JSF <f:verbatim>. On the pages that I don't use <f:verbatim>, the layout renders correctly. The rendering problem is that when the markup is rendered, the <f:verbatim> tag is rendered outside the <f:view> with the other JSF subview in the content rendered correctly in the layout. In other words, the whole page except the <f:verbatim> is rendered in a <table>. I understand, from an onjava article, the JSP and JSF rendering occurs in parallel and I am guessing this might be the problem. The page is rendering now with the header in the right place, the nav not behaving like it used to but in the correct place, the portion of the content that is a bunch of JSF components is located to the right of the nav. The <f:verbatim> that should be rendered directly below the JSF components on the content page and to the right of the nav is rendered under both the nav and JSF components outside the <table>.
    Is there a RI that uses divs to do layout instead of tables?
    OR
    How can I get the <f:verbatim> back into the flow of the page so everything is lined up correctly?
    Please feel free to yell at me if this is addressed in another thread. I will search for it if this is the case. I haven't had the time to do a thorough search.
    Regards,
    Dan
    sidenote: Using tables for layout is not considered good web design. There are plenty of sites that illustrate use of CSS for layout. I find this a little strange since Sun is always promoting best practices and then it doesn't embrace other industry best practices. This seems more like a MS bullying tactic, but maybe Sun and MS are one in the same.

    Cool. That is a great move. The only concern I have now is that there aren't any containers out that support JSP 2.1 and Servlet 2.5 to enable JSF 1.2 except for glassfish. I am using tomcat and not a heavy weight application server. I couldn't find a roadmap on Apache either for Tomcat to know when they will be coming out with Tomcat 6 I imagine. Is there an article or tutorials out yet that demonstrate how to markup a page with the new specification? That yould help. The more I think about using custom components, the more I lean towards using the standard.
    Thanks for the heads up. Now I have to think about setting up glassfish and migrating from tomcat unless there is other news I am unaware of =P.
    Dan

  • Can it be possible to use SUM twice for the same internal table

    Hi Guru,
    my requirement is follewing.
    I need to use a SUM for the same internal twice. 
    itab.
    first : like SUM  will sum up all the value
    and second like
    if  wa_tab-field = ' S'
    sum.
    ...some logic
    else  if wa_tab-field = h
    some logic
    endif.
    can i use  SUM in above way.
    Many thanks,
    Anuj.

    Hi,
    yes it could be use multiple time.
    Here example.
    sort GT_COLLECTHI by atnam ATWRT.
      loop at GT_COLLECTHI into gs_collecth.
        at end of ATWRT.
          sum.
          append gs_collecth to gt_collecth.
          clear:gs_collecth.
          sum.
        endat.
        at end of ATNAM.
          sum.
          append gs_collecth to gt_collecth.
          clear:gs_collecth.
          sum.
        endat.
      endloop.
    Thank you
    Jan

  • Error while using Mail Package for dynamic email address - XMLScanException

    Hi All,
        i am trying to implement File_to_Mail Scanrio. Here i am using mail package stuff to make use the dynamic mail Id's. i am following the blog /people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address. i have finished all the settings as per the blog but it throwing the following error
    failed to send mail: com.sap.aii.messaging.util.XMLScanException: expecting start tag: Mail, but found Mail at state 1
    Please help me to resolve this error.
    Thanks in advance
    -Siva
    Edited by: Siva Ram on Jan 18, 2008 7:43 AM
    Edited by: Siva Ram on Jan 18, 2008 7:43 AM
    Edited by: Siva Ram on Jan 18, 2008 7:44 AM
    Edited by: Siva Ram on Jan 18, 2008 7:44 AM
    Edited by: Siva Ram on Jan 21, 2008 5:59 AM

    Hi Siva
    check with these threads discuss the same XMLScanException
    Mail adapter fails when using Mail Package Format
    Error in E-mail Adapter - Message protocol XIALL
    Mapping Error with mail package
    Error in Mail Adapter
    See the below links also
    /people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit
    /people/michal.krawczyk2/blog/2005/11/23/xi-html-e-mails-from-the-receiver-mail-adapter
    /people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address
    /people/sravya.talanki2/blog/2005/08/18/triggering-e-mails-to-shared-folders-of-sap-is-u
    /people/prasad.ulagappan2/blog/2005/06/07/mail-adapter-scenarios-150-sap-exchange-infrastructure
    /people/michal.krawczyk2/blog/2005/11/23/xi-html-e-mails-from-the-receiver-mail-adapter
    Error in Mail Adapter
    Mapping Error with mail package
    Regards
    Abhishek

  • Sincere Eclipse 3.0.2 build problems using a package for all Eclipse Java p

    Hi,
    I had the following problem:
    - jar-file put into a directory (for jdbc-access)
    - Environment variable set in Window/preferences/Java/BuildPath/ClassPathVariables:
    Name: classpath (could be any other name, does not correlate with WIN env. var.)
    Path: C:\java\eclipse\jars\mysql-connector-java-3.1.8-bin.jar
    - class-file was automatically built by Eclipse, error message:
    �. java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
    In Windows I set the classpath environment variable to
    classpath=.;C:\java\eclipse\jars\mysql-connector-java-3.1.8-bin.jar
    In Windows/i.e., a DOS-Shell. It works
    As it didn�t work in Eclipse, I deleted Eclipse and installed it again (from an elder version I had on another workstation)
    After starting Eclipse asked me to rebuild all -> Yes (it then needed some time to do so)
    Then it worked
    So, right here I thought I knew how to go on in other projects using this jar-file, but:
    The same problem appears in another project, but it works in WIN/DOS command line, but not in Eclipse. Project/Clean und rebuilding automatically or manually doesn�t help.
    As a workaround for this project I did in
    Project/Properties/Java/BuildPath/Projects I marked a link to the project where it works (see above), and now it works, too.
    But I am not satisfied, I don�t like trial and error solutions.
    I suppose that Project/Clean doesn�t really clean properly.
    Has anybody made similar experience and knows the real solution?
    Thanks
    Michel

    JediKnight wrote:I didn't find it in AUR
    What search term did you use??  Here is monodevelop-git already in the AUR.
    It seems it may have been abandonded, but perhaps you could take over that package rather than starting a new one.
    Additionally, a patch is applied in that PKGBUILD.  Perhaps that could be needed to solve your problem.

  • Using ice-Package for import in other systems?

    Hi,  we would like to import ice-packages into other applications. No specific applications are meant, but we are researching other usage possiblities for our current KM-Content.
    What's the format/content of an ice-package?
    How can it be read by other applications?
    Thanks for your replies.
    Best regards
    Sandra

    hi
    An XML based distribution protocol that enables controlled distribution of information from a content provider (syndicator) to a set of subscribers (server to server)
    Defines
    roles and responsibilities of syndicators and subscribers
    format and method for content exchange
    Provides support for management and control of    syndication relationship
    Catalog           A set of subscription offers. A Subscriber obtains
              a catalog from a Syndicator, and uses the offers within
              the catalog to initiate the ICE subscription protocol.
    ICE/HTTP     The specific binding of the ICE protocol to the HTTP protocol.
    Package          A single delivery instance of a group of items. For example,
              a single issue of a parts manual or a single set of headlines.
              A package is the atomic unit of information distribution in ICE.
    Payload          A protocol structure encapsulating a set of logical ICE
              operations delivered at discrete intervals. An instance
              of an XML document formatted according to the protocol
              definitions contained in this specification.
    Subscriber     One of the two parties in an ICE relationship
              (the other one being the Syndicator). The Subscriber uses
              ICE to obtain information and content from the Syndicator.
    Subscription     Precise meaning directly related to the corresponding protocol
              data structure; do not confuse the usage of an agreement to
              deliver a package sequence from a Syndicator to a Subscriber.
              There may be many independent subscriptions between a
              Syndicator and a Subscriber.
    Subscription offer      A proposed set of parameters for a particular subscription.
              Within ICE, the term subscription offer has the term "offer" in
              this specification with the more generic and abstract concept of
              offers in the business world sense.
    Syndicator     One of the two parties in an ICE relationship (the other one
              being the Subscriber). The Syndicator uses ICE to send information
              and content to the Subscriber.
    A syndicator bundles content (resources) as offers.
    A subscriber requests a catalog of these offers and wishes to subscribe to one of them.
    The syndicator assigns a subscription ID and accepts the subscription.
    The subscriber pulls content by requesting current state of his subscription.
    The syndicator answers with payloads containing packages of items and updates the  subscriber‘s state.
    Create and edit offers
    Assign a delivery method and an automatic delivery schedule to an offer
    Admit subscribers
    Allow anonymous  access to content offers
    Maintain syndicator  properties (e.g. server  name,...)
    Establish a connection to a syndicator
    Subscribe to an offer in the content catalogue of a syndicator
    Edit or delete existing subscriptions
    Maintain subscriber properties.
    Hope this helps you .please don,t forget to give points
    with regards
    subrato kundu

  • Need to use default package for JNI code?

    Hi,
    I don't have much experience with JNI code, so excuse me if I make a silly mistake.
    I have a set of DLLs to interface with Microsoft native speech code ("Microsoft Sam") -- a GPL library called Quadmore. Quadmore has some sample Java code to work with the libraries, all of which they put in the default package (no package). If I move their code to a named package, it breaks. The Java code is able to load th libraries, but can't find any of the methods.
    Looking at the source for their DLLs (though I don't speak C++), the method names are things like
    JNIEXPORT jboolean JNICALL Java_QuadmoreTTS_SpeakDarling(JNIEnv *env,jobject obj,jstring strInput)As far as I understand, this implies that the QuadmoreTTS.class that calls the code must be in the default package, as otherwise the method name needs to be prepended with a package name.
    If that's so, then there's no way I can use the code as-is, right? Naturally, the rest of my program is in named packages, and I can't import any class that is in the default package, right? I've tried placing all their code in a jar and adding the jar to my classpath, but I still can't import any of their classes as they are in the default package.
    Is the only solution to re-compile all their C/C++ code to let it use packages? Am I being dumb and missing something? I'm pretty sure other people have used Quadmore before, so I can't believe that they've never had this problem before.
    Any suggestions greatly appreciated!
    Sam

    C/C++ functions in JNI must conform to the prototypes produced by running the javah compiler against the class file with native methods in it. So if you move the class to another package, the prototypes change. If you doun't change the compiled C coudes to suit, you will get undefined method errors when you load the dll as the JVM won't be able to match the native methods to the methods in the dll (it will call WinLoadLibrary() and WinLoadProcAddress() or somesuch under Windows).

  • Using Field Exit for a field in table KNA1

    Hi everyone,
    I am working on a ticket, the problem is we have a field called STRAS in table KNA1 which holds the address of the customer but now we want to increase the length of this field from 35 charachters to 55 due to some business requirement. SO my question is if this can be done using Field Exit and if yes.. can you please tell me how as I have never used Field exits.
    Thanks,
    Rajeev

    Hi,
    Using field exit, you can only validate the data entry for the field (either globally or on a particular screen field)
    This is usually done by implementing the field exit for the data element corresponding to the field(in your case STRAS_GP)
    Hence you cannot increase the length of the field using the concept of the field exits...
    Please note that after SAP R/3 4.6c, SAP has stopped the creation of field exits and there will be no support for any new ones created.
    Regards
    Shiva

  • Using Bulk operations for INSERT into destination table and delete from src

    Hi,
    Is there any way to expediate the process of data movement?
    I have a source set of tables (with its pk-fk relations) and a destination set of tables.
    Currently my code as of now, is pickin up the single record in cursor from the parentmost table, and then moving the data from other respecitve tables. But this is happening one by one... Is there any way I can make this take less time?
    If I use bulk insert and collections, i will not be able to use the DELETE in the same block for same source record.
    Thanks
    Regards
    Abhivyakti

    Abhivyakti
    I'm not 100% sure how your code flows from what you've stated, but generally you should try and avoid cursor FOR LOOPS and possibly BULK COLLECTING.
    I always follow the sequence in terms of design:
    1. Attempt to use bulk INSERTS, UPDATES and/or DELETES first and foremost. (include MERGE as well!)
    2. If one cannot possibly do the above then USE BULK COLLECTIONS using a combination of RETURNING INTO's and
    FORALL's.
    However, before you follow this method and if you relatively new to Oracle PL/SQL,
    share the reason you cannot follow the first method on this forum, and you're bound to find some
    help with sticking to method one!
    3. If method two is impossible, and there would have to be a seriously good reason for this, then follow the cursor FOR LOOP
    method.
    You can combine BULK COLLECTS with UPDATES and DELETES, but not with INSERTS
    bulk collect into after insert ?
    Another simple example of BULK COLLECTING
    Re: Reading multiple table type objects returned
    P;

  • Simple tutorial for using alv-grid for data entry into table, please!

    Hi friends,
    I urgently need a basic, simple tutorial or step-by-step or sample code on the following:
    I want to have a alv-grid like entry list where i can add/remove additional lines/entries that then are saved into an internal table. Please help me with that, as i studied already some documents but do not really get the idea of how to do - <REMOVED BY MODERATOR>
    Thanks in advance,
    Edited by: Alvaro Tejada Galindo on Jan 11, 2008 6:18 PM

    hi clemens,
    follow this link it may be useful to u
    http://www.sap-basis-abap.com/sapab033.htm
    http://www.abapprogramming.blogspot.com/2007/04/alv-details.html
    for tutorial on alv:
    http://www.sapbrainsonline.com/TUTORIALS/TECHNICAL/ALV_tutorial.html
    i have pdf material also ican give it to you if u give your email id.
    hope this helps you
    regards,
    sravanthi

  • How to use reflection package for dynamic object creation

    I want to convert a "DataObject (SDO) " into "Pure java object".
    For this i want to create a java object with the fields in Dataobject, and this should be in generic way.

    Use Java reflection if you have the java class already created.
    Otherwise use Java IO API for creating the .java file and compile it dynamically by calling javac exe from java code and executing using reflection

  • Use Regex package to solve HTML coding

    Hi,
    I have got around 1000 HTML files. Now suddenly the contents within the <body> and </body> tags needs to be changed. Please suggest what will be the regular expression for doing the same using the java.util.regex package

    What do you mean by "the same"? What shall be replaced? Everything within the body tag? Show us what you got so far, and someone may have an opinion.

Maybe you are looking for

  • Customer support is worst in the industry

    You need to fire every single person that answers the phone and start from scratch with people that know how your system works so far we have been trying a month to get it right and it has only cost me roughly 6 hours of sitting on hold. At least get

  • What would the CODE be, in Flash, for making buttons transparent on MOUSEOVER?

    I am building my site in Flash, and I have these thumbnails, that when moused over, a larger version pops up. Problem is, they are being obscured by the other thumbs. See for yourself: http://www.andreadams.com/Andre_Adams_products_games.htm (also at

  • TestStand 3.1 Run Selected Steps generates Visa error -1073807346?

    When using Run Selected Step in TestStand 3.1 to interactively execute previous steps in a sequence a Visa error (-1073807346 The given session or object reference is invalid.) is generated even though the selected step has previously executed with n

  • DSEE 6.0 and Unix authentication

    Hello, Anybody configured an account for Unix auth. using LDAP? If you can share the steps needed, I will really appreciate it. Looked through the admin guide and did not come across any section on how to setup an account for Unix authentication? How

  • Error when updating but i think i dont have apple mobile software to update correctly, help?

    When i try to update my ipod touch it appears with an error message and the screen on my ipod appears as the restore screen. My computer also pops up saying new software, apple mobile device software needed, my computer tried to find this but fails.