kill -KILL
Solution
There are two possible solutions:
remove the lock files and restart
kill any remaining server
processes (if they exist) and restart
Solution1: Removing the lock files
and restarting
1. Find -name "*.DAT"
files in user_projects/domains/<your domain name> directory (as
appropriate) and move or remove them, for example:
$ find . -name "*DAT"
./servers/AdminServer/data/store/diagnostics/WLS_DIAGNOSTICS000000.DAT
./servers/AdminServer/data/store/default/_WLS_ADMINSERVER000000.DAT
NOTE: Gentle reminder that Unix is
case sensitive. you do need to make sure you do NOT delete the file <CM
HOME>/security/SerializedSystemIni.dat, it is the files ending with
"*.DAT" not "*.dat"
Deleting .DAT files: with
reference to Note 1332274.1. Please be aware of the implications of removing
the .DAT files. "...There may be error messages for transactions that
were already committed and finished during the WebLogic Server run. However,
the transaction entries will still be available in the transaction persistent
store file (.DAT file)..."
2. Remove lock files:
"EmbeddedLDAP.lok" and "AdminServer.lok" (maybe some
more). These files are usually under paths such as below
/opt/bea/user_projects/domains/ORACLE_COMMUNICATIONS/servers/AdminServer/tmp/AdminServer.lok
opt/bea/user_projects/domains/ORACLE_COMMUNICATIONS/servers/AdminServer/data/ldap/ldapfiles/EmbeddedLDAP.lok
3. You can use the following shell
script to find out which process is listening to your port, and kill this via
kill -TERM:
#!/bin/ksh
line='---------------------------------------------'
pids=$(/usr/bin/ps -ef | sed 1d |
awk '{print $2}')
if [ $# -eq 0 ]; then
read ans?"Enter port you would like to know pid for: "
else
ans=$1
fi
for f in $pids
do
/usr/proc/bin/pfiles $f 2>/dev/null | /usr/xpg4/bin/grep -q
"port: $ans"
if [ $? -eq 0 ]; then
echo $line
echo "Port: $ans is being used by
PID:\c"
/usr/bin/ps -ef -o pid -o args | egrep
-v "grep|pfiles" | grep $f
fi
done
exit 0
4. Execute:
nohup ./startWebLogic.sh &
Solution2: kill any remaining
server processes (if they exist) and restart
Using the example of a managed
server
1. Find the PID of the managed
server
ps -ef | grep ManagedServer
2. Kill the managed server process
with a -KILL
kill -9 <pid of managed
server>
3. Restart the Admin server and
Managed servers
nohup ./startWebLogic.sh &
Note: the startWebLogic.sh script
is usually run with nohup so the user can exit the shell leaving the process
running.
|