Logical vs Physical Deletes design

While designing an application, what is generally recommended - use physical deletes from the database, or use a "isDeleted" flag to do a logical delete ? Can someone comment on that ?

It depends entirely on the business requirements. Specifically
- is a lot of concurrent 'history and active record' reporting required?
- what is the ratio of active to deleted records?
- can the [performance, maintenance and development] cost of avoiding deleted records be justified?
- is a 'history' table acceptable instead of inline records?
- what is the "too many rows, we need to delete some" archive strategy?
Once past the analysis stage, into design
- is the shop oriented towards RDBMS as a data manager or a data storage and retrievval system?
- do developers code in a client/middle tier or are they knowledgeable coders in the database tier?
- do you intend to squeeze the value out of Oracle, or do you code everything on your own?
These last 3 questions are really the same thing.

Similar Messages

  • Logical and Physical Delete

    Hi Everyone,
    I am a newbie to Oracle.
    What is Logical Delete and What is Physical Delete ?
    Help is appreciated.
    Thanks in advance,
    KR

    Hi,
    I think you are asking about Logical read and physical read.
    Logical read - Data accessed from memory.
    Physical read - Data accessed directly from disk.
    Regards
    Jafar

  • Functional application design  =  Logical components/Physical components

    Hello
    In realisation phase I come across terms
    Functional application design  =  Logical components
    Functional application design  =  Physical components
    Can I get some explanation what is the principle difference between a logical and Physical component.
    Thanks

    It depends entirely on the business requirements. Specifically
    - is a lot of concurrent 'history and active record' reporting required?
    - what is the ratio of active to deleted records?
    - can the [performance, maintenance and development] cost of avoiding deleted records be justified?
    - is a 'history' table acceptable instead of inline records?
    - what is the "too many rows, we need to delete some" archive strategy?
    Once past the analysis stage, into design
    - is the shop oriented towards RDBMS as a data manager or a data storage and retrievval system?
    - do developers code in a client/middle tier or are they knowledgeable coders in the database tier?
    - do you intend to squeeze the value out of Oracle, or do you code everything on your own?
    These last 3 questions are really the same thing.

  • DataBase Adapter Rollback option for Logical/Physical Delete in SOA  11g

    Hi All,
    We have a requirement where we need to rollback the logical delete performed by the DB Adapter (after polling a table) if there is any failure in the process down the line. We are trying to implement this using Mediator or OSB. For example if we are polling a table for changed records and performing logical delete, down the line if the business service (OSB) or the external reference (Mediator) are down/faulted, the records which were logically deleted are not getting rolled back in the table. Would any one please let me know if you have come across the same kind of scenario?
    Is there any property we need to set while configuring the polling DB Adapter?
    Thank You.

    Thank you very much for the reply Anuj,
    I have created a db adapter which polls on a table with logicaldeletestrategy in JDeveloper 11g,
    then I imported the XSD, mapping.xml, wsdl and JCA file into OSB using OSB consol. In the console
    I generated proxy and wsdl for that proxy using JCA file. Then created one more db adapter in JDev
    which inserts the records polled by the first db adapter into another table, followed the same
    process of importing the above mentioned 4 files and generated a business service. In proxy service
    route node I am using a transformation (which also I imported from Jdev) to route the data polled
    by proxy service to the business service. Here I am using an XA datasource both the JCA's also
    I made the 3 changes reccommended by Arun but still I am not getting the results.
    I tried physical delete same issue with that too. When I am doing physical delete the proxy service
    atleast picking up the records and deleting them. But when I tried logical delete the proxy is not even
    picking up the records. Am I missing anything here?
    Thank You,
    Edited by: user12237005 on Apr 7, 2011 2:17 PM

  • Importing logical and physical model from Sybase power designer/Erwin

    Hello,
    We have several models created in Sybase Power designer, logical and as a well as physical. Is there a way to directly import models into Oracle designer?
    Thank you for your help.
    Syed

    Hi Syed,
    ERwin has a facility to export to Designer 2000. Of course you're probably not using Designer 6.0 or earlier so it's of little use.
    I have been looking at a couple of tools for importing from ERwin: Reischmann Informatik’s TOOLBUS Interface for Oracle Designer and ALLFusion ERwin; and Meta Integration Technology’s Meta Integration Model Bridge (MIMB). Neither product is free (nor inexpensive) but if you've got a number of models to convert then the tools seem cheap by comparison. Also, none of the products that I've looked at recreate the actual diagrams (not that I expected them to).
    I am leaning towards TOOLBUS as it provides more complete migration of Logical and Physical models (especially the linkages between the models) using Oracle Designer’s API rather than a DAT file as provided by MIMB.
    Hope this helps,
    Wayne Lehman
    Avanti Business Systems Inc.

  • Databse polling without using logical delete or physical delete

    Hi all,
    Without using logical delete or physical delete how can i poll to the database????
    Thanks
    Phani

    Whatever table are you interested in polling, have a duplicate table for it. Whenever an event (update, delete, insert etc) happens on the source table, fire a trigger to perform that activity in your dup table. Now, from the other tier poll a query for a change. Once the change is consumed clear the dup table.
    Hope this help!
    Regards,
    Yousuf Baig

  • Logical and physical clear in ASO

    Hi There,
    I found one statement for Logical and physical clear in essbase dbag
    The process for logically clearing data completes in a length of time that is proportional to
    the size of the data being cleared.
    The process for physically clearing data completes in a length of time proportional to the
    size of the input data, not to the size of the data being cleared
    What does size of the input data actually means? How it is different from data being cleared.
    Thanks.

    What is interesting with these statements is based on them, you would think a logical clear would be slower than a physical clear. In reality, it is vastly faster. I took a 30 minute physical clear down to about 40 seconds with a logical clear. Logical clers create offsetting entries from the main cube in a slice to produce a result whila a physical clear deletes the actual data. The one thing about logical clears is rather than have #missing for cleared intersections you get zeros

  • Logical to Physical Mapping

    Newbie to the Analytical Workspace Manager v. 11.1.0.7.0 and using Oracle Database 11g Enterprise Edition Release 11.1.0.6.0. Installed the global sample schema and associated objects. Created the workspace in AWM and I am able to see all cubes and dimesnion objects. I am now trying to do the logical to physical mapping of the dimension objects with the tables that I imported into the global schema. I right-click on the Channel dimension, but I do not see the Mapping option. I am unable to launch the mapping canvas. All I see is Maintain, Analyse, Set Security, Save, View Data and Delete. Am I missing something in the installation?
    Thanks in advance for your help.
    -ST

    I also found that when I try to expand the "+" next to the Channel dimension, I get the following java error in the console.
    Exception in thread "ExpansionThread" java.lang.NoClassDefFoundError: oracle/security/xs/XSPrincipalException
    at oracle.olap.awm.navigator.node.olapi.UDimensionNode.getChildren(Unknown Source)
    at oracle.olap.awm.navigator.node.BaseNodeModel.refreshData(Unknown Source)
    at oracle.olap.awm.navigator.node.BaseNodeModel.dTreeItemExpanding(Unknown Source)
    at oracle.bali.ewt.dTree.DTreeDeferredParent.__fireExpansionChanging(Unknown Source)
    at oracle.bali.ewt.dTree.DTreeDeferredParent.setExpanded(Unknown Source)
    at oracle.olap.awm.navigator.node.BaseNode.expandHelper(Unknown Source)
    at oracle.olap.awm.navigator.node.BaseNode.access$400(Unknown Source)
    at oracle.olap.awm.navigator.node.BaseNode$ExpansionThread.run(Unknown Source)
    I am unable to view the defined hierarchies
    Thanks.

  • Diff  between logical and physical page ?

    hi
    what exactly difference between logical and physical pages?
    where to set page size in report designer?
    after seting paper size in report designer can i readjust in print dialogue box?
    which is will be effected?
    please explain

    A logical page can contain several physical pages. Assume you want to create a format which is larger then your printer is able to print, then you can define a logical size, which contains n pages horizontally and m pages vertically.
    To set the page size for your report have a look at the properties in the main section of your paper layout.
    Regards
    Rainer

  • Logical and physical rowid datatypes

    hiii
    can i know how logical and physical row id be helpful to a developer.
    if i am not wrong than physical row id remain constant and logical is on IOT and can change but what is its use how can i use this concept and where can i apply it ???
    thks

    810345 wrote:
    hiii
    can i know how logical and physical row id be helpful to a developer.If you read the Oracle document, its given following:
    Before you use rowids in DML statements, they should be verified and guaranteed not to change. The intended rows should be locked so they cannot be deleted. Under some circumstances, requesting data with an invalid rowid could cause a statement to fail.
    if i am not wrong than physical row id remain constant and logical is on IOT and can change but what is its use how can i use this concept and where can i apply it ???A row's logical rowid does not change as long as the primary key value does not change. This is less stable than the physical rowid, which stays immutable through all updates to the row.

  • To Physically Delete WBS in a Project- Urgent Help Needed

    Hi,
    In a process of physically Deleting WBS which contains other objects (network, activites) from a project , It requires us to cancel the Deletion Flag on the wbs .For this I am trying to use a Bapi BAPI_BUS2054_SET_STATUS,
    but to unset DLFL for a project this Bapi takes a very long time for a project which has more wbs marked for deletion,
    Can Someone suggest me other way to delete wbs permanently, the business logic we follow here is to delete only those wbs which are marked for deletion after certain period of time.
    This is kind of urgent to me.. so any help is truly appreciated.
    Thanks
    Kumar

    If your wbs is not used, you can delete with the transaction CJ20N.

  • Logical Vs physical partitions ?

    Hello BW Experts,
    What is the diff between the logical and physical partitions. The partitions that we do on a cube based on 0calmonth / 0fiscyear is that logical or physical.
    Suggestions appreciated.
    Thanks,
    Kalyan

    hi,
    in bw, physical partitioning done on database level and logical partitioning done with multiprovider. cube partitioning with 0calmonth is physical partitioning.
    take a look
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/ce7fb368-0601-0010-64ba-fadc985a1f94
    Database (or Physical) Partitioning
    -Database tables are cut into smaller chunks (partitions)
    -One logical database table
    -Transparent for user
    -Available for the following database management systems
    Range Partitioning: ORACLE, Informix, IBM DB2/390
    Hash Partitioning: IBM DB2/UDB
    Database (or Physical) Partitioning
    *Benefits
    -Parallel accesses to partitions
    -Read smaller sets of data Fast
    -Deletion of partitions (DROP PARTITION instead DELETE FROM WHERE)
    *Automatically Partitioned Database Tables (for Range Partitioning)
    -InfoCube F-Fact table: partitioned by request
    -PSA table: partitioned by request ODS
    -Change Log: similar to PSA table
    *User Defined Partitioning Criteria (for Range Partitioning)
    -InfoCube E-Fact table
    -Partition Criteria:
    Time characteristics like month or fiscal period
    -Note: Both fact tables are extended by the SID of the chosen time characteristic
    MultiProvider (or Logical)
    -Partitioning Possible partitioning criteria: year, plan/actual, regions, business area
    -Parallel sub-queries are started automatically to basic InfoCubes

  • Physical Database Design Steps & Performance Considerations

    Hi,
    We have a Oracle 9i install need help to create a DB.
    Required to know the Physical Database Design Steps & Performance Considerations.
    like
    1-Technical consideration of DB as per server capacity. how to calculate..?
    2- What will be the best design parameter for DB...?
    Can you please help how to do that. Any metalink ID help to get those information.
    thanks
    kishor

    there is SOOO much to consider . . . .
    Just a FEW things are . . .
    Hardware - What kind of Host is the database going to run on?
    CPU and Memory
    What kind of Storage
    What is the Network like?
    What is the database going to do OLTP or DW?
    Start with your NEEDS and work to fulfill those needs on the budget given.
    Since you say Physical Database Design . . . is your Logical Database Design done?
    Does it fulfill the need of your application?

  • Physical database design

    Hi, What are the things to be considered when performing a physical database design?
    Thanks

    I prefer to draw the line between logical and physical based on the criteria whether it affects application code or say business logic, if not, i take them as physical design domain.
    So, constraints are definately a logical design domain, it does affect the business logic. (PKs, FKs, Check constaints, NULLABLE, etc)
    in oracle, schema, security(roles, privileges), indexes, tablespaces, partitioning, MVs, changes to them dont affect your application code logically. Performance, managibility, scalibility are things to consider in physical design. Sequence is something logical, however you cannt define them in lots of modeling tools logical model part, so I put it into physical domain as well.
    One more thing to mention is the mapping from logical model to physical model, such as datatype mapping, it does affect the application, however it's part of work in physical design. So i catagorize physical design in two phases:
    1) mapping form logical to physical implementatation for specific DBMS
    2) utlizing DBMS specific features without affecting application code to improve performance, managibility, scalibility, etc.

  • What is a  Logical and Physical file path in sap?

    what is a  Logical and Physical file path in sap?

    Hi,
    Physical file is what you see from the OS level.
    Logical file is what ABAP code can call certain functions to read/write.
    Transaction FILE would link them together. Typically the logical path ends with "<FILENAME>", and the logical file refers to the logical path.
    To extract the physical path from the logical path name
    DATA: lf_mandt TYPE sy-mandt,
            lf_opsys TYPE sy-opsys.
      lf_mandt = sy-mandt.
      lf_opsys = sy-opsys.
    To extract the physical path from the logical path name
      CALL FUNCTION 'FILE_GET_NAME'
        EXPORTING
          client           = lf_mandt
          logical_filename = p_unix
          operating_system = lf_opsys
        IMPORTING
          file_name        = gwa_input
        EXCEPTIONS
          file_not_found   = 1
          OTHERS           = 2.
      IF sy-subrc EQ 0.
      Concatenating the physical path and the input unix file name
        CONCATENATE gwa_input p_file INTO gf_file .
      ENDIF.
    Reward if helpful.
    Regards,
    Ramya

