Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

ORA-22288: file or LOB operation FILEOPEN faile

Posted on 2006-07-15
2
Medium Priority
?
2,498 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 500 total points
ID: 17114110
also make sure if there is DatabaseStoredFunctions.class file under the directory.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Working with Network Access Control Lists in Oracle 11g (part 1) Part 2: http://www.e-e.com/A_9074.html So, you upgraded to a shiny new 11g database and all of a sudden every program that used UTL_MAIL, UTL_SMTP, UTL_TCP, UTL_HTTP or any oth…
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 shows information on the Oracle Data Dictionary, starting with the Oracle documentation, explaining the different types of Data Dictionary views available by group and permissions as well as giving examples on how to retrieve data from th…
This video shows how to copy an entire tablespace from one database to another database using Transportable Tablespace functionality.
Suggested Courses

972 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