There are many ways to start & stop weblogic Admin and managed server(s)
You can start/stop Admin Server using -
[A] Script
You can start/stop Admin Server using -
[A] Script
[B] "java weblogic.server" command
[ The
weblogic.Server
class is the main class for a WebLogic Server instance ][C] From startup option on windows
[D] WLST with or without node manager
.
You can start managed server(s) using -
[A] scripts
[B] admin console
[C] using WLST
[D] using node manager
[E] java weblogic.server command
[ The
weblogic.Server
class is the main class for a WebLogic Server instance ]USING SCRIPTS
Script To Start Admin Server
startWebLogic.cmd or .sh
Script to start Managed Server
startManagedWebLogic.sh or .cmd
Script to start Managed Server
startManagedWebLogic.sh or .cmd
.
To Start WebLogic Administration Server
To Start WebLogic Administration Server
Go to domain your domain directory
cd $ORACLE_HOME/user_projects/domains/<your_domain_name>/bin
On Window run below script
startWebLogic.cmd
On unix/Linux, run below script
$ ./startWebLogic.sh
Once server start successfully, you will see below message in the server log file
" <Notice> <WebLogicServer> <BEA-000360> <Server started in RUNNING mode>"
Note : - Admin server log file you will find under DOMAIN/servers/<Admin_Server_Name>/logs with name as your_admin_server_name.log as well as your_admin_server_name.out if you are starting using node manager.
To start Managed Server
Go to YOUR_DOMAIN/bin
$ORACLE_HOME/user_projects/domains/<domain_name>/bin
On windows -
startManagedWebLogic.cmd [ name_of_your_managed_server ] [ admin_server_url ]
For example -
To start managed server with name ManSer1 where admin server running on localhost on port 7001
startManagedWebLogic.cmd ManSer1 http://localhost:7001
Note :-
If you want to start and stop managed servers from admin console then make sure to use node manager otherwise you will get an error message that there is no associated machine with the managed server like below.
In this case make sure to create a machine associated with an running active node manager and then assign server to that node manager.
START USING weblogic.server command
To start admin server
First got to your domain/bin and run setDomainEnv.sh, then run below commands
$ java -Dweblogic.Name=<Admin_Server_Name> -Dweblogic.ConfigFile=config.xml -Dweblogic.RootDirectory=<Path_Of_Your_Domain_Directory> weblogic.Server
First got to your domain/bin and run setDomainEnv.sh, then run below commands
$ java -Dweblogic.Name=<Admin_Server_Name> -Dweblogic.ConfigFile=config.xml -Dweblogic.RootDirectory=<Path_Of_Your_Domain_Directory> weblogic.Server
Example -
To start Managed Server
java -Dweblogic.Name=YOUR_MANAGED_SERVER_NAME -Dweblogic.management.server=http://<HOSTNAME_WHERE_ADMIN_RUNNING>:<ADMIN_SERVER_PORT> -Dweblogic.RootDirectory=<Path_Of_Your_Domain_Directory> weblogic.Server
Example -
where my admin server running on localhost on port 7001 and managed server name is ManSer1 and C:\Oracle\Middleware2\user_projects\domains\JJTU_Domain1 is my domain directory
To Start/Stop Using WLST
Note - Make sure to modify host, port, path, server names according to your environment on below mentioned commands
Go to your domain/bin directory
run setDomainEnv.[cmd][sh]
Go to WLST prompt
java weblogic.WLST
start node manager using WLST ( if not running there otherwise skip to next step )
Connect With Node Manager
nmConnect('weblogic','webl0gic','localhost','40046','JJTU_Domain1','C:\\Oracle\\Middleware2\\user_projects\\domains\\JJTU_Domain1','plain')
Start Admin Server
nmStart('JJTU_AdminServer')
To Start Managed Server
connect with admin server
connect('weblogic','webl0gic','localhost:40510')
Start Managed Server
start('ManSer1')
Can you please give the command to stop the weblogic instance.
ReplyDeleteThank you
what's the difference between the startWebLogic script in the 'domain' folder and the startWebLogic script in the 'domain\bin' folder?
ReplyDeletenothing. you can use both.
ReplyDeleteplease explain all ways to start adminserver and managed server with an example.
ReplyDeletejava\jdk1.6.0_05\lib\tools.jar was unexpected at this time, how to remove this error
ReplyDeletebecause of there may be space in the installation path of java.
Deletereinstall java in a path without spaces. changed the java_home correspondingly and start.
This comment has been removed by a blog administrator.
ReplyDeleteIts really helpfull me
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteit is really helpfull us Xpert
ReplyDeleteHi mukesh , when we have to run setDomainEnv.sh or .cmd script?
ReplyDeletei try to run admin server and i have that error :the system cannot find the patch specified
ReplyDeletedo you can help me ?