technology behind DBaaS

Before we can analyze different use cases we need to first look at a couple of things that enable these use cases. The foundation for most of these use cases is data replication. We need to be able to replicate data from our on-premise database into a cloud database. The first issue is replicating data and the second is access rights to the data and database allowing you to pull the data into your cloud database.

Let’s first look at how data is stored in a database. If you use a Linux operating system, this is typically done by splitting information into four categories; ORACLE_HOME, +DATA, +FRA, and +RECO. The binaries that represent the database and all of the database processes go into the ORACLE_HOME or ORACLE_BASE. In the cloud this is dropped into /u01. If you are using non-rac the file system is a logical volume manager (LVM) where you stripe multiple disks to mirror or triple mirror data to keep a single disk failure from bringing down your database or data. If you are using a rac database this goes into ASM. ASM is a disk technology that manages replication and performance. There are a variety of books and websites written on this technology

LVM links

ASM links

The reason why we go into storage technologies is that we need to know how to manage how and where data is stored in our DBaaS. If we access everything with IaaS and roll out raw compute and storage, we need to know how to scale up storage if we run out of space. With DBaaS this is done with the scale up menu item. We can grow the file system by adding logical units to our instance and grow the space allocated for data storage or data logging.

The second file system that we should focus on is the +DATA area. This is where data is stored and all of our file extents and tables are located. For our Linux cloud database this is auto-provisioned into /u02. In our test system we create a 25 GB data area and get a 20G file system in the +DATA area.



If we look at the /u02 file system we notice that there is one major directory /u02/app/oracle/oradata. In the oradata there is one directory associated with the ORACLE_SID. In our example we called it ORCL. In this directory we have the control01.dbf, sysaux01.dbf, system01.dbf, temp01.dbf, undotbs01.dbf, and users01.dbf. These files are the place where data is stored for the ORCL SID. There is also a PDB1 directory in this file structure. This correlates to the pluggable database that we called PDB1. The files in this directory correspond to the tables, system, and user information relating to this pluggable database. If we create a second pluggable a new directory is created and all of these files are created in that directory. The users01.dbf, PDB1_users01.pdf in the PDB1 directory, file defines all of the users and their access rights. The system01.dbf file defines the tables and system level structures. In a pluggable database the system01 file defines the structures for the PDB1 and not the entire database. The temp01.dbf holds temp data tables and scratch areas. The sysaux01.dbf contains the system information contains the control area structures and management information. The undotbs01.dbf is the flashback area so that we can look at information that was stored three days ago in a table. Note that there is no undotbs01.dbf file in the pluggable because this is done at a global area and not at the pluggable layer. Backups are done for the SID and not each PID. Tuning of memory and system tunables are done at the SID layer as well.

Now that we have looked at the files corresponding to tables and table extents, we can talk about data replication. If you follow the methodology of EMC and NetApp you should be able to replicate the dbf files between two file systems. Products like SnapMirror allow you to block copy any changes that happen to the file to another file system in another data center. This is difficult to do between an on-premise server and cloud instance. The way that EMC and NetApp do this are in the controller layer. They log write changes to the disk, track what blocks get changed, and communicate the changes to the other controller on the target system. The target system takes these block changes, figures out what actual blocks they correspond to on their disk layout and update the blocks as needed. This does not work in a cloud storage instance. We deal on a file layer and not on a track and sector or bock layer. The fundamental problem with this data replication mechanism is that you must restart or ingest the new file into the database. The database server does not do well if files change under it because it tends to cache information in memory and indexes into data get broken if data is moved to another location. This type of replication is good if you have an hour or more recovery point objective. If you are looking at minutes replication you will need to go with something like DataGuard, GoldenGate, or Active DataGuard.

