Reference Cursors - Why, when, and how?

maclochlainn | Oct 11, 2008 00:10 -0600
A week or two ago, I noticed a discussion on the Oracle Technical Network forum that asked some questions about reference cursor. The discussion make me reflect if there were a couple simple rules for using reference cursors. This contains my take on the rules and some examples. [...]

Is this the look of the new Mac Book Pro?

maclochlainn | Oct 10, 2008 12:40 -0600
It's amazing what my students discover on the Internet. Not wanting to spoil Apple's Christmas next week, don't click through the full entry for the photo and source URL [...]

The Oracle 11g patch … that’s 11.1.0.7.0

I think one annoying error that I’ve suffered with on Microsoft Vista with Oracle 11g is the nmefwmi.exe error. I got a message from Microsoft saying it’s fixed. They refer to Oracle Bug 6596234, but it’s really fixed in the Oracle 11g patch (11.1.0.7.0). Therefore, don’t waste your time looking for a one-off patch on metalink. Now [...]

Setting up a printer in VMWare Windows instance

Sometimes there are products that run in Windows that don’t have a clone on the Mac, like Microsoft Visio. Working in the virtual machine is the solution but printing is tedious to setup when you’re using a NAT network model. The following instructions show you how to setup a networked printer inside a VMWare instance [...]

Mac printer purgatory brought to you by HP …

If you’ve ever run into this error trying to install an HP Printer on a Mac, let me tell you how to fix it: “Some of the software for the printer is missing.“ There’s actually a discussion on Apple’s forum without an answer. The answer is beware of HP Printer downloads. Not all are compatible with the [...]

How to avoid errors when querying external tables

maclochlainn | Sep 28, 2008 17:30 -0600

Somebody got to my blog searching for how to find an external file. I thought about why they might be looking for that. Since the lack of a file raises an error stack, I concluded that they want to verify whether the file exists before querying it. That way, they avoid the annoying ORA-29913, ORA-29400, and KUP-04040 error stack.

I’ve added a page to describe the complete set of steps … They let you avoid the error stack by verifying the existence of the file first.

      

San Francisco is nice, but Idaho and Wyoming are great!

maclochlainn | Sep 26, 2008 22:10 -0600

San Francisco was nice as always but I thought a quick view of the natural beauty of Idaho and Wyoming would be nice to share. I took this during our lunch break at a faculty meeting. The valley in the distance is the northern edge of Star Valley in Wyoming.

I also wanted to let you know that I replaced the text returns from hierarchical queries with screen shots. I think they better illustrate how you navigate trees in recursive tables. You’ll find them in the Hierarchical Queries Basics page if you’re interested.

      

A Quest Addendum … to OpenWorld from SFO

maclochlainn | Sep 25, 2008 09:20 -0600

I forgot to post the note from Alan Shook, a friend from my days in Oracle Support and teaching at Regis University. Alan works for Quest software, and he works with the Stat for E-Business Suite product. He’s passionate about the product, as you can see in his note. Alan has contributed two appendices on leveraging Quest’s tools to a book that Scott Mikolaitis and I are writing about the Oracle eBusiness Suite. Beyond the upgrade, tools are critical to cutting costs when you convert data.

Alan sums it up by …

“Stat is an Application Change Management product from Quest Software that supports the entire change lifecycle of the Oracle E-Business Suite. It is a single-integrated solution for issue tracking, process control and workflow, version control, migrations, recovery, patch management, auditing, and reporting. Stat provides native support for Oracle flat files, Developer objects, AOL object types, and a variety of application setups. Stat leverages its change management architecture to automate the manual steps required in patching and migrations while simultaneously helping you resolve process control, auditing, reporting and security concerns. The product has a security model to prevent unauthorized changes from being migrated through restricting access to do such task and limiting the rights to do so to those individuals you identify responsible for such actions. The change management process can be enforced with Stat’s workflow engine, incorporating approval requirements while providing full audit trail. Stat conducts all activities in an Oracle-supported manner, hence why it is validated by Oracle for R12 and for Oracle On-demand environments.”

      

Static IP Steps added to Mac configuration of VMWare

maclochlainn | Sep 25, 2008 01:30 -0600

