Feed aggregator

The day before OOW17; infra expectations

Amis Blog - Sat, 2017-09-30 19:01

Oracle Open World 2017 is starting tomorrow, and as a platinum partner of Oracle, we – AMIS Services – are obliged to keep us and our customers informed with the roadmap of Oracle products.

And of course translate this to added business-value for our customers.  In short: what to pick of all the coming announcements, new features, cloudiness and so on.  All the arrows are pointed towards the Oracle Cloud products of course, but first we’ll have to find the answer of the two questions:   ‘why should a customer go to the cloud’  and if yes ‘what role is Oracle Cloud playing in this’.

This week will be – as in the last years – full of announcements. It started early this year with the pre-announcement of Larry last week about the ‘autonomous database’, Bring Your Own Licence to the Cloud and Universal Credits.

As a reminder, hereby a wrap-up of the presentation of Larry Ellison:

– Lowest price for IaaS. That means the same price as Amazon, but faster, thus cheaper.

– Highest rate of automation in PaaS. That means the lowest TCO. Goal is to garantee a 50% lower TCO than Amazon

– The ‘autonomous database’ is available in December, based on Machine Learning. This should eliminate human Labor (DBA).

– Service Level Agreement of 99,995%, this is 30 minues of planned and unplanned downtime a year.

– Bring Your Own License for PaaS. 94% cheaper than the old price. This should lower the treshold to use the Oracle Cloud.

– It’s becoming possible to buy Universal Credits, no more linked to a Cloud product.

This wrap-up covers pretty much my agenda or, as you will, my focus of this Oracle Open World. Primarily focussed on TCO, (Cloud) platforms, databases, middleware , Engineered systems.

Oracle has taken some pretty smart moves, which will influence products like

– Engineered Systems. In general : is there still a business case in buying on-premisses hardware

– The role and feature of the DBA. DBAKevlar wrote a nice blog about this.

– Life Cycle Management of the platform. How to cope with the management of a hybrid environment, including this new autonomous databases, and containers.

– Databases. There will be a lot of new features in Oracle18.

Tomorrow it will be the start of an exhausting week and I’m not even presenting nor ACE or Developement Champion! Just a mortal visitor, attending a lot of presentations, key-notes, meetings with product-managment, network-events, appreciation-events, dinners with Oracle representatives.

Respect for my colleagues Lucas Jellema and Robert van Molken. Together they  are involved  with (or are presenting) 9 presentations.

My intention is also to write quite regurarly about the things that went on my journey this week.



Larry Ellison’s announcement: http://www.oracle.com/us/corporate/events/cloud-announcement/index.html

DBAkevlar’s blog : http://dbakevlar.com/2017/09/death-dba-long-live-dba/

Lucas Jellema en Robert van Möken presentations / involvements: https://events.rainfocus.com/catalog/oracle/oow17/catalogoow17?search=AMIS%20&showEnrolled=false

The post The day before OOW17; infra expectations appeared first on AMIS Oracle and Java Blog.

remove compress basic

Tom Kyte - Sat, 2017-09-30 17:46
What is the best way to remove compress basic from tables and partitions in production environment.
Categories: DBA Blogs


Tom Kyte - Sat, 2017-09-30 17:46
Hi TOM, Trying to understand the difference between FILE_ID & RELATIVE_FNO in dba_data_files and dba_extents.
Categories: DBA Blogs

Is UTL_MAIL supported in 11g EE

Tom Kyte - Sat, 2017-09-30 17:46
Hi Team, Wanted to know wherher utl_mail is supported in 11g EE.I installed the version in my local windows machine.I am able to connect to it via SQL Developer. I can see utl_smtp and utl_tcp packages are installed. I tried to install the utlmail...
Categories: DBA Blogs

AVM Fritz: WLAN Mesh with Powerline Repeater does not work

Dietrich Schroff - Sat, 2017-09-30 06:40
Today i upgraded my FritzBox to FritzOS 6.90:

After the upgrade of the FritzBox i tried to upgrade my Powerline Adapter. But the 6.90 was not shown with inside the update mechanism via GUI.
(Be careful: you have to update your FritzBox first:
ACHTUNG: Bitte nur installieren, wenn Sie eine FRITZ!Box mit FRITZ!OS >= 6.88 verwenden!)

So i downloaded the firmare image via this link and installed the new version:

Inside the FritzBox the WLAN mesh can be checked in "Heimnetz -> Heimnetzübersicht":

But no device behind the powerline adapter showed up.
I googled a bit around, but all AVM support pages where deleted. Inside Google cache i found the following:

