Documente Academic
Documente Profesional
Documente Cultură
Bulletin 99166.1
Overview
p onsistent Supply and Demand information You will be able to get read
consistent snapshots of all the supply and demand data without
locking users out of the system.
p ënhanced loop checker You can detect loops introduced by Discrete and
Non Standard Job component requirements. Component changes from WIP
are read and merged into a single structure along with BO
information, where loop checking is performed. Both loop checking
and calculation of low level codes are performed in one pass.
p umproved inter -process communication You can take advantage of
improved communication between the processes that manage the
planning processes efficiently.
Processing steps:
c
The emory Based Planning Process consists of the following steps:
c
This is the first step performed as a part of the Snapshot process
and it consists of tasks that need to be done before data can be
snapshoted. These tasks include calculating repetitive planning
periods for all the planned organizations and auto -reducing the PS
schedules.
This step involves determining the items that will be planned as part
of the current planning run. The plan-level option included items
determines the items to be planned. All other Snapshot activities
cannot start until this step is complete.
This step consists of clean ing all the snapshot and planner output
data from the previous planning run.
This step involves selecting the data from the system tables i.e.
WIP, INV, PO, and BO and writing the snapshot data to flat files.
Since this data is written to flat files, the deletes are not a pre -
requisite for this task.
This step loads the snapshot flat files into the P snapshot tables.
This is the last step in the Snapshot process and it consists of
clean-up activity and execution of the user -defined Snapshot tasks
like updating item categories, ABC classes etc. in P_SYSTE_ITES.
p *etting
This is the gross -to-net explosion and involves the netting of supply
against demand and creating new supply orders.
Processes
he Snapshot Monitor is the process that controls the rest of the
planning processes. It is launched by the emory Base d Snapshot and it in
turn launches the Snapshot Workers, Delete Workers, Loader Workers, and the
emory Based Planner. The number of Delete Workers launched by the
Snapshot onitor is determined by P:Snapshot Workers profile. It
launches the Delete Wo rkers after it prepares the list of delete tasks (
See Figure 1). The Snapshot onitor also maintains a list of snapshot
tasks and delete tasks and the current status of each task. It uses this
list to provide the next snapshot task to the emory Based Snapshot and
Snapshot Workers. It uses the status of the delete tasks to determine if
the flat files created by the emory Based Snapshot and Snapshot Workers
can be loaded to the database by the Loader Worker. The Snapshot onitor
is also responsible for ensuring the ead Consistency of the data
snapshoted by the emory Based Snapshot and the Snapshot Workers, the next
section describes this in more detail.
´ ^oader Workers are launched by the Snapshot onitor. One loader worker
is launched for loading each table. The Snapshot onitor launches the
Loader Worker after the flat file for the snapshot data has been written
and the last planning run data has been deleted (See Figure 2). The loader
worker uses sql*loader to load the data. The profile option P:Direct
Load controls whether direct load or conventional load is used by
sql*loader.
aead onsistency
This is accomplished by using the Oracle DBS feature -set transaction read
only. The advantage in using read only option is that you do not need
exclusive table locks which lock the users out of the ta ble for the entire
duration of the Snapshot. Since the snapshoting of data is performed by
multiple processes, the set transaction read only has to be executed at
the same time by the emory Based Snapshot and the Snapshot Workers
The plan parameter lock tables, controls the degree of ead Consistency
attained by the emory Based Snapshot and Snapshot Workers. If lock tables
is set to Yes the Snapshot onitor ensures that the set transaction read
only is executed at the same time by the emory Based Sn apshot and the
Snapshot Workers. It also ensures that no transactions are performed
while the snapshot processes are trying to set transaction to read only .
In order to ensure this the Snapshot onitor gains an exclusive lock and
instructs the emory Based Snapshot and Snapshot Workers to do a set
transaction read only (See Figure 1). As soon as Snapshot onitor receives
a confirmation from the snapshot processes of the set transaction read
only, it releases the lock. The advantage here is that we ge t a read
consistent snapshot with minimal locking of users out of the system.
When the plan parameter lock tables is set to No, the processes still
execute a set transaction read only but Snapshot onitor does not
coordinate the execution of set transact ion read only between processes.
Thus both emory Based Snapshot and Snapshot Worker could be executing set
transaction read only at different times, not necessarily far apart from
each other. There is a possibility of some inconsistencies creeping into
the system but it is fairly remote. The new planning engine gives you much
better results when compared to the old Snapshot which runs without lock
tables.
unter-Process communication
The Snapshot onitor communicates with the Snapshot Delete Workers through
the table P_SNAPSHOT_TASKS. The Snapshot Delete Workers read the tab le
to get the next delete task and update the completion date in the table to
indicate the completion of the task. The Snapshot onitor queries this
table to verify the completion of delete tasks.
Snapshot tasks c
A brief functional description of some of t he snapshot tasks follows: c
WuP and BOM component in formation: This task loads BO structures,
pending ECOs, component requirements from discrete jobs, repetitive
schedules, and non-standard jobs. It also calculates low level codes and
checks loops introduced by both WIP components and BOs.
Delete: This task deletes data from relevant P tables which belongs to
the previous plan.
WuP information : This task loads discrete jobs, non -standard jobs,
repetitive schedules and calculates aggregate repetitive schedules.
Safety stock : This task loads time phased safety stock information.
unventory information : This task loads information regarding inventory
lots.
utem unformation : This task loads inventory items, primary vendors, item
categories, item classifications, quantity on hand and cost information.
Profile Options
MaP:Direct ^oad
A choice to use Direct Load, loads the data into the tables faster than
conventional loading. If the choice is not to use the Direct load, the
Loader Workers use conventional load. Please refer to Oracle 7 Se rver
Utilities User¶s guide for more information on sql*loader.
erms c
p Snapshot Monitor c
A process which controls and coordinates all the processes related to
emory Based Planner.
p ^oader Worker
A process, which loads data from operating system files to the
corresponding tables.
The Snapshot Delete Worker performs database delete operations, it
removes previous planning data from the tables.
p Snapshot Workers
A planning process which snapshots current supply and demand
information required to calculate net materi al requirements.
A planning process that determines the list of items to be planned
and performs some of the snapshot activities.
p aead onsistency
A consistent view of all the data, which consists of all the data
committed by other transactions at the time of the read and all the
changes made by the user up to the time of read.
A standard feature available on Oracle database which provides
transaction -level ead Consistency.
p Pipe
Pipes allow sessions in the same instance to communicate with each
other. Each pipe works asynchronously, allowing multiple readers and
writers of the same pipe.
The Planner Delete Worker performs database delete operations, it
removes old planning information from the tables.
c
!
"
# $
Õ
ca l t c
c
t c
c
p c
cc
c
c
ccc
c
ccc
c
c
c
?
c
c
u
!
"#
J
$
"%
&''(''()('
*
(c
J
+ "
J
("
'
."
/c
(!
(01
"
(*
"
(*
"
2
(
3
$
"4
4
$
"
( "
+
41
" $
4
54
""
+ $
5
+
(
,
$
(
,
(6
"
.
/(
,
$
(
"""4
$
"
"
7
(
"
1
4
"
8- 0!80!*9: !
(
$
("
(
- 0!8!0"
8- 0!80!*9: !(*
+
"(
"
(
-!+
+(
- 0!80!*9:
9:*;*:8*(
8- 0!830!
(0
4
(
"
4+
"
"(
8- 0!80!
(0 +
$
"
(
0
-0
+
+4
44 *
" (
:!*:8*(
8- 0!8*0 !
(0
8- 0!80!"
"
+
1
+
8- 0!8*0 !(
0
-0
+
+(
*:%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