Documente Academic
Documente Profesional
Documente Cultură
___________________________________________________________________________________________________
Copyrights Reserved Page 1 of 9
DEFINING SYSTEM ADMINISTRATION AND NAMING
STANDARDS & ADMINISTERING VERY LARGE SQL
SERVER DATABASES
Chapter Includes:
Defining Environments
Development Environment
Test Environment
Production Environment
Naming Standards
VLDB
Data Maintenance
___________________________________________________________________________________________________
Copyrights Reserved Page 2 of 9
SQL Server Environment Approach:
One must approach development an SQL Server environment in a consistent
fashion or each development project is destined to waste time performing
certain activities. The approach should be focused on providing flexibility for
the developer and the structure for the database administrator.
Defining Environment:
When developing production software, you should assume there would be a
development environment, at least one test environment, and a production
environment.
For each environment, we must determine the following.
Is the environment supported by a separate SQL Server, or does it share the
SQL Server with some other function.
How are the databases organized on the SQL Server? Is there a database per
environment rather than an SQL Server per environment?
Development Environment:
The development environment requires the maximum flexibility for
developers while enabling the necessary control structures to provide for
consistent promotion of code.
Test Environment:
Typical environments include development, system test, volume/stress test,
user acceptance test, and production.
Because there are several test environments, this book considers them
conceptually as a single environment called “test”.
Several test environments used in the software development life cycle(SDLC).
We will test for function or performance.
Functional Testing is used to confirm that elements of an application or
several distinct applications can work together.
___________________________________________________________________________________________________
Copyrights Reserved Page 3 of 9
Performance testing is conducted to verify how the database performs under
peak numbers of users, data size, or both.
Production Environment:
The production environment is the last and most important environment in
the SDLC.
It is under maximum control of database administration, and all defined
production control must be implemented and observed.
The environment should have the following features.
The SQL Server and database hardware used for the production should be
dedicated.
An initial load of data may be required.
Logins and users are the actual production users.
Naming Standards:
Naming standards can be broken into two areas.
SQL Server names and operating system names
SQL Server names are the names you specify in the SQL Server environment.
Operating system names are the names you specify for files and directories.
For the person retrieving or accessing an object, the name should completely
define its content without ambiguity.
Indicators:
An indicator is a string of characters embedded in a name to indicate
something about the type of object.
They are often used to indicate an object type.
Example:
VLDB:
VLDB's present a number of issues for the database administrator. Here are
top issues regarding maintenance of a VLDB
Time required to perform dumps and loads
Time required to perform necessary database consistency checks.
Time and effort required maintaining data.
Purging/ archiving data.
Managing purged partitioned databases.
User error
The main problem with the database dumps and VLDBs is the duration of the
___________________________________________________________________________________________________
Copyrights Reserved Page 5 of 9
database dumps.
Dump time is proportional to the amount of the data in the database.
Data Maintenance:
They include
Update Statistics
Archiving Data
Updating Statistics:
SQL Server uses index statistics to choose the correct access path at query
optimization time.
The DBA will need to update statistics when the data distribution changes to
ensure valid information is contained on the statistics page.
Purge/Archive Procedures:
They are:
Locking implications
Performance implications
Storage or retrieval of archived data.
When dealing with VLDBs it may become necessary to partition the database
due to SQL Server size limitations or in order to meet backup and recovery or
data maintenance requirements.
There are two primary ways of Partitioning databases.
Vertical partitioning
Horizontal Partitioning
Vertical Partitioning:
It is the process of drawing imaginary lines through a database schema, and
placing individual tables in different databases.
Horizontal Partitioning:
Test environment
Production environment
Naming standards
Abbreviation standards
4) What are indicators in naming standards? Give the possible indicators for the
following
Database
Server
View
Trigger
___________________________________________________________________________________________________
Copyrights Reserved Page 8 of 9
Book For Reference
by
Ray Rankins
Jeffrey R. Garbus
David Solomon
___________________________________________________________________________________________________
Copyrights Reserved Page 9 of 9