ORA-22929: invalid or missing directory name and ORA-06564: object Xyz does not exist
FranklinFaces.com
FranklinFaces.com - Oracle & SQL Server Database Forums for all IT Professionals
 Home          Members     Calendar     Who's On

Welcome Guest ( Login | Register )
        



ORA-22929: invalid or missing directory name... Expand / Collapse
Message
Posted 6/14/2010 9:55:25 AM Post #256
 

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being
ORA-22929: invalid or missing directory name and ORA-06564: object Xyz does not exist

You can see this type of ora error when executing a command like:

ALTER TABLE CUSTOMER_SERVICE
DEFAULT DIRECTORY 'IMP_DIR';

ORA-22929: invalid or missing directory name

The problem is in the single quotes surrounding the directory object name.
The same error is also returned when using a CREATE TABLE statement.

The correct syntax requires either double quotes for case sensitive names or no quotes at all for case insensitive names.

ALTER TABLE IMP_BAD_BOXES
DEFAULT DIRECTORY "IMP_DIR";

or

ALTER TABLE IMP_BAD_BOXES
DEFAULT DIRECTORY IMP_DIR;

Note that when using case sensitive names, if you mistype the name you'll get:

ORA-06564: object Import_Dir does not exist

 

 

Posted 6/14/2010 9:56:50 AM Post #257
 

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being
Hi

When i execute the following code,following error will come..


ERROR at line 7:
ORA-22929: invalid or missing directory name
Can anyone clarify this..

CREATE TABLE SAMPLE2_EXT (
field1 varchar2(4000)
)
ORGANIZATION EXTERNAL
(
TYPE ORACLE_LOADER
DEFAULT DIRECTORY /u02/oradata/imp/
ACCESS PARAMETERS
(
records delimited by newline
badfile DAT_DIR:'SAMPLE2_EXT%a_%p.bad'
logfile DAT_DIR:'SAMPLE2_EXT%a_%p.log'
fields LRTRIM REJECT ROWS WITH ALL NULL FIELDS (field1 char(4000))
)
LOCATION ('sample2.dat')
)
REJECT LIMIT 10;

Posted 6/14/2010 9:57:42 AM Post #258
 

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being
Directory is an Oracle direcory object not an OS one.

You need to specify the name of the directory not the actual location.

Posted 6/14/2010 10:01:29 AM Post #259
 

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being
If I'm not wrong, this is wrong:

DEFAULT DIRECTORY /u02/oradata/imp/

"Directory", in this context, isn't a "real" directory which exists on your disk, but Oracle object which is to be created (as a privileged user) using the CREATE DIRECTORY statement.

 
#/u01/oracle>sqlplus system/pwdcreate or replace directory ext_dir as '/tmp';   --> EXT_DIR is a directory name
grant read, write on directory ext_dir to james;
connect james/james@ora10g
CREATE TABLE ext_table_csv 
(  sifra_kpc    VARCHAR2(10),   
brojilo      VARCHAR2(20))
ORGANIZATION EXTERNAL( TYPE oracle_loader  
DEFAULT DIRECTORY ext_dir                        --> EXT_DIR is then used in CREATE TABLE statement...
Posted 6/14/2010 10:03:38 AM Post #260
 

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being
 ORA-22929: invalid or missing directory name

Cause: The required directory name is invalid or missing.

Action: Specify a valid name.

Please add more information about this Error

« Prev Topic | Next Topic »


Reading This Topic Expand / Collapse
Active Users: 1 (1 guest, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: silencer

Permissions Expand / Collapse

All times are GMT -5:00, Time now is 10:21am

Powered By InstantForum.NET v4.1.4 © 2012
Execution: 0.098. 10 queries. Compression Disabled.
Contextual Links