Followers

Thursday, February 21, 2013

change connectionpool URL with WLST

###################****##############****######################## 
# Generic script applicable on any Operating Environments (Unix, Windows) 
# ScriptName    : ChangeConnectionPoolURL.py 
# Author        : Madhusudhana Chilipi 
###############     Connecting to Start     ################################# 

connect('weblogic','welcome1','t3://localhost:7001')
cd('Servers/AdminServer')
edit()
startEdit()
cd('JDBCSystemResources')
allDS=cmo.getJDBCSystemResources()

###############     Changing the Datasources     ################################# 

for tmpDS in allDS:
    dsName=tmpDS.getName();
    print  '************* Changing URL for DataSource ', dsName     
    cd('/JDBCSystemResources/'+dsName+'/JDBCResource/'+dsName+'/JDBCDriverParams/'+dsName+'')
    set('Url','jdbc:oracle:thin:@localhost:1521:xe')
    print("************* URL has been Changed for DataSource: ", dsName)
    print ('')
    print ('')
save()
activate()

###############     End    ################################# 
   
   
   
   
   


Domain Migration WLST Script

readTemplate('c:/bea910/user_projects/templates/migration.jar')
writeDomain('C:/bea/user_projects/domains')
closeTemplate()
readDomain('C:/bea/user_projects/domains')
ls()
cd('Server')
ls()
cd('AdminServer')
set('ListenAddress','127.0.0.1')
set('ListenPort',10005) # Changing Admin Server ListenPort
set('Name','newAdmin') # Changing Admin server name

updateDomain()
closeDomain()

Deployment WLST Script

##################****##############****######################## 
# Generic script applicable on any Operating Environments (Unix, Windows) 
# ScriptName    : deploy.py 
# Author        : Madhusudhana Chilipi 
###############     Connecting to AdminConsole     ################################# 

print '*********connecting to the AdminConsole*********'
connect('weblogic','weblogic1','t3://localhost:7001')

###############     Deploying applicaiton1    ################################# 

print '*********deploying applicaiton1********'

deploy('benefits', 'C:/SOFT/benefits.war', targets='Server1')


###############     Starting the applicaitons   ################################# 
startApplication('benefits')

exit()

JMS Monitering WLST Script

#########################################################################
#
# This script will monitor a queue over time
# Author : Madhusudhana Chilipi
#
########################################################################
from java.util import Date
     