So the mesh icon is missing at the powerline adapter. A reboot of the fritzbox and the powerline adapter did not change anything.

On AVM website there is an image how it should look like:

But it think, they have a problem with their mesh functionality and removed the 6.90 auto update for the wlan repeaters/powerline adapters and they even removed all support pages for the wlan mesh.

Let's wait for some bug fixes ;-)
(Still remember: These upgrades are just for free)

Ubuntu /etc/alternatives/java et.al.: Using java from external sources | update-alternatives | update-java-alternatives

Dietrich Schroff - Sat, 2017-09-30 02:21
After some problems with the jdk integrated in ubuntu 16.04 i installed the OpenJDK from http://jdk.java.net/9/.

The software is provided as tarball (tar.gz) and after
tar -xvf ~/Downloads/jdk-9+178_linux-x64_bin.tar.gz the binaries can be used with
...But there are many links in /etc/alternatives still pointing to the ubuntu jdk:
lrwxrwxrwx 1 root root  41 Jul 11 21:02 /etc/alternatives/jar -> /usr/lib/jvm/java-9-openjdk-amd64/bin/jar
lrwxrwxrwx 1 root root  51 Jul 11 21:02 /etc/alternatives/jar.1.gz -> /usr/lib/jvm/java-9-openjdk-amd64/man/man1/jar.1.gz
lrwxrwxrwx 1 root root  47 Jul 11 21:02 /etc/alternatives/jarsigner -> /usr/lib/jvm/java-9-openjdk-amd64/bin/jarsigner
lrwxrwxrwx 1 root root  57 Jul 11 21:02 /etc/alternatives/jarsigner.1.gz -> /usr/lib/jvm/java-9-openjdk-amd64/man/man1/jarsigner.1.gz
lrwxrwxrwx 1 root root  42 Mai 31 21:09 /etc/alternatives/java -> /usr/lib/jvm/java-9-openjdk-amd64/bin/java
lrwxrwxrwx 1 root root  52 Mai 31 21:09 /etc/alternatives/java.1.gz -> /usr/lib/jvm/java-9-openjdk-amd64/man/man1/java.1.gz
lrwxrwxrwx 1 root root  43 Jul 11 21:02 /etc/alternatives/javac -> /usr/lib/jvm/java-9-openjdk-amd64/bin/javac
lrwxrwxrwx 1 root root  53 Jul 11 21:02 /etc/alternatives/javac.1.gz -> /usr/lib/jvm/java-9-openjdk-amd64/man/man1/javac.1.gz
lrwxrwxrwx 1 root root  45 Jul 11 21:02 /etc/alternatives/javadoc -> /usr/lib/jvm/java-9-openjdk-amd64/bin/javadoc
lrwxrwxrwx 1 root root  55 Jul 11 21:02 /etc/alternatives/javadoc.1.gz -> /usr/lib/jvm/java-9-openjdk-amd64/man/man1/javadoc.1.gz
lrwxrwxrwx 1 root root  43 Jul 11 21:02 /etc/alternatives/javah -> /usr/lib/jvm/java-9-openjdk-amd64/bin/javah
lrwxrwxrwx 1 root root  53 Jul 11 21:02 /etc/alternatives/javah.1.gz -> /usr/lib/jvm/java-9-openjdk-amd64/man/man1/javah.1.gz
lrwxrwxrwx 1 root root  43 Jul 11 21:02 /etc/alternatives/javap -> /usr/lib/jvm/java-9-openjdk-amd64/bin/javap
You can change them manually by deleting and creating new links but i think this is to much work.
Update-Alternatives works, but you have to issue the following command many times:
update-alternatives --quiet --install /usr/bin/jconsole jconsole /home/data/opt/jdk-9/bin/jconsole 1191Update-java-alternatives
update-java-alternatives.new -s java-jdk-9
update-java-alternatives.new: directory does not exist: /usr/lib/jvm/java-jdk-9
 does not work. But this can be fixed by creating your own jinfo file:
ls -la /usr/lib/jvm/.*jinfo
-rw-r--r-- 1 root root 2600 Mai  6 05:55 /usr/lib/jvm/.java-1.8.0-openjdk-amd64.jinfo
-rw-r--r-- 1 root root 2646 Apr 14  2016 /usr/lib/jvm/.java-1.9.0-openjdk-amd64.jinfo
-rw-r--r-- 1 root root 2058 Jul 14 22:05 /usr/lib/jvm/.java-jdk-9.jinfo
Just copy one of the existing files and change the paths to your JDK installation directory.
Then copy update-java-alternatives to update-java-alternatives and change the following lines:

