Вы находитесь на странице: 1из 131

Oracle Weblogic Admin Training

Download Software

Download VMware
Download Vmware server from http://www.vmware.com/download/server/ Register yourself and Select VMWARE server ver 2.0 for windows and dont forget to note down product keys.

https://www.vmware.com/freedownload/p/download.php?product=server20&a=DOWNLOAD_FILE&baseurl=http://down load2.vmware.com/software/server/&filename=VMware-server-2.0.1-156745.exe

Download Oracle Enterprise Linux 5 update 4


Download Oracle Enterprise Linux 5 update 2 from edelivery.oracle.com < http://edelivery.oracle.com/linux > Register yourself and select Enterprise Linux x86 with 64 bit

Download 4 zip files

Unzip Disk the disk using winrar on windows machine

Download Oracle Database


http://www.oracle.com/technetwork/database/enterprise-edition/downloads/112010-linx8664soft-100572.html

Steps to Download WinSCP


Go to Following Link to Download WinSCP http://winscp.net/eng/download.php Download Winscp as shown below

Steps for copying software from windows machine to linux machine: Save the WINSCP file in your computer. Once it is done do the installation. Click on the WINSCP icon on the desktop and you will see a window as shown below

Enter the IP Address in the Hostname

User name: root Password:

Drag and drop the software and copy it into LINUX as shown below On the left hand side enter the drive where the software is located On the right hand side click

And now click on the login page

Then a window will be appeared as shown in the figure. Give the username password over here and click on OK and then

Then a window will be appeared as shown in the figure.

Here at the top on the right hand side next to the d01 there is a folder icon. Click on it to the give the final destination for the software location and click OK

On the right hand side here from the Drive F location I dragged the software and a popup will be appeared as shown in the figure

Click on Copy at the bottom

Now drag the software from host operating system (Windows) to guest operating system LINUX

Here all the files are copied as shown in the figure to d01 location. /d01/ software Check whether all the files are copied to the destination location as shown in the figure

Install VMWare server on your windows machine


If VMWare Server is already running on your machine then skip this step and go to next step

(Installation of VMware is simple and similar to any other software installation on windows machine)

1. Open directory vmware and double click on VMware-server-XXXXXXX.exe

2. Click on Run

http://focusthread.com/training

http://focusthread.com/training

Enter License Key above (You will get this key via email after registering on vmware site)

http://focusthread.com/training

At this stage your PC will restart

4 Create virtual machine


4.1 Login to VMware Console
Start VMware Server Console by

Clicking on image like

on Desktop

Or by typing URL on browser (IE or Mozilla) https://localhost:8333/ui

When prompted for username/password, enter your windows administrator username and password (administrator/<password of your windows>)

Here administrator is user on local machine with admin privileges (You can use other user (with Administrator access) as well)

1.1.1 Add Datastore


Click on Add Datastore on right side under commands

1.2 Create Virtual Machine apps1


Login to VMware as administrator user:

25

26

27

28

29

Select 1st cd

30

31

32

press enter button

33

34

35

36

37

38

39

40

41

42

Make sure this package need to select GNOME DESKTOP ENVIRONMENT Editors Graphical Internet Text-based Internet Development Libraries Development tools Server Configuration tools Administration Tools Base System Tools X Window System

43

44

45

46

47

Select 2nd CD and click on ok button, in the same fashion select 3rd and 4th cd.

Once done then reboot the machine.

48

49

50

51

52

53

54

55

56

57

58

59

60

61

11g Database Installation:

Unpack Files
Add the following line to the /etc/pam.d/login file, if it does not already exist: unzip win64_11gR2_database_1of2.zip Unzip the files: unzip win64_11gR2_database_2of2.zip You should now have a single directory containing installation files. Depending on the age of the download this may either be named "db/Disk1" or "database".

Hosts File
The /etc/hosts file must contain a fully qualified name for the server: <IP-address> <fully-qualified-machine-name> <machine-name>

Set Kernel Parameters


Add the following lines to the /etc/sysctl.conf file: #kernel.shmall = 2097152 #kernel.shmmax = 2147483648 kernel.shmmni = 4096 # semaphores: semmsl, semmns, semopm, semmni kernel.sem = 250 32000 100 128 #fs.file-max = 65536 net.ipv4.ip_local_port_range = 1024 65000 net.core.rmem_default=262144 net.core.rmem_max=262144 net.core.wmem_default=262144 net.core.wmem_max=262144

