Solaris SPARC to Solaris x86 Porting Guide
• The data from the large tables (fact tables and the large dimensions) is exported.
• The destination database is set up with all the same global roles, users, user privileges, system
triggers (on_logon) and tablespaces (for example, the settings which are not exported using exp). If
you need a different tablespace or storage configuration, then this must be taken into account in the
latter stages.
• The schemas must be imported using imp (schemas and small tables) run the imp/exp commands is
following manner:
exp scott/tiger file=emp.dmp log=emp.log tables=emp rows=yes indexes=no
exp scott/tiger file=emp.dmp tables=(emp,dept)
imp scott/tiger file=emp.dmp full=yes
imp scott/tiger file=emp.dmp fromuser=scott touser=scott tables=dept
Services migration
Migrating Apache Web Server on Solaris OS from SPARC platforms to
x86 platforms
The Apache Web Server 2.0.45 source was downloaded in a compressed tar file from the Apache
website. After extracting the downloaded tar file in a tmp directory, a series of steps were followed for
compiling and installing the build on the machines running on SPARC and x86 technology. The study
used the C compiler found in the Sun ONE Studio 8, Compiler Collection developer tools, as this
compiler is supported on both the SPARC and x86 platform editions of the Solaris OS. This compiler
contains different option flags for optimizing the code for both platform editions, and you can use it to
port source code from one platform to another.
The code is built on the SPARC platform by these utilities:
1. configure
This is a shell script generated by the GNU autoconf utility to configure values for system-
dependent variables and create Makefiles. It was used for configuring the Apache source tree, as
follows:
CFLAGS=" -xparallel -fast -xtarget=ultra -xarch=v8plus" \
LDFLAGS=" -xparallel -fast -xarch=v8plus" \
./configure --prefix=/home/testuser/apache/apache2
CFLAGS represent options for the C compiler. LDFLAGS are options to be passed to the linker. -
prefix specifies the directory in which to install the Apache files. If not specified, the default is
/usr/local/apache2.
The compiler flags are used explicitly using the environment variables CFLAGS and LDFLAGS.
These flags are used for back-end optimization of code on the following SPARC platforms:
-xparallel—Used to parallelize loops for faster performance
-fast—Specially optimized macro option that closely binds the intermediate code generated by
the compiler front-end to take advantage of the underlying hardware in order to enhance the
performance of the application.
-xtarget=ultra—Used to specify the exact target system for instruction set and optimization. It
overrides some of the values specified by the option -fast.
-xarch=v8plus—Used to override the -xarch option used in the -xtarget macro, because
this value is more suitable for enabling the compiler to generate code for good performance on the
SPARC architecture.
22