Weblogic Startup Scripts

The following scripts and procedure allows stopping and starting of Weblogic Instances using Jython (Python) scripts and the nodemanager. Services are then created and can be used at startup and shutown for your NodeManager, Admin Server, and Managed Servers.


Version = Weblogic 10.3.6
MW_HOME = /u01/app/oracle/weblogic1036R2
JAVA_HOME = /u01/app/jdk
DOMAIN = IDMdomain
BOOTSCRIPTS LOCATION = /u01/app/oracle/$MW_HOME/bootscripts
Node Manager is installed and configured.

Configure the nodemanager as follows


Create the main wls.py script

Next is the startall.sh script





Before running this command (deprecated in 12c, but still works in 12.1.3), you must source setDomainEnv.sh for the domain you are using.

Encrypt username and password (11g)

Then run this command to create your encrypted User and Key files

Encrypt credentials for Weblogic


Now create your init.d startup scripts



The weblogic scripts call the startall.sh when the server starts, and stopall.sh when the server stops.



Both the nodemanager and weblogic startup scripts need to made runable (chmod 755) and then added to chkconfig

Update your Nodemanager type to be “Plain”

image2015-6-24 7-54-27

This can be done for each domain on your server

Well Done! Grab a beer


6 Replies to “Weblogic Startup Scripts”

  1. Hy there.
    This works for me except for one thing.
    If i use the java weblogic.Admin STOREUSERCONFIG command i get an error when trying to start weblogic servers.

    “Version mismatch between key and supported version; will try to continue”

    If i dont use it, it works fine.
    So from my understanding if i dont use it, the credentials are not encrypted right ?
    Is there something i can do about it ?

  2. Did you source the setDomainEnv.sh first? Should work after that. Also, make sure you are signed in as the oracle user or owner of the weblogic environment.

    source /u01/app/oracle/weblogic1036R2/user_projects/domains/OAM_domain/bin/setDomainEnv.sh

  3. hi there, thank for your script. but i get an error as below. hope you can help me.
    /etc/init.d/weblogic: line 24: gt: command not found
    /etc/init.d/weblogic: line 24: /dev/null: Permission denied
    /etc/init.d/weblogic: line 33: syntax error near unexpected token ;&'
    /etc/init.d/weblogic: line 33:
    echo [ $RETVAL -eq 0 ] && touch $LOCKFILE’

  4. Hi ,

    While I execute weblogic stop, its asking for a password.

    ./weblogic stop
    Stopping weblogic: Password:
    /bin/su: incorrect password

    1. Did you follow this section?

      java weblogic.Admin -username weblogic -userconfigfile /u01/app/oracle/config/nmUserFile -userkeyfile /u01/app/oracle/config/nmKeyFile STOREUSERCONFIG

Leave a Reply

Your email address will not be published. Required fields are marked *