Escolar Documentos
Profissional Documentos
Cultura Documentos
Preface
Table of Contents
Introduction
ORACLE Structure
ORACLE DB Views
Edition 11/2009
1
2
3
4
5
6
Guidelines
This manual contains notices intended to protect the products and connected
equipment against damage. These notices are graded according to severity by the
following texts:
Caution
Indicates that if the proper precautions are not taken, this can result into property
damage.
Notice
Draws your attention to particularly important information on handling the product,
the product itself or to a particular part of the documentation.
Trademarks
All names identified by are registered trademarks of the Siemens AG.
The remaining trademarks in this publication may be trademarks whose use by
third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability
We have reviewed the contents of this publication to ensure consistency with the
hardware and software described. Since variance cannot be precluded entirely, we
cannot guarantee full consistency. However, the information in this publication is
reviewed regularly and any necessary corrections are included in subsequent
editions.
Siemens AG
Industry Sector
Postfach 48 48
90026 NRNBERG
GERMANY
11/2009
Preface
Where is this Technical Note valid?
This Technical Note is valid for Unilab 6.3 and higher.
Purpose
Prior to version 6.2 of SIMATIC IT Unilab, the functionalities using jobs were
based on the Oracle standard package DBMS_JOB. As of version 6.2, this has
been replaced by another Oracle standard package DBMS_SCHEDULER.
Additional note: this migration was necessary in order to fully support/implement
multi time zone jobs.
Conventions
The table below describes the specific typographic conventions that are used
throughout this manual:
Symbol/Convention
Indicates...
E.g.
Text in bold
KEY1+KEY2
UPPERCASE
Italics
>
Code example
iii
Preface
Readme
The installation includes a readme file, which contains information on upgrade
procedures and compatibility with previous releases. This file is supplied both in
standard text (Readme.wri) and in Acrobat PDF (Readme.pdf) format.
This file is available in folder \ReleaseNotes of the setup DVD and is available
from the SIMATIC IT Unilab Documentation Library.
iv
Preface
One copy of the installation DVD is shipped for each Server covered by Software
Maintenance.
Hot fixes (officially tested and released) are not shipped and must be downloaded
from the Technical Support Service Web site.
Online Support
A customer who is a registered TSS user, can access the Technical Support Web
site (http://www.siemens.com/mes-simaticit/tss), which contains technical
information such as:
Table of Contents
Table of Contents
Preface......................................................................................................................................... iii
Table of Contents ....................................................................................................................... vi
1 Introduction.......................................................................................................................... 1-1
1.1 Basic Definitions ............................................................................................................ 1-1
1.1.1 Oracle Instance.................................................................................................1-1
1.1.2 Services ............................................................................................................1-1
1.1.3 Job Classes ......................................................................................................1-1
1.1.4 Jobs...................................................................................................................1-1
2 ORACLE Structure .............................................................................................................. 2-1
3 ORACLE DB Views .............................................................................................................. 3-1
4 ORACLE Associated Procedures ...................................................................................... 4-1
5 Unilab Job Management ..................................................................................................... 5-1
6 Important info ...................................................................................................................... 6-1
vi
Introduction
This Technical Note has been written to provide users with information on the differences
existing between Oracle and Unilab for what concerns job management.
1.1
Basic Definitions
1.1.1
Oracle Instance
Every running Oracle database is associated with an Oracle instance. When a database is
started on a database server (regardless of the type of computer), Oracle allocates a memory
area called the System Global Area (SGA) and starts one or more Oracle processes. This
combination of the SGA and the Oracle processes is called an Oracle instance. The memory
and processes of an instance manage the associated database's data efficiently and serve one
or multiple users of the database.
1.1.2
Services
Services represent groups of applications with common attributes, service level thresholds, and
priorities. Application functions can be divided into workloads identified by services. A service
can span one or more instances of an Oracle database or multiple databases in a global cluster,
and a single instance can support multiple services.
The number of instances offering the service is transparent to the application. Services provide
a single system image to manage competing applications, and they allow each workload to be
managed as a single unit.
1.1.3
Job Classes
A job class is a group of jobs that have similar characteristics and behaviour. A job class is a
way of grouping jobs into larger entities, thus enabling access to limited resources to be
prioritized among the job classes.
1.1.4
Jobs
A job is a user-defined task that is scheduled to run one or more times. A job contains two
pieces of information: what task (the action) needs to run, and when it should run (the
schedule). The action and schedule can be specified when creating the job or alternatively can
refer to an existing program and schedule.
1-1
ORACLE Structure
2-1
ORACLE DB Views
View
Description
sys.gv_$instances
sys.DBA_services
sys.DBA_scheduler_Job_classes
sys.DBA_scheduler_Jobs
3-1
DBMS_SCHEDULER
Procedure
Description
Create_Service
Creates a service.
Delete_Service
Deletes a service.
Start_Service
Starts a service.
Stop_Service
Stops a service.
Create_Job_Class
Drop_Job_Class
Set_Attribute
Set_Scheduler_Attribute
Create_Job
Creates a job.
Drop_Job
Deletes a job.
Disable
Disables a job.
Enable
Enables a job.
4-1
For an example on how to use the new Unilab job technology, see file cxapp.sql in Server
Setup/db.
5-1
Important info
As of Unilab 6.4, the scripts that launch the Unilab jobs (BEGIN
cxapp.startalldbjobs; END;) have been improved to control these structures.
For information on how to create the Oracle services necessary for the Unilab
jobs, see manual Oracle RAC Support in the Unilab Product Library.
6-1