Difference between creating one-time-only procedures and regular procedures

I understand the definition of one-time-only procedures but when I look at the code examples, I do not see any differences. Can you shed some light on this for me? Thanks!

Are you talking about the initialization block of a package?
If so, that is a PL/SQL block that only exists in a package body, not in a procedure. The syntax within the initialization block is no different than the syntax within a procedure, function, anonymous PL/SQL block, or any other PL/SQL block.
Justin

Similar Messages

  • What's the difference between Sun ONE Application Server 6 and IAS6.X

    Hi, can anyone tell me what's the difference between Sun ONE Application Server6 and IAS 6.x?
    Thanks a lot!

    This is only the change in name from iPlanet Application Server to SunONE Application Server. Rest all is same as far as the product is concerned.

  • Difference between max response time of operation and service.

    Hi All,
    I am using ALSB to implement SOA.While monitoring the statistics for a proxy service based on WSDL (web service) ,noticed one thing that max response time of a service operation is different than max response time for that particular service.E.g max response time for one of the operation is 3462 (ms) where as max response time for that service was 4467 (ms).
    Can any one help me to identify why there is difference between these two?

    I have also noticed this inconsistence. There is probably no explanation in OSB (ALSB) documentation, so I can only guess. Maybe OSB starts to measure response time for service earlier then for an operation. The reason for that could be that OSB can identify service (based on endpoint) earlier then operation (based on request data which have to be parsed first). This could cause a difference in response times. However, this difference should be much smaller than a second (your case). In my case it is usually a matter of few milliseconds.
    Please remember that all of above is just my imagination. :-)

  • Difference between Create Index without and with Parallel Clause

    Hi all.
    I want to know the difference between Create Index with Parallel clause and Create Index without Parallel clause.
    Any documentation.
    Thanks,
    Hassan

    Sure?
    dimitri@VDB> create table t parallel 3 as select * from all_objects;
    Table created.
    dimitri@VDB> set autotrace traceonly
    dimitri@VDB> select * from t;
    40934 rows selected.
    Execution Plan
    Plan hash value: 3050126167
    | Id  | Operation            | Name     | Rows  | Bytes | Cost (%CPU)| Time     |    TQ  |IN-OUT| PQ Distrib |
    |   0 | SELECT STATEMENT     |          | 40601 |  5075K|    50   (0)| 00:00:01 |        |      |            |
    |   1 |  PX COORDINATOR      |          |       |       |            |          |        |      |            |
    |   2 |   PX SEND QC (RANDOM)| :TQ10000 | 40601 |  5075K|    50   (0)| 00:00:01 |  Q1,00 | P->S | QC (RAND)  |
    |   3 |    PX BLOCK ITERATOR |          | 40601 |  5075K|    50   (0)| 00:00:01 |  Q1,00 | PCWC |            |
    |   4 |     TABLE ACCESS FULL| T        | 40601 |  5075K|    50   (0)| 00:00:01 |  Q1,00 | PCWP |            |
    --------------------------------------------------------------------------------------------------------------Looks like PQ to me.
    alter table t noparallel;
    Table altered.
    dimitri@VDB> select * from t;
    40934 rows selected.
    Execution Plan
    Plan hash value: 1601196873
    | Id  | Operation         | Name | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT  |      | 40601 |  5075K|   135   (1)| 00:00:02 |
    |   1 |  TABLE ACCESS FULL| T    | 40601 |  5075K|   135   (1)| 00:00:02 |
    --------------------------------------------------------------------------Same if we use an Index:
    dimitri@VDB> create index t_idx on t(object_name) parallel 3;
    Index created.
    dimitri@VDB> select object_name from t;
    40934 rows selected.
    Execution Plan
    Plan hash value: 4278805225
    | Id  | Operation               | Name     | Rows  | Bytes | Cost (%CPU)| Time     |    TQ  |IN-OUT| PQ Distrib |
    |   0 | SELECT STATEMENT        |          | 40601 |   674K|    50   (0)| 00:00:01 |        |      |            |
    |   1 |  PX COORDINATOR         |          |       |       |            |          |        |      |            |
    |   2 |   PX SEND QC (RANDOM)   | :TQ10000 | 40601 |   674K|    50   (0)| 00:00:01 |  Q1,00 | P->S | QC (RAND)  |
    |   3 |    PX BLOCK ITERATOR    |          | 40601 |   674K|    50   (0)| 00:00:01 |  Q1,00 | PCWC |            |
    |   4 |     INDEX FAST FULL SCAN| T_IDX    | 40601 |   674K|    50   (0)| 00:00:01 |  Q1,00 | PCWP |            |
    -----------------------------------------------------------------------------------------------------------------Everything done on a single CPU (also only one core in the CPU) AMD Box.
    Dim

  • What is the difference between the new version of lion and the one manufactured last year.

    I just bought a new iMac. I found out it is the version of lion from mid last year and not the latest version. What is the difference?Should I return it and buy the latest version?

    Shootist007 wrote:
    petermac87 wrote:
    Shootist007 wrote:
    Barney-15E wrote:
    The difference between the one releases last year and the one that will be released this year is that the one that will be released this year is different from the one released last year.
    Not really. Lion is Lion, last year, this year, it is still Lion.
    Yes, but it's a different version. Very cleverly said Barney
    Pete
    No it is not. The newest update just adds some things to it, no new features and only fixes bugs. It is still Lion OS X 10.7.x. It is not 10.6 or 10.8.
    It is just a "Point" release and not a New Operating system. All Macbook Pros that could run Lion from last year can run the newest Lion Point release from this year.
    Oh and by the way Barney was talking about Mountain Lion, 10.8. Which is a NEW OS X operating system and has nothing to do with Lion 10.7.x. And it is not out yet.
    lol. Don't bust a blood vein. The comment was made in jest, but if you want to be serious, then OK 10.7 and 10.7.1 were different than 10.7.2 and 10.7.3. Why? Well one little thing called 'iCloud' for a start.
    Shootist007 wrote:
    Oh and by the way Barney was talking about Mountain Lion, 10.8. Which is a NEW OS X operating system and has nothing to do with Lion 10.7.x. And it is not out yet.
    Sorry, there was absolutely no mention of the upcoming 10.8 that I could see in Barney's comment.
    Cheer Up. Life can't be that bad.
    Pete

  • One Time Only charges in SD-SA and Sales Orders

    Hi,
    We have a requirement to provide a header surcharge condition in sales order / scheduling agreement for one time only charges. This basically required to throw a lump sum charge on order and charge the customer. User would enter the pricing condition manually whenever required and then once this is entered the full value of condition should be charged on the next invoice that is created, after adding the pricing condition on order.
    The challenges that we are facing are:
    1. Once the pricing condition is entered on order/SA, standard system would keep on condition in all the subesquent invoices.
    2. The amount charged is prorated based on the quantity billed.
    3. Any subsequent change of quantity in order results in recalcuation of condition value based on the quantity and might lead to a situation where amount would exceed the actual intended charge.
    1. Is there a way to restrict order pricing condition to be copied on to one specific billing document. Once it has been charge should not be charged again on any of subsequent invoices.
    2. Whenever the condition is passed to invoice, should be passed with full value.
    3. Subsequent changes to order quantity (due to new del. schedule or order change) should not trigger the recalculation of this header condition.
    Adding condition in delivery or invoice directly would easily meet the requirement but due to some limitation we have to add the condition at order only.
    Can anyone suggest how to approach this problem technically? Is there any enhancement possiblity. Can we create some base value formula/condition value formula to override SAP standard behaviour.
    Any help in this regard is highly appreciated. Points guaranteed for helpful replies.
    Regards,Gajendra

    Solved myself

  • Whats the difference between the 4th gen iPod touch and the new one ?

    whats the difference between the 4th gen iPod touch and the new one apart from it being white?

    Yeah it sadly appears to be only color, I guess Apple and thier infinate wisdom decided iPod touches dont need to be as fast as the new iPhone. If it had a5 it could do Siri:(

  • One-time only procedures

    My one-time only procedures (i.e. those defined at the bottom of
    a package body and not a part of any other procecures/functions)
    seem to run more than once. My understanding is that they should
    only run once upon instantiation but they run each time the
    package is called. Am I doing something wrong? Is there some
    server process that recompiles packages on the fly?
    Thx.

    Ooops. never answer a question before the second coffee of the
    day.
    Yes, I should have said that the initialisation segment is run
    once for each session. if you run a procedure, log out, log
    back in and run it again then the initialisation segment is
    executed again.
    so my advice was correct even if my explanation was muddled.
    apologies, APC

  • Difference between Tax Procedure and Pricing Procedure

    What is the major difference between tax procedure and pricing procedure. Can any one explain in detail.

    Procedures are used, for example, in the following applications:
    Pricing in sales and distribution
    Applying overhead in Product Costing (costing sheets) and for CO internal orders
    Calculating accrued costs in Profitability Analysis
    Output control (printed confirmations, EDI messages, electronic mail)
    Account determination
    Calculating taxes on sales/purchases
    Calculating accruals in Cost Center Accounting
    Pricing for resource planning

  • What is the difference between the sports edition apple watch and the normal edition, is it the bands different or do the they have different apps. Also could you take the bands off and put new ones on(change the bands)?

    what is the difference between the sports edition apple watch and the normal edition, is it the bands different or do the they have different apps. Also could you take the bands off and put new ones on(change the bands)?

    what is the difference between the sports edition apple watch and the normal edition, is it the bands different or do the they have different apps. Also could you take the bands off and put new ones on(change the bands)?

  • What is difference between tax procedure and pricing procedure?

    Dear Gurus,
    Would you please let me know the difference between tax procedure and pricing procedure?
    Why it is necessary to maintain them separately?
    Thanks in advance,
    Ranjan

    Hi
    Tax procedure settings
    OBBG - Assign Country to calculation procedure.
    OBCO - Specify structure for Tax Jurisdiction code. For country like U.S.A.
    LG -> character length of first level of hierarchy within your tax jurisdiction code structure.
    LG -> Second level of hierarchy as above.
    LG -> Third level of hierarchy as above.
    LG -> Fourth level of hierarchy as above.
    TX -> Tick if you want the system to determine taxes on a line by line basis instead of determining them on a cumulative basis
               per tax jurisdiction code.
    OBCP - Define Tax Jurisdiction code
    Dil -> Tick if you do not want tax amounts included in the based amount used for calculating cash discounts.
    Txl -> Tick if you want the cash discount amount deducted from the base amount that is used to calculate taxes.
    FTXP - Define Taxes on Sales/Purchases Code.
    OBCL - Allow Tax codes for non-taxable transactions.
    In MM module, pricing procedure is used during RFQ and PO creation. Total value of material based on all addition and subtraction like discount, surcharge, tax, freight, etc. In this we are defining pricing procedure and linking to vendor and purchase department through the virtual schemas. 
    Following steps for pricing procedure as,
    1. Define conditions.
    2. Define pricing procedure.
    3. Define virtual purchase organization and vendor.
    4. Info Record.
    Regards,
    Raman

  • Difference between Compute lead time and Rool up lead time

    Hi All,
    Could you please clarify what is difference between Compute Lead time and Roll up lead time.
    I see in Routing > Tools.
    Thanks in Advance
    Regards
    Ravi

    Refer The Oracle document
    Manufacturing Lead Time Computations
    Manufacturing Lead Time Computations (Oracle Bills of Material Help)
    Rolling Up Cumulative Lead Times
    Rolling Up Cumulative Lead Times (Oracle Bills of Material Help)

  • Difference between Avg OLAP time and Avg Frontend Time

    Good morning all!
    What is the difference between Avg OLAP time and Avg Frontend Time?
    I thought OLAP time would be included in Frontend time, but the numbers are not matching up?
    Thanks so much!

    Hi,
    Front-End time is the Renderring time of the object at the front-end. Basically when ever a BI Application or BI application object is executed it spends time at various levels like at Data Manager, OLAP, Planning, Front-end. Can check the stat's in view RSDDSTAT_OLAP.
    When the query is taking long time so u need to the time at ST03 Tcode/else RSDDSTAT table .Here u can find the DB time , OLAP time, Front end time If the DB time is more than 30% of time of total time then you got for Compressin , aggregates, indexes partitioning.
    The capture of query runtime statistics is done differently in 3.5 and in BI 7.0
    However, the OLAP time and DB times are always captured as two different things.
    In 3.5 refer to fields QTIMEDB and QTIMEOLAP. They are two separate measurements. In 7.0, they are TIMEREAD and TIMEOLAP in rsddstat_dm and rsddstat_olap tables.
    pls go through this link:
    http://help.sap.com/saphelp_nw70/helpdata/en/43/e39fd25ff502d2e10000000a1553f7/frameset.htm
    Hope this helps
    Regards
    csm reddy

  • Backup SQL Agent Jobs - whats the difference between "create to" and "drop to" using "script job as"?

    Hi,
    This should be straightforward, but being new to SQL Server 2008, can someone advise the difference between "create to" and "drop to" using "script job as"?
    Thanks
    IT Support/Everything

    hello,
    "CREATE TO" create a CREATE statement for the job, e.g. to execute this script on a other server to create the same job there.
    "DROP TO" means you get a script to delete an existing job.
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • What is the difference between the new 13" MacBook Pros and the previous version of the 13" MacBook Pro?  I purchased an "old" one from Best Buy the day before the announcement of the new models.

    What is the difference between the new 13" MacBook Pros and the previous version of the 13" MacBook Pro?  I purchased an "old" one from Best Buy the day before the announcement of the new models.

    See the specs:
    Compare Notebooks - Apple Store (U.S.)
    Compare with your model. If you are within 14 days of purchase you can exchange for the new model for the difference in price, if any. Be sure to have all the original packaging and your receipt.

Maybe you are looking for