On your Oracle 12c database, you invoke SQL*Loader to load data into the employees table
in the hr schema by issuing the command:
S>sqlldrhr/hr@pdb table=employees
Which two statements are true about the command?
A.
It succeeds with default settings if the employees table exists in the hr schema.
B.
It fails because no SQL*Loader data file location is specified.
C.
It fails if the hr user does not have the create any directory privilege.
D.
It fails because no SQL*Loader control file location is specified.
E.
It succeeds and creates the employees table in the HR schema.
B and D might be better answers. That command line is looking deficient of those parameters.
The given answer is correct. I made the mistake of thinking the command was executed from the OS command line when it is actually executed from SQL Plus.
Unless I’m wrong again. Can sqlldr be invoked from the SQLPlus command line or does it have to be run from the OS command line?
ummm sql loader express says:
sqlldr scott/tiger@pdb1 TABLE=EMP2 DATE_FORMAT=\”DD-MON-YYYY HH24:MI:SS\”
https://oracle-base.com/articles/12c/sql-loader-enhancements-12cr1
A and C are fine
Thanks puntano!
A is right for
SQL*Loader Express
https://oracle-base.com/articles/12c/sql-loader-enhancements-12cr1#sql-loader-express
I’m not sure C. Please explain more
AC
AC
A is the absolute correct answer.
Among others only C is approximately correct one.
I’d also go for A,C
B – incorrect
sqlldr scott/tiger CONTROL=ulcas1.ctl READSIZE=1000000
E-incorrect
because sqlloader doesn’t create tables
C incorrect
I’m not completely sure but i’ve found this:
EXTERNAL_TABLE – when the EXECUTE option is specified, you must have the CREATE ANY DIRECTORY privilege (but default is “not used” so CREATE ANY DIRECTORY priv is not neeeded).
MY mistake – I mean that C is correct
CREATE ANY DIRECTORY is not needed in that case
[ora12c@RHIS-OF-APP01 admin]$ sqlldr hr/hr@PDB_1 employees
SQL*Loader: Release 12.1.0.2.0 – Production on Wed Nov 1 20:15:18 2017
Copyright (c) 1982, 2014, Oracle and/or its affiliates. All rights reserved.
SQL*Loader-500: Unable to open file (employees.ctl)
SQL*Loader-553: file not found
SQL*Loader-509: System error: No such file or directory
B is ok
dude, ur command is different from this