Run the following command to change the current kernel parameters: /sbin/sysctl -p

Add the following lines to the /etc/security/limits.conf file: * * * * soft nproc 2047 hard nproc 16384 soft nofile 1024 hard nofile 65536

62

Add the following line to the /etc/pam.d/login file, if it does not already exist:

session required

pam_limits.so

Disable secure linux by editing the /etc/selinux/config file, making sure the SELINUX flag is set as follows: SELINUX=disabled Alternatively, this alteration can be done using the GUI tool (System > Administration > Security Level and Firewall). Click on the SELinux tab and disable the feature.

Setup
Install the following packages: # From RedHat AS5 Disk 1 cd /media/cdrom/Server rpm -Uvh setarch-2* rpm -Uvh make-3* rpm -Uvh glibc-2* rpm -Uvh libaio-0* cd / eject

# From RedHat AS5 Disk 2 cd /media/cdrom/Server rpm -Uvh compat-libstdc++-33-3* rpm -Uvh compat-gcc-34-3* rpm -Uvh compat-gcc-34-c++-3* rpm -Uvh gcc-4* rpm -Uvh libXp-1* cd / eject

# From RedHat AS5 Disk 3 cd /media/cdrom/Server rpm -Uvh openmotif-2* rpm -Uvh compat-db-4* cd / eject

Create the new groups and users: groupadd oinstall groupadd dba groupadd oper useradd -g oinstall -G dba oracle passwd oracle Create the directories in which the Oracle software will be installed: mkdir -p /u01/app/oracle/product/10.2.0/db_1

63

chown -R oracle.oinstall /u01 Login as root and issue the following command: xhost +<machine-name> Edit the /etc/redhat-release file replacing the current release information (Red Hat Enterprise Linux Server release 5 (Tikanga)) with the following: redhat-4 Login as the oracle user and add the following lines at the end of the .bash_profile file: # Oracle Settings TMP=/tmp; export TMP TMPDIR=$TMP; export TMPDIR ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1; export ORACLE_HOME ORACLE_SID=TSH1; export ORACLE_SID ORACLE_TERM=xterm; export ORACLE_TERM PATH=/usr/sbin:$PATH; export PATH PATH=$ORACLE_HOME/bin:$PATH; export PATH

LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATH if [ $USER = "oracle" ]; then if [ $SHELL = "/bin/ksh" ]; then ulimit -p 16384 ulimit -n 65536 else ulimit -u 16384 -n 65536 fi fi

Installation
Log into the oracle user. If you are using X emulation then set the DISPLAY environmental variable: DISPLAY=<machine-name>:0.0; export DISPLAY Start the Oracle Universal Installer (OUI) by issuing the following command in the database directory:

64

./runInstaller

65

66

67

68

69

70

71

72

73

74

75

76

77

78

79

80

81

82

83

Weblogic Installation

Download weblogic software form below link :

http://www.oracle.com/technetwork/middleware/ias/downloads/wls-main-097127.html

In Linux Desktop,You can find the weblogic installer-Server103_linux32.bin

84

Open a Terminal in Linux and go to Installer Location

85

86

First time if u copy the weblogic installer and invoke the installer by ./server103_linux32.bin, it shows Permission denied(it looksup for file persmission)

87

88

Give chmod 777 server103_linux32.bin

89

90

After this again invke the installtion of weblogic by giving ./server103_linux32.bin

It will extract upto 100%

91

92

93

94

95

96

97

98

99

100

101

102

103

104

Domain Configuration
- Go to middleware home $ cd oracle_common/common/bin $ ./config.sh

105

106

107

108

109

110

111

112

113

114

115

116

117

118

119

120

To start the weblogic,get into the domain file system and go to Domain /bin folder. Invoke the ./startWeblogic.sh to start the Weblogic Admin server $ ./startWebLogic.sh

121

122

123

124

125

Now the WEblogic server started in Running Mode

126

For weblogic Admin Console,Open the Browser in Linux

127

And give http://192.168.56.101:7001/console (use your linux serve rip) (Note: your AdminServer Ip address varies from System to System)

128

129

130

If you face any issue please send mail on support@focusthread.com

131