dbTalk Databases Forums  

How can I resolve a "SQL1326N: The file or directory cannot be accessed" restore problem?

comp.databases.ibm-db2 comp.databases.ibm-db2


Discuss How can I resolve a "SQL1326N: The file or directory cannot be accessed" restore problem? in the comp.databases.ibm-db2 forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Okonita@gmail.com
 
Posts: n/a

Default How can I resolve a "SQL1326N: The file or directory cannot be accessed" restore problem? - 10-07-2007 , 03:41 PM








Hi all,
I am having problem completing this restore operation.

"db2 restore database AAMI01 from /pap/data/backups taken at
20071002130554 to /pap/data/db01 into AAMI01 NEWLOGPATH /pap/data/new/
log WITH 2 BUFFERS BUFFER 1024"

SQL1326N The file or directory "/pap/data/db01/" cannot be accessed.

The file, directory and path all exist. I created them. I just can't
understand why I can't tell restore where I want to put down the
database.

If I remove the " to /pap/data/db01", restore will try to put the DB
in a directory that I want to avoid. I want to restore to "/pap/data/
db01" specifically.

Can someone tell me what I am doing wrong here? Or what I need to do?
My ID have all the permission that I need to write to the path.

Thanks


Reply With Quote
  #2  
Old   
jammann.ch@gmail.com
 
Posts: n/a

Default Re: How can I resolve a "SQL1326N: The file or directory cannot be accessed" restore problem? - 10-08-2007 , 12:47 AM






On 7 Okt., 22:41, Okon... (AT) gmail (DOT) com wrote:

Quote:
SQL1326N The file or directory "/pap/data/db01/" cannot be accessed.

My ID have all the permission that I need to write to the path.

Thanks
the instance-owner (not your ID, suppose they are different) must have
the right to write to this directory



Reply With Quote
  #3  
Old   
jammann.ch@gmail.com
 
Posts: n/a

Default Re: How can I resolve a "SQL1326N: The file or directory cannot be accessed" restore problem? - 10-10-2007 , 04:25 AM



On 8 Okt., 07:47, jammann... (AT) gmail (DOT) com wrote:
Quote:
On 7 Okt., 22:41, Okon... (AT) gmail (DOT) com wrote:

SQL1326N The file or directory "/pap/data/db01/" cannot be accessed.
My ID have all the permission that I need to write to the path.

Thanks

the instance-owner (not your ID, suppose they are different) must have
the right to write to this directory
******* because OKINITA replied by direct email: missing post
included: ******

But who or what is the instance owner? Some of the required
directories were created by me. I expect that I should have almost
absolute right to the path and what not. I am real new to the
subtleties of Linux/Unix, etc so bear with me if I speak from the back
of my head. I thought the basic concept of ownership and read/write
access remains the same regardless of environment - sort of. Anyway, I
login as myself, with all read/write/execute, I get access denied to
path. I login as db2inst1 (should it be the instance owner?), I still
get directory path cannot be accessed? Ok, a colleague logged in as
the same db2inst1 and behold, he can do just what I can't? How can
that be possible?

-----------------
db2inst1 is the default inst_owner userid, so unless you changed
during installation it will be db2inst1.

Quote:
Ok, a colleague logged in as
the same db2inst1 and behold, he can do just what I can't?
not possible, you missed someting . . . observed wrong . . . i don't
know



Reply With Quote
  #4  
Old   
Knut Stolze
 
Posts: n/a

Default Re: How can I resolve a "SQL1326N: The file or directory cannot be accessed" restore problem? - 10-10-2007 , 04:42 AM



jammann.ch (AT) gmail (DOT) com wrote:

Quote:
On 8 Okt., 07:47, jammann... (AT) gmail (DOT) com wrote:
On 7 Okt., 22:41, Okon... (AT) gmail (DOT) com wrote:

SQL1326N The file or directory "/pap/data/db01/" cannot be accessed.
My ID have all the permission that I need to write to the path.

Thanks

the instance-owner (not your ID, suppose they are different) must have
the right to write to this directory

******* because OKINITA replied by direct email: missing post
included: ******

But who or what is the instance owner?
The DB2 instance owner is the user under whose authority most of the DB2
processes are run. You had to specify that user when creating the instance
with the "db2icrt" command. And that user also has a directory
named "sqllib" in his $HOME.

Quote:
Some of the required
directories were created by me.
Who is "me"? Is the user ID you use for operating as "me" the one user ID
that starts and runs the DB2 instance?

Quote:
I thought the basic concept of ownership and read/write
access remains the same regardless of environment - sort of.
The idea is that each process in Unix/Linux has an owner. With that owner
come certain privileges to operate on different files/directories. Each
process has not only an owner but also group memberships (see "man
groups"). So if you create a directory, it does not imply by any means
that another process that is not owned by you has any privileges on that
directory (depending on your configuration, of course).

Quote:
Anyway, I
login as myself, with all read/write/execute, I get access denied to
path.
Then you should figure out which user created the directory and/or changed
the privileges on those directories. You can get "access denied" if you
don't have "x" (execute) and/or "r" read privileges on a directory or one
of the parent directories.

Notes:
(1) You can remove your own privileges from a directory.
(2) Things are a bit more complicated with network file systems, of course.

Quote:
I login as db2inst1 (should it be the instance owner?),
If "db2inst1" is the user under which the DB2 processes are run, then this
is the "instance owner".


--
Knut Stolze
DB2 z/OS Utilities Development
IBM Germany


Reply With Quote
Reply




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.