--+APPEND Hint -- advantages and disadvantages in OLTP system

I have a process in with an insert statement takes a lot of time. When I modify the insert statement to use --+ APPEND hint the insert time reduces a lot. There are a lot of indexes on this table and the table and indexes are in logging mode.
Can someone please clarify is using +APPEND hint will have any disadvantage in an OLTP system . Will any data be lost in case of failure?
Thanks a lot!!

Jim,
Append means two things: 1) don't generate redo if possible, 2) don't run around looking through freelists for existing blocks into which a stray row or three could fit, just insert the rows into new empty blocks.
The OP stated that the table is in logging mode. This means that the insert/append will be logged and hence the transaction is recoverable. It also means that append doesn't get rid of redo generation, it only gets rid of the freelist overhead.
I'll create a table that occupies multiple blocks:
SQL> create table t as
  2  select * from user_objects;
Table created.
SQL> insert into t
  2  select * from t;
58 rows created.
SQL> /
116 rows created.
SQL> /
232 rows created.
SQL> /
464 rows created.
SQL> select rowid_block, count(*) cnt
  2    from (
  3  select dbms_rowid.rowid_block_number(rowid) AS rowid_block
  4    from t
  5         )
  6   group by rowid_block;
ROWID_BLOCK        CNT
      32542         58
      32543        183
      32544        183
      32545        183
      32546        183
      32547        138
6 rows selected.Then I'll empty most of the rows out of those blocks:
SQL> delete from t
  2   where object_id != 32217;
912 rows deleted.
SQL> select rowid_block, count(*) cnt
  2    from (
  3  select dbms_rowid.rowid_block_number(rowid) AS rowid_block
  4    from t
  5         )
  6   group by rowid_block;
ROWID_BLOCK        CNT
      32542          1
      32543          4
      32544          3
      32545          3
      32546          3
      32547          2
6 rows selected.Then I'll perform a "normal" bulk insert and we'll see the data added to an existing block:
SQL> insert into t
  2  select * from t;
16 rows created.
SQL> select rowid_block, count(*) cnt
  2    from (
  3  select dbms_rowid.rowid_block_number(rowid) AS rowid_block
  4    from t
  5         )
  6   group by rowid_block;
ROWID_BLOCK        CNT
      32542          1
      32543          4
      32544          3
      32545          3
      32546          3
      32547         18
6 rows selected.However, a bulk insert/append will use a new block -- bypassing the freelist:
SQL> insert /*+ append */ into t
  2  select * from t;
32 rows created.
SQL> commit;
Commit complete.
SQL> select rowid_block, count(*) cnt
  2    from (
  3  select dbms_rowid.rowid_block_number(rowid) AS rowid_block
  4    from t
  5         )
  6   group by rowid_block;
ROWID_BLOCK        CNT
       2133         32
      32542          1
      32543          4
      32544          3
      32545          3
      32546          3
      32547         18
7 rows selected.Scott

