473,796 Members | 2,444 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Transferring files from PC to AIX-DB2

Hi All,
Can you please help me with a step by step procedure to transfer files
from my PC to DB2-AIX and vice versa. I am new to both.
Example transferring a sql file to run from PC to DB2 on AIX.
PC-OS windows
DB2 on AIX platform.

Thanks.

Aug 20 '06 #1
5 3302
There is no way to transfer an "SQL file" because databases are not files.

You have at least three options that I can think of if you are trying to
move or copy data between platforms (others may contribute more
options). Each option has its own process so you're going to have to
read up on them to get the process:

1. Replication using Data Propagator
2. Export (or using db2move if you want to move the definitions also).
3. High-Performance Unload

Larry E.

meetalps wrote:
Hi All,
Can you please help me with a step by step procedure to transfer files
from my PC to DB2-AIX and vice versa. I am new to both.
Example transferring a sql file to run from PC to DB2 on AIX.
PC-OS windows
DB2 on AIX platform.

Thanks.
Aug 20 '06 #2
To explain......

1) DDL language (create table, alter table, drop view, etc.) is
universal for DB2, be it windows, AIX, etc.
2) DML langauge (select, update, insert, delete) is also universal
3) DCL language (grant connect, etc) is also universal
4) Data transfer, using IXF and CSV is also universal

What you cannot do Windows <-AIX, is restore a database from one
platform to another.

There are subtle limitations, all documented in the DB2 Infocentre
(e.g. Windows and AIX have different directory structures, so creating
a tablespace would require using different container names).

All one big happy family at the end of the day :-)

Graham Martin
http://www.ibm.com/software/data/db2/migration/

Larry wrote:
There is no way to transfer an "SQL file" because databases are not files.

You have at least three options that I can think of if you are trying to
move or copy data between platforms (others may contribute more
options). Each option has its own process so you're going to have to
read up on them to get the process:

1. Replication using Data Propagator
2. Export (or using db2move if you want to move the definitions also).
3. High-Performance Unload

Larry E.

meetalps wrote:
Hi All,
Can you please help me with a step by step procedure to transfer files
from my PC to DB2-AIX and vice versa. I am new to both.
Example transferring a sql file to run from PC to DB2 on AIX.
PC-OS windows
DB2 on AIX platform.

Thanks.
Aug 20 '06 #3
Thanks guys,
Let me be more specific..
The database is on a server connected using putty/telnet from my laptop
running on windows xp pro. And that DB2 is installed on AIX platform.
If I have a abc.sql file provided by ETL group which performs some
insert,update,d elete operation mailed to me and saved in my documents.
How do I transfer it to my putty session where I am logged in to the
database running on AIX.

Thanks.

graham_martin wrote:
To explain......

1) DDL language (create table, alter table, drop view, etc.) is
universal for DB2, be it windows, AIX, etc.
2) DML langauge (select, update, insert, delete) is also universal
3) DCL language (grant connect, etc) is also universal
4) Data transfer, using IXF and CSV is also universal

What you cannot do Windows <-AIX, is restore a database from one
platform to another.

There are subtle limitations, all documented in the DB2 Infocentre
(e.g. Windows and AIX have different directory structures, so creating
a tablespace would require using different container names).

All one big happy family at the end of the day :-)

Graham Martin
http://www.ibm.com/software/data/db2/migration/

Larry wrote:
There is no way to transfer an "SQL file" because databases are not files.

You have at least three options that I can think of if you are trying to
move or copy data between platforms (others may contribute more
options). Each option has its own process so you're going to have to
read up on them to get the process:

1. Replication using Data Propagator
2. Export (or using db2move if you want to move the definitions also).
3. High-Performance Unload

Larry E.

meetalps wrote:
Hi All,
Can you please help me with a step by step procedure to transfer files
from my PC to DB2-AIX and vice versa. I am new to both.
Example transferring a sql file to run from PC to DB2 on AIX.
PC-OS windows
DB2 on AIX platform.
>
Thanks.
>
Aug 20 '06 #4

meetalps wrote:
Thanks guys,
Let me be more specific..
The database is on a server connected using putty/telnet from my laptop
running on windows xp pro. And that DB2 is installed on AIX platform.
If I have a abc.sql file provided by ETL group which performs some
insert,update,d elete operation mailed to me and saved in my documents.
How do I transfer it to my putty session where I am logged in to the
database running on AIX.
I think you will need another program to transfer the files. In the
putty family there is also a program called pscp.exe. It's an scp clone
for windows. Download that, open a doswindow and run:

<path to pscp.exe>\pscp. exe <my_sql_file<my _user>@<myhost> :<path>/

Example:

c:\myprogs\pcsp .exe my_file.sql db2inst1@aix_ho st:/tmp/

