New Features of DB2 10: Easier migration from Oracle

Source: Internet
Author: User

Here are some:

Local type

This function allows PL/SQL and SQL PL blocks in BEGIN... The END block defines local type variables. Before declaring this type, you need to convert it to a global type or PL/SQL package.

The following PL/SQL statements can be performed in DB2.

 
 
  1. DECLARE 
  2. TYPE point IS RECORD(x NUMBER, y NUMBER);  
  3. here point;  
  4. BEGIN 
  5. here := (5, 3);  
  6. END;  
Local Program

This function is similar to a local type that allows you... Declare the program in the END block. In turn, programs can declare local programs, reference variables and local types in the blocks they declare. Similar to the local type in DB2 9.7, when an application uses this function, you need to move the locally declared programs to a package or make them global.

The following PL/SQL statements can be performed in DB2.

 
 
  1. DECLARE 
  2. TYPE point IS RECORD(x NUMBER, y NUMBER);  
  3. PROCEDURE makepoint(x IN NUMBER, y IN NUMBER, xy OUT point)  
  4. IS 
  5. BEGIN 
  6. xy := (x, y);  
  7. END;  
  8. here point;  
  9. BEGIN 
  10. makepoint(5, 3, here);  
  11. END;  
  12.  / 
PL/SQL Expression Inlining

DB2 9.7 is fast. DB2 10 or even faster!

Customers and business partners often report that Oracle applications enable DB2 to achieve or exceed the performance of the source system. However, there has been a situation where the features of heavy program logic, few or no SQL have yet achieved this goal.

The reason is that DB2 9.7 executes most simple SQL statements in mathematical or string expressions.

DB2 10 compresses Most algorithms, Boolean logic, and string operations into a single lightweight unit. This greatly improves the performance.

One business partner will say that switching from DB2 9.7 to DB2 10 provides improvements to multiple specific PL/SQL routines. This, in turn, accelerates a key process by exceeding the performance goal of more than 20% compared with the source system.

Please wait. More!

There are many other features, instead of further improving application compatibility and making DB2 a good choice.

Expression Supporting hash connection conditions

Zig zag join

Row and column access control (RCAC)

Merge pureScale DB2 10

By the numbers

Since DB2 9.7, the compatibility between DB2 and real Oracle Applications has steadily increased. So far, DB2 seems to have broken the PL/SQL code command line of 98%. When an application is migrated from Oracle to DB2 10, these command lines remain unchanged.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.