473,385 Members | 1,673 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.

ADMIN_CMD and EXPORT

Friends:

The (v9) documentation for invoking LOAD via the ADMIN_CMD SP has this
to say:

"Since all load processes (and all DB2 server processes, in general)
are owned by the instance owner, and all of these processes use the
identification of the instance owner to access needed files, the
instance owner must have read access to input data files. These input
data files must be readable by the instance owner, regardless of who
invokes the command."

While calling EXPORT in the ADMIN_CMD SP, I'm noticing behavior that
leads me to believe that the blurb about LOAD above applies to EXPORT
in this context as well: in order to write my ixf and message files, I
had to grant the instance owner r/w to the target directory despite
the fact that the user id that invoked the SP (which in turn calls
ADMIN_CMD) already had those rights.

Can anyone confirm this?

Env: DB2 UDB LUW 8.2.3 on AIX 5.x

--Jeff

May 8 '07 #1
1 2705
Ian
jefftyzzer wrote:
Friends:

The (v9) documentation for invoking LOAD via the ADMIN_CMD SP has this
to say:

"Since all load processes (and all DB2 server processes, in general)
are owned by the instance owner, and all of these processes use the
identification of the instance owner to access needed files, the
instance owner must have read access to input data files. These input
data files must be readable by the instance owner, regardless of who
invokes the command."

While calling EXPORT in the ADMIN_CMD SP, I'm noticing behavior that
leads me to believe that the blurb about LOAD above applies to EXPORT
in this context as well: in order to write my ixf and message files, I
had to grant the instance owner r/w to the target directory despite
the fact that the user id that invoked the SP (which in turn calls
ADMIN_CMD) already had those rights.

Can anyone confirm this?
Yes. This is exactly the same reason why the LOAD utility must have
read access to the data files.

The stored procedure is running on the server, executed as the instance
owner. This is just like you logging in as the instance owner
and performing the export directly.
May 11 '07 #2

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

Similar topics

205
by: Jeremy Siek | last post by:
CALL FOR PAPERS/PARTICIPATION C++, Boost, and the Future of C++ Libraries Workshop at OOPSLA October 24-28, 2004 Vancouver, British Columbia, Canada http://tinyurl.com/4n5pf Submissions
5
by: David | last post by:
I am a little confused by DB2 Backup and Export. I used "db2 backup db QAS to /dev/rmt0" backuping 650GB database to a IBM LTO 3581 (1 drive) only 11 hours. But I used "db2 export to /dev/rmt0...
3
by: chettiar | last post by:
I am trying to do the following from within a procedure. set vcsql = 'Call SYSPROC.ADMIN_CMD(' || '''load from /dev/null of del replace into bi.Provisioned_Spam''' || ')'; execute immediate...
2
by: Gregor Kovač | last post by:
Hi! I'm trying to use ADMIN_CMD procedure in my SQL procedure like this: DROP PROCEDURE IMPORT_DATA# CREATE PROCEDURE IMPORT_DATA() SPECIFIC IMPORT_DATA MODIFIES SQL DATA NOT DETERMINISTIC...
1
by: Gregor Kovač | last post by:
Hi! I'm using procedure ADMIN_CMD to export/import tables into IXF files. Is there a way to tell what codepage EXPORT/IMPORT should use? Best regards, Kovi --...
5
by: JHNielson | last post by:
I have a somewhat simple question, but have been baffled by it for a while, and now I'm on a tight deadline - have to get it done within 24 hours. I am trying to export a set of files to my hard...
0
by: kyma333 | last post by:
We're on AIX5.3/DB2 UDB 8.1 FP12. One of the production servers have ADMIN_CMD but not the other one. I'm new to stored procedures in V8. What would be the easiest way to copy it over?
2
by: joachim.c.mueller | last post by:
Hello, is it not possible to load data with admin_cmd into a table? This SP ended with SQL3304N The table does not exist.: CREATE PROCEDURE ADM_LOAD ( ) DYNAMIC RESULT SETS 1 -- SQL...
0
by: David Beardsley | last post by:
I'm trying to write a stored procedure that will terminate a load for a given table using the SYSPROC.ADMIN_CMD procedure. When I take the syntax that works using Quest: LOAD FROM '/dev/null'...
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: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: 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?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.