Saturday, October 19, 2013

How To Recover Forgotten Weblogic Admin Password (Weblogic 9, 10 and 11)

Forgot the admin password to one of your domains?
Don't panic! There is a chance you may recover it from your domain's config.xml.
Administrator's password is encrypted using one-way SHA algorithm, and cannot be decrypted without enormous computational power. Luckily, when a domain is created, the nodemanager's default password is made equal to administrator's one. Nodemanager's password is encrypted with 3DES or AES, and can be decrypted.
Recover passwords for your domain
Upload the security/SerializedSystemIni.dat file from your domain along with config/config.xml. All passwords in config.xml file will be decrypted and shown to you in clear text. Nodemanager's password is likely matches your administrator's password (unless it was changed later).
You may also decrypt passwords for JDBC datasources, JMS bridge endpoints or in boot.properties file.
Security Note
No decrypted passwords are saved anywhere on this server! They are erased from memory the moment you get them.
Why I built this service?
My team has more than 20 domains in use, and forgotten passwords problem often infuriates me. First I wrote a simple command-line utility to do the recovery, and later, seeing a large number of requests online, made it a public service.

How do we find the time taken by a request from webserver/apache to weblogic servers? Do we have any parameters configured in apache to define the max time period to reach weblogic server?

you can use these params ConnectTimeoutSecs & ConnectRetrySecs

How to verify multicasting communication failures?

When you have servers in one cluster, the servers communicate with each other using multicast messaging mode. But a lot of times you see the messages in the log files of the servers like “Lost Multicast Messages”. This means there is something wrong in the servers communication. At this point of time it is necessary to test the network connection between the ip addresses where the clusters are running.

Syntax : java utils.MulticastTest -n name -a address [-p portnumber] [-t timeout] [-s send]

-N : Name of the server so that you can identify the communication.
-A : Multicast address on which the messages are sent and received.
-P : This is the multicast port number on which the servers communicate.
-T : This is the timeout value, if no multicase message is received within this time, warning is shown on the shell prompt.
-S : The duration in seconds between sending the messages.

Below is how you do it:

Test : Start the command prompts on machines where you have your managed servers. (can be 1 or more)
Ensure that the servers in the cluster are not running, this test is for checking the network connectivity.

Set the java environment on both the shells. Then enter the below syntax:
System 1 : java utils.MulticastTest -N Server1 -A 237.0.0.1 -P 7008 -T 10 -S 2
System 2 : java utils.MulticastTest -N Server2 -A 237.0.0.1 -P 7008 -T 10 -S 2

Both servers will start sending and receiving messages.

General GC recomendations:

How to configure log4j for our web applications deployed in weblogic 10.3 domain?

The steps are given below:

1. Copy log4j-1.2.9.jar & wllog4j.jar under domain_root/lib folder.

2. Create log4j.xml and drop it under domain_root folder. If you have log4j.xml inside the application(EAR/WAR), I would recommend to move outside EAR/WAR as changing severity (log level) would require re-deployment. To avoid this, we can move log4j.xml into domain root folder but again the server needs to be bounced.

3. Login to weblogic server console. Go to Servers -> Admin Server-> Logging. Click on advanced mode. Change the logging implementation from JDK to Log4J. Click save.

4. Activate changes. Re-start the admin server.

This should enable log4j and should write logging into log file mentioned in log4j.xml or properties file.

Hang on! There is a catch here. Say now I want to change the log level from DEBUG into WARN or ERROR. How do i do? We go to log4j.xml and change the level. Now how does this change take into effect? It needs bouncing of the server.

Development Phases of J2EE Applications:

** Enterprise Bean Creation:

Person: software developer

Tasks:

Codes and compiles the Java source code needed by the enterprise bean

Specifies the deployment descriptor for the enterprise bean

Bundles the .class files and deployment descriptor into an EJB .jar file

Deliverable: the EJB .jar file containing the enterprise bean

** Web Component Creation:

Persons: Web designer (JavaServer Pages components), software developer (servlets)

Tasks:

Codes and compiles Java source code for the servlet

