Home » RDBMS Server » Server Administration » OSD-04002: unable to open file
OSD-04002: unable to open file [message #130633] Mon, 01 August 2005 12:20 Go to next message
kals_kk
Messages: 61
Registered: August 2005
Member
Hi ,
I am trying to create a database. My oracle home directory is on c:oracle\ora10. And I want to create the file on o:\DATABASE\FOOD\ which is a network drive. I am unable to create the control file. can somebody help me

SQL> CREATE DATABASE "FOOD"
2 MAXINSTANCES 8
3 MAXLOGHISTORY 1
4 MAXLOGFILES 32
5 MAXLOGMEMBERS 3
6 MAXDATAFILES 254
7 DATAFILE 'O:\DATABASE\FOOD\SYSTEM\SYSFOOD.ORA' SIZE 300M REUSE EXTENT MANAGEMENT LOCAL
8 SYSAUX DATAFILE 'O:\DATABASE\FOOD\SYSTEM\AUXFOOD.ORA' SIZE 300M REUSE AUTOEXTEND ON MAXSIZE UNL
IMITED
9 DEFAULT TEMPORARY TABLESPACE TEMP TEMPFILE 'O:\DATABASE\FOOD\datafile\TEMP.ora' SIZE 25M AUTOEX
TEND ON NEXT 20M MAXSIZE 1000M
10 CHARACTER SET AL32UTF8
11 LOGFILE GROUP 1 ('O:\DATABASE\FOOD\LOGFILES\LOG1AFOOD.ORA', 'O:\DATABASE\FOOD\LOGFILES\LOG1BFOO
D.ORA') SIZE 5120K,
12 GROUP 2 ('O:\DATABASE\FOOD\LOGFILES\LOG2AFOOD.ORA', 'O:\DATABASE\FOOD\LOGFILES\LOG2BFOOD.ORA')
SIZE 5120K,
13 GROUP 3 ('O:\DATABASE\FOOD\LOGFILES\LOG3AFOOD.ORA', 'O:\DATABASE\FOOD\LOGFILES\LOG3BFOOD.ORA')
SIZE 5120K
14 USER SYS IDENTIFIED BY "welcome" USER SYSTEM IDENTIFIED BY "welcome"
15 /
CREATE DATABASE "FOOD"
*
ERROR at line 1:
ORA-01501: CREATE DATABASE failed
ORA-00200: controlfile could not be created
ORA-00202: controlfile: 'O:\DATABASE\FOOD\SYSTEM\CTL1FOOD.ORA'
ORA-27040: file create error, unable to create file
OSD-04002: unable to open file
O/S-Error: (OS 5) Access is denied.
Re: OSD-04002: unable to open file [message #130743 is a reply to message #130633] Tue, 02 August 2005 04:07 Go to previous messageGo to next message
Frank Naude
Messages: 4579
Registered: April 1998
Senior Member
Hi,

Try to pre-create all the directories. Also, ensure that you have permissions to write to all these directories.

Best regards.

Frank
Re: OSD-04002: unable to open file [message #130783 is a reply to message #130743] Tue, 02 August 2005 08:16 Go to previous messageGo to next message
kals_kk
Messages: 61
Registered: August 2005
Member
Hi,
I have created all the directories in prior before running the script itself. And I checked the file permissions also and I have been full control permission on that drive. Any more suggestions pls.
Thanks
Re: OSD-04002: unable to open file [message #130803 is a reply to message #130783] Tue, 02 August 2005 11:04 Go to previous message
Frank Naude
Messages: 4579
Registered: April 1998
Senior Member
Can you create a file in that directory? Does it work when you change the path to a local directory (for example, a directory on C:)?

Best regards.

Frank
Previous Topic: Does Exchanging drop anything?
Next Topic: deadlocks
Goto Forum:
  


Current Time: Fri Apr 26 05:08:32 CDT 2024