Call now: 252-767-6166  
Oracle Training Oracle Support Development Oracle Apps

 
 Home
 E-mail Us
 Oracle Articles
New Oracle Articles


 Oracle Training
 Oracle Tips

 Oracle Forum
 Class Catalog


 Remote DBA
 Oracle Tuning
 Emergency 911
 RAC Support
 Apps Support
 Analysis
 Design
 Implementation
 Oracle Support


 SQL Tuning
 Security

 Oracle UNIX
 Oracle Linux
 Monitoring
 Remote s
upport
 Remote plans
 Remote
services
 Application Server

 Applications
 Oracle Forms
 Oracle Portal
 App Upgrades
 SQL Server
 Oracle Concepts
 Software Support

 Remote S
upport  
 Development  

 Implementation


 Consulting Staff
 Consulting Prices
 Help Wanted!

 


 Oracle Posters
 Oracle Books

 Oracle Scripts
 Ion
 Excel-DB  

Don Burleson Blog 


 

 

 


 

 

 

 
 

ORA-29283: invalid file operation tips

Oracle Error Tips by Stephanie F.

 

Also see ORA-29283 with impdp network_link.  The Oracle docs note this on the ORA-29283 error:

ORA-29283: invalid file operation
 
Cause: An attempt was made to read from a file or directory that does not exist, or file or directory access was denied by the operating system.
 
Action: Verify file and directory access privileges on the file system, and if reading, verify that the file exists.

If this is similar to something you are experiencing, you may want to read further.  Here is the Test case provided about ORA-29283:

1. On the OS run the following to define a system variable:
define/system MYDIR VMS"""user password"""::$1$DG:[SUPPORT.MYDIR]

2. In sqlplus create the directory object to map the logical directory:
Create or replace directory rtvms2 as 'MYDIR:';

3. Run now the following procedure to create the remote file:


SET SERVEROUT ON

declare
v_buff VARCHAR2(2000);
fhandle UTL_FILE.FILE_TYPE;
begin
dbms_output.put_line('WRITE');
fhandle:= UTL_FILE.FOPEN('MYDIR:','Report.txt','W');
UTL_FILE.put_line(fhandle,' Attempt to write');
UTL_FILE.FCLOSE(fhandle);
end;
/

SQL>
WRITE

PL/SQL procedure successfully completed.

SQL> HOST dir mydir:
Directory VMS"user password"::$1$DG:[SUPPORT.MYDIR]

REPORT.TXT;1 1/69 29-DEC-2005 10:23:58.39 (RWD,RWD,R,)


4. Now test the append to the remote file, this will create a new version of the file

declare

v_buff VARCHAR2(2000);
fhandle UTL_FILE.FILE_TYPE;
begin
dbms_output.put_line('APPEND');
fhandle:= UTL_FILE.FOPEN('MYDIR:','Report.txt','A');
UTL_FILE.put_line(fhandle,'attempt to append');

UTL_FILE.FCLOSE(fhandle);
end;
/


SQL>
APPEND

PL/SQL procedure successfully completed.

SQL> exit

dir mydir:
Directory VMS"user password"::$1$DG:[SUPPORT.MYDIR]

REPORT.TXT;2 1/69 29-DEC-2005 10:23:58.73 (RWD,RWD,R,)
REPORT.TXT;1 1/69 29-DEC-2005 10:23:58.39 (RWD,RWD,R,)

edit REPORT.TXT;1
Attempt to write
[End of file]

edit REPORT.TXT;2
attempt to append
[End of file]



5. And finally test the read operation on the remote file:

declare
v_buff VARCHAR2(2000);
fhandle UTL_FILE.FILE_TYPE;
begin
dbms_output.put_line('READ');
fhandle:= UTL_FILE.FOPEN('MYDIR:','Report.txt','R');
-- UTL_FILE.get_line(fhandle,v_buff);
UTL_FILE.FCLOSE(fhandle);
end;
/

SQL>
READ
declare
*
ERROR at line 1:
ORA-29283: invalid file operation
ORA-06512: at "SYS.UTL_FILE", line 449
ORA-29283: invalid file operation
ORA-06512: at line 6

The reason that these errors are being thrown, including ORA-29283, is related to an OS issue, "elated to the access() C RTL in OpenVMS, which is used by the utl_file.fopen to know if the file exists or not. The access() returns success when the file is local, but for a remote file access() returns failure." 

The ult_file.fopen fails when it attempts to read a remote file with ORA-29283, because it is using the access() routine, and "and it fails when appending to a remote file because it creates a brand new file even if the file specified exists"

The following solution ids given to resolve ORA-29283:

The cause of the problem lies in the access() OpenVMS C runtime library which does not work with remote files, so there is no fix for this from an Oracle point of view


 

 

��  
 
 
Oracle Training at Sea
 
 
 
 
oracle dba poster
 

 
Follow us on Twitter 
 
Oracle performance tuning software 
 
Oracle Linux poster
 
 
 

 

Burleson is the American Team

Note: This Oracle documentation was created as a support and Oracle training reference for use by our DBA performance tuning consulting professionals.  Feel free to ask questions on our Oracle forum.

Verify experience! Anyone considering using the services of an Oracle support expert should independently investigate their credentials and experience, and not rely on advertisements and self-proclaimed expertise. All legitimate Oracle experts publish their Oracle qualifications.

Errata?  Oracle technology is changing and we strive to update our BC Oracle support information.  If you find an error or have a suggestion for improving our content, we would appreciate your feedback.  Just  e-mail:  

and include the URL for the page.


                    









Burleson Consulting

The Oracle of Database Support

Oracle Performance Tuning

Remote DBA Services


 

Copyright © 1996 -  2020

All rights reserved by Burleson

Oracle ® is the registered trademark of Oracle Corporation.

 

Hit Counter