def JmsStat():
connect('weblgoic,'weblogic1','t3://localhost:7001')
serverRuntime()
servername = 'Server1'
while 1:
cd('/JMSRuntime/' + servername + '.jms/JMSServers/myJmsServer_1/Destinations/jmsmodule!myJmsServer_1@MQGEOQueue')
messagesCurrentCount= cmo.getMessagesCurrentCount()
messagesTotal= cmo.getMessagesReceivedCount()
cd('/JVMRuntime/'+servername)
heapfree = cmo.getHeapSizeCurrent()
date = Date() # now
print '%14s   %5d %6d %12d' %  (date, messagesCurrentCount, messagesTotal, heapfree)
java.lang.Thread.sleep(10000)
     
     
if __name__== "main":
redirect('jmsmonitor.log', 'false')
JmsStat()

Tuesday, February 19, 2013

Orace SOA & Weblogic Interview Questions


·        

1. Define relation between Oracle SOA Suite and Weblogic.
·         Weblogic Administration:

Manage a WebLogic Server installation.
To install weblogic server in one or multiple instances
Installing on single or multiple physical machines
How to handle administration console, utilities, APIs, hangling security, database connection, messaging and transaction.
How to do runtime configuration for your applications.
How to use the monitoring tools to check the health of the servers and ensure maximum availability and performance.
Install and Configure WebCache 11g as Load Balancer

and Much more..

OFM SOA Administrator:
·         Manage a WebLogic Server installation (Administration Server and Managed Server).
To install weblogic server in one or multiple instances
Installing on single or multiple physical machines
How to handle administration console, utilities, APIs, hangling security, database connection, messaging and transaction.
How to do runtime configuration for your applications.
How to use the monitoring tools to check the health of the servers and ensure maximum availability and performance.

and

File System and Directory Structure in Fusion Middleware
Installing Oracle Database, Configuring RCU, weblogic server and SOA Suite.
Deploying SOA Applications.
Deploying and Undeploying Java EE Applications
Configuring Node Manager and starting Managed Servers using Node Manager
Monitoring OFM Server, admin server, managed server and composites
Configuring HA and Security (Creating users, assigning responsibilities)
Monitoring performance of SOA composites
Install and Configure WebCache 11g as Load Balancer
·        

2. Functional differences between Fusion EM console and WLS Admin console.
·         http://weblogicandsoaadmin.blogspot.in/2012/02/soa-11g-em-console-performance-issues.html

3. List some key Fusion Middleware 11g products and their usage in brief.

4. Define key components/building blocks/basic architecture of Oracle SOA Suite.

5. Explain concept of domains, admin, managed server in Weblogic.

6. Difference between Weblogic Development and Production mode.

7. Explain Node Manager in Weblogic.

8. Key functionality of Nodemanager.

9. What are the different types of nodemanager?

10. What is the default port number of nodemanager?

11. Mention the path for Nodemanager home.

12. Explain some properties present in nodemanager.properties file.

13. Is Nodemanager setup mandatory in a standalone WLS installation?

14. Is nodemanager setup mandatory in a clustered WLS environment? If not what are the demerits.

15. Explain the functionalities of Node manager in a clustered WLS environment.

16. Explain the term managed Server Independence mode.

17. Can I start a managed server even if Admin server is down?

18. Can I make configurationally changes to managed server if admin server is down?

19. Explain significance of admin server in a WLS domain.

20. Why do you think Oracle recommends not deploying applications to Admin server in production environments?

21. Explain different ways of starting or stopping WLS Admin/managed server.

22. What is config.xml? Where can I find it?

23. You deployed a faulty code to Admin server which brought it down. You are not able to restart it. How would you undeploy the faulty piece of code then?

24. How do I clear cache for a WLS managed/Admin server?

25. What is meant by data source?

26. Explain how would you tune a data source and apply some best practices to it.

27. Explain difference between multicast and unicast IP.

28. Explain hardware requirement for a WLS 2 node cluster.

29. How do you configure OHS/Apache web server for a 2 node WLS cluster?

30. What is the role of mds in ofmw?

31. What are the main components of ofmw and their usage in brief?

32. Explain the procedure for installation of ofmw components in a cluster environment?

33. What is a SOA composite?

34. Path of the server related log files

35. What is synchronus and asynchronous process in BPEL

36. Basic commands in solaris like checking the CPU usage RAM consumption

37. Basic questions on database

38. List the various adapters used

39. What is SOA, Oracle SOA suite, BPEL, ESB

40. Designer for Business process

41. Difference between BPEL and ESB

42. Transactions and fault (exception) management

43. Run time components of SOA

44. Calling external web service

45. Calling asynch BPEL process within empty BPEL process

46. Combination of ESB and BPEL and third party web services

47.
Java embedding

48. BPEL and OSB console

49. Adapter - concepts, integration, life-cycle mgmt., translation errors

50. Oracle E-Biz adapter and capturing event from oracle ERP

51. Fine tuning BPEL process

52. Deployment framework

53. Business rules and AIA

54. Email notification and rejection handler

55. Patches and installation - UNIX based and windows based

56. External resource management (example MQ shared library and third party jar files)

57. JMS and connection pools

58. Transformation and iteration

59. Which are the areas you think Oracle SOA fits perfectly

[Answer - EAI with real-time data transfer, need heavy data communication with rich business logic, Oracle ERP in existing environment]


60. Loose coupling and control at central point (orchestration vs. choreography)



1. Define relation between Oracle SOA Suite and Weblogic. 2. Functional differences between Fusion EM console and WLS Admin con...
1.      How to know the Managed Servers status, when admin console is not available? 2.      What is the performance issue in weblogic ...
Oracle Fusion Middleware 11g installation is broadly covered in 5 steps 1.     Create Repository 2.     Install Weblogic Server 3. ...
Why Oracle Fusion Middleware is #1 in Middleware comparatively with IBM. Please access below the webcasts, white papers and other resour...
1.   What is the default HTTP Port? 2.   What is the difference between production mode and development mode? What is weblo...
Scenario and Symptoms: The BPEL Engine Audit level is set to Development. The BPEL engine is load tested with some huge number of transac...
1.       How to know the Managed Servers status, when admin console is not available? 2.       What is the performance issue in weblogi...
1)  Starting and Stopping a Managed Server       As a best practice, it is always recommended that you start and stop a managed ser...
While configuring any Weblogic domain the there are two modes the domain can be configured with. - Development Mode  - Product...
Monitoring Remote JVMs Using JVisualVM Real-time monitoring of a SOA/ADF 11g server Sun JVM can be provided by several tools. VisualV...

