1. Services are more than just a connection method - they are also important for performance tuning, resource management, and job control. Services touch many aspects of database management.
2. In RAC databases, databases can register with multiple listeners and listeners can redirect connections to multiple databases. Services act as the link between databases and listeners.
3. There are different tools for configuring services in RAC versus non-RAC databases. In non-RAC, services can be configured by setting the SERVICE_NAMES parameter, while in RAC one must use command line tools, DBCA, or Enterprise Manager rather than directly setting parameters.
This is a paper that was developed as a collaboration with Bill Milligan at Level 3 in the late 90's. We extended the OFA concept of Cary Millsap to the 11.0.3 Apps.
George Anastas presented considerations relating to the potential deployment of nuclear power plants in Australia. Some key points include: (1) Australia can learn from mistakes made by other countries; (2) regulators must be transparent and independent from promotion of nuclear power; and (3) any plan to introduce nuclear power should proceed carefully and incrementally to manage financial risks, which could be vast. The presentation covered technical, economic and regulatory factors to consider in planning potential nuclear power development.
Mesopotamia flower is a 2010 work by Nadine Shammas. It provides minimal information, only listing an author, title, and year. The document appears to be a title or reference to a creative work but offers no other contextual details.
The document discusses Legionella testing methods, specifically comparing culture and PCR testing. The traditional culture method takes 12 days to get results but is considered the gold standard. PCR testing uses DNA amplification to provide results within 24 hours, making it more efficient. However, PCR detects both live and dead Legionella cells and its results are reported in different units than culture, so it remains unclear how to correlate and determine appropriate actions based on PCR results alone. Guidance is needed on interpreting and acting on PCR test results.
The document summarizes the establishment and development of French colonial empires in Canada and Louisiana between the 16th and 18th centuries. It discusses the French fur trade with indigenous groups, the establishment of settlements, competition with other European powers, relations and alliances with native peoples, and the economic dependence of New France on the fur trade. Key events included the French allying with Algonquians and Hurons against the Iroquois, competition with the Dutch fur trade, growth of the upper country population, and maintaining alliances being critical to containing British colonial expansion.
This is a paper that was developed as a collaboration with Bill Milligan at Level 3 in the late 90's. We extended the OFA concept of Cary Millsap to the 11.0.3 Apps.
George Anastas presented considerations relating to the potential deployment of nuclear power plants in Australia. Some key points include: (1) Australia can learn from mistakes made by other countries; (2) regulators must be transparent and independent from promotion of nuclear power; and (3) any plan to introduce nuclear power should proceed carefully and incrementally to manage financial risks, which could be vast. The presentation covered technical, economic and regulatory factors to consider in planning potential nuclear power development.
Mesopotamia flower is a 2010 work by Nadine Shammas. It provides minimal information, only listing an author, title, and year. The document appears to be a title or reference to a creative work but offers no other contextual details.
The document discusses Legionella testing methods, specifically comparing culture and PCR testing. The traditional culture method takes 12 days to get results but is considered the gold standard. PCR testing uses DNA amplification to provide results within 24 hours, making it more efficient. However, PCR detects both live and dead Legionella cells and its results are reported in different units than culture, so it remains unclear how to correlate and determine appropriate actions based on PCR results alone. Guidance is needed on interpreting and acting on PCR test results.
The document summarizes the establishment and development of French colonial empires in Canada and Louisiana between the 16th and 18th centuries. It discusses the French fur trade with indigenous groups, the establishment of settlements, competition with other European powers, relations and alliances with native peoples, and the economic dependence of New France on the fur trade. Key events included the French allying with Algonquians and Hurons against the Iroquois, competition with the Dutch fur trade, growth of the upper country population, and maintaining alliances being critical to containing British colonial expansion.
The document summarizes a study conducted by the RAAF Institute of Aviation Medicine to measure the real-world effectiveness of foam earplugs when used by untrained users, compared to laboratory tests. 43 aircrew had their earplug insertion technique and noise attenuation measured before and after a brief insertion training. Results showed that before training, earplugs provided significantly less attenuation than factory specifications, but attenuation improved by an average of 10 dB after training. The study demonstrates the importance of proper insertion technique training to maximize hearing protection and reduce noise exposure risks for aircrew.
This document discusses hypothermia, its complications, and strategies for detection and management. It notes that core temperatures below 35°C quadruple mortality in severe trauma patients. Data from the Queensland Trauma Registry shows 13% of trauma patients had temperatures below 35°C, and over half of hypothermia cases occurred after hospital admission. The document advocates for active warming techniques to treat hypothermia, as passive warming alone is ineffective. Specific active warming recommendations include using devices like the F2010 Hypothermia Alert.
The document discusses establishing purpose and standards to achieve success. It recommends writing mission statements that clearly outline one's career, family, financial, health, spiritual, and recreational goals and intentions. It also suggests declaring the values and standards that will guide decision making. Finally, it advises identifying foundational cycles like annual, biannual, quarterly and monthly activities and events that will support goals and lay the groundwork for positive results.
This document outlines Marc Edsel C. Ayes' 20-year marketing plan for Edsel, referred to as "Ah!YES MAN!". The plan emphasizes an attitude of openness, adventure, and constant self-improvement. It details Ayes' vision to challenge status quo thinking and encourage others to live life to the fullest without regrets. The core roles involve thinking positively, dreaming big, accepting challenges, doing things in a big way, knowing what you want, not forgetting your roots, and saying "yes" to God. The plan also involves goal-setting, self-projects, monitoring progress, and embracing continuous improvement.
Franchisor confidence remains strong but softened in some areas. While general business conditions outlook was still positive, sentiment decreased for franchisor growth prospects, franchisee sales and profitability. Service provider confidence was mixed, with negative views on franchisee sales but more positive outlooks on locations and profitability. Challenges include competition, staffing, and rising costs.
The Uniformed Services University of the Health Sciences- A Unique Resource- ...Leishman Associates
The Uniformed Services University of the Health Sciences is a joint service medical and health sciences university. It provides education and training for military medical professionals across its schools of medicine, nursing, and postgraduate dental studies. USU offers medical, dental, nursing and public health programs to serve the armed forces. It conducts important research through centers like the Armed Forces Radiobiology Research Institute and the Center for Neuroscience and Regenerative Medicine.
The document discusses the Comprehensive Soldier Fitness construct, which aims to improve the health and well-being of soldiers across four pillars: nutrition, physical conditioning, mental health/resilience, and moral/ethical development. It does this through initiatives like nutrition education, physical training programs integrated across the force generation cycle, and mental health support from pre-deployment to post-deployment reintegration. The goal is to enhance soldiers' fighting power by developing their intellect, emotions, motivation, and leadership.
Managing expectations can we really call on our big blue brother- buschLeishman Associates
This document outlines the organizational structure of the United Nations Department of Peacekeeping Operations and Department of Field Support. It includes a breakdown of the offices, divisions, and services within DPKO and DFS that plan and support UN peacekeeping missions. It also provides an example of how military and police components contribute to and integrate with UN missions. Finally, it notes some observations about contracting resources, troop and police contributing countries, and starting up peacekeeping operations.
The document discusses navigation options for moving between different pages or sections. It includes multiple instances of "Back to menu" and "Next" buttons that allow reviewing previous or following pages within a structured interface. Navigation is circular, with some sections linking back to the main menu page.
Digital storytelling refers to using digital media like videos, animations and slideshows to share information on the internet. It can be used across subjects for learning and allows students to collaborate, be creative and connect globally. Students benefit by exploring different digital media types and technologies like uploading audio, videos and graphics.
The student began by researching conventions of horror and comedy film posters. They noticed different genres use conventions in different ways. For their own poster, the student included standard elements like the release date and tagline linked to the psychological horror genre. However, they subverted conventions by inverting the colors of the central girl figure, making her appear inhuman and suggesting something supernatural will attack her. The streaks on the walls and the girl's vulnerable positioning imply she will die at the hands of something abnormal. Overall, the poster effectively conveys the horror genre through these visual cues and an unsettling, mysterious atmosphere.
The VVOB Education Program operated in Cambodia from 2008-2013 through its SEAL Program. The SEAL Program aimed to improve pre-service teacher training for science, environmental, and agricultural life skills education at Teacher Training Colleges. Specifically, the program worked to enhance the methodology and subject knowledge training for physics, biology, earth science, and chemistry. It targeted reforms at both the student teacher and teacher trainer levels across primary and secondary schools. Key results included developing new learner-centered teaching materials, establishing science labs and resource centers, and revising teacher training curricula.
This document provides a checklist for preparing applications and environments for continuous availability using Oracle Database services. Key steps include:
1. Using database services and configuring connection strings for high availability.
2. Enabling Fast Application Notification (FAN) to interrupt applications during failures.
3. Using recommended practices like connection pools, tests, and draining to gracefully complete work during planned maintenance without requiring application restarts.
The document summarizes a study conducted by the RAAF Institute of Aviation Medicine to measure the real-world effectiveness of foam earplugs when used by untrained users, compared to laboratory tests. 43 aircrew had their earplug insertion technique and noise attenuation measured before and after a brief insertion training. Results showed that before training, earplugs provided significantly less attenuation than factory specifications, but attenuation improved by an average of 10 dB after training. The study demonstrates the importance of proper insertion technique training to maximize hearing protection and reduce noise exposure risks for aircrew.
This document discusses hypothermia, its complications, and strategies for detection and management. It notes that core temperatures below 35°C quadruple mortality in severe trauma patients. Data from the Queensland Trauma Registry shows 13% of trauma patients had temperatures below 35°C, and over half of hypothermia cases occurred after hospital admission. The document advocates for active warming techniques to treat hypothermia, as passive warming alone is ineffective. Specific active warming recommendations include using devices like the F2010 Hypothermia Alert.
The document discusses establishing purpose and standards to achieve success. It recommends writing mission statements that clearly outline one's career, family, financial, health, spiritual, and recreational goals and intentions. It also suggests declaring the values and standards that will guide decision making. Finally, it advises identifying foundational cycles like annual, biannual, quarterly and monthly activities and events that will support goals and lay the groundwork for positive results.
This document outlines Marc Edsel C. Ayes' 20-year marketing plan for Edsel, referred to as "Ah!YES MAN!". The plan emphasizes an attitude of openness, adventure, and constant self-improvement. It details Ayes' vision to challenge status quo thinking and encourage others to live life to the fullest without regrets. The core roles involve thinking positively, dreaming big, accepting challenges, doing things in a big way, knowing what you want, not forgetting your roots, and saying "yes" to God. The plan also involves goal-setting, self-projects, monitoring progress, and embracing continuous improvement.
Franchisor confidence remains strong but softened in some areas. While general business conditions outlook was still positive, sentiment decreased for franchisor growth prospects, franchisee sales and profitability. Service provider confidence was mixed, with negative views on franchisee sales but more positive outlooks on locations and profitability. Challenges include competition, staffing, and rising costs.
The Uniformed Services University of the Health Sciences- A Unique Resource- ...Leishman Associates
The Uniformed Services University of the Health Sciences is a joint service medical and health sciences university. It provides education and training for military medical professionals across its schools of medicine, nursing, and postgraduate dental studies. USU offers medical, dental, nursing and public health programs to serve the armed forces. It conducts important research through centers like the Armed Forces Radiobiology Research Institute and the Center for Neuroscience and Regenerative Medicine.
The document discusses the Comprehensive Soldier Fitness construct, which aims to improve the health and well-being of soldiers across four pillars: nutrition, physical conditioning, mental health/resilience, and moral/ethical development. It does this through initiatives like nutrition education, physical training programs integrated across the force generation cycle, and mental health support from pre-deployment to post-deployment reintegration. The goal is to enhance soldiers' fighting power by developing their intellect, emotions, motivation, and leadership.
Managing expectations can we really call on our big blue brother- buschLeishman Associates
This document outlines the organizational structure of the United Nations Department of Peacekeeping Operations and Department of Field Support. It includes a breakdown of the offices, divisions, and services within DPKO and DFS that plan and support UN peacekeeping missions. It also provides an example of how military and police components contribute to and integrate with UN missions. Finally, it notes some observations about contracting resources, troop and police contributing countries, and starting up peacekeeping operations.
The document discusses navigation options for moving between different pages or sections. It includes multiple instances of "Back to menu" and "Next" buttons that allow reviewing previous or following pages within a structured interface. Navigation is circular, with some sections linking back to the main menu page.
Digital storytelling refers to using digital media like videos, animations and slideshows to share information on the internet. It can be used across subjects for learning and allows students to collaborate, be creative and connect globally. Students benefit by exploring different digital media types and technologies like uploading audio, videos and graphics.
The student began by researching conventions of horror and comedy film posters. They noticed different genres use conventions in different ways. For their own poster, the student included standard elements like the release date and tagline linked to the psychological horror genre. However, they subverted conventions by inverting the colors of the central girl figure, making her appear inhuman and suggesting something supernatural will attack her. The streaks on the walls and the girl's vulnerable positioning imply she will die at the hands of something abnormal. Overall, the poster effectively conveys the horror genre through these visual cues and an unsettling, mysterious atmosphere.
The VVOB Education Program operated in Cambodia from 2008-2013 through its SEAL Program. The SEAL Program aimed to improve pre-service teacher training for science, environmental, and agricultural life skills education at Teacher Training Colleges. Specifically, the program worked to enhance the methodology and subject knowledge training for physics, biology, earth science, and chemistry. It targeted reforms at both the student teacher and teacher trainer levels across primary and secondary schools. Key results included developing new learner-centered teaching materials, establishing science labs and resource centers, and revising teacher training curricula.
This document provides a checklist for preparing applications and environments for continuous availability using Oracle Database services. Key steps include:
1. Using database services and configuring connection strings for high availability.
2. Enabling Fast Application Notification (FAN) to interrupt applications during failures.
3. Using recommended practices like connection pools, tests, and draining to gracefully complete work during planned maintenance without requiring application restarts.
The document discusses load balancing and failover techniques in Oracle Real Application Clusters (RAC) environments. It covers client-side and server-side load balancing using connection balancing, listener balancing, and service balancing. It also covers client-side and server-side failover techniques like connect time failover, Transparent Application Failover (TAF), and using services for failover. Key parameters and concepts discussed include load balancing advisory, service statistics, Fast Application Notification (FAN), and failover issues.
Dharam Pal Singh has over 9 years of experience as an Oracle DBA, RAC DBA, and Oracle Applications DBA. He has extensive expertise in Oracle database administration including installation, configuration, backup/recovery, patching, cloning, and migration. He is proficient in multiple versions of Oracle database and applications. Singh aims to take the PMP exam and has certifications including Oracle Exadata, Oracle Applications 11i, Oracle 10g RAC Administrator, and ITILV3.
Use perl creating web services with xml rpcJohnny Pork
This document discusses using XML-RPC to create web services with Perl. It provides an example of creating an XML-RPC client in Perl to call methods on a remote web service. It also gives an example of building an XML-RPC listener service in Perl to expose methods to remote clients. The document stresses the importance of documenting the API of any XML-RPC web service.
🏗️Improve database performance with connection pooling and load balancing tec...Alireza Kamrani
This document discusses improving database performance through connection pooling and load balancing. It describes how connection pooling reuses database connections to optimize performance as traffic and clients grow. It then summarizes several Oracle and MySQL/MariaDB solutions for connection pooling and load balancing, including Oracle Traffic Director, Oracle Connection Manager, MariaDB MaxScale, and ProxySQL. These solutions can distribute database requests, provide high availability, and monitor performance.
Oracle Real Application Clusters (RAC) provides load balancing and failover options through services like Fast Application Notification (FAN), Fast Connection Failover (FCF), and Transparent Application Failover (TAF). RAC monitors workload activity for each service across cluster instances and publishes load balancing advisories to recommend how to distribute workloads. Runtime connection load balancing in RAC 10g integrates with these advisories to adjust how existing connections distribute work based on backend node capacities over time.
This document provides instructions for replicating data from an Oracle multitenant container database (CDB) to another CDB using Oracle GoldenGate. It outlines prerequisites, tasks to prepare the databases and environment, and steps for initial load and ongoing replication of data changes in near real-time. Key steps include creating GoldenGate users, adding supplemental logging, configuring Extract and Replicat processes, and monitoring replication status. The goal is to familiarize the reader with setting up a basic Oracle to Oracle replication setup using GoldenGate in a multitenant environment.
Oracle Drivers configuration for High Availability, is it a developer's job?Ludovico Caldara
UCP, GridLink, TAF, AC, TAC, FAN… The configuration of Oracle Drivers for application high availability is not an easy job. The developers often care about the minimal working configuration, while the DBAs are busy with the operations. In this session I will try to demystify application server’s connectivity to the database and give a direction toward the highest availability, using Real Application Clusters and new Oracle features like TAC and CMAN TDM.
This document provides steps to link a SQL Server database to an Oracle database. It begins by installing an Oracle client and configuring Oracle Net to define the connection. Next, it describes editing configuration files like tnsnames.ora to specify the Oracle instance. Finally, it shows how to create a linked server in SQL Server Management Studio and test the connection. Troubleshooting tips are also provided for resolving connection errors.
This document contains a summary of Satyam Kapadnis's work experience and qualifications. He has over 3 years of experience as an Oracle Apps DBA Consultant, with expertise in Oracle Application releases 11.5.10.2 and R12. His responsibilities have included installing and patching databases, cloning, backups and recovery, and handling issues for clients in North America and the Middle East. He has strong skills in RMAN, Data Guard, and monitoring tools like OEM.
This document provides a checklist for troubleshooting database connection issues. It begins with basic checks like ensuring the database and listener are running. It then covers checking the network infrastructure and Oracle Net configuration. This includes verifying the listener configuration, domain names, services registration, timeouts and tnsnames.ora. The document recommends using tools like tnsping and SQL*Plus to test connections. It also suggests testing connectivity using Oracle Instant Client to rule out application configuration issues.
This document contains the professional synopsis and experience of Sivaram Dasari. It outlines his 4.5 years of experience as an Oracle Database Administrator supporting over 1200 databases ranging in size from GBs to terabytes. It also lists his technical skills and experience with Oracle technologies including RAC, Data Guard, ASM, RMAN, and more. Finally, it provides details on his work experience at two companies and roles handling Oracle databases for three clients.
Make Your Application “Oracle RAC Ready” & Test For ItMarkus Michalewicz
This presentation talks about the secrets behind Oracle RAC’s horizontal scaling algorithm, Cache Fusion, and how you can ensure that your application is “Oracle RAC ready.”. It discusses do's and don'ts and how to test your application for "Oracle RAC readiness". This version was first presented in Sangam19.
There are two methods for registering database instances with the listener: static registration and dynamic registration. Static registration requires manually editing the listener.ora file, while dynamic registration uses the LOCAL_LISTENER parameter to automatically register instances. Dynamic registration provides additional benefits like workload information for load balancing in RAC environments. It is possible to use both registration methods together without issues.
Real Application Clusters (RAC) allow an Oracle database to run across multiple interconnected servers that appear as a single database to users. RAC provides high availability, scalability, and manageability. There are two types of RAC configurations: active/passive where one node is active and the other passive, and active/active where instances run concurrently on both servers and clients can access both. Automatic Storage Management (ASM) is an Oracle technology that manages disk storage for Oracle databases.
By now, we have all heard plenty of analyses and opinions regarding the benefits or pitfalls of The Cloud. What these reports are often lacking, though, is a perspective on operations: how does it actually "feel" to run in an environment where everything is fleeting and dynamic, where few things have an SLA and where we can't run diagnostics? Are there Best Practices we can follow? And, how does this all relate to DevOps? This session will show how operations break down into patterns by application type. We will look at characteristics such as architectural complexity, frequency of change, and of course how deep application requirements reach into the stack. Attendants will learn how to evaluate clouds and applications for their deployment needs. The key takeaway is that operations matter in the cloud, in particular for PHP applications.
This document discusses various methods for checking the health of Oracle database storage structures. It describes tools from Oracle like Hcheck scripts, Health Monitor Checks, and Log Scanner that check data dictionary integrity and consistency. It also discusses third party tools like ParnassusData recovery manager and hcmon. Specific checks covered include dictionary integrity checks, data block integrity checks, and ASM health checks. The document provides technical details on how many of these checks operate.
Vbox virtual box在oracle linux 5 - shoug 梁洪响maclean liu
The document describes setting up an Oracle 11g Release 2 RAC environment using VirtualBox virtual machines on Oracle Linux 5.7. It outlines planning the RAC logical architecture and installation requirements. It then details steps to create two virtual machines, install Oracle Linux on them, configure user accounts and directories for the Grid and Oracle software installations, and prepare the systems for the Oracle software installations.
Shoug at apouc2015 4min pitch_biotwang_v2maclean liu
Biot Wang introduces the Shanghai Oracle User Group (SHOUG), which he has been a member of for one year. SHOUG holds Oracle-related meetings and activities a few times a year to share knowledge. While some meetings have been more successful than others due to factors like scheduling, SHOUG is still learning and aims to make meetings better over time. The group has grown from a few members to over 400 currently. SHOUG's goal is to help members improve their Oracle skills and knowledge through sharing.
Biot Wang introduces the Shanghai Oracle User Group (SHOUG), which he has been a member of for one year. SHOUG holds Oracle-related meetings and activities a few times a year to share knowledge. While some meetings have been more successful than others due to factors like scheduling, SHOUG is still learning and aims to make meetings better over time. The group has grown from a few members to over 400 currently. SHOUG's goal is to help members improve their Oracle skills and knowledge through sharing.
This document discusses various techniques for optimizing JDBC performance when accessing an Oracle database. It provides examples of common issues like repeatedly opening and closing database connections, failing to close result sets and statements, and not using prepared statements with bind variables. The solutions outlined include using connection, statement and result set pools, try-finally blocks to ensure proper closing, and leveraging features like prepared statements, bind variables, batching, and prefetching to reduce round trips.
1. Oracle Services on RAC: Five
Things You Might Not Know
ARDENTSALES.LAB.ARDENTPERF.COM =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = rh4lab10)(PORT = 1521))
(CONNECT_DATA = (SID = ORCL))
)
ARDENTACCT.LAB.ARDENTPERF.COM =
(DESCRIPTION =
(ADDRESS_LIST=
(FAILOVER = on)
(LOAD_BALANCE = on)
(ADDRESS= (PROTOCOL = TCP)(HOST = rh4lab12-vip)(PORT = 1521))
(ADDRESS= (PROTOCOL = TCP)(HOST = rh4lab13-vip)(PORT = 1521))
(ADDRESS= (PROTOCOL = TCP)(HOST = rh4lab14-vip)(PORT = 1521))
)
(CONNECT_DATA= (SERVICE_NAME = orcl.lab.ardentperf.com))
By Jeremy Schneider )
T
he use of Services is fundamental to increasing The manuals give us the first clues that there is more to services than meets
the eye. One example is the “Service Registration” illustration from chapter 5
availability and performance of Oracle Databases. This of the Oracle Database Net Services Administrator’s Guide. It illustrates
is true for both RAC and non-RAC databases, although independence between listeners and databases. Databases can register
with multiple listeners and listeners redirect connections to multiple
services are especially important in RAC. In this article, we databases. The service is the glue holding this together: The PMON process
learn five things about services that are not well understood for each database instance registers its service names with one or multiple
listeners. This is illustrated in the figure below.
and see how they can help.
Every application wants to be a high-performance, zero-downtime application
when it grows up. And like our teenagers, applications are growing up faster
these days. Whether driven by industry buzzwords or real requirements, it
seems like every DBA I know wants to dramatically increase availability and
performance on their systems. In Oracle Databases, the use of services is
fundamental to meeting these challenges. This is true for both RAC and non-
RAC databases, although services are especially important in RAC.
Since their introduction in the late ’90s services have steadily become more
and more advanced. Oracle Database 10g saw the greatest growth in services-
related functionality and today they touch almost every aspect of database
management. Understanding services is a basic, core responsibility of anyone
who plans or maintains Oracle cluster database systems. Nonetheless, it is
surprising how often services are overlooked or misunderstood! As we will
see in this article, there is a lot more to services than meets the eye.
Before we begin our deep dive, let us state that since services apply to both
RAC and non-RAC environments, we will discuss both aspects in this article, Illustration from Oracle Database Net Services Administrator’s
although we will focus on RAC. When applicable to single-instance non-RAC Guide, Chapter 5
environments, we will point that out specifically. However, there is a lot more to services than just connecting clients to
databases. They are also an important aid for performance tuning, resource
1. Services Are a Lot More Than Just a Connect Method management, and job control.
What is the first thing you think of when you hear the word “services” with One of the most important performance tuning tasks is capturing the right
Oracle? For most database administrators – even RAC DBAs – the first thing historical and current performance data – and services are an integral part of
that comes to mind is the TNSNAMES file. Or perhaps LISTENER.ORA and the Oracle Database 10g statistics collection. The core dynamic views V$SESSION
output of the lsnrctl utility come to mind. Version 8 of Oracle was the first and V$SQL report service information. Wait event information is recorded in
version to introduce the SERVICE_NAME clause for the CONNECT_DATA V$SERVICE_EVENT and then rolled up into V$SERVICE_WAIT_CLASS. These
section of TNSNAMES – and Oracle immediately recommended using it rather service-level statistics are automatically collected by the database and stored
than SID. However, at the time it was not immediately clear what the in the AWR. Furthermore, alerts can be defined for specific warning and
advantages were—particularly in a single-instance environment. critical response time thresholds by service. The instrumentation even
extends to database control and grid control where there is a “Top
continued on page 14
3rd Qtr 2008 n Page 13
2. Oracle Services on RAC: Five Things You Might Not Know continued from page 13
Consumers” dashboard showing various metrics of each service at a glance If you are not using RAC (or MTS/Shared Servers), then getting started with
relative to the others. A sample screenshot is shown below. services is as easy as setting a single-instance parameter―and it does not even
require a database restart! All you have to do is assign a comma-separated list
of service names to the initialization parameter SERVICE_NAMES and Oracle
will automatically create each service on the fly. Each service name that does
not have a domain gets the DB_DOMAIN, and the PMON process will
immediately register each of these services with the listener. (It will blindly
try port 1521 by default; if your listener is on a different port, then set the
LOCAL_LISTENER parameter to inform PMON of the correct port.) Always
remember to subsequently make your changes in the init file or spfile so that
your changes persist.
However, setting up services on RAC is a little different. On cluster databases
you must never, ever, use the above described method. In other words, do
not set the SERVICE_NAMES parameter directly! Although you cannot use
SERVICE_NAMES here, there are three different tools you can use to set up
services on RAC:
• Command line and Inbuilt PL/SQL functions
• DBCA – The “DataBase Creation Assistant”
• EM Database Control.
The command line is the lowest level interface; both DBCA and EM Database
Control call these commands under the covers. Command line configuration
in RAC has two steps: configuring the clusterware and configuring the
database. The clusterware is first configured through the srvctl command.
Next, the database is set up using the DBMS_SERVICE inbuilt PL/SQL
package. A command line dialogue that creates a service named “reports” is
shown below:
Services aid in resource management. The building blocks of Oracle’s
resource management system are consumer groups. These consumer groups
[oracle@rh4lab15 ~]$ srvctl add service -d db2rac1
are mapped to services, modules, and actions graphically using the > -s reports -r db2rac11,db2rac12 -P basic
Enterprise Manager (EM) Database Control or programmatically through the
DBMS_RESOURCE_MANAGER package. The database engine is then capable SQL> begin
2 dbms_service.create_service(
of assigning execution priorities based on services and can even dynamically 3 service_name=>’reports’,
change the execution priority at runtime as subroutines move from one code 4 network_name=>’reports’,
block to the next. 5 goal=>dbms_service.goal_none,
6 dtp=>FALSE,
Services also aid and enhance job control. First, all of the performance tuning 7 aq_ha_notifications=>FALSE,
and resource management benefits mentioned above also apply to jobs when 8 clb_goal=>dbms_service.clb_goal_long
9 );
they run within a service. You can easily view performance statistics for 10 end;
groups of jobs and control execution priority of jobs by assigning them to 11 /
services. Second, job control is enhanced because job execution is tied to
PL/SQL procedure successfully completed.
the status of its service: In a multi-node RAC environment, the job will only
execute on cluster nodes where the service is enabled. If a service is [oracle@rh4lab15 ~]$ srvctl start service -d db2rac1
completely disabled, then jobs assigned to that service will be suspended > -s reports
until the service is enabled. Note that you must use DBMS_SCHEDULER to [oracle@rh4lab15 ~]$ lsnrctl services
make use of this functionality – the older, deprecated DBMS_JOB system is Service “reports.lab.ardentperf.com” has 2 instance(s)
not integrated with services. Note, also, that you can apply these principles in Instance “db2rac11”, status READY, has 2 handler(s)
Instance “db2rac12”, status READY, has 1 handler(s)
single-instance, non-RAC environments as well.
As we noted, services are a lot more than just a connect method. They add
The command line offers the most flexibility and control; however, some
useful functionality for tuning, resource management and job control to all
DBAs prefer to use a “point-and-click” interface when possible. Both of the
Oracle databases – even non-RAC systems!
other setup methods are “point-and-click.”
2. There Are Four Different Ways to Set up Services In Oracle Database 10g, DBCA can also be used to set up services – DBCA is
There are several ways to set up services, and the procedure varies slightly much more than just a database “creation assistant” – it is also a tool for
depending on your environment. There are four possible ways you can reconfigurations such as adding new cluster nodes and reconfiguring ASM.
achieve this. However, for some strange reason, this functionality has been removed in
Oracle Database 11g. DBCA in Oracle Database 10g also has a service
Page 14 n 3rd Qtr 2008
3. management page that is available in two places: the database creation wizard 3. Service Configuration Is Stored in Four Different Places
and directly from the main menu. DBCA offers the advantage that it Perhaps one of the most surprising and little-known facts about services is
automatically maintains the server’s TNSNAMES.ORA file as well. This is just how spread out the configuration is. Configuration for services is stored
especially useful for PRECONNECT failover configurations that require a in no less than four places: the spfile (or init file), the data dictionary, the
configuration that is not immediately obvious. However, DBCA only performs cluster registry and the filesystem. Naturally the first place that comes to mind
half of the service configuration—it only calls srvctl but does not call the is the initialization file, because that is where the SERVICE_NAMES parameter
DBMS_SERVICE package. In this case, the service will be automatically is stored. But there are, in fact, quite a few additional initialization
created in the database with default values on the first client connect. A parameters that are also related to service configuration. These are listed in
screenshot of DBCA (shown below) is being used to create services. the following Table.
SERVICE_NAMES Should never be set in RAC databases. For single-instance
databases only, set this parameter to create services.
LOCAL_LISTENER PMON needs this parameter to register services with the listener
on the local machine.
REMOTE_LISTENERS PMON needs this parameter to register its services with listeners
on other servers.
DB_DOMAIN This is automatically appended to service names that do not have
a domain.
DISPATCHERS Optionally, dispatchers can be explicitly configured for each service.
STATISTICS_LEVEL Must be TYPICAL or ALL to enable gathering service-related statistics.
As might be expected, the data dictionary contains the bulk of service-related
configuration. Most importantly, it contains a master list of all configured
services and their properties. This includes metadata, load balancing
configuration, notification options, server-side failover configuration and the
DTP (Distributed Transaction Processing) flag. The data dictionary also
The EM Database Control is Oracle’s recommended tool for maintaining contains consumer group mappings, alert thresholds and mapping to job
services. It is just as simple as DBCA, but it allows you to edit a number of classes. The relevant data dictionary views are listed below in the table.
additional service properties. You can specify service level thresholds,
DBA_SERVICES Lists all services registered with the database
consumer groups, job classes, notification properties, load balancing goals (including offline services) and their properties.
and distributed transaction processing options. Database Control calls both It does not include deleted services.
the srvctl program and the DBMS_SERVICE package. However, it does not
DBA_RSRC_MAPPINGS Lists mappings between services and consumer
maintain the TNSNAMES.ORA file, so you will have to write the networking groups. These are used by the resource manager to
entries yourself. prioritize jobs and client connections at run-time.
The fourth and final method is shown below using a screenshot of EM DBA_THRESHOLDS Lists thresholds for Oracle database’s built-in alerting
Database control creating this very same service. system. Includes response-time alerts for services.
DBA_SCHEDULER_JOB_CLASSES Displays mappings between scheduler jobs
and services.
In Oracle cluster databases, services are managed by the clusterware. That is
why the cluster registry (OCR) is absolutely critical even though it only exists
on RAC systems. There are two types of configuration data stored in the OCR:
resources and stringpairs. You should never manually edit these settings.
They can be viewed with the crsstat and ocrdump utilities. The srvctl utility
automatically creates a resource with the appropriate properties and a
number of stringpairs for each service you create. Some of the properties
include the start/stop scripts, dependencies, restart policies, preferred/
available status, enabled/disabled status and TAF policies.
Finally, there is an important bit of configuration stored in the filesystem: the
TNSNAMES.ORA file. On the database server, this file contains the connection
information for LOCAL_LISTENER and REMOTE_LISTENERS. On the clients,
OEM Database Control is generally the preferred method for service
of course, it contains the connect descriptors for connecting to the database
configuration. However, it is good to be aware of the different options, and
with load balancing and client-side failover. Getting this file right is fairly
we have listed all of them in this section.
continued on page 16
3rd Qtr 2008 n Page 15
4. Oracle Services on RAC: Five Things You Might Not Know continued from page 15
straightforward, yet often overlooked. (It’s surprising how many people
mistakenly use the server IP address instead of the VIP to connect!)
4. There Are Multiple Layers of Load Balancing and Connection Failover
Most RAC database administrators know that services are used for load
balancing and connection failover in RAC. However, many of them may not
realize just how many levels of load balancing and connection failover exist
for services.
There are three levels of load balancing in Oracle: client-side connection
load balancing, server-side connection load balancing, and run-time load
balancing. Client-side connection load balancing is the simplest and most
straightforward; the client will randomly choose one of the TNSNAMES
addresses for each new connection, and the connections will be distributed There are also three levels of load balancing in the TNSNAMES and three
roughly the same across the listed connections. Server-side connection load different ways to configure run-time failover. In the TNSNAMES files, both
balancing is enabled by default and is slightly more sophisticated than client- failover and load balancing can be configured in the DESCRIPTION_LIST
side load balancing. The listener knows the current load on each database block, the DESCRIPTION block and the ADDRESS_LIST block. Personally, I
instance and can re-route client connections to the most responsive instance have never yet needed to configure any more than just the ADDRESS_LIST.
or the instance with the smallest number of sessions. Third, Oracle supports
run-time load balancing within JDBC and ODP.NET connection pools. When a
ARDENTACCT.LAB.ARDENTPERF.COM =
thread requests a connection from the pool Oracle can automatically return a (DESCRIPTION_LIST =
connection on the least loaded cluster instance. Which of these three (LOAD_BALANCE = ON)
methods should be used for load balancing? At a minimum, I usually (FAILOVER = ON)
recommend the first two—if not all three! Note that there is an inverse (DESCRIPTION = ... )
(DESCRIPTION =
relationship between the quality of load balancing and the complexity of (LOAD_BALANCE = ON)
setup. This relationship is shown here. (FAILOVER = ON)
(ADDRESS_LIST = ... )
(ADDRESS_LIST =
(LOAD_BALANCE = ON)
(FAILOVER = ON)
(ADDRESS= (PROTOCOL = TCP)(HOST = rh4lab12)(PORT = 1521))
(ADDRESS= (PROTOCOL = TCP)(HOST = rh4lab13)(PORT = 1521))
)
(CONNECT_DATA= (SERVICE_NAME = orcl.lab.ardentperf.com))
)
)
As for Transparent Application Failover (TAF), run-time failover can be
configured with client-side TAF, server-side TAF and Fast Connection Failover
(FCF). So, which of these methods should be used for failover? This is
determined by your environment: FCF is only available for connection
There are also three different levels of connection failover in RAC: the service pools and server-side TAF is only available in Oracle Database 10g and
level, the connection level, and the runtime level. The broadest layer of newer databases.
failover occurs at the service level on the database server. During normal
Load balancing and failover are two of the most important features of
operation a service runs only on its PREFERRED nodes, but if the clusterware
services; they are fundamental to meeting the HA goals of cluster projects.
detects the failure of an instance then it will automatically relocate that
So it is very important that administrators are well acquainted with every level
service to an AVAILABLE node. A second layer of failover occurs when the
of load balancing and failover that services offer.
client makes a connection to the database. Like client-side load balancing it
is easily configured in the TNSNAMES file and causes the client to 5. Services Don’t Always Do What You Would Expect
automatically retry the connection with a different address when the first
address fails. Lastly, Oracle provides run-time failover: Under certain Lastly, it comes as no surprise that services do not always do what you would
conditions, the client can detect a node failure and automatically move expect. We never know exactly how new technology will surprise us, so it
existing connections to a surviving node with no interruption to the seems worth reviewing a few specific points where services have behaved
application. Experienced RAC administrators may notice that the third run- differently than what some database administrators expected.
time failover option seems to come up a lot when talking about load First, a “preferred-available” configuration in a multi-node RAC environment
balancing and failover. Again, there is an inverse relationship between the does not perform the same as a single-node configuration. If a service is
client-oriented and server-oriented connection failover in these three setups. configured to be “preferred” on one node and “available” on a second node,
This is also shown in the next diagram. it does mean that the service only runs on the preferred node during normal
operation. However, the cluster database is fully operational on both nodes
Page 16 n 3rd Qtr 2008
5. and there is an associated overhead (such as maintaining cache coherency
and global locks); hence, the performance profile will not be the same as a
single-node database. If you are clustering for the sole reason of high
availability, then perhaps you should consider whether a cold-failover cluster
would meet your requirements. When configured properly, it is possible to
achieve failover times of fewer than 120 seconds in such cold-failover cluster
environments. Additionally, the license and support fees for failover clusters
are often significantly lower than RAC, and that is an added bonus.
The second unexpected behavior of services is that there is no automatic
failback of services on clusters. If a service fails over to an “available” node,
then the service will not automatically move back to the preferred node when
you restart it. The service must be manually switched back.
The third unexpected behavior is related to the previous “feature”—services
sometimes will not automatically start when the server is started. In Oracle
Database 10g the clusterware always attempts to return services to their last-
known state. If you shut down specific services using srvctl, then the service
will not start after a reboot because the last known status of the service was
“offline.” However, if a node shuts down unexpectedly, then the clusterware
will restart the services on reboot.
Finally, if you are on Oracle Database 10g or earlier, there is a bit of
unexpected behavior related to parallel execution on RAC. Parallel query
slaves inherit the service name for the purposes of reporting performance
statistics, but they will run on all nodes of the cluster, completely ignoring
PREFERRED and AVAILABLE assignments for the service. The workaround is
to use the INSTANCE_GROUPS and PARALLEL_INSTANCE_GROUPS
parameters to limit parallel query execution to the nodes where your service
is running. However, you will need to manually keep these parameters
updated as you move services around. This behavior is fixed in Oracle
Database 11g although the PARALLEL_INSTANCE_GROUPS parameter can still
be used to override the default behavior and run the parallel query slaves on
a different subset of cluster nodes.
Conclusion
After reviewing Oracle services, it is easy to see why they are so important to
modern databases—and especially to cluster database systems. They add a
completely new level of workload and performance management, and they
provide the foundation for RAC’s most important availability features. The
extensive benefits of services far outweigh the shortcomings and small
learning curve for using them. The bottom line is that understanding services
has become a basic, core responsibility of anyone who plans or maintains
Oracle systems today, and that they should be configured for all databases.
n n n About the Author
Jeremy Schneider is an Oracle Database consultant who has worked
with small and large organizations across the country. His interests
include applying grid and cluster technology to large-scale problems
and he spends a lot of time working with RAC databases. Schneider is
also an enthusiastic supporter of user groups and open source projects,
and maintains an Oracle technology blog at www.ardentperf.com/.
3rd Qtr 2008 n Page 17