Delete the table  entries on db2

Hi,
   when iam applying pathces iam getting dump,i want to delete the entires on pat01 table,whats the command to see the tables and delete the entry on pat01,02,03 tables.
Thanku

Hi Kumarraju,
To get the tables in a database you can use the following command
db2 "LIST TABLES"
The LIST TABLES have many options, with which you can restrict what will be returned. Execute the command to see them:
db2 "? LIST TABLES"
Besides, pay attention to the Type column, which indicates whether the object is a table or a view.
Regarding your second question, I can't follow you: do you want to delete the entries in a table ?
Best regards, Edgardo

Similar Messages

  • How to delete the table entries (created data )

    in which table the created data will be get stored i need to delete it programitically can any one help me out in this, plz tell me the table name where the created data will be get stored.

    Hi
    Rocky
    use the delete statement
    the information regarding delete is
    DELETE dbtab
    Syntax
    DELETE { {FROM target [WHERE sql_cond]}
           | {target FROM source} }.
    Effect
    The statement DELETE deletes one or more rows from the database table specified in target. The rows that are to be deleted are specified either in a WHERE condition sql_cond or with data objects in source.
    System Fields
    The statement DELETE sets the values of the system fields sy-subrc and sy-dbcnt.
    sy-subrc Meaning
    0 A least one row was deleted.
    4 At least one row could not be deleted, since it was not found in the database table.
    The statement MODIFY sets sy-dbcnt to the number of deleted rows.
    Note
    The rows are deleted permanently from the database table in the next database commit. Until then, you can cancel the deletion in a database rollback.
    plzz reward if helpfull dont forget to reward if helpfull..
    for any further quiries my mail id is
    [email protected]

  • DELETE THE MATCHED RECORDS IN DB2 TABLE

    DELETE THE MATCHED RECORDS IN DB2 TABLE
    sql server table sqlserver_emp(c1,c2,c3,4)
    records:1 2 3 4
    DB2 table db2_emp(c1 key,c2,c3,c4)
    records:1 2 5 6 7 8
    Both tables having same structure
    Matched records : 1 2
    1.Delete the matched records in db2 table : 1 2 (without using truncate option for DB2 in Anywhere)
    2.Finally Load all records in sql server(Because duplicate records in db2 already removed so no duplicates occured)
    3.NEED final OUTPUT AS:db2 table: 5 6 7 8 1 2 3 4
    Note:
    1.DB2 truncate doesn't used
    2.STARING AREA: ORACLE
    3.SQLSERVER AND DB2 CLOSED ENVIRONMENT DOESN'T USED AS STAGING AREA.
    HOW MANY INTERFACES AND PROCEDURES SHOULD BE CREATE? WHAT ARE THEY?
    HOW TO REACH MY REQUIREMNT?
    Answer provider is more appricatable.
    Thanks in advance.
    Edited by: krishna on Nov 9, 2011 8:40 PM

    1st option
    See in this scenario you can use two interface and one procedure step.
    1st interface-->poricedure-->2nd interface
    1st interface will bring data to oracle staging-->then procedure will delete matched record from target using keys--->3rd interface will simple insert the the data in oracle staging.
    2nd option
    Insted of deleting the target matched records, you just update target matched record with latest records in your staging oracle.You can use IKM Merge
    Thanks

  • Deletion of table entries(without maintenance view)  in production

    Hi Sap All.
    here i have got a task to change the data type of one particular field and to delete all the table entries of this table in production.
    so in Dev I have tired with z program saved in local object  (DELETE FROM Table).
    i just want to know how i can delete all the entries of table in production.
    regards.
    Varma

    Hello,
    You can also use transaction SE14.
    Start SE14
    Enter the table name
    Select the radio button "Delete data".
    Push the button "Activate and adjust database".
    This will drop your table in the DB and recreate it as well as all related indexes.
    Indexes are not impacted when you do a regular DELETE statement unless you rebuild your indexes.
    Of course you can only do this if data can be deleted for a specific table in ALL clients.
    Wim

  • Delete ARP table entry

    I need to create a program to delete an entry in the ARP table in Windows 7 with LabVIEW or TestStand.  The test that I am developing communicates with the DUT over Ethernet.  Each DUT has the same IP address to start but different MAC addresses.  I am noticing that there can be long delays in the test execution when trying to connect and deleting the previous entry in the ARP table seems to help.  But currently I have to do this manually through the command line.  The command "arp -d" requires elevated privileges.  I have been having a tough time getting LabVIEW to elevate the system exec.  Does anybody have an ideas? Is there any .NET access to the ARP table?
    Thanks,
    Paul
    Solved!
    Go to Solution.

    I would try looking into tuning the ARP timing parameters in Windows.
    We suffered from various TCP performance/connection problems some years ago and our solution was to modify the the default number of TCP sockets and timeouts (we were experiencing port exhaustion). The tweeks eliminated most of our problems, no LV/TS code changes required.
    I tried to find info on ARP settings for Windows 7, but it seems that there is much less info available than ther is for XP.
    The registry keywords most common for older versions of Windows were "ArpCacheLife" and "ArpCacheMinReferencedLife"
     EDIT:
    These settings were apparently removed in Vista. I found this on the M$ site; they may apply to later versions as well since M$ is following an RFC for ARP management...
    http://support.microsoft.com/kb/949589
    Now is the right time to use %^<%Y-%m-%dT%H:%M:%S%3uZ>T
    If you don't hate time zones, you're not a real programmer.
    "You are what you don't automate"
    Inplaceness is synonymous with insidiousness

  • ADF Desktop Integration : How to delete the table in Excel?

    Hi,
    I am using Jdev 11.1.1.3.0 and Excel 2007 for Oracle ADF DI, I had created an ADF table using pageDef file in the excel. Now I wanted to delete that table and use a different pageDef file.
    I could not find a way to delete that table.
    I deleted full row of tables and then I used different pageDef file and created a new adf table. But when I am running this version of excel, I am getting runtime exception and excel is getting corrupted.
    My question how to delete the table not corrupting the Excel.
    Thanks
    Pavan

    Pavan,,
    Welcome to OTN.
    You can delete the table by selecting the top left column (of the table) and then select delete from the ADFdi tab.
    Refer the documentation for more info.
    http://docs.oracle.com/cd/E17904_01/web.1111/e10139/get_start_dev_tools.htm#ADFDI608
    -Arun

  • Abap Code to Delete the Duplicate Entries in Datasource

    hI Friends I have a code that I am writing to delete the duplicate entries from CRM Custom Datasource  but it is throwing me error that INVERNO The specified type has no structure and therefore no component called INVERNO Should i define the structure please correct my code below so that it will work to delete the duplicate entries          
    Please help
    Data: l_s_ZOXD530051 like ZOXD530051. ***Extract Structure of Data source
    Case i_DATASOURCE.
    when 'ZZ_DS_CUSTOM_CRM_VALUES'.
    Sort C_T_DATA by INVERNO ZMKT_TYP.
    *write this Statement.
    DELETE ADJACENT DUPLICATES FROM C_T_DATA COMPARING INVERNO ZMKT_TYP.
    endcase.
    Thanks
    Soniya
    null

    Hi
    It means there's no field called INVERNO:
    Data: l_s_ZOXD530051 like ZOXD530051. ***Extract Structure of Data source
    Case i_DATASOURCE.
    when 'ZZ_DS_CUSTOM_CRM_VALUES'.
    <b>*Sort C_T_DATA by INVERNO ZMKT_TYP. <------</b>
    Sort C_T_DATA by INTRENO ZINS_TYP.
    *write this Statement.
    DELETE ADJACENT DUPLICATES FROM C_T_DATA COMPARING INTRENO ZINS_TYP.
    endcase.
    Max

  • How to delete the total entries in ztable

    Hi ,
    How to delete the total entries in ztable...
    code pls.
    regards,

    Hi Venkat,
    pls see below records,
    Plant  Material                       Alternate material
    3770  00000000000126875          2020202
    3770  000000000005999335        2020202
    3770  117196                           2020202
    3780  00000000000126875           2020202
    3784  00000000000126875         2020202
    3784  000000000002809336       2020202
    3784  000000000005999335        2 020202
    3789  00000000000126875            2020202
    if  i write below syntax ,
    delete from ztable where matkl = '2020202'.
    all records contains  matkl = '2020202' will be deleted ??
    pls. reply.

  • Is it possible to delete the table of contents in a pdf but keep the bookmarks?

    Is it possible to delete the table of contents in a pdf but keep the bookmarks?

    If the TOC is located on certain pages, you can simply delete those (from the Pages panel).
    Make sure it doesn't screw up with how your bookmarks work, though...

  • Without delete PDP table entry, I want to Order PO in R/3. How can I do it?

    Hi SRM Gurus,
    I am using SRM 5.5 with Extended Classic Scenario and Plan Driven Procurement(PDP).
    My question is: I was unable to create PO with reference PR/RFQ/Manually  in R/3.System is giving an error message 'you can order locally(SRM)'. Which material group and Purchasing groups are maintained in PDP table. If I delete this entry I can Order PO in R/3.
    Now I don't want to delete PDP table entry and I want to Order PO in R/3. How can I do it?.
    Please focuses light on this issue. Highly appreciate.
    Regards,
    John.

    Hi
    I think you can do in both sides
    let me know your scenario too well.
    I am in classic scenario
    i can create a PR - if i have valid unique source of supply , PO will be created in ECC
    If i have more than one source of supply , my PR will get EPRTRANS TABLE ENTRY with EPROFILE updated in EBAN table and my ECC pr wil be transfered to SRM and create  a sc and this cart will be in cockpit.
    I believe your PR has EPROFILE , thats why you could not create a PO in ECC side.
    confirm me.
    How to you assign a source of supply for PRs ? I wanted to know. so i can expalin easilyand any jobs you create to create a Auto POS in ECC after assign a source of supplt to your Purchase request.
    br
    muthu

  • Deleted the Registry Entry for OracleJobScheduler service. How to recreate?

    I accidently deleted the registry entry for the OracleJobScheduler Service for my production database. I know I shouldn't have -- but I was re-creating the console and clicked on the wrong thing.
    Is there a way to recreate the service? I copied the registry entry from another database, but the service isn't showing up in the Services window. I know how to create services using the NT Kit, but I am not certain how I need to set it up.
    Thanks in advance,
    DJM

    I do not think you needed it. But in case you want to put it back, export OracleJobScheduler<SID> from any other windows database server, open and edit it in wordpad to change servicename, ImagePath and DisplayName, then import into this server.

  • Hi. How can I delete the table without deleting the content? My pages is 5.2.2.

    Hi. How can I delete the table without deleting the content? My pages version is 5.2.2. Thank you for your help.

    There is no convert Table to text capability in Pages v5.2.2, as there was in Pages ’09 v4.3.
    You can keep the table while making the table grid vanish, leaving the existing tabular text structure. Select the table, and under the Format panel > Table tab, the following settings will produce this output. If selected, you can refine its document placement in the Arrange tab.

  • Is there any api to delete the Calender entry from Blackberry phone

    Hi All,
    I want to delete the Calender entry from the Blackberry programatically please can you suggest me how to do it and also example is very much helpfull.
    Thanks
    Sharan

    Ask Skype. That's not an Apple product.

  • How to delete the NULL entries in nest table

    Hi,
    After I used a loop and open/fetch cursor populated the object table
    I found there are random NULL entries in my object table (nest table)
    The data look like this
    NULL NULL           NULL
    NULL NULL           NULL
    123     03-MAY-04     ACTIVE
    NULL NULL           NULL
    NULL NULL           NULL
    234     21-MAY-04     ACTIVE
    NULL NULL           NULL
    345     11-MAY-04     ACTIVE
    NULL NULL           NULL
    How can I get rid of those NULL entries in my nest table? So it can become
    123     03-MAY-04     ACTIVE
    234     21-MAY-04     ACTIVE
    345     11-MAY-04     ACTIVE
    Additional info:
    create type myType as object
    (id NUMBER (10,0),
    eff_date date,
    status VARCHAR2(17)
    create type myNestTab as table of myType;
    I have tried Delete procedure in following two ways.
    Version 1:
    FOR i IN l_my_nest_tab.FIRST..l_my_nest_tab.LAST
    LOOP
    IF l_my_nest_tab(i).id IS NULL THEN
    l_curr_event_tb.DELETE(i);
                   END IF;                         
    END LOOP;
    Version 2:
    FOR i IN l_my_nest_tab.FIRST..l_my_nest_tab.LAST
    LOOP
    IF l_my_nest_tab(i) IS NULL THEN
    l_curr_event_tb.DELETE(i);
                   END IF;                         
    END LOOP;
    Both of them give me the error “no data found.” And only left me the first NOT NULL entry in the table.
    123     03-MAY-04     ACTIVE
    Thanks in avdance.

    Hi Vishnu,
    u can write a report program for this and in that use the event  :
    AT NEW <field-name> ( use primary key)
    your statements
    ENDAT
    for eg.
    loop at itab ( herfe itab must be of type of table for which u want to track new entries)
    at new matnr
    write:/ new record
    endat
    endloop.
    schedule this report in background to run in every 5 or 10 mins as per your requirement and hence changes can be tracked.
    regards
    Vinod

  • Deletion of table entries from the programTADIR

    i am using the the program to fetch the data from TADIR and for certain package and i am displaying the data on the screen.know i need to delete the data in the table TADIR, in the debugging mode i have noticed that the developement class is also existing so when i write the delete statement in the loop then the development class will also get deleted, can any one help me out in this, attached sample code.
    SELECT pgmid              "Program ID in Requests and Tasks.
             object             "Object Type.
             obj_name           "Object Name in Object Directory.
             srcsystem          "Original System of Object.
             author             "Person Responsible for a Repository Object.
             devclass           "Package.
             crelease           "SAP Release.
             delflag            "Deletion Flag.
             FROM tadir INTO TABLE i_fetch_data
             WHERE devclass = p_dclass.
      IF sy-subrc = 0.
        LOOP AT i_fetch_data INTO wa_fetch_data.
          WRITE:/10 wa_fetch_data-pgmid,
                 30 wa_fetch_data-object,
                 50 wa_fetch_data-obj_name.
        delete table i_fetch_data from wa_fetch_data

    Hi,
    It is possible to delete entries from table in debug mode without writing any prog
    but since this is sensitive, i dont want to post an answer on SDN.
    if u really want an answer , mention ur req clearly and mail me on
    [email protected]
    tc
    saji

Maybe you are looking for

  • Updating array data in sql database

    HI, Im facing problems in updating array data in SQL database. As of now, i am able to write an "insert" query and insert array data in an image datatype field. Im using image datatype because the array size is very big(around 80,000 x and y values).

  • Cannot see existing Business Rules in Hyperion Planning ?

    Hello, I'm working on Planning 9.3.1.2 : I've developped several Business Rules with the EAS console (theses HBR are attached to a project). But when I open the application in Hyperion Planning with my admin accounts. I can't see any Business Rules i

  • HT1386 computer says it cannot start sync session when I plug in my ipad

    I am trying to back up my ipad so I can restore it. It keeps freezing and quitting on me. I went to sync it and the computer keeps coming up with the message that it cannot sync because the sync session did not start. help!!!!

  • Unable to determine factor for converting from UoM DR to UoM L

    Hi gurus, I ran into an GTS block for inbound delivery which states 'Unable to determine factor for converting from UoM DR to UoM L.'  Actually the PO linked to this inbound delivery was transferred succesfully. Per above error log, I checked product

  • Loading Issue in ODS

    Hi, I  have a lot of data getting loaded into ODS and the data gets stuck with material. i mean it will take a long time to get loaded looks like performance issue in loading. please let me know how do i proceed Sandy