The problem is caused by a missing privilege grant on an Oracle system object. This privilege is required for all MFG/PRO versions in which the User Count functionality is implemented. This grant must be performed during the upgrade to MFG/PRO version 8.5 release G and above, as well as to version 8.6 release D and above. The grant command was omitted from the 8.5G and 8.6E upgrade procedure and SQL script that creates the Oracle database.
This problem was corrected by adding the necessary command to the Oracle SQL scripts beginning with MFG/PRO 9.0. If this error occurs in MFG/PRO versions after 8.6E, including 9.0, eB and eB2, review the log files created by each Oracle database creation (crdb1*.sql and crdb2*.sql) and the oraempty-idx.sql scripts for errors indicating the script failed to complete successfully. Common causes of problems are running the scripts as the wrong Oracle user, failing to run oraempty-idx.sql, and having inadequate disk space. Correct any problems and rerun the affected SQL script(s).
For MFG/PRO versions 8.5G, 8.6D and 8.6E, grant access to this Oracle system object then rerun lvorasp.plb using the following procedure:
Login to the database server as the Oracle software owner.
Login to the Oracle instance as the user "SYS" and grant the missing privilege to the Oracle object:
In Oracle svrmgr (for Oracle versions that use the Server Manager tool):
SVRMGR> connect internal;
SVRMGR> grant select on v_$session to public;
OR
In SQL*Plus (for Oracle versions that do not use the Server Manager tool):
Start SQL*Plus: sqlplus "/ as sysdba"
SQLPLUS> grant select on v_$session to public;
Start a SQL*Plus session as the Oracle schema owner for MFG/PRO and run the lvorasp.plb PL/SQL procedure. This procedure implements MFG/PRO's User Count functionality in the Oracle database. For example:
SQLPLUS> connect qad/qad;
SQLPLUS> @lvorasp.plb;
NOTE: In SQL*PLUS, make sure to connect to the Oracle database using the appropriate schema owner ID and password used to create the MFG/PRO database objects (qad/qad in the above example).