ORA-39117: Type needed to create table is not included in this operation. Failing sql is: string
Cause: A create table was attempted and a dependent type does not exist in the dumpfile or on the target database. Either the export or the import Data Pump job was a table mode job and types are not included in table mode jobs.
Action: Determine which type(s) are missing and create them on the target system and run the Data Pump import job again.
ORA-39117: Type Needed to Create Table 错误指明在当前操作中缺少所需的表类型。这通常是由于在创建表中未指定表的类型导致的,比如未指定表的存储引擎或未指定字段的类型。
1.检查确保括号为正确指定表和列的类型:
例如:
CREATE TABLE new_table (
ID INTEGER NOT NULL,
Name VARCHAR2(50) NOT NULL
);
2.如果出现ORA-39117错误时,可尝试使用TO_CHAR方法转换数字和日期类型的参数。
3.查看数据库的参数环境:
SELECT * FROM v$parameter WHERE name LIKE ‘nls_date_format’;
4.使用SQL文本校验器来保证SQL语句的正确性:
SELECT * FROM TABLE_NAME WHERE (column_name = ‘data’ OR column_name IS NULL);