Writes .jsp and .html files

Specifies the deployment descriptor for the Web component

Bundles the .class, .jsp, .html, and deployment descriptor files into the .war file

Deliverable: the .war file containing the Web component

**J2EE Application Client Creation:

Person: software developer

Tasks:

Codes and compiles the Java source code needed by the client

Specifies the deployment descriptor for the client

Bundles the .class files and deployment descriptor into the .jar file for the client.

Deliverable: the .jar file containing the J2EE application client

**J2EE Application Assembly:

Person: software developer

Tasks:

Assembles enterprise beans (EJB .jar) and Web components (.war) created in the previous phases into a J2EE application (.ear)

Specifies the deployment descriptor for the J2EE application

Deliverable: the .ear file containing the J2EE application

**J2EE Application Deployment:

Person: system administrator

Tasks:

Adds the J2EE application (.ear) created in the preceding phase to the J2EE server

Configures the J2EE application for the operational environment by modifying the deployment descriptor of the J2EE application

Deploys (installs) the J2EE application (.ear) into the J2EE server

Deliverable: an installed and configured J2EE application

Analyzing the Performance Impact of Memory Utilization and Garbage Collection

Linux Commands for finding CPU's

To find the number of physical CPUs in Linux:

$ cat /proc/cpuinfo | grep “^physical id” | sort | uniq | wc -l

To find the number of cores per CPU in Linux:

$ cat /proc/cpuinfo | grep “^cpu cores” | uniq

The total number of processors available is the number of physical CPUs multiplied by the number of cores per CPU.

To find the total number of processors:

$ cat /proc/cpuinfo | grep “^processor” | wc -l

Saturday, September 14, 2013

Console Mode Installation

WebLogic Installing on Solaris 10

If your system uses Sun Solaris 5.10, your installer could have a
server922_solaris32.bin as file name. If your installer has the .bin extension,
that means the installer includes Java Development Kit (JDK).
 
To install your .bin file if you have it available on a CD or on Disk, follow
these steps:
  1. Log on to the system as the user who will run WebLogic Server.
  2. Open a command-line shell.
  3. Insert the WebLogic CD in the CD-ROM drive or cd to the installing software location.
  4. Change to the weblogic_xxx directory on the CD or disk. Invoke the following command:
./server922_solaris32.bin -mode=console -Djava.io.tmpdir=/tmp  -log=/export/home/wluser/logs/BEA_install.log
 
Note: Don't Copy the commands directly from pdf/webpage files to Unix/sunsolaris
console this may cause problem (Symbols can not be identified)
Sample installation Run given for your reference:
 
bash-3.00$ ls -lrt
-rwxr-xr-x   1 wluser   beaproj 608240443 Dec 16 10:53 server922_solaris32.bin
bash-3.00$ ./server922_solaris32.bin mode=console
Invalid command line argument: [mode]. //Refer Note
bash-3.00$ ./server922_solaris32.bin -mode=console
Extracting
0%....................................................................................................100%
 
 
<----------------------------------------------- BEA Installer - BEA Products
---------------------------------------------->
Welcome:
--------
This installer will guide you through the installation of BEA Products. Type
"Next" or enter to proceed to the next prompt. 
If you want to change data entered previously, type "Previous".  You may quit the
installer at any time by typing "Exit".
 
Enter [Exit][Next]>
 
 
<----------------------------------------------- BEA Installer - BEA Products
---------------------------------------------->
BEA Systems License Agreement:
------------------------------
BEA SYSTEMS, INC. SOFTWARE LICENSE AGREEMENT
USE OF SOFTWARE ORDERED FROM BEA SYSTEMS, INC. ("BEA") IS PROVIDED ONLY UNDER
LICENSE FROM BEA. PLEASE READ THE FOLLOWING
LICENSE CAREFULLY AND INDICATE YOUR ACCEPTANCE BY CLICKING THE ACCEPTANCE BOX.
CERTAIN CAPITALIZED TERMS ARE DEFINED IN
SECTION 11.
         
