Database Access problem

Navision Articles

Get our Free Newletter

Don't you have the time to be online here at DUG every day? So how do you follow what is going on in the Dynamics industry and community?
If you subscribe to the DUG Newsletter then you can relax! We will make sure that you don't miss the big news!

Check out our
Newsletter Subscription Center
page a complete list of our different newsletters.

Solution (Verified) This post has 1 verified solution | 18 Replies | 3 Followers

Top 500 Contributor
63 Posts
770 Points
Joined: Feb 20, 2007
Last Online:
Nov 14, 2009 10:38
stelco posted on Jan 7, 2009 7:41
How helpful was this post/question? Please rate here:

hi all,

Please be noted that we have installed new window 2008 server but when we try to access the Dynamics Nav 5.0 (SP1), it gives the error,   "The  operating system cannot gain access to the file "F:\database.fdb", please check that the file type and attribute are correct".

Configuration is as follows :--

1. C:\ Drive : Windows 2008 operating system.

2. D:\ Drive : Dynamics 5.0 (SP1) server & Client installation files.

3. F:\ Drive : "database.fdb"

 

We are presently using RAID 5 IBM server.

 

Please suggest.

 

 

 

 

 

 

 

 

 

 

 

Solution (Verified) Verified Solution

Top 25 Contributor
Male
1,101 Posts
25,232 Points
Joined: May 6, 2008
Last Online:
Mar 18, 2010 14:04
Location: Dublin
Moderator
Solution (Verified) DaveT replied on Jan 7, 2009 10:58
How helpful was this comment/solution? Please rate here:
Verified by stelco

Hi,

This is window permissions to the fdb file.  Right click and select the properties, then change the windows security

Dave Treanor

Dynamics Nav Add-ons
www.simplydynamics.ie/Addons.html

Please:
1. Use a meaningful title.
2. Give as much detail as possible.
3."Verify Solution" to the post that help you solve your problem.
4. Fill out your Tags - it will help other people.
5. N.B. Don't be afraid to ask - we all had to learn and are still learning Wink

All Replies

Top 25 Contributor
Male
1,101 Posts
25,232 Points
Joined: May 6, 2008
Last Online:
Mar 18, 2010 14:04
Location: Dublin
Moderator
Solution (Verified) DaveT replied on Jan 7, 2009 10:58
How helpful was this comment/solution? Please rate here:
Verified by stelco

Hi,

This is window permissions to the fdb file.  Right click and select the properties, then change the windows security

Dave Treanor

Dynamics Nav Add-ons
www.simplydynamics.ie/Addons.html

Please:
1. Use a meaningful title.
2. Give as much detail as possible.
3."Verify Solution" to the post that help you solve your problem.
4. Fill out your Tags - it will help other people.
5. N.B. Don't be afraid to ask - we all had to learn and are still learning Wink

Top 50 Contributor
Male
373 Posts
4,565 Points
Joined: Nov 6, 2005
Last Online:
Feb 4, 2010 3:13
Location: Weymouth, MA, USA
babrown replied on Jan 7, 2009 12:42
How helpful was this comment/solution? Please rate here:

What was the source of the *.fdb file?  If it came from a read-only source (CD/DVD) it may be flagged as a read-only file.  Look at the file properties (right-click) and remove the attribute.

Question:

If you are using a NAV server why would you be accessing the *.fdb from the client?  Or are you getting this error when attemping to connect to the server?

 

Top 150 Contributor
Male
167 Posts
2,835 Points
Joined: Nov 29, 2003
Last Online:
Mar 11, 2010 0:44
Location: Delhi
Solution (Not Verified) ashbhardwaj replied on Jan 7, 2009 13:05
How helpful was this comment/solution? Please rate here:
Suggested by ashbhardwaj

Hi

Just Check & untick the read only permission on the properties (Right click on FDB File)

Ashish Bhardwaj

