Friday, June 29, 2018

Exadata Configuration Files Of Compute & Storage Nodes

Exadata Configuration Files Of Compute & Storage Nodes


=>Exadata Compute node:
/opt/oracle - contains dbserver software
/opt/oracle.cellos - Contains all cell OS configuration files, image executables, and so forth
/opt/oracle.exacli - Contains exacli and exadcli executables
/opt/oracle.ExaWatcher - Contains ExaWatcher utilities and output/archive files/directories
/opt/oracle.oswatcher - Contains OSWatcher utilities and output/archive files/directories
/opt/oracle.SupportTools - Contains support and configuration files
/opt/oracle.SupportTools/onecommand - Contains OneCommand files used for Exadata install/config
/etc/oracle/cell/network-config - Contains files that enable compute servers to communicate with storage servers
/etc/oracle/cell/network-config/cellinit.ora - Contains IB IP subnet for storage cells
/etc/oracle/cell/network-config/cellip.ora - Contains IB IP addresses for each storage cell
/u01/app/oracle - Oracle Base
/u01/app/12.1.0.x/grid - Grid Infrastructure Home
/u01/app/oracle/product/12.1.0.x/db - Oracle Database Home

=>Storage Cells:
/opt/oracle - Contains cell software
/opt/oracle.cellos - Contains Exadata cell software and utilities
/opt/oracle.cellos/cell.conf - Contains cell configuration file
/opt/oracle.exacli - Contains exacli and exadcli executables
/opt/oracle.ExaWatcher - Contains ExaWatcher utilities and output/archive files/directories
/opt/oracle.oswatcher - Contains OSWatcher utilities and output/archive files/directories
/opt/oracle.SupportTools - Contains OneCommand files used for Exadata install/config
/var/log/oracle - Contains cell server log files, alerts, and trace files
/var/log/oracle/cellos - Contains log and trace files for Cell Services utilities and cell server startup/shutdown events
/var/log/oracle/diag/asm - Contains log and trace files for cell storage-related events in your cell

Exadata Diagnostic Utilities

Exadata Diagnostic Utilities


-sundiag.sh
/opt/oracle.SupportTools/sundiag.sh

-exawatcher
/opt/oracle.ExaWatcher/GetExaWatcherResults.sh

-ipconfig
/opt/oracle.cellos/ipconf

-CheckSWProfile.sh
/opt/oracle.SupportTools/CheckSWProfile.sh

-verify-topology
/opt/oracle.SupportTools/ibdiagtools/verify-topology

-ibdiagnet
/usr/bin/ibdiagnet

-infinicheck
/opt/oracle.SupportTools/ibdiagtools/infinicheck

-CheckHWnFWProfile
/opt/oracle.SupportTools/CheckHWnFWProfile

-sosreport
/usr/sbin/sosreport

Exadata Utilities

Exadata Utilities


-dbmcli
Command-line administration tool for configuring database servers, and managing objects in the server environment.

-cellcli
Command-line administration tool for Oracle Exadata Storage Server Software

-dcli
Runs commands on multiple compute nodes and cells in parallel threads

-exacli
Command-line administration tool for Oracle Exadata Storage Server Software. It runs on compute nodes and enables you to manage cells remotely.

-exadcli
The exadcli utility runs commands on multiple cells in parallel threads. You can issue an ExaCLI command to be run on multiple cells.

-OEDA
The Exadata Deployment Assistant tool used to gather the information needed to deploy the Exadata Database Machine. The information entered in the tool is used to create the configuration files used to deploy the machine.

-checkip.sh
Run the Network Check script on the network where the machine will be deployed to validate the specified names and IP addresses have been added correctly to the name server, and they do not conflict with the existing network configuration.

-exachk
Exachk utility used to conduct a comprehensive Exadata Health Check on Exadata Database Machine to validate hardware, firmware and configuration.

Unix Interview Questions & Answers

 Unix Interview Questions & Answers


1.Search a file from root directory.(filename = sample.txt)
find / -name sample.txt

2.Display the numbers in sorted order
sort -nu

3.Display the updated lines in file
tail -f filename

4.How to zip a Directory
gzip -r /hom/bea/app

5.How to kill a prosess.
kill -9 pid

6.Display all java process in unix.
ps -ef |grep java

7.How to delete 10 lines in vi editor.
10dd

8.How to search a string and replace tin  vi editor.
:"%s/old string /new string/ gi"

