Dbvisit 7 and Mail Server on Linux.pdf

4
Dbvisit 7.0 and Mail Server on Oracle Linux Introduction............................................................................................................................................. 2 Assumptions ............................................................................................................................................ 2 Mail Servers ............................................................................................................................................. 2 Implementation of Sendmail ................................................................................................................... 2 Squirrel Mail Webmail: ............................................................................................................................ 3 Related Web Links ................................................................................................................................... 4

description

The primary requirement to install Dbvisit 7 on a Linux Server.

Transcript of Dbvisit 7 and Mail Server on Linux.pdf

Page 1: Dbvisit 7 and Mail Server on Linux.pdf

Dbvisit 7.0 and Mail Server on Oracle Linux

Introduction ............................................................................................................................................. 2

Assumptions ............................................................................................................................................ 2

Mail Servers ............................................................................................................................................. 2

Implementation of Sendmail ................................................................................................................... 2

Squirrel Mail Webmail: ............................................................................................................................ 3

Related Web Links ................................................................................................................................... 4

Page 2: Dbvisit 7 and Mail Server on Linux.pdf

Introduction

The Standby and Data Guard technologies are one of the Oracle HA (High Availability) products. But, both show their real capabilities with Oracle Enterprise Edition License

If your clients have Oracle Standard Edition and wish for a fully functioning Standby Databases and HA on Oracle Standard Edition then you might go with DBvisit 7

Indeed, a good understanding of Archive Logs, RMAN and HA (High Availability) of Oracle is required for Dbvisit

And, being an Oracle guy you might have to first test and see the capabilities of Dbvisit 7 on Linux or on Windows System and also configure Standby Database using Oracle Standard Edition

Note: Dbvisit 7 provides a nice "Dashboard" option only on Linux Systems but unfortunately not on Windows System.

For Further reading -- http://www.dbvisit.com/

One of the main pre-requisite for Dbvisit 7 is a Mail Server configured and up and running.

Installing and Configuring Mail Server on Linux or on Windows Server is not at all difficult.

Let's do it !

Assumptions

Assuming you have :

a Oracle Linux Version 4 or 5 or 6 installed on Oracle Virtual Box or VMware Workstation

a default Virtual IP for your Virtual Server, for example (192.168.56.101)

a hostname set for this Virtual Server, for example " ora-sys1.localdomain "

yum configured and connects to "public yum" to download packages

Note: If the above are unknown to you or unlearned then you can find links at the bottom

Mail Servers

Below is about 2 Mail Servers commonly used

Sendmail : Sendmail is a text based Mail Server and this is enough for DBvisit 7 installation.

Squirrel Mail : Squirrel Mail Webmail is a Mail Server in graphical mode

Implementation of Sendmail

Required Packages: As " root " User download the below 2 Packages using YUM # yum install sendmail* m4*

Configuration : The 2 main configuration files of Sendmail are: /etc/mail/sendmail.mc and /etc/mail/sendmail.cf

Page 3: Dbvisit 7 and Mail Server on Linux.pdf

Open the sendmail.mc using " vi " Editor # vi /etc/mail/sendmail.mc

When you open this file you are in "command " Mode . So, set the line numbers typing at the bottom of this file , in this way : se nu

(se nu is used to set line numbers and :se nonu will unset the line numbers to a file in Vi )

Go to line number 116 in this file you would see (daemon-options and IP followed with name = MTA )

Write here the Mail Server IP if the mail server IP is missing, for example, assuming you want Mail Server IP " 192.168.56.101" is to be configured

Save and exit the file. That is, press "esc" key and type :wq to save and quit the file in " vi " Next, go to line number 155 You would see " local_domain" . Here, the Domain and Mail Host information will be saved. For example, you want " ora-sys1.localdomain" as your Mail Host. Then the changes are

appended here. Save and exit the file. press "esc" key and type :wq

Compiling the files:

As "root " User you will compile this file using "m4" Compiler Note: space is given after "m4" and after "/etc/mail/sendmail.mc" and finally after ">" .

# m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf Service Restart

# service sendmail restart

That's all and we have a mail server configured up and running

Verification: # service sendmail status # chkconfig sendmail on ( The Service " sendmail " is automatically restarted after a reboot of the system. Normally this is not required but just to make sure it starts after a reboot)

Squirrel Mail Webmail:

Required Packages: As " root " User install the below packages using YUM

# yum install php* perl* dovecot* curl* squirrelmail* httpd* sendmail* m4*

Simultaneously update your "firefox " browser

# yum update firefox

Note : For any reason if you cannot download "Squirrelmail" using YUM then you can follow the instructions given here: http://squirrelmail.org/docs/admin/admin-3.html#ss3.2

Page 4: Dbvisit 7 and Mail Server on Linux.pdf

Verification:

# service sendmail restart # service dovecot restart # service httpd restart # firefox ( opening the browser)

Finally, in the address bar of Firefox just type " <host name >/webmail "

Related Web Links

Virtual Box on Linux System :

Watch out for the section "VirtualBox Installation" http://www.oracle-base.com/articles/12c/oracle-db-12cr1-rac-installation-on-oracle-linux-6-using-virtualbox.php

Virtual Box download for Windows :

https://www.virtualbox.org/wiki/Downloads

Download " VirtualBox 4.3.10 (or any latest Release) for Windows hosts " and " VirtualBox 4.3.10 Oracle VM VirtualBox Extension Pack All supported platforms

Oracle Linux Installation : http://www.oracle-base.com/articles/linux/oracle-linux-6-installation.php

Yum Configuration for Oracle Linux : http://public-yum.oracle.com/

http://squirrelmail.org/docs/admin/admin-3.html#ss3.2

http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch21_:_Configuring_Linux_Mail_Servers

http://www.oracle-base.com/articles/linux/linux-mta-configuration.php