Archive

Archive for April, 2010

Operating Systems Endian formats for migrating databases across platforms

April 28th, 2010 admin No comments

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

Post to Twitter Post to Digg
  • Share/Bookmark

Unix/Solaris Terminal too wide

April 27th, 2010 admin No comments

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

Post to Twitter Post to Digg
  • Share/Bookmark

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

April 27th, 2010 admin No comments

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

:)

Post to Twitter Post to Digg
  • Share/Bookmark

Fix for “Internet explorer has closed this webpage to help protect your computer”

April 27th, 2010 admin 31 comments

Many users face issue running Oracle forms on Microsoft Internet Explorer 8 (IE8) which causes the page to redirect to following url

res://ieframe.dll/acr_depnx_error.htm#<domain>,http://<server>:<port>/forms/frmservlet?config=<config>

It displays following error.

Internet explorer has closed this webpage to help protect your computer

A malfunctioning or malicious add-on has caused Internet Explorer to close this webpage.

Solution:

Goto Internet Explorer -> Tools -> Internet Options -> Advanced -> Scroll down to Security -> Uncheck “Enable memory protection to help mitigate online attacks*”

Close all browser windows and restart the browser. The issue should have been fixed :-)

Edit: Alternatively you can use either of following 2 alternate solutions.

Alternate 2:

Open registry using start->Run->regedit->ok

Go to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Main

On the right hand side you will see a DWORD key called DEPOff. IF this is set to value 0, just change it to 1 and close registry editor.

Restart Internet Explorer and check if the problem has been fixed or not.

Alternate 3:

Right click on My Computer->Properties (or start->Run->sysdm.cpl->ok)

Click on “Advanced” Tab. Click on “Settings” button next to Performance.

Click on last tab “Data Execution Prevention

Select Second option and then select “Internet Explorer” from the bottom pan.

(If “Internet Explorer” is not already present there then just click on “Add” and then select “c:\Program Files\Internet Explorer\iexplore.exe”)

Click OK and restart internet explorer. The problem should have been fixed.

Post to Twitter Post to Digg
  • Share/Bookmark