Escolar Documentos
Profissional Documentos
Cultura Documentos
com
ON
SUBMITTED BY
RAJAT GARG
AT
INDEX
1. Acknowledgement
2. Introduction
i. Networking
ii. ERP (Enterprise Resource Planning)
iii. System administrator
iv. Oracle
v. RAC (Real Application Cluster)
vi. DBA (Database Administrator)
4. DBA Support
ACKNOWLEDGEMENT
Summer training as a part of third year curriculum for computer science &
engineering of Dehradun Institute of Technology was undergone at JSOFT
SOLUTION part of JSW Group from 10th June to 23rd July (6 weeks).
I convey my deep indebtedness respect to Mr. Achuta Raghava sir
(H.R. Manager) for giving us permission to undergo an summer training at your
esteemed company.
In the course of my training at Jsoft Solution (Vidyanagar) , I have learned
a lot about this vast organization and its activities . I express my sincere thanks
to all the member of this organization for their corporation , with their help I
was able to complete my training successfully.
I also thank Mr. V.Ragunath Rayalu(D.G.M Jsoft solution)for
considering my case favorably for the training program.
I express my great thanks to Mr. Rahul Chhabra(Sr consultant) for his
guidance and continuous technical support during execution of the program.
Rajat Garg
DIT Dehradun(U.K)
This watermark does not appear in the registered version - http://www.clicktoconvert.com
This watermark does not appear in the registered version - http://www.clicktoconvert.com
Introduction
JSOFT SOLUTION:-
JSoft is an IT & ITES arm of US $3.7 billion JSW Group. It's core competency
is to act as an enabler for enterprises, to gain a competitive edge through
effective use of information & communication solutions.
JSW Group
JSW Group is one of the fastest growing business conglomerates with a strong
presence in the core economic sector. This Sajjan Jindal led enterprise has
grown from a steel rolling mill in 1982 to a multi business conglomerate worth
US $ 3.7 billion within a short span of time.
On its road to growth and expansion, the Group is also conscious about its
responsibility towards environment and social development. Eco-efficiency is a
matter of principle. Preventive measures for damage to the environment are
taken into account at the planning stage of production and growth.
JSW Foundation, an integral part of the Group, is the CSR wing, with a vision
to create socio economic difference in the fields of Education, Health and
Sports, Community Relationship/Propagation as well as Art, Culture and
Heritage.
This watermark does not appear in the registered version - http://www.clicktoconvert.com
Forging ahead, JSW Steel Ltd. is one among the largest Indian Steel Companies
in India today with capacity of 7.8MT.
India’s second largest steelmaker, JSW Steel Ltd. consists of the most modern,
eco-friendly steel plants with the latest technologies for both upstream &
downstream processes. JSW Steel Ltd. has received all the three certificates:
ISO:9001 for Quality Management System
Vijayanagar Works
Vijaynagar works was the first Greenfield project in world to use Corex
technology to produce steel. On February 18,2009 India largest Blast Furnace of
2.8MT capacity was commissioned here. With this commissioning, JSW Steel
become the largest private sector steel producer in India with 7.8MT capacity. It
is also in the advance stage of setting up of 5MTPA state of the act Hot Strip
Mill which will be commissioned in the second half of fiscal 2009-10. The next
phase of expansion taking the total production to 10mtpa plant at Vijayanagar
Works is also under implementation. It will be commissioned in fiscal 2010-11.
This makes it among the fastest growing steel plant in the world.
It's eco-friendly approach has also led to the development of Vijayanagar into a
modern township. Enveloped by acres of greenery and maintained by JSW,
Vijayanagar is prospering by leaps and bounds. Be it education, career
opportunity or women empowerment, the Company's initiative has gone a long
way in making Vijayanagar the success that it is today.
This watermark does not appear in the registered version - http://www.clicktoconvert.com
Vision &values
“It is said that in the journey of life, more important than where you are, is
where you are heading to..” - Sajjan Jindal, Vice Chairman & MD, JSW Steel
Ltd.,
OUR VISION
OUR VALUES
· Our Corporate values are dear to us and they guide our approach to work
and environment, transforming the way we deliver our products and
services. And our corporate values encourage young thinking because.....
This watermark does not appear in the registered version - http://www.clicktoconvert.com
This watermark does not appear in the registered version - http://www.clicktoconvert.com
JSOFT SOLUTION:-
JSoft is an IT & ITES arm of US $3.7 billion JSW Group. It's core competency
is to act as an enabler for enterprises, to gain a competitive edge through
effective use of information & communication solutions.
JSoft operates across a broad spectrum of IT& ITES services, which include:
· Infrastructure Management
· Business Unit description:
· IT Infrastructure Management, a division of JSoft solutions offers an
entire range of IT services from Solutions architecting, Consultancy,
Facilities Management, Data Center management, Training etc. from the
design to its implementation and management. Our services encompass
the full spectrum of infrastructure management services that monitor,
manage and enhance the performance of business critical operations
· Presently the services are offered to all plants and offices of JSW group
companies in the field of Steel, Aluminum, Energy, Cement, Ports &
Mining etc. Also the services are extended to IT management of BPO,
township, Schools and Hospital.
Services offered:
Benefits:
· Business Applications
· Business Unit description:
· Business Applications is responsible for conceiving, developing and
providing Solutions for the different business processes of the company –
Finance, Manufacturing, Supply Chain Management, Customer
Relations, HR etc. Our expertise lie in providing solution with Oracle e-
business suite for all verticals
Services offered:
Benefits:
· Software Development
· Business Unit description:
· The Software Division of JSoft Solutions, caters to customised
application development using latest Open source technologies under the
Java/ J2EE platform viz., JSF, Spring, Hibernate, Ajax etc., and using
Oracle RDBMS as the backend database. Usage of high end architectural
This watermark does not appear in the registered version - http://www.clicktoconvert.com
Services offered:
Benefits:
· Shared Services
· Business Unit description:
This watermark does not appear in the registered version - http://www.clicktoconvert.com
Services offered:
· Data Entry
· Data Conversion
· Large Volume Data processing
· File Conversion
· OCR Clean up
Benefits:
· We provide dedicated work areas and people and use clients' applications
to provide them with customized reporting The model enables strong
cultural integration, high confidentiality and gain sharing JSoft BPO
Solutions in turn becomes a seamless extension of the client's
organization Dedicated Domain Units, the Unit Heads manage the
functional areas in order to ensure that key operation metrics are
delivered on a regular basis
Managed Services
Process Deployment ·
Benefits:
Along with extending our support to clients across the geographic spread of
India, we also support our parent company’s IT operations in US & UK plants
1. RAW MATERIALS:
A. Pellet Plant:
· CAPACITY- 5mtpa
· TECHNOLOGY- Kvaerner Metals, USA
· DRY GRINDING SYSTEM
· Straight grate for industrial process.
B. Sinter Plant:
· CAPACITY- 2.3mtpa
· TECHNOLOGY- OTO Kumper, GERMANY
· Suction under gate- 1400 mm of water column
This watermark does not appear in the registered version - http://www.clicktoconvert.com
Corex plant
· CAPACITY- 2 units of 0.8mtpa
· TECHNOLOGY- SIEMENSVAI,AUSTRIA
· Alternative root for making hot metal.
· Uses coal as primary fuel.
· Model c 2000
· Commissioned in August 1999 and April 2001.
Blast furnace- I
· CAPACITY- 0.9mtpa
· DESIGN- MECON, INDIA
· Equipped with Paul worth
· Top charging equipment
· Use full volume- 1250m3
· Working volume-1050m3
· Commissioned in October 2004
Blast furnace-II
· CAPACITY- 1.5mtpa
· DESIGN- DANIEL CORUS
· Equipped with TOTEM
· Russia top charging equipment
· Useful volume- 1080m3
· Working volume-1462m3
· Commissioned in July 2006
Blast furnace-III
This watermark does not appear in the registered version - http://www.clicktoconvert.com
· CAPACITY – 2.8mtpa.
Total output of Hot metal from both Corex and blast Furnace is 6.8mtpa.
I.e., COREX – 0.8 * 2 = 1.6 mtpa
BLAST FURNACE I – 0.9 mtpa
BLAST FURNACE II – 1.5 mtpa
BLAST FURNACE III – 2.8 mtpa.
4. CASTER :
· CAPACITY- 1.5mtpa
· TECHNOLOGY- VAI, UK.
· THICKNESS- 220 / 260 mm.
· WIDTH- 800 – 1600.
· CASTING SPEED – 2.0mtrs/min
· Vertical mould with hydraulic oscillator
· Multipoint bending unbending
· Dynamic spray cooling.
· Auto mould with change
· CAPACITY- 2.7mtpa
· TECHNOLOGY- DANIELI UNITED.
· Modernization by siemens – VAI
· 6 stand, 4Hi TANDEM MILL
· THICKNESS- 1.6 – 12mm
· WIDTH – 900 – 1300mm
UNIQUE FEATURES:
· LASER WELDER FOR MAKING 62 T JUMBO COILS.
· TENSION LEVELER CUM SCALE BREAKING FACILITY.
· ONLINE TRIMMING FACILITY.
This watermark does not appear in the registered version - http://www.clicktoconvert.com
UNIQUE FEATURES:
UNIQUE FEATURES:
· LEVEL 2 AUTOMATION.
· IN LINE SKIN PASS MILL FOR ROUGHNESS TRANSFER.
UNIQUE FEATURES:
· UNIFORM ANNEALING UNDER 100% HYDROGEN
ATMOSPHERE.
· HYDROGEN PURITY 99.999%.
UNIQUE FEATURES:
· SHAPE METER AT EXIT SIDE.
· USE OF TEMPER FLUID FOR BETTER CLEANLINESS.
UNIQUE FEATURES:
This watermark does not appear in the registered version - http://www.clicktoconvert.com
These were the above steps of conversion of raw material into finished
material.
· Firstly the Raw Material is sent to Corex and Blast Furnace for conversion
of those raw materials into hot liquid material.
· Secondly that Hot liquid metal is further sent to BOF, there the hot metal
is blown by oxygen from the top and A from the bottom to remove the
impurities from the hot metal.
· Then from BOF the hot metal is sent to CASTER plant where the hot
metal is converted into SLAB.
· That SLAB is further sent to Hot Strip Mill and there the slab is converted
into a coil
· Then that coil will be sent Cold Rolling Mill, where the coil will undergo
the process of Pickling, annealing and Oiling. Here the packing of the coil
takes place at APL and then finally the coil will be dispatched to the
customer.
This watermark does not appear in the registered version - http://www.clicktoconvert.com
· Slab
· Billet
· Wire Rod
· Bar Rod
· TMT Rod
· Rebar
· Cement
This watermark does not appear in the registered version - http://www.clicktoconvert.com
· M.S. OFFICE.
· ORACLE.
· APEX.
Networking
In the world of computers, networking is the practice of linking two or
more computing devices together for the purpose of sharing data. Networks are
built with a mix of computer hardware and computer software.
Area Networks
Most local area networks are built with relatively inexpensive hardware
such as Ethernet cables, network adapters, and hubs. Wireless LAN and other
more advanced LAN hardware options also exist.
As the term implies, a WAN spans a large physical distance. The Internet
is the largest WAN, spanning the Earth.
A WAN differs from a LAN in several important ways. Most WANs (like
the Internet) are not owned by any one organization but rather exist under
collective or distributed ownership and management. WANs tend to use
technology like ATM, Frame Relay and X.25 for connectivity over the longer
distances.
Network Design
Computer networks also differ in their design. The two types of high-
level network design are called client-server and peer-to-peer. Client-server
networks feature centralized server computers that store email, Web pages, files
and or applications. On a peer-to-peer network, conversely, all computers tend
to support the same functions. Client-server networks are much more common
in business and peer-to-peer networks much more common in homes.
Client-Server Applications
WWW
The term WWW refers to the World Wide Web or simply the Web. The
World Wide Web consists of all the public Web sites connected to the Internet
worldwide, including the client devices (such as computers and cell phones) that
access Web content. The WWW is just one of many applications of the Internet
and computer networks.
Network Topology
Bus Topology
Bus networks (not to be confused with the system bus of a computer) use
a common backbone to connect all devices. A single cable, the backbone
functions as a shared communication medium that devices attach or tap into
with an interface connector. A device wanting to communicate with another
device on the network sends a broadcast message onto the wire that all other
devices see, but only the intended recipient actually accepts and processes the
message.
Ethernet bus topologies are relatively easy to install and don't require
much cabling compared to the alternatives. 10Base-2 ("ThinNet") and 10Base-5
("ThickNet") both were popular Ethernet cabling options many years ago for
bus topologies. However, bus networks work best with a limited number of
devices. If more than a few dozen computers are added to a network bus,
performance problems will likely result. In addition, if the backbone cable fails,
the entire network effectively becomes unusable.
Ring Topology
Star Topology
Many home networks use the star topology. A star network features a
central connection point called a "hub" that may be a hub, switch or router.
This watermark does not appear in the registered version - http://www.clicktoconvert.com
Devices typically connect to the hub with Unshielded Twisted Pair (UTP)
Ethernet.
Tree Topology
Mesh Topology
Network Protocols
Internet Protocols
The Internet Protocol family contains a set of related (and among the
most widely used network protocols. Besides Internet Protocol (IP) itself,
higher-level protocols like TCP, UDP, HTTP, and FTP all integrate with IP to
provide additional capabilities. Similarly, lower-level Internet Protocols like
ARP and ICMP also co-exist with IP. These higher level protocols interact
more closely with applications like Web browsers while lower-level protocols
interact with network adapters and other computer hardware.
number of "ports" the front or back that provide the connection points for these
computers, a connection for electric power, and a number of LED lights to
display device status. While routers, hubs and switches all share similiar
physical appearance, routers differ substantially in their inner workings.
Routers for home networks (often called broadband routers) also can join
multiple networks. These routers are designed specifically to join the home
(LAN) to the Internet (WAN) for the purpose of Internet connection sharing. In
contrast, neither hubs nor switches are capable of joining multiple networks or
sharing an Internet connection. A home network with only hubs and switches
must designate one computer as the gateway to the Internet, and that device
must possess two network adapters for sharing, one for the home LAN and
one for the Internet WAN. With a router, all home computers connect to the
router equally, and it performs the equivalent gateway functions.
In home networking, hubs and switches technically exist only for wired
networks. Wi-Fi wireless routers incorporate a built-in access point that is
roughly equivalent to a wired switch.
Modems are networking devices that convert analog and digital data for
computer-to-computer communication. Several kinds of modem devices exist
for dial-up, broadband and cellular networking.
Many of the same network protocols, like TCP/IP, work in both wired
and wireless networks. Networks with Ethernet cables predominated in
This watermark does not appear in the registered version - http://www.clicktoconvert.com
businesses, schools, and homes for several decades. Recently, however, wireless
networking alternatives have emerged as the premier technology for building
new computer networks.
Ethernet is a physical and data link layer technology for local area
networks. Homes, schools and offices around the world all commonly use
Ethernet standard cables and adapters to network personal computers.
Wi-Fi is the most popular wireless communication protocol for local area
networks. Private home and business networks, and public hotspots, use Wi-Fi
This watermark does not appear in the registered version - http://www.clicktoconvert.com
to networks computers and other wireless devices to each other and the Internet.
Bluetooth is another wireless protocol commonly used in cellular phones and
computer peripherals for short range network communication.
Internet Service
The technologies used to connect to the Internet are different than those
used for connecting devices on local area network. DSL, cable modem and fiber
provide fixed broadband Internet service, while WiMax and LTE additionally
support mobile connectivity. In geographic areas where these high-speed
options are unavailable, subscribers are forced to use older cellular services,
satellite or even dial-up Internet instead.
send them ahead to their destination (sometimes indirectly via one or more
additional routers). Switches use much of the same technology as routers but
typically support local area networks only. Bridging allows messages to flow
between two different types of physical networks.
Jaipur
Indore Salem
Guwahati
Faridabad
Patna Delhi
Ghaziabad
Bharti MPLS
Bharti MPLS PoP Calcutta
Bharti MPLS
PoP Bharti MPLS
PoP Bharti MPLS
PoP
Bharti MPLS PoP
Ludhiana PoP
Bharti MPLS
Bharti MPLS
PoP
PoP
Bharti MPLS
Prabhadevi Bharti MPLS Hyderabad
PoP
PoP
Bharti MPLS
PoP
Bharti MPLS Bharti MPLS
PoP
Bellary Bharti MPLS
PoP
Cloud Bharti MPLS
Coimbatore
PoP
Tarapore
Chennai
RF Pedder Rd
Vasind
LL Lower Parel
Ahmedabad
This watermark does not appear in the registered version - http://www.clicktoconvert.com
LAN DETAILS
• In JSW we are using Cisco series switch, Foundry switch, 3com switch
and D Link switch. We have approx 1500 nodes of LAN. We are using
Star Topology in LAN network.
Star Topology – A Star topology is one in which a central unit provides a link to
through which a group of smaller computers and devices are connected. The
central computer is usually called a host computer. A host computer is usually a
large computer such as a mini computer or a mainframe. A file server is a large
storage device that provides volumes of data and programs to the other units in
the network.
This watermark does not appear in the registered version - http://www.clicktoconvert.com
This watermark does not appear in the registered version - http://www.clicktoconvert.com
The following key elements of ERP and their associated tools are directly
linked.
• Multi-media compliance assistance by regulatory agencies through
compliance assistance workshops and plain language workbooks
and checklists
• Self-certification of compliance by businesses
• Statistically-based environmental performance measurement
through baseline inspections and post-certification inspections at
randomly selected facilities, as well as through targeted inspections and
This watermark does not appear in the registered version - http://www.clicktoconvert.com
Ideally, ERP delivers a single database that contains all data for the
software modules, which would include:
This watermark does not appear in the registered version - http://www.clicktoconvert.com
Manufacturing
Engineering, bills of material, scheduling, capacity, workflow
management, quality control, cost management, manufacturing process,
manufacturing projects, manufacturing flow.
Manufacturing is the use of machines, tools and labor to make things for
use or sale. The term may refer to a range of human activity, from handicraft to
high tech, but is most commonly applied to industrial production, in which
raw materials are transformed into finished goods on a large scale. Such
finished goods may be used for manufacturing other, more complex products,
such as household appliances or automobiles, or sold to wholesalers, who in
turn sell them to retailers, who then sell them to end users - the " consumers".
Activities/functions
among supply chain partners, thus improving inventory visibility and improving
inventory velocity.
Financials
General ledger, cash management, accounts payable, accounts receivable,
fixed assets.
Finance is the science of funds management. The general areas of
finance are business finance, personal finance, and public finance. Finance
includes saving money and often includes lending money. The field of finance
deals with the concepts of time, money and risk and how they are interrelated.
It also deals with how money is spent and budgeted.
Central banks act as lenders of last resort and control the money supply,
which affects the interest rates charged. As money supply increases, interest
rates decrease.
An entity whose income exceeds their expenditure can lend or invest the
excess income. On the other hand, an entity whose income is less than its
This watermark does not appear in the registered version - http://www.clicktoconvert.com
Project management
Costing, billing, time and expense, performance units, activity
management
Human resources
Human resources, payroll, training, time and attendance, rostering,
benefits
Human resources is an increasingly broadening term with which an
organization, or other human system describes the combination of traditionally
administrative personnel functions with acquisition and application of skills,
knowledge and experience, employee relations and resource planning at various
levels. The field draws upon concepts developed in Industrial/Organizational
Psychology and System Theory. Human resources has at least two related
interpretations depending on context. The original usage derives from political
economy and economics, where it was traditionally called labor, one of four
factors of production although this perspective is changing as a function of new
and ongoing research into more strategic approaches at national levels. This first
usage is used more in terms of 'human resources development', and can go
This watermark does not appear in the registered version - http://www.clicktoconvert.com
beyond just organizations to the level of nations. The more traditional usage
within corporations and businesses refers to the individuals within a firm or
agency, and to the portion of the organization that deals with hiring, firing,
training, and other personnel issues, typically referred to as `human resources
management'. This article addresses both definitions.
Key functions
Data warehouse
Metadata layer
The data directory - This is usually more detailed than an operational
system data directory. There are dictionaries for the entire warehouse and
sometimes dictionaries for the data that can be accessed by a particular
reporting and analysis tool.
Informational access layer
The data accessed for reporting and analyzing and the tools for reporting
and analyzing data - Business intelligence tools fall into this layer. And the
Inmon-Kimball differences about design methodology, discussed later in this
article, have to do with this layer.
Access control
Access control - user privilege as per authority levels for process
execution
Customization
Personalization implies that the changes are based on implicit data, such
as items purchased or pages viewed. The term customization is used instead
when the site only uses explicit data such as ratings or preferences.
1. Implicit
2. Explicit
3. Hybrid
Advantages
Disadvantages
System Administrator
A system administrator, systems administrator, or sysadmin, is a person
employed to maintain and operate a computer system and/or network. System
administrators may be members of an information technology department.
The duties of a system administrator are wide-ranging, and vary widely from
one organization to another. Sysadmins are usually charged with installing,
supporting, and maintaining servers or other computer systems, and planning
for and responding to service outages and other problems. Other duties may
include scripting or light programming, project management for systems-
related projects, supervising or training computer operators, and being the
consultant for computer problems beyond the knowledge of technical support
staff. A System Administrator must demonstrate a blend of technical skills and
responsibility.
Skills
The subject matter of systems administration includes computer systems and the
ways people use them in an organization. This entails a knowledge of operating
systems and applications, as well as hardware and software troubleshooting,
but also knowledge of the purposes for which people in the organization use the
computers.
Related fields
Training
· Installing softwares
Installation and configuration of software’s on the request of client.
· Upgrading software and applying patches.
Up gradation of existing software’s on clients request and application of
latest patches on Different running services on the server.
· Configuration changes for different services running on the server.
Configuration of services according to client’s requirement.
· Log files
Maintenance of log files for different services running on a server like
Web Server, Email Server, FTP Server, SSH Server, DNS Server etc
· Installing/Maintaining firewalls.
Installation of firewall and maintaining it according to client’s
requirement and on demand.
· Installation of SSL (secure) certificate
Installation of SSL certificate for secure data transaction from the client’s
website (on request)
This watermark does not appear in the registered version - http://www.clicktoconvert.com
In larger organizations, some tasks listed above may be divided among different
system administrators or members of different organizational groups. For
example, a dedicated individual(s) may apply all system upgrades, a Quality
Assurance (QA) team may perform testing and validation, and one or more
technical writers may be responsible for all technical documentation written for
a company.
In smaller organizations, the system administrator can also perform any number
of duties elsewhere associated with other fields:
This watermark does not appear in the registered version - http://www.clicktoconvert.com
· Technical support
· Database administrator (DBA)
· Network administrator/analyst/specialist
· Application analyst
· Security administrator
· Programmer
System administration
Server Management
· Email Server
· DNS Server
· FTP Server
· Firewall
This watermark does not appear in the registered version - http://www.clicktoconvert.com
· Proxy server
· Web Server
· File Sharing
· CVS
· SSH Server
· VPN
Security
Traffic Analysis
Oracle
The Oracle Database (commonly referred to as Oracle RDBMS or simply
Oracle) consists of a relational database management system (RDBMS)
produced and marketed by Oracle Corporation. As of 2009, Oracle remains a
major presence in database computing.
The Oracle RDBMS stores data logically in the form of tablespaces and
physically in the form of data files. Tablespaces can contain various types of
memory segments, such as Data Segments, Index Segments, etc. Segments in
turn comprise one or more extents. Extents comprise groups of contiguous data
blocks. Data blocks form the basic units of data storage. At the physical level,
datafiles comprise one or more data blocks, where the block size can vary
between data-files.
Oracle database management tracks its computer data storage with the help of
information stored in the SYSTEM tablespace. The SYSTEM tablespace
contains the data dictionary — and often (by default) indexes and clusters. A
data dictionary consists of a special collection of tables that contains
information about all user- objects in the database. Since version 8i, the Oracle
RDBMS also supports "locally managed" tablespaces which can store space
management information in bitmaps in their own headers rather than in the
This watermark does not appear in the registered version - http://www.clicktoconvert.com
The Oracle DBMS can store and execute stored procedures and functions
within itself. PL/SQL (Oracle Corporation's proprietary procedural extension to
SQL), or the object-oriented language Java can invoke such code objects
and/or provide the programming structures for writing them.
Database schema
The SCOTT schema has seen less use as it uses few of the features of the more
recent releases of Oracle. Most recent examples supplied by Oracle Corporation
reference the default HR or OE schemas.
Memory architecture
This watermark does not appear in the registered version - http://www.clicktoconvert.com
Each Oracle instance allocates itself an SGA when it starts and de-allocates it at
shut-down time. The information in the SGA consists of the following elements,
each of which has a fixed size, established at instance startup:
· the database buffer cache: this stores the most recently-used data blocks.
These blocks can contain modified data not yet written to disk
(sometimes known as "dirty blocks"), unmodified blocks, or blocks
written to disk since modification (sometimes known as clean blocks).
Because the buffer cache keeps blocks based on a most-recently-used
algorithm, the most active buffers stay in memory to reduce I/O and to
improve performance.
· the redo log buffer: this stores redo entries — a log of changes made to
the database. The instance writes redo log buffers to the redo log as
quickly and efficiently as possible. The redo log aids in instance recovery
in the event of a system failure.
· the shared pool: this area of the SGA stores shared-memory structures
such as shared SQL areas in the library cache and internal information in
the data dictionary. An insufficient amount of memory allocated to the
shared pool can cause performance degradation.
Library cache
The library cache stores shared SQL, caching the parse tree and the execution
plan for every unique SQL statement.
If multiple applications issue the same SQL statement, each application can
access the shared SQL area. This reduces the amount of memory needed and
reduces the processing-time used for parsing and execution planning.
The data dictionary comprises a set of tables and views that map the structure
of the database.
Oracle databases store information here about the logical and physical structure
of the database. The data dictionary contains information such as:
The Oracle instance frequently accesses the data dictionary in order to parse
SQL statements. The operation of Oracle depends on ready access to the data
dictionary: performance bottlenecks in the data dictionary affect all Oracle
users. Because of this, database administrators should make sure that the data
dictionary cache has sufficient capacity to cache this data. Without enough
memory for the data-dictionary cache, users see a severe performance
degradation. Allocating sufficient memory to the shared pool where the data
dictionary cache resides precludes these particular performance problems.
The size and content of the PGA depends on the Oracle-server options installed.
This area consists of the following components:
· stack-space: the memory that holds the session's variables, arrays, and so
on.
· session-information: unless using the multithreaded server, the instance
stores its session-information in the PGA. (In a multithreaded server, the
session-information goes in the SGA.)
· private SQL-area: an area in the PGA which holds information such as
bind-variables and runtime-buffers.
· sorting area: an area in the PGA which holds information on sorts, hash-
joins, etc.
Process architectures
Oracle processes
Internationalization
This watermark does not appear in the registered version - http://www.clicktoconvert.com
Version numbering
Since version 7, Oracle's RDBMS release numbering has used the following
codes:
For example, "10.2.0.1 for 64-bit Solaris" means: 10th major version of Oracle,
maintenance level 2, Oracle Application Server (OracleAS) 0, level 1 for
Solaris 64-bit.
Editions
Over and above the different versions of the Oracle database management
software, Oracle Corporation subdivides its product into varying "editions" -
apparently for marketing and license-tracking reasons. In approximate order of
decreasing scale, we find:
typically for servers running from one to four CPUs. If the number of
CPUs exceeds 4 CPUs, the user must convert to an Enterprise license. SE
has no memory limits, and can utilize clustering with Oracle RAC at no
additional charge.
· Standard Edition One, introduced with Oracle 10g, has some additional
feature-restrictions. Oracle Corporation markets it for use on systems
with one or two CPUs. It has no memory limitations.
· Express Edition ('Oracle Database XE'), introduced in 2005, offers Oracle
10g free to distribute on Windows and Linux platforms. It has a footprint
of only 150 MB and is restricted to the use of a single CPU, a maximum
of 4 GB of user data. Although it can be installed on a server with any
amount of memory, it is limited to using 1 GB at most. Support for this
version comes exclusively through on-line forums and not through Oracle
support.
· Oracle Database Lite, intended for running on mobile devices. The
database located on the mobile device can synchronize with a server-
based installation.
Host platforms
Database options
Suites
· Oracle Application Server became the first platform designed for grid
computing as well as with full life-cycle support for service-oriented
architecture (SOA).
· The current release of Oracle Application Server, 10g R3, does not feature a
metadata repository tier, relying instead on metadata repositories provided
in previous releases.
· Following Oracle's acquisition of BEA Systems, their stated aim is that “key
features [will be] integrated with WebLogic Server with seamless
migration”. The first stage of integration is expected in October, 2008 with a
more complete release in May, 2009.
Components
· Oracle Portal
· Oracle Identity Management
· Oracle Integration
· Oracle Business Rules
· Oracle BPEL Process Manager (option)
· Oracle Business Activity Monitoring (option)
· Oracle Business Intelligence
· Oracle Forms
· Oracle Reports
· Oracle TopLink
· Oracle JDeveloper
· Oracle Application Server Containers for J2EE (OC4J)
· Oracle Enterprise Manager
· Oracle Application Server Web Cache
· Oracle Application Server Wireless
o Desktop sharing
· Unified Messaging
o eMail
o Voice Mail
o Fax
o Telephony
o Wireless and Voice Access
o Outlook integration
· Calendaring
· Content Management
o Files
· Records Management
Components
The name of the suite has been renamed a few times. The software components
that included in the suite has also changed over ti
Suite Name Components
Oracle IDE Forms, Reports, Book, Graphics
Oracle Developer Forms, Reports, Book, Graphics
Oracle Developer/2000 Forms, Reports, Book, Graphics
Oracle Developer Suite Forms, Reports, Designer, JDeveloper
Current Status
Oracle Developer Suite 11g is Java based development tools for oracle Oracle
Developer Suite 11g consists of the following components:
· Oracle JDeveloper
· Oracle Forms
· Oracle Designer
· Oracle Software Configuration Manager
· Oracle Reports
· Oracle Discoverer
· Oracle Business Intelligence Beans
This watermark does not appear in the registered version - http://www.clicktoconvert.com
· Oracle CRM
· Oracle Financials
· Oracle HRMS
· Oracle Logistics
· Oracle Mobile Supply chain Applications
· Oracle Order Management
· Oracle Project Portfolio Management
· Oracle Quotes
· Oracle Transportation Management
· Oracle Warehouse Management Systems
The architecture of the OEM for Grid Control has three distinct components:
The OMA runs on the target host and collects information on the hardware,
operating system, and applications that run on the target. The OMS runs on one
or two servers and collects the data generated by the OMAs. The OMS pulls the
information from the OMAs and aggregates the collections into the repository.
The OMS also acts as the user-interface — by generating web-pages for
database administrators to view the status of systems and services. The OMR
comprises an instance of the Oracle database that stores the data collected by
the OMS. Installers can make the OMR highly available or fault-tolerant by
running it on an Oracle RAC instance across multiple nodes.
Database "features"
Apart from the clearly-defined database options, Oracle databases may include
many semi-autonomous software sub-systems, which Oracle Corporation
sometimes refers to as "features" in a sense subtly different from the normal
usage of the word. Such "features" may include (for example):
Standalone tools
Oracle SQL Developer, a free graphical tool for database development, allows
developers to browse database objects, run SQL statements and SQL scripts,
and edit and debug PL/SQL statements. It incorporates standard and customized
reporting.
Oracle RAC
Real Application Cluster (RAC) is a component of the Oracle 9i database
product that allows a database to be installed across multiple servers.
According to Oracle, RAC's shared disk method of clustering databases:
increases scalability because servers can easily be added or subtracted to meet
current needs, lowers costs because companies don't have to buy high-end
servers, and improves availability because if one server fails, another can
assume its workload.
RAC's shared disk architecture is an unusual approach to database clustering.
Most competing database products use the alternative, which is known as
"shared nothing" architecture. Shared nothing architecture partitions data and
only gives each server access to its own disk subsystem, while shared disk
architecture gives all servers access to the entire database. This adds failover
capacity to the database, because all servers have access to the whole database.
Proponents claim that thiReal Application Cluster (RAC) is a component of the
Oracle 9i database product that allows a database to be installed across multiple
servers. According to Oracle, RAC's shared disk method of clustering
databases: increases scalability because servers can easily be added or
subtracted to meet current needs, lowers costs because companies don't have to
buy high-end servers, and improves availability because if one server fails,
another can assume its workload.
This watermark does not appear in the registered version - http://www.clicktoconvert.com
Functionality
to which you want to connect in the connection string. For example, the
following connection string establishes a connection to the database instance
Accting1:
"Host=server1;Port=1521;ServiceName=Accting1"
Because the requested listener selects from a set of active instances in the
RAC system to forward connection requests to, it should not route the
connection request to an instance that is not running. You may think that
connection failover is not needed in an Oracle RAC system; however, if the
requested listener is down or the timing of an instance going down is such
that the requested listener is not yet aware that an instance is down, the
connection request can fail.
The connection failover feature provided by the DataDirect Connect for ODBC
Oracle drivers handles the case where the requested listener or the server
selected by the listener is down by allowing you to specify multiple listeners to
which to connect. For example, as shown in Figure 3, if Listener A is down,
the DataDirect Connect for ODBC drivers can be configured to try Listener
B,and then Listener C.
This watermark does not appear in the registered version - http://www.clicktoconvert.com
Connection failover provides protection for new connections only and does
not preserve states for transactions or queries, so your application needs to
provide failure recovery for transactions and queries.
The following example shows a connection string that enables connection
failover with two alternate servers for the DataDirect Connect for ODBC Oracle
Wire Protocol driver:
"DSN=AcctOracleServer;
AlternateServers=(HostName=AccountOracleServer:PortNumber=1521:
SID=Accounting,
HostName=255.201.11.24:PortNumber=1522:ServiceName=ABackup.NA.My
Company)"
first case, connections are distributed among the nodes in an Oracle RAC
system.
When a communication link failure occurs between an Oracle node and the
application as shown in the second case, the driver automatically switches
the connection to another available node.
When a user session fails over to an alternate RAC node, the following items
are not persisted to the failover node and must be reinitialized by the
application:
In-use stored procedures
Application changes to session state
In-flight "write" transactions (local transactions doing database updates)
Global transactions
Although Oracle documentation refers to this functionality as transparent, the
preceding list shows that it is not completely transparent to an application.
The application programmer must include code to handle the necessary
“clean-up” caused by rolled back transactions or lost session states. Because
of these restrictions, the situations where application failover is beneficial
when implemented by the driver are limited.
Applications can perform a failover using the DataDirect Connect for ODBC
Oracle drivers by performing the following steps:
1. Catch the communication error exception generated by the driver.
2. Take the necessary steps to deal with current transactions that were
This watermark does not appear in the registered version - http://www.clicktoconvert.com
rolled back.
3. Re-establish the connection to the server.
4. Re-initialize the session state.
5. Re-run any transaction that was rolled back.
To make it easy for applications to detect when the connection with the
server is lost, all communication error exceptions thrown by the DataDirect
Connect for ODBC drivers have a SQL state that begins with 08.
Oracle’s TAF implementation in their OCI ODBC driver performs Step 3 in
the preceding list for the application and may perform Step 5 for the
application if the only operation in the transaction is a Select statement.
DataDirect is currently evaluating ways to enhance the failover functionality in
the DataDirect Connect for ODBC drivers for a future release.
Benefits
· fault tolerance
· load balancing
Load Balancing
Oracle RAC systems provide two types of load balancing for automatic
workload management:
· Server load balancing distributes processing workload among Oracle
RAC nodes.
· Client load balancing distributes new connections among Oracle
RAC nodes so that no one server is overwhelmed with connection
requests. For example, when a connection fails over to another node
because of hardware failure, client load balancing ensures that the
redirected connection requests are distributed among the other
nodes in the RAC.
The primary difference between these two methods is that the former
method
distributes processing and the latter method distributes connection
attempts.
Server Load Balancing
With Oracle9i RAC systems, a listener service provides automatic load
balancing across nodes. The query optimizer determines the optimal
distribution of workload across the nodes in the RAC based on the number of
processors and current load.
Oracle 10g also provides load-balancing options that allow the database
This watermark does not appear in the registered version - http://www.clicktoconvert.com
With client load balancing enabled, the driver randomly selects the order of
the connection attempts to nodes throughout the Oracle RAC system. For
example, Node B may be tried first, followed by Nodes D, C, and A.
Subsequent connection retry attempts will continue to use this order. Using a
randomly determined order makes it less likely that any one node in the
Oracle RAC system will be so overwhelmed with connection requests that it
may start refusing connections.
This watermark does not appear in the registered version - http://www.clicktoconvert.com
For example, the following connection string enables client load balancing for
the DataDirect Connect for ODBC Oracle Wire Protocol driver:
"DSN=AcctOracleServer;
AlternateServers=(HostName=AccountOracleServer:PortNumber=1521:
SID=Accounting, HostName=255.201.11.24:PortNumber=1522:
ServiceName=ABackup.NA.MyCompany);LoadBalancing=1"
· scalability
Implementation
Cache Fusion
Since all computers/instances in an RAC access the same database, the overall
system must guarantee the coordination of data changes on different computers
such that whenever a computer queries data it receives the current version —
This watermark does not appear in the registered version - http://www.clicktoconvert.com
even if another computer recently modified that data. Oracle RAC refers to this
functionality as Cache Fusion. Cache Fusion involves the ability of Oracle RAC
to "fuse" the in-memory data cached physically separately on each computer
into a single, global cache.
Evaluation
In RAC the node performing the write-transaction must take ownership of the
relevant area of the database: typically this involves a request across the cluster
interconnection (local IP network) to transfer the data-block ownership from
another node to the one wishing to do the write. This takes a relatively long time
(from few milliseconds to tens of milliseconds) compared to single database-
node using in-memory operations. For many types of applications, the time
spent coordinating block access across systems is low relative to the many
operations on the system, and RAC will scale comparably to a single system.
Also, high read-transactional databases work very well under RAC, as no need
for ownership-transfer exists.
because all the nodes need to co-ordinate each other to get a resource like locks
and all the nodes are supposed to update same control file, in addition to that
above mentioned inter-node block transfer also creates a big bottleneck in the
performance. So usage of RAC for OLTP systems and its scalability is still a
debatable point.
Competition
Shared Everything
Shared Nothing
Database administrator
A database administrator (DBA) is a person who is responsible for the
environmental aspects of a database. The role of a database administrator has
changed according to the technology of database management systems
(DBMSs) as well as the needs of the owners of the databases. For example,
although logical and physical database design are traditionally the duties of a
database analyst or database designer, a DBA may be tasked to perform those
duties.
One of my colleagues likes to comment that users of the databases for which he
is responsible think they control the databases. The reality, as he quite correctly
puts it (if in a control-freakish sort of way), is quite different. As a DBA, he can
do whatever he wants in any database he is responsible for, so he’s the one with
control. Database administrators do have a great deal of power, but it is
important to remember that with great power also comes great responsibility.
Ultimately, the success and failure of a database to respond to user requirements
and satisfy corporate objectives rests with the DBA. The DBA must take the
blame and the praise for good or bad database management.
The kinds of tasks DBAs in the Oracle world are responsible for include the
following:
• Sizing and evaluating server hardware As the individual responsible for the
smooth operation of databases in your organization, you will be called upon
to suggest the configuration of the server that will be used to run Oracle. Your
experience will play a key role here in determining the amount of memory,
hard disk, CPU, and other resources required to support the target database’s
operations. Understanding the architecture of Oracle and the data needs of
the business and the application will help you perform this task.
This watermark does not appear in the registered version - http://www.clicktoconvert.com
• Installing Oracle software and updates After you buy the software, the first
thing you need to do is bring it up. Installation of the Oracle software on the
target platform is the job of the DBA. It usually involves more than putting in
the CD and answering the prompts of the setup program because Oracle is a
very powerful system comprising a complex piece of software that has many
hooks and interactions with the operation system. Ensuring that the software
is installed and working properly is a key to being a successful DBA.
PART I
• Planning and designing the database structure Once the software is
installed, you need to make sure that the layout of the physical data structures
and logical elements of Oracle is done in an optimal way. If this is not the
case, performance will suffer and users will make their displeasure known.
If you have properly sized the hardware, this should be an easy task, since
you should have taken the database size and structure into account; if you
inherited the environment, you may need to use your expertise to determine
the optimal configuration.
will be undertaken by the DBA, since the DBA will be responsible for
ensuring that the database continues to work properly after the software
vendor or database architect leaves.
As you can tell, the duties of a DBA are wide and varied. It is an exciting
position whose goal can sometimes be summed up in one phrase: reduce the
number of times the phone rings in a day. If you get a lot of phone calls from
users or management, this is probably not a good sign and can make your day
an unhappy one. Well-tuned databases on appropriate hardware with good
disaster recovery and backup strategies will reduce your phone calls, make
happy users, and increase your job satisfaction.
The standard applications that are supplied with Oracle Enterprise Manager
include the following:
In many cases, the third-party company also supplies some form of additional
services such as availability monitoring software, access to a best practices and
resolution knowledge base, monthly reports for the "client", service calls or
telephone calls with the client. There are various forms and variations on each
of the above items, each providing different levels of quality and service.
DBA SUPPORT
This watermark does not appear in the registered version - http://www.clicktoconvert.com
• User and server processes: The user and server processes are the primary
processes involved when a SQL statement is executed; however, other
processes may help the erver complete the processing of the SQL statement.
• Other processes: Many other processes exist that are used by other options
within Oracle, such as Advanced Queuing, Real Application Clusters, Shared
Server, Advanced Replication, and so on. These processes are discussed within
their respectivecourses.
Connection
A connection is a communication pathway between a user process and an
Oracle server. A database user can connect to an Oracle server in one of three
ways:
• The user logs on to the operating system running the Oracle instance and starts
an application or tool that accesses the database on that system. The
communication pathway is established using the interprocess communication
mechanisms available on the host operating system.
This watermark does not appear in the registered version - http://www.clicktoconvert.com
• The user starts the application or tool on a local computer and connects over a
network to the computer running the Oracle instance. In this configuration,
called client-server, network software is used to communicate between the user
and the Oracle server.
• In a three-tiered connection, the user’s computer communicates over the
network to an application or a network server, which is connected through a
network to the machine running the Oracle instance. For example, the user runs
a browser on a computer on a network to use an application residing on an NT
server that retrieves data from an Oracle database running on a UNIX host.
Physical Structure
The physical structure of an Oracle database is determined by the operating
system files that provide the actual physical storage for database information.
• Control files
Control files containing information necessary to maintain and verify database
integrity
• Data files
Data files containing the actual data in the database
• Redo log files
Redo logs containing a record of changes made to the database to enable
recovery of The data in case of failures
Memory Structure
Oracle’s memory structure consists of two memory areas known as:
• System Global Area (SGA): Allocated at instance startup, and is a
fundamental component of an Oracle Instance
The data dictionary cache is a collection of the most recently used definitions in
the database.
• It includes information about database files, tables, indexes, columns, users,
privileges, and other database objects.
• During the parse phase, the server process looks at the data dictionary for
information to resolve object names and validate access.
• Caching the data dictionary information into memory improves response time
on queries.
• Size is determined by the shared pool sizing.
The database buffer cache stores copies of data blocks that have been retrieved
from the data files.
• It enables great performance gains when you obtain and update data.
• It is managed through a least recently used (LRU) algorithm.
• DB_BLOCK_SIZE
determines the primary block size.
– Redo log buffer
The redo log buffer cache records all changes made to the database data blocks.
• Its primary purpose is recovery.
• Changes recorded within are called redo entries.
• Redo entries contain information to reconstruct or redo changes.
• Size is defined by
LOG_BUFFER.
– Other structures (e.g. lock and latch management, statistical data)
• There are two optional memory structures that can be configured within the
SGA:
– Large pool
The large pool is an optional area of memory in the SGA configured only in a
shared server environment.
• It relieves the burden placed on the shared pool.
• This configured memory area is used for session memory (UGA), I/O slaves,
and backup and restore operations.
• Unlike the shared pool, the large pool does not use an LRU list.
• Sized by LARGE_POOL_SIZE.
ALTER SYSTEM SET LARGE_POOL_SIZE = 64M;
This watermark does not appear in the registered version - http://www.clicktoconvert.com
– Java pool
The Java pool services the parsing requirements for Java commands.
• Required if installing and using Java.
• It is stored much the same way as PL/SQL in
database tables.
• It is sized by the JAVA_POOL_SIZE parameter.
• Program Global Area (PGA): Allocated when the server process is started.
The Program Global Area or Process Global Area (PGA) is a memory region
that contains data and control information for a single server process or a single
background process. The PGA is allocated when a process is created and
deallocated when the process is terminated. In contrast to the SGA, which is
shared by several processes, the PGA is an area that is used by only one
process. In a dedicated server configuration, the PGA includes these
components:
• Sort area: Used for any sorts that may be required to process the SQL tatement
• Session information: Includes user privileges and performance statistics for the
session
• Cursor state: Indicates the stage in the processing of the SQL statements that
are currently used by the session
• Stack space: Contains other session variables
Process Structure
The relationship between the physical and memory structures is maintained and
enforced by Oracle’s background processes.
System Monitor(SMON)
If the Oracle instance fails, any information in the SGA that has not been
written to disk is lost. For example, the failure of the operating system causes an
instance failure. After the loss of the instance, the background process SMON
automatically performs instance recovery when the database is reopened.
Process Monitor(PMON)
The background process PMON cleans up after failed processes by:
• Rolling back the user’s current transaction
• Releasing all currently held table or row locks
This watermark does not appear in the registered version - http://www.clicktoconvert.com
Archiver (ARCn)
• Optional background process
• Automatically archives online redo logs when ARCHIVELOG mode is set
• Preserves the record of all changes made to the Database.
Logical Structure
The logical structure of the Oracle architecture dictates how the physical space
of a database is to be used.
A hierarchy exists in this structure that consists of tablespaces, segments,
extents, and blocks.
This watermark does not appear in the registered version - http://www.clicktoconvert.com
PFILE initSID.ora
• The PFILE is a text file that can be modified with an operating system editor.
• Modifications to the file are made manually.
• Changes to the file take effect on the next startup.
• Its default location is $ORACLE_HOME/dbs.
SPFILE spfileSID.ora
• Binary file with the ability to make changes persistent across shutdown and
startup
• Maintained by the Oracle server
• Records parameter value changes made with the ALTER SYSTEM command
• Can specify whether the change being made is temporary or persistent
• Values can be deleted or reset to allow an instance to revert to the default
value
SQL>ALTER SYSTEM SET undo_tablespace = 'UNDO2';
Creating an SPFILE
SPFILE can be created from an initSID.ora file using the CREATE SPFILE
command, which can be executed before or after instance startup:
CREATE SPFILE FROM PFILE;
Starting Up a Database
When starting the database, you select the state in which it starts. The following
scenarios describe different stages of starting up an instance.
Starting the Instance (NOMOUNT)
Usually you would start an instance without mounting a database only during
database creation or the re-creation of control files.
Starting an instance includes the following tasks:
• Reading the initialization file from $ORACLE_HOME/dbs in the following
order:
– First spfileSID.ora. If not found then
– spfile.ora
– initSID.ora
• Specifying the PFILE parameter with STARTUP overrides the default
behavior
• Allocating the SGA
• Starting the background processes
• Opening the alertSID.log file and the trace files
The database must be named with the DB_NAME parameter either in the
initialization file or
in the STARTUP command.
Mounting the Database To perform specific maintenance operations, you start
an instance and mount a database but do not open the database.
This watermark does not appear in the registered version - http://www.clicktoconvert.com
For example, the database must be mounted but not open during the following
tasks:
• Renaming data files
• Enabling and disabling redo log archiving options
• Performing full database recovery
Mounting a database includes the following tasks:
• Associating a database with a previously started instance
• Locating and opening the control files specified in the parameter file
• Reading the control files to obtain the names and status of the datafiles and
redo log files.
Opening the Database Normal database operation means that an instance is
started and thedatabase is mounted and open; with normal database operation,
any valid user can connect to the database and perform typical data access
operations.
Opening the database includes the following tasks:
• Opening the online data files
• Opening the online redo log files
If any of the data files or online redo log files are not present when you attempt
to open the database, the Oracle server returns an error.
During this final stage, the Oracle server verifies that all the data files and
online redo log files can be opened and checks the consistency of the database.
If necessary, the System Monitor background process (SMON) initiates instance
recovery.
STARTUP Command
SQL>STARTUP
Start up the instance and open the database:
SQL>STARTUP PFILE=$ORACLE_HOME/dbs/initdb01.ora
Starting Up
To start up an instance, use the following command:
STARTUP [FORCE] [RESTRICT] [PFILE=filename]
[OPEN [RECOVER][database]
|MOUNT
|NOMOUNT]
Shutdown Immediate
Immediate database shutdown proceeds with the following conditions:
• Current SQL statements being processed by Oracle are not completed.
• The Oracle server does not wait for users currently connected to the database
to disconnect.
• Oracle rolls back active transactions and disconnects all connected users.
• Oracle closes and dismounts the database before shutting down the instance.
• The next startup does not require an instance recovery.
Shutdown Abort
If the normal and immediate shutdown options do not work, you can abort the
current database instance. Aborting an instance proceeds with the following
conditions:
• Current SQL statements being processed by the Oracle server are immediately
terminated.
• Oracle does not wait for users currently connected to the database to
disconnect.
• Database and redo buffers are not written to disk.
• Uncommitted transactions are not rolled back.
• The instance is terminated without closing the files.
• The database is not closed or dismounted.
• The next startup requires instance recovery, which occurs automatically.
Creating a Database
Creation Prerequisites
To create a new database, you must have thefollowing:
• A privileged account authenticated in one of the following ways:
– By the operating system
– Using a password file
• Sufficient memory to start the instance
• Sufficient disk space for the planned database
Creating a Database
An Oracle database can be created using:
• Oracle Database Configuration Assistant
• The CREATE DATABASE command
Creating SPFILE
Create the SPFILE from initSID.ora
SQL>CREATE SPFILE FROM PFILE;
Starting the Instance
• Connect as SYSDBA
• Start the instance in NOMOUNT stage
SQL>STARTUP NOMOUNT
Creating the Database
SQL> create database db01
2 logfile
3 GROUP 1 ('/u01/oradata/db01/log_01_db01.rdo') SIZE 15M,
4 GROUP 2 ('/u01/oradata/db01/log_02_db01.rdo') SIZE 15M,
5 GROUP 3 ('/u01/oradata/db01/log_03_db01.rdo') SIZE 15M
6 datafile '/u01/oradata/db01/system_01_db01.dbf' SIZE 100M
7 undo tablespace UNDO
8 datafile '/u01/oradata/db01/undo_01_db01.dbf' SIZE 40M
9 default temporary tablespace TEMP
10 tempfile '/u01/oradata/db01/temp_01_db01.dbf' SIZE 20M
11 extent management local uniform size 128k
This watermark does not appear in the registered version - http://www.clicktoconvert.com
Data Dictionary
During database creation, the Oracle server creates additional object structures
within the data files.
• Data dictionary tables
• Dynamic performance tables
The data dictionary is a set of read-only tables and views that record, verify, and
provide information about its associated database.
• Describes the database and its objects
• Includes two types of objects:
– Base tables
– Store description of database
– Created with CREATE DATABASE
– Data Dictionary views
– Summarize base table information
– Created using catalog.sql script
USER_xxx
Objects owned by the current user
SQL>SELECT owner, object_name, object_type FROM users_objects;
• Database structure
– DBA_TABLESPACES, DBA_DATA_FILES
• Location and status of archived logs are recorded when archiving occurs.
• Location and status of backups are recorded by the Recovery Manager utility.
• Current log sequence number is recorded when log switches occur.
• Checkpoint information is recorded as checkpoints are made.
• Shutdown normal:
SQL> shutdown
• Create additional control files
$ cp $HOME/ORADATA/u01/ctrl01.ctl
$HOME/ORADATA/u02/ctrl02.ctl
Log Switches
LGWR writes to the online redo log files sequentially. When the current online
redo log group is filled, LGWR begins writing to the next group. This is called a
log switch.
When the last available online redo log file is filled, LGWR returns to the first
online redo log group and starts writing again.
Forcing Checkpoints
A checkpoint can be forced using the following SQL command:
SQL>ALTER SYSTEM CHECKPOINT;
This watermark does not appear in the registered version - http://www.clicktoconvert.com
Restrictions
This watermark does not appear in the registered version - http://www.clicktoconvert.com
You can clear an online redo log file whether it is archived or not. However,
when it is not archived, you must include the keyword UNARCHIVED. This
makes backups unusable if the online redo log file is needed for recovery.
Database Architecture
The Oracle database architecture includes logical and physical structures that
make up the atabase.
• The physical structure includes the control files, online redo log files, and data
files that make up the database.
• The logical structure includes tablespaces, segments, extents, and data blocks.
The Oracle server enables fine-grained control of disk space use through
tablespace and logical storage structures, including segments, extents, and data
blocks.
Tablespaces
The data in an Oracle database are stored in tablespaces.
• An Oracle database can be logically grouped into smaller logical areas of
space known as tablespaces.
• A tablespace can belong to only one database at a time.
• Each tablespace consists of one or more operating system files, which are
called data files.
• A tablespace may consist of zero or more segments.
• Tablespaces can be brought online while the database is running.
• Except for the SYSTEM tablespace or a tablespace with an active undo
segment, tablespaces can be taken offline, leaving the database running.
• Tablespaces can be switched between read-write and read-only status.
Data Files
• Each tablespace in an Oracle database consists of one or more files called data
files. These are physical structures that conform with the operating system on
which the Oracle server is running.
• A data file can belong to only one tablespace.
This watermark does not appear in the registered version - http://www.clicktoconvert.com
• An Oracle server creates a data file for a tablespace by allocating the specified
amount of disk space plus a small amount of overhead.
• The database administrator can change the size of a data file after its creation
or can specify that a data file should dynamically grow as objects in the
tablespace grow.
Segments
• A segment is the space allocated for a specific logical storage structure within
a tablespace. For example, all of the storage allocated to a table is a segment.
• A tablespace may consist of one or more segments.
• A segment cannot span tablespaces; however, a segment can span multiple
data files that belong to the same tablespace.
• Each segment is made up of one or more extents.
Extents
Space is allocated to a segment by extents.
• One or more extents make up a segment.
– When a segment is created, it consists of at least one extent.
– As the segment grows, extents get added to the segment.
– The DBA can manually add extents to a segment.
• An extent is a set of contiguous Oracle blocks.
• An extent cannot span a data file but must exist in one data file.
Data Blocks
The Oracle server manages the storage space in the data files in units called
Oracle blocks or data blocks.
• At the finest level of granularity, the data in an Oracle database is stored in
data blocks.
• Oracle data blocks are the smallest units of storage that the Oracle server can
allocate, read, or write.
• One data block corresponds to one or more operating system blocks allocated
from an existing data file.
• The standard data block size for an Oracle database is specified by the
DB_BLOCK_SIZE initialization parameter when the database is created.
• The data block size should be a multiple of the operating system block size to
avoid
unnecessary I/O.
• The maximum data block size is dependent on the operating system.
Types of Tablespaces
The DBA creates tablespaces for increased control and ease of maintenance.
The Oracle server perceives two types of tablespaces: SYSTEM and all others.
SYSTEM Tablespace
• Created with the database
• Required in all databases
This watermark does not appear in the registered version - http://www.clicktoconvert.com
• Dictionary-managed tablespaces:
– Default method
– Free extents recorded in data dictionary tables
Undo Tablespace
• Used to store undo segments
• Cannot contain any other objects
• Extents are locally managed
• Can only use the DATAFILE and EXTENT
MANAGEMENT clauses of the CREATE TABLESPACE command
SQL>CREATE UNDO TABLESPACE undo1
DATAFILE '/u01/oradata/undo101.dbf' SIZE 40M;
Temporary Tablespace
• Used for sort operations
• Cannot contain any permanent objects
• Locally managed extents recommended
SQL>CREATE TEMPORARY TABLESPACE temp
TEMPFILE '/u01/oradata/temp01.dbf' SIZE 500M
EXTENT MANAGEMENT LOCAL UNIFORM SIZE 10M;
Offline Status
• Offline tablespace is not available for data access.
• Some tablespaces must be online:
– SYSTEM
– Tablespaces with active undo segments
– Default temporary
• To take a tablespace offline:
SQL>ALTER TABLESPACE userdata OFFLINE;
• To bring a tablespace online:
SQL>ALTER TABLESPACE userdata ONLINE;
Read-Only Tablespaces
SQL>ALTER TABLESPACE userdata READ ONLY;
• Tablespace available only for read operations
• Objects can be dropped from tablespace
• To create a read-only tablespace on a removable
media drive:
– ALTER TABLESPACE…READ ONLY;
– Move the data file to the WORM drive
– ALTER TABLESPACE…RENAME DATAFILE…;
Dropping Tablespaces
Resizing a Tablespace
• Add a data file
• Change the size of a data file:
– Automatically
– Manually
Because the SYSTEM tablespace cannot be taken offline, you must use this
method to move data files in the SYSTEM tablespace
SQL>ALTER DATABASE RENAME
FILE '/u01/oradata/system01.dbf'
TO '/u03/oradata/system01.dbf';
Types of Segments
Segments are space-occupying objects in a database. They use space in the data
files of a database. This section describes the different types of segments.
Table
A table is the most common means of storing data within a database. A table
segment stores that data for a table that is neither clustered nor partitioned. Data
within a table segment is stored in no particular order, and the database
administrator has very little control over the location of rows within the blocks
in a table. All the data in a table segment must be stored inone tablespace.
Table Partition
Scalability and availability are major concerns when there is a table in a
database with high concurrent usage. In such cases, data within a table may be
stored in several partitions, each of which resides in a different tablespace. The
Oracle server currently supports partitioning by a range of key values or by a
hashing algorithm. If a table is partitioned, each partition is a segment, and
storage parameters can be specified to control them independently. Use of this
type of segment requires the Partitioning option within the Oracle9i Enterprise
Edition.
Cluster
A cluster, like a table, is a type of data segment. Rows in a cluster are stored
based on key column values. A cluster may contain one or more tables. Tables
in a cluster belong to the same segment and share the same storage
characteristics. The rows in a clustered table can be accessed with an index or
hashing algorithm.
Index
All the entries for a particular index are stored within one index segment. If a
table has three indexes, three index segments are used. The purpose of this
segment is to look up the location of rows in a table based on a specified key.
Index-Organized Table
This watermark does not appear in the registered version - http://www.clicktoconvert.com
In an index-organized table, data is stored within the index based on the key
value. An indexorganized table does not need a table lookup, because all the
data can be retrieved directly from the index tree.
Index Partition
An index can be partitioned and spread across several tablespaces. In this case,
each partition in the index corresponds to a segment and cannot span multiple
tablespaces. The primary use of a partitioned index is to minimize contention by
spreading index I/O. Use of this type of segment requires the Partitioning option
within the Oracle8i Enterprise Edition.
Undo Segment
An undo segment is used by a transaction that is making changes to a database.
Before
changing the data or index blocks, the old value is stored in the undo segment.
This allows a user to undo changes made.
Temporary Segment
When a user executes commands such as CREATE INDEX, SELECT
DISTINCT, and SELECT GROUP BY, the Oracle server tries to perform sorts
in memory. When a sort needs more space than the space available in memory,
intermediate results are written to the disk. Temporary segments are used to
store these intermediate results.
LOB Segment
One or more columns in a table can be used to store large objects (LOBs) such
as text
documents, images, or videos. If the column is large, the Oracle server stores
these values in separate segments known as LOB segments. The table contains
only a locator or a pointer tothe location of the corresponding LOB data.
Nested Table
A column in a table may be made up of a user-defined table as in the case of
items within an order. In such cases, the inner table, which is known as a nested
table, is stored as a separatesegment.
Bootstrap Segment
A bootstrap segment, also known as a cache segment, is created by the sql.bsq
script when a database is created. This segment helps to initialize the data
dictionary cache when the database is opened by an instance. The bootstrap
segment cannot be queried or updated and does not require any maintenance by
the database administrator.
– Dropped
– Altered
– Truncated
• Manual Configuration
• Allows you to configure data blocks manually using parameters such as:
– PCTFREE
– PCTUSED
– FREELIST
• Only method available in previous Oracle versions
– DBA_EXTENTS
SQL> SELECT extent_id,file_id,block_id,blocks
2 FROM dba_extents
3 WHERE owner='HR' AND segment_name='EMPLOYEES';
– DBA_FREE_SPACE
SQLPLUS> SELECT tablespace_name, count(*),
2> max(blocks), sum(blocks)
3> FROM dba_free_space
4> GROUP BY tablespace_name;
This watermark does not appear in the registered version - http://www.clicktoconvert.com
UNDO Tablespace
• You may create the UNDO tablespace with the
database by adding a clause in the CREATE
DATABASE command
CREATE DATABASE db01
...
UNDO TABLESPACE undo1 DATAFILE 'undo1db01.dbf'
SIZE 20M AUTOEXTEND ON
Managing Tables
Create Table
The CREATE TABLE command is used to create relational tables or object
tables.
The example below creates a departments table as data dictionary managed.
CREATE TABLE hr.departments(department_id NUMBER(4),
department_name VARCHAR2(30),manager_id NUMBER(6)
location_id NUMBER(4))
This watermark does not appear in the registered version - http://www.clicktoconvert.com
Truncating a Table
SQL>TRUNCATE TABLE hr. department;
• Truncating a table deletes all rows in a table and releases used space.
• Corresponding indexes are truncated.
Dropping a Table
DROP TABLE hr.department CASCADE CONSTRAINTS;
Dropping a Column
Removing a column from a table:
SQL>ALTER TABLE hr.employees DROP COLUMN comments CASCADE
CONSTRAINTS CHECKPOINT 1000;
This watermark does not appear in the registered version - http://www.clicktoconvert.com
• Removes the column length and data from each row, freeing space in the data
block
• Dropping a column in a large table takes a considerable amount of time
Managing Users
Security Domain
The database administrator defines the names of the users allowed to access a
database. A security domain defines the settings that apply to the user.
Authentication Mechanism
A user who needs access to the database can be authenticated by one of the
following:
• Data Dictionary
• Operating system
• Network
The means of authentication is specified at the time the user is defined in the
database and can be altered later. This lesson covers authentication by database
and by operating system only.
Tablespace Quotas
Tablespace quotas control the amount of physical storage space allocated to a
user in the tablespaces in the database.
Default Tablespace
The default tablespace defines the location where segments created by a user are
stored if theuser does not explicitly specify a tablespace at the time the segment
is created.
Temporary Tablespace
Temporary tablespace defines where extents will be allocated by the Oracle
server if the user performs an operation that requires writing sort data to the
disk.
Account Locking
Accounts can be locked to prevent a user from logging on to the database. This
can be set to occur automatically, or the database administrator can lock or
unlock accounts manually.
Resource Limits
Limits can be placed on the use of resources such as CPU time, logical I/O, and
the numberof sessions opened by a user.
Direct Privileges
Privileges are used to control the actions a user can perform in a database.
Role Privileges
A user can be granted privileges indirectly through the use of roles.
Database Schema
This watermark does not appear in the registered version - http://www.clicktoconvert.com
Schema Objects
Tables
Triggers
Constraints
Indexes
Views
Sequences
Stored program units
Synonyms
User-defined data types
Database links
Creating a New User: Database Authentication
SQL>CREATE USER aaron IDENTIFIED BY soccer DEFAULT
TABLESPACE data TEMPORARY TABLESPACE temp QUOTA 15m ON
data PASSWORD EXPIRE;
Managing Privileges
Privileges
A privilege is a right to execute a particular type of SQL statement or to access
another user’s
object. These include the right to:
• Connect to a database
• Create a table
• Select rows from another user’s table
• Execute another user’s stored procedure
Two types of Oracle user privileges:
• System: Enables users to perform particular actions in the database
• Object: Enables users to access and manipulate a specific object
System Privileges
The privileges can be classified as follows:
• Privileges enabling system wide operations; for example, CREATE SESSION,
CREATE TABLESPACE
• Privileges enabling management of objects in a user’s own schema; for
example, CREATE TABLE
• Privileges enabling management of objects in any schema; for example,
CREATE ANY TABLE
RESTRICTED SESSION
TABLESPACE CREATE TABLESPACE
ALTER TABLESPACE
DROP TABLESPACE
UNLIMITED TABLESPACE
Auditing
• Auditing is the monitoring of selected user database actions
• Used to
– Investigate suspicious database activity
– Gather information about specific database activities
Auditing Guidelines
• Define what you want to audit
– Audit users, statements, or objects
– Statement executions
– Successful statement executions, unsuccessful statement executions or both
• Manage your audit trail
– Monitor the growth of the audit trail
– Protect the audit trail from unauthorized access
Auditing Categories
• Audited by default
– Instance startup and Instance shutdown
– Administrator privileges
• Database auditing
– Enabled by DBA
– Cannot record column values
• Value-based or application auditing
– Implemented through code
– Can record column values
– Used to track changes to tables
Auditing Options
• Statement auditing
SQL>AUDIT TABLE;
• Privilege auditing
This watermark does not appear in the registered version - http://www.clicktoconvert.com
Auditing Options
Fine-Grained Auditing
• Provides the monitoring of data access based on
content
• Implemented using the DBMS_FGA package
Managing Roles
What is a Role?
Oracle provides for easy and controlled privilege management through roles.
Roles are named groups of related privileges that are granted to users or other
roles. They are designed to ease the administration of privileges in the database.
Benefits of Roles
• Easier privilege management
• Dynamic privilege management
• Selective availability of privileges
• Can be granted through the operating system
• Improved performance
Creating Roles
SQL>CREATE ROLE oe_clerk;
SQL>CREATE ROLE hr_clerk IDENTIFIED BY bonus;
SQL>CREATE ROLE hr_manager IDENTIFIED EXTERNALLY
Predefined Roles
Role Name Description
CONNECT, These roles are provided
RESOURCE,DBA for backward compatibility
EXP_FULL_DATABASE Privileges to export the database
IMP_FULL_DATABASE Privileges to import the database
DELETE_CATALOG_ROLE DELETE DELETE privileges on
data dictionary tables
EXECUTE_CATALOG_ROLE EXECUTE EXECUTE privilege on
data dictionary packages
SELECT_CATALOG_ROLE SELECT SELECT privilege on data
dictionary tables
Modifying Roles
SQL>ALTER ROLE hr_clerk IDENTIFIED EXTERNALLY;
SQL>ALTER ROLE hr_manager NOT IDENTIFIED;
SQL>ALTER ROLE oe_clerk IDENTIFIED BY order;
Assigning Roles
This watermark does not appear in the registered version - http://www.clicktoconvert.com
Application Roles
• Application roles can be enabled only by authorized PL/SQL packages
• The USING package clause creates an Application Role
SQL>CREATE ROLE admin_role IDENTIFIED USING hr.employee;
RMAN(Recovery Manager)
Recovery Manager (RMAN) is an Oracle provided utility for backing-up,
restoring and recovering Oracle Databases. RMAN ships with the Oracle
database and doesn't require a separate installation. The RMAN executable is
located in your ORACLE_HOME/bin directory. In fact, RMAN, is just a Pro*C
application that translates commands to a PL/SQL interface. The PL/SQL calls
are statically linked into the Oracle kernel, and does not require the database to
be opened.
Benefits of RMAN
· Backups are faster and uses less tapes (RMAN will skip empty blocks)
· Less database archiving while database is being backed-up
· RMAN checks the database for block corruptions
· Automated restores from the catalog
· Files are written out in parallel instead of sequential
Recovery Catalog
Recovery catalog holds RMAN repository data for one or more databases in a
separate database schema, in addition to using the control files of the databases.
Next, log in to rman and create the catalog schema. Prior to Oracle 8i this was
done by running the catrman.sql script. > rman catalog rman/rman
RMAN> create catalog tablespace tools;
RMAN> exit;
This watermark does not appear in the registered version - http://www.clicktoconvert.com
You can now continue by registering your databases in the catalog. Look at this
example:
$ rman target /
LOG_MODE
------------
ARCHIVELOG
Ensure your database is up and running before starting the on-line backup:
SQL> startup;
ORACLE instance started.
Total System Global Area 209715200 bytes
Fixed Size 1289748 bytes
Variable Size 138412524 bytes
Database Buffers 67108864 bytes
Redo Buffers 2904064 bytes
Database mounted.
Database opened.
SQL> exit;
$ rman target /