1) Starting and Stopping a Managed Server

      As a best practice, it is always recommended that you start and stop a managed server through one, but not both, of the following methods. Do not mix these methods, such as starting the managed server from the command line and stopping it from Oracle Enterprise Manager Fusion Middleware Control, or vice versa.
  • Oracle Enterprise Manager Fusion Middleware Control
With this method, the node manager must be up and running. The node manager tracks all managed server startups and shutdowns performed from Oracle Enterprise Manager Fusion Middleware Control. With this method, the server state is not an issue.
  • Command line
With this method, the node manager does not track the server state. Therefore, if you start the server from the command line and shut it down from Oracle Enterprise Manager Fusion Middleware Control, the Oracle WebLogic Administration Server accesses the node manager to determine its status, which returns a state of Unknown.


Perform the following steps to stop and start the server from Oracle Enterprise Manager Fusion Middleware Control.
    1. Expand the WebLogic domain.
    2. Select the managed server (for example, named soa_server1).
    3. Select Control  --> Shut Down.
    4. Select Control  --> Start Up
·         1.      How to know the Managed Servers status, when admin console is not available?
·         2.      What is the performance issue in weblogic and how can you resolve, explain in brief?
·         3.      What is the Digital Certificate? How do we generate a Digital Certificate? 
·         4.      What is Thread Dump? What is the UNIX command to take Thread Dumps?
·         5.      What is a cluster? What is High Availability and Fail over?
·         6.      How to handle out of memory in weblogic and if server is getting more requests then what we have to do in production environment?
·         7.      What is clustering? How do weblogic instances communicate in a clustered environment? In a cluster, if one of the servers has an issue and it is not accessible, will the other servers know about it and how?
·         8.      What are the roles you have played and what are the day today activities?
·         9.      WHAT IS TROUBLE SHOOTING IN WEBLOGIC?
·         10. How to integrate apache webserver with weblogic server? What is the purpose of integrating both?
·         11. Define the different groups of Users?
·         12. What are the different thread queues?
·         13. How will you analyze if a page responds slowly?        
·         14. What is Work manager? Explain briefly?
·         15. What are the different types of drivers?
·         16. What are the various types of log files?
·         17. What are you commonly used fine tuning commands?
·         18. What is Session replication? What are the different types of Session Replications?
·         19. What happens if we change config.xml while server is running?
·         20. What is HTTP tunneling?
·         21. What is asynchronous communication? Is there any synchronous communication in JMS?
·         22. How to find Weblogic Version?
·         23. What is the use of log4j?
·         24. What is Work manager?
·         25. What is virtual host?
·         26. What is eden size and perm size?
·         27. What is Weblogic shrink?
·         28. What is diff b/w JNDI and JDBC?
·         29. What are the different types of drivers?
·         30. What driver you are using?
·         31. What is diff b/w unicast and multicast?
·         32. When core dump will not be created even if the server crashed?
·         33. Can we change the heart beat interval?
·         34. What are the various types of log files?
·         35. What is WorkManager?
·         36. What is Multicast IP Address? What are the things done by it? How to
·         test multicast IP?
·         37. How to check whether the cluster multicast adress is available or not?
·         What is the command to check in UNIX environment?
·         38. What is Virtual Host in Weblogic, how to create it & what is the
·         advantage ?
·         39. How can you find the jdbc version on server side?
·         40. What you do to close the connections automatically in JDBC?
·         41. What are the things that we take care under Database fine tuning apart
·         from increasing or decreasing connections?
·         42. What is MBean, how many types are there?
·         43. How to restart proxy?
·         44. Reasons for server crash?
·         45. Reasons for servers hang?
·         46. What is the thread hogging?
·         47. Various garbage collection algorithms?
·         48. How to find whether the PORT No is free or not?
·         49. What is the command to find CPU utilization?
·         50. What is the command to find version of Unix?
·         51. How to find CPU utilization? What if top command doesn’t work?
·         52. What are you commonly used fine tuning commands?
·         53. What is the difference between webservers and Proxy server?
·         54. How to sort the files?
·         55. What is Session replication? What are the different types of Session Replications?
·         56. Which IP segment will you use for Multicasting?
·         57. Is it possible to manage multiple domains through a single weblogic
·         admin console?
·         58. What happens if we change config.xml while server is running?
The intent of this note is to list the important configuration and log files used to diagnose SOA 11g problems.

