[20200312]ORA-00904 POLTYP invalid identifier.txt
[20200312]ORA-00904 POLTYP invalid identifier.txt
--//10g的資料庫使用11g的exp版本匯出,遇到如下錯誤:
--//連結:http://www.itpub.net/thread-2129145-1-1.html
--//EXP-00008: ORACLE error 904 encountered
--//ORA-00904: "POLTYP": invalid identifier
--//EXP-00000: Export terminated unsuccessfully
--//重複演示與分析:
1.環境:
SYS@test> @ &r/ver1
PORT_STRING VERSION BANNER
------------------------------ -------------- ----------------------------------------------------------------
x86_64/Linux 2.4.xx 10.2.0.4.0 Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
2.測試:
--//使用11g的exp匯出:
$ exp scott/xxxx@192.168.xxxx.yy:1521/test tables=dept BUFFER=10240000 file=dept.emp direct=Y
Export: Release 11.2.0.4.0 - Production on Thu Mar 12 09:13:34 2020
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Export done in ZHS16GBK character set and AL16UTF16 NCHAR character set
About to export specified tables via Direct Path ...
EXP-00008: ORACLE error 904 encountered
ORA-00904: "POLTYP": invalid identifier
EXP-00000: Export terminated unsuccessfully
$ strings $(which exp) | grep -i POLTYP
SELECT POLGRP, POLTYP, POLICY, POLOWN, POLSCH, POLFUN, STMT, CHKOPT, ENABLED, SPOLICY FROM SYS.EXU9RLS WHERE OBJOWN = :1 AND OBJNAM = :2
--//你可以發現11g的exp訪問SYS.EXU9RLS時有1個POLTYP欄位。
SYS@test> @ &r/desc SYS.EXU9RLS
Name Null? Type
---------- -------- -------------
OBJOWN NOT NULL VARCHAR2(30)
OBJNAM NOT NULL VARCHAR2(30)
POLGRP NOT NULL VARCHAR2(30)
POLICY NOT NULL VARCHAR2(30)
POLOWN NOT NULL VARCHAR2(30)
POLSCH VARCHAR2(30)
POLFUN NOT NULL VARCHAR2(30)
STMT VARCHAR2(28)
CHKOPT NOT NULL NUMBER
ENABLED NOT NULL NUMBER
SPOLICY NUMBER
--//你可以發現10g的資料庫SYS.EXU9RLS表沒有POLTYP欄位。而11g資料庫是有的:
SYS@book> @ ver1
PORT_STRING VERSION BANNER
------------------------------ -------------- --------------------------------------------------------------------------------
x86_64/Linux 2.4.xx 11.2.0.4.0 Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
SYS@book> @ &r/desc SYS.EXU9RLS
Name Null? Type
---------- -------- ----------------------------
OBJOWN NOT NULL VARCHAR2(30)
OBJNAM NOT NULL VARCHAR2(30)
POLGRP NOT NULL VARCHAR2(30)
POLICY NOT NULL VARCHAR2(30)
POLOWN NOT NULL VARCHAR2(30)
POLSCH VARCHAR2(30)
POLFUN NOT NULL VARCHAR2(30)
STMT VARCHAR2(34)
CHKOPT NOT NULL NUMBER
ENABLED NOT NULL NUMBER
SPOLICY NUMBER
POLTYP VARCHAR2(33)
--//對比前面,可以發現後面多了1個欄位POLTYP,所以11g的exp無法匯出10g資料庫的表。
--//最佳的方式使用10g自帶的exp版本。有一些匯出檔案太大,磁碟空間不足。你可以使用exp imp on th fly,一邊匯出一邊壓縮。
--//連結:http://blog.itpub.net/267265/viewspace-2644894/
$ exp scott/xxxx file=>(gzip>dept.dmp.gz) tables=dept buffer=8388608
Export: Release 10.2.0.4.0 - Production on Thu Mar 12 09:21:17 2020
Copyright (c) 1982, 2007, Oracle. All rights reserved.
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Export done in ZHS16GBK character set and AL16UTF16 NCHAR character set
About to export specified tables via Conventional Path ...
. . exporting table DEPT 4 rows exported
Export terminated successfully without warnings.
$ ls -l dept.dmp.gz
-rw-r--r-- 1 oracle oinstall 1225 2020-03-12 09:21:17 dept.dmp.gz
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/267265/viewspace-2679733/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 【LISTAGG】 ORA-00904: "WM_CONCAT": invalid identifier (DocIDE
- ORA-00904: "wm_concat":invalid identifier錯誤如何解決?IDE
- [20210420]ORA-00904 REF invalid identifier 19c dba_obj_audit_opts.txtIDEOBJ
- [20211022]ORA-00904 REF invalid identifier 19c dba_obj_audit_opts(補充).txtIDEOBJ
- [20200312]不要設定net.ipv4.tcp_tw_recycle=1.txtTCP
- JavaScript invalid 事件JavaScript事件
- found an invalid color
- StreamCorruptedException: invalid stream headerExceptionHeader
- Invalid time zone indicator ‘ ‘Indicator
- python: invalid value encountered in divide以及invalid value encountered in double_scalars報錯PythonIDE
- OSError: [Errno 22] Invalid argumentError
- [Error Code: 904, SQL State: 42000] ORA-00904 : 識別符號無效ErrorSQL符號
- SQLLoader ORA-01722 invalid numberSQL
- The Mac is invalid. 為什麼?Mac
- 重編譯 invalid 物件(轉)編譯物件
- ORA-00130: invalid listener address
- mybatis竟然報"Invalid value for getInt()"MyBatis
- Elasticsearch 6 建立索引報錯 invalid_index_name_exception Invalid index name [testDemo], must be lowercaseElasticsearch索引IndexException
- std::sort 錯誤"Expression : invalid operator <"Express
- SQLSTATE [22007]: Invalid datetime format: 1292 IncorrectSQLORM
- 匯入 appium 報 SyntaxError: invalid syntaxAPPError
- Python 錯誤 SyntaxError: invalid character in identifierPythonErrorIDE
- React報錯之Element type is invalidReact
- 報錯:ORA-00603、ORA-01092、ORA-00704, ORA-00604, ORA-00904
- 使用yum報錯Your license is invalid.
- invalid stream header: EFBFBDEF 問題解決Header
- Django報錯ValueError: invalid literal for int() with base 10:DjangoError
- xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools)ErrorDeveloper
- invalid conversion from ‘LRUCache*‘ to ‘int‘ [-fpermissive] /new的使用
- Checkpoint log:invalid bitmap page錯誤修復
- error creating overlay mount to invalid argument unbuntu系統Error
- 矽基流動 The parameter is invalid. Please check againAI
- PostgreSQL DBA(179)-invalid memory alloc request size XXXSQL
- error: invalid type argument of unary ‘*‘ (have ‘int‘) *__first = __tmp;Error
- Xcode10:Implicit declaration of function '' is invalid in C99XCodeFunction
- err Invalid input of type: 'dict'. Convert to a byte, string or number first
- iOS解決CUICatalog: Invalid asset name supplied問題iOSUI
- 快速瞭解:user-valid和:user-invalid