Wednesday, January 30, 2019

Error to compile Oracle forms: FRM-30085: Unable to adjust form for output

Symptoms: 
When trying to compile an Oracle Forms, it gives an error such as
"FRM-30085: Unable to adjust form for output."

Similar errors when trying to compile forms:
Compiling procedure P_APPLY...
Compilation error on procedure P_APPLY:
PL/SQL ERROR 907 at line 1, column 1
cannot load library unit ADMRMS.FM_FRECLASS_SQL (referenced by INTERNAL_VARIABLE)
PL/SQL ERROR 0 at line 32, column 4
Statement ignored

Cause: 
Usually this error happens when there any invalid object on the database that is referenced on the form.
But if you look at the database, you see there is no invalid object but the error still persists.

Solution:
For some unknown reason, the object is valid for you, but its references on the Oracle catalog dont. If you know the objects referenced, such as procedure, package, etc., compile one by one again using the command given below (individually, dont use utlrp at this moment).
For Oracle Retail Forms, compile all objects that ends with %SQL.

Example:
  alter PACKAGE RMS14.CURRENCY_SQL compile;
  alter PACKAGE RMS14.PM_RETAIL_API_SQL compile;
  alter PACKAGE RMS14.ITEM_SQL compile;

After issuing the command, other dependent objects might be invalid. So now you can use the utlrp to compile all over again.

Just validate that all objects on the database are valid now, then compile the forms.
The error should not persist now.

There are many other reasons to get this error and on Oracle Support there is a master note:
  • Doc ID 756384.1 - Master Note for Known Causes of FRM-91500
  • Doc ID 262442.1 - FRM-91500 Running Forms 9i Compiler (f90genm.sh) on Linux x86
  • Doc ID 360819.1 - Cannot Compile Forms Module On Unix FRM-91500
Another possible reason to have this error is related to the libs on Linux. Review the pre-requirements given on the installation guide for Oracle Forms Services 11g Release 2 and install all Linux packages quoted. A summary of the main packages are given here:

yum install binutils -y
yum install compat-libcap1 -y
yum install compat-libstdc++-33 -y
yum install compat-libstdc++-33.i686 -y
yum install gcc -y
yum install gcc-c++ -y
yum install glibc -y
yum install glibc.i686 -y
yum install glibc-devel -y
yum install glibc-devel.i686 -y
yum install ksh -y
yum install libgcc -y
yum install libgcc.i686 -y
yum install libstdc++ -y
yum install libstdc++.i686 -y
yum install libstdc++-devel -y
yum install libstdc++-devel.i686 -y
yum install libaio -y
yum install libaio.i686 -y
yum install libaio-devel -y
yum install libaio-devel.i686 -y
yum install libXext -y
yum install libXext.i686 -y
yum install libXtst -y
yum install libXtst.i686 -y
yum install libX11 -y
yum install libX11.i686 -y
yum install libXau -y
yum install libXau.i686 -y
yum install libxcb -y
yum install libxcb.i686 -y
yum install libXi -y
yum install libXi.i686 -y
yum install make -y
yum install sysstat -y
yum install unixODBC -y
yum install unixODBC-devel -y
yum install oracle-rdbms-server-12cR1-preinstall -y
yum install glibc-* -y
yum install gtk-vnc* -y
yum install openmotif* -y
yum install python-* -y
yum install rdesktop* -y
yum install xorg-x11-* -y
yum install compat-db* -y
yum install compat-gcc-34* -y
yum install makedepend -y

Reboot the server and try again:

frmcmp.sh help=y


Hope this help.

No comments:

Post a Comment

Configure the Oracle DB Access Control List to avoid error like ORA-24247: network access denied

Symptoms:  You try to make external connections from the Oracle Database and receive erros like ORA-24247: network access denied by access c...