Operating Systems Endian formats for migrating databases across platforms

Nowadays DBAs face requirements for migrating databases across different platforms like from Windows to Linux or Solaris or vice versa. While doing this we would require to use transportable tablespaces or cross-platform transportable tablespaces. In order to decide whether the migration would be simple or will involve file conversion, following command is used to identify platform endian format. If the endian formats are same then the process pretty straightforward.

SQL> select * from v$transportable_platform order by platform_id;

PLATFORM_ID PLATFORM_NAME ENDIAN_FORMAT
1 Solaris[tm] OE (32-bit) Big
2 Solaris[tm] OE (64-bit) Big
3 HP-UX (64-bit) Big
4 HP-UX IA (64-bit) Big
5 HP Tru64 UNIX Little
6 AIX-Based Systems (64-bit) Big
7 Microsoft Windows IA (32-bit) Little
8 Microsoft Windows IA (64-bit) Little
9 IBM zSeries Based Linux Big
10 Linux IA (32-bit) Little
11 Linux IA (64-bit) Little
12 Microsoft Windows 64-bit for AMD Little
13 Linux 64-bit for AMD Little
14 HP Open VMS Little
15 Apple Mac OS Big

Apr 28th, 2010 | Posted by Tushar Thakker | Filed under Oracle, Oracle Database, Oracle Database cloning, Oracle DBA

Unix/Solaris Terminal too wide

On older Solaris or other Unix systems we quite often see following error while opening log files etc in vi or view terminal

root> vi abc
Terminal too wide
:
This is because the terminal is not wide enough to display more characters in one line.

Solution:

Execute following command on shell prompt. This will increase the width the number of columns on the terminal. After this you should be able to open files in vi or view without any issues.

stty columns 120

Apr 27th, 2010 | Posted by Tushar Thakker | Filed under Linux/Unix/Solaris, Shell scripting, Unix administration

Unix delete or rename a file starting with hyphen or junk character

Many a times we face a problem wherein mistakenly some files get created in a directory which are hard to rename or remove especially when working with putty terminal, by mistake if you paste come content on command prompt then it will create junk files with hyphen, tilde or any junk character in beginning.

For example “-abc”, “~abc” etc.

Solution:

In this case “rm -abc” or “rm ~abc” etc will not work. Simple solution is to use “rm ./-abc” or “rm./~abc” etc

🙂

Apr 27th, 2010 | Posted by Tushar Thakker | Filed under Linux/Unix/Solaris, Shell scripting, Unix administration