Throughout this note we will refer to the following:
$ MIDDLEWARE_HOME =
$ DOMAIN_HOME = $ MIDDLEWARE_HOME/user_projects/domains/

Here is a list of files to look for:
1.Domain configuration under $DOMAIN_HOME/config  directory
   - Config.xml
   - jdbc/-Jdbc.xml
   - jms/-Jms.xml files under

2. Adapter configuration under $MIDDLEWARE_HOME//soa/connectors/   directory. ( Oracle_SOA1 is the default name)
  - AppsAdapter.rar
  - DbAdapter.rar
  - FtpAdapter.rar
  - MQSeriesAdapter.rar
  - SocketAdapter.rar
  - AqAdapter.rar
  - FileAdapter.rar
  - JmsAdapter.rar
  - OracleBamAdapter.rar
Issue:


while creating new domain in step select domain source I am getting "CFGFWK-64069 prerequisite missing: Oracle WSM Policy Manager 11.1.1.0 Oracle BI Composer Runtime , oracle BI-ADF runtime 11.1.1.0


Solution:


This could be because of higher security in windows vista/windows 7


Check file permission and owner of MW_HOME and subdirectory (reset permission of MW_HOME directory and subdirectory) .


If you are creating domain using command line config.cmd then start command promt in administrative mode and then try.
1. Define SOA and how do you explain it to a layman.
2. Deferentiate SOA from Oracle SOA Suite.
3. Define relation between Oracle SOA Suite and Weblogic.
4. Functional differences between Fusion EM console and WLS Admin console.
5. List some key Fusion Middleware 11g products and their usage in brief.
6. Key difference between Oracle SOA Suite 10g and 11g.
7. Define key components/building blocks/basic architecture of Oracle SOA Suite.
8. Explain concept of domains,admin,managed server in Weblogic.
9. Explain basic functionality of Application Servers eg WLS,OAS,Websphere.
10.Difference between Weblogic Development and Production mode.
11. Explain Node Manager in Weblogic.
12. Key functionality of Nodemanager.
13. What are the different types of nodemanager.
14. What is the default port number of nodemanager.
15. Mention the path for Nodemanager home.
16. Explain some properties present in nodemanager.properties file.
17. Is Nodemanager setup mandatory in a standalaone WLS installation.
18. Is nodemanager setup mandatory in a clustered WLS environment. If not what are the demerits.
19. Explain the functionalities of Nodemanager in a clustered WLS environment.
20. Explain the term managed Server Independence mode.
21. Can I start a managed server even if Admin server is down.
22. Can I make configurational changes to managed server if admin server is down.
23. Explain significance of admin server in a WLS domain.
24. Why do you think Oracle recommends not to deploy applications to Admin server in production environments.
25. Explain different ways of starting or stopping WLS Admin/managed server.
26. What is config.xml. Where can I find it.
27. You deployed a faulty code to Admin server which brought it down. You are not able to restart it.How would you undeploy the faulty piece of code then?
28. How do I clear cache for a WLS managed/Admin server.
29. What is meant by datasource.
30. Explain how would you tune a datasource and apply some best practices to it.
31. Explain difference between multicast and unicast IP.
32. Explain hardware requirement for a WLS 2 node cluster.
33. How do you configure OHS/Apache web server for a 2 node WLS cluster?
34. Explain basic steps for SSL configuration in WLS.
35. Explain JVM concept and detailed architecture.
36. What is the function of Permanent Generation (PermGen) space.
37. Explain OOM errors and what are the different causes.
38. Explain Memory Leaks. Explain how would you detect it. state examples of some tools to analyze it.
39. What would be your approach if you are asked to tune JVM.
40. Explain some key Sun JVM startup/tuning arguments.
41. State some JVM tuning properties that you would use in a multi threaded box like the Oracle T series so as to improve JVM performance.
42. Explain Garbage Collection. State some GC algorithms you are aware of.
43. What is the Verbose GC option used for?
44. Explain what would you do to mimimise frequent major GC.
45. Explain difference between major and minor GC.