Quantcast
Channel: Smart ERP Solutions - PeopleSoft Administration
Viewing all articles
Browse latest Browse all 9

COBOL installation troubleshooting guide for Unix server

$
0
0

When a COBOL program is executed it errors out with:

No Application Server License available at COBDIR location:
No Application Server License available:
0 system and 0 user license installed 0 in use

Scenario 1)
This error occurs because valid runtime license is not found in the application server / runtime license database.

Scenario 2)
This resolution will also correct the error:  ”License Key Database is Corrupt” i.e  License Key database unusable due to corruption i.e License Key database is unusable due to copying, restoration or tampering.

The license database corruption can occur when the OS is updated, or license database files are moved, copied or restored.  The error can also occur if there are no licenses in the runtime database (check via apptrack).

SOLUTION:
1)   Login as root
2)   Find where the license manager database is installed
A)   If License manager is running on the system
(to check whether it is running you can do ps -ef | grep manager)
root   333     1  0   May 04 ?        0:03 ./mflm_manager
Change to $COBDIR/lmf
Run the command ./lmfgetpv
License Manager version 121
Loaded from /products/mf/svrexp-1.1/mflmf
The directory /products/mf/svrexp-1.1/mflmf is where the license database is installed
B)    If License manager is not running on the system
You need to figure out where the mflmf directory or you can
check the installation notes as to what directory was provided
during installation of License database.
3)   Shutdown the license manager, if running
lmfgetpv k
4)   Change to the license database directory (mflmf)
5)   Delete the entire directory & its contents
(this is under the assumption that this database was used only
for Server Express & not for Micro Focus Object COBOL )
6)   Delete the contents of the directory /var/mfaslmf and the /var/aslmfsem file
7)   Change to $COBDIR/lmf
8)   Run the command lmfinstall
9)   Choose the license database directory (you can choose the same directory as it is installed earlier)
10)  Once the script is completed (without any errors), change to the license database directory.
( The license database directory is the one you create in step 9) above )
11)  Run the command ./mflmadm
12)  Press the Key (F2) or (/2) & put in the license details
13)  Install by pressing the (F3) or (/3)
14)  Launch another telnet session & go to the license database directory & boot
the license manager by running the command ./mflmman
15)  Refresh the license database by returning the license administration menu
& pressing the (F7) or (/7) key
16)  Exit out &  run the $COBDIR/aslmf/apptrack (after setting the COBDIR environment variable)
Verify the values in the License summary (password is six spaces)
17)  Make sure you set the password to avoid misuse of this utility

Scenario 3)
- In another scenario, cobol programs are compiled successfully on the same machine but get the same/ above error “No Application Server License available: 0 system and 0 user license installed 0 in use” when attempting to run a cobol process. It was found that the development license database (mflmf) existed with valid development license key in it but the runtime license database was not created at all.

This was further validated when the following error was seen when attempting to query the runtime / application server license database using the apptrack command.

/opt/lib/se4/aslmf > ./apptrack
The Application Server license database cannot be created./var/mfaslmf/mfasdbNo such directory, or no
space on file system.You must run the utility ‘initaslm’ as root, before
trying again.

To resolve this scenario:
1) login as root user
2) cd to $COBDIR/aslmf and run the initaslm command
3) cd to the compiler install’s mflmf dir ( this is the compiler’s development license database dir )
4) run the ./devas command from the mflmf directory to update the runtime db with the runtime license from the dev license database.
5) cd to $COBDIR/aslmf and run the apptrack command to check the licenses.

Ref: Oracle SOLUTION ID 707309: COBOL Programs Error out with No Application Server License available on UNIX

 

By: Prasanth Bhaskaran PeopleSoft DBA


Viewing all articles
Browse latest Browse all 9

Trending Articles