Solved

ORA-22288: file or LOB operation FILEOPEN faile

Posted on 2006-07-15
2
2,463 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.

Join & Write a Comment

How to Create User-Defined Aggregates in Oracle Before we begin creating these things, what are user-defined aggregates?  They are a feature introduced in Oracle 9i that allows a developer to create his or her own functions like "SUM", "AVG", and…
This post first appeared at Oracleinaction  (http://oracleinaction.com/undo-and-redo-in-oracle/)by Anju Garg (Myself). I  will demonstrate that undo for DML’s is stored both in undo tablespace and online redo logs. Then, we will analyze the reaso…
Via a live example show how to connect to RMAN, make basic configuration settings changes and then take a backup of a demo database
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…

760 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

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now