SlideShare a Scribd company logo
1 of 14
DATABASE
Assignment
1
Table of Contents
Galfar Eng. & Contracting............................................................................................................. 3
Distributed system........................................................................................................................ 3
Types of Distributed..................................................................................................................... 4
References of distributed system ............................................................................................. 4
Quires.......................................................................................................................................... 4
Insert........................................................................................................................................ 5
Update ..................................................................................................................................... 5
Recover.................................................................................................................................... 6
Redo log file................................................................................................................................. 8
Backup Policy............................................................................................................................... 8
Effect........................................................................................................................................... 9
Groups........................................................................................................................................10
References of redo log files .........................................................................................................10
References..................................................................................................................................11
2
Task: 2
Galfar Engineering and Contracting SAOG:
History:
Galfar is a multinational company in Muscat Oman that provides services all over the world.
Galfar Company has been established in 1972. The founder of this company is P Muhammad
Ali, P Muhammad Ali basically from India.
Galfar provides services in the field of oil and gas. It will also give the services in the field of
engineering and contracting, industry, energy, and other infrastructure. The company has
worked in the Middle East and earned revenue of about the 1billion USD.
Countries:
 Qatar
 India
 Kuwait
 Dubai etc.
Diagram:
3
Oil and Gas:
The Galfar started the services of oil and gas in the Dukhan Qatar in 1995. It provides the
services with quality and become the famous sector in Qatar. It has been working for the last
26 years. The company works hard and get its first contract in 2000. Then working and becomes
the most reputation sector in Qatar.
Civil Engineering:
The Galfar engineering supplies the services in the field of Civil Engineering. Because it has
the firstoperating unit in Oman.it willissuethe services inthe fieldof civilis landmark projects
like the educational institutions, stadia, showrooms, hospitals, housing complex, and the
residence, etc. The Galfar Company also gives the chance to the electrical and mechanical
engineers to work with the company.
Investment:
The Galfar company has also delivered the services of the investment because any company
invests the amount in the Galfar company for earned the money from it. Many companies
invested the amount for shareholding for the main companies which invested the amount is
Aspire projects and services and the second company name is ready to mix. These are the two
companies which invested the money.
Database Architecture:
The given statement as a data administers which database we used for this multinational
company. We use distributes architecture because the company has offices in different
countries.
DistributedArchitecture:
The distributed architecture we can see from the name that distributes means divided the
anything that’s way distributed architecture used for the multinational companies. Because the
multinational company has the different sectors in the world.
Therefore, the distributed architecture follows the client-server model which is used for the
client will always request the server and the server provide the output to the client. In this
statement same way, different countries request the services for and the Galfar gives the
services which the client has to be needed. The distributed provides the services of the oil and
gas, civil and many others infrastructure.
The distributes systems the Galfar company come with up the client-server model. For this
model, the Galfar delivers the different countries like Qatar, Kuwait, and Dubai. For these
services, the Galfar company hires an employee from outside the country. Now the Galfar
become the most famous company in the world providing the services. For this purpose, the
figure is given below describes the services of the Galfar Company. Galfar company gives the
satisfaction of his client. It will also issue the quality work given to the client to improve their
quality.
4
Diagram:
Types:
Homogenous DistributedArchitecture:
Homogenous distributes architecture means the Galfar Company worked with his branches
which works outside the country. Because his branches work on the different sectors. In
homogenous the sectors are worked with his database all over the world where the branches
are working.
Heterogeneous DistributedArchitecture:
The heterogeneous distributed architecture we will see from the name means that the Galfar
company worked with different organizations. In the different sectors, the Galfar will work
with impressive work and also gives some quality things means give the discount on some
sectors to work with the other organization. so in this way, we will use the distributes system
for any multinational company which has different sectors are working in different countries.
5
Task: 3
Part: (a)
Create Tablespace Al Magd Abdullah Sloum Al Shukairi15F14344 datafile ‘Al Magd
Abdullah Sloum Al Shukairi15F14344.dbf’ is the size 5m table reuse index auto-extend will
be on the forward 5m and the maximum size of 100m;
In the first, we will identify the tablespace after generating the tablespace of the keyword.
Therefor the following case the name of the table is tbs1.
In the 2nd we will also identify the path of the tablespace of the datafiles in the clause of the
datafiles.
In the 3rd we can identify the tablespace size of the clause. In the given problem we see that
the 5m donate the 5MB value this is a little quiet.
Features:
In given example need four optional features of the tablespace.
 Table
 Reuse
 Index
 autoextend
