Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

ORA-22288: file or LOB operation FILEOPEN faile

Posted on 2006-07-15
2
2,470 Views
Last Modified: 2007-12-19
I tried to execute the following sql script in Oracle satabase environment which hosted in Unix server, i hit the problem at below error message. Please advice what to do resolve it. I am not a unix person. Thank you.

Sql Script :
----
create or replace
 java class
 using bfile (runtime_classes,'DatabaseStoredFunctions.class');
/
commit;

create or replace
 function generate_key( nSize IN number )
 return varchar2
 as language java
 name 'com.lgc.dws.dt.util.DatabaseStoredFunctions.generateKeyBySize( int ) return java.lang.String';
/
commit;

create or replace
 function get_color_number( colorName IN varchar2 )
 return number
 as language java
 name 'com.lgc.dws.dt.util.DatabaseStoredFunctions.getColorNumber( java.lang.String ) return int';
/
commit;

create or replace
 function radians( degrees IN number )
 return number
 as language java
 name 'com.lgc.dws.dt.util.DatabaseStoredFunctions.getRadians( double ) return double';
/
commit;


create or replace
 function get_yes_no( yesno IN number )
 return varchar2
 as language java
 name 'com.lgc.dws.dt.util.DatabaseStoredFunctions.getYesNo( java.lang.Integer ) return java.lang.String';
/
commit;


create or replace
 function get_is_tight( istight IN number )
 return varchar2
 as language java
 name 'com.lgc.dws.dt.util.DatabaseStoredFunctions.getIsTight( int ) return java.lang.String';
/
commit;


create or replace
 function get_well_coord_type( coordType IN number )
 return number
 as language java
 name 'com.lgc.dws.dt.util.DatabaseStoredFunctions.getWellCoordType( int ) return int';
/
commit;
---------

Error message:
==========
ERROR at line 3:
ORA-22288: file or LOB operation FILEOPEN failed
No such file or directory
0
Comment
Question by:netcool
  • 2
2 Comments
 
LVL 19

Expert Comment

by:actonwang
ID: 17114109
>>create or replace
 java class
 using bfile (runtime_classes,'DatabaseStoredFunctions.class');
/


do you have a directory object runtime_classes? if no, you have to create it first using :

create directory runtime_classes as '<your directory>';

first

0
 
LVL 19

Accepted Solution

by:
actonwang earned 125 total points
ID: 17114110
also make sure if there is DatabaseStoredFunctions.class file under the directory.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Why doesn't the Oracle optimizer use my index? Querying too much data Most Oracle developers know that an index is useful when you can use it to restrict your result set to a small number of the total rows in a table. So, the obvious side…
How to Unravel a Tricky Query Introduction If you browse through the Oracle zones or any of the other database-related zones you'll come across some complicated solutions and sometimes you'll just have to wonder how anyone came up with them.  …
This video explains at a high level about the four available data types in Oracle and how dates can be manipulated by the user to get data into and out of the database.
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question