1.  LICENSE TERMS
a.  WebLogic SDK Use.  The terms of this Section 1(a) are applicable to you if
you have registered as a WebLogic SDK
customer. Subject to the terms of this Agreement, BEA grants to you a
non-exclusive, non-transferable, royalty-free license
to use WebLogic SDK solely for Development Use and Scale-Limited Personal Use for
the number of users and/or developers and
the number of CPU's, Servers and/or at the Sites, as specified at the time of
registration. Third party software products or
modules supplied by BEA, if any, may be used solely with the Software. All rights
not specifically granted to you herein are
retained by BEA.
b. WebLogic SDK Pro Use.  The terms of this Section 1(b) are applicable to you if
you have registered as a WebLogic SDK Pro
customer. Subject to the terms of this Agreement, BEA grants to you a
non-exclusive, non-transferable, fee-bearing license to use WebLogic SDK Pro
solely for Development Use and Scale-Limited Commercial Use for the number of
users and/or developers
and the number of CPU's, Servers and/or at the Sites, as specified on BEA's
invoice. Third party software products or modules supplied by BEA, if any, may be
used solely with the Software. All rights not specifically granted to you herein
are retained by BEA.
c. Evaluation Use.  The terms of this Section 1(c) are applicable to you if you
have registered as an Evaluation Use
customer. Subject to the terms of this Agreement, BEA grants to you a
non-exclusive, non-transferable, license to use the
Use above value or select another option:
    1 - Yes, I agree with the terms of the license
    2 - No, I do not agree with the terms of the license
 
Enter option number to select OR [Down][Exit][Previous]> 1
 
 
<----------------------------------------------- BEA Installer - BEA Products
---------------------------------------------->
Choose BEA Home Directory:
--------------------------
    "BEA Home" = [Enter new value or use default "/export/home/wluser/bea"]
 
Enter new BEA Home OR [Exit][Previous][Next]>
 
 
<----------------------------------------------- BEA Installer - BEA Products
---------------------------------------------->
Choose Install Type:
--------------------
Select the type of installation you wish to perform.
 ->1|Complete
    |  Install the following software components and examples:
    | - WebLogic Server
    | - Workshop for WebLogic Platform
   2|Custom
    |  Choose software components to install and perform optional configuration.
 
 
Enter index number to select OR [Exit][Previous][Next]> 2
 
 
<----------------------------------------------- BEA Installer - BEA Products
---------------------------------------------->
Choose Components to install:
-----------------------------
    Release 9.2.2.0
    |_____WebLogic Server [1] x
    |    |_____Server [1.1] x
    |    |_____Server Examples [1.2] x
    |    |_____Web Server Plug-Ins [1.3]
    |_____Workshop for WebLogic Platform [2] x
         |_____Workshop [2.1] x
         |_____Workshop Examples [2.2] x
 
Enter number exactly as it appears in brackets to toggle selection OR
[Exit][Previous][Next]> 2  
 
 
<----------------------------------------------- BEA Installer - BEA Products
---------------------------------------------->
Choose Components to install:
-----------------------------
    Release 9.2.2.0
    |_____WebLogic Server [1] x
    |    |_____Server [1.1] x
    |    |_____Server Examples [1.2] x
    |    |_____Web Server Plug-Ins [1.3]
    |_____Workshop for WebLogic Platform [2]
         |_____Workshop [2.1]
         |_____Workshop Examples [2.2]
 
Enter number exactly as it appears in brackets to toggle selection OR
[Exit][Previous][Next]>
 
 
<----------------------------------------------- BEA Installer - BEA Products
---------------------------------------------->
Choose Product Installation Directories:
----------------------------------------
BEA Home Directory: [/export/home/wluser/bea]
Product Installation Directories:
    "Default Product Home" = [Enter new value or use default
"/export/home/wluser/bea/weblogic92"]
 
Enter new Default Product Home OR [Exit][Previous][Next]>
Dec 16, 2008 11:04:46 AM java.util.prefs.FileSystemPreferences$2 run
INFO: Created user preferences directory.
 
 
<----------------------------------------------- BEA Installer - BEA Products
---------------------------------------------->
Installing files..
0%          25%          50%          75%          100%
[------------|------------|------------|------------]
[***************************************************]
 
