Thursday, February 12, 2009

HP2133 Mini-Note PC The Little wonder for DBAs.




If you don't know it by know is because you haven't read my articles, but I am an enthusiastic in technology and an early adopter of it. I just love technology and I can't live without it.




For sometime I have been looking for an inexpensive laptop, small size but powerful enough that I could have my Oracle database and programs on it, and carry it every where I go without the need for a heavy laptop bag. Also the most important feature I was looking for was no Windows on it, yes I am more than disappointed with Windows Vista although I own several computers that have it installed.


I am glad to announce that I believe I got to the end of the journey in my finding, I recently got an HP2133 Mini-Note PC equipped with SUSE Linux Enterprise Desktop 10 SP1 and I just love it.

This Laptop has a price tag of $349 (at least by the time I bought it) from CompUSA.com comes with 1GB RAM and a powerful 120GB hard drive, and for $20 you can get a 2GB memory SDIMM from Newegg.com (BTW there is a handy video in Youtube that explains how to add the memory), HP sales it for $399, but I am sure you can get it for around $311 from other Inte
rnet sites like Provantange.

http://h10010.www1.hp.com/wwpc/us/en/sm/WF05a/321957-321957-64295-321838-306995-3687084.html?jumpid=oc_R1002_USENC-001_HP%202133%20
Base%20Model%20Mini-Note%20PC&lang=en&cc=us


It comes with the following

Specifications


Lifestyle: Business


Netbooks

Condition: New

Operating Systems: SUSE Enterprise Desktop 10 SP1.

Startup Operating System: SUSE Enterprise Desktop 10 SP1.

Platform: Notebook PC

Expansion Ports: 1 - Express Card Slot/54

Display Type: WXGA

Viewable Screen Size: 8.9"

Maximum Resolution: 1280 x 768

Processor Brand: VIA

Processor Class: C7-M

Processor Speed: 1.60GHz

Processor Cache: 128KB L2

Memory Type: DDR2

Memory Size: 2GB

Memory Speed: DDR2 667

Memory Slots (Total): 1

Memory Slots (Available): 0

Maximum Memory Supported: 2GB

Graphics Description: Integrated Graphics

GPU/VPU: VIA® Chrome9™

Video Memory: Up to 256MB Shared

Video Interface: VGA

Capacity: 120GB

Optical Drive Type: N/A

Supplemental Drive Type: Media Reader

Capacity: 1

Media Types: SecureDigital

Audio Description: Integrated Audio

Audio Chipset: ADI High Definition Codec

PS/2 Mouse Connectors: N/A

PS/2 Keyboard Connectors: N/A

Serial Communication Ports: N/A

Parallel Ports: N/A

USB Ports: 2

FireWire Ports: N/A

Fast Infrared Ports (FIR): N/A

LAN Ports: 1

Modem Ports: N/A

Audio Out Jacks: 1

Line In Jacks: N/A

Microphone Jacks: 1

VGA Ports: 1

S-Video Connectors: N/A

DVI Video: N/A

Port Replicator/Connector: N/A

Communications Description: Integrated LAN


Integrated Wireless LAN


Integrated Bluetooth

Interface Type: RJ-45 Ethernet Connector


Bluetooth™


Broadcom 802.11a/b/g WLAN

Data Transfer Rate: 10/100/1000Mbps Network


54 Mbps


Bluetooth 2.0

Protocols: 802.11b


802.11a


802.11g

Width: 10.04", 255 mm

Height: 27 mm, 1.05"

Depth: 6.5", 165 mm

Weight: 2.6 lbs


1.19 kg

Mouse Type: Touch Pad

Scrolling Capability: Scroll Zone

Keyboard Type: Spill Resistant

Battery Type: 6-Cell Lithium-ion

Battery Life: Up to 4.5 hours





I was able to install Oracle 10gR2 on it with the help of my friend Nick Donatone from Oracle, the biggest challenge was to get installed the pre-required packages for Oracle like gcc and gcc++, etc. This laptop comes with no CD ROM nor DVD ROM, but I believe you can buy one optional or you can just get an external USB CD-ROM drive (No that you need one)

