Solve the problem of sql statement error in PLSQL import table: ORA-01119: failed to create database file ORA-27040:: file creation error, unable to create file

When using PLSQL to import sql, the Tools->Import Tables interface is as follows:


If an error occurs: ORA-01119: failed to create a database file ORA-27040:: file creation error, when the file cannot be created, you can open the sql file at this time and you will find that


There is a table space in it, and this table space is not created in your oracle database, so you need to find the installation oracle directory (mine is the directory in the virtual machine as follows:) to create the table space.


The specific code to create a table space in PLSQL is

create tablespace HEIMA26
datafile 'c:\oracle\product\10.2.0\oradata\orcl/HEIMA .dbf'
size 50M
autoextend on
next 10M

After execution, the table space is found in the oracle directory of the virtual machine (in fact, the error is caused by the wrong path to create the table space!)

---------------------------At this time, the problem has been solved, the following is what I have to do by myself, you don't need to read it ----- -------------------------

Then create a user name and password and specify the table space code as follows:

create user heima
identified by heima
default tablespace HEIMA26

Give him permission code as follows:

grant dba to heima

Log in to PLSQL with this account, and then Import tables will succeed



Part of reference: http://blog.csdn.net/lizhangyong1989/article/details/26371915


Guess you like

Origin blog.csdn.net/kerwinJu/article/details/62054855