<----------------------------------------------- BEA Installer - BEA Products
---------------------------------------------->
Installing JDK....
0%          25%          50%          75%          100%
[------------|------------|------------|------------]
[***************************************************]
Performing String Substitutions...
 
Creating Domains...
 
 
<----------------------------------------------- BEA Installer - BEA Products
---------------------------------------------->
Installation Complete
Congratulations! BEA Products has been successfully installed to
/export/home/wluser/bea/weblogic92.
Press [Enter] to continue or type [Exit]>
bash-3.00$
 

WebLogic Basics

What we have for WebLogic Admin?

This Middleware admin site is going to update and address various day to day activities that a WebLogic Administrator performs. 
This website have many articles, those are contributed by many Oracle WebLogic experts and specialists. Separate pages for installation, configuration of WebLogic Domains on Unix environments, A separate section is dedicated for  using UNIX commands for midleware administration.
Many WebLogic Server related issues discussed in the challenges section. These trouble shooting challenges give you boost your capabilities to perform faster when issues encountered in your environments.

Evolving Middleware technologies

Oracle designed many different components into the middleware technologies which are required for building an enterprise bundled into a suite and that changed the requirement of Middleware administrators.  New Middleware Admin role expectations increased, individual will interface with teams across different IT infrastructure stakeholders.

Installation and Configuration

We have pages published  on Installation of WebLogic  latest versions 12c. Most production environments are in remote locations and middleware expert need to
WebLogic 9 to 12c we have experimented check the latest version in Console Mode link.
Domain Creation
In Oracle Fussion Middleware  administration you must know about WebLogic domain creation. Enterprise architectures requires high availability with Cluster Creation by using the WLST. You may wondered by Creating a domain by using weblogic.Server class from the weblogic package.
on most of FMW environments you might need the same domain structure on different machines that can be enabled with Creating Domain by pack and unpack commands.
Here I am with referring to few of friends asking about how to become WLA?
Just goto the following sections and have a clear idea about the WebLogic Administration and who can do this what are the responsibilities. How to get job in this rare skill area? for all these questions you will find links and suggestions from various others who are in the WLA role.

Where can I get upgrade domain information for Bea WebLogic8.1 to WebLogic 9.x?

You can get step-by-step approach @ Upgrading a WebLogic Domain.

How can I get GC monitoring statistics for my WebLogic instance?

For WebLogic 9.x onwards supports JDK1.5.x which had every useful command like jstat. The jstat command is used to get the virtual Machine statistics and monitor tool. you need to give the process id of the WebLogic instance and choose the one of the option is gc.
eg: > jstat -gc <PID>
Ref: jstat command options

Can I get WebLogic CD/DVD to home/office?

Yes, Select the Mail a Free CD option if you would like a physical shipment of the CD mailed to you. Click on theFree WebLogic CDs link given in this page
 
Better approach for Latest WebLogic Administration Certification Exam objectives/syllubus and go through the links given in the right side of this page and for more comfortability go though the tutorials on the bea.com site which are also known as Viewlets
People who are from UNIX/Linux background are very much appreciated to learn Bea WebLogic Administration. Most of the Huge e-Business running companies already on this platform. If you have good ability to create & run shell script it would be added advantage.

weblogic Interview questions -5 Verizon


1. Explain your work at Current Organization ?
I had responded to this keeping in a brief description of Middleware Administration activities... This is common and general question by the interviewer, explained the work that I have been performing at current project. Like WebLogic Installation, Domain creation, Deployment, Clustering, Trouble shooting activities etc. 
I said that I am good at Shell Scripting.
2. What is the first line in Shell Scripting ?
Ans: Shebang (#! /bin/sh) It is an interpreter directive to the program loader.
3. Give some examples of Unix commands like top, netstat etc.,
These commands are discussed in previous interview questions already so here I am leaving it for navigate :)

