SQL> $ sh -v x.sh exp user@(protected) tables=email_request_queue file=x.dmp statistics=none query=\ "WHERE PROFILE_ID = 7 AND STATUS = \'S\' AND request_branch BETWEEN \'0\' AND \'999\' AND trunc\(EFFECTIVE_DATE\) \<\= trunc\(TO_DATE\(\'30-APR -2006\',\'dd-Mon-yyyy\'\)\)\"
About to export specified tables via Conventional Path ... . . exporting table EMAIL_REQUEST_QUEUE 1 rows exported Export terminated successfully without warnings.
$
SELECT clause is not allowed inside the QUERY clause. Per Documentation the Query clause internally does a horizontal filtering. http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96652/ch01.htm #1005843