I’ve added the Windows static IP networking steps to the How to configure Mac OS X as an Oracle Client. I’ll try to get back and update the entry for a couple Linux distros (distributions) next week.

If you get the DNS configuration wrong but everything else right, you’ll be able to connect to Oracle. Unfortunately, you won’t be able to make a call out of the VM with the browser.

      

Oracle OpenWorld 2008 - Day 3

maclochlainn | Sep 25, 2008 00:10 -0600

Key Note and News:

There were two big announcements today. The one that I liked the most was what Andy Mendelsohn said, that there will be an Oracle Database 11g Express Edition. You can read the full report in the NY Times. You’ll also find that no date for 11gR2 is available but the beta code must be very close since they’re seeking beta testers.

The second announcement was the big “X” secret alluded to for Larry Ellison’s key note. Larry basically announced the HP Oracle Exadata Storage Server and HP Oracle Database Machine. There seems to be some cynicism about it, but it sounds interesting.

The general idea is to tightly couple hardware and software platforms. Integration of the two components simplifies delivery by reducing complexity, and increases performance for high throughput uses of the Oracle Database. It really makes sense.

For example, if you look at Steve Jobs’ success at Apple (this time around) that’s exactly what he did. He simplified the number of offerings, focused on the quality of hardware and software, and limited the risk of hardware and software incompatibility. Apple seems to clearly dominate the highend market, or at least it made an awesome showing at Oracle OpenWorld 2008 (by my anecdotal eyeballing of machines).

The last point is very close to what Larry’s proposing. By focusing efforts on high load OLTP and data warehouse installations with a one-two punch of integrated hardware and software, Oracle can become more scalable without creating different database engines. More or less, Oracle achieves higher throughput by leveraging hardware with the same product. This means he leverages a great product across new markets (probably IBM’s existing markets), without increasing the number of offerings. He one-ups Steve Jobs because he makes the hardware HP’s problem. Deming (that quality engineering guy) might say Larry risks success by ceding hardware components to a supplier. I don’t think the risk is any greater than the risk Apple has in ceding component manufacturing. The question is: Can HP manage the process as well as Apple now that Carly Fiorina is gone.

Humorous or prophetic, does this shift in platform have a hidden benefit as great as changing from the PowerPC to Intel processor. I don’t see it but this may be a beginning … What I can see immediately, is that configuring a RAC environment may become much easier if everything is prebundled.

Virtualization:

As you know from my blog posts, I really like virtualization software. So, … it’s probably not a surprise that I spent some time talking virtual machines with my favorite vendor - VMWare.

While hanging there and collecting more information on options, I met Dave Welch. Dave is a consumate maven of virtualization with Oracle and Oracle eBusiness Suite deployments. He had some awesome performance statistics that I’m still digesting. Basically, he debunked a lot of rubish that’s out there about overhead. He works for House of Brick Technologies out of Omaha, Nebraska. Dave actually demonstrated VMWare Stage Manager and VMWare Lab Manager, and told us about the bundling of these two into a suite. They appear a great soltuion to managing and deploying virtual machines. If you’re wondering were the VMWare folks were, don’t worry they were busy somewhere else.

Probably the coolest feature that I saw was how you could clone an Oracle eBusiness Suite for testing and move it to a virtual subnet without cloning. You can do this because the virtual subnet preserves the hostname, IP, et cetera. However, it’s not a cheap date but they’ve a reduced price for next few months. Isn’t that marketing rule for products at Oracle OpenWorld?

While I like and use VMWare, Sun Microsystems VirtualBox appears very interesting. It also supports the Mac, which makes it a high priority in my testing queue. I’ll let you know what I find. The RedHat entrant in virtualization is Solid ICE. Another item for my list, oh gosh … it keeps on growing.

Business Judgment:

I have to give a business acumen prize to Wells Fargo Bank. Having spent the first 10 years of my career at First Interstate Bank working on the evolution of banking systems, I learned the key rule about technology. Technology has to pay for itself by increasing revenue or decreasing costs.

Wells Fargo Bank focused on an API that lets commercial accounts leverage banking services without human intervention. There focus is to put the technology out there and leave their customers with the implementation costs, customization, and business process engineering. A sharp decision from my perspective but they could have gone one step further. They should have considered placing it in the open source community. The software ultimately has a very short competitive edge, and the return on initial investment would have been higher if they’d capitalized on the creativity of the open source community.