4. What is the major configuration file in WebLogic ?
Ans: The WebLogic whole configuration stored into a repository file Config.xml in config folder present in the domain directory.
5. What is error 404 and error 500 ?
Ans: These are the common issues encounter when web application have trouble. The error code 404 - Page not found this says there is no page on the server when browser client requesting, this can happen when application is not deployed properly or not in active state.
         500- Internal server error This error occurs when there is a communication issue between server's intermediate services 
6. How many Administration servers and managed servers should be there?
Ans: In a WebLogic domain there must be a single Admin server and there can be as many as managed servers as per the need and capacity limitations of the environment. 
7. Difference between weblogic 9.2 and 11g ?
Ans: The major differences are
* JDK Version support WebLogic 9.2 supports JDK 1.5, whereas WebLogic 11g supports JDK 1.6
* More control provided in the Change Center of the Weblogic 11g console
* SAF feature is added in the JMS server for WebLogic 11g
* More focus given for hot deployment and deployment strategies : production pre-deployment strategy, Production re-deployment strategy with weblogic.Deployer utility and also available in WLST.
What do you mean by hot deployment, clustering, Unix processes and commands were also asked.

WebLogic Administrator interview questions 4

WebLogic Administrator interview questions 4


1. When do we go for jdrivers and  XA drivers?Advantages?


This question is focused for weblogic Architect/developers. This choice is depends on the application if it is having more transaction with Database requires reliable connections with the DB, more Entity Beans on the ejb-tier then we need to choose JDriver when JDO is in application side. Transactional consistency is mandatory for the application and response time is no matter then we choose XA.

2. Is there any disadvantages of using machines in cluster configuration?
Yes, If Weblogic domain not using the feature of NodeManager then it is a useless configuration.


3. What happens if we delete the log files when the server is running & when the  server is not running?
Better option is to NULLify the content of the log after archiving the logs. Nothing  happen when we delete a WebLogic server log files, When server is RUNNING, new logs will be generated w.r.t Server instance and application logs depends on log4j.properties.
New loggging will be written if the file exists. It will always do appending to the log file. If the file is removed then no appending happens. So that you don't know what is happening to the Server instance. The other case, When NOT RUNNING not new log generated :)

4. Can we change the name of the log files?
When we want to change the log file names while running. If we change at run time WebLogic will creates new log file again.
Using WLST, specifying logger with edit, save we can change it in the domain level also. Ref: Unnikrishnan pillai blog.

5. What is the actual procedure of the application deployment in realtime? Basic  reqiurement?
If there is no deployment tools in use then no-stage mode is preferred for production. Application code will be deployed when target managed server is restarted. Admin server need not to copy the code to remote machine. But you need to place the code in the code directory. 

Production Redeployment can be done with weblogic.Deployer command also. 

Latest version prefers to use deployment plan. 

Realtime in the sense development or in Production? If it is Development procedure is simple we can use hot deployment.
the number of components of the application are scheduled in sequance of deployment order.
for entity-ejbs some times requires restart of the server.



6. Why datasources ,JMS  need JNDI?
JNDI is a light weight directory which is used to lookup from other resources. Entity EJB lookup for DataSource, Message Driven
Beans lookup for JMS. Servlets, JSP web compoents lookup for JDBC connections for few actions. which is not recommmend in real time.

7.Benefits of  jRockit over jdk?
JRockit JVM strongly built with Aspect of Programming, POJO
JRockt don't have separate class loading in JVM space. Sun JDK JVM have a dedicated memory space for it, that is PermSize.
JRockit performance is good once it is in RUNNING. 
Sun JDK is faster than JRockit at launching time. 
GC options are varies in both.
Please visit: http;//wlabypani.blogspot.com

8.What is Bootup Process?
StartWebLogic.sh script flow need to explain...
CLASSPATH 
MEMARGS
GC parameters
to start the weblogic.Server class
check authentication if user, password given script takes from it. if not
check for boot.properties

Domain bootup process is like this...
Admin Server -> EJB TIER servers -> Web - Tier

