Site icon IT Tutorial

ORA-27040: file create error, unable to create file

I got ” ORA-27040: file create error, unable to create file ”  error in Oracle database.

 

ORA-27040: file create error, unable to create file

 

Details of error are as follows.

ORA-27040: file create error, unable to create file

Cause: create system call returned an error, unable to create file

Action: verify filename, and permissions



 

 

file create error, unable to create file

This ORA-27040 error is related to the specified path is unreachable, or may be unwritable.

verify filename, and permissions.

 

An unreachable or unwritable directory path was specified were the backup or restore
should be written to.

RMAN Backup failed with Errors:

RMAN-10035: exception raised in RPC: string
ORA-19504   "failed to create file \"%s\""
ORA-27040   "file create error, unable to create file"

 

 

Specify a path that can be reached, a path on the server where the target db is residing.

(Do not use in rman script:
allocate channel ….connect connectstring (intended for OPS environment)
where connectstring specifies a connect string to instance on another
machine where rman should conduct backup :
However if using connect string  beware that the backup cannot be restored Bug: 1334388  )

 

Example of full backup of archives

run {
 allocate channel 'dev_1' type disk;
 sql 'alter system archive log current';
 backup
  format '/<working directory>/%d_af_t%t_s%s_p%p'
  filesperset 10
 (archivelog all delete input);
 release channel 'dev_1';
}

 

Example of full backup of database:

run {
 allocate channel 'dev_1' type disk;
 backup
  full
  format '/<working directory>/%d_df_t%t_s%s_p%p'
  (database);
 backup format '/<working directory>/%d_cf_t%t_s%s_p%p'
  current controlfile;
 release channel 'dev_1';
}

In above examples the formatted path ‘/<working directory>’ should be reachable!

 

 

 

 

Do you want to learn Oracle Database for Beginners, then read the following articles.

Oracle Tutorial | Oracle Database Tutorials for Beginners ( Junior Oracle DBA )

 

Exit mobile version