DataGuard works similar to the block change recording but does so at the database layer and not the file system/block layer. When an update or insert command is executed in the database, these changes are written to the /u04 directory. In our example the +REDO area is allocated for 9.8 GB of disk. If we look at our /u04 structure we see /u04/app/oracle/redo contains redoXX.log file. With DataGuard we take these redo files, compress them, and transfer them to our target system. The target system takes the redo file, uncompresses it, and applies the changes to the database. You can structure the changes either as physical logging or logical logging. Physical logging allows you to translate everything in the database and records the block level changes. Logic logging takes the actual select statement and replicates it to the target system. The target system either inserts the physical changes into the file or executes the select statement on the target database. The physical system is used more than the logical replication because logical has limitations on some of the statements. For example, any blob or file operations can not translate to the target system because you can’t guarantee that the file structure is the same between the two systems. There are a variety of books available on DataGuard. It is also important to note that DataGuard is not available for Standard Edition and Enterprise Edition but for High Performance Edition and Extreme Performance Edition only.

  • Oracle Data Guard 11g Handbook
  • Oracle Dataguard: Standby Database Failover Handbook
  • Creating a Physical Standby Documentation
  • Creating a Logical Standby Documentation

    Golden Gate is a similar process but there is an intermediary agent that takes the redo log, analyzes it, and translates it into the target system. This allows us to take data from an Oracle database and replicate it to SQL Server. It also allows us to go in the other direction. SQL Server, for example, is typically used for SCADA or process control systems. The Oracle database is typically used for analytics and heavy duty number crunching on a much larger scale. If we want to look at how our process control systems is operating in relation to our budget we will want to pull in the data for the process systems and look at how much we spend on each system. We can do this by either selecting data from the SQL Server or replicating the data into a table on the Oracle system. If we are doing complex join statements and pulling data in from multiple tables we would typically want to do this on one system rather than pulling the data across the network multiple times. Golden Gate allows us to pull the data into a local table and perform the complex select statements without having to suffer network latency more than the initial copy. Golden Gate is a separate product that you must pay for either on-premise or in the cloud. If you are replicating between two Oracle databases you could use Active DataGuard to make this work and this is available as part of Extreme Edition of the database.

    The /u03 area in our file system is where backups are placed. The file system for our sample system shows /u03/app/oracle/fast_recovery_area/ORCL. The ORCL is the ORACLE_SID of our installation. Note that there is no PDB1 area because all of the backup data is done at the system layer and not at the pluggable layer. The tool used to backup the database is RMAN. There are a variety of books available to help with RMAN as well as an RMAN online tutorial

    It is important to note that RMAN requires a system level access to the database. Amazon RDS does not allow you to replicate your data using RMAN but uses a volume snapshot and copies this to another zone. The impact of this is that first, you can not get your data out of Amazon with a backup and you can not copy your changes and data from the Amazon RDS to your on-premise system. The second impact is that you can’t use Amazon RDS for DataGuard. You don’t have sys access into the database which is required to setup DataGuard and you don’t have access to a filesystem to copy the redo logs to drop into. To make this available with Amazon you need to deploy the Oracle database into EC2 with S3 storage as the back end. The same is true with Azure. Everything is deployed into raw compute and you have to install the Oracle database on top of the operating system. This is more of an IaaS play and not a PaaS play. You loose patching of the OS and database, automated backups, and automatic restart of the database if something fails. You also need to lay out the file system on your own and select LVM or some other clustering file system to prevent data loss from a single disk corruption. All of this is done for you with PaaS and DBaaS. Oracle does offer a manual process to perform backups without having to dive deep into RMAN technology. If you are making a change to your instance and want a backup copy before you make the change, you can backup your instance manually and not have to wait for the automated backup. You can also change the timing if 2am does not work for your backup and need to move it to 4am instead.

    We started this conversation talking about growing a table because we ran out of space. With the Amazon and Azure solutions, this must be done manually. You have to attach a new logical unit, map it into the file system, grow the file system, and potentially reboot the operating system. With the Oracle DBaaS we have the option of growing the file system either as a new logical unit, grow the /u02 file system to handle more table spaces, or grow the /u03 file system to handle more backup space.


    Once we finish our scale up the /u03 file system is no longer 20 GB but 1020 GB in size. The PaaS management console allocates the storage, attaches the storage to the instance, grows the logical volume to fill the additional space, and grows the file system to handle the additional storage. It is important to note that we did not require root privileges to do any of these operations. The DBA or cloud admin can scale up the database and expand table resources. We did not need to involve an operating system administrator. We did not need to request an additional logical unit from the storage admin. We did not need to get a senior DBA to reconfigure the system. All of this can be done either by a junior DBA or an automated script to grow the file system if we run out of space. The only thing missing for the automated script is a monitoring tool to recognize that we are running into a limit. The Oracle Enterprise Manager (OEM) 12c and 13c can do this monitoring and kick off processes if thresholds are crossed. It is important to note that you can not use OEM with Amazon RDS because you don’t have root, file system, or system access to the installation which is required to install the OEM agent.

    In summary, we looked at the file system structure that is required to replicate data between two instances. We talked about how many people use third party disk replication technologies to “snap mirror” between two disk installations and talked about how this does not work when replicating from an on-premise to a cloud instance. We talked about DataGuard and GoldenGate replication to allow us to replicate data to the cloud and to our data center. We looked at some of the advantages of using DBaaS rather than database on IaaS to grow the file system and backup the database. Operations like backup, growing the file system, and adding or removing processors temporarily can be done by a cloud admin or junior DBA. These features required multiple people to make this happen in the past. All of these technologies are needed when we start talking about use cases. Most of the use cases assume that the data and data structures that exist in your on-premise database also exist in the cloud and that you can replicate data to the cloud as well as back from the cloud. If you are going to run a disaster recovery instance in the cloud, you need to be able to copy your changes to the cloud, make the cloud a primary instance, and replicate the changes back to your data center once you bring your database back online. The same is true for development and testing. It is important to be able to attach to both your on-premise database and database provisioned in the cloud and look at the differences between the two configurations.

