Firebird BLR 623 invalid request - LRTRIM is not defined - module name or entrypoint could not be found

前端 未结 2 1615
慢半拍i
慢半拍i 2021-01-23 12:21

I work in Firebird 2.5 database:

Occasionally (not always) I get the following error when I run some stored procedures or views (database objects) that use the LRTRIM fu

相关标签:
2条回答
  • 2021-01-23 12:36

    To me the solution was:

    1. Go to default Firebird directory installation (generally in C:\Program Files\Firebird\Firebird_3_0);
    2. Open the file firebird.conf in Notepad;
    3. Search for the parameter UdfAccess;
    4. Comment the line using the caracter # (hashtag) before the parameter name (#UdfAccess);
    5. In Windows Search Box type services.msc;
    6. Find the Firebird service;
    7. Click on Firebird service using the mouse right button;
    8. Choose Stop;
    9. Click on Firebird service using the mouse right button;
    10. Choose Start.
    0 讨论(0)
  • 2021-01-23 12:53

    In your current setup you seem to have two Firebird servers

    1. a 32-bit in C:\Program Files (x86)\Firebird\Firebird_2_5,
    2. a 64 bit in C:\Program Files\Firebird\Firebird_2_5

    Your UDF declaration points to module UDF, which is not a standard UDF, so this is most likely provided by your client to use with their database. You only have the libraries for these UDF in the 32 bit server installation, this means that you can only use the 32 bit server. Under some unknown conditions, you switch between the 32 bit and 64 bit server, meaning that subsequent connections are made to the 64 bit server, which doesn't have the required UDF which then leads to the error. You should uninstall the 64 bit server so this can't happen.

    You comment that you need both because of SRSS, but that isn't the case. You only need one Firebird server (32 bit or 64 bit; in this case 32 bit because of the UDF), and the client libraries (32 bit and 64 bit) for your applications.

    So what you need to do:

    1. Uninstall the 64 bit Firebird server,
    2. Start the 64 bit Firebird installer and install only the client components.

    And finally double check the connection strings or connection properties to ensure that you are always connecting to the same server (host & port), and that you aren't accidentally using an embedded connection.

    0 讨论(0)
提交回复
热议问题