Release Notes
16 Migrating an Oracle Database to Dell EMC SC Series Storage | CML1001
Little-endian
Big-endian
Memory
address
Physical
memory
Memory
address
Physical
memory
00
D7
00
10
01
10
01
D7
02
02
03
03
Little-endian and big-endian
Because endianness changes how numeric values are represented in memory, failures or corruption can
occur during a migration if endianness is ignored. For further information on endian formats and descriptions,
refer to the Wikipedia Endianness page.
3.6.1 Determine the system endian format
There are many different methods to find out what the endianness is for a platform. Here are just a few
examples to query the systems:
Using Linux command lscpu (provided by util-linux package)
lscpu | grep –i “byte order”
Return: Little Endian or Big Endian
Using Perl
perl -V:byteorder
Return: byteorder='12345678' for little endian
byteorder='87654321' for big endian
Using Python™
python -c "import sys;print sys.byteorder"
Return: little or big
Using od command on Linux or Unix
®
systems
echo -n I |od -to2 |head -n1|awk '{print substr($2,6,1); exit}'
Return: 1 for little endian
Return: 0 for big endian