Examine these commands:CONNECT / AS SYSDBA
CREATE DIRecTORY dumpdir AS '/u01/app/ ';
Directory created.
GRANT rEad, WRITE ON DIRECTORY dumpdir To PUBLIC;
Grant succeeded .
CREATE usER TEST IDENTIFIED BY test ;
User created .
GRANT CREATE SESSION, RESOURCE, UNLIMITED TABLESPACE To test;
Grant succeeded.
CONN test/test
connected .
CREATE TABLE test_employees (id NUMBER(3) , name VARCHAR2 (20), salary NUMBER(7));
Table created .
SQL> CREATE SYNONYM emp FoR test_employees ;
synonym created .
Now examine this command:
$expdp test/test DIRECTORY=dumpdir DUNPFILE=test_emp.dmp LOGFILE=test.log TABLES=emp CONTENT=data_only query='EMP:"WHERE salary=12000"'
Which is true?