This tutorial describes how to create a new WebLogic domain by using the Configuration Wizard in graphical mode. It also how to start the domain and the Administration Server.

Prerequisites
Before starting this tutorial, you should have working setup as per previous tutorial.
Step by Step Installing Oracle WebLogic Server 12c on Oracle Enterprise Linux 6

Step 1: As we have not chosen to launch the Configuration Wizard as part of the installation, we will do it manually by running following command on terminal through oracle user.

$WLS_HOME/common/bin/config.sh

Oracle_WebLogic_Server_12c_domain_creation_1

Step 2: Accept the Create a new domain option, enter the domain name at the end of the Domain Location, then click the Next button. In this case my domain was called techienote, so the path I used was /u01/app/oracle/config/domains/techienote
Oracle_WebLogic_Server_12c_domain_creation_2

Step 3: Select the required product template and click the Next button.
Oracle_WebLogic_Server_12c_domain_creation_3

Step 4: Enter the administrator credentials and click the Next button.
Oracle_WebLogic_Server_12c_domain_creation_4

Step 5: Enter the domain mode as Production and JDK details as /u01/app/oracle/jdk1.7.0_51 then click the Next button.
Oracle_WebLogic_Server_12c_domain_creation_5

Step 6: Select any required advanced configuration options. For this example I ignored the advanced configuration. Click the Next button.
Oracle_WebLogic_Server_12c_domain_creation_6

Step 7: If you are OK with the configuration summary screen, click the Create button
Oracle_WebLogic_Server_12c_domain_creation_7

Step 8: Once the domain is created, click the Next button.
Oracle_WebLogic_Server_12c_domain_creation_8

Step 9: Make a note of the Admin Server URL and click the Finish button.
Oracle_WebLogic_Server_12c_domain_creation_9

Step 10: As we have chose the Production Mode options for the domain, we will need to create a boot.properties file for the scripts referred to later to work without credentials. Adjust the DOMAIN_HOME and credentials appropriately.

export DOMAIN_HOME=$ORACLE_BASE/config/domains/techienote
mkdir -p $DOMAIN_HOME/servers/AdminServer/security
echo "username=weblogic" > $DOMAIN_HOME/servers/AdminServer/security/boot.properties
echo "password=admin@1234" >> $DOMAIN_HOME/servers/AdminServer/security/boot.properties

Step 11: The $ORACLE_BASE/config/domains/techienote directory now contains a script that can be used to start / stop the server. Remember to use the “&” if you want access to the command line to be returned.
To start the AdminServer you need to run following command

nohup $DOMAIN_HOME/bin/startWebLogic.sh > $DOMAIN_HOME/bin/start_AdminServer.log &

To stop the AdminServer you need to run following command

nohup $DOMAIN_HOME/bin/stopWebLogic.sh > $DOMAIN_HOME/bin/stop_AdminServer.log &

Step 12: Once the server is started you can access the administrator console using the http://hostname:port/console URL. Log in using the username and password provided in the previous step.
Oracle_WebLogic_Server_12c_domain_creation_10

Step 13: In case of any issue while starting the AdminServer you need to check $DOMAIN_HOME/bin/start_AdminServer.log logs
In case of any issue while stopping the AdminServer you need to check $DOMAIN_HOME/bin/stop_AdminServer.log logs

Step by Step Creating Domain Oracle WebLogic Server 12c on Oracle Enterprise Linux 6

Leave a Reply

Your email address will not be published. Required fields are marked *

Notify me of followup comments via e-mail. You can also subscribe without commenting.

Recommend on Google