Similar Messages

  • CCM or MDM - What are the advantage and disadvantage

    Hi
    We are planning to install a catalog but is now in doubt what catalog system we must use. We use SRM5.0 but will upgrade to SRM6.0 if we have to.
    Can someone tell me the advantage and disadvantage for CCM and MDM?
    I know that some patches will be released in MDM2.0 in December and March and this patches will give the following:
    - Approver UI in Portal 7.0 (via iViews)
    - Integration of Electronic Forms
    - Config of Column With
    - Config of Image size
    - Support of decimal quantities ?!?!?!
    - Configurable products
    - Browse categories via images
    - Customer exits in Search UI
    - Search attributes by range
    Do CCM for example support the above (except the UI stuff)??
    Usefull hints will be rewarded.

    Hi
    <b>Please see related links -></b>
    CCM or MDM
    Re: Will CCM will be a part of MDM? And where to install it DMZ or intranet
    CCM in same client. advantages & drawbacks.
    Re: Are CCM and MDM separate modules?
    Re: CCM/ MDM Bundle?
    TREX and SRM-MDM
    Do let me know.
    Regards
    - Atul

  • Advantages and Disadvantages of Dual booting Windows on PXI Device

     
    Hello,
    In solving my previous problem of running a DLL in RTOS I've stumbled upon another solution. But i wanted to know the pros and cons of this before i make the leap.
    I want to install windows on the PXI device so that the NHR DLL files are run inherently on the windows kernel and i have access over my DAQ devices without placing them in the remote target.
    What are the advantages and disadvantages of installing a windows only on the DAQ device and running all my operation from it. Do i loose my real time features? I dont know, I'm really new to LabView and may sound really dumb. Please excuse my lack of knowledge.
    With Regards,
    Khalid.

     
    Hello Bob,
    Thank you for your insightful answer. I also thought this might happen, loosing all the RT features.
    I have another question for you. If i use a RT variant of windows like "Windows Embedded 8", will this make any difference? Can i regain my RT features by it or i have to go with the LabView RTOS.
    I'm pushing towards a windows system because i have to run this DLL file from NHR which is not supported by the LabView RTOS.
    Moreover, I could just install just windows onto the PXI controller. I'm not being able to make it dual boot. Can you guide me towards proper guideline to do so? I looked at the knowledge base file about dual booting, but the instructions dont exactly match with my available options in BIOS setup.
    Any suggestions from anyone is much appreciated.
    With Regards,
    Khalid.
     

  • PSAP SID TABLESPACE UPDATE STATISTICS ADVANTAGES AND DISADVANTAGES

    Dear All,
                Can anyone explain me if we select PSAP SID table space only for update statistics from DB13 Instead of selecting all tables for update statistics,what are the advantages and disadvantages of selecting only PSAP SID tablespace .
    I will be glad if you can suggest any related sapnote or sapmaterial.
    we are working on SAP ECC5 and oracle version id 9i   and operating system is windows.

    Hi arunkumar ,
    When you are updating statitics then update for all table space why for one only.After all it will increase the performance of your database.
    Regards
    Ashok

  • Advantages and Disadvantages of webdynpro JAVA over J2ee?

    Hi,
       Can anybody provide me the advantages and disadvantages of webdynpro java over the J2EE?
    Regards,
    Harish.

    Hi,
    Webdynpro is the SAP standard technology for developing business user intrefaces.
    Webdynpro is like the frame work which follows the MVC Design pattern.
    Webdynpro uses most of the UI developement as declarative approach , i.e. most of the code will generated by the framework. so it will reduce the developement efforts.
    Adaptive RFC model to connect with SAP systems.
    All these are advantages over than the J2ee.
    Regards,
    Naga

  • Advantages and disadvantages

    What are the advantages and disadvantages of the MAC OS X v10.7 Lion??

    Positives.
    Newer native 64bit OS.
    Adds some features.
    Negatives.
    Need more system resources, More RAM, to run well.
    Flakey WiFi on some units not seen with earlier versions of OS X.

  • Advantages and Disadvantages of Soap

    Advantages and Disadvantages of Soap
    Hi Firends,
                  Could you please tell me the Advantages and Disadvantages of using Soap adapter, i need them urgently.
    Note: High reward points will be given for each answer

    Hello
    SOAP is an XML-based protocol for exchanging information in a decentralized, distributed environment. It was made for Web, a combination of XML and HTTP opens up new options for distributed data exchange and interaction in a loosely coupled web environment. SOAP is a technology that allows XML to move easily over the Web. SOAP does this trough an XML envelope for delivering XML content and specifying a set of rules for services to follow when they receive a SOAP message.
    The fundamental change brought about by SOAP has been the ability to move data anywhere across the Web. Before SOAP there were only two main options for moving data between partners.
    One was to build a wide area network spanning a broad geographic region and let the partners plug into it. This was the approach taken by EDI, which defined messages and protocols for data transfer but left the network details up to the partners. The result was a collection of networks that pretty much locked the partners in and made it difficult and expensive to reach out to other EDI networks and costly to bring in new partners.
    The second approach for moving data between partners was to build a distributed object infrastructure than ran over the internet. This was the approach taken by Common Object Request Broker (CORBA), Remote Method Invocation (RMI) and Distributed Component Object Model (DCOM). The problem was that each had to decide on a protocol that could sit on top of TCP/IP and handle inter object communication. CORBA Chose Internet Inter-ORB Protocol (IIOP), DCOM chose object Remote Procedure Call (ORPC), and RMI chose Remote Method Protocol (JRMP). While this approach reduced the need to share the same underlying network, the drawback was that CORBA could talk to CORBA, RMI to RMI and DCOM to DCOM, but they neither could talk to each other nor directly to the web except through special sockets that required adding extra layers to an already complex architecture.
    SOAP the third option, combines the data capabilities of XML with the transport capabilities of HTTP, there by overcoming drawbacks of both EDI and tightly coupled distributed object system such as CORBA, RMI and DCOM. It does this by breaking dependence between data and transport and in doing so opens up a new era of loosely coupled distributed data exchange.
    SOAP Carries an XML RPC tradition by defining an XML language for packaging arbitrarily XML inside an XML envelope. Although SOAP does not depend on HTTP, the momentum behind SOAP is attributable to the fact that HTTP will usually be used for transfer protocol for SOAP messages.
    SOAP is a transport protocol similar to IIOP for CORBA, ORPC for DCOM or JRMP for RMI.
    SOAP differs from CORBA, RMI or DCOM in several ways.
    IIOP, ORPC and JRMP are binary protocols, while SOAP is a text based protocol that uses XML. Using XML for data encoding makes SOAP easier to read than a binary stream.
    1) Because SOAP is text based, it is able to move more easily across the firewalls than IIOP, ORPC or JRMP.
    <p2) SOAP is based on XML, which is standard driven rather than vendor driven. Potential adaptors are less likely to fear vendor lock in with SOAP. </p2>
    The net effect is that SOAP can be picked up by different transport protocol and delivered in different ways. For example, when used with HTTP it can be delivered to a web server, when used over FTP it can be deposited directly into a file system and when used with SMTP it can be delivered to a user's mailbox.
    Many companies exchange data between established partners is proving totally satisfactory way to leverage the benefits of XML and the web. In this scenario the required are an agreed upon schema either DTD or an XML schema, for XML data being exchanged and the SOAP server capable of handling the incoming XML as it arrives over the web. Details about what kind of schemau2019s to expect and who will check the XML conforms to the schema are decided offline by individuals participating in the process. On the software side senderu2019s needs to be involved in packaging their data in an XML document. For those companies already storing data in XML, this should require only minimal effort. If the stored XML data is not in the form required by the agreement, an XSL Transformation(XSLT) style sheet can be programmed to automate the transformation.
    SOAP messages define one way data transmission from sender to the receiver. However SOAP messages are often combined to implement patterns such as request-response. When using HTTP binding with SOAP, SOAP messages can use the same connection as the inbound request.
    Regard's
    CHETAN AHUJA

  • Advantages and disadvantages NIS in Sparc & i386 (Intel based machine)

    Hi Sun Experts
    I have a query can any one tell me the advantages and disadvantages of Nis setting up in Sparc box and i386 .
    My query's are ........
    1. If i set up NIS in i386 box what is the advantage and disadvantage.
    2. if i set up NIS in sparc what is the advantage
    Thanks in advance

    The SPARC/x86 question doesn't really seem relevant here, NIS should work the same whether you run it on a SPARC or X86 box.
    The disadvantages of NIS are, as always that its insecure, insecure and about to be EOL.
    The advantages are that its easy, easy to maintain, fairly reliable if maintained correctly, stable and works across most platforms and operating systems
    .7/M.

  • Advantages and Disadvantages of XML over CSV

    Hi friends,
    We have a requirement in our implimentation project. We are implimenting HR module. The company is using SABA for Education and Certification.
    We are implimenting Education and certification in BW and the data for BW will be comming from SABA.
    We had a discussion on thursday about the integration of SABA to BW. We can do it through DBconnect or by using XI and for this there is time and cost involved.
    The techical team has come with some idea where there will give the data in the form of XML or in CSV format.
    I would like to know the advantages and disadvantages of each and also please consider the performance point in view.
    I would also like to know about the things that need to be  considered if we process the data in multiple files.
    Please give me inputs and the answers will be appreciated with valuable points.
    Regards
    Raghav Reddy

    Hi,
    my advice is to go for CSV anytime compared to XML.
    XML is first made available to the BW system via  SOAP ( Simple Object Acess protocol) interface. Next it is updated into the required data targets as before , Via a data source for the myself source system.
    SOAP = XML+HTTP.
    XML cannot be used for mass data. It is only to load small data into SAP BW on a single document level.
    BW provides flat file interface so, there is no all these hassles in case of CSV. go for CSV

  • Advantages and disadvantages of SOAP adapter

    Hi all,
    Currently we need to provide a solution connecting to the .NET environment from SAP system, one of the option is proxy <-> PI <-> soap (web service), can anybody tell me the advantages and disadvantages of web service communication via PI? Because we may also be able to connect directly via the .NET connector.
    It will be very appreciated if you could provide some proposals, thanks.
    Bean

    Hi bean qian ,
    These are the advantages of SOAP:
    SOAP(Web Services) IS A Technical Adapter.
    Openness and Interoperability are features of SAP XI.
    1)Openness
    Use open, XML-based standards
    Leverage Industry Standards in B2B scenarios
    2)Interoperability
    Connect to applications using specialized adapters
    Connect to existing integration solutions using JMS (e.g. MQSeries) or SOAP
    Web Service: SOAP on the Ropes
    u2022 The Good
    u2022 By default the SAP builds the XML per the selected protocol
    u2022 All container elements with values are added to XML document
    u2022 SOAP protocol is a synchronous process, therefore SAP waits on a
    response
    u2022 SAP automatically matches data elements in the returned XML document to
    container elements and transfers the data (in theory)
    u2022 The Bad
    u2022 Current problems with return binding for SOAP processes require special
    handling
    u2022 The Web step allows manipulation of the outgoing and incoming XML
    document via rules
    u2022 the following may ease some learning pains
    These r disadvantages of SOAP :
    The SAP XI SOAP Adapter supports Exactly-Once end-to-end processing using unique message IDs.
    This is an excellent blog which neatly explains u in detail of SOAP with WEB:
    An Overview of SOAP

  • Advantages and Disadvantages of Switching off logging and debugging

    Hello Experts,
    Can you please explain me the Advantages and Disadvantages of Switching off logging and debugging (/SAPAPO/C4)..?
    Will switching these off improve the performance...?

    Omkar,
    Switching off Logging and debugging will improve performance.  However, you will then not have the logs to assist you in troubleshooting problems.  When I am working in a support role on a stable production system, I look at these logs maybe once a week.  When I am developing new functionality, typically in a development client, I look at them many times each day.  You will have to determine if the performance trade-off is worthwhile to you in your business environment.
    It is not usually necessary to have detailed logs, nor debugging, turned on in a stable production system.  I typically leave the 'standard' logging activated for "*" userid. 
    Don't forget to maintain the logs periodically.  Refer to this document for some general guidelines.
    http://service.sap.com/~sapidb/011000358700000715082008E
    Best Regards,
    DB49

  • What are the advantages and disadvantages for the larger blocksize and for

    What are the advantages and disadvantages for the larger blocksize and for the smaller blocksize?

    Smaller blocksize
    Advantages
    GoodHas relatively large space overhead due to metadata
    (that is, block header).
    Not recommended for large rows. There might only
    be a few rows stored for each block, or worse, row
    chaining if a single row does not fit into a block, for small rows with lots of random
    access.
    Reduces block contention.
    Disadvantages
    Has relatively large space overhead due to metadata
    (that is, block header).
    Not recommended for large rows. There might only
    be a few rows stored for each block, or worse, row
    chaining if a single row does not fit into a block.
    Larger blocksize
    Advantages
    Has lower overhead, so there is more
    room to store data.
    Permits reading a number of rows into
    the buffer cache with a single I/O
    (depending on row size and block size).
    Good for sequential access or very large
    rows (such as LOB data).
    Disadvantages
    Wastes space in the buffer cache, if you are doing
    random access to small rows and have a large block
    size. For example, with an 8 KB block size and 50
    byte row size, you waste 7,950 bytes in the buffer
    cache when doing random access.
    Not good for index blocks used in an OLTP
    environment, because they increase block contention
    on the index leaf blocks.

  • Advantage and disadvantages of XI

    Dear All,
                 I was asked to list down the Advantages and Disadvantages of XI over other middleware tools in an interview
    Please advice.
    Regards,
    Ashish

    Hi Ashish,
    Advantages of XI:
    XI is a middleware like many others. It is well suited for connecting SAP systems with each other and with non-SAP.If your focus is not on SAP systems, other solutions might be a better choice today. SAP XI provides an integrated workflow engine that allows to define adapters to non-XML-protocols and mappings to convert data content from source to target.
    Any fully mature middleware should provide these three layers.
    1. An independent Message Queue
    2. A data consolidator and mapping engine
    3. Workflow processor.
    XI is lacking full-fledged Message Queue compared to other established Middleware products.
    Currently, SAP XI does not have the features like IBM Websphere, Seeburger or TIBCO.
    SAP's next XI release might provide this missing piece and many more features which is due 2007 i guess.
    Here are the advantages of SAP XI from my point of view.There are lots of advantages but to list a few :
    Easy Integration with SAP products & components (RFC, IDOC, Proxy).
    Data security as expected from any SAP product.
    Standards based - XML, XSD, Xpath etc
    Ability to communicate with other messaging systems/products.
    Business Process Management
    Synchronous & Asynchronous communication possible.
    Complex processes for communication possible instead of only sending and receiving (business process management) (connect e.g. asynchronous and synchronous steps, define complex communication scenarios)
    Mapping etc possible to accomplish in Java. Platform independent Java components.
    Java & .Net support.
    Big range of adapters for different technologies / tools (SOAP, Mail, JDBC, CDIX...)available in standard or offered by other companies (EDI e.g. by Seeburger).
    Process functionalities inside XI to modify content in the communication channel on own defined rules fpr business purposes.
    Central monitoring for data communication for all your communication between different systems.
    And the marketing issue: SAP and its partners provide high volume of development capabilities to make XI always up-to-date for new requirements
    Regards,
    Subhasha Ranjan

  • Web Services : What Advantages and Disadvantages ?

    I would like to exchange experiences of projects using webservices, for example: I have a situation where accurate modeling in SAP/BW for possible connection with an application of Manufacturing Execution System
    Where the SAP/BW will receive and store information challenge application, the principle using webservices.
    - I want to see what the advantages and disadvantages of this type of connection, as well as its limitations.
    No need for acquisition of information (real time), the requirement is to store information on the previous day.
    Thank you, regards
    Bruno

    Hi Bruno,
    Kindly find the follwoing links
    /people/siva.maranani/blog/2005/09/03/invoke-webservices-using-sapxi
    https://weblogs.sdn.sap.com/pub/wlg/1334 [original link is broken] [original link is broken] [original link is broken]
    https://weblogs.sdn.sap.com/pub/wlg/2131 [original link is broken] [original link is broken] [original link is broken]
    https://weblogs.sdn.sap.com/pub/wlg/1442 [original link is broken] [original link is broken] [original link is broken]
    Warm Regards
    Suma Humberi

  • Advantages and disadvantages for SRM on one client with ECC

    Dear SAP gurus,
    We are evaluating the use of SRM on one client with ECC. Is there a paper spesifally discuss the advantage and disadvantages of having this deployment option?
    Best regards,
    John

    Hi
    check this  link
    SRM Server as an Add on to ERP 2005
    Advantages
    1) one backend for SRM and ECC6.0
    Disadvantage
    1.Sourcing scenario cannot be implemented.
    2.It does not support multiple backend system.
    Regards
    G.Ganesh Kumar

