Hi all,
this might sound strange, but I'm desperately seeking for a solution for
this (personal) issue.
Ages ago, I built a DB2 database under OS/2, even with a VX-Rexx
graphical interface. I maintained the OS/2 PC for a long time but
meanwhile I'm considering a migration. :-)
I'm aware, that I can forget all the graphical interfacing that I did,
am just caring for the data. Also I do not intend to run a DB2 again for
maintaining my CD collection.
So I am looking for an easy way to get the tables into Excel under XP.
My dream is a tool that can read the DB2 backup, and copies the tables
in Excel spreadsheets... . okay, dreaming... whatever intermediate steps
are needed, I will try!
Thanks a lot for any hint.
Udo
P.S.: Since years I didn't program anything anymore or worked with SQL
or DB2, please do not consider that I'm an expert. 14 1664
Udo Kerwath wrote: Hi all,
this might sound strange, but I'm desperately seeking for a solution for this (personal) issue.
Ages ago, I built a DB2 database under OS/2, even with a VX-Rexx graphical interface. I maintained the OS/2 PC for a long time but meanwhile I'm considering a migration. :-)
I'm aware, that I can forget all the graphical interfacing that I did, am just caring for the data. Also I do not intend to run a DB2 again for maintaining my CD collection.
So I am looking for an easy way to get the tables into Excel under XP.
The EXPORT utility supports delimited files (a.k.a. CSV), which Excel
reads happily.
EXPORT TO TABLE.CSV of DEL SELECT * FROM TABLE
In article <dv**********@o nline.de>, no*********@onl ine.de says... My dream is a tool that can read the DB2 backup, and copies the tables in Excel spreadsheets... . okay, dreaming... whatever intermediate steps are needed, I will try!
With which version of DB2 was the backup created?
>DB2 database under OS/2, even with a VX-Rexx graphical interface.
Oh, wow, i did that a decade ago? Sheesh! :)
B.
Gert van der Kooij wrote: In article <dv**********@o nline.de>, no*********@onl ine.de says...
My dream is a tool that can read the DB2 backup, and copies the tables in Excel spreadsheets... . okay, dreaming... whatever intermediate steps are needed, I will try!
With which version of DB2 was the backup created?
Gert,
it was generated with DB2 V6 (at least that's what the "Event Monitor"
and "Command Center" are saying.
Cheers,
Udo
In article <dv**********@o nline.de>, no*********@onl ine.de says... Gert van der Kooij wrote: In article <dv**********@o nline.de>, no*********@onl ine.de says...
My dream is a tool that can read the DB2 backup, and copies the tables in Excel spreadsheets... . okay, dreaming... whatever intermediate steps are needed, I will try!
With which version of DB2 was the backup created?
Gert,
it was generated with DB2 V6 (at least that's what the "Event Monitor" and "Command Center" are saying.
Cheers, Udo
Do you still have a system running with OS/2 and DB2 V6?
If so you can restore the backup and use the export command as have been
sugggested by others. If you don't have a V6 system you need at least V7
system to restore (and automatically migrate) the backup and export the
tables.
Gert van der Kooij wrote: In article <dv**********@o nline.de>, no*********@onl ine.de says... Gert van der Kooij wrote: In article <dv**********@o nline.de>, no*********@onl ine.de says...
My dream is a tool that can read the DB2 backup, and copies the tables in Excel spreadsheets... . okay, dreaming... whatever intermediate steps are needed, I will try!
With which version of DB2 was the backup created? Gert,
it was generated with DB2 V6 (at least that's what the "Event Monitor" and "Command Center" are saying.
Cheers, Udo
Do you still have a system running with OS/2 and DB2 V6?
Yes - I still use the database.
If so you can restore the backup and use the export command as have been sugggested by others. If you don't have a V6 system you need at least V7 system to restore (and automatically migrate) the backup and export the tables.
How can I do the export (ohh gosh, 10 years ago I knew...)? I vaguely
remember that there was an app to see the different tables and so on.
But opening the Folder "DB2 for OS/2" I see a lot of things, but best
looks like a command line interface....:
o HTML Search Server
o Command Center, Command Line Processor
o ODBC Installer & Administrator
o Client Configuration Assistant
o Windows Support
o Problem Determination Tools
o First steps
Sorry to bother you with those stupid beginner questions (incredible
what you can forget within only 10 years...).
Udo
In article <dv**********@o nline.de>, no*********@onl ine.de says... Gert van der Kooij wrote: In article <dv**********@o nline.de>, no*********@onl ine.de says... Gert van der Kooij wrote: In article <dv**********@o nline.de>, no*********@onl ine.de says...
> My dream is a tool that can read the DB2 backup, and copies the tables > in Excel spreadsheets... . okay, dreaming... whatever intermediate steps > are needed, I will try! > With which version of DB2 was the backup created? Gert,
it was generated with DB2 V6 (at least that's what the "Event Monitor" and "Command Center" are saying.
Cheers, Udo
Do you still have a system running with OS/2 and DB2 V6?
Yes - I still use the database.
If so you can restore the backup and use the export command as have been sugggested by others. If you don't have a V6 system you need at least V7 system to restore (and automatically migrate) the backup and export the tables.
How can I do the export (ohh gosh, 10 years ago I knew...)? I vaguely remember that there was an app to see the different tables and so on. But opening the Folder "DB2 for OS/2" I see a lot of things, but best looks like a command line interface....: o HTML Search Server o Command Center, Command Line Processor o ODBC Installer & Administrator o Client Configuration Assistant o Windows Support o Problem Determination Tools o First steps
Sorry to bother you with those stupid beginner questions (incredible what you can forget within only 10 years...).
If I do remember right the Command Center was a resource hog with V6,
but I could be totally wrong with that. I still prefer the command line,
although I'm on Windows, that's because of the unix background I guess
:)
From the command line you can use the 'db2 list tables for all' to get
all tables (after connecting to the database). This command can also be
used to list all tables belonging to one schema. If you need to know
which schema's are in your db you can run the command
db2 "select distinct tabschema from syscat.tables where type = 'T'".
For each table you need to run the command
db2 "xport to <file.csv> of del select * from <tabschema>.<ta bname>".
You can create the export statements with the (wrapped) command
db2 "select 'db2 export to ' || rtrim(tabschema ) || '_' || rtrim
(tabname) || '.csv of del select * from ' || rtrim(tabschema ) || '.' ||
rtrim(tabname) from syscat.tables where type = 'T' and tabschema =
'<tabschema>'"
Hope this helps.
Gert van der Kooij wrote: In article <dv**********@o nline.de>, no*********@onl ine.de says... Gert van der Kooij wrote: In article <dv**********@o nline.de>, no*********@onl ine.de says... Gert van der Kooij wrote: > In article <dv**********@o nline.de>, no*********@onl ine.de says... > >> My dream is a tool that can read the DB2 backup, and copies the tables >> in Excel spreadsheets... . okay, dreaming... whatever intermediate steps >> are needed, I will try! >> > With which version of DB2 was the backup created? Gert,
it was generated with DB2 V6 (at least that's what the "Event Monitor" and "Command Center" are saying.
Cheers, Udo
Do you still have a system running with OS/2 and DB2 V6? Yes - I still use the database.
If so you can restore the backup and use the export command as have been sugggested by others. If you don't have a V6 system you need at least V7 system to restore (and automatically migrate) the backup and export the tables. How can I do the export (ohh gosh, 10 years ago I knew...)? I vaguely remember that there was an app to see the different tables and so on. But opening the Folder "DB2 for OS/2" I see a lot of things, but best looks like a command line interface....: o HTML Search Server o Command Center, Command Line Processor o ODBC Installer & Administrator o Client Configuration Assistant o Windows Support o Problem Determination Tools o First steps
Sorry to bother you with those stupid beginner questions (incredible what you can forget within only 10 years...).
If I do remember right the Command Center was a resource hog with V6, but I could be totally wrong with that. I still prefer the command line, although I'm on Windows, that's because of the unix background I guess :)
From the command line you can use the 'db2 list tables for all' to get all tables (after connecting to the database). This command can also be used to list all tables belonging to one schema. If you need to know which schema's are in your db you can run the command db2 "select distinct tabschema from syscat.tables where type = 'T'".
For each table you need to run the command db2 "xport to <file.csv> of del select * from <tabschema>.<ta bname>".
You can create the export statements with the (wrapped) command db2 "select 'db2 export to ' || rtrim(tabschema ) || '_' || rtrim (tabname) || '.csv of del select * from ' || rtrim(tabschema ) || '.' || rtrim(tabname) from syscat.tables where type = 'T' and tabschema = '<tabschema>'"
Hope this helps.
Gert,
this looking great - I will try it asap!
Thanks so much.
Udo
Gert van der Kooij wrote: In article <dv**********@o nline.de>, no*********@onl ine.de says... Gert van der Kooij wrote: In article <dv**********@o nline.de>, no*********@onl ine.de says... Gert van der Kooij wrote: > In article <dv**********@o nline.de>, no*********@onl ine.de says... > >> My dream is a tool that can read the DB2 backup, and copies the tables >> in Excel spreadsheets... . okay, dreaming... whatever intermediate steps >> are needed, I will try! >> > With which version of DB2 was the backup created? Gert,
it was generated with DB2 V6 (at least that's what the "Event Monitor" and "Command Center" are saying.
Cheers, Udo
Do you still have a system running with OS/2 and DB2 V6? Yes - I still use the database.
If so you can restore the backup and use the export command as have been sugggested by others. If you don't have a V6 system you need at least V7 system to restore (and automatically migrate) the backup and export the tables. How can I do the export (ohh gosh, 10 years ago I knew...)? I vaguely remember that there was an app to see the different tables and so on. But opening the Folder "DB2 for OS/2" I see a lot of things, but best looks like a command line interface....: o HTML Search Server o Command Center, Command Line Processor o ODBC Installer & Administrator o Client Configuration Assistant o Windows Support o Problem Determination Tools o First steps
Sorry to bother you with those stupid beginner questions (incredible what you can forget within only 10 years...).
If I do remember right the Command Center was a resource hog with V6, but I could be totally wrong with that. I still prefer the command line, although I'm on Windows, that's because of the unix background I guess :)
From the command line you can use the 'db2 list tables for all' to get all tables (after connecting to the database). This command can also be used to list all tables belonging to one schema. If you need to know which schema's are in your db you can run the command db2 "select distinct tabschema from syscat.tables where type = 'T'".
For each table you need to run the command db2 "xport to <file.csv> of del select * from <tabschema>.<ta bname>".
You can create the export statements with the (wrapped) command db2 "select 'db2 export to ' || rtrim(tabschema ) || '_' || rtrim (tabname) || '.csv of del select * from ' || rtrim(tabschema ) || '.' || rtrim(tabname) from syscat.tables where type = 'T' and tabschema = '<tabschema>'"
Hope this helps.
Gert,
it works - I'm so happy!
Just a last small nice-to-know question: can I somehow read the headers
of the columns, like first column is "Artist", 2nd is "title" and so on....?
You really helped me so much - thanks a lot!!!
Udo This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Thiko |
last post by:
Hi
I take one nightly full database backup at 02:00 and backup the
transaction log to one backup set every 15mins.
The commands to do this are as follows and are set up to run as
database jobs:
-- Database Backup
BACKUP DATABASE TO WITH NOINIT ,
|
by: nt |
last post by:
I am having a problem with a regular backup of an SQL Server (MSDE
2000) database to a local drive. I initiate the backup once a week, by
issuing the required T-SQL, via ADO. In this case, the T-SQL is:
BACKUP DATABASE GPRS_Dimensioning_Archive TO local_backup WITH
RETAINDAYS=21, NAME='GDA_20040706'
Note that "local_backup" is a file sitting on the same physical drive
as the database itself, and has > 80 GB free. It is not a RAID...
|
by: Eric Herber |
last post by:
I've a question regarding db2 (V8.1) and database backups
going to a storage manager like TSM for example.
As I can see in the storage manager if I backup the complete
database over the TSM API (no tablespace backups) the backup
images is stored as a single backup object.
Later I will be able to restore the complete database from
this image and I will also be able to restore single tablespaces
from this backup image as long as I...
|
by: alex |
last post by:
Hi !
I couldn't make backups with our new system using db2 8.2.
Every time I trigger a backup I get this error message:
BACKUP DATABASE EBUERO2 ONLINE TO "/raid/backup/ebuero2/part1",
"/raid/backup/ebuero2/part10", "/raid/backup/ebuero2/part11",
"/raid/backup/ebuero2/part12", "/raid/backup/ebuero2/part13",
"/raid/backup/ebuero2/part14", "/raid/backup/ebuero2/part15",
"/raid/backup/ebuero2/part16", "/raid/backup/ebuero2/part17",
|
by: uthuras |
last post by:
Hi all,
I have DB2ESE version 8.1 with FP 4 on AIX 5.2. My database used to be
1.1TB. When the DB size is 1.1TB, it takes approximately 7 hours to
backup the entire database (online backup). The backup is directed to
disk and not tape.
Recently, we did data archival by purging some of the records. Now, the
size of the database is 500GB plus. That means, only data purged and we
never resize the tablespace. Therefore, the allocated...
| |
by: Michael |
last post by:
Happy new year.
I am looking for code that will go through all tables in MYSQL db and
transfer records into text or excel files.
Thanks
|
by: Joachim Klassen |
last post by:
Hi all,
a couple of questions regarding LOAD COPY YES:
when does a LOAD COPY YES start to write its backup image ? After LOAD
Phase or after BUILD or DELETE phase?
What gets backed up - data pages only or index pages as well?
When I use TSM as backup target, will DB2 send an estimate of the
backup size to TSM before backup starts?
TIA for any answer
|
by: aj |
last post by:
DB2 LUW 8.2 FP14 Red Hat AS 2.1
I went to restore a backup of my production DB on my test/developmental
server. The backup on the prod system was taken /before/ alt_obj() was
used there to do some schema evolution.
The restore on the test box barfed on the roll forward because alt_obj()
uses COPY YES on its LOAD, and the test box did not have the magic data
COPY YES files (apparently they are in ~/sqllib/tmp?).
|
by: sara440 |
last post by:
i want to take backup of one table(tables's data) of database, on hard disk or cd.i have a button "backup" on my form that should ask for backup when clicked.(it should allow to take backup on Cd).
i m form from which attendance of students is entered.so when session ends ( like for example session of class(MBA) is 2005 -2007),
i want to delete attendance of this class which exists in "student_attendance" table.On my "Atteandance...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |