Technical article 111074

Some of the commands that should work in scodb under OpenServer 5.0.5 do not execute and I get "expected expression".

OpenServer 5.0.5

Written · Last revised

Problem

Some of the commands that should work in scodb(ADM) do not execute. Instead, the error message is displayed:

expected expression

Some examples of these commands are "sysdump" and "ps".

Cause

This happens because the size of the kernel symbol table has
exceeded the space that is pre-allocated for scodb.  When patches
and software that affect the kernel are loaded, the kernel symbol
table size increases.  When the kernel is relinked, the scodb
driver recognizes this increase and makes the necessary changes
accordingly; however, the changes are not implemented until the
kernel is relinked again. In fact, messages similar to

db_symtable in unix would only fit 200000 out of 216984 bytes

Corrected table sizes in /var/opt/K/SCO/link/1.1.1Eb/etc/conf/pack.d/scodb/tune.h ready for next re-link

accompanied the first relink, and may have been observed, even though the occurence of these is easy to miss, since the relink succeeded.

Solution

The following process rebuilds the kernel and the environment.

Change directories into:
/etc/conf/cf.d
Then execute:
./link_unix -y
Then execute:
/etc/shutdown -y -g0 -i6
This will reboot the server.

When the server has rebooted, scodb will work correctly.

See also

Manual pages: inittab(F), init.base(F), shutdown(ADM),
link_unix(ADM), reboot(ADM), scodb(ADM)

ta109310, "Gathering information when SCO OpenServer 5.0.4 system panics but does not produce a valid dump or the system hangs."

From the Xinuos technical article database, record 111074. Reproduced with permission. The original is at www.sco.com/ta/111074, which is reachable but blocked from search engines.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.