Some common weblogic tasks
in Windows
Append the following lines to the file $DOMAIN_HOME/bin/setDomainEnv.cmd
CLASSPATH=%CLASSPATH%;%DOMAIN_HOME%/Properties
in Unix
Append the following lines to the file $DOMAIN_HOME/bin/setDomainEnv.sh
CLASSPATH="${CLASSPATH}${CLASSPATHSEP}${DOMAIN_HOME}/Properties"
export CLASSPATH
Normally files stored in the domain home could be accessed without having to set class path, this example is just for illustration.
You could set username and password in the properties files so that you dont have to enter weblogic credentials every time the server is started. It has to be done for every server
create a folder security under $domain_home/servers/AdminServer
create a new file boot.properties and enter the following
username=weblogic
password=welcome1
The clear text password will be automatically changed to encrypted one when the weblogic starts up for the first time
cd /d01/fmw1213/oracle_common/common/bin
./wlst.sh<<ThisIsTheEnd
nmConnect('nodemanager','welcome1','wlHostname','5556','soa_domain','/u01/app/oracle/config/domains/soa_domain')
nmStart('AdminServer')
ThisIsTheEnd
exit 0
cd /d01/fmw1213/oracle_common/common/bin
./wlst.sh<<ThisIsTheEnd
nmConnect('nodemanager','welcome1','wlHostname','5556','soa_domain','/u01/app/oracle/config/domains/soa_domain')
nmKill('AdminServer')
ThisIsTheEnd
exit 0
cd /d01/fmw1213/oracle_common/common/bin
./wlst.sh<<ThisIsTheEnd
startNodeManager(verbose='true',NodeManagerHome='/d01/fmw1213/config/domains/soa_domain/nodemanager',ListenPort='5556',ListenAddress='wlHostname')
ThisIsTheEnd
exit 0
cd /d01/fmw1213/oracle_common/common/bin
./wlst.sh<<ThisIsTheEnd
nmConnect('nodemanager','welcome1','wlHostname','5556','soasit_domain','/d01/fmw1213/config/domains/soa_domain')
stopNodeManager()
ThisIsTheEnd
exit 0
Refer this link
Refer this link
Refer this link
Setting CLASSPATH
in Windows
Append the following lines to the file $DOMAIN_HOME/bin/setDomainEnv.cmd
CLASSPATH=%CLASSPATH%;%DOMAIN_HOME%/Properties
in Unix
Append the following lines to the file $DOMAIN_HOME/bin/setDomainEnv.sh
CLASSPATH="${CLASSPATH}${CLASSPATHSEP}${DOMAIN_HOME}/Properties"
export CLASSPATH
Normally files stored in the domain home could be accessed without having to set class path, this example is just for illustration.
Setting Boot.properties
You could set username and password in the properties files so that you dont have to enter weblogic credentials every time the server is started. It has to be done for every server
create a folder security under $domain_home/servers/AdminServer
create a new file boot.properties and enter the following
username=weblogic
password=welcome1
The clear text password will be automatically changed to encrypted one when the weblogic starts up for the first time
Script to Start and Stop servers
Startup Script
#!/bin/bashcd /d01/fmw1213/oracle_common/common/bin
./wlst.sh<<ThisIsTheEnd
nmConnect('nodemanager','welcome1','wlHostname','5556','soa_domain','/u01/app/oracle/config/domains/soa_domain')
nmStart('AdminServer')
ThisIsTheEnd
exit 0
Shutdown Script
#!/bin/bashcd /d01/fmw1213/oracle_common/common/bin
./wlst.sh<<ThisIsTheEnd
nmConnect('nodemanager','welcome1','wlHostname','5556','soa_domain','/u01/app/oracle/config/domains/soa_domain')
nmKill('AdminServer')
ThisIsTheEnd
exit 0
Script to Start and Stop NodeManager
Startup Script
#!/bin/bashcd /d01/fmw1213/oracle_common/common/bin
./wlst.sh<<ThisIsTheEnd
startNodeManager(verbose='true',NodeManagerHome='/d01/fmw1213/config/domains/soa_domain/nodemanager',ListenPort='5556',ListenAddress='wlHostname')
ThisIsTheEnd
exit 0
Shutdown Script
#!/bin/bashcd /d01/fmw1213/oracle_common/common/bin
./wlst.sh<<ThisIsTheEnd
nmConnect('nodemanager','welcome1','wlHostname','5556','soasit_domain','/d01/fmw1213/config/domains/soa_domain')
stopNodeManager()
ThisIsTheEnd
exit 0
Managing Log files
Refer this link
Decrypt Weblogic passwords
Refer this link
How to increase heap space and permgen space?
Refer this link