Maybe you are looking for

  • 3 monitors on a mac pro 4.1

    Hello In trying to run 3 monitors on a mac pro 4.1, I have recently bought a Radeon 5870 card from Apple as advised by a 'genius' at the local apple store. This setup does not work, even giving worse performance than the 4770 with 2 of the monitors (

  • Unable to print and scan from new wireless hp printer to Macbook Air

    I have just purchased a  wireless HP Deskjet 2540( compatible with MAC) and I am not able to print or scan anything on my Macbook Air,even after trying with the USB connection.I have installed and uninstalled the printer 3 times but still not working

  • How can i mention a java class in the form's action=" ...."  in jsp

    if i am not using struts frame work, how can i call? i am not using any of the frame work. for example. i am searching for a customer name from a database i have coded the form fields in jsp as <%@page session="true"%> <%@page errorPage="ErrorPage.js

  • How can I get Reader to download?

    My Reader program didn't work properly, so I went to download the latest update.  The download instructions said to go to my directory and find a .exe file, but when I do that I get an error message that it could not complete.  Searching for help, I

  • Why have new episodes stopped appearing in iTunes listings?

    Hi, I've had a podcast in the iTunes store for almost two years now and I'm wondering why new episodes aren't appearing in the iTunes store, here's a link to my feed: http://www.extraenvironmentalist.com/feed and my iTunes store page: http://itunes.a