The packages you need to install Oracle comes with the software which you can download from Novell (NOTE: Just install the packages you need and no more than that) , Novell support tells me that this is an special edition of SUSE for HP, therefore not all open source software will work on it.

For the price tag that this computer has, all the features on it, and the flexibility it represents I will say this is a must buy.

So far Pros and Cons:

- Support from HP for matters with the OS could be a lot better.
- Support from Novel has been great so far (thanks Jack Hodge).
- The speakers are great
- The keyword is good enough and you can always get an USB keyword, mouse and connect it to
and external display and you won't have any problems with it.
- The Webcam does not work in SUSE Linux but, I heard there is a way to make it work with a
open source driver.
- The battery life is about 2 hours, I am thinking in getting the extended battery (gives you 4 hours)
- It is very light.
- It warms up a bit at the bottom while you use it for extended periods.
- It comes pack with plenty of neat Open source software such as Open office.
- The wireless is very reliable.
- I wish the processor were faster, but this is just good enough.
- I love the touch pad technology HP implemented here, it has an scroll zone that simulates that
third mouse button.

In conclusion I give to it a 3.5 rating out of 5.

This is what it needs to be a 5 out of 5.

- HP Support improvements.
- Webcam working out of the box with SUSE.
- Faster CPU.


Monday, February 9, 2009

The cost of selecting the wrong technology

When I took my class about Oracle Streams, something called my attention, what do I use Oracle streams for, and how does it compares with Oracle Advance replication. The answer to that question is not trivial but it is important. Despite what Oracle can tell you Oracle Streams is a lot more complex and requires a lot more maintenance than Oracle Advance replication, but both of them have it's niche.

- Oracle Streams allows you to do transformations of the data as well as to partially replicate a table or a group of tables. (Mviews allows partial replication ans transformation as well)
- Oracle Replication is more suitable when you want to replicate something from site A to site B.
- Oracle Streams relies heavily on the use of keys.
- Oracle Streams is a newer technology more prompt to bugs, Oracle Advance replication has years in the market and is a proven technology.
- A single Oracle streams transaction generates multiple LCRs and the complete transaction is propagated, with advance replication only the values that change gets propagated.
- Oracle Streams can lag behind if you do not perform frequently commits in your source database.
- Oracle Streams allows you to do down streams capture which impose almost no performance impact to the source, while advance replication has an small performance penalty.

As you can see above it is important to evaluate your application when selecting any of this technologies. selecting the wrong technology just could create a maintenance nightmare that anyway is not going to satisfy your business requirements.


Oracle RAC, what Oracle does not tell you.

Recently in one of my customers, executive management wants to deploy Oracle RAC everywhere, The enterprise architecture group armed with a bunch of marketing material and sales speeches are afraid to confront those decisions, furthermore they have decided to embrace them.

Although I love RAC technology there are several factors you need to take into consideration before jumping into the wagon.

- RAC is very , very complicated, you need high skilled dedicate personnel to maintain this.
- Not every single application is RAC aware.
- RAC does not improve your performance, RAC offers you high availability and scalability.

My advice is to not to use RAC at least your really needed, the degree of complexity and the
increase of maintenance is such that your ROI have to really call for it. A good way to determinate this is to ask yourself, how much money is going to lose the company because the database went down for 15 minutes.

If your application is not designed for RAC, meaning that is has transaction isolation and benefits from parallelism then you can experience significant performance degradation due to block contention (block busy waits). In one of the test we performed we found that an application that is not RAC aware got 45% performance degradation when deployed on RAC using load balance across 2 nodes.

There is this big misconception that if you need more power you add nodes to a RAC cluster, if your application can't escalate vertically, it is not going to escalate horizontally either, furthermore if the application is not RAC aware your performance will be degraded exponentially with each node you add to the cluster.

Despite everything I mention above RAC is an excellent architecture for high availability and scalability as long as your application allows for it.







Tuesday, August 26, 2008

Oracle Streams – The ABC’s of a Heartbeat table

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------

