Author Archive

Arrived at COLLABORATE 08

By Alex Gorbachev April 16th, 2008 at 12:18 pm
Posted in Group Blog PostsOracle
Tags:

I’m at Collaborate 08 in Denver these days. I arrived yesterday evening so I haven’t had a chance to see any sessions yet but I did have a nice dinner with a bunch of OakTable folks. The steak wasn’t great but the best part was that I could enjoy my time with people I don’t get to see very often.

Today started with some confusion. My presentation, Oracle 11g New Features Out of the Box, was originally scheduled on Thursday at 9:45 AM but due to participation in the speaker panel ,”To RAC or Not To RAC: What’s Best for HA?”, it was rescheduled to today, Wednesday, at 4:30 PM. However, this change didn’t make it to the printouts with latest changes so the options right now are either re-schedule my session to a later time tomorrow or keep it at the original schedule and pull me off the panel. I’d really enjoy that panel as it goes right along my alley but I need to make my session as well so we’ll see how it works out.

I’m off to the Carol Dacko’s presentation about DBMS_XPLAN now and looking forward to show up at the RAC SIG Birds of a Feather later today. Stay tuned - more to come…

MySQL Plug-in 0.42 for Oracle Grid Control: First Beta Released

It has finally happened! The first public release of the MySQL plug-in for Oracle Enterprise Manager 10g Grid Control is out.

It’s been a while since I first started to work on this, first as part of the Grid Control Extensibility article that I wrote for IOUG SELECT Magazine in 2006 (thanks to John Kanagaraj for encouraging me to write it), and then later as part of a demo for my presentations. I was already working at Pythian and was considering further developing my example and releasing it.

In the last few months, more and more people showed interest in the potential plug-in, and even few guys from Oracle contacted me independently of each other with their own reasons to have a MySQL plug-in available. This interest accelerated the fermentation of thoughts in my brain, and I got down to work. Pythian generously sponsored my development time.

I’ve called this first release beta but as I didn’t do much testing, it should probably be called alpha. Having said that, it has been tested with MySQL 5.1 and 5.0, and it should also work with MySQL 4.1. I develop and use it with Oracle Management Agents running on the Linux platform, but I changed all the collection scripts to use the Perl that comes with the Oracle agent so it should run on Windows as well. It works quite stably for me, and I have verified it in several real-life environments.

I would probably take some more time before releasing it, but I really wanted to have the plug-in out before I leave for COLLABORATE 08 (should I also tell you the readiness level of my presentation?). I hope to get some feedback and first impressions from DBAs who try the plug-in. Bear in mind that this is the very first release — expect some rough edges. Please do report them here. We will probably set up a more structured set of pages, but for now leaving comments here is the way to go.

Here are the details. The first release version is 0.42 because that’s obviously the perfect number to start something good.

What’s implemented so far

(more…)

Oracle ASM 11g: Does the ASMCMD cp Command Really Work?

By Alex Gorbachev April 8th, 2008 at 1:43 pm
Posted in Oracle
Tags:

Since the introduction of ASM in Oracle 10g Release 1, every ASM administrator has been dreaming of a simple command line tool to copy files between ASM diskgroups and other filesystems. Oracle ASM 10g Release 2 added the handy asmcmd utility, but even though everyone expected a copy command there, it had not been implemented.

The only way to copy files to or from an ASM diskgroup was either to use RMAN, to configure XDB for FTP access, or use the DBMS_FILE_TRANSFER package. No wonder that the cp command is the most popular addition to asmcmd tool in Oracle ASM 11g: the hardest barrier to convincing my customers to use ASM has been the inability to access the files and copy them to the OS filesystem using the command-line copy command. Customers wanted to “feel” the files and be able to easily manipulate them.

While working on a Collaborate 08 presentation on Oracle 11g new features out-of-the-box, I was verifying new commands in Oracle ASM 11g’s asmcmd utility. It turned our that copying files from or to ASM is still a problem.

First, I tried to copy a single text file to an ASM diskgroup:

