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 )

 

About Mehmet Salih Deveci

I am Founder of SysDBASoft IT and IT Tutorial and Certified Expert about Oracle & SQL Server database, Goldengate, Exadata Machine, Oracle Database Appliance administrator with 10+years experience.I have OCA, OCP, OCE RAC Expert Certificates I have worked 100+ Banking, Insurance, Finance, Telco and etc. clients as a Consultant, Insource or Outsource.I have done 200+ Operations in this clients such as Exadata Installation & PoC & Migration & Upgrade, Oracle & SQL Server Database Upgrade, Oracle RAC Installation, SQL Server AlwaysOn Installation, Database Migration, Disaster Recovery, Backup Restore, Performance Tuning, Periodic Healthchecks.I have done 2000+ Table replication with Goldengate or SQL Server Replication tool for DWH Databases in many clients.If you need Oracle DBA, SQL Server DBA, APPS DBA,  Exadata, Goldengate, EBS Consultancy and Training you can send my email adress [email protected].-                                                                                                                                                                                                                                                 -Oracle DBA, SQL Server DBA, APPS DBA,  Exadata, Goldengate, EBS ve linux Danışmanlık ve Eğitim için  [email protected] a mail atabilirsiniz.

One comment

  1. i want to create a directory in the Linux file system, from the sql script. I am not getting solution for this. Please advise.

    Purpose detail as below:
    a. inside .sql file, i looked for the oradata directory, for example /u01/app/oracle/oradata/demodb
    b. want to create a sub-directory inside the “/demodb” folder, named as, “testfolder”, so that my complete folder path will be,
    /u01/app/oracle/oradata/demodb/testfolder/test.dbf

Leave a Reply

Your email address will not be published. Required fields are marked *