Oracle operation statement (PL/SQL) creates a tablespace: an error occurred at line 1: ORA-01119: an error occurred while creating the database file ORA-27040: file creation error, cannot create file OSD-04002: cannot open file

1. Topic requirements:

 

2. Problems encountered:

3. Problem analysis:

The address of the file directory specified when creating the table space is wrong

4. Solve the problem (solution):

Question: Since the path is wrong, just find the correct path, so what is the correct path?

Answer: It is the path to install Oracle on your PC. The specific path is as follows (take my installation path as an example):

Then the correct path should be "D:\oracles\oradata\ORCL",

That is, in the table operation statement (PL/SQL)

" DATAFILE 'D:\app\DELL\oradata\stsys\testspace01.DBF' SIZE 40M" has to be changed to

"DATAFILE 'D:\oracles\oradata\ORCL\testspace01.DBF' SIZE 40M"

The specific operation statement is as follows:

5. Results:

Guess you like

Origin blog.csdn.net/weiybin/article/details/108636024