Oracle Database Administration for Microsoft SQL Server DBAs part 3 potx - Pdf 16

D
atabase administrators (DBAs) have significant responsibilities.
They must not only provide reliable access to company data,
but also protect that data, monitor the database environment,
troubleshoot problems, and more. If the lives of DBAs were
simple, what fun would that be? That is probably why
I enjoy the job so much—because of the different opportunities and challenges
that I get to face day to day.
To provide a stable and highly available database environment, along
with planning backups and performing recoveries and all the other
maintenance tasks, DBAs are usually exploring how to use new features,
and even learning multiple database platforms. Yes, I said it: as a DBA, you
probably need to know more than one database platform. The days of being
just an Oracle or SQL Server DBA are probably gone. Companies are
adopting more than one database platform, and applications may import or
export data from one database system to another. But why am I telling you
this? You have already decided to add Oracle to your arsenal. The big
question is, How hard will this be?
If you are a SQL Server DBA, you don’t need to start back at square one
to support Oracle databases. Certainly, there are differences between the
platforms, but many of the DBA tasks are basically the same. You can apply
the skills you already have to learning Oracle, using this book as your
guide. This book will even translate terms from SQL Server to Oracle,
because sometimes being able to speak the language is half of the battle.
Before we look into the specifics of Oracle, in this chapter, we will
review the role of the DBA, so you can see how to leverage the skills you
already have as you learn the new database platform. We will also look
briefly at the migration process.
General DBA Skills
The role of the DBA is more than just backing up the database and making
sure the database is available. There are several hats that are worn by a

require research and drilling through database logs and trace files.
Other general skills for a DBA might include managing projects and
creating and following processes. DBAs are not working in an environment
where only one person is accessing the database system. The database is
normally supporting enterprise-level applications with many users and
various workloads.
Software vendors have stated that installing databases and monitoring
them are simple tasks, but somehow there seems to be more moving parts
these days. Also, new areas, such as compliance and business intelligence,
provide different challenges for DBAs.
The DBA may have the responsibility to back up databases and restore
and copy them into another environment. The DBA may be required to
design the database model and coding procedures. A DBA may even be
more of an enterprise architect, who knows how to use data at an enterprise
level to support the business and add value through business intelligence
solutions. This type of role would also involve assessing if the right tool is
being used, understanding the differences in platforms, and managing these
to help make better design decisions.
Chapter 1: The Database Administrator
3
Where Do DBAs Belong
in an Organization?
Are DBAs in production support, the architecture team, the engineering
team, or the development team? Actually, they could probably be a part of
all these teams or in a separate group altogether. But in any case, they still
need to work with all the teams.
DBAs work with system administrators for configuring operating systems
and providing input to hardware decisions for the environment. DBAs work
with developers to design systems and provide coding standards and best
practices for developing applications that use databases. DBAs work with

upgrade databases. Basic installations wouldn’t need much planning if we
were just installing software on a desktop somewhere and the application
was used by just one person. Also, an organization will probably need more
than just one database, so a repeatable process would be useful.
DBAs need to manage installations to be able to communicate needs to
other teams for hardware and operating system configurations. They must
get details about the application to make sure that the database has the
features needed. Properly managing database installations is important for
planning upgrades and implementing enterprise monitoring systems. On a
smaller scale, this planning is useful for patching, making changes to
security configurations, and rolling out auditing tools. Developing standards
and building a process will create a more consistent and stable database
environment.
When installing SQL Server, you can choose where to put data files and
log files, if the instance is the default unnamed or named instance, which
patch set is to be applied, if Reporting Services and Analysis Services are to
be installed, and so on. You probably have a checklist so that a standard
installation can be repeated on multiple databases. Creating a checklist or
standard installation document is just as important for Oracle databases.
Instance names, parameters that should be set, components that should be
installed, Oracle home directories, directories for data files and log files, as
well as recovery areas, should all be included. Table 1-1 shows high-level
checklists for preparing to install SQL Server and Oracle databases. Notice
that many of the same tasks are listed for both platforms. (Chapter 3 covers
Oracle installation in detail.)
Leveraging Skills
We’ve reviewed some general DBA skills and practices, which you are
probably currently applying to support the SQL Server system you are
managing. Now let’s look at how these skills provide a starting point for
learning Oracle.

Allocate storage Allocate storage
Configure network Configure network
Install software Install software
Validate install Validate install
Back up system, excluding .mdf
and .ldf files
Back up system, excluding data files
TABLE 1-1.
SQL Server and Oracle Installation Checklists
System monitoring is another example. Understanding why certain areas
need to be monitored for better-running databases is half of the battle. If you
know the information you want to monitor, then you just need to find out
how to do it in Oracle. Knowing which areas to check comes from the
experience of dealing with databases and troubleshooting issues in the past.
Performing health checks against the database and reviewing database logs
are good first steps.
Health checks are not just looking into current issues, but also monitoring
several areas and verifying that databases are running well. Health checks in
SQL Server could be verifying if jobs are running properly, checking disk
space, reviewing last-analyzed-for statistics, making sure old backups have
been purged, and running other monitoring scripts. Oracle’s high-level list of
health checks include validating backups, checking available space in
tablespaces and file systems, making sure statistics are up to date, and
verifying that other scripts are running and completing as expected.
Chapter 1: The Database Administrator
7
Task/Skill SQL Server Oracle
Backing up X X
Restoring X X
Disaster recovery planning X X

migrate, but all begin with a solid plan. The options available have varying
inputs and outputs, as well as varying amounts of downtime and risk.
You will need an Oracle database, a way to convert the definitions of
the tables from SQL Server datatypes to Oracle datatypes, a way to move
the data over to the new system, and a way to convert the stored procedures
and packages. Depending on how big and complex the database is, this
could be a very simple or a very complicated move.
Not all of the datatypes can translate exactly from one platform to
another. Table 1-3 shows just an example of some of the conversions.
Moving the data is probably the least of your concerns, unless you have
several terabytes of data to transfer. Data can be moved out of SQL Server
with the bcp utility, and then SQL*Loader can load it on the Oracle side.
SQL Server Integration Services (SSIS) packages can be created to export
from one database into the other.
Chapter 1: The Database Administrator
9
DBA Monitoring Checklist
DBAs typically monitor the following:

Backup jobs ran successfully (full and logs)

Space on server and tablespaces/data files

Errors in the alert log/server log

Any new information in the alert log/server log

Security auditing

Scheduled jobs ran successfully

CHAR CHAR
VARBINARY BLOB
NUMERIC NUMBER
TABLE 1-3.
Example Datatype Conversions
the SQL Server database is now available in Oracle doesn’t mean that all of
the indexes, statistics, and types of stored procedures are the best for use in
Oracle and will perform optimally. Testing and more testing are needed to
validate that the new structures and datatypes match those in the stored
procedures, tables, and views.
Validation of the data should include looking at the timestamps and
verifying that times as well as dates match up as needed. Indexes and
referential integrity need to be verified. The stored procedures need to be
checked to ensure they can return expected results. Jobs will need to be
scheduled using DBMS_SCHEDULER. Permissions need to be examined to
confirm that the security configured for access by the users is present.
As these pieces get validated for the application, you can look at the
areas that would benefit from different standards or from using some new
features in Oracle. You can see how you did it in SQL Server and consider
the best way to do it in Oracle. The rest of this book will help guide you
along that path.
Chapter 1: The Database Administrator
11
FIGURE 1-2.
Migration Wizard in Oracle SQL Developer


Nhờ tải bản gốc

Tài liệu, ebook tham khảo khác

Music ♫

Copyright: Tài liệu đại học © DMCA.com Protection Status