oracle 10g exp问题

qingtianhit 2010-06-08 10:23:51
以下是我测试exp用的表和数据
-- Create table
create table TEST
(
ID NUMBER(3)
);
insert into TEST (ID)
values (1);
insert into TEST (ID)
values (2);
insert into TEST (ID)
values (3);
insert into TEST (ID)
values (4);
commit;


环境: RedHat linux As5
数据库:oracle 10g
在执行exp命令时报错如下,请各位高手指教下..
~#exp test/test123@testdb file=1.dmp tables=TEST query=\" where id>2 \"

Export: Release 10.2.0.1.0 - Production on Tue Jun 8 10:14:38 2010

Copyright (c) 1982, 2005, Oracle. All rights reserved.


Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
Export done in ZHS16GBK character set and AL16UTF16 NCHAR character set

About to export specified tables via Conventional Path ...
. . exporting table TEST
EXP-00056: ORACLE error 920 encountered
ORA-00920: invalid relational operator
Export terminated successfully with warnings.





...全文
136 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
  • 打赏
  • 举报
回复
学习了
wuguanlin 2010-06-08
  • 打赏
  • 举报
回复
check all there escape characters.
query=\" where id>2 \"======> query=\" where id \>2 \"
qingtianhit 2010-06-08
  • 打赏
  • 举报
回复
我自己试出来了... 逻辑符号前要加"\"
exp test/test123@testdb file=1.dmp tables=TEST query=\" where id\>2 \"

17,377

社区成员

发帖
与我相关
我的任务
社区描述
Oracle 基础和管理
社区管理员
  • 基础和管理社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