Home>Question Details



Pierre -- Thanks for the question regarding "11g release 2 new features", version 10.2.0

Submitted on 1-Sep-2009 11:12 Central time zone
Last updated 15-Nov-2009 14:11

You Asked

Hi Tom,


Oracle has just shipped 11g release 2 for Linux on OTN.
What are your favorites features of release 2 with respect to release 1 ?

Thanks.

and we said...

I'll be posting a few of them in the Nov/Dec Oracle Magazine - but what I chose to write about was:

o data guard: automatic block level recovery using standby (we see something corrupt, we get good block from standby and fix it right away).
http://download.oracle.com/docs/cd/E11882_01/server.112/e10881/chapter1.htm#FEATURENO08777


Also - having a query "SLA" (service level agreement) of sorts, the ability to ship your read only queries to the standby as long as the standby is 'current enough', reducing workload on production.
http://download.oracle.com/docs/cd/E11882_01/server.112/e10881/chapter1.htm#FEATURENO08794



o the killer feature - Edition Based Redefinition
http://download.oracle.com/docs/cd/E11882_01/server.112/e10881/chapter1.htm#FEATURENO08709



o automated "do it yourself (DIY) parallelism. I've given "DIY" methods in the past:
http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:10498431232211

http://www.oracle.com/technology/oramag/oracle/06-jan/o16asktom.html


but now it is builtin

http://download.oracle.com/docs/cd/E11882_01/server.112/e10881/chapter1.htm#FEATURENO08597



o listagg :)

SQL> select deptno,
  2         listagg( ename, '; ' )
  3         within group
  4         (order by ename) enames
  5    from emp
  6   group by deptno
  7   order by deptno
  8  /

    DEPTNO ENAMES
---------- --------------------
        10 CLARK; KING; MILLER
        20 ADAMS; FORD; JONES;
           SCOTT; SMITH

        30 ALLEN; BLAKE;
           JAMES; MARTIN;
           TURNER; WARD




o EXECUTE privs on a directory (for use with the preprocesser option of external tables)

http://download.oracle.com/docs/cd/E11882_01/server.112/e10881/chapter1.htm#FEATURENO08784



o recursive subquery factoring

http://download.oracle.com/docs/cd/E11882_01/server.112/e10881/chapter1.htm#FEATURENO08835


o flashback data archive flexibility (supports DDL operations now)

http://download.oracle.com/docs/cd/E11882_01/server.112/e10881/chapter1.htm#sthref11



o a file watcher

http://download.oracle.com/docs/cd/E11882_01/server.112/e10881/chapter1.htm#sthref15



o deferred segment creation

http://download.oracle.com/docs/cd/E11882_01/server.112/e10595/tables002.htm#CHDGJAGB



