Managing the Server Life Cycle 4-5
■
To start a cluster, enter the following command, where clusterName is the name of the cluster.
startclusterName,Cluster For more information, see start in WebLogic Scripting Tool Command Reference.
4.2 Starting and Managing Servers Without Node Manager
The following sections describe starting and managing server state without using the Node Manager:
■
Section 4.2.1, Starting an Administration Server Without Node Manager
■
Section 4.2.2, Managing Server State Without Node Manager If you do not use Node Manager, WLST cannot start Managed Servers. For
information on other techniques for starting and stopping server instances, see Starting and Stopping Servers in Managing Server Startup and Shutdown for Oracle
WebLogic Server.
4.2.1 Starting an Administration Server Without Node Manager
To start an Administration Server without using Node Manager:
1. If you have not already done so, use WLST to create a WebLogic domain.
For more information, see Chapter 3, Creating WebLogic Domains Using WLST
Offline
2. Open a shell command prompt on the computer on which you created the
domain.
3. Change to the directory in which you located the domain.
By default, this directory is MW_HOME\user_projects\domains\domain_ name
, where MW_HOME is the top-level installation directory of Oracle WebLogic products.
4. Set up your environment by running one of the following scripts.
■
bin\setDomainEnv.cmd Windows
■
binsetDomainEnv.sh UNIX: Oracle recommends that you run this script from the Korn shell.
On Windows, you can use a shortcut on the Start menu to set your environment variables and invoke WLST Tools WebLogic Scripting Tool.
5.
Invoke WLST by as described in Section 2.4.1, Invoking WLST.
The WLST prompt appears. wls:offline
6.
Use the WLST startServer command to start the Administration Server. startServer[adminServerName], [domainName], [url], [username],
[password],[domainDir], [block], [timeout], [serverLog], [systemProperties], [jvmArgs] [spaceAsJvmArgsDelimiter]
For detailed information about startServer command arguments, see startServer in WebLogic Scripting Tool Command Reference.
For example,
4-6 Oracle Fusion Middleware Oracle WebLogic Scripting Tool
wls:offlinestartServerAdminServer,mydomain,t3:localhost:7001, weblogic,welcome1,c:beauser_projectsdomainsmydomain,
true,60000,false
After WLST starts a server instance, the server runs in a separate process from WLST; exiting WLST does not shut down the server.
4.2.2 Managing Server State Without Node Manager