The prize for continuing product evolution through the open source community probably goes to SugarCRM. They place components into their product versions and then into their version of sourceforge (www.sugarforge.org). There, the community can examine, innovate, and improve the software.

Open Source:

I had a chance to catch up with Chris Jones on PHP and open source scripting. Chris and Alice Holloway provide that wonderful book on PHP known as the Underground PHP and Oracle Manual. It’s great to catch up on Oracle’s commitment to Open source. Remember my favorite news of the day - Oracle Database 11g Express Edition is coming. That’s evidence that Oracle sees the open source community as important and PHP and scripting languages as valuable.

In summary, I’d like to thank TUSC for their courtesy in broadcasting Larry’s key note from their demonstration area. They’re truly a class act! Tomorrow, it’s time to go home. Naturally, I gave the party ticket away to somebody who would enjoy it. The last official day of Oracle OpenWorld 2008 must be left to another to report on …

      

Oracle OpenWorld 2008 - Day 2

maclochlainn | Sep 24, 2008 01:30 -0600

Day 2 is a wrap. As we left AT&T Park, the Giants’ were behind by one run. It was a hard call who I wanted to win because we lived in Colorado for 7 years cheering for the Rockies. It was a wonderful ball park, and the first time I’ve made it to a Giants game since they played at Candlestick Park.

The publisher’s seminar was very informative about direction and product. The summary may surpise some, but ultimately they seem to make good sense. Of course the big one is withheld until Larry delivers his keynote. I’ll report it as soon as I hear it.

The following summarizes what I heard:

Cloud Computing
Cloud computing is definitely on the menu for Oracle. Oracle has an FAQ for Cloud computing here. An exisitng API supports it. You can use Enterprise Manager to backup to Amazon EC2, but first you must run the Cloud Backup Installer. It uses the EM tape backup, which extends a previous API that existed for tape drives.

APEX
APEX is popular (oh, yes that’s true). Rumor has it that there are 250,000 developers using the product. APEX is also in the same space as Oracle Forms, and APEX will provide an Oracle Forms conversion tool to an improved Web 2.0 solutions.

SQL*Developer
Oracle statistics indicate there have been 1.5 million downloads of SQL Developer. While Quest seemed to feel that Toad licenses haven’t declined. Quest also mentioned that they might consider porting Toad to the Mac OS, but that’s a second subjunctive that’s technically a hypothetical remark.

The announcement today on SQL Developer was that it will soon include a data modeling tool. The up or downside on that announcement is that the ERD’s look like the return of Oracle*Method (why not? ;-)). Running down the other perspective on SQL*Developer let me connect with Steven Feuerstein again this year. By the way, he’s got a new PL/SQL book that’ll be released some time late next year.

Oracle 11g Upgrade Oppotunity
The discussion today covered that the cost of upgrading from Oracle 9iR2 to 11gR1 is less than an upgrade from Oracle 9iR2 to 10gR2. The reason for the change are those long overdue improvements in how upgrades work in Oracle 11g. Though there was mention that the first major patch of Oracle 11g is due shortly after OpenWorld 2008 (yes, that means October or …. maybe November). Oracle also mentioned that 5% of customers have upgraded to 11gR1 without the major patch. Oracle expects another 10% of customers to upgrade to 11gR1 after the patch release. A significant feature of the upgrade process is the automatic migration of all execution plans. I have to also champion the utility of the new Automated Database Diagnostic Manager (ADDM) in the Oracle Database 11g because it is sweet!

Java Developers working with Oracle
The numbers thrown out were 100,000 developers in 2005 and approximately 1,000,000 today. It seems Java inside the Oracle database and integrated through the JDBC with Oracle has always finally found its place in the mainstream Oracle community.

That’s about all the key points from the publisher seminar.

Visiting vendors is always important. Red Hat is a big stop each year. This year was a pleasant surprise because they’ve got a new centrally managed identity, policy, and audit information product for Linux and Unix environments. It uses open technologies and standards, including LDAP and Kerberos. They also have an open source virtualization software - Solid Ice.

