对不起,我写错了,子集的导出问题,语句 exp system/manager query='billing_date_time>=to_date("2004-01-01","yyyy-mm-dd") 'tables=inpbill.inp_bill_detail file=d:\2.dmp ;
报错  exp0056 :oracle904号错误!
加了一个单引号,同样报错!!!

解决方案 »

  1.   

    子集的导出问题,语句 exp system/manager query='rcpt_no="2009878"' tables=inpbill.inp_bill_detail file=d:\2.dmp ;
    不报错 ,但是 语句 exp system/manager query='rcpt_no>="2009878" and rcpt_no<="2009900"' tables=inpbill.inp_bill_detail file=d:\2.dmp ;
    就报错!!真邪门!1
      

  2.   

    试试:
    未测试!exp rainy/rainy tables=inpbill.inp_bill_detail file=d:\2.dmp query = \"where 'billing_date_time>= to_date(\'2004-01-01\',\'yyyy-mm-dd\')\"
      

  3.   

    不带日期参数的:
    exp test/123@liuyi tables=zc file=c:\test.dmp query=\" where id>2\" log=c:\aa.log连接到: Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.1.0 - Production
    已导出 ZHS16GBK 字符集和 AL16UTF16 NCHAR 字符集即将导出指定的表通过常规路径 ...
    . . 正在导出表                              ZC         31 行被导出
    在没有警告的情况下成功终止导出。
    带日期参数:exp test/123@liuyi tables=zc file=c:\test.dmp query=\" where rq>=to_date('20000403','yyyymmdd')\" log=c:\aa.log
    连接到: Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.1.0 - Production
    已导出 ZHS16GBK 字符集和 AL16UTF16 NCHAR 字符集即将导出指定的表通过常规路径 ...
    . . 正在导出表                              ZC          4 行被导出
    在没有警告的情况下成功终止导出。
      

  4.   

    exp system/manager query="""billing_date_time>=to_date('2004-01-01','yyyy-mm-dd')""" tables=inpbill.inp_bill_detail file=d:\2.dmp