Error while loading data from a file into a table

This is a discussion on Error while loading data from a file into a table within the informix forums in Other Databases category; Hi Guys: I am trying to load the data from a file into a table in a database by using the below command. isql metdb >> /tmp/TEMPDIR_REM/LOAD.LOG 2>&1 ! But while running this in a script it shows.. UX:sh (loadfile.sh): ERROR: isql: not found Plz suggest me an alternative.....

Go Back   Database Forum > Other Databases > informix

Database Forums

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 08-25-2008, 02:46 AM
Default Error while loading data from a file into a table

Hi Guys:

I am trying to load the data from a file into a table in a database by
using the below command.

isql metdb >> /tmp/TEMPDIR_REM/LOAD.LOG 2>&1 < load from "/tmp/TEMPDIR_REM/$LOADTABLE.txt" insert into $LOADTABLE
!

But while running this in a script it shows..
UX:sh (loadfile.sh): ERROR: isql: not found

Plz suggest me an alternative..
Reply With Quote
  #2  
Old 08-25-2008, 04:12 AM
Default Re: Error while loading data from a file into a table

isql is not installed???

you could try dbaccess instead.

Superboer

On 25 aug, 07:46, Rajesh wrote:
> Hi Guys:
>
> I am trying to load the data from a file into a table in a database by
> using the below command.
>
> isql metdb >> /tmp/TEMPDIR_REM/LOAD.LOG 2>&1 < > load from "/tmp/TEMPDIR_REM/$LOADTABLE.txt" insert into $LOADTABLE
> !
>
> But while running this in a script it shows..
> UX:sh (loadfile.sh): ERROR: isql: not found
>
> Plz suggest me an alternative..


Reply With Quote
  #3  
Old 08-25-2008, 06:03 AM
Default Re: Error while loading data from a file into a table


Rajesh said:
> Hi Guys:
>
> I am trying to load the data from a file into a table in a database by
> using the below command.
>
> isql metdb >> /tmp/TEMPDIR_REM/LOAD.LOG 2>&1 < > load from "/tmp/TEMPDIR_REM/$LOADTABLE.txt" insert into $LOADTABLE
> !
>
> But while running this in a script it shows..
> UX:sh (loadfile.sh): ERROR: isql: not found
>
> Plz suggest me an alternative..


dbaccess?

If you have ISQL, then it's probably not in your PATH.

--
Bye now,
Obnoxio

http://obotheclown.blogspot.com/


Reply With Quote
Reply


Thread Tools
Display Modes



All times are GMT -4. The time now is 12:52 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Integrated by bbpixel2008 :: jvbPlugin R1013.368.1

Search Engine Friendly URLs by vBSEO 3.1.0
vB Ad Management by =RedTyger=
In an effort to better serve ads to our visitors, cookies are used on Mydatabasesupport.com. For more information, check out our Privacy Policy.