Weblogic Learning Part4

Q)Which three scenarios are true about domain
a)Domain can be created using configuration wizard
b)Domain can be created using WLST
c)Domain configuration files are located in Weblogic Home Directory
d)Domain can be created based on a domain template
[1z0-599]
ANS:ABD

—>Weblogic Silent Installation
—————————-
1)created folder structure
Login as root
[root@example /]# mkdir -p /u01/app/oracle/product/middleware
[root@example /]# mkdir -p /u01/app/oraInventory
[root@example /]# chown -R oracle:oinstall /u01/

2)created oraInst.loc
[root@example /]# vi /etc/oraInst.loc
[root@example /]# chown oracle:oinstall /etc/oraInst.loc

3)Setup central inventory location
[root@example ~]# cd /tmp/
[root@example tmp]# ./createCentralInventory1598281272037.sh /u01/app/oraInventory oinstall

4)create response file
[oracle@example tmp]$ cd ~
[oracle@example ~]$ vi response_file


[ENGINE]

DO NOT CHANGE THIS.

Response File Version=1.0.0.0.0

[GENERIC]

The oracle home location. This can be an existing Oracle Home or a new Oracle Home

ORACLE_HOME=/u01/app/oracle/product/middleware

Set this variable value to the Installation Type selected. e.g. Fusion Middleware Infrastructure, Fusion Middleware Infrastructure With Examples.

INSTALL_TYPE=WebLogic Server

Provide the My Oracle Support Username. If you wish to ignore Oracle Configuration Manager configuration provide empty string for user name.

MYORACLESUPPORT_USERNAME=

Provide the My Oracle Support Password

MYORACLESUPPORT_PASSWORD=

Set this to true if you wish to decline the security updates. Setting this to true and providing empty string for My Oracle Support username will ignore the Oracle Configuration Manager configuration

DECLINE_SECURITY_UPDATES=true

Set this to true if My Oracle Support Password is specified

SECURITY_UPDATES_VIA_MYORACLESUPPORT=false

Provide the Proxy Host

PROXY_HOST=

Provide the Proxy Port

PROXY_PORT=

Provide the Proxy Username

PROXY_USER=

Provide the Proxy Password

PROXY_PWD=

Type String (URL format) Indicates the OCM Repeater URL which should be of the format [scheme[Http/Https]]://[repeater host]:[repeater port]

COLLECTOR_SUPPORTHUB_URL=

[oracle@example ~]$ java -jar fmw_12.2.1.0.0_wls.jar -silent -responseFile /home/oracle/response_file

Note: in 11g we use –> -mode=silent -silent_xml=

                                                     Packing Domain and Unpacking Domain
                                                    --------------------------------------

cd $MW_HOME/oracle_common/common/bin
./pack.sh -managed=true -domain=/u01/app/oracle/product/middleware/user_projects/domains/iam_domain1 -template=/home/oracle/iam_domain1.jar -template_name=”iam_domain1″

unpack in new machine

–>place iam_domain1.jar at /home/oracle
cd $MW_HOME/oracle_common/common/bin
./unpack.sh -domain=/u01/app/oracle/product/middleware/user_projects/domains/iam_domain1 -template=/home/oracle/iam_domain1.jar

–>Start the server

                                                         Creating domain using WLST
                                                      -----------------------------------

–>create folder structure for domain
[root@example oracle]# mkdir -p /u01/app/oracle/product/middleware/user_projects/domains/iam_domain1
[root@example oracle]# chown -R oracle:oinstall /u01/
[root@example oracle]# exit
exit

–>create a file domain.xml

[oracle@example ~]$ vi domain.xml

readTemplate(‘/u01/app/oracle/product/middleware/wlserver/common/templates/wls/wls.jar’)
cd(‘Servers/AdminServer’)
cmo.setListenAddress(”)
setOption(‘ServerStartMode’,’prod’)
set(‘ListenPort’, 7001)
create(‘AdminServer’,’SSL’)
cd(‘SSL/AdminServer’)
set(‘Enabled’, ‘True’)
set(‘ListenPort’, 7002)
cd(‘/’)
cd(‘Security/base_domain/User/weblogic’)
cmo.setPassword(‘Oracle123’)
setOption(‘ServerStartMode’,’prod’)
setOption(‘OverwriteDomain’, ‘true’)
writeDomain(‘/u01/app/oracle/product/middleware/user_projects/domains/iam_domain1’)
closeTemplate()

exit()

–>run this file with wlst
[oracle@example ~]$ cd /u01/app/oracle/product/middleware/oracle_common/common/bin
[oracle@example bin]$ ./wlst.sh /home/oracle/domain.xml

Related Posts

Leave a Reply

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