Reviews    
4 stars and   September 7, 2009 - 3am Central time zone
Reviewer: Sokrates 
... and ...
" Preprocessing Data for ORACLE_LOADER Access Driver in External Tables"
looks very nice, doesn't it ?
( http://download.oracle.com/docs/cd/E11882_01/server.112/e10881/chapter1.htm#FEATURENO08785 )

Now you can "mount" an Excel-xls-File as external-table, just write an appropriate pre-processor 
(xls2csv)

... and ...

"Recursive with Clause"
http://download.oracle.com/docs/cd/E11882_01/server.112/e10881/chapter1.htm#FEATURENO08835

allows you to solve SQL-Puzzles very simple like Mikito Harakiri did
http://vadimtropashko.wordpress.com/2008/11/18/finally
(no need to write Fourier Transformations in SQL)


... and ...
IGNORE_ROW_ON_DUPKEY_INDEX Hint for INSERT Statement
http://download.oracle.com/docs/cd/E11882_01/server.112/e10881/chapter1.htm#FEATURENO08842

: kind of hidden "when others then null;" 

?


1 stars correction   September 7, 2009 - 4am Central time zone
Reviewer: Sokrates 
IGNORE_ROW_ON_DUPKEY_INDEX of course is not a hidden
"when others then null;"
but a hidden
"when dup_val_on_index then null;"

5 stars new possibilities of collect function   September 9, 2009 - 3pm Central time zone
Reviewer: RC from The Netherlands
I like the 2 new possibilities of the collect function. 

1. the possibility to add distinct 
2. the possibility to and order by.  


Read here: http://download.oracle.com/docs/cd/B28359_01/server.111/b28286/functions024.htm .

This is old news because they where already present in 11g1 but it escaped my attention because 
those two new possibilities aren't mentioned in the new features guide of 11gr1 or 11gr2. 

You can use them to make your own specialized 'listagg' functions. 



3 stars upgrade from 10g to 11g   October 6, 2009 - 4pm Central time zone
Reviewer: tony wang from Los Angeles,CA USA
Hi Tom,
   11g sounds great, but how to upgrade from 10g to 11g?
Thanks.
Tony


Followup   October 8, 2009 - 7am Central time zone:

start by reading the answer to this same exact question you posted on another page.

why do people do that? post the same there here, there, everywhere?
5 stars LISTAGG   October 8, 2009 - 8am Central time zone
Reviewer: Martijn from Netherlands, #42 street
Hi Tom,

Regarding this great thread:
http://asktom.oracle.com/pls/asktom/f?p=100:11:2119231749211243::::P11_QUESTION_ID:229614022562

And in 11g nowadays we can use LISTAGG
http://download.oracle.com/docs/cd/E11882_01/server.112/e10592/functions087.htm#SQLRF30030

Out-of-curiosity-question:
Were you in any way involved creating and/or designing LISTAGG?
Is it perhaps based on your TRANSPOSE function under it's covers?


4 stars   October 8, 2009 - 9am Central time zone
Reviewer: A reader from 08831
While executing the following statement , I am getting the error ORA-01489.
This is because of the resultant value exceeds 4000 characters .

Per manual
<quote>
The return data type is RAW if the measure column is RAW; otherwise the return value is VARCHAR2.
</quote>

Is there are any way to circumvent this limitation of varchar2?

Select m_id , bii_tag , listagg(a_value , '~') within group ( order by seq_no  ) ans_vald
          from ca
            where m_id = 100987
           group by m_id , bii_tag

ORA-01489: result of string concatenation is too long


2 stars Server Pool Vs Services   October 8, 2009 - 12pm Central time zone
Reviewer: A reader from 08831
Tom . 

What is the difference between Server Pool in 11gR2 and Services in 11r1/10g .... ?

Read the manual . I did not get differnce . Thanks for your time. 


4 stars   October 8, 2009 - 2pm Central time zone
Reviewer: Oleksandr Alesinskyy 
With all due respect -
would be second volume of your "Expert Oracle Database Architecture: 9i and 10g ..." named "
Expert Oracle Database Architecture: 12x and 13x" ?


4 stars what version is better between 11gr1 and 11gr2   October 10, 2009 - 7pm Central time zone
Reviewer: John 
Hi Tom,

if we have to upgrade to 11g, what release is better between the 11gr1 and 11gr2?


Thanks


3 stars recursive subquery factoring   October 11, 2009 - 11am Central time zone
Reviewer: James Su from Toronto
Dear Tom,
Can you show an example using the recursive subquery factoring feature that can not be achieved by 
using "connect by"?
Thanks.


2 stars ... and some bug   October 19, 2009 - 8am Central time zone
Reviewer: Massimiliano Piccinini mp from Italy
If you open the same cursor for thousands time (something like 10000) 
in a 2 nodes rac, with CURSOR_SHARING similar, the gv$Sql_plan fill up of all similar lines, with 
an ora0600 - 17059.


5 stars   October 20, 2009 - 11am Central time zone
Reviewer: Alexander 
Tom,

Can you explain why you like "Edition Based Redefinition" so much?  I was reading about it, I guess 
I don't get it.  In my experience modifying objects does not take long.  Also, if you are doing an 
application upgrade, the application is going to be down, whether the database can remain active or 
not, don't you think?  Trying to think of a useful real world situation where this would really 
save me.


Followup   October 22, 2009 - 4pm Central time zone:

... Also, if you are doing an application upgrade, the
application is going to be down, whether the database can remain active or not,
don't you think? ...

No, it doesn't have to be - and that is the entire point.

Installing the code - can be impossible in a production system without taking an outage.

If you want to install 5 'fixed' procedures - you cannot do it while they are running - you need to a) stop everyone, b) compile the five procedures c) make sure everything went Ok, recompile dependents - fix whatever and then you can let them back in.