657 thoughts on “technology behind DBaaS”

  1. When I read an article on this topic, totosite the first thought was profound and difficult, and I wondered if others could understand.. My site has a discussion board for articles and photos similar to this topic. Could you please visit me when you have time to discuss this topic?

  2. Comprehensive side effect and adverse reaction information. Everything what you want to know about pills. https://amoxicillins.com/ amoxicillin for sale online
    Learn about the side effects, dosages, and interactions. What side effects can this medication cause?

  3. Read here. Comprehensive side effect and adverse reaction information.
    male ed drugs
    Comprehensive side effect and adverse reaction information. Prescription Drug Information, Interactions & Side.

  4. Medicament prescribing information. safe and effective drugs are available.
    ed pills
    Read information now. Definitive journal of drugs and therapeutics.

  5. What side effects can this medication cause? Everything what you want to know about pills.
    ed treatments
    Learn about the side effects, dosages, and interactions. Top 100 Searched Drugs.

  6. Some are medicines that help people when doctors prescribe. Everything information about medication.
    https://clomiphenes.com cheap clomid without dr prescription
    п»їMedicament prescribing information. Everything about medicine.

  7. Best and news about drug. What side effects can this medication cause?

    https://clomidc.fun/ get clomid online
    Learn about the side effects, dosages, and interactions. Learn about the side effects, dosages, and interactions.

  8. At the beginning, I was still puzzled. Since I read your article, I have been very impressed. It has provided a lot of innovative ideas for my thesis related to gate.io. Thank u. But I still have some doubts, can you help me? Thanks.

  9. Быстромонтажные здания: бизнес-польза в каждой детали!
    В современной сфере, где минуты – капитал, быстровозводимые здания стали решением, спасающим для бизнеса. Эти новаторские строения сочетают в себе высокую прочность, экономическую эффективность и ускоренную установку, что делает их идеальным выбором для бизнес-проектов разных масштабов.
    Быстровозводимые здания
    1. Скорость строительства: Время – это самый важный ресурс в финансовой сфере, и объекты быстрого монтажа дают возможность значительно сократить время строительства. Это особенно ценно в условиях, когда срочно требуется начать бизнес и начать получать прибыль.
    2. Экономия средств: За счет улучшения производственных процедур элементов и сборки на объекте, экономические затраты на моментальные строения часто снижается, по сопоставлению с обыденными строительными проектами. Это позволяет сэкономить средства и добиться более высокой доходности инвестиций.
    Подробнее на http://www.scholding.ru
    В заключение, сооружения быстрого монтажа – это лучшее решение для коммерческих инициатив. Они включают в себя быстроту монтажа, экономическую эффективность и высокую прочность, что придает им способность превосходным выбором для деловых лиц, готовых к мгновенному началу бизнеса и получать деньги. Не упустите момент экономии времени и средств, наилучшие объекты быстрого возвода для вашей будущей задачи!

  10. 第1040章第1040章方寻笑着问 牛皮癣网上说能治好可信吗 道:“维纳斯 皮炎头癣头皮银屑病 ,既然你这么懂马,那你应该很会骑马吧?”不等维纳斯说话,戴安娜“扑哧”一笑,抢着说道:“哥,维纳斯虽然很懂马,但她根牛皮癣网上说能治好可信吗本就不会骑马。她来我家很多次了,每次来都要学骑马,可一直都没学会。所以说啊,咱们的维纳斯大美女,除了会搞研究,运动神经是真的不发达。”“ 鸡蛋黄油治牛皮癣多久抹一次 戴安娜,你别说了!”维纳斯俏脸羞红,很皮炎头癣头皮银屑病是难为情。方寻好笑地摇了摇头,“维鸡蛋黄油治牛皮癣多久抹一次纳斯,要不我教你怎么骑马,怎么样?”“好啊!”维纳斯欣喜地点了点头,“方寻,你今天可得把我教会哦!”“包在我身上!”方寻拍着胸脯保证。随后,戴安娜和维纳斯两人选了

  11. Забота о домашнем пространстве – это забота о приятности. Утепление фасадов – это не только изысканный облик, но и обеспечение тепла в вашем уголке уюта. Специалисты, наша команда профессионалов, предлагаем вам превратить ваш дом в идеальный уголок для проживания.
    Наши творческие решения – это не просто теплоизоляция, это художественная работа с каждым элементом. Мы добиваемся гармонии между изысканностью и эффективностью, чтобы ваш дом стал не только теплым, но и прекрасным.
    И самое важное – приемлемые расходы! Мы уверены, что профессиональные услуги не должны быть неподъемными по цене. Утепление дома цена за квадратный метр начинается всего начиная с 1250 руб/м².
    Использование современных материалов и технологий позволяют нам создавать утепление, которое долговечно и надежно. Забудьте о холодных стенах и дополнительных расходах на отопление – наше утепление станет вашим надежным щитом от холода.
    Подробнее на веб-сайте компании
    Не откладывайте на потом заботу о радости жизни в вашем жилье. Обращайтесь к опытным строителям, и ваше жилище превратится настоящим творческим шедевром, которое принесет вам тепло и удовлетворение. Вместе мы создадим дом, в котором вам будет по-настоящему комфортно!

  12. 第1272章 解脱了第六感告诉他,她是因为他才会变成现在这样恍恍惚惚的。如何提高牛皮癣的治疗效果“我爸出国了?你都知道了?”好在,厉凌烨一说起莫启凡,白纤纤 如何提高牛皮癣的治疗效果 终于停止了默默的哭泣,抬头看向了厉凌烨。“嗯,出国了,这是很确切的消息。”“为什么联系不上?”白纤纤关注的却是这一点,联系不上莫启凡,是不是代表…… 头皮银屑病染发后怎么样 一想到莫启凡也有可能是出事了,她心口骤然一跳,小脸已经白了。“他去了南极。”“南极?”白纤纤低喃着这两个字,眸中若有所思,随即眼睛亮了起来,“他是去找妈妈了,一定是去找妈妈了,厉凌烨,你告诉我,他现在结婚了吗?他还有除了我以外其它的孩子吗?”这几天,她偶尔会想起莫启凡,全都是这两个问题。也是因 牛皮癣跟接触油漆有关系吗

  13. Сайт https://fotonons.ru/ предлагает обширный спектр концепций в дизайне и украшении интерьеров через фотографии. Вот некоторые ключевые моменты:

    Вдохновение для Интерьера:

    Показ практических рекомендаций для улучшения жилых пространств.
    Акцент на различные стили, включая лофт.
    Разнообразие Контента:

    Оформление балконов, гостинных, спален и других пространств.
    Обеспечение богатого фонда идей для преобразования дома или рабочего пространства.
    Практическое Применение:

    Идеи по внедрению этих стилей в реальных условиях.
    Вдохновляющие примеры, показывающие возможности преображения пространства.
    Этот текст увеличивает детализацию описания сайта, добавляет структуру в виде списков и перечислений, и размножен с использованием синонимов для увеличения вариативности.

    ___________________________________________________

    Не забудьте добавить наш сайт в закладки: https://fotonons.ru/

  14. 第7880章第78 银屑病喝酵素管用吗 80章还是因为他们太弱了……若是他们足够强大,不管有什么浩劫降临,他们都能应对,都能化解。方寻和叶飞等人心中叹息。但,这也更加坚定了他们要变得更加强 手部牛皮癣需要怎么治疗 大的信念。他们还有一年时间,一年时间足以改变很多东西。太苍圣皇叹息了声,道:“如果能得知这场浩劫来自于哪里,跟脚在哪儿,我们自然能提前阻止。可现在,我们根本推算不到这场浩劫的跟脚,所以,即使我们想阻止,也根本阻止不了……”九天娲皇眉头紧锁,眼神黯淡,“难 牛皮癣这病的病因是什么啊 道当年那场浩劫的悲剧又要重演了么?”听到这话,轩辕圣帝几人也都深深叹息了声。每每想到当年那场浩劫,那场悲剧,他们就心痛不已。即使最后他们渡过了那场浩劫,但却无法复活

  15. 第1359章 一点都 牛皮癣的诊断依据是什么 不难为她介于象与不象之间,那种感觉让人抓心挠肝似的,很难受。穆暖暖听到厉晓 典型牛皮癣有什么病因 宁说老太爷已经快八十岁了,再扭头看厉晓维和厉晓宁,她皱起了眉头,“你们爷爷身体很不好吗?”“嗯,我太爷爷上个月才做过手术。”这次,不等厉晓宁说,厉晓维率先开口。穆暖暖咬了咬唇,她这是什么命。一不留神的惹上了两个怎么甩都甩不掉的祖宗。“厉晓宁,明早什么时候 蚊子咬了之后又成了银屑病 到家?”“七点的牛皮癣的诊断依据是什么飞机,到t市可能典型牛皮癣有什么病因要中午了。”穆暖暖直接挂断手机,也不管自己是不是觉得这个厉晓宁有些熟悉了。她现在不想理会任何人。谁都不想理。直接就坐席地而坐的坐到了园子里的草坪上发起呆来。烦燥。很烦燥。却,偏又

  16. buy hydroxychloroquine potential as an adjunctive therapy in psychiatric disorders is an area of ongoing investigation. Preclinical studies suggest that it may have mood-stabilizing effects, possibly through its influence on neurotransmitter systems. Clinical trials exploring its efficacy in conditions like bipolar disorder and treatment-resistant depression are underway.

Leave a Reply to Fosnxs Cancel reply

Your email address will not be published. Required fields are marked *