OLAP and OLTP in same schema
Ravikanth Beevanapalli, December 02, 2014 - 5:55 pm UTC
Well, I kind of gave an explanation on the similar lines to my architecture team why I suggest to have multiple schema Vs single schema. But i am just a developer in my company, my opinion doesn't weigh much. But the only thing they say is 1) ease of maintenance, just opposite, no multiple users, no views,no synonyms, no user profiles to maintain etc 2) most of the big players like SAP has all their hundreds tables of different kind (OLTP/OLAP) in one monolithic schema.
December 02, 2014 - 6:52 pm UTC
1) no security - very easy.
2) and because they did it that way and made that decision 20 years ago, it must be right in the 21st century and they'd do it that way again for sure.... hmmmm
Yes, having multiple schemas makes you THINK and DESIGN more, that is sort of the idea here. It lets you set up multiple layers of defense.
The goal is not "make it easy for the developer", the goal is "build secure, robust systems". Easy for the developer in this case leads to security holes - holes that could easily be closed. No one said software development was going to be "easy"
You know what would be even easier? Just grant DBA to the application schema. Now it is really easy, I can do anything I want.
But wait, we don't do that (we *used* to, seriously - we *used* to and there probably are still 3rd party products that do)
A reader, December 04, 2014 - 7:21 pm UTC
I developed an application following Tom's rule explained in here
My thought
Karthick, December 09, 2014 - 11:40 am UTC
When we build a house we divide it into different areas. To mention a few…
1. Living room
2. Bed room
3. Bath room
4. Kitchen
What if we don’t have any of this and have one big room. You end up spending less money and time on the construction.
Sit back, put your entire family in a house which does not have any of these partitions and then write down the consequences.
The consequences could be alarming.
follow up question
A reader, August 11, 2015 - 9:03 pm UTC
Ok. I lost the battle with my "architecture" experts despite showing this post. I recommended to go with separate tablespaces for OLTP and OLAP. But they want to combine them into once monolithic tablespace. What could be downside of using same tablespace for both OLTP and OLAP?