EBR (edition based redefinition) removes step (a). They continue while you are doing your thing.

Of the 36 hours it takes to upgrade Oracle Apps - how many hours do you think is spent compiling plsql? (hint: it is double digits of hours)

Any change requires an outage in the past, now it doesn't.

My next three Oracle Magazine columns (starting in April I thing) will be about EBR - doing the simple easy case (patching - something we do very very often - no schema changes but code fixes - no downtime code fixes now). Then a harder case - to minimize the downtime to go to version two - we'll stage not only our code but ALSO ALL OF OUR SCHEMA MODIFICATIONS. Then the last case whereby you run version 1 and version 2 at the same time for some period.


5 stars 11g performance tuning features   October 23, 2009 - 2am Central time zone
Reviewer: A reader 
Hi Tom

can you please list top 10 -20 new performance improvement featurs which are introduced in 11g.

I know only one - adoptive cursor sharing, which resolved the bind variable peeking issue and so in 
turn reduce the chances of a query suddenly start taking a bad path.which is great.

I have also read about "Database Smart Flash Cache"
and then Stored Outlines Migration to SQL Plan Management and some more as given in new featurs 
guide.

can you please list some more -specially with respect to code and server side .

Thanks


Followup   October 23, 2009 - 2pm Central time zone:

all of the diagnostic and tuning pack stuff has been updated and improved. There is not any 'top n' of them - my first choice might not be relevant to you and what you do at all.

here are a couple
http://download.oracle.com/docs/cd/E11882_01/server.112/e10821/whatsnew.htm#i974246

4 stars performance tuning improvements   October 24, 2009 - 1am Central time zone
Reviewer: A reader 
Tom

thanks for the link, very useful it is.

thanks


4 stars RESULT_CACHE got just better   November 6, 2009 - 10am Central time zone
Reviewer: Guru from Chennai
With Oracle 11gR2, RELIES_ON clause is done away in RESULT_CACHE. From Release 11.2, result caches 
in Oracle RAC Environment are no longer private. Nice ones though.


3 stars An example of "Recursive Subquery Factoring"   November 12, 2009 - 10am Central time zone
Reviewer: Anton from Utrecht
An example of something using "Recursive Subquery Factoring" which can't be done using "connect by":
http://technology.amis.nl/blog/6404/oracle-rdbms-11gr2-solving-a-sudoku-using-recursive-subquery-fac
toring


Followup   November 15, 2009 - 2pm Central time zone:

Anton,

I hope you don't mind, but I've been using that in my "top 11 things about 11g" since I saw it appear on Reddit.com a while back :)

I open up your website as an embedded link in my presentation.

It never fails to get a good chuckle, well done!
5 stars great, anton !   November 16, 2009 - 2am Central time zone
Reviewer: Sokrates 


5 stars   November 16, 2009 - 9am Central time zone
Reviewer: Anton 
Of course I don't mind if you mention my blog.



Write a Review
 


All information and materials provided here are provided "as-is"; Oracle disclaims all express and implied warranties, including, the implied warranties of merchantability or fitness for a particular use. Oracle shall not be liable for any damages, including, direct, indirect, incidental, special or consequential damages for loss of profits, revenue, data or data use, incurred by you or any third party in connection with the use of this information or these materials.

About Oracle | Legal Notices and Terms of Use | Privacy Statement