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

    Question by:


    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
    Oracle Database:


    Good Question?

    Verified Answer?

    The member who asked this question verified this comment provided the solution that solved their problem.

    by:Posted on 2004-12-14 at 19:31:36ID: 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.

    This content is available to Experts Exchange members

    See the answer now
    with your Free 30 Day Trial

    Get unlimited access to solutions & experts

    • 4,169,477 solved questions
    • 3,805 articles & videos
    • 15,413 tech experts

    Get Access Now

    Ask Your Tech Question. Get Expert Solutions.We will email you when an expert has commented on your question.

    We will never share this with anyone.

    Select topics

    You may select up to five topics.

    Top Expert Contributor

    Essential articles and videos from the Experts

    More valuable questions with Expert answers


    RELATED TOPICS view all topics

    1. Query Syntax
    2. Databases
    3. MS SQL Server
    4. Unix OS
    5. Enterprise Software
    6. Linux
    7. Java
    8. .NET Programming
    9. MS SQL Server 2005
    10. MySQL Server