ASMCMD> cp /home/oracle/.bash_profile +dg2/test.file
source /home/oracle/.bash_profile
target +dg2/test.file
ASMCMD-08012: can not determine file type for file->’/home/oracle/.bash_profile’
ORA-15056: additional error message
ORA-17503: ksfdopn:DGGetFileAttr15 Failed to open file /home/oracle/.bash_profile
ORA-27046: file size is not a multiple of logical block size
Additional information: 1
ORA-06512: at “SYS.X$DBMS_DISKGROUP”, line 207
ORA-06512: at line 3 (DBD ERROR: OCIStmtExecute)

Hmm . . . Okay. Let’s try to do it in multiples of diskgroup blocks: (more…)

How To Identify the Database Links of a Failed Refresh Job

From time to time, we get DBMS_JOB failures for failed refreshes that happen due to broken database links.

The error in the alert.log is ORA-12012: error on auto execute of job {number}, followed by one of ORA-12547: TNS:lost contact, ORA-12170: TNS:Connect timeout occurred, ORA-12541: TNS:no listener, or any other of the network connection failures.

I usually have a quick look into DBA_JOBS to find out the materialized view (MV) name and then peak into the DBA_MVIEWS.MASTER_LINK column.

However, I have a client with refreshes scheduled using MV refresh groups, and it took me a while to recall the view name, asking around and RTFM’ing. Since this situation comes up regularly, I wrapped up a quick script that parses job content, takes in account MV refresh groups, and outputs the database link(s) involved. I think it could be useful to few others so here it goes: (more…)

Is Summer Canceled in Ottawa This Year?

By Alex Gorbachev March 24th, 2008 at 1:54 am
Posted in Group Blog PostsNon-Tech ArticlesNot on Homepage
Tags:

If you are a regular reader of this blog, you know that I was at the Hotsos Symposium 2008 this year. You might not know that I also had a chance to take few days off and spend 1+ week vacation in Texas after the symposium — enjoyed the sun and warm weather. My family liked that even more than I did.

Unfortunately, when I was back home last weekend, I discovered pretty unpleasant view from my windows (that’s not basement!):

Snow Window 1

Snow Window 2

The view is much better now — I can see some bits of blue sky above a snow bank. So it’s end of March and these days are sunny but freeing — feels like -20 degrees Celsius (below 0 Fahrenheit). My back still hurts from excessive snow shoveling last weekend (so that I can see blue sky from my windows). And… sorry nothing about Oracle — I’m too busy shoveling the snow away from my house so that when it melts next year — I won’t have flooding problem.

I know warmer places do exist! Maybe I should find one?

Hotsos Symposium 2008 — The End

By Alex Gorbachev March 6th, 2008 at 4:19 pm
Posted in Group Blog PostsOracle
Tags:

Today is Hotsos Symposium 2008 Training Day — one full day with Tom Kyte. I haven’t registered for it so I took the chance to sleep until 10 this morning which was excellent idea considering that last night we were quite late going to bed thanks in parts to the joined demo that James Morle and Mike Erwin organized at the last presentation yesterday. I was in the James’ session and he was demonstrating how to hide latency problem with batching. I suspect that Mike, in the next hall, was showing the impact of MTU settings on cluster interconnect. The end result is that beer bottles travelled between the presentation halls and James ended up with about 3 packs of Guinness and Shiner Bock. That what kept us up longer last night.

James’ presentation itself was excellent — he explained that all performance problems can be caused by either skew or latency. You can’t normally fix skew issue so you just need to be aware and account for it. Latency can sometimes be shortened but usually insignificantly or it’s impractical (i. e. very expensive). It’s also very important to distinguish bandwidth and latency. I like his idea that the efficient way to solve latency is hiding it and there are generally two ways to do that — batching and threading. Improving bandwidth often doesn’t cause any performance improvement without taking latency into account. Very insightful talk. Thanks James.
(more…)

Hotsos Symposium 2008 — Still On

By Alex Gorbachev March 5th, 2008 at 1:29 pm
Posted in Group Blog PostsOracle
Tags:

The symposia is still ongoing and my head is slowly filling up — relieved from my presentation, finally, I’m able to focus on others’ sessions.