You might have to transform the file to unixfomat. I'm not familiar
with AIX so I dont know if dos2unix is included. In worst case you can
do the newline substitution with sed

HTH

/Lennart

Aug 21 '06 #5
2 more options.
1. Use ftp from a dos command window on your pc.
2. Install Samba on your AIX box which will allow you to map an AIX
file system as a network drive on your pc.

le*****@kommuni cera.umea.se wrote:
meetalps wrote:
Thanks guys,
Let me be more specific..
The database is on a server connected using putty/telnet from my laptop
running on windows xp pro. And that DB2 is installed on AIX platform.
If I have a abc.sql file provided by ETL group which performs some
insert,update,d elete operation mailed to me and saved in my documents.
How do I transfer it to my putty session where I am logged in to the
database running on AIX.

I think you will need another program to transfer the files. In the
putty family there is also a program called pscp.exe. It's an scp clone
for windows. Download that, open a doswindow and run:

<path to pscp.exe>\pscp. exe <my_sql_file<my _user>@<myhost> :<path>/

Example:

c:\myprogs\pcsp .exe my_file.sql db2inst1@aix_ho st:/tmp/

You might have to transform the file to unixfomat. I'm not familiar
with AIX so I dont know if dos2unix is included. In worst case you can
do the newline substitution with sed

HTH

/Lennart
Aug 21 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
1916
by: Abby | last post by:
I have an application that is written in php/mysql on a Linux platform and need to transfer hosts. This is a session based application and I don't know a lot about php/Linux/mysql, but can get by. I know windows/asp, etc. much more extensively. So, can I just move the whole thing over to a Windows server, upload the mysql backup database and change the settings for the db connection and have it work? Is there anything that would prevent...
24
2287
by: Joseph Geretz | last post by:
Up to this point, our application has been using Windows File Sharing to transfer files to and from our application document repository. This approach does not lend itself toward a secure environment and so we are in the process of imposing a WebService gateway between our application client and the repository. (As a starting point, the WebService won't be a richly featured application server; business rules are still implemented in the...
2
1551
by: Dino | last post by:
dear all, i got this script form a customer. in general, it recieves data which is send via http to a server and generates a .xml file from this data. because i'm not familar with .asp, i'm totally lost transferring this script to php. i don't understand which way the data is recieved and how it's saved. as long this ia a very short script, i post it here. it would bne GREAT if
3
1686
by: JayD | last post by:
(Not sure whether it is a general aspnet problem or a specific security problem, hence posting it in 2 groups). This will solve for us a number of problems. I have developed a website on my local machine (part of a LAN) using Visual Web Developer, with ASP.NET 2.0. Backend is a SQL Server 2000 database. All queries and webforms work beautifully on my local machine (file system web project). However, when I copy this website to a...
2
1639
by: Tommaso Caldarola | last post by:
I'm using a Remoting to manage small set of data, now the customer wants to transfer big binary files (up to 10 Gb) between 2 computers. It's better to use socket or other technology or I can continue using Remoting without problems with great quantity of data to pass through boundaries. TIA --
0
957
by: Gerard Flanagan | last post by:
Hello Problem: I want to send a Python script to someone running AIX Unix but who can't (or won't) compile or otherwise install the Python interpreter. If I have compiled Python on the same version of AIX, what would I need to provide to the user to enable him to run the script? Thanks
1
1696
by: bhavanirayala | last post by:
Hello, I am using XML::Parsar in my perl file. but when I run the perl file, getting the following erro even I have the parser.pm and Dynaloader.pm files in the lib path. The error is: Can't load '/usr/local/lib/perl5/site_perl/5.6.1/aix/auto/XML/Parser/Expat/Expat.so' for module XML::Parser::Expat: dlopen: /usr/local/lib/perl5/site_perl/5.6.1/aix/auto/XML/Parser/Expat/Expat.so: A file or directory in the path name does not exist. at...
17
9956
by: byte8bits | last post by:
How does C++ safely open and read very large files? For example, say I have 1GB of physical memory and I open a 4GB file and attempt to read it like so: #include <iostream> #include <fstream> #include <string> using namespace std; int main () {
7
1877
by: brasse | last post by:
Hello! I am having some trouble building Python 2.6 on AIX. The steps I have taken are: export PATH=/usr/bin/:/usr/vacpp/bin/ ../configure --with-gcc=xlc_r --with-cxx=xlC_r --disable-ipv6 make This is the error message I'm seeing:
2
2702
by: sumanz | last post by:
Hello, I work from home and I connect to the environment (on AIX) using putty. I have a zip file on my laptop (OS: windows xp prof) , I need to move that file from windows to AIX box thru putty. Can any of u guys suggest me how to go about it? Regards, Sumanz
0
9680
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9528
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,...
0
10228
jinu1996
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...
0
10006
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7547
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6788
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5573
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3731
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2925
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.