9. How do u  identify weblogic health in production?
Main Threads...
checking ThreadPool state for the WebLogic instance. 

This depends on the client capacity ... if Client is willing to spend much on monitoring no downtime then Introscope,
HP-OVO some more tools are available. for me I m using WLST for JVM, Idle, Hogging thread count program which I had published in my blog.


10. What are the action to be taken when server is crash ?core file  is not genetated what to do?
if sever is crash u cannot do anything after words :) if u got alerts you can managed to get Heapdumps as you told.
reason pstack, jmap, pmap requires process id.
If third party package installed in Solaris then you can use dbx command for further investigation.
In solaries  we use pstack and pmap command to take long stack and to find which thread  library causes the problem instead of  using debbuger.. For linux is there any command that do the same tasks..pmap is working in linux but there is no pstack command..after a long search i found one command which is equal to pstack ...i.e  lsstack ( equal to pstack)..  but it is not working...

11. Difference between Weblogic previous 8.1 and  9.2 above versions such as ,10.3?
This you can ans only when you read release notes of each one.
already given weblogic interview questions 3


WLS Management from 6.0 to 8.1WLS Management from 9.0 & above
Proprietary Remotable APIs to access MBeanServerStandards based, JSR 160. Deprecated MBeanHome & RemoteMBeanServer
One MBeanServer, hosted all MBeans4 MBeanServers, each MBS hosts MBeans depending on functionality
Non schema based config.xmlSchema based config.xml
Many broken links in MBean hierarchyAll MBeans completely Linked, making the hierarchy traversable
MBeanHome - Factory for creation/deletion of all MBeansEach parent MBean serves as a Factory to create/delete its Child MBeans
Configuration change mechanism is atomicIntroduction of transaction semantics to configuration change
No control over configuration changes and often unpredictableNeed a lock on configuration to make a change, more control (can undo changes, stop edits etc)
AdminMBeanHome provided the federated view of the DomainDomainRuntime MBeanServer provides the federated view of the Domain
CommandLine administration via weblogic.AdminDeprecated weblogic.Admin, introduced WLST
WebLogic Domain Name in MBean's ObjectName, ex: mydomain:Name=myserver,Type=ServerChanged to com.bea, ex: com.bea:Name=myserver,Type=Server
config.xml represented all WLS configuration{domain_dir}/config directory represents WLS configuration i.e config is spread across multiple xml files (JMS, JDBC & WLDF config in different files)
NoneService MBeans to get to the root Mbeans
Execute Queues control Thread pool controlWork Manager gives more effective and efficient Thread pool control, like JVM crash can be controlled,
Welogic console combination of Applet and webpage less in synchroniztion, no possibility to extention of console.New WebLogic console in Portals and easy to extention of the console
No that much integratedNewly introduced webLogic Diagnostics Framework WLDF is more useful for diagnostics
At a time single version archive is allowed for deploymentDeployment can be done with application version wise from commandline
JMS only two typesJMS new types introduced for more flexibility Store and Forward (SAF), distributed destination
Domain Templates are excellent feature for creating multiple domains for a development.
Node Manager can start even Admin Server and the commands can be given from WLST



12. What is Tivoli?why we use?How it works?
Tivoli is a IBM product for profiling tool WebLogic was having similar tool Merqury.

13. In order to see last 20 files what is the command?
At your Unix prompt you can give as follows:
ls -lrt | tail -20

14. In order to see last 20 days files what is the command ?
 Simple way is using find command with ctime option and specify days signs +20


Google
Custom Search
15. If SSL certificates are expired what to do?
Two options:
1. Using temporary demo certificates.
2. Get new renewal from CA(Certifying Authority) like verisign.

16. How to select where and which driver we have to use?
This is a typical question. This is obsolutely depends on application context.
Major impacting factors
i) load capacity number of connections
ii) Application contains PreparedStatements, CallableStatements preferable is OCI if it is Oracle. (DB vendor specific driver)
iii) Thin Driver is preferable for certain number of connections only. But is most widely used with Oracle RAC and Grid databases.