Jim Brennan, Senior Product Manager, gave us a great demonstration of the Red Hat Enterprise IPA tool. It was impressive in how simply it works and I could easily see how I could leverage it to manage the student accounts on the servers I administer.

That’s it for Day 2 … the other tidbits will have to fade away. I apologize for it being late but it took a while to make it back to the hotel.

      

Oracle OpenWorld 2008 - Day 1

maclochlainn | Sep 22, 2008 16:50 -0600

I just finished my book signing. Alas, no body showed up. Rumor has it books sales are down yet again this year. I guess that’s because folks search the web.

I think one of the mystery photographers caught me sitting at the table while I was waiting for the throngs of folks to buy my latest PL/SQL book (obviously in some dream state). Since I’ve heard Oracle Database 11g adoption rates are low, at least from a few vendors here at OpenWorld, perhaps I can blame that.

Things are much the same as they were last year, the year before, et cetera. However, the real business of the conference occurs in the Game Room of Moscone West. As you can see the budget dollars of organizations are well spent here.

Hopefully, there aren’t too many managers who visit my blog. These pictures probably shouldn’t be seen by management. Especially, if they’re the ones approving the expense reports, eh? I hope that nobody gets busted from these photos.
After the soda and snack here in the OTN lounge, I’m Off to a 5:30 p.m. session. Then, I’m heading over to the OTN Night at the Hilton in San Francisco. It starts at 7:30 p.m. this evening.

      

More on Configuring the Mac OS for Oracle 10g Client

maclochlainn | Sep 19, 2008 23:50 -0600

I’ve been revising and correcting typos plus adding new content to that Configuring Mac OS for the Oracle 10g Client blog page. It’s more complete now. It also shows you how to connect from one virtual machine to another by using host file resolution.

Also, I’ve decided that the network configuration steps for VMWare NAT belong in a separate blog page. I’ll try to get that out after Oracle OpenWorld 2008. For those you can’t wait, you’ll find the networking files here:

Mac OS X:
/Library/Application Support/VMWare Fusion/vmnet8

Linux:
/etc/vmware/vmnet8

Windows:
C:\WINDOWS\System32

You’ll find three files. The dhcpd.conf file that configures DHCP. The nat.conf file that configures incoming ports to your virtual machines, which is known as port forwarding. The mac.conf file that stores the physical layer MAC address for your machine.

      

Oracle OpenWorld 2008

maclochlainn | Sep 19, 2008 18:30 -0600

Oracle OpenWorld 2008 is next week! How time flies since last year and the year before …  Actually, I never attended OpenWorld in the almost 9 years I worked at Oracle. Oddly, I’ve attended each year since leaving.

For virtual acquaintances out there in the cybervoid (courtesy of Neuromancer by Gibson), perhaps we’ll meet at Oracle OpenWorld 2008. If you want to run me down, McGraw-Hill has scheduled me for a book signing Monday afternoon at the Barnes and Noble. I suspect it is still on the second floor of Moscone North. If not, we may pass in the halls, but I’ve posted a photo in my @About page for you if you’re interested in saying hi.

You may also catch up with me at the Giant’s game on Tuesday evening. It’s probably a character flaw, but I’m a Giant’s fan for life. I’m still hoping for another World Series appearance in my lifetime.

If you’re there, agitate to dump DUAL! That is, request that Oracle consider making it optional, like MySQL. It’s so embarassing to say MySQL got it right and excuse Oracle for not making the behavior implicit.

Anyway, I look forward to meeting you if you there. If you’re not, I’ll post photos like so many others …

      

Update on how to configure Oracle Client for the Mac OS

maclochlainn | Sep 13, 2008 23:40 -0600

The best laid plans of mice and men go awry to easily. I wrote the article on configuring the Oracle Client because it was tiresome to hear how hard it was when it wasn’t. Then, my students tried the bridged networking instructions, which failed on our campus.

Why did they fail? They failed because our wireless network is configured to disallow students to call out to another machine. You might guess that’s to eliminate gaming across the wireless network. This also has the effect of disabling a call to a virtual machine running under a bridged network.

I’ve updated the original post to include instructions for configuring NAT to work. This should help those who work in environments where the router configuration poses access limitations.

You can find it here …