Blog Aggregator - Amardeep Sidhu

  • Tags

  • Archives

  • Meta

  •  

Archive for March 20th, 2008

20 Mar

Hating MySQL for the Wrong Reasons

In Spotting Wolf in Sheep’s Clothing, Frank Mash writes about a specific person who is spreading fear, uncertainty and doubt about MySQL.
Now, this always gets me, especially with MySQL. For how long will MySQL be the bastard stepchild of the database world? Because really, it’s been a full-fledged DBMS for at least 5 […]

20 Mar

Humour

Tom Kyte and Pete Finnigan are both well known for talking about the need to use bind variables and the dangers of SQL Injection. This cartoon must have been written just for them.

20 Mar

ANSI SQL

Someone sent me an email a little while ago about a problem they were having with two databases that were using different execution plans for the same query. 
But the two databases were believed to be identical, and the optimizer was running rule-based in both cases, so it shouldn’t have been possible to get different execution […]

20 Mar

The economy killed by the press…

First, the press takes an issue and hypes it up to a point where regular Joe’s are rushing out to draw their money out of a successful bank for fear of it collapsing. Next, they start running stories about how low consumer confidence is one of the major factors affecting the economy at the moment.
Does […]

20 Mar

Store Indexes In A Larger Block Tablespace: The Multiblock Read Myth Part II (The Fly)

Thought I might begin by mentioning a lovely little story by Billy Verreynne in this OTN Forum Thread.
Basically a scientist is doing research on the behaviour of flies. He notes when he opens the jar lid of a trapped fly and claps his hands, the fly takes off and flies away. One day, he decides to pull the wings […]

20 Mar

How to find tape is in on HP-UX dds drive

How to verify if tape on HP-UX dds drive:

I am working in a very large distributed environment where we are deploying new Integrity rx6600, rx7640 and rx8640 servers running HP-UX 11i v2 (23). My company has 20 sites spread all over US and i am doing installations remotely on these new Itanium servers. There are few local site administrators assisting me in installations and I am asking them to run weekly ignite tapes, very often they come to me to check on how they can find dds tape drive and device address on Integrity servers running HP-UX. I made some notes for them and posting it right here.

1. How to locate device address for the dds tape on Integrity HP-UX servers:

Connect to HP-UX servers and as root run ioscan to display all tape drive connected to server:

root@mancdb:/> ioscan -funC tape

Class I H/W Path Driver S/W State H/W Type Description

=========================================================================

tape 0 0/6/1/0.1.0 stape CLAIMED DEVICE HP C5683A

/dev/rmt/0m /dev/rmt/c1t1d0BEST /dev/rmt/c1t1d0DDS

/dev/rmt/0mb /dev/rmt/c1t1d0BESTb /dev/rmt/c1t1d0DDSb

/dev/rmt/0mn /dev/rmt/c1t1d0BESTn /dev/rmt/c1t1d0DDSn

/dev/rmt/0mnb /dev/rmt/c1t1d0BESTnb /dev/rmt/c1t1d0DDSnb

tape 1 0/7/1/0.30.7.255.0.0.1 stape CLAIMED DEVICE HP Ultrium 4-SCSI

/dev/rmt/1m /dev/rmt/1mnb /dev/rmt/c12t0d1BESTn

/dev/rmt/1mb /dev/rmt/c12t0d1BEST /dev/rmt/c12t0d1BESTnb

/dev/rmt/1mn /dev/rmt/c12t0d1BESTb

tape 2 0/7/1/0.30.7.255.0.0.2 stape CLAIMED DEVICE HP Ultrium 4-SCSI

/dev/rmt/2m /dev/rmt/2mnb /dev/rmt/c12t0d2BESTn

/dev/rmt/2mb /dev/rmt/c12t0d2BEST /dev/rmt/c12t0d2BESTnb

/dev/rmt/2mn /dev/rmt/c12t0d2BESTb

This HP-UX server is connected to 3 tape devices two of them are clearly listed as Ultrium tape drives and top tape drive with Description C5683A is the “dds tape drive”. Device address for the dds tape drive is /dev/rmt/0m and if you want to use the tape device with no rewind then you should use device address as /dev/rmt/0mn

2. Check the status of dds tape drive on HP-UX server:

If you are working remotely on the HP-UX server and want to make sure if there is tape in the dds tape drive then run following commands:

root@mancdb:/> mt -t /dev/rmt/0mn status

Drive: HP C5683A

Format:

Status: [0]

File: 0

Block: 0

root@nedunix4:/>

If you don’t see anything in front of the Status field that indicates that currently there is no tape in the dds tape drive. Next as local site administrator o insert the dds tape in the dds tape drive, once dds tape is in run the command again

root@nedunix3:/> mt -t /dev/rmt/0mn status

Drive: HP C5683A

Format:

Status: [45112600] BOT write-protected online compression immediate-report-mode

File: 0

Block: 0

In status it show tape is in but write protected, make sure to turn write protection on.

20 Mar

Does MySQL Send Passwords In the Clear?

I was asked this question recently, and I thought it was a great little tidbit of knowledge to pass along. The short answer is “no”. The slightly longer answer was written up by Jan Kneschke when dealing with a forum post about proxy + connection pooling.
From http://forums.mysql.com/read.php?146,169265,169700
The clear-text password is _never_ transfered in […]

20 Mar

Yet Another Oracle Social Network in the Works

In addition to Oracle Mix, Oracle Wiki and Oracle Community, OAUG will be launching yet another Oracle related social network called the Knowledge Factory.

The Knowledge Factory will provide a platform for users to exchange ideas, experiences, and expertise within the Oracle Applications member community. It will feature user profiles with pictures and biographies, blogs, forums […]

20 Mar

MySQL Conference Sessions

At this year’s MySQL Conference & Expo, taking place in Santa Clara, California in mid-April, I’m giving two sessions:

Best Practices for Database Administrators
Database Security Using White-Hat Google Hacking

You can see more info about me here, including descriptions of the workshops.
I look forward to seeing many of you there. Make sure you say […]

© 2008 Blog Aggregator - Amardeep Sidhu | Entries (RSS) and Comments (RSS)

Powered by Wordpress, design by Web4 Sudoku, based on Pinkline by GPS Gazette