Learn to prepare tasty,quality south indian, north indian, vegeterian,non-vegeterian,thai,tiffin,idli,dosa,vada,sambar.
Weblogic Interview question answer preparation
Give some important commands in weblogic used for domain migration;-
pack.sh and unpack.sh are some most important commands that help in bundling of domains and extraction at destination respectively
Give syntax of pack command :-
pack -domain=domain-path -template=path-of-jar-file -template_name="template-name"
Give sysntax on unpack command:-
unpack -template=path-of-jar-file -domain=path-of-domain-to-be-created -user_name=username -password=password
Oracle Weblogic Server System Administration tasks :
As an Oracle weblogic administrator you are expected to perform the following system administration tasks :
1) Create Weblogic Server Domains - Domain is a logical grouping of services intented for a specific purpose. Configuration wizard, WLST (Weblogic Scripting Tool) can be used to create domains
2) Deploy Applications - Oracle middleware applications can be deployed within weblogic domains. It is the reason why oracle fusion middleware 11g uses weblogic as its application server
3) Migrating domains - From Development to Production environments - Domain template builder commands pack and unpack can be used
4) Manage system performance
5) Diagonise and Troubleshoot problems
Weblogic Scripting Tool (WLST) :
WLST is a command-line scripting environment just like shell scripts,DOS scripts. WLST can be used to :
1) Create Weblogic Server Domains
2) Manage Weblogic Server Domains
3) Monitor Weblogic Server Domains
It is based on Jython – an interpreter language based on java – java + python. Python is a popular scripting tools used for automating most of the system administration, database administration, web scraping tasks.IT is notable that most of the software programs from ORacle corporation are based on Perl scripting language which is the best python’s rival.
WLST provides a set of commands specific to Weblogic Server. These commands are scripting functions.
Weblogic Server Determine Unavailability of an instance:
WebLogic Server uses two mechanisms to determine if a given server instance is unavailable.
1) Each WebLogic Server instance in a cluster uses multicast to broadcast regular heartbeat messages that advertise its availability. By monitoring heartbeat messages, server instances in a cluster determine when a server instance has failed. The other server instances will drop a server instance from the cluster, if they do not receive three consecutive heartbeats from that server instance. This is similar to heartbeat mechanism followed in Oracle RAC (Real Application Cluster). In Oracle RAC setup, Oracle clusterware receives heartbeat from available instances within a default setting of 3 seconds. If it fails, nodes are automatically deleted from cluster by clusterware.
2) WebLogic Server monitors socket errors to determine the availability of a server instance. For example, if server instance A has an open socket to server instance B, and the socket unexpectedly closes, server A assumes that server B is offline.
Oracle Web Logic Server - Installers:
Oracle Web Logic Server - Installers help in downloading, installing Oracle weblogic server components. There are two basic type of installers :
1) Net Installer
2) Package Installer
Net Installer :
Net installer is used to download the web logic server software online and install it. Major advantage of using Net installer is that we can partially download the software and proceed with installation. This minimizes the download and installation time.
There are two major types of net installers :
1) Generic net installer - preferred installer if the JDK runtime environment is already installed
2) OS-specific net installer - Downloads and installs JDK runtime environment specific to OS and proceeds with installation
Package Installer :
Package installer can be downloaded in a machine and used to install weblogic server from DVD media. This can be used in cases wherein we install in multiple machines:
This can be :
1) Generic Package installer - preferred installer if the JDK runtime environment is already installed
2) OS-specific package installer - Downloads and installs JDK runtime environment specific to OS and proceeds with installation
Oracle Web Services Manager (OWSM/WSM) Components And Interaction:
Components of Oracle Web Services Manager (OWSM/WSM) Components And Interaction has been depicted in picture given above.
Oracle Web Services Manager (OWSM) 10.1.3.3.0 is made of the following components :
1) Policy Enforcement Points (PEP) (Oracle WSM Agents and Oracle WSM Gateway)
2) Oracle WSM Policy Manager
3) Oracle WSM Monitor
4) Oracle Enterprise Manager 10g Web Services Manager Control (Web Services Manager Control)
5) Oracle WSM Database
Weblogic Administration console :
After installing and creating oracle weblogic server domains we can log into oracle weblogic server administration console. Weblogic Server Administration Console acts as a dashboard from which we can perform many different operational, administration tasks.
1) Logon screen can be accessed at http://hostname:7001
2) Supply administrator username and password created in previous step during domain creation and log into Administration console
Run An ADF 11gR1 Web Application:
If we've deployed Oracle WebLogic 10.3 and we would like to execute a web application we have built using Oracle JDeveloper 11gR1 and ADF 11gR1, we will have to install the ADF 11gR1 libraries and some patches.We need to run the Installer program of the Fusion Middleware Development Platform 11gR1 by running the jdevstudio11111install_win32.exe file.
Choose "Custom" and select the "Application Development Framework Runtime" component under the WebLogic Server category.
WLS directory specifies - where to install this component and the installer will take care of the rest.
The Application Development Framework Runtime component includes the following items:
1) ADF runtime jar (Java Archive) files
2) Web Logic Server (WLS) patches to run an ADF 11gR1 web application
3) Domain templates
Oracle Weblogic Server Creating Domain Using Configuration Wizard:
1) Configure server start mode and JDK screen appears. Server can be started in - development mode, production mode. Choose option depending on your needs. JDK lists two options - one is the JDK available and other option. By default development option and JDK available options are enabled. Choose option depending on your needs. Click Next
2) Select optional configuration. It can take four possible values :
2.1) Administration Server
2.2) Managed Servers, Clusters and machines
2.3) Deployments and Services
2.4) JMS File store
2.5) RDBMS Security Store
You can choose one among them. If not you can click Nex
3) Configuration Summary Page Appears. Click Create
4) Domain created successfully message appears along with path. Click on Start admin server which popsup a shell prompt and starts server with message server started in running mode
Server Can be accessed at : http://hostname:7001/
Steps to create a New Domain Using Configuration Wizard in weblogic server:
Oracle Weblogic Server - Creating A New Domain Using Configuration Wizard has about 10 steps. So, I decided to break it and present in form of series. This is part one.
After downloading and installing oracle weblogic server next step is to create a domain. We can make use of configuration wizard for this purpose. This can be used in GUI mode or silent mode. Now I'll take you through sequence of GUI mode steps :
1) I own a Windows 7 system. Click on Start-> All Programs -> Oracle Weblogic -> Quick Start
2) Click on configuration wizard
3) Create a new Weblogic domain page appears. We find two options here - Create a New weblogic domain; extend an existing weblogic domain. As we start fresh, click on create a new weblogic domain
4) Now we land in select a domain source page. Here we have two options - First option generates a domain with automatic support for the oracle web logic server web services extension. Second option creates a domain based on existing template. If you'd have installed Oracle database 11g version previously, while creating databases using dbca we've a concept called dbca templates. Similar to that herein we have a template manager. Lets look into weblogic server template manager in detail in next few posts. By default first option is chosen. Click Next
5) Specify domain name and location page appears. By default :
domain name : base_domain
Location : C:OracleMiddlewareuser_projectsdomains
While installing weblogic server yesterday we found that C:OracleMiddleware is the default installation directory of oracle weblogic server. Leave these configuration options as such. If you want to customize it make necessary changes and click Next
6) Configure Administrator username and password screen appears. Following values are assigned by default Username : weblogic; password : ; confirm password: ; Description : This is the default admin user
7) I tried procceding further without supplying password and got these errors
CFGFWK-60050:Property "User Password" of user "Weblogic" is invalid
CFGFWK-60054: The property value is required
8) I created a password of length 6 and got the following error :
CFGFWK-66005:Weblogic domain requires password to be minimum 8 characters
After making necessary changes, I clicked Next