Author Archives: alesk

A short note about moving internal Drupal CMS site from test to the production

Target platform: Windows 2003 R2 x64, let’s call the production server PROD (of course, as always, all names, passwords and paths are obfuscated)

Packages installed on PROD:

  • MySQL 5.1.28-RC-WINX64.msi (x64) – be careful and pick mirror that offers msi file and not exe. At first I downloaded from local mirror (Slovenia) and got .exe file that I couldn’t run on Windows x64.
  • Apache 2.2.10 (win32)
  • PHP 5.2.6 (win32) with mysql extension

Prepare empty MySQL database on PROD for Drupal:

cmd> mysqladmin -u root -p create drupal
cmd> mysql -u root -p
mysql> GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, CREATE TEMPORARY TABLES, LOCK TABLES ON drupal.* TO 'drupal'@'localhost' IDENTIFIED BY 'topsecret';
mysql> flush privileges

Export Drupal database on TEST and import on PROD:

cmd@test> mysqldump -u root -p drupal > drupal.sql

cmd@prod> mysql -u drupaluser -p drupal < drupal.sql

Copy Drupal files from Apache\htmldoc on test server to the same directory on production server. Check Drupal configuration file (settings.php) file for MySQL connection (especially for a valid password that is needed to connect to MySQL).

I did the following changes in configuration files:

PHP.INI

I turned on the php_mysql.dll PHP extension:
[PHP_MYSQL]
extension=php_mysql.dll

All other PHP extensions I turned off with semicolon in front of the extension keyword (;).
Also, I copied libmysql.dll from PHP directory to Apache\bin directory.

Apache (httpd.conf)
I added index.php and index.htm in directoryIndex:

# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.

    DirectoryIndex index.php index.html index.htm

…as well as some aliases for static content, such as:

Alias /doc "X:/DOCUMENTATION"

    Options Indexes
    AllowOverride None
    Order allow,deny
    Allow from all

MySQL (my.ini)

I added init-connet to my.ini at the server side, the reason for this is explained in this thread.

[mysqld]
init-connect="SET NAMES cp1250"

SQL Developer Data Modeling

During my regular RSS feed browsing I noticed Sue Harper announcement of Early Adopter Release of Oracle SQL Developer Data Modelling tool. This is really a good news.
We used to be a vivid Designer/Developer shop in the past but we left this Oracle technology track in 6i time frame. Rightly so, considering that only Oracle (“a damage control section of it”;-) itself believes in long Developer/Designer prospect – let’s face it, both product lines are dead, we should not pretend to believe otherwise (and yes, I read Oracle white paper – State of direction and I still think the same).
What I miss the most are perhaps Designer ER modeling and Reverse Engineering capabilities. Not so long ago we tried Quest Toad Data Modeler which is not a bad tool. It’s cheap, relatively light (thought it can become a memory & CPU hog), easy to learn and use, supports all major RDBMS vendors and can do reverse engineering, but the competition never hurts.

I just downloaded Early Adopter Release and tried a few things. What to say? I do like look and feel of OSDM, but it’s too early to do a fair justice to the product. What I do know is that the price is right ;-).

Sample screenshot:

osdm

Bug 6471770 – OERI [32695] [hash aggregation can’t be done] from Hash GROUP BY

Today we hit another bug related to Oracle hash group by aggregation. I said another because we already had serious problem with hash group by in 10.2.0.1, as I noted here.
At the moment we’re using 10.2.0.3 Patch 12 and bug is fixed in 10.2.0.5 (and 11.1.07). User encountered bug while processing large dataset with SAS as a front end (extensively utilizing Oracle Analytical functions), on top of that it was during the period of time when server was already under heavy workload.

We’ll try to:

  • repeat the error ORA-600 on the same data set with the same tool (SAS) but during off-peak hours. I have a feeling that heavy workload is somehow part of the problem.
  • use hint NO_USE_HASH_AGGREGATION within all potential queries. (Con: we’ll see how well will this query work without group by hash feature.)
  • disable gby at session level by setting “_gby_hash_aggregation_enabled” to FALSE

I’m certainly not fond to use the same “workaround” as last time by disabling group by hash at instance level, because this time it’s not a “hidden” error and it seems it’s rather sporadic (the same query run well on the same dataset and RDBMS version in the past).

Reference: Metalink Note 6471770.8.

Regards,
AlesK

Cloud Computing

In the last WServerNews[tm] Electronic Newsletter I read interesting quote by Larry Ellison:

Quote of the Week from Oracle CEO Larry Ellison


“The interesting thing about cloud computing is that we’ve redefined cloud
computing to include everything that we already do. I can’t think of anything
that isn’t cloud computing with all of these announcements. The computer
industry is the only industry that is more fashion-driven than women’s
fashion. Maybe I’m an idiot, but I have no idea what anyone is talking
about. What is it? It’s complete gibberish. It’s insane. When is this idiocy
going to stop? We’ll make cloud computing announcements, I’m not going to
fight this thing. But I don’t understand what we would do differently in
the light of cloud computing other than change the wording of some of our
ads.” — CEO Larry Ellison at Oracle’s annual financial analysts meeting.


Bravo Larry! I think and feel the same. It’s amazing how much rubbish “IT Press Community & IT Marketing departments” are producing on the daily basis about “cloud computing”, Web 2.0, etc. Finally, one CEO who has courage to openly address this BS. Thank you Larry!

[Update on September 25th, 2009: Watch this video on Youtube.]

De-support of RAW devices in 12g

According to Metalink Note: 578455.1 “Announcement of De-Support of using RAW devices in Release 12G” Oracle will no longer support RAW devices for datafiles, OCR and voting disks. I believe this is a good news considering cumbersome management associated with raw devices – thought not necessarily in all cases and situations.
I’m sure ASM is going to become a mature product by then; perhaps it’s because I’m getting old, but when it comes to changing such critical component as storage management layer I tend to react with caution and conservatism. So far, I survived with cooked file system, avoiding RAW devices, but I’m sure in the long run ASM will be a storage manager of choice, even for non-RAC Oracle customers.