NOTE: The following posting was in collaboration with Frank Ortega, Thanks Frank for reviewing my work.

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------


What is a heartbeat table and what is it used for?

This table is especially useful for databases that experience periods of low replication activity. The use of a heartbeat table ensures the replication environment is working even if there are just a few replicated changes. It also is valuable as a quick check for the DBA to ensure that the Streams environment is functioning properly (by simply querying a date column in the heartbeat table on the destination).

By default, an Oracle Streams capture process requests a Streams checkpoint after every 10MB of generated redo. The Oracle Streams metadata is only maintained during that checkpoint if the transactions have data relative to Streams capture. Implementing a heartbeat table ensures that there are open active ‘Streams transactions’ occurring regularly in the source database, insuring Streams metadata is updated during each checkpoint.


Ultimately, the end result of this is that CAPTURED_SCN in the Streams metadata (DBA_CAPTURE), will be maintained and stay current with redo that is being generated even during typical periods of low replication activity. This will ensure that the Capture process will not fail (missing archive logs for an old SCN required for capture) during Oracle Startup following low activity periods.


What is involved in doing this?

A.- You will need to create a table in your source database that has as one of the columns a date/timestamp column. Enable supplemental logging for the table and instantiate the table at the source. Export the table from the source and Import at the destinations with the instantiation option.

B.- Add a rule to capture changes for the heartbeat table at the source. Propagate the changes to the destination.


C.- Make sure that the target destination will apply changes to this
table as well by adding a new apply rule.

D.- Set up an automated job to update this table at the source site
periodically.



Let's do it

Assumptions: A Streams environment already exists. Capture Process (CAPTURE_STREAM) on source and Apply Process (APPLY_STREAM ) on destinations exist. Queues (STREAMS_QUEUE) already exist on both source and destinations. Table level replication is occurring. STREAMADM is streams administrator account on source and destination. Capture and Apply processes are stopped prior to adding rules and restarted when you are done.


(A)

On the source:

SQL> create table heartbeat (a number primary key, b date);

SQL> alter table heartbeat enable supplemental log data (all) columns;

Using userid

SQL> exec dbms_capture_adm.prepare_table_instantiation

(table_name => '.HEARTBEAT');

exp USERID=/ FILE=strmuser.dmp TABLE=.HEARTBEAT OBJECT_CONSISTENT=y ROWS=y

On the destinations:

imp USERID=/ FILE=strmuser.dmp TABLE=.HEARTBEAT COMMIT=y LOG=import.log STREAMS_INSTANTIATION=y GRANTS=n

(B)

On the source:

BEGIN

DBMS_STREAMS_ADM.ADD_TABLE_RULES(

table_name => '.heartbeat',

streams_type => 'CAPTURE',

streams_name => 'CAPTURE_STREAM',

queue_name => ‘STREAMADM.STREAMS_QUEUE',

include_dml => true,

include_ddl => false,

source_database => 'SOURCEDB');

END;

/

BEGIN

DBMS_STREAMS_ADM.ADD_TABLE_PROPAGATION_RULES(

table_name => '.heartbeat',

streams_name => ‘CAPTURE_STREAM,

source_queue_name => 'STREAMADM.STREAMS_QUEUE',

destination_queue_name => ' STREAMADM.STREAMS_QUEUE@DESTDB’,

include_dml => true,

include_ddl => false,

source_database => 'SOURCEDB');

END;

/

(C)

On the destinations:

BEGIN

DBMS_STREAMS_ADM.ADD_TABLE_RULES(

table_name => '.heartbeat',

streams_type => 'APPLY',

streams_name => 'APPLY_STREAM',

queue_name => 'STREAMADM.STREAMS_QUEUE',

include_dml => false,

include_ddl => true,

source_database => 'SOURCEDB’);

END;

/

(D)

On the source:

SQL> create sequence temp_seq start with 1;

SQL> variable jobno number;
begin
dbms_job.submit(:jobno, 'insert into heartbeat

values (temp_seq.nextval, sysdate);',
sysdate, 'sysdate+60/(60*60*24)');
commit;
end;
/