inside the do_set function
#update-alternatives $uaopts --set $name $location
prio=$(awk -F= '/priority=/ {print $2}' $top/*$jname.jinfo)
update-alternatives $uaopts --install /usr/bin/${location##*\/} $name $location $prio
And then
update-java-alternatives.new -s java-jdk-9will change all links in /etc/alternatives, so that running java without path will use the your installed version...
$ java -version
java version "9"
Java(TM) SE Runtime Environment (build 9+178)
Java HotSpot(TM) 64-Bit Server VM (build 9+178, mixed mode)

What performs better NVL or DECODE for evaluating NULL values

Tom Kyte - Fri, 2017-09-29 23:26
Afternoon, Could anyone tell me which of the following statements would perform better? <code> SELECT 1 FROM DUAL WHERE NVL (NULL, '-1') = NVL (NULL, '-1') </code> OR <code> SELECT 1 FROM DUAL WHERE DECODE(NULL, NULL, '1', '0') = '...
Categories: DBA Blogs

Which Index is Better Global Or Local in Partitioned Table?

Tom Kyte - Fri, 2017-09-29 23:26
We have partitioned table based on date say startdate (Interval partition , For each day) We will use query that will generate report based on days (like report for previous 5 days) Also we use queries that will generate report based on hours (li...
Categories: DBA Blogs

SQL to find the ip address

Tom Kyte - Fri, 2017-09-29 23:26
Hi Tom, I want to capture the IP address of any client who has shutdown the db. Support currently in my db 5 clients are connected, one client shutdown the db, then I want to capture the IP address of client who has been shutdown the db. How to solv...
Categories: DBA Blogs


Tom Kyte - Fri, 2017-09-29 23:26
Hi Tom/Team, I am aware of the definition of terms used in AWR Report. but i want to know that - how to calculate and on what basis we need to calculate values listed for points in below 2 section of AWR report 1. Top 5 timed foreground event ...
Categories: DBA Blogs

BInary operator like AND, XOR

Tom Kyte - Fri, 2017-09-29 23:26
Hi i have a simple question can we use the binary operator like AND or XOR in a SQL statement. For example "select 1 AND 1 from dual;" result = 1 or true or "select 1 XOR 1 from dual;" if not, please can you tell me how can i do to have th...
Categories: DBA Blogs

Lots of archivelog generation when shrinking and compacting segments

Tom Kyte - Fri, 2017-09-29 23:26
Hi Tom, 1. what is the reason of huge redo and archivelog generation when compacting and shriking huge segments in 10g? 2. How it can be avoided or minimized? Thanks JP
Categories: DBA Blogs

Mining Goldgate ggserr.log

Michael Dinh - Fri, 2017-09-29 21:33

Can you imagine me running in circles shouting, “The sky is falling, the sky is falling?”

Replicat Lag at Chkpt: 03:21:45

Here are the trail files at target – look at how fast it is being created.

ls -alrt ./dirdat/aa*|tail -20
-rw-r----- 1 ggsuser ggsuser 499999845 Sep 29 11:09 ./dirdat/aa000020827
-rw-r----- 1 ggsuser ggsuser 499999575 Sep 29 11:09 ./dirdat/aa000020828
-rw-r----- 1 ggsuser ggsuser 499999929 Sep 29 11:10 ./dirdat/aa000020829
-rw-r----- 1 ggsuser ggsuser 499999771 Sep 29 11:11 ./dirdat/aa000020830
-rw-r----- 1 ggsuser ggsuser 499999941 Sep 29 11:11 ./dirdat/aa000020831
-rw-r----- 1 ggsuser ggsuser 499999858 Sep 29 11:12 ./dirdat/aa000020832
-rw-r----- 1 ggsuser ggsuser 499999571 Sep 29 11:12 ./dirdat/aa000020833
-rw-r----- 1 ggsuser ggsuser 499999874 Sep 29 11:13 ./dirdat/aa000020834
-rw-r----- 1 ggsuser ggsuser 499999782 Sep 29 11:14 ./dirdat/aa000020835
-rw-r----- 1 ggsuser ggsuser 499999975 Sep 29 11:14 ./dirdat/aa000020836

My hypothesis: lots of data being capture at source.

After all is said and done. The ggserr.log was mined.

Gather dates for the 10 highest number of trails created by day in 2017.


grep "^2017" ggserr.log.dinh|grep "p_test.prm:  Rolling over remote file"|awk '{ print $1 }'|uniq -c|sort -nrk 1|head

    224 2017-09-29
    147 2017-06-02
    105 2017-02-28
    101 2017-05-31
    100 2017-03-01
     98 2017-06-01
     97 2017-05-18
     91 2017-05-26
     89 2017-07-25
     85 2017-01-26


grep "^2017" ggserr.log.dinh|grep "r_test.prm:  Switching to next trail file"|awk '{ print $1 }'|uniq -c|sort -nrk 1|head

    279 2017-09-29
    183 2017-02-28
    174 2017-03-01
    148 2017-06-02
    146 2017-02-24
    137 2017-08-29
    137 2017-03-24
    133 2017-08-11
    130 2017-08-16
    128 2017-03-02

Different count between source/target for 2017-09-29 is due to data being collected at different time.

EBS : Milestone Billing

OracleApps Epicenter - Fri, 2017-09-29 18:59
Milestone is a type of billing that occurs only as certain milestones have been attained. Milestones are events or conditions that trigger the billing. For example, you can bill customers based on the number of days since the activity began, a specific date, a manual milestone you specify, or an activity percentage of completion. You […]
Categories: APPS Blogs

Python cx_Oracle RPMs for Oracle Linux 6 and Oracle Linux 7

Christopher Jones - Fri, 2017-09-29 17:35

The Oracle Linux group is starting to roll out RPMs for language interfaces like Python cx_Oracle.  Check out their blog posts on the available cx_Oracle RPMs: 

cx_Oracle RPMs have landed on Oracle Linux Yum Server

Using cx_Oracle With Software Collection Library and What Those Different Versions Are For

Ruby-oci8 is also available for OL6 and OL7; more on that later.


Office 365 ProPlus Certified with EBS 12.1 and 12.2

Steven Chan - Fri, 2017-09-29 13:26

Microsoft Office 365 ProPlus versions of Excel, Word, and Outlook are certified with Oracle E-Business Suite 12.1 and 12.2. See:

This certification includes 32-bit and 64-bit versions of Office 365 ProPlus running on Windows 10, 8.1, and 7.

What is Office 365 ProPlus?

Office 365 ProPlus is a version of Microsoft Office that's available through Office 365. It includes Word, Excel, Outlook, PowerPoint, Access, OneNote, Publisher, and Skype for Business as well as online services such as Sway and Power Query.

Office 365 ProPlus is installed on the user's local computer using a streaming and virtualization technology called Click-to-Run. Office 365 ProPlus is not a web-based version of Office. It runs locally on the user's computer. Users don't need to be connected to the Internet all the time to use it.

What is not covered by this certification?

EBS 12.1 and 12.2 are certified with the Office 365 ProPlus versions of Excel, Word, and Outlook.

The following Office 365 ProPlus products are not certified with EBS 12.1 or 12.2:  

  • Office on iPad and Android devices
  • Office Online browser-based versions of Excel and Word
  • PowerPoint, Access, OneNote, Publisher, and Skype for Business
  • Online services such as Sway and Power Query

Click-to-Run delivers monthly updates to Office 365 ProPlus

By default, Click-to-Run products are configured to be updated automatically every month. Users don't have to download or install updates. The Click-to-Run product seamlessly updates itself in the background.

Microsoft also offers a semi-annual channel for updates in January and July, as well as a targeted semi-annual channel in March and September.

Certification with Click-to-Run updates

Oracle certified EBS 12.1 and 12.2 in September 2017 with the latest available versions of Excel, Word, and Outlook in Office 365 ProPlus at the time.

Microsoft's updates to Office 365 ProPlus are intended to be backwards-compatible. This means that Oracle's certification with the September 2017 baseline should continue to apply to Microsoft updates in October 2017, November 2017, and so on.

It is unlikely that Oracle will be able to certify all monthly Office 365 ProPlus updates with all EBS 12.1 and 12.2 updates. Given Microsoft's stance towards backwards-compatibility, this is theoretically unnecessary.

It is expected that Oracle will continue to certify selected updates to Office 365 ProPlus versions of Excel, Word, and Outlook with updates to EBS 12.1 and 12.2.  

Related Articles

Categories: APPS Blogs

Experience the Future of Cloud at Oracle OpenWorld 2017

Oracle Press Releases - Fri, 2017-09-29 11:00
Press Release
Experience the Future of Cloud at Oracle OpenWorld 2017 Technology’s Most Innovative Showcase Kicks Off in San Francisco

Oracle OpenWorld, San Francisco, Calif.—Sep 29, 2017

Oracle OpenWorld 2017 By the Numbers

This weekend, Oracle welcomes tens of thousands of customers and partners spanning 175 countries and over 18 million live-stream viewers to Oracle OpenWorld 2017. Located at San Francisco’s newly redesigned Moscone Center, conference events will span multiple venues in the city’s downtown from October 1-5. Heralded as the industry’s most important business and technology show, Oracle OpenWorld delivers unprecedented opportunities to hear from the greatest minds across all event programming, including actor and director Joseph Gordon-Levitt, former United States Senator Barbara Boxer, Executive Consultant for the Los Angeles Clippers Jerry West, former Secretary of Defense Leon Panetta, and President of the Council on Foreign Relations Richard Haass.

On Sunday, Oracle CTO and Executive Chairman Larry Ellison opens the event with a special keynote showcasing all of the innovations delivered in the Oracle Cloud. Mainstage presentations will continue throughout the week, featuring Ellison, Oracle CEO Mark Hurd, and Oracle President of Product Development Thomas Kurian. Leaders from the world’s most interesting brands, including Carbon, Trek, FexEx and Gap, will join Oracle executives on stage to discuss pressing topics impacting business and technology today and in the future.

This year, Oracle OpenWorld brings innovation to learning through a new series of session formats developed in collaboration with Stanford University, as well as reimagined exhibition halls. The conference’s latest iteration of “Collective Learning” features cutting edge session designs, including: Brain Snacks, 1:1 conversations with fellow experts, and Make Your Case, hands-on workshops tackling the best Oracle case studies. Oracle OpenWorld Exchange, the conference’s redesigned exhibition hall, debuts to foster community, spark learning, promote innovation, and unite our customers, partners, and attendees.

“As we raise the curtain on Oracle OpenWorld 2017, we welcome more than 60,000 customers and partners to learn about transforming their business with Oracle Cloud,” said Judy Sim, Oracle’s Chief Marketing Officer. “The event has evolved as our customers’ needs have changed and is now one of the leading technology conferences in the world. Today, we are thrilled to bring a positive economic impact worth more than $3 billion to the City of San Francisco over the last 20 years.”

To Learn and Explore:
  • Sessions: Tap into an elite network of world-class speakers totaling 67,500+ years of industry experience. Select from 2,311 sessions presented by 3,048 customer and partner speakers, more than 523 Oracle demos and case studies showcasing emerging technology, as well as hundreds of partner and customer exhibitions.
  • Oracle Keynotes:
    • Sunday, October 1, 5:00 p.m. – 7:00 p.m.
      • Oracle CTO and Executive Chairman Larry Ellison opens the conference with an inside look at the future of Oracle Cloud and its innovation path.
      • Doug Fisher, Senior Vice President and General Manager, Software and Services Group, Intel, presents the power of data, and how data offers massive enterprise-class cloud computing opportunities.
    • Monday, October 2, 9:00 a.m. – 10:15 p.m.


      • Oracle CEO Mark Hurd reveals where we are now and where we are headed in a cloud foundational world. Joining him on stage will be leaders from Oracle customers Bloom Energy, FedEx and Gap.
    • Tuesday, October 3


      • 9:00 a.m. – 11:00 a.m. – Oracle President of Product Development Thomas Kurian and Dave Donatelli, Oracle Executive Vice President, Cloud Business Group, showcase how Oracle Cloud is harnessing the power of emerging technologies like artificial intelligence, Internet of Things, and blockchain to transform organizations of all sizes. They will be joined by Richard Noble, Director of the Bloodhound Project, an inspiring initiative that engages the next generation in science, technology, engineering and math by aiming to surpass the world land speed record.
      • 2:00 p.m. – 3:00 p.m. – Larry Ellison unveils the future of databases in the cloud, including Oracle Autonomous Database, the world’s first “self-driving” database.
    • Wednesday, October 4, 9:00 a.m. – 11:00 a.m.


      • Oracle CEO Mark Hurd returns to the mainstage with NetSuite’s Executive Vice President of Development Evan Goldberg and special guests, to discuss the role technology plays in getting ahead of the competition.
  • Oracle’s Leader’s Circle: Connect with luminaries on industry trends, foreign affairs, economics and security at this exclusive, invitation-only executive program hosted by Oracle CEOs Safra Catz and Mark Hurd. Join Senator Barbara Boxer and Newt Gingrich, 50th Speaker of the U.S. House of Representatives for a provocative discussion about the future of the United States.  
  • The Innovation Studio: Experience innovations from Design Tech High School students and Oracle Education Foundation. Meet startups from Oracle’s Startup Cloud Accelerator, and talk with Oracle customers, partners, and industry business unit experts.
  • Oracle Cloud User Experience Lab: Experience hands-on demos of the latest Release 13 Oracle Cloud Applications, and learn about Oracle’s vision for the future of work, including experimental robotics, artificial intelligence, augmented reality, chatbots, and more of the emerging technology tools in the smart UX toolkit.
  • JavaOne Developer Lounge: Use Oracle Internet of Things (IoT) and Big Data technologies to brew your own beer. Create your own sculptures and furniture with a 3D printer. Relive “The Matrix” and shoot your own slow motion video with 60 Raspberry Pi cameras in the BulletTime Photo Booth. Interact with a cloud chatbot robot powered by the Oracle Intelligent Bots running on Oracle Mobile Cloud Service.
  • Oracle Code Event: Join developers from around the world in this one-day event covering machine learning, chatbots, cloud, databases, programming languages, DevOps, and much more.
  • Oracle NetSuite SuiteConnect: The best of SuiteWorld comes to Oracle OpenWorld for the first time. Held on October 4, this program features NetSuite users, Oracle executives, product experts and partners.
  To Support the Community and Environment:
  • Oracle Academy’s JavaOne4Kids: Designed for children ages 10-16, attendees can use Raspberry Pi and Java programming to catch escaped Pokemon; create a robot and bring it to life; make computer games using Greenfoot and Stride; among other fun activities. Oracle Academy is one of Oracle’s key investments in our collective future. In fiscal year 2016, the program impacted over 3.5 million students in 120 countries through $3.75 billion in direct and in-direct resources.
  • Plant a Billion Trees: Learn how The Nature Conservancy and Oracle Giving are helping to advance reforestation globally. As part of its participation in The Nature Conservancy’s Plant a Billion trees initiative, Oracle has already achieved 41 percent of its goal to plant one million trees.
  • Dian Fossey Gorilla Fund International: Discover how Oracle Cloud is helping to save the gorillas. Get a sneak peek of an upcoming National Geographic three-part special on Dian Fossey’s life and work as a gorilla conservationist. Hear from Tara Stoinski, President, CEO and Chief Scientific Officer of the Dian Fossey Gorilla Fund about its 27-year partnership with Oracle, and how Oracle Cloud technology has enabled the organization to revolutionize its data management and make its database – the world’s largest, most comprehensive collection of data on a wild great ape population – available to scientists, researchers and students without charge.
  • Ride for a Reason: Support the victims of the recent hurricanes by choosing Lyft for Oracle OpenWorld transportation. Between October 1-5, five percent of the cost of rides will be donated to the American Red Cross. Enter code OOW17 using a Lyft business profile.
  To Connect and Play:
  • Oracle CloudFest.17: Dance the night away with Grammy award winners The Chainsmokers and sing along with pop sensation Ellie Goulding at Oracle’s legendary customer appreciation event taking place on October 4 at AT&T Park.
  • SuiteConnect NextUp: Celebrate the day’s experiences at a special concert with Royal Machines, joined by “special guests” on October 3 at Howard Street mainstage.
Contact Info
Julie Sugishita
Oracle Corporate Communications
About Oracle

The Oracle Cloud offers complete SaaS application suites for ERP, HCM and CX, plus best-in-class database Platform as a Service (PaaS) and Infrastructure as a Service (IaaS) from data centers throughout the Americas, Europe and Asia. For more information about Oracle (NYSE:ORCL), please visit us at www.oracle.com.

About Oracle OpenWorld

Oracle OpenWorld, the industry's most important business and technology conference for the past 20 years, hosts tens of thousands of in-person attendees as well as millions online. Dedicated to helping businesses leverage Cloud for their innovation and growth, the conference delivers deep insight into industry trends and breakthroughs driven by technology. Designed for attendees who want to connect, learn, explore and be inspired, Oracle OpenWorld offers more than 2,500 educational sessions led by more than 2,000 customers and partners sharing their experiences, first hand. With hundreds of demos and hands-on labs, plus exhibitions from more than 400 partners and customers from around the world, Oracle OpenWorld has become a showcase for leading cloud technologies, from Cloud Applications to Cloud Platform and Infrastructure. For more information; to register; or to watch Oracle OpenWorld keynotes, sessions, and more, visit www.oracle.com/openworld. Join the Oracle OpenWorld discussion on Twitter.


Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.

Talk to a Press Contact

Julie Sugishita

  • +1.650.506.0076

Partitioned Indexes

Hemant K Chitale - Fri, 2017-09-29 10:15
Most discussions about Partitioning in Oracle are around Table Partitioning.  Rarely do we come across Index Partitioning.
A couple of days ago, there was an Oracle Community question on Partitioned Indexes.

So, here is a quick listing of Index Partitioning options  (these tests are in

First, I start with a regular, non-partitioned table.

SQL> create table non_partitioned  
2 (id_col number,
3 data_col_1 number,
4 data_col_2 number,
5 data_col_3 varchar2(15)
6 )
7 /

Table created.


I now attempt to create an Equi-Partitioned (LOCAL) Index on it.

SQL> create index equi_part on non_partitioned (id_col) local;
create index equi_part on non_partitioned (id_col) local
ERROR at line 1:
ORA-14016: underlying table of a LOCAL partitioned index must be partitioned


As expected I can't create a LOCAL index on a non-partitioned table.

Can I create any partitioned index on this table ?

I try two different GLOBAL PARTITIONed Indexes

SQL> create index global_part   
2 on non_partitioned (id_col) global
3 partition by range (id_col)
4 (partition p_100 values less than (101),
5 partition p_200 values less than (201)
6 )
7 /
ERROR at line 6:
ORA-14021: MAXVALUE must be specified for all columns

SQL> create index global_part
2 on non_partitioned (id_col) global
3 partition by range (id_col)
4 (partition p_100 values less than (101),
5 partition p_200 values less than (201),
6 partition p_max values less than (MAXVALUE)
7 )
8 /

Index created.

SQL> create index global_part_comp
2 on non_partitioned (id_col, data_col_3) global
3 partition by range (id_col, data_col_3)
4 (partition p_1 values less than (101,'M'),
5 partition p_2 values less than (101,MAXVALUE),
6 partition p_3 values less than (201,'M'),
7 partition p_4 values less than (201,MAXVALUE),
8 partition p_max values less than (MAXVALUE, MAXVALUE)
9 )
10 /

Index created.


So, I must have a MAXVALUE partition for the Index.  Note that the two indexes above are now Partitioned without the table itself being partitioned.

SQL> select index_name, partitioned
2 from user_indexes
3 where table_name = 'NON_PARTITIONED'
4 order by 1
5 /

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


The above indexes are Prefixed Global Partitioned Indexes. Can I create a Non-Prefixed Global Partitioned Index -- an Index where the Partition Key is not formed by the left-most columns of the index.

SQL> create index global_part_nonprefix
2 on non_partitioned (id_col, data_col_3) global
3 partition by range (data_col_1)
4 (partition p_1 values less than (101),
5 partition p_2 values less than (201),
6 partition p_max values less than (MAXVALUE)
7 )
8 /
partition by range (data_col_1)
ERROR at line 3:
ORA-14038: GLOBAL partitioned index must be prefixed

SQL> !oerr ora 14038
14038, 00000, "GLOBAL partitioned index must be prefixed"
// *Cause: User attempted to create a GLOBAL non-prefixed partitioned index
// which is illegal
// *Action: If the user, indeed, desired to create a non-prefixed
// index, it must be created as LOCAL; otherwise, correct the list
// of key and/or partitioning columns to ensure that the index is
// prefixed


So, I have proved that a Non-Partitioned Table cannot have a LOCAL Partitioned Index or a Non-Prefixed Global Partitioned Index but can still have a Global Partitioned Index where the Partition Key is left-prefixed from the Index Key. Also, that a Global Partitioned Index can be a Composite Index with columns of different datatypes.

Let me now proceed with a Partitioned Table.

SQL> create table partitioned
2 (id_col number,
3 data_col_1 number,
4 data_col_2 number,
5 data_col_3 varchar2(15)
6 )
7 partition by range (id_col)
8 (partition p_100 values less than (101),
9 partition p_200 values less than (201),
10 partition p_max values less than (MAXVALUE)
11 )
12 /

Table created.


First, the Equi-Partitioned (LOCAL) Index.

SQL> create index part_equi_part
2 on partitioned (id_col) local
3 /

Index created.

SQL> select partition_name, partition_position
2 from user_ind_partitions
3 where index_name = 'PART_EQUI_PART'
4 order by 2
5 /

------------------------------ ------------------
P_100 1
P_200 2


The usage of the LOCAL keyword instead of GLOBAL defines the Index as equi-partitioned with the table.  Index Partitions are automatically created to match the Table Partitions with the same Partition Names.  It is possible to create a LOCAL Partitioned Index and manually specify Partition Names but this, in my opinion, is a bad idea.  Attempting to manually name each Partition for the Index can result in a mis-match between Table Partition Names and Index Partition Names.

Next, I define two GLOBAL Partitioned Indexes on this table.

SQL> create index part_gbl_part  
2 on partitioned (data_col_1) global
3 partition by range (data_col_1)
4 (partition p_1 values less than (1001),
5 partition p_2 values less than (2001),
6 partition p_3 values less than (3001),
7 partition p_4 values less than (4001),
8 partition p_max values less than (MAXVALUE)
9 )
10 /

Index created.

SQL> create index part_gbl_part_comp
2 on partitioned (data_col_2, data_col_3) global
3 partition by range (data_col_2, data_col_3)
4 (partition p_a values less than (10, 'M'),
5 partition p_b values less than (10, MAXVALUE),
6 partition p_c values less than (20, 'M'),
7 partition p_d values less than (20, MAXVALUE),
8 partition p_e values less than (30, 'M'),
9 partition p_f values less than (30, MAXVALUE),
10 partition p_max values less than (MAXVALUE, MAXVALUE)
11 )
12 /

Index created.

SQL> l
1 select index_name, partition_name, partition_position
2 from user_ind_partitions
3 where index_name in
4 (select index_name from user_indexes
5 where table_name = 'PARTITIONED'
6 )
7* order by 1,3
SQL> /

------------------ -------- ------------------
PART_GBL_PART      P_1                       1
PART_GBL_PART_COMP P_A                       1

15 rows selected.


The Equi-Partitioned (LOCAL) Index has the same number (and, recommended, names) of Partitions as the Table.
However, the GLOBAL Indexes can have different numbers of Partitions.

As with the first case, I cannot create a Global Non-Prefixed Partitioned Index (where the Index Partition key is not  a left-prefix of the Index).

SQL> create index part_global_part_nonprefix
2 on partitioned (id_col, data_col_3) global
3 partition by range (data_col_1)
4 (partition p_1 values less than (101),
5 partition p_2 values less than (201),
6 partition p_max values less than (MAXVALUE)
7 )
8 /
partition by range (data_col_1)
ERROR at line 3:
ORA-14038: GLOBAL partitioned index must be prefixed


In this blog post, I haven't touched on Partial Indexing (a 12c feature).

I haven't touched on Unique LOCALly Partitioned Indexes.

I haven't demonstrated the impact of Partition Maintenance operations (TRUNCATE, DROP, MERGE, ADD, SPLIT) on LOCAL and GLOBAL Indexes here -- although I have touched on such operations and LOCAL indexes in earlier blog posts.

Categories: DBA Blogs

SQL Server 2016: New Dynamic Management Views (DMVs)

Yann Neuhaus - Fri, 2017-09-29 08:32

In SQL Server 2016, you will discover a lot of new Dynamic Management Views(DMVs).
In this article, I will just give you a little overview of these useful views for us as DBA.

SQL Server 2012 has 145 DMVs and SQL Server 2014 has 166 DMVs.
Now, SQL Server 2016 has 185 DMVs.

How to see it?

It is very easy to have a look using the sys.all_objects view:

SELECT * FROM sys.all_objects WHERE TYPE=’V’ AND NAME LIKE ‘dm_%’ order by name ASC


From SQL Server 2012 to SQL Server 2014, we can notice that a lot of new DMVs comes with the In-Memory technology with the syntax “dm_xtp_xxxxxxxx” or “dm_db_xtp_xxxxxxxx”

In SQL Server 2016, a lot of new “dm_exec_xxxxxxxx” is present.

All definitions for these views come from the Microsoft documentation or web site.

To begin, you will see 10 DMVs for the PolyBase technology:

  • dm_exec_compute_node_status
  • dm_exec_dms_workers

A useful msdn page resumes all DMVs for these new views here

Other dm_exec_xxx views are basically usefull like:

  • dm_exec_query_optimizer_memory_gateways
    • Returns the current status of resource semaphores used to throttle concurrent query optimization.
    • Microsoft Reference here
  • dm_exec_session_wait_stats
    • Returns information about all the waits encountered by threads that executed for each session
    • Microsoft Reference here

3 new DMVs for the Columstore technology:

  • dm_column_store_object_pool
  • dm_db_column_store_row_group_operational_stats
    • Returns current row-level I/O, locking, and access method activity for compressed rowgroups in a columnstore index.
    • Microsoft Reference here
  • dm_db_column_store_row_group_physical_stats
    • Provides current rowgroup-level information about all of the columnstore indexes in the current database
    • Microsoft Reference here

2 new DMVs for Stretch Databases in the database context and with rda(remote database archive):

  • dm_db_rda_migration_status
    • For the current database, list of state information of the remote data archive schema update task.
    • Microsoft Reference here

This list can change if a Service Pack is  applied.
It is just for you to have a little reference view about these useful views! 8-)


Cet article SQL Server 2016: New Dynamic Management Views (DMVs) est apparu en premier sur Blog dbi services.


Subscribe to Oracle FAQ aggregator