Solved

FRM-40039: Cannot attach library %s while opening form %s.

Posted on 2004-12-14
5
15,643 Views
Last Modified: 2013-12-12
Now I've read the action to take:

Cause:      The given library is attached to the form but cannot be located in the search path for PL/SQL libraries.

Action:      Make sure that the given library can be found and that it has read permissions set.

But where would this search path be located?

Here's my environment:

PC: HP/Compaq
O/S: Windows XP Pro (Service Pack 2)
Oracle Forms: Version 9.0.2.7.0
Oracle Database: 8.1.7.4.0

Thanks,
Gio
0
Comment
Question by:jaramill
[X]
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
  • 3
  • 2
5 Comments
 
LVL 3

Author Comment

by:jaramill
ID: 12825961
I figured out how to get rid of the error but it involves leaving the non-portable path/directory structure in there.  I'd still like to know where I find the path for the PL/SQL Libraries.

Gio
0
 
LVL 8

Expert Comment

by:sapnam
ID: 12826474
Either you leave the non-portable path while attaching the library or you do not attach it and mention the path in the Windows Registry in the Hkey--Local Machine--Software--Oracle registry.  I think it should be in the forms path key.
0
 
LVL 8

Accepted Solution

by:
sapnam earned 200 total points
ID: 12826498
Thought you may find this interesting. It is listed in the Oracle Forms documentation on Attaching a library to a module

Tip:  You should not specify a library path when attaching libraries.  Path names for library attachments are stored internally and, as a result, are not portable.  Instead, you should specify the name of the library and rely on the Form Builder' standard search path to locate your library at runtime.

When searching for attached libraries at runtime,  Form Builder first searches the current directory and then the directories listed in the PATH (FORMSxx_PATH and ORACLE_PATH) environment variables.

Note:  If you specify a library path, Form Builder prompts you to confirm the specified path.  

If you confirm, at runtime, Form Builder will search for your library based strictly on the specified path; Form Builder will not search the specified path and then perform the standard search, as well.  

If you do not confirm, Form Builder removes the path and saves the library name.  At runtime, Form Builder searches the standard search path to locate your library.

0
 
LVL 3

Author Comment

by:jaramill
ID: 12832868
Well I have my library in the directory of where the FMX is executed via the browser (both the PLL, and PLX).  So when you say Form Builder searches the current directory are you saying it searches the directory where the Forms Runtime/WebRuntime executable exists? (i.e. forms\bin)  or the current directory of where the fmx file is located (which can be anywhere the user has the fmx files)?

Thanks,
Gio
0
 
LVL 3

Author Comment

by:jaramill
ID: 12834146
Just updated the FORMS90_PATH registry variable and it worked great "sapnam".

Thanks,
Gio
0

Featured Post

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Oracle encryption 12 74
join actual table rows based on the column 25 44
Need help on decision table structure 7 58
SQL Syntax Question 9 57
This article started out as an Experts-Exchange question, which then grew into a quick tip to go along with an IOUG presentation for the Collaborate confernce and then later grew again into a full blown article with expanded functionality and legacy…
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…
This video explains at a high level with the mandatory Oracle Memory processes are as well as touching on some of the more common optional ones.
This video shows setup options and the basic steps and syntax for duplicating (cloning) a database from one instance to another. Examples are given for duplicating to the same machine and to different machines

710 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