Top 500 Contributor
63 Posts
770 Points
Joined: Feb 20, 2007
Last Online:
Nov 14, 2009 10:38
stelco replied on Jan 7, 2009 15:09
How helpful was this comment/solution? Please rate here:

Hi,

Extremely thankful to all. Actually it was  window permissions to the fdb file.  As per you people suggestion I right click the Database file  and selected  the properties, and changed the windows "security/permission"  of "ERP/Users".

 

Thanks again

Top 25 Contributor
Male
1,101 Posts
25,232 Points
Joined: May 6, 2008
Last Online:
Mar 18, 2010 14:04
Location: Dublin
Moderator
DaveT replied on Jan 7, 2009 15:12
How helpful was this comment/solution? Please rate here:

Glad to Help Big Smile

Dave Treanor

Dynamics Nav Add-ons
www.simplydynamics.ie/Addons.html

Please:
1. Use a meaningful title.
2. Give as much detail as possible.
3."Verify Solution" to the post that help you solve your problem.
4. Fill out your Tags - it will help other people.
5. N.B. Don't be afraid to ask - we all had to learn and are still learning Wink

Top 50 Contributor
Male
373 Posts
4,565 Points
Joined: Nov 6, 2005
Last Online:
Feb 4, 2010 3:13
Location: Weymouth, MA, USA
babrown replied on Jan 7, 2009 15:34
How helpful was this comment/solution? Please rate here:

I'm a bit confused here.  Is this running as a server (multi-user) or single user.  If running as multi-user, the users do not need permisisons to the *.fdb file.  Only the account running the server service does.

 

Top 25 Contributor
Male
1,101 Posts
25,232 Points
Joined: May 6, 2008
Last Online:
Mar 18, 2010 14:04
Location: Dublin
Moderator
DaveT replied on Jan 7, 2009 23:37
How helpful was this comment/solution? Please rate here:

Hi,

Yes it is confusing and I have encounter this a number of times.  The database service starts fine and when you go to connect from a client through the database service you get the error.  It normally occurs when you copy in a database from another place e.g. the user test database. You would think that the database service would give the error when it is started again but no.  Changing the serurity was the way around it that I found.

Dave Treanor

Dynamics Nav Add-ons
www.simplydynamics.ie/Addons.html

Please:
1. Use a meaningful title.
2. Give as much detail as possible.
3."Verify Solution" to the post that help you solve your problem.
4. Fill out your Tags - it will help other people.
5. N.B. Don't be afraid to ask - we all had to learn and are still learning Wink

Top 50 Contributor
Male
373 Posts
4,565 Points
Joined: Nov 6, 2005
Last Online:
Feb 4, 2010 3:13
Location: Weymouth, MA, USA
babrown replied on Jan 7, 2009 23:48
How helpful was this comment/solution? Please rate here:

I'm not confused by the process.  I'm confused by this thread.  Are we talking single-user or multi-user.  In multi-user (server) only the user account that is running the service needs rights to the database files.  In fact, users should have no rights whatsoever to the server on which the database is running. Users only need to communicate with the service.  They do not need to access the data file.

 

 

Top 50 Contributor
Male
373 Posts
4,565 Points
Joined: Nov 6, 2005
Last Online:
Feb 4, 2010 3:13
Location: Weymouth, MA, USA
babrown replied on Jan 7, 2009 23:54
How helpful was this comment/solution? Please rate here:

