Saturday, February 1, 2014

Auto Start Weblogic Server, Forms & Reports Server In Red Hat Linux.

1. logon as oracle user.

Create a file boot.properties in the path

(/u01/oracle/middleware/user_projects/domains/ClassicDomain/servers/AdminServer,
/u01/oracle/middleware/user_projects/domains/ClassicDomain/servers/AdminServer/security,
/u01/oracle/Middleware/user_projects/domains/ClassicDomain/servers/WLS_FORMS/security,
/u01/oracle/Middleware/user_projects/domains/ClassicDomain/servers/WLS_REPORTS/security)

and add the following line

username=weblogic // This username for your weblogic server
password=weblogic#2 // This password for your weblogic server


#  Open terminal and past the following

[oracle@micrsvr Desktop]#mkdir /u01/Scripts

Now create the following file in this Location (/u01/Scripts/)

Name :- WeblogicStart.sh

File Source
(
echo
echo Starting Weblogic Server startWeblogic.sh .................................
echo

/home/oracle/Middleware/user_projects/domains/ClassicDomain/bin/startWebLogic.sh
)

Name :- WLS_FORMS.sh

File Source
echo
echo Starting WLS_FORMS .................................
echo

/home/oracle/Middleware/user_projects/domains/ClassicDomain/bin/startManagedWebLogic.sh WLS_FORMS

Name :- WLS_REPORTS.sh

echo
echo Starting WLS_REPORTS .................................
echo
/home/oracle/Middleware/user_projects/domains/ClassicDomain/bin/startManagedWebLogic.sh WLS_REPORTS


Now Run the following command

[oracle@micrsvr Desktop]# chmod +x /u01/Scripts/WeblogicStart.sh
[oracle@micrsvr Desktop]# chmod +x /u01/Scripts/WLS_FORMS.sh
[oracle@micrsvr Desktop]# chmod +x /u01/Scripts/WLS_REPORTS.sh

2. Open Terminal And Write The following.

[oracle@micrsvr Desktop]# crontab -e

3. Past the following .....

@reboot /u01/Scripts/WeblogicStart.sh
@reboot /u01/Scripts/WLS_FORMS.sh
@reboot /u01/Scripts/WLS_REPORTS.sh

## This ensure all of services start after your server started.

No comments:

Post a Comment