9.How to search a string in vi editor from bottom to top.
?string name

10.How to insert a line above the current line in vi editor .
esc+o

11.How to rename a file .
mv file1 file2

12. copy the content one directory to another directory.
cp -r dir1/file1 dir2/file2

13. How can delete blank lines in directory.
grep -v "^$" sample > temp
mv temp sample

14.How can replace astring in unix.
sed "s/oldstring/newstring/g" filename

15.Syntax for zip and unzip afile.
gzip filename
guzip filename.gz

16.How can display top 10 disk usage files.
du -sh *|sort -nr|head -10

17.How to retrive a field in a file.
cut -f 1,2 stud.

18.what is command search a string in a file.
grep

19).How to goto the end of the line in Vieditor?
G

20).Copy 10 line in vi editor?
10yy

21).How to go to insert mode in vi editor?
Esc+i

22).How to search a string in a file(filename=sample,string=weblogic)?
grep weblogic sample

23).How to copyfile from one unix to other unix system and syntax (file=sample.txt,target host=192.168.11.128,target file path=/home/bea)?
scp -rp sample.txt username@192.168.11.128:/home/bea

24).How to find out CPU utiligation?
top

25).How to execute ascript using nohup(script name=startweblogic.sh)?
nohup ./startWeblogic.sh &

26).Which command is used to search and replace a string?
sed

27)which command is used to search astring in multiple files?
fgrep

28)How to search a string from top to bottom in vi Editor's(String =weblogic)?
 /weblogic

29)how to save and quit from vi Editor's?
a)WQ!

30)what are the Advantages of nohup command?
nohup will execute the process if you layout system.
Syn:nohup &.

31)Differance b/w the ping and tracert?
ping                              
1)It is check the connectivity.  
2)It is display all at a time.           
tracert
1.It is packet information one place to another place destination.
2.It display only 30 hubs in tracert.

32)How to execute unix commands in vi?
:ls

33)tar dir1 dir2 dir3 and new_dir?
syn:tar -cvf new_dir.tar dir1 dir2 dir3.

34)How to display the ipaddress and portnumber?
netstat -anp

35)how to delete directory with recursion and force?
rm -rf filename.

36)How to Open a file with page to page ?
more filename

37)How to Hide a file (file name=tuxedo)?
mv tuxedo .tuxedo

38)How to do undo in vi Editor's?
u

39)How to goto 100 Line in Vi Editor's?
100L

40)How to display last 100 Line from a file?
tail -100 filename

41)How to Reterive the fields from a file?
cut

42)How to zip a directory?(/home/directory)?
gzip -r /home/directory

43)How to go to end of the line in Vi?
G

44)Display the directiory count in current dir?
ls -lrt !wc -l

45)How to appeand data to the existing file?
cat>>filename

46)How to find out the diskspace of the fileSystem?
df -sh

47)write A syntax for the scp Commands?
Scp filename root@ipaddress:filename.

48)How to display the updated lines in file ?
tail -f filename.

49)How to display the ipaddress and portnumber?
netstat -anp

50)which command is used to connect to the remote server?
telenet ipaddress.

51)How to repalce and String in vi Editor's?
sed %s/oldstring/newstring/g

52)How to repalce and String in unix?
sed s/oldstring/newstring/g filename

53)How to display top 10 lines from a file?
head -10 filename.

54)syntax for tar and untar a file?
tar -cvf filename.tar file1 file2 file3.
tar -Xvf filename.tar

55)How to display hiddean a file?
ls -a.

56)How to Delete a blank line from a filename?
grep "^v" sample >temp
mv temp filename

57)How to display all cuurent running process?
ps -ef

58)syntax for zip and unzip file?
gzip filename.
gunzip filename.gz

Weblogic Deployment FAQs

Weblogic Deployment FAQs


Different ways ,modes,types to deploy an application?

-console mode of deployment
-java command line deployment
-wlst deployment
-python deployment
-antscript deployment

Deploying modes?

1.staging modes
2.No stage  mode
3. External stage mode

Types of deployment?

1.side by side deployment
2.Two phase deployment
3.Deployment using plan

Deployment steps for console mode?

1. click on lock & edit
2.click on deployments
3.click on install
4.select location
5.choose targeting style
6.select  deployment targets
7.select security roles and policies and modes
8.activate changes

Deployment steps for java command line deployment?

