If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > SQL10007N Message "-1390" could not be retrieved.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-29-03, 17:24
solomoc solomoc is offline
Registered User
 
Join Date: Oct 2003
Posts: 6
SQL10007N Message "-1390" could not be retrieved.

I have seen this error in the db2 forum but not a finalized resolution

SQL10007N Message "-1390" could not be retrieved.

here is my problem:

I am using Udb 8.1 on Red Hat Linux v8.

I created a crontab entry for my script under the db2 user.

crontab entry:

37 16 * * 1-5 /data/DB2BackupData/config/dia_backup

where dia_backup is my script.

Contents of the dia_backup script:

/home/db2inst3/sqllib/db2profile
/home/db2inst3/sqllib/bin/db2 force applications all
/home/db2inst3/sqllib/bin/db2 backup db dia to '/data/arraya/bck'


Whenever the job is executed from the crontab it fails with the above error.

If I run the script from the os command line it works.

Any suggestions?

NOTE:
I verified that my DB2INSTANCE paramter is set and I have also
checked the file permissions for where the backup file is
suppose to end up.



Thanks in Advance
CS
Reply With Quote
  #2 (permalink)  
Old 10-29-03, 17:39
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
Re: SQL10007N Message "-1390" could not be retrieved.

Try using
. /home/db2inst3/sqllib/db2profile

instead of
/home/db2inst3/sqllib/db2profile

Note: there is a space between . and / in the former case

Let us know how it goes

sathyaram


Quote:
Originally posted by solomoc
I have seen this error in the db2 forum but not a finalized resolution

SQL10007N Message "-1390" could not be retrieved.

here is my problem:

I am using Udb 8.1 on Red Hat Linux v8.

I created a crontab entry for my script under the db2 user.

crontab entry:

37 16 * * 1-5 /data/DB2BackupData/config/dia_backup

where dia_backup is my script.

Contents of the dia_backup script:

/home/db2inst3/sqllib/db2profile
/home/db2inst3/sqllib/bin/db2 force applications all
/home/db2inst3/sqllib/bin/db2 backup db dia to '/data/arraya/bck'


Whenever the job is executed from the crontab it fails with the above error.

If I run the script from the os command line it works.

Any suggestions?

NOTE:
I verified that my DB2INSTANCE paramter is set and I have also
checked the file permissions for where the backup file is
suppose to end up.



Thanks in Advance
CS
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #3 (permalink)  
Old 10-29-03, 18:19
solomoc solomoc is offline
Registered User
 
Join Date: Oct 2003
Posts: 6
Re: SQL10007N Message "-1390" could not be retrieved.

Quote:
Originally posted by sathyaram_s
Try using
. /home/db2inst3/sqllib/db2profile

instead of
/home/db2inst3/sqllib/db2profile

Note: there is a space between . and / in the former case

Let us know how it goes

sathyaram

Thanks that did the trick !!
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On