server 1 cluster1.rmohan.com cluster1 192.168.1.10
server 2 cluster2.rmohan.com cluster2 192.168.1.11
Download weblogic form the oracle website
fmw_12.1.3.0.0_wls.jar
mkdir software
64 BIT
# wget –no-cookies –no-check-certificate –header “Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie” “http://download.oracle.com/otn-pub/java/jdk/8u40-b25/jdk-8u40-linux-x64.tar.gz”
# tar xzf jdk-8u40-linux-x64.tar.gz
32 BIT
# wget –no-cookies –no-check-certificate –header “Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie” “http://download.oracle.com/otn-pub/java/jdk/8u40-b25/jdk-8u40-linux-i586.tar.gz”
# tar xzf jdk-8u40-linux-i586.tar.gz
mkdir /usr/java/
cd /usr/java/jdk1.8.0_40/
[root@cluster1 java]# ln -s /usr/java/jdk1.8.0_40/bin/java /usr/bin/java
[root@cluster1 java]# alternatives –install /usr/java/jdk1.8.0_40/bin/java java /usr/java/jdk1.8.0_40/bin/java 2
alternatives –install /usr/java/jdk1.8.0_40/bin/java java /usr/java/jdk1.8.0_40/bin/java 2
alternatives –config java
[root@cluster1 java]# alternatives –config java
There is 1 program that provides ‘java’.
Selection Command
———————————————–
*+ 1 /usr/java/jdk1.8.0_40/bin/java
Enter to keep the current selection[+], or type selection number: 1
[root@cluster1 java]#
alternatives –install /usr/bin/jar jar /opt/jdk1.8.0_40/bin/jar 2
alternatives –install /usr/bin/javac javac /opt/jdk1.8.0_40/bin/javac 2
alternatives –set jar /opt/jdk1.8.0_40/bin/jar
alternatives –set javac /opt/jdk1.8.0_40/bin/javac
vi /etc/profile.d/java.sh
export JAVA_HOME=/usr/java/jdk1.8.0_40
PATH=$JAVA_HOME/bin:$PATH
export PATH=$PATH:$JAVA_HOME
export JRE_HOME=/usr/java/jdk1.8.0_40/jre
export PATH=$PATH:/usr/java/jdk1.8.0_40/bin:/usr/java/jdk1.8.0_40/jre/bin
yum -y groupinstall “X Window System” “Desktop” “Fonts” “General Purpose Desktop”
useradd was
passwd was
xhost +
su – was
java -jar fmw_12.1.3.0.0_wls.jar
mkdir /u01/
chown -R was:was /u01/
Lets start the weblogic console
/u01/Oracle/Middleware/Oracle_Home/mohan/domains/mohan_domain/bin
nohup ./startWebLogic.sh &
weblogic console
Lets start the nodemanager
/u01/Oracle/Middleware/Oracle_Home/mohan/domains/mohan_domain/bin
[was@cluster1 bin]$ ls -ltr
total 76
drwxr-x— 2 was was 4096 Mar 20 21:36 server_migration
drwxr-x— 2 was was 4096 Mar 20 21:36 nodemanager
drwxr-x— 2 was was 4096 Mar 20 21:36 service_migration
-rwxr-x— 1 was was 1267 Mar 20 21:44 setStartupEnv.sh
-rwxr-x— 1 was was 5905 Mar 20 21:44 startWebLogic.sh
-rwxr-x— 1 was was 2068 Mar 20 21:44 stopWebLogic.sh
-rwxr-x— 1 was was 2653 Mar 20 21:44 stopManagedWebLogic.sh
-rwxr-x— 1 was was 3054 Mar 20 21:44 startManagedWebLogic.sh
-rwxr-x— 1 was was 13913 Mar 20 21:44 setDomainEnv.sh
-rwxr-x— 1 was was 862 Mar 20 21:44 stopRSDaemon.sh
-rwxr-x— 1 was was 1094 Mar 20 21:44 stopNodeManager.sh
-rwxr-x— 1 was was 714 Mar 20 21:44 startRSDaemon.sh
-rwxr-x— 1 was was 1070 Mar 20 21:44 startNodeManager.sh
-rwxr-x— 1 was was 2294 Mar 20 21:44 startComponent.sh
-rwxr-x— 1 was was 1958 Mar 20 21:44 stopComponent.sh
[was@cluster1 bin]$
[was@cluster1 bin]$ nohup ./startNodeManager.sh &
[1] 2549
[was@cluster1 bin]$ pwd
/u01/Oracle/Middleware/Oracle_Home/wlserver/common/bin
[was@cluster1 bin]$ ls -ltr
total 92
-rwxr-x— 1 was was 473 Mar 1 2012 reconfig.sh
-rwxr-x— 1 was was 487 Mar 1 2012 config_builder.sh
-rwxr-x— 1 was was 209 Mar 1 2012 commEnv.sh
-rwxr-x— 1 was was 491 Apr 16 2012 prepareCustomProvider.sh
-rwxr-x— 1 was was 1748 Dec 19 2012 wlst.sh
-rwxr-x— 1 was was 471 Dec 19 2012 unpack.sh
-rwxr-x— 1 was was 467 Dec 19 2012 pack.sh
-rwxr-x— 1 was was 471 Dec 19 2012 config.sh
-rwxr-x— 1 was was 483 Feb 6 2013 clonedunpack.sh
-rwxr-x— 1 was was 736 Feb 7 2013 qs_config.sh
-rwxr-x— 1 was was 16286 May 21 2014 wlsifconfig.sh
-rwxr-x— 1 was was 33538 Mar 20 21:22 wlscontrol.sh
[was@cluster1 bin]$
./pack.sh -domain=”/u01/Oracle/Middleware/Oracle_Home/mohan/domains/mohan_domain/” -template=”/u01/test/wlscltemp.jar” -template_name=”mohan_domain” log=”/u01/test/test.log” -log_priority=INFO
pack.sh -domain=”/export/home/wlsuser/domains/wlscldom”
-template=”/export/home/wlsuser/templates/wlscltemp.jar” -template_name=”WLS
CLUSTER DOMAIN” -log=/export/home/wlsuser/logs/wlscldompack.log -log_priority=INFO
commEnv.sh config.sh prepareCustomProvider.sh reconfig.sh wlscontrol.sh wlst.sh
[was@cluster1 bin]$ ./pack.sh -domain=”/u01/Oracle/Middleware/Oracle_Home/mohan/domains/mohan_domain/” -template=”/u01/test/wlscltemp.jar” -template_name=”mohan_domain” log=”/u01/test/test.log” -log_priority=INFO
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
Error: Argument log is not supported
[was@cluster1 bin]$ ./pack.sh -domain=”/u01/Oracle/Middleware/Oracle_Home/mohan/domains/mohan_domain/” -template=”/u01/test/wlscltemp.jar” -template_name=”mohan_domain”
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
<< read domain from “/u01/Oracle/Middleware/Oracle_Home/mohan/domains/mohan_domain”
>> succeed: read domain from “/u01/Oracle/Middleware/Oracle_Home/mohan/domains/mohan_domain”
<< write template to “/u01/test/wlscltemp.jar”
…………………………………………………………….. ……………….
>> succeed: write template to “/u01/test/wlscltemp.jar”
<< close template
>> succeed: close template
<< close template
>> succeed: close template
Trasfter the domain to other server
[was@cluster1 bin]$ scp /u01/test/wlscltemp.jar was@cluster2:/u01/test/
The authenticity of host ‘cluster2 (192.168.1.11)’ can’t be established.
RSA key fingerprint is 6f:79:4d:72:7d:c8:fb:02:f8:e7:4c:4c:c0:9a:f7:75.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added ‘cluster2,192.168.1.11′ (RSA) to the list of known hosts.
was@cluster2’s password:
wlscltemp.jar 100% 54KB 53.5KB/s 00:00
[was@cluster1 bin]$
[was@cluster2 bin]$ ./unpack.sh -template=/u01/test/wlscltemp.jar -domain=domains/mohan_domain -log=unpack.log -log_priority=INFO
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
<< read template from “/u01/test/wlscltemp.jar”
tail -f unpack.log
2015-03-20 23:40:41,628 INFO [30] com.oracle.cie.domain.script.ScriptExecutor – succeed: read template from “/u01/test/wlscltemp.jar”
2015-03-20 23:40:41,633 INFO [30] com.oracle.cie.domain.script.ScriptExecutor – set config option DomainName to “mohan_domain”
2015-03-20 23:40:41,634 INFO [30] com.oracle.cie.domain.script.ScriptExecutor – succeed: set config option DomainName to “mohan_domain”
2015-03-20 23:40:41,635 INFO [30] com.oracle.cie.domain.script.ScriptExecutor – write Domain to “/u01/Oracle/Middleware/Oracle_Home/wlserver/common/bin/domains/mohan_domain”
[was@cluster2 bin]$ ls -ltr /u01/Oracle/Middleware/Oracle_Home/mohan/domains/mohan_domain/
ls: cannot access /u01/Oracle/Middleware/Oracle_Home/mohan/domains/mohan_domain/: No such file or directory
[was@cluster2 bin]$ ./unpack.sh -template=/u01/test/wlscltemp.jar -domain=domains/mohan_domain -log=unpack.log -log_priority=INFO
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
<< read template from “/u01/test/wlscltemp.jar”
>> succeed: read template from “/u01/test/wlscltemp.jar”
<< set config option DomainName to “mohan_domain”
>> succeed: set config option DomainName to “mohan_domain”
<< write Domain to “/u01/Oracle/Middleware/Oracle_Home/wlserver/common/bin/domains/mohan_domain”
………………………………………………………………………………
>> succeed: write Domain to “/u01/Oracle/Middleware/Oracle_Home/wlserver/common/bin/domains/mohan_domain”
<< close template
>> succeed: close template
[was@cluster2 bin]$
Lets start the nodemanger on the Node2 cluster2
/u01/Oracle/Middleware/Oracle_Home/wlserver/common/bin/domains/mohan_domain/bin
[was@cluster2 bin]$ nohup ./startNodeManager.sh &
[1] 24616
[was@cluster2 bin]$ nohup: ignoring input and appending output to `nohup.out’
Recent Comments