Migrating From Unix To Linux
Migrating From Unix To Linux
Migrating into Linux can be very easy or very difficult, depending on your existing Oracle
configuration. It is not uncommon to see small “dialect” differences between implementations of
UNIX, especially with respect to display output and command arguments.
Those shops that find a migration difficult are those that have made extensive use of operating
system utilities for their Oracle functions:
– Crontab
– Windows “at” scheduling
– Automated e-mail alerts (new dumps, alert log messages, Linux syslog messages)
– File system alerts
– Server overload alerts
If you avoid the OS trap and use Oracle to schedule all Oracle tasks you can easily port your
database across OS platforms. This is especially true if you migrate to Oracle10g where Oracle
automatically collects OS metrics and has a built-in alert and scheduling mechanism:
Migrate to Oracle10g
Schedule all Oracle tasks with dbms_scheduler
Use the Oracle dbms_alert package to replace OS scripting
Let’s take a closer look at the syntax differences between proprietary UNIX and Linux so that
you can appreciate the challenge of migration.
Users of proprietary UNIX will immediately recognize many similarities between Sun, HP, AIX
and Linux commands. However, there are significant syntax issues, especially with regard to
command arguments and the output from Linux utilities:
Migrating from Sun to Linux can be especially problematic because of the syntax differences and
the different output from the utilities such as vmstat and netstat. This can cause considerable re-
writing of shell scripts.
vmstat Linux:
>vmstat 2 5
vmstat Solaris:
>vmstat 2 5
Linux:
16
Solaris:
>free
>prtconf|grep -i mem
Netstat Differences
On any Sun and Linux server the netstat utility provides information about all network traffic
touching the server. However the output is different:
Solaris netstat
>netstat
TCP: IPv4
Local Address Remote Address Swind Send-Q Rwind Recv-Q State
------------- ------------------- ----- ------ ----- ------ -----------
sting.32773 ting.1521 32768 0 32768 0 ESTABLISHED
sting.1521 ting.32773 32768 0 32768 0 ESTABLISHED
sting.32774 ting.1521 32768 0 32768 0 ESTABLISHED
Linux netstat
In Linux, we see that the output from netstat is quite different from Solaris:
>netstat
Ironically the syntax differences between proprietary UNIX and Linux can hinder your migration
and shops that use SFU on Windows often have a far easier migration. In sum, those Oracle
shops that avoid OS utilities such as scheduling (crontab) and shell scripts will find database
migration very easy.