17. How to monitor the incoming  traffic for webserver?
HP OVO, Patrol, access logs of web servers. By looking in the access logs of the web-server.

18. How to find network outages in environment?
Basically ping command will give required output if not outage can be predictable, In WebLogic instance to instance inter-communication breakage will be indicated by BEA-000117 error code.
netstat -na |grep using port can be used for identifying the instance is responding or not.

19. How  you will analyse threads state using samurai tool?
By getting the Thread dump for the impacted WebLogic instance. Normally, thread state could be ACTIVE, STANDBY, STUCK, If the state is same for many thread dumps then need to check about that thread. 
Check for the 'wait', 'lock' keywords with find option, verify how the threads impacting, does it leads to dead-lock? It is GUI tool which clearly shows in RED color which are the impacting threads in wait state.

20. Basic requirement for datasouce and connection pools?
Amazon.com Widgets
The Basic need for Connection Pool and DataSource are:
1. connection to the adminserver
2. JDBC Driver name, connecting parameters such as DataSource name, DATABASE schema details (user,password, hostname, port, SID)
3. Target the connection pool to a 'server' or 'cluster'.
4. Finally verify the connection pool by testing it.

What is the difference between TRUNC and DELETE in SQL commands?
TRUNC
faster
dependent tables cannot work

DELETE
slow
row-by-row
cannot applicable for large tables

WebLogic Administrator interview Questions 3

 
1.  Can you give the  deployer utility syntax?
The syntax goes like this:
$  java weblogic.Deployer -adminurl http://admin:7001 -name appName -source /myapp/appName.ear -targets [serverList] [-activate or other options]
2. How do you install Apache web server in UNIX and windows?
You will get a binaries for Apache website and you compile and build with the 4 steps
a. Extract the compressed file
b. Execute configure.sh file from the extracted folder
c. make
d. make install

http://wlabypani.blogspot.com/2009/11/apache-installation-configuaration.html
3  What is Oracle SID in Database?
It is a  Service ID in Oracle database, that we need to use in configuring JDBC Connection pool.
4. What is listener in database?
In Oracle listener is that which is associated with a SID and host, port. It is configured in the tnsnames.ora file. You can verify it by tnsping command.
5. What are the tuning techniques you applied?
Tunning for JVM - chanigng -Xmx, -Xms, MaxNewSize, MaxPermSize, and if required GC algorithms
Tuning in Threads/ThreadPool -- Defining Workmanager with maximum constraint
Tuning TCP/IP connections Interface address, backlog count,
Tuing  JMS  -- changing queue sizes as required
Tuing JDBC - initial count, maximum capacity, increase by number of connections

6. How do you troubleshoot if config.xml file will be deleted
First we look for is there any last good backup of configuration is availble on the Admin machine. If it is not found then alternatively you can find it on remote machines where the managed servers running.
 
Best practice is whenever there is a configuration changes made before and after you need to take a backup.That will help you such situation where you might need old configuration sometime.

7.  How do u trouble shoot if managed server is in FAILED state?
If any managed server is in FAILED state there could be reasons as follows:
i) deployment failed
ii) JDBC DataSource issue
iii) JMS configuration issue

8. How to monitor webLogic using WLST?
First you need to connect to the adminServer. then you can use any Runtime MBean.
Using WLST we can monitor various Runtime MBeans such as ThreadPool, JVM, JDBC ConnectionPool, JMS Server and Server Life Cycle for state of a WebLogic server instance.
9.  Can you explain about bea guardian?Gaurdian is only helpful when you have GUI. It is enables that all new patches available on Oracle site can shown in the right downside corner shows.
10.What are monitoring tools you know?
There are wide varieties of  monitoring tools available, such as:
a. HP-OVO
b. Introscope Willey
c. Patrol
d. Mercury and many more...
 
11.  What are the difference between Connection pool and data source?
ConnectionPool is physically connects to the Database. where as Data Source is a logical resource that can be used by developer or any other resource for accessing Connection of pools.
DataSource can be associated with JNDI name that is used for lookup from from any other client.
 
