You can also use the scripts that we’ve created specifically for our customers. These scripts should be run on the PC where Oracle is installed.

After that, all Oracle Forms should be placed to C:\Forms\ (*.fmb);

All Oracle Menus should be placed to C:\Menus\ (*.mmb) ;

All Oracle Reports should be placed to C:\ Reports\ (*.rdf);

All Oracle Libraries should be placed to C:\ pll\ (*.pll)

Then run CMD from your Oracle BIN directory (ex., C:\oracle\ora92\bin\) so that the command batches could appear:

f2xml.bat – to extract FORMS

pll2xml.bat – to extract LIBRARIES

r2xml.bat – to extract REPORTS

m2xml.bat – to extract MENUS

After all XML have been extracted, you can count the number of lines of code for every object type. To count the number of LOC you can use this free toolkit http://cloc.sourceforge.net/ or you can use regular expressions in Visual Studio.