DB2 Viper 2 beta - compatibility features Feedback needed
by Serge Rielau » Sun, 17 Jun 2007 02:36:07 GMT
Hi folks,
My fellow team mates had some extra time on their hands so we decided to
spice up DB2 with a grab-bag of compatibility features.
We wouldn't mind help validating the semantics match....
So for those of you blessed or cursed with a competitive DBMS here is a
list of what we've added:
1. ** DUAL
Always works without prefixing a schema
2. ** ROWNUM
3. ** (+) outer join syntax
4. LEAST/GREATEST/NVL/DECODE
5. TO_DATE/TO_CHAR improvement
DB2 supports most common patterns except those requiring language
awareness
6. ** CONNECT BY
This is a function drop, performance drop will follow
7. A slew of syntactic sugar like:
Seq.NEXTVAL and seq.CURRVAL notation
UNIQUE instead of DISTINCT
MINUS instead of EXCEPT
Unnamed nested subqueries (aka inline views)
"SELECT * FROM (SELECT * FROM T)"
CROSSJOIN
8. BITAND/BITOR/.....
The features marked with ** require a registry setting:
db2set DB2_COMPATIBILITY_VECTOR=3F
should switch everything on.
There are other features those porting apps will value:
GLOBAL VARIABLES
A new ARRAY data type
A new RID() function can be used to map ROWID
Docs: https://publib.boulder.ibm.com/infocenter/db2luw/v9r5/index.jsp
Enjoy
Serge
--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab
--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab
Re: DB2 Viper 2 beta - compatibility features Feedback needed
by Lennart » Sun, 17 Jun 2007 04:38:06 GMT
[...]
Any chance NATURAL JOIN will be implemented in a near future?
/Lennart
[...]
Re: DB2 Viper 2 beta - compatibility features Feedback needed
by Serge Rielau » Sun, 17 Jun 2007 05:32:13 GMT
I toyed with it. But it took more than a day to prototype,
so I bailed ;-)
If we find that NATURAL JOIN becomes popular then it is quite possible.
Not exactly an engineering feat to line up columns by name... ;-)
So far I haven't seen it in the field much though.
Cheers
Serge
--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab
Re: DB2 Viper 2 beta - compatibility features Feedback needed
by Lennart » Sun, 17 Jun 2007 14:07:46 GMT
Just tell me where to vote :-). Seriously though it would save me (and I
guess others) a tremendous amount of typing. As a bonus the sql will
become less cluttered with the obvious. As an example I would prefer:
select ... from NYA.COURSE_OFFERING co NATURAL JOIN
NYA.PICKED_COURSE_OFFERING pco where ...
over:
select ... from NYA.COURSE_OFFERING co INNER JOIN
NYA.PICKED_COURSE_OFFERING pco ON
(co.ADMISSIONROUND_ID,co.EDUCATIONORG_ID,co.COURSEOFFERING_ID) =
(pco.ADMISSIONROUND_ID,pco.EDUCATIONORG_ID,pco.COURSEOFFERING_ID)
where ...
Anyhow, thanks for the info regarding the beta. If I get the time I'll
probably participate.
Re: DB2 Viper 2 beta - compatibility features Feedback needed
by Serge Rielau » Sun, 17 Jun 2007 21:03:05 GMT
Lennard,
are you attached to some company/ISV? Drop me an email with the info and
I'll log the request.
That has more pull than: "Lennart from usenet wants it" :-)
Cheers
Serge
--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab
Re: DB2 Viper 2 beta - compatibility features Feedback needed
by Lennart » Sun, 17 Jun 2007 21:34:28 GMT
[...]
You've got mail ;-)
/Lennart
Re: DB2 Viper 2 beta - compatibility features Feedback needed
by Bernard Dhooghe » Wed, 20 Jun 2007 23:37:05 GMT
What about:
"Row-comparisons (Bernard's favorite)
CREATE TABLE T1(c1 int, c2 int);
SELECT * FROM T1 WHERE (c1, c2) > (?, ?)
"
Bernard (Dhooghe)
Re: DB2 Viper 2 beta - compatibility features Feedback needed
by Serge Rielau » Thu, 21 Jun 2007 02:07:17 GMT
Well, I have to admit you preach a consistent story.
However, I dare say that this is off-topic.
None of DB2's major competitors supports this feature to the best of my
knowledge.
Cheers
Serge
--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab
Re: DB2 Viper 2 beta - compatibility features Feedback needed
by Bernard Dhooghe » Thu, 21 Jun 2007 03:19:32 GMT
1. Functional indexes could help (temporary workarond).
2. So what?
Bernard (Dhooghe)
2.
Re: DB2 Viper 2 beta - compatibility features Feedback needed
by Gregor S292YcSN » Thu, 21 Jun 2007 13:27:12 GMT
Hi!
In my company we had a project that would do joins like you do. It was on
about 30 tables. Each table has a natural key for its primary key and when
you got three levels dows the foreign key tree your joins were
humungus. :))
Imagine doing that on a 2000 tables database. :) We couldn't so we went for
one primary key (from a sequence generated column) and a unique key as a
natural key. So joins are now simpler and MUCH easier to read. :))
Best regards,
Kovi
--
-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-
| In A World Without Fences Who Needs Gates? |
| Experience Linux. |
-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-
Re: DB2 Viper 2 beta - compatibility features Feedback needed
by Serge Rielau » Thu, 21 Jun 2007 20:41:27 GMT
Hihi, Kovi wants "self-check out" for joins.
Duly noted.
Cheers
Serge
--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab
Re: DB2 Viper 2 beta - compatibility features Feedback needed
by Lennart » Fri, 22 Jun 2007 01:17:18 GMT
> We couldn't so we went for
You seem very enthusiastic about surrogate keys, have you concidered
it's drawbacks?
/Lennart
Re: DB2 Viper 2 beta - compatibility features Feedback needed
by janman » Fri, 22 Jun 2007 04:01:53 GMT
Sergi,
Is it possible to have another authentication other than OS
auth...the reason being that auditors don't allow remote logins for
common accounts.
This stops DB2 from autheticating.
Re: DB2 Viper 2 beta - compatibility features Feedback needed
by Serge Rielau » Fri, 22 Jun 2007 04:49:28 GMT
DB2 supports so called "security-plugins".
There is a multipart series explaining security in DB2 9:
http://www.**--****.com/
Cheers
Serge
--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab
Re: DB2 Viper 2 beta - compatibility features Feedback needed
by Gregor S292YcSN » Fri, 22 Jun 2007 23:19:39 GMT
Hi!
Drawbacks? We have been working like this for about 7 years now and they
have served us well.
Best regards,
Kovi
--
-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-
| In A World Without Fences Who Needs Gates? |
| Experience Linux. |
-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-
Similar Threads:
1.DB2 Viper 2 compatibility features
2.DB2 Viper 2 Open Beta - Enjoy
3.Interested in feedback on DB2 UDB autonomic computing features
I'm soliciting feedback from our users about our autonomic computing
features in DB2 UDB LUW. If you have used any of the following
features, and would like to share positive or negative experiences,
please contact me in confidence. We are interested in both your success
stories, and constructive feedback. (please see contact intructions
below).
Also, if you have a positive experience to share and would like us to
use your experience in our marketing material (i.e. free advertising
for you and your company) please indicate that we have your permission
to do so. Otherwise, I will assume that whatever you send me is shared
in confidence.
Features:
1. Design Advisor (db2advis, for indexes, MQT, MDC, partitioning)
2. Configuration Advisor (AUTOCONFIGURE)
3. Health Monitor
4. Utility Throttling
5. Self tuning BACKUP (enabled by default since v8.2)
6. Self tuning LOAD (enabled by default since v5.0)
7. Automatic Maintenance (automatic statistics, backup etc)
8. Automatic Storage
Please contact me directly at " XXXX@XXXXX.COM ", and entitle your
e-mail "Autonomic Feedback".
Looking forward to hearing from you.
Sam Lightstone
DB2 Autonomic Computing Development
DB2 Universal Database
IBM Canada
4.DB2 Compatibility Features Oracle
As I understand when you set the DB2_COMPABILITY_VECTOR registry
variable it allows execution of PL/SQL in DB2, but this only affects
databases created after the registry cariable is set.
Is there any way to enable all these features for existing databases?
Regards
Odd Bjn
ErgoGroup AS, Oslo, Norway
5.db2 viper
6. DB2 Viper Testdrive
7. Compatibility of DB2 Express C V9.0 backup to be restored on DB2 ExpressEdition 8.2
8. Compatibility of DB2 Express C V9.0 backup to be restored on DB2 ExpressEdition 8.2