This sounds like you are dealing with an inherited permissions issue.  Under certain situations (I can't recall them right now) a copied file inherits the permission settings of the source directory.  If the service user did not have access to the file in its original directory it may not have them when you move the file.  But it's the service user that would be the issue.

 

Top 25 Contributor
Male
1,020 Posts
21,654 Points
Joined: Dec 6, 2005
Last Online:
Mar 8, 2010 17:24
Location: Riga, Latvia, EU
Moderator
Modris Ivans replied on Jan 8, 2009 2:23
How helpful was this comment/solution? Please rate here:

babrown:
In fact, users should have no rights whatsoever to the server on which the database is running. Users only need to communicate with the service.  They do not need to access the data file.

Stelco`s question is rather unconcrete - theoretically, if user(s) have rights to the server AND they try to access the DB directly, which is already opened by service, thus keeping the DB file "open", such user(s) can get the message "The  operating system cannot gain access...

Question still remains - was this the case, and, for what sake someone would try to fulfill something like the purely theoretical scenario above :)

Modris Ivans
MCP-Dynamics NAV Application

Please specify in your posts
1.product and DB version;
2.locale, or use International Forums

"Verify Solution" to post that helped you solve your problem

Top 50 Contributor
Male
373 Posts
4,565 Points
Joined: Nov 6, 2005
Last Online:
Feb 4, 2010 3:13
Location: Weymouth, MA, USA
babrown replied on Jan 8, 2009 2:32
How helpful was this comment/solution? Please rate here:

Modris Ivans:

babrown:
In fact, users should have no rights whatsoever to the server on which the database is running. Users only need to communicate with the service.  They do not need to access the data file.

Stelco`s question is rather unconcrete - theoretically, if user(s) have rights to the server AND they try to access the DB directly, which is already opened by service, thus keeping the DB file "open", such user(s) can get the message "The  operating system cannot gain access...

Question still remains - was this the case, and, for what sake someone would try to fulfill something like the purely theoretical scenario above :)

This is a good example of why you don't give users file access rights to the data handled by database servers.  A good argument for dedicated database servers.  But even if they are not dedicated the data files should be in a folder(s) that users do not have acces to.

 

Top 25 Contributor
Male
1,020 Posts
21,654 Points
Joined: Dec 6, 2005
Last Online:
Mar 8, 2010 17:24
Location: Riga, Latvia, EU
Moderator
Modris Ivans replied on Jan 8, 2009 2:54
How helpful was this comment/solution? Please rate here:

babrown: seems we are going offtopic Smile - but I have seen SO much practically unadministered networks, that nothing suprises me, especially, when advanced users Devil come into play...  recently there was a thread about problem, when someone started to delete unwanted records from SQL base thru SQL Enterprise manager and asked why his NAV crashed and how to cure it afterwards...  

Modris Ivans
MCP-Dynamics NAV Application

Please specify in your posts
1.product and DB version;
2.locale, or use International Forums

"Verify Solution" to post that helped you solve your problem

Top 50 Contributor
Male
373 Posts
4,565 Points
Joined: Nov 6, 2005
Last Online:
Feb 4, 2010 3:13
Location: Weymouth, MA, USA
babrown replied on Jan 8, 2009 3:04
How helpful was this comment/solution? Please rate here:

I have 16+ years of network integration experience from my last job.  I could tell you some real horror stories. Super Angry

 

Top 25 Contributor
Male
1,101 Posts
25,232 Points
Joined: May 6, 2008
Last Online:
Mar 18, 2010 14:04
Location: Dublin
Moderator
DaveT replied on Jan 8, 2009 10:30
How helpful was this comment/solution? Please rate here:

babrown:

I'm not confused by the process.  I'm confused by this thread.  Are we talking single-user or multi-user.  In multi-user (server) only the user account that is running the service needs rights to the database files.  In fact, users should have no rights whatsoever to the server on which the database is running. Users only need to communicate with the service.  They do not need to access the data file.

To me, the tread was multi-user and the security was the issue.  The normal confusion is that the service is run as the Administrator of the server and the database file has permissions on the Administrator of the domain.

Dave Treanor

Dynamics Nav Add-ons
www.simplydynamics.ie/Addons.html

Please:
1. Use a meaningful title.
2. Give as much detail as possible.
3."Verify Solution" to the post that help you solve your problem.
4. Fill out your Tags - it will help other people.
5. N.B. Don't be afraid to ask - we all had to learn and are still learning Wink

Page 1 of 2 (19 items) 1 2 Next > | Get this RSS feed | Bookmark and Share