Maybe you are looking for

  • Reset encryption password for NEW iPhone backups

    Hello Everyone, I have an iPhone and iPad which are currently working perfectly.  However during testing I figured out that I somehow lost my iTunes backup encryption password.  As such I figured I would just change the backup password, delete the ol

  • HT1349 hello i haved a problem ill buy iphone 4 its not working

    hello, last december one man he talking to me on the bus.and he offer me iphone 4,cheaper just only 150.00 pounds...the problem im trying to open this mobile to itunes but totally out of services...... how to open and how to use can u help me pls man

  • Build Application Error

    I am consistently getting an Error 26071 when I try to build my application to make an .EXE.  I am usling LV6.1, and Application Builder for it.  The app. works just fine from within LV itself.  There are no errors. Specifically, the error message is

  • E51 SIP connection with Nortel CS1000

    I need to setup E51 as SIP client with Nortel CS1000 rel 5. The client register itself but when the call start the phone freeze itself. I can only work with volume and on/off . There is someone that try to do this type of connection ? Thanks a lot Pi

  • How to create dblink to sqlserver in unix?

    I have a oracle database(9i) running in unix server(AIX). and I need to create a dblink to sqlserver. So all clients can use this dblink to query data from sqlserver. Q: How to create dblink to sqlserver in unix? Thanks for your replys