1.set the class path to execute java commands - setDomainEnv.cmd
2.execute java command for deployment – java weblogic.Deployer
Java weblogic.Deployer  –adminurl  t3://localhost:7001   –username  weblogic  –password  weblogic       –name  benefits  –source  path\benefits.war  –targets ms1,ms2  –deploy

steps for deploying an application using wlst?

1.invoke / connect to wlst-offline – wlst.cmd
2.connect to online- connect(‘weblogic’,’weblogic’,’t3://localhost:7001’)
3.edit ( )
4.startEdit ( )
5.execute - deploy (‘appname’,’path/app.war’,targets=’ms1,ms2’)
6.activate( )
7.disconnect( )

Steps for deploying  an application using ant script?

1.create   build.xml file
2.write  script in it.
3.execute command  ant  deploy {if we save the file name as build.xml}
Ant  –f  filename.xml {if the file name is created with filename.xml}
6.Auto Deployment?
1.copy the application in to Autodeployment folder,which is present in c:bea/user_projects/domains/domain1/servers/admin/autodeloyment
2.Now Run the admin server .
3. The application automatically deployed in admin server.

Different modes of deployment?

-Staging mode:  The admin server copies the deployment unit files to the staging directories of target servers and they are deployed using the local copy.
This mode is useful when deploying  small or moderate size applications.
This is default staging mode for managed servers .

-No stage mode:   the deployment units are deployed using the same physical copy  which must accessible by the admin server and target servers
This mode is useful when deploying large  applications to multiple targets
This is default staging mode for adminservers.

-External stage: we must copy the deployments units manually to the correct staging directories  before deployment.
We will use this mode for deployments when we want to manually control the distribution of deployment files to target servers.

Side by side deployment  ?

Use the weblogic server to redeploy a new version of a production application without interrupting the availability of application to new client requests.
This way the new client get connected to the new version of the application and the previous version  of the application is till in use bythe older clients and gets retired after the client disconnects.

How to clear weblogic cache?

Steps :
1.shut down the server.
2.delete the contents of the folder:
c\bea\user_projects\domains\domain1\servers\server_name\tmp\wl_user
3.Restart the server.

what happens if we don’t  clear the cache?

If we are redeploying an application or deploying a new version of same application, weblogic  server look up in the above directory.if there are older objects persists that will be conflict with new code objects.

Difference between .jar .war and .ear files?
.jar:  java archive files intended to hold generic libraries of java classes ,Resources,Auxillary  files etc.
Used in J2ee for packaging EJB’s  & client side java applications.
.war : web archive files intended to contain complete web applications.
Specially for web applications made from servlets , jsp’s supporting classes.
.ear : Enterprise archive files intended to contain complete enterprise applications.
Contains all of the components     that make up a particular  J2EE application.

what is two phase deployment?

There are two states in two phase deployment
They are
1.prepare state
2.active state
Deployment first prepares the application across all the target servers and then activates the application in a separate phase.
If  deployment of an application fails in either of the two phases then the cluster deployment is failed.

What are deployment descriptors?

It is a configuration file for web application or EJB application which is to be deployed to web or EJB container.
Deployment descriptors describes the deployment settings of an application or module or component.
It contains meta data describing the contents and structure of the enterprise beans, and runtime transaction and security information for EJB container.
It directs a deployment tool to deploy a module or application with specific container options and describes specific configuration requirements that a deployer must resolve.

Deployment process in current organization?

1.Developers develop the code,check into svn (sub version number)
2.Build team build the code using Hudson tool.
3.War,Ear files will be generated after the build.
4.we will stage these files from windows machine to unix machine using winscp tool.
5.once staging is complete we will clear weblogic servers cache .
6.next we will trigger the deployment using wlst script.
7.deployment will complete automatically ,we will get mail alert for success or failure status.
8. if in case of deployment failures ,we will check log files and fix issues.

Deployment issues?

1.Code issues
2.Out of memory issues
3.Connection pool issues
4.Clear cache issues
5.Library class path issues
6.Applications are not deployed

How to create boot.properties in weblogic

How to create boot.properties in weblogic


Today we are going to learn on how to create boot.properties fil in weblogic. Using boot.properties, you can control the server startup without passing the username and password.
 
1. Create a boot.properties file.
Create a plain text file called boot.properties with the following content:
username=weblogic
password=weblogic01

2. Copy the boot.properties to the following location:
/usr/local/weblogic103/user_projects/domains/devdomain/servers/<server_name>/security