12.  What are the difference in WebLogic 8.1 and 9.x?
Side by side deployment introduced in WL 9.x
deployment descriptors
JDK support 1.4 and 1.5 respectivly
console Look and feel changed Cuncurrent access is controlled with Change center 'Lock and Edit' , 'Activate Changes', 'Undo All chnages' buttons.
ConnectionPool is included in DataSource configuration part.
JMS Uniform distributed destination is reduced configuration side.
JMX version change 1.2 so the MBean accessing methods simplified.
 
13. What is JMS and how do you configure it?
Java Messaging System it is a API supported by J2EE application server for messaging between diffent resources. it can be used by MDB (Message Driven Beans).  First you need to configure JMS System resource,  JMS module consists  any one out of  PTP,   publisher/Subscriber type
14. What is cluster and how do you configure?Cluster is a group of managed servers.
Using console
Usning WLST
You need to provide the Multicast address, Multicast port, Cluster Address which is nothing but the listen addresses, listen port of all managed servers need to group together.
15.  What is the use of multicast address?In a WebLogic domain to broadcast the heart beat message to all cluster members. TTL will be send to the multicast address, to this address all the cluster members are subscribers. If one of the Server crashes that can be notified by all other members by missing 3 times heart -beat. So that secondary server will takeover the request and start working with the replication data.
16. How to get thread dump and what the purpose of stuck thread?Get the java process id, you can get it by jps or customized script for it.
kill -3 pid for unix env.
Ctrl+break for windows env.
When there is a Stuck Thread need to monitor the log for few minutes some times 2 or 3 stuck threads hogging but after sometime it will be  unstucked. If you take multiple thread dump for every 5 sec gap and analyse with sumarai or Java Thread Analyzer tool you will get to know why it is stuck what is causing the instances to mis behave that time.
17.  What is nmenroll in WLST?
The nmEnroll() method is used for enroll the machine with the weblogic domains running on that. It is name and its path.
the Nodemanager always get the domain information from the Administration server provided that it should have enrolled in that machine.
18.    Tell about ant scripts?
You can ANT Scripts are mostly used for deployment process in development environtments.
 
ANT can be used to
  1. start WebLogic Server
  2. deploy the application
  3. Configure a single WebLogic server
  4. invoking WLST script
19. Types of load balancing techniques and differences b/n themThere are Hardware loadblancer, Software loadbalancer BIG IP F5 is most leading load balancers in use.
Again the Software loadbalancing CMS, CSS Context Switch Servicing
Basically Load balances uses Round robin method to its connecting Webservers.
 
Plrease ref wikipedia.com for more details.
20. What is the important configuration file in apache?
The Apache configuration will be defined in the httpd.conf, if required segrigated weblogic.conf file can be created.
SSL enable sites requires httpsd.conf
21. How do you provide load balancing?In WebLogic Cluster side we have 3 basic types and each supports Affinity based also.
I) Round Robin
ii) Random
iii) Weight based
22. Why Data source is not there in Weblogic 9?
I just wonder about this question!! It is there under jdbc link
23.    When do you use vi editor?
In UNIX environments we have vi editor for creating new file which can be shell or python or jython or plain file.
I - insert mode
Esc - to come out of the mode
r - replace char
a - append to the line
O - insert above line
o - insert below line
dw - delete word
dd - delete line
x - delete char
/ - search a pattern
:set nu setup numbers  etc...
24.  What type of shell scripts you have created?There are many bash scripts whihc I had developed
i) Finding a pattern in all log files.
ii) instance name assciated with PID
iii) Heap dump
iv) Multiple copy for produciton Code move
v) Many DB related scripts
vi) Log archiving scripts
vii) Daily DTS Collector scripts
25. What type of wlst scripts u have created?WLST scripts
I) Thread Monitoring script
ii) JVM monitoring
iii) JMS monitoring
iv) DataSource monitoring
v) Site wise, Server wise, Domain wise scripts

26. How to test the port is existing or not in unix?
On the UNIX you can give the following command
netstat -na |grep <port> 
Interview happen at NESS Technologies, India 2009