Yesterday, Tanel Poder presented his new tool Sesspack and his integration with Excel. 3 years ago, I created a similar tool and collected session waits and statistics transformed into differences per the interval and organized in the star schema to simplify the analysis. I tried to write a front-end in PHP — it was taking ages and I didn’t have time. Then I tried APEX (HTMLDB 1.6 back then) and it wasn’t flexible enough. I ended up querying the data directly and copy & paste to Excel where I could use pivot charting. What a great feature of Excel — it let me organize the data easily and visualize the problems to management, system and storage administrator and other DBA’s. I moved on and didn’t have time to continue this project, clean it up and put into public domain. I’ve still had it in my mind but there is no need now since Tanel already did far better job. He put the first version of the Sesspack on his web-site about half a year ago. What excited me more this time was the integration with Excel that he did — what a powerful but simple tool in the hands of a smart DBA. I’m looking forward to use it when it becomes available on his web-site.
Update: Tanel put the material on his web-site here.
(more…)

Oak Table Network

By Alex Gorbachev March 4th, 2008 at 4:27 pm
Posted in Group Blog PostsOracle
Tags:

I didn’t mention the most exciting news of the yesterday (well, for me at least) — I’m a member of the Oak Table Network now! I’m so delighted and proud to be the part of that group and also very grateful for the invitation to join those bright people.
.

It’s actually old news now (thanks Doug and Marco) but I thought that I should proudly state it here. On the other hand, “someone” mentioned that “They’ll let *anyone* in these days!”. OK eh… where is the application form?

Hotsos Symposium 2008 - The Before

By Alex Gorbachev March 4th, 2008 at 2:50 pm
Posted in Group Blog PostsOracle
Tags:

First of all “the before” time is over — I’m done with my presentation. It’s been the first slot of the day — 8:30 and Cary Milsap was presenting in another hall so what chances do I have to get people in? It turned out that some people actually did show up and quite a few considering the circumstances.

I have mixed feeling on the results. The presentation started very well and I managed to wake people up at the very beginning — thanks to the “equipment” I had at hands (thanks Marco and Riyaj!). You can spot one of them on the photo (thanks for the photo Marco):

(more…)

Off to Hotsos Symposium 2008

By Alex Gorbachev March 1st, 2008 at 11:22 pm
Posted in Group Blog PostsOracle
Tags:

Last year’s Hotsos Symposium was the first for me. These were exciting few days and I fully enjoyed the conference. I’m very pleased that this year I’m going to Dallas again but this time in the new role — I’m doing a presentation there.

I don’t need to tell you what Hotsos Symposium is about — if you are on this blog, you should know it already. 3 days of high quality presentations and endless networking opportunities where you can share your ideas or concerns and get your questions answered.

My presentation is the first one on Tuesday — 8:30! It’s my first time presenting at Hotsos and I feel somewhat more tense than usual (as if I take it easy every time). I’m not the only new presenter at Hotsos and I know that Robyn Sands is doing her first Hotsos presentation as well (come on Robyn, when can I put that link on your name? ;). Anyway, I guess my sessions would not be attended by a huge crowd — it’s early and Cary Milsap is speaking in the next hall so people must be really interested in my topic to come to mine.

The topic of my presentation is Workload Management in Oracle RAC. I’m quite happy with the end result but I might have a little bit too much material to cover in 1 hour. I expect to spend most of the time in the “demo mode” on my 10g and 11g RAC clusters running on virtual machines on my MacBook. Depending on how it goes, some demos could span a bit longer than I plan depending on position of the moon and stars on Tuesday. I have a contingency plan as I really have to get to the last demo — it’s the coolest part of the session, I think.

I’m still rehearsing the demo and polishing the white paper. Excluding demo placeholders and navigational slides, I have just a little over 20 slides so not much efforts there. Most of the stuff I demonstrate “live” but a lot of details are in the white paper + demo examples provided to follow.

In addition, to the presentation, I will take part in the “Hotsos Campground” sessions on Monday and Tuesday evenings. There will be four of them and each is focused on a particular topic. I’m going to participate in the Hotsos RAC Campground. No surprise. Eh?

My plane leaves at 9:30 tomorrow. I hope there won’t be much snow and I leave on time — today is the first day of the spring on the calendar but I still did my 2 hours shoveling exercise. I think I’m getting better on it and it takes me half of the time I used to spend 3 months ago. Interesting, how much more can I improve?

Anyway, I hope I won’t need to do it again this year. Olga and Alex Jr. are joining me in Dallas after Hotsos and we are going to spend almost 10 days traveling around and, hopefully, enjoying some bits of sun. Bye, bye snow!