SimonSellick
Programmer
The following statement, run in TOAD on a PC, successfully creates an external table as a reference to an existing file under unix and 9i:
If compiled into a procedure using execute immediate, the proc fails:
The same user id was used to compile the procedure as to run the client session.
Can anyone shed light on this?
Code:
CREATE TABLE EXT_blake_dat (
crn char(11),
location char(20)
)
ORGANIZATION EXTERNAL (
TYPE ORACLE_LOADER
DEFAULT DIRECTORY BLAKA02_DAT_DIR
ACCESS PARAMETERS (
FIELDS TERMINATED BY ',' (
crn char(11),
location char(20)
)
)
LOCATION ('blake.dat')
) REJECT LIMIT UNLIMITED
Code:
ORA-01031: insufficient privileges
ORA-06512: at "BLAKA02.BACS_LOAD", line 43
ORA-06512: at "BLAKA02.BACS_LOAD", line 62
ORA-06512: at line 7
Can anyone shed light on this?