Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6911553
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T08:58:19+00:00 2026-05-27T08:58:19+00:00

For a mandatory assignment of a DB2 class I’m asked to write o procedure

  • 0

For a mandatory assignment of a DB2 class I’m asked to write o procedure to export “export information about all xxx, delete all xxx and import the information again.” where xxx is my table.
This procedure has to be as efficiently as possible.

I’m quite stuck here, quite naively I see two options
1) write a select * from xxx; drop …; insert; using python or something
2) using some export/import utility of db2

But I can be totally wrong, suggestions?

what I’ve noticed is that there are not integrity constraints.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T08:58:20+00:00Added an answer on May 27, 2026 at 8:58 am

    You can do that via “export/load/set integrity“. I think it is the best way if you execute that in the server.

    If you use python, you will have to use a odbc driver or similar to get the data, processes, etc.

    If you use python just to execute the commands, it is ok, finally, it is just a call to the database.

    If you execute the process in other machine, the net use is increased, and the performance is lower.

    Using import, it is just like an “insert” per row in the file which uses a lot of transaction log. Instead, the load command, puts the data diretly in the tablespace and then check the referential integrity (faster process)

    Finally, if you want to extract the information very fast, you can buy the IBM InfoSphere® Optim™ High Performance Unload for DB2 for Linux, UNIX and Windows

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to write JQuery which will find whether Class=Mandatory exists on the page
Is it mandatory in some countries to make all websites accessible? If so, what
If you have a C# function with Sqlaccess, is it mandatory to close all
On my previous job, providing all methods with javadoc was mandatory, which resulted in
I've sort of just finished a mandatory task at school, and I'm about to
Are these two steps mandatory to delete a Model? var model = collection.get(id); model.destroy();
Is it mandatory to write $(document).ready(function () {... }) every time ? Can't we
Just to clarify, is it really mandatory that all the members of a child
I'm designing database and I'm curious about does mandatory checkbox in mysql workbench mean,
Is there a quick way to find out all the mandatory field in a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.