Table:
In tablespace, we can create in the form of rows and columns where we can add the values of
any data about any person. Because in the table there are rows and columns. The rows are
horizontal and the columns are vertical in the table where we can store the data of the
organization.
Reuse:
If we want to use the table which already taken in the tablespace. We will use the reuse to
specify the files in the table.
Index:
We use the index to identify the value of the tables in the database. The index tells us the
location of the database of any tablespace.
Autoextend:
Autoextend is the feature of the tablespace. It will extend automatically when it reaches the
value which value is given to the size of the limit.
Part: (b)
We can generate the user easily CREATE USER Al Magd Abdullah Sloum Al
Shukairi15F14344 IDENTIFIED By My Password;
6
ALTER USER Al Magd Abdullah Sloum Al Shukairi15F14344 DEFAULT TABLESPACE
Al Magd Abdullah Sloum Al Shukairi QUOTA 3M ON Al Magd Abdullah Sloum Al Shukairi;
Gives SELECT, INSERT, UPDATE, DELETE ON Al Magd Abdullah Sloum Al Shukairi
branch, Al Magd Abdullah Sloum Al Shukairi branch supplier TO Al Magd Abdullah Sloum
Al Shukairi;
Part: (C)
I will select the company and generate the name of two tables of the organization. The company
name is here first name Al Magd Abdullah Sloum Al Shukairi sector and the second name of
this sector is Al Magd Abdullah Sloum Al Shukairi
Branch supplier, so now we create the two tables of the company.
 Generate the table Al Magd Abdullah Sloum Al Shukairi sector (sector name char(30),
not null, sector id primary key, product char(20), the date of transition date)
 Make the table Al Magd Abdullah Sloum Al Shukairi sector supplier (sector supply
name char(30) not null and unique, sector suppliers id primary key, product details of
char(400), the supplier date, Foreign key (sector id) )
Now we can insert the values into the table:
 INSERT the table INTO Al Magd Abdullah Sloum Al Shukairi sector (sector id, sector
name, transaction of the date, product of the company name) VALUES ('111', 'Dell',
'1/11/21', 'PC');
 INSERT the table INTO Al Magd Abdullah Sloum Al Shukairi sector (sector id, sector
name, transaction of the date, product of the company name) VALUES ('113',
'instruments ', '10/9/21', 'Oppo');
 INSERT the table INTO Al Magd Abdullah Sloum Al Shukairi sector (sector id, sector
name, transaction of the date, product of the company name) VALUES ('112', 'Iphone',
'3/10/21', 'Oppo');
 INSERT the table INTO Al Magd Abdullah Sloum Al Shukairi sector (sector id, sector
name, transaction of the date, product of the company name) VALUES ('113',
'instruments ', '10/9/21', 'Loud speakers');
Now we generate the sector supplier:
 INSERT the table INTO Al Magd Abdullah Sloum Al Shukairi sector supplier (sector
id, sector name, transaction of the date, product of the company name) VALUES ('200',
'Ali', '4/4/20', 'Lenovo');
 INSERT the table INTO Al Magd Abdullah Sloum Al Shukairi sector (sector id, sector
name, transaction of the date, product of the company name) VALUES ('201', 'Smith',
'3/10/21', 'I phone');
 INSERT the table INTO Al Magd Abdullah Sloum Al Shukairi sector (sector id, sector
name, transaction of the date, product of the company name) VALUES ('202', 'Akbar ',
'10/9/21', 'Galaxy phone');
 INSERT the table INTO Al Magd Abdullah Sloum Al Shukairi sector (sector id, sector
name, transaction of the date, product of the company name) VALUES ('203', 'Usman
', '10/9/21', 'Oppo')
7
Part: (d)
Flashback:
As we know that we can we can use the flashback data use for retrieving the past data which
we lost and make the old data into the previous state. That’s called flashback data.
Record Recover: 1
Select *from Al Magd Abdullah Sloum Al Shukairi sector
Update Al Magd Abdullah Sloum Al Shukairi sector set=’John’ where sector id= 111;
Select *from Al Magd Abdullah Sloum Al Shukairi sector
Select Sector id, name from Al Magd Abdullah Sloum Al Shukairi sector
As of timestamp
T0 timestamp (‘2021-09-09 12:30:59 ’,yyyy-mm-dd:mi:ss’);
Record Recover: 2
Select *from Al Magd Abdullah Sloum Al Shukairi sector
Update Al Magd Abdullah Sloum Al Shukairi sector set=’smith’ where sector id= 112;
Select *from Al Magd Abdullah Sloum Al Shukairi sector
Select Sector id, name from Al Magd Abdullah Sloum Al Shukairi sector
As of timestamp
T0 timestamp (‘2021-08-08 1:20:20 ’,yyyy-mm-dd:mi:ss’);
Screenshot:
8
9
Task: 4
RedoLog Files:
As we know that the redo log files are those files that we can use for the recovery of the
database. In redo log files if we want to change the data of the database. We need a space where
we can store the data. We can change this data and store it in the redo log file. If the data is lost
in the time of changes the data will store in this redo log files?
10
Diagram:
Backup Policy:
Redo log files are operating system files used by Oracle to maintain logs of all transactions
performed against the database. The primary purpose of these log files is to allow Oracle to
recover changes made to the database in the case of a failure.
The redo log entries (log backups) are required to recover the database instance after certain
system breakdowns. Redo log entries are where the database system logs all changes that
database users make to data
As a database administrator to solve the problem of the failure of the database I will use each
portion of the oracle database is attached within the files of the redone logo. Because those files
of redo logo files protect the database from any failure of the oracle database. If any component
is not working due to any reason it will only destroy the data of this component, not the whole
database oracle.
To backup all archived redo log files in the database, use this command:
 RMAN> backup archive log all; additionally, backup of archived redo log files may
be done after every backup command. ...
 SQL> select. ...
 RMAN> backup tablespace users plus archive log; Starting backup at 17-AUG-09.
11
Effect:
A redo log file might become corrupted while the database is open, and ultimately stop
database activity because archiving cannot continue. In this situation the ALTER
DATABASE CLEAR LOGFILE statement can be used to reinitialize the file without
shutting down the database.
It is permissible to drop redo log files so that a multiplexed redo log becomes temporarily
asymmetric. For example, if you use duplexed groups of redo log files, you can drop one
member of one group, even though all other groups have two members each.
If the redo log files are not working properly for this purpose we can use the achieve log mode.
Arhieve log mode we will use for determining the online redo log files will not be overwritten
the data. These achieve log files are placed in the disk for safety.
To determine the achieve log not task their performance. There are issues are created for this
purpose they issue solved by the achieve log mode.
Achieve log mode generate the high usage of the CPU.LGWR is the archive mode which will
be word hard to achieve the goals because in this the rate of generation of the achieve mode is
high.
In achieving log mode because high log generation will produce the frequent log switches that’s
cause the checkpoint of the frequency and slow down the disk. It will also use to additional
CPU to get the backup data of the oracle database administration.
12
Redo Groups:
The redo log for a database consists of groups of redo log files. A group consists of a redo log
file and its multiplexed copies. Each identical copy is considered to be a member of that group.
Each group is defined by a number, such as group 1 and group 2.
If we want to create the groups of redo log files we create the instance with at least the two
groups for making the groups in the redo log file. For this purpose, you can inactive the redo
logo file. You want to put the group. We will first force them to switch off a log is occur.
To create a new group of redo log files, use the SQL statement ALTER DATABASE with the
ADD LOGFILE clause. The following statement adds a new group of redo logs to the database:
ALTER DATABASE ADD LOGFILE ('/oracle/dbs/log1c. rdo', '/oracle/dbs/log2c).
Diagram:
13
References
[1] L. e. a. Gondelman,"Gondelman,Léon,etal."Distributedcausal memory:modular specification
and verificationinhigher-orderdistributedseparationlogic."Proceedingsof the ACMon
ProgrammingLanguages5. POPL(2021): 1-29.".
[2] C.-O.e.a. Truică, "Truică,Ciprian-Octavian,etal."TextBenDS:agenerictextualdatabenchmark
for distributedsystems."InformationSystemsFrontiers23.1(2021): 81-100.".
[3] "http://www.ijctjournal.org/volume8/issue1/ijct-v8i1p8.pdf".
[4] R. A. e.a. Tomakova,"Tomakova,R.A.,et al."Analysisandclassificationof X-rayimages based
on intelligentagentsindistributedsystems."Journal of Physics:Conference Series.Vol.1801.
No.1. IOPPublishing,2021.".
[5] A. Li,"Li, Yiwu."ResearchonRedo Log RecordLocatingMechanisminSQL ServerInstance
Recovery."Journal of Physics:Conference Series.Vol.1952. No.3. IOPPublishing,2021.".
[6] D. a. T. K. ". R. Kuhn,"Kuhn,Darl,andThomas Kyte."InvestigatingRedo."Oracle Database
Transactionsand LockingRevealed.Apress,Berkeley,CA,2021. 189-218.".
[7] D. a. T. K. Kuhn, "Kuhn,Darl,and ThomasKyte."RedoandUndo." Oracle Database Transactions
and LockingRevealed.Apress,Berkeley,CA,2021. 161-187.".
[8] "https://ieeexplore.ieee.org/abstract/document/9390978/".
[9] Z. e.a. Bin,"Bin,Zhang,et al."DesignandImplementationof Incremental DataCapturingin
WirelessNetworkPlanningbasedonLogMining."2021 IEEE 5th AdvancedInformation
Technology,ElectronicandAutomationControl Conference (IAEAC).Vol.5.IEEE, 2021.".

More Related Content

What's hot

How to Create a l10n Payroll Structure
How to Create a l10n Payroll StructureHow to Create a l10n Payroll Structure
How to Create a l10n Payroll StructureOdoo
 
Reactive, component 그리고 angular2
Reactive, component 그리고  angular2Reactive, component 그리고  angular2
Reactive, component 그리고 angular2Jeado Ko
 
Web2py tutorial to create db driven application.
Web2py tutorial to create db driven application.Web2py tutorial to create db driven application.
Web2py tutorial to create db driven application.fRui Apps
 
Beyond php it's not (just) about the code
Beyond php   it's not (just) about the codeBeyond php   it's not (just) about the code
Beyond php it's not (just) about the codeWim Godden
 
Caching and tuning fun for high scalability @ LOAD2012
Caching and tuning fun for high scalability @ LOAD2012Caching and tuning fun for high scalability @ LOAD2012
Caching and tuning fun for high scalability @ LOAD2012Wim Godden
 
Slick: Bringing Scala’s Powerful Features to Your Database Access
Slick: Bringing Scala’s Powerful Features to Your Database Access Slick: Bringing Scala’s Powerful Features to Your Database Access
Slick: Bringing Scala’s Powerful Features to Your Database Access Rebecca Grenier
 
Web2py Code Lab
Web2py Code LabWeb2py Code Lab
Web2py Code LabColin Su
 
Lean React - Patterns for High Performance [ploneconf2017]
Lean React - Patterns for High Performance [ploneconf2017]Lean React - Patterns for High Performance [ploneconf2017]
Lean React - Patterns for High Performance [ploneconf2017]Devon Bernard
 
Building data flows with Celery and SQLAlchemy
Building data flows with Celery and SQLAlchemyBuilding data flows with Celery and SQLAlchemy
Building data flows with Celery and SQLAlchemyRoger Barnes
 
Workshop 23: ReactJS, React & Redux testing
Workshop 23: ReactJS, React & Redux testingWorkshop 23: ReactJS, React & Redux testing
Workshop 23: ReactJS, React & Redux testingVisual Engineering
 
Workshop 5: JavaScript testing
Workshop 5: JavaScript testingWorkshop 5: JavaScript testing
Workshop 5: JavaScript testingVisual Engineering
 
Declarative Internal DSLs in Lua: A Game Changing Experience
Declarative Internal DSLs in Lua: A Game Changing ExperienceDeclarative Internal DSLs in Lua: A Game Changing Experience
Declarative Internal DSLs in Lua: A Game Changing ExperienceAlexander Gladysh
 

What's hot (20)

How to Create a l10n Payroll Structure
How to Create a l10n Payroll StructureHow to Create a l10n Payroll Structure
How to Create a l10n Payroll Structure
 
Functions
FunctionsFunctions
Functions
 
Reactive, component 그리고 angular2
Reactive, component 그리고  angular2Reactive, component 그리고  angular2
Reactive, component 그리고 angular2
 
Web2py tutorial to create db driven application.
Web2py tutorial to create db driven application.Web2py tutorial to create db driven application.
Web2py tutorial to create db driven application.
 
Presto in Treasure Data
Presto in Treasure DataPresto in Treasure Data
Presto in Treasure Data
 
Beyond php it's not (just) about the code
Beyond php   it's not (just) about the codeBeyond php   it's not (just) about the code
Beyond php it's not (just) about the code
 
Caching and tuning fun for high scalability @ LOAD2012
Caching and tuning fun for high scalability @ LOAD2012Caching and tuning fun for high scalability @ LOAD2012
Caching and tuning fun for high scalability @ LOAD2012
 
Graphql, REST and Apollo
Graphql, REST and ApolloGraphql, REST and Apollo
Graphql, REST and Apollo
 
Load Data Fast!
Load Data Fast!Load Data Fast!
Load Data Fast!
 
Slick: Bringing Scala’s Powerful Features to Your Database Access
Slick: Bringing Scala’s Powerful Features to Your Database Access Slick: Bringing Scala’s Powerful Features to Your Database Access
Slick: Bringing Scala’s Powerful Features to Your Database Access
 
Web2py Code Lab
Web2py Code LabWeb2py Code Lab
Web2py Code Lab
 
Nativescript angular
Nativescript angularNativescript angular
Nativescript angular
 
OneRing @ OSCamp 2010
OneRing @ OSCamp 2010OneRing @ OSCamp 2010
OneRing @ OSCamp 2010
 
Lean React - Patterns for High Performance [ploneconf2017]
Lean React - Patterns for High Performance [ploneconf2017]Lean React - Patterns for High Performance [ploneconf2017]
Lean React - Patterns for High Performance [ploneconf2017]
 
Map kit light
Map kit lightMap kit light
Map kit light
 
Building data flows with Celery and SQLAlchemy
Building data flows with Celery and SQLAlchemyBuilding data flows with Celery and SQLAlchemy
Building data flows with Celery and SQLAlchemy
 
Workshop 23: ReactJS, React & Redux testing
Workshop 23: ReactJS, React & Redux testingWorkshop 23: ReactJS, React & Redux testing
Workshop 23: ReactJS, React & Redux testing
 
Cassandra 2.2 & 3.0
Cassandra 2.2 & 3.0Cassandra 2.2 & 3.0
Cassandra 2.2 & 3.0
 
Workshop 5: JavaScript testing
Workshop 5: JavaScript testingWorkshop 5: JavaScript testing
Workshop 5: JavaScript testing
 
Declarative Internal DSLs in Lua: A Game Changing Experience
Declarative Internal DSLs in Lua: A Game Changing ExperienceDeclarative Internal DSLs in Lua: A Game Changing Experience
Declarative Internal DSLs in Lua: A Game Changing Experience
 

Similar to 5952 database systems administration (comp 1011.1)-cw1

ADBMS ASSIGNMENT
ADBMS ASSIGNMENTADBMS ASSIGNMENT
ADBMS ASSIGNMENTLori Moore
 
La potenza è nulla senza controllo
La potenza è nulla senza controlloLa potenza è nulla senza controllo
La potenza è nulla senza controlloGiuliano Latini
 
La potenza è nulla senza controllo
La potenza è nulla senza controlloLa potenza è nulla senza controllo
La potenza è nulla senza controlloGiuliano Latini
 
Working with CloudStack Usage Data - CCCEU13
Working with CloudStack Usage Data - CCCEU13Working with CloudStack Usage Data - CCCEU13
Working with CloudStack Usage Data - CCCEU13ShapeBlue
 
Working with CloudStack Usage Data
Working with CloudStack Usage DataWorking with CloudStack Usage Data
Working with CloudStack Usage DataTariq Iqbal
 
Big Data: Getting off to a fast start with Big SQL (World of Watson 2016 sess...
Big Data: Getting off to a fast start with Big SQL (World of Watson 2016 sess...Big Data: Getting off to a fast start with Big SQL (World of Watson 2016 sess...
Big Data: Getting off to a fast start with Big SQL (World of Watson 2016 sess...Cynthia Saracco
 
SetFocus SQL Portfolio
SetFocus SQL PortfolioSetFocus SQL Portfolio
SetFocus SQL Portfoliogeometro17
 
Successfully Implement Responsive Design Behavior with Adobe Experience Manager
Successfully Implement Responsive Design Behavior with Adobe Experience ManagerSuccessfully Implement Responsive Design Behavior with Adobe Experience Manager
Successfully Implement Responsive Design Behavior with Adobe Experience ManagerPerficient, Inc.
 
How We Built the Private AppExchange App (Apex, Visualforce, RWD)
How We Built the Private AppExchange App (Apex, Visualforce, RWD)How We Built the Private AppExchange App (Apex, Visualforce, RWD)
How We Built the Private AppExchange App (Apex, Visualforce, RWD)Salesforce Developers
 
Excel Datamining Addin Beginner
Excel Datamining Addin BeginnerExcel Datamining Addin Beginner
Excel Datamining Addin Beginnerexcel content
 
Discover Data That Matters- Deep dive into WSO2 Analytics
Discover Data That Matters- Deep dive into WSO2 AnalyticsDiscover Data That Matters- Deep dive into WSO2 Analytics
Discover Data That Matters- Deep dive into WSO2 AnalyticsSriskandarajah Suhothayan
 
Developer's guide to customization
Developer's guide to customizationDeveloper's guide to customization
Developer's guide to customizationAhmed Farag
 
Feature list of openbravo for distribution business
Feature list of openbravo for distribution businessFeature list of openbravo for distribution business
Feature list of openbravo for distribution businessAbul Khayer
 
Understand when to use user defined functions in sql server tech-republic
Understand when to use user defined functions in sql server   tech-republicUnderstand when to use user defined functions in sql server   tech-republic
Understand when to use user defined functions in sql server tech-republicKaing Menglieng
 
Kks sre book_ch10
Kks sre book_ch10Kks sre book_ch10
Kks sre book_ch10Chris Huang
 
whitepapertableauforenterprise_0
whitepapertableauforenterprise_0whitepapertableauforenterprise_0
whitepapertableauforenterprise_0AN_ ANALYTICS
 
whitepapertableauforenterprise_0
whitepapertableauforenterprise_0whitepapertableauforenterprise_0
whitepapertableauforenterprise_0S. Hanau
 

Similar to 5952 database systems administration (comp 1011.1)-cw1 (20)

ADBMS ASSIGNMENT
ADBMS ASSIGNMENTADBMS ASSIGNMENT
ADBMS ASSIGNMENT
 
La potenza è nulla senza controllo
La potenza è nulla senza controlloLa potenza è nulla senza controllo
La potenza è nulla senza controllo
 
La potenza è nulla senza controllo
La potenza è nulla senza controlloLa potenza è nulla senza controllo
La potenza è nulla senza controllo
 
Working with CloudStack Usage Data - CCCEU13
Working with CloudStack Usage Data - CCCEU13Working with CloudStack Usage Data - CCCEU13
Working with CloudStack Usage Data - CCCEU13
 
Working with CloudStack Usage Data
Working with CloudStack Usage DataWorking with CloudStack Usage Data
Working with CloudStack Usage Data
 
Big Data: Getting off to a fast start with Big SQL (World of Watson 2016 sess...
Big Data: Getting off to a fast start with Big SQL (World of Watson 2016 sess...Big Data: Getting off to a fast start with Big SQL (World of Watson 2016 sess...
Big Data: Getting off to a fast start with Big SQL (World of Watson 2016 sess...
 
SetFocus SQL Portfolio
SetFocus SQL PortfolioSetFocus SQL Portfolio
SetFocus SQL Portfolio
 
Data Mining _ Weka
Data Mining _ WekaData Mining _ Weka
Data Mining _ Weka
 
Successfully Implement Responsive Design Behavior with Adobe Experience Manager
Successfully Implement Responsive Design Behavior with Adobe Experience ManagerSuccessfully Implement Responsive Design Behavior with Adobe Experience Manager
Successfully Implement Responsive Design Behavior with Adobe Experience Manager
 
Sood shilpa
Sood shilpaSood shilpa
Sood shilpa
 
How We Built the Private AppExchange App (Apex, Visualforce, RWD)
How We Built the Private AppExchange App (Apex, Visualforce, RWD)How We Built the Private AppExchange App (Apex, Visualforce, RWD)
How We Built the Private AppExchange App (Apex, Visualforce, RWD)
 
Excel Datamining Addin Beginner
Excel Datamining Addin BeginnerExcel Datamining Addin Beginner
Excel Datamining Addin Beginner
 
Excel Datamining Addin Beginner
Excel Datamining Addin BeginnerExcel Datamining Addin Beginner
Excel Datamining Addin Beginner
 
Discover Data That Matters- Deep dive into WSO2 Analytics
Discover Data That Matters- Deep dive into WSO2 AnalyticsDiscover Data That Matters- Deep dive into WSO2 Analytics
Discover Data That Matters- Deep dive into WSO2 Analytics
 
Developer's guide to customization
Developer's guide to customizationDeveloper's guide to customization
Developer's guide to customization
 
Feature list of openbravo for distribution business
Feature list of openbravo for distribution businessFeature list of openbravo for distribution business
Feature list of openbravo for distribution business
 
Understand when to use user defined functions in sql server tech-republic
Understand when to use user defined functions in sql server   tech-republicUnderstand when to use user defined functions in sql server   tech-republic
Understand when to use user defined functions in sql server tech-republic
 
Kks sre book_ch10
Kks sre book_ch10Kks sre book_ch10
Kks sre book_ch10
 
whitepapertableauforenterprise_0
whitepapertableauforenterprise_0whitepapertableauforenterprise_0
whitepapertableauforenterprise_0
 
whitepapertableauforenterprise_0
whitepapertableauforenterprise_0whitepapertableauforenterprise_0
whitepapertableauforenterprise_0
 

Recently uploaded

Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
MARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupMARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupJonathanParaisoCruz
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementmkooblal
 
Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...jaredbarbolino94
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
CELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxCELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxJiesonDelaCerna
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxEyham Joco
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 

Recently uploaded (20)

Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
MARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupMARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized Group
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of management
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)
 
Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
CELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxCELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptx
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptx
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 

5952 database systems administration (comp 1011.1)-cw1

  • 2. 1 Table of Contents Galfar Eng. & Contracting............................................................................................................. 3 Distributed system........................................................................................................................ 3 Types of Distributed..................................................................................................................... 4 References of distributed system ............................................................................................. 4 Quires.......................................................................................................................................... 4 Insert........................................................................................................................................ 5 Update ..................................................................................................................................... 5 Recover.................................................................................................................................... 6 Redo log file................................................................................................................................. 8 Backup Policy............................................................................................................................... 8 Effect........................................................................................................................................... 9 Groups........................................................................................................................................10 References of redo log files .........................................................................................................10 References..................................................................................................................................11
  • 3. 2 Task: 2 Galfar Engineering and Contracting SAOG: History: Galfar is a multinational company in Muscat Oman that provides services all over the world. Galfar Company has been established in 1972. The founder of this company is P Muhammad Ali, P Muhammad Ali basically from India. Galfar provides services in the field of oil and gas. It will also give the services in the field of engineering and contracting, industry, energy, and other infrastructure. The company has worked in the Middle East and earned revenue of about the 1billion USD. Countries:  Qatar  India  Kuwait  Dubai etc. Diagram:
  • 4. 3 Oil and Gas: The Galfar started the services of oil and gas in the Dukhan Qatar in 1995. It provides the services with quality and become the famous sector in Qatar. It has been working for the last 26 years. The company works hard and get its first contract in 2000. Then working and becomes the most reputation sector in Qatar. Civil Engineering: The Galfar engineering supplies the services in the field of Civil Engineering. Because it has the firstoperating unit in Oman.it willissuethe services inthe fieldof civilis landmark projects like the educational institutions, stadia, showrooms, hospitals, housing complex, and the residence, etc. The Galfar Company also gives the chance to the electrical and mechanical engineers to work with the company. Investment: The Galfar company has also delivered the services of the investment because any company invests the amount in the Galfar company for earned the money from it. Many companies invested the amount for shareholding for the main companies which invested the amount is Aspire projects and services and the second company name is ready to mix. These are the two companies which invested the money. Database Architecture: The given statement as a data administers which database we used for this multinational company. We use distributes architecture because the company has offices in different countries. DistributedArchitecture: The distributed architecture we can see from the name that distributes means divided the anything that’s way distributed architecture used for the multinational companies. Because the multinational company has the different sectors in the world. Therefore, the distributed architecture follows the client-server model which is used for the client will always request the server and the server provide the output to the client. In this statement same way, different countries request the services for and the Galfar gives the services which the client has to be needed. The distributed provides the services of the oil and gas, civil and many others infrastructure. The distributes systems the Galfar company come with up the client-server model. For this model, the Galfar delivers the different countries like Qatar, Kuwait, and Dubai. For these services, the Galfar company hires an employee from outside the country. Now the Galfar become the most famous company in the world providing the services. For this purpose, the figure is given below describes the services of the Galfar Company. Galfar company gives the satisfaction of his client. It will also issue the quality work given to the client to improve their quality.
  • 5. 4 Diagram: Types: Homogenous DistributedArchitecture: Homogenous distributes architecture means the Galfar Company worked with his branches which works outside the country. Because his branches work on the different sectors. In homogenous the sectors are worked with his database all over the world where the branches are working. Heterogeneous DistributedArchitecture: The heterogeneous distributed architecture we will see from the name means that the Galfar company worked with different organizations. In the different sectors, the Galfar will work with impressive work and also gives some quality things means give the discount on some sectors to work with the other organization. so in this way, we will use the distributes system for any multinational company which has different sectors are working in different countries.
  • 6. 5 Task: 3 Part: (a) Create Tablespace Al Magd Abdullah Sloum Al Shukairi15F14344 datafile ‘Al Magd Abdullah Sloum Al Shukairi15F14344.dbf’ is the size 5m table reuse index auto-extend will be on the forward 5m and the maximum size of 100m; In the first, we will identify the tablespace after generating the tablespace of the keyword. Therefor the following case the name of the table is tbs1. In the 2nd we will also identify the path of the tablespace of the datafiles in the clause of the datafiles. In the 3rd we can identify the tablespace size of the clause. In the given problem we see that the 5m donate the 5MB value this is a little quiet. Features: In given example need four optional features of the tablespace.  Table  Reuse  Index  autoextend Table: In tablespace, we can create in the form of rows and columns where we can add the values of any data about any person. Because in the table there are rows and columns. The rows are horizontal and the columns are vertical in the table where we can store the data of the organization. Reuse: If we want to use the table which already taken in the tablespace. We will use the reuse to specify the files in the table. Index: We use the index to identify the value of the tables in the database. The index tells us the location of the database of any tablespace. Autoextend: Autoextend is the feature of the tablespace. It will extend automatically when it reaches the value which value is given to the size of the limit. Part: (b) We can generate the user easily CREATE USER Al Magd Abdullah Sloum Al Shukairi15F14344 IDENTIFIED By My Password;
  • 7. 6 ALTER USER Al Magd Abdullah Sloum Al Shukairi15F14344 DEFAULT TABLESPACE Al Magd Abdullah Sloum Al Shukairi QUOTA 3M ON Al Magd Abdullah Sloum Al Shukairi; Gives SELECT, INSERT, UPDATE, DELETE ON Al Magd Abdullah Sloum Al Shukairi branch, Al Magd Abdullah Sloum Al Shukairi branch supplier TO Al Magd Abdullah Sloum Al Shukairi; Part: (C) I will select the company and generate the name of two tables of the organization. The company name is here first name Al Magd Abdullah Sloum Al Shukairi sector and the second name of this sector is Al Magd Abdullah Sloum Al Shukairi Branch supplier, so now we create the two tables of the company.  Generate the table Al Magd Abdullah Sloum Al Shukairi sector (sector name char(30), not null, sector id primary key, product char(20), the date of transition date)  Make the table Al Magd Abdullah Sloum Al Shukairi sector supplier (sector supply name char(30) not null and unique, sector suppliers id primary key, product details of char(400), the supplier date, Foreign key (sector id) ) Now we can insert the values into the table:  INSERT the table INTO Al Magd Abdullah Sloum Al Shukairi sector (sector id, sector name, transaction of the date, product of the company name) VALUES ('111', 'Dell', '1/11/21', 'PC');  INSERT the table INTO Al Magd Abdullah Sloum Al Shukairi sector (sector id, sector name, transaction of the date, product of the company name) VALUES ('113', 'instruments ', '10/9/21', 'Oppo');  INSERT the table INTO Al Magd Abdullah Sloum Al Shukairi sector (sector id, sector name, transaction of the date, product of the company name) VALUES ('112', 'Iphone', '3/10/21', 'Oppo');  INSERT the table INTO Al Magd Abdullah Sloum Al Shukairi sector (sector id, sector name, transaction of the date, product of the company name) VALUES ('113', 'instruments ', '10/9/21', 'Loud speakers'); Now we generate the sector supplier:  INSERT the table INTO Al Magd Abdullah Sloum Al Shukairi sector supplier (sector id, sector name, transaction of the date, product of the company name) VALUES ('200', 'Ali', '4/4/20', 'Lenovo');  INSERT the table INTO Al Magd Abdullah Sloum Al Shukairi sector (sector id, sector name, transaction of the date, product of the company name) VALUES ('201', 'Smith', '3/10/21', 'I phone');  INSERT the table INTO Al Magd Abdullah Sloum Al Shukairi sector (sector id, sector name, transaction of the date, product of the company name) VALUES ('202', 'Akbar ', '10/9/21', 'Galaxy phone');  INSERT the table INTO Al Magd Abdullah Sloum Al Shukairi sector (sector id, sector name, transaction of the date, product of the company name) VALUES ('203', 'Usman ', '10/9/21', 'Oppo')
  • 8. 7 Part: (d) Flashback: As we know that we can we can use the flashback data use for retrieving the past data which we lost and make the old data into the previous state. That’s called flashback data. Record Recover: 1 Select *from Al Magd Abdullah Sloum Al Shukairi sector Update Al Magd Abdullah Sloum Al Shukairi sector set=’John’ where sector id= 111; Select *from Al Magd Abdullah Sloum Al Shukairi sector Select Sector id, name from Al Magd Abdullah Sloum Al Shukairi sector As of timestamp T0 timestamp (‘2021-09-09 12:30:59 ’,yyyy-mm-dd:mi:ss’); Record Recover: 2 Select *from Al Magd Abdullah Sloum Al Shukairi sector Update Al Magd Abdullah Sloum Al Shukairi sector set=’smith’ where sector id= 112; Select *from Al Magd Abdullah Sloum Al Shukairi sector Select Sector id, name from Al Magd Abdullah Sloum Al Shukairi sector As of timestamp T0 timestamp (‘2021-08-08 1:20:20 ’,yyyy-mm-dd:mi:ss’); Screenshot:
  • 9. 8
  • 10. 9 Task: 4 RedoLog Files: As we know that the redo log files are those files that we can use for the recovery of the database. In redo log files if we want to change the data of the database. We need a space where we can store the data. We can change this data and store it in the redo log file. If the data is lost in the time of changes the data will store in this redo log files?
  • 11. 10 Diagram: Backup Policy: Redo log files are operating system files used by Oracle to maintain logs of all transactions performed against the database. The primary purpose of these log files is to allow Oracle to recover changes made to the database in the case of a failure. The redo log entries (log backups) are required to recover the database instance after certain system breakdowns. Redo log entries are where the database system logs all changes that database users make to data As a database administrator to solve the problem of the failure of the database I will use each portion of the oracle database is attached within the files of the redone logo. Because those files of redo logo files protect the database from any failure of the oracle database. If any component is not working due to any reason it will only destroy the data of this component, not the whole database oracle. To backup all archived redo log files in the database, use this command:  RMAN> backup archive log all; additionally, backup of archived redo log files may be done after every backup command. ...  SQL> select. ...  RMAN> backup tablespace users plus archive log; Starting backup at 17-AUG-09.
  • 12. 11 Effect: A redo log file might become corrupted while the database is open, and ultimately stop database activity because archiving cannot continue. In this situation the ALTER DATABASE CLEAR LOGFILE statement can be used to reinitialize the file without shutting down the database. It is permissible to drop redo log files so that a multiplexed redo log becomes temporarily asymmetric. For example, if you use duplexed groups of redo log files, you can drop one member of one group, even though all other groups have two members each. If the redo log files are not working properly for this purpose we can use the achieve log mode. Arhieve log mode we will use for determining the online redo log files will not be overwritten the data. These achieve log files are placed in the disk for safety. To determine the achieve log not task their performance. There are issues are created for this purpose they issue solved by the achieve log mode. Achieve log mode generate the high usage of the CPU.LGWR is the archive mode which will be word hard to achieve the goals because in this the rate of generation of the achieve mode is high. In achieving log mode because high log generation will produce the frequent log switches that’s cause the checkpoint of the frequency and slow down the disk. It will also use to additional CPU to get the backup data of the oracle database administration.
  • 13. 12 Redo Groups: The redo log for a database consists of groups of redo log files. A group consists of a redo log file and its multiplexed copies. Each identical copy is considered to be a member of that group. Each group is defined by a number, such as group 1 and group 2. If we want to create the groups of redo log files we create the instance with at least the two groups for making the groups in the redo log file. For this purpose, you can inactive the redo logo file. You want to put the group. We will first force them to switch off a log is occur. To create a new group of redo log files, use the SQL statement ALTER DATABASE with the ADD LOGFILE clause. The following statement adds a new group of redo logs to the database: ALTER DATABASE ADD LOGFILE ('/oracle/dbs/log1c. rdo', '/oracle/dbs/log2c). Diagram:
  • 14. 13 References [1] L. e. a. Gondelman,"Gondelman,Léon,etal."Distributedcausal memory:modular specification and verificationinhigher-orderdistributedseparationlogic."Proceedingsof the ACMon ProgrammingLanguages5. POPL(2021): 1-29.". [2] C.-O.e.a. Truică, "Truică,Ciprian-Octavian,etal."TextBenDS:agenerictextualdatabenchmark for distributedsystems."InformationSystemsFrontiers23.1(2021): 81-100.". [3] "http://www.ijctjournal.org/volume8/issue1/ijct-v8i1p8.pdf". [4] R. A. e.a. Tomakova,"Tomakova,R.A.,et al."Analysisandclassificationof X-rayimages based on intelligentagentsindistributedsystems."Journal of Physics:Conference Series.Vol.1801. No.1. IOPPublishing,2021.". [5] A. Li,"Li, Yiwu."ResearchonRedo Log RecordLocatingMechanisminSQL ServerInstance Recovery."Journal of Physics:Conference Series.Vol.1952. No.3. IOPPublishing,2021.". [6] D. a. T. K. ". R. Kuhn,"Kuhn,Darl,andThomas Kyte."InvestigatingRedo."Oracle Database Transactionsand LockingRevealed.Apress,Berkeley,CA,2021. 189-218.". [7] D. a. T. K. Kuhn, "Kuhn,Darl,and ThomasKyte."RedoandUndo." Oracle Database Transactions and LockingRevealed.Apress,Berkeley,CA,2021. 161-187.". [8] "https://ieeexplore.ieee.org/abstract/document/9390978/". [9] Z. e.a. Bin,"Bin,Zhang,et al."DesignandImplementationof Incremental DataCapturingin WirelessNetworkPlanningbasedonLogMining."2021 IEEE 5th AdvancedInformation Technology,ElectronicandAutomationControl Conference (IAEAC).Vol.5.IEEE, 2021.".