473,385 Members | 1,359 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,385 software developers and data experts.

Export from DB2 causes file to be created with permissions of 640

I need some help with a problem I've encountered. I am a zLinux, WAS, and DB2 noob so please bear with me.

I am helping to support two WebSphere applications which utilize DB2 under zLinux. One application is for Europe and the other for the US. Each application has multiple WAS servers and HTTP servers backed by their own DB2 server. A script is run for each application that exports data from a z/OS-based DB2 database into a file on the zLinux DB2 server. Another script is then run to take that exported data and import it into the DB2 database on that zLinux server.

Up until November 3rd, the files created by the export scripts (European and US) were given permissions of 644. This allowed the import scripts to read the exported files. Since November 3rd, the files created on the US DB2 server are getting permissions of 640, which is causing the import script to fail. We have circumvented the problem by placing a chown command in the export script to change the permissions to 644.

I am looking for help in determining what caused the processing to change the permissions from 644 to 640. I want to change whatever caused this back to the way it was before and remove the chown command from the script. I added code to the script to display the umask at the beginning and end of the script. The umask is 022 in both cases.

I also determined that the 640 change is coming from DB2 somehow. If I create a new file within the script (beginning or end), it gets permissions of 644 as expected. The script and the file containing the SQL code were last modified in 2005.
  • zLinux is SUSE (I don't remember the actual version but know that it is SLES 8).
  • WAS is Version 6.0.1.
  • DB2 is Version 8.1

The SQL code is:
Expand|Select|Wrap|Line Numbers
  1. export to /winxs/tmp/xrt001.exp
  2. of IXF messages /winxs/tmp/xrt001_export.msg
  3. SELECT *
  4. FROM WCSDB2P.xrt001_vw
  5. for read only with ur;
  6.  

Thanks,
Harley
Nov 13 '07 #1
1 2416
xalo
1
I have the same problem. Can anybody help ?
Feb 28 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Ivan Zuzak | last post by:
Hello. Sorry for crossposting, but i didn't have a better idea as to where to post the question. I'm using certificates to sign and encrypt SOAP messages, using WSE in .Net. I want to do the...
0
by: Ant Corrie | last post by:
I am at a loss as to why this is not working. I am trying to setup a TextWriterTraceListener in my application config file and then execute the app from the network. I get a security exception...
0
by: Almund Sebi | last post by:
Hello everybody, I've installed DB2 UDB v7.1 on Red Hat Linux, now at Fixpack level 10a. When I run these commands: > db2 "create table test(id int generated by default as identity)" > db2...
5
by: Tim Eliot | last post by:
Just wondering if anyone has hit the following issue and how you might have sorted it out. I am using the command: DoCmd.TransferText acExportMerge, , stDataSource, stFileName, True after...
2
by: PC Datasheet | last post by:
Can Access programatically export a query to XML? Thanks, Steve
0
by: Max Mayer | last post by:
Hello everybody, I have implemented a windows form in C# .NET to export data from a listbox to Excel. I work on a Windows XP machine with Office 97 and .NET framework 1.1 SDK installed. I use...
0
by: Max Mayer | last post by:
Hello everybody, I have implemented a windows form in C# .NET to export data from a listbox to Excel. I work on a Windows XP machine with Office 97 and .NET framework 1.1 SDK installed. I use...
15
by: David Thielen | last post by:
Hi; My ASP.NET app (C# calling J# under .net 2.0) creates a png file in a subdirectory to display as part of the created page. However, the bitmap will not display due to a security violation. ...
2
by: mike_dba | last post by:
I am attempting to move data between 2 DB2 Linux databases using a pipe. I can't seem to get it working. Any assistance is appreciated. I first issue: mkfifo -m777 mypipe db2 "connect to...
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
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: 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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.