473,383 Members | 1,739 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

DB2 load command

HI,
I am trying to load from a file and am using the following command. I am
getting invalid path for the file name.
I am doing the following on a solaris machine with DB28.1.3

db2 -s -f test.sql where test.sql contains the following :

CONNECT TO <DB_ALIAS > USER <DB_USER> USING <DB_PASWD>
load from test.out of asc modified by usedefaults striptblanks reclen=328
method L (1 32, 33 54, 55
80, 81 102, 103 124, 125 146, 147 168, 169 190, 191 212, 213 238, 239 260,
261 2
94, 295 328) insert into <DB_USER>.REP_NOTE (gid, LCID, ModificationDate,
PRTN_N
UM, RealmID, SeqID, Type, UPD_REP_ID, IMPRT_TYP_CD, NOTE_DT, REP_ID,
REPL_OBJ_GI
D, NOTE_LN_CLL_GID) NONRECOVERABLE
DISCONNECT CURRENT
I get the error invalid path for test.out The file is present in the
currecnt directory from where i execute the db2 command. Please help.

Nov 12 '05 #1
2 6710
"anuradhasrikrish" <u9******@yahoo.com> wrote in message news:<5f******************************@localhost.t alkaboutdatabases.com>...
HI,
I am trying to load from a file and am using the following command. I am
getting invalid path for the file name.
I am doing the following on a solaris machine with DB28.1.3

I get the error invalid path for test.out The file is present in the
currecnt directory from where i execute the db2 command. Please help.


Does the instance owner have read access to the file?

buck
Nov 12 '05 #2
On Tue, 22 Jun 2004 04:00:16 -0400, "anuradhasrikrish"
<u9******@yahoo.com> wrote:
HI,
I am trying to load from a file and am using the following command. I am
getting invalid path for the file name.
I am doing the following on a solaris machine with DB28.1.3

db2 -s -f test.sql where test.sql contains the following :

CONNECT TO <DB_ALIAS > USER <DB_USER> USING <DB_PASWD>
load from test.out of asc modified by usedefaults striptblanks reclen=328
method L (1 32, 33 54, 55
80, 81 102, 103 124, 125 146, 147 168, 169 190, 191 212, 213 238, 239 260,
261 2
94, 295 328) insert into <DB_USER>.REP_NOTE (gid, LCID, ModificationDate,
PRTN_N
UM, RealmID, SeqID, Type, UPD_REP_ID, IMPRT_TYP_CD, NOTE_DT, REP_ID,
REPL_OBJ_GI
D, NOTE_LN_CLL_GID) NONRECOVERABLE
DISCONNECT CURRENT
I get the error invalid path for test.out The file is present in the
currecnt directory from where i execute the db2 command. Please help.


fully qualify the location of test.out and all should work well.
Nov 12 '05 #3

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

Similar topics

6
by: JS | last post by:
EE instance DB2 v7.2.0 fixpack 3 on WIN2K. I select some data from a table A and write it to a file using the COALESCE function and whitespace as the null character: eg coalesce(col1, ' '). This...
7
by: DB_2 | last post by:
Hello, I was trying to load a comma-separated text file to a DB2 table. I believe I have the syntax rigt for the LOAD command. My first question is, how do you actually run it? It is not a...
2
by: jay | last post by:
hi, Question on Load/import command. consider a sample table create table table_name ( col1 timestamp not null default current timestamp, col2 int, col3 int, col4 int, primary key(col1) );...
2
by: Tim | last post by:
Hi I have what is probably a strange question but is it possible to get a tablespace out of a backup pending state if one does a load on a recoverable database? Also assuming this isn't...
1
by: Jerry LeVan | last post by:
At the time I built Postgresql 7.4.2 I did not have aqua Tcl/Tk installed. The Aqua Tcl/Tk version installs in a different location the the apple supplied Tcl ( apple does not supply Tk). I...
3
by: lm | last post by:
Hi, How can i use JDBC driver to load some datas from DB2 DBMS with the load command and a specific delimiter ? Can u give me a sample ? Best regards
0
by: georgejibin | last post by:
Hi All, Needed help regarding the db2 load command. I am trying to load the data into a db2 table from a text file executed from UNIX shell prompt as below. db2 "LOAD CLIENT FROM...
0
by: tajakthar | last post by:
Hi Everyone, I am trying to use DB2 load command using java and its giving me error -104 .Can anyone share me the piece of java code to run DB2 load command with options Thanks a million.
0
by: doob | last post by:
Hi, im new programmer, im currently trying to use ASP.NET: VB OLEDB connection to make a query LOAD command so i can load a csv file to DB2 Database. can anyone show me how to do that? my main...
2
by: mike.lopiano | last post by:
There is a significant gap (~ 3.5 minutes) in the time our LOAD command indicates that the BUILD phase is complete and the time we have control returned to our script. I ran the test below on a...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

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.