0% found this document useful (0 votes)
42 views29 pages

ORMS 12 - 0 - Architecture

The document provides an overview of the Oracle Retail Merchandising System (ORMS) v12, including its systems architecture, development tools, and requirements. It details the necessary Oracle databases and application servers, along with the development processes using Oracle Forms, Pro*C, and PL/SQL. Additionally, it outlines the GUI access for ORMS and the structure for managing program execution and recovery.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
42 views29 pages

ORMS 12 - 0 - Architecture

The document provides an overview of the Oracle Retail Merchandising System (ORMS) v12, including its systems architecture, development tools, and requirements. It details the necessary Oracle databases and application servers, along with the development processes using Oracle Forms, Pro*C, and PL/SQL. Additionally, it outlines the GUI access for ORMS and the structure for managing program execution and recovery.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 29

Oracle Retail Merchandising

System (ORMS) v12 - Training

Systems Architecture – A Overview

Presenter:
Presenter: Carlos Lebreiro
Date:
Date: 02 / 04 / 2007

T-PT0108/04 © Copyright 2005 Wipro Technologies Wipro confidential 1


Index
 Global Overview

 Systems and Requirements

 Development Tools Overview

 Oracle Retail Pro*C

 Oracle Retail Merchandising System GUI

T-PT0108/04 CONFIDENTIAL© Copyright 2005 Wipro Technologies 2


Global Overview
Global Overview

RPAS ReIM
Flat files

RDF
RMS
Allocations
(ReSA & RTM)

Flat files
RDW
RPM RSM

RIB tables

Other

RIB tables RIB tables ReTL

RIB
RWMS SIM/ISO
RSL

T-PT0108/04 CONFIDENTIAL© Copyright 2005 Wipro Technologies 4


Systems and Requirements
Systems and Requirements

 Oracle Database 10g Release 2 (10.2.0.2)


 Oracle Application Server 10g (10.1.2)
OC4J
 Oracle Application Server 10g (10.1.3)

 SeeBeyond 5.0.5

 Oracle Database 9i Release 2 (9.2.0.7)


 Oracle Application Server 6i (6.0.8.13)
OC4J -Oracle Container for Java (J2EE)
J2EE - Java 2 Platform, Enterprise Edition
EJB - Enterprise Java Been (server-side component that
implements some of the business logic of an application)

T-PT0108/04 CONFIDENTIAL© Copyright 2005 Wipro Technologies 6


Systems and Requirements

 Oracle Database Server 10g Release 2 (10.2.0.2)


 1 – 1,5 GByte RAM
 30 GByte Disk Space

 Oracle Application Server 10g (10.1.2) – OC4J (Forms &


Reports)
 1 GByte RAM
 5 GByte Disk Space
 Java 1.4.2

 Oracle Application Server 10g (10.1.3) – OC4J / J2EE / EJB 3.0


 3 GByte RAM
 15 GByte Disk Space
 Java 1.4.2

T-PT0108/04 CONFIDENTIAL© Copyright 2005 Wipro Technologies 7


Systems and Requirements

 Oracle Database Server 9i Release 2 (9.2.0.7)


 1 GByte RAM
 15 GByte Disk Space

 Oracle Application Server 6i (6.0.8.13) – JInitiator (Forms &


Reports)
 1 GByte RAM
 5 GByte Disk Space

 SeeBeyond 5.0.5
 2 Gbyte RAM
 10 Gbyte Disk Space
 Java 1.4.2

T-PT0108/04 CONFIDENTIAL© Copyright 2005 Wipro Technologies 8


Development Tools Overview
Introduction
 The development in RMS can occur in several areas, namely:
 Online – Using Oracle Forms Developer to develop the GUI, and
Oracle Reports Developer to develop the Reports;
 Batch – Using AIX scripts, SQL scripts and Pro*C to develop the
batch processes;
 Both of these areas are supported by PL/SQL code in the
database

 The Online processing allows users to create, view and edit


data in RMS on their desktop

 The Batch processing allows to process large volumes of


transactions and/or data, perform interfaces with external
systems and perform internal maintenance.

T-PT0108/04 CONFIDENTIAL© Copyright 2005 Wipro Technologies 10


Online – System Parameters

T-PT0108/04 CONFIDENTIAL© Copyright 2005 Wipro Technologies 11


Development – Oracle Forms

T-PT0108/04 CONFIDENTIAL© Copyright 2005 Wipro Technologies 12


Development – Oracle Reports

T-PT0108/04 CONFIDENTIAL© Copyright 2005 Wipro Technologies 13


Development – PL/SQL Editor

T-PT0108/04 CONFIDENTIAL© Copyright 2005 Wipro Technologies 14


Development – Pro*C Editor (windows)

T-PT0108/04 CONFIDENTIAL© Copyright 2005 Wipro Technologies 15


Development – Pro*C Editor (via Putty)

T-PT0108/04 CONFIDENTIAL© Copyright 2005 Wipro Technologies 16


Development – AIX (via Putty)

T-PT0108/04 CONFIDENTIAL© Copyright 2005 Wipro Technologies 17


Retek Pro*C
Introduction

 Oracle Retail Merchandising System AIX system can be accessed via


telnet client

 AIX access:
 Host: tb137.ukroi.tesco.org
 Username = xf64
 Password = Friday1

 Database access:
 Username = train1
 Password = train1
 Connect String = nbstbr02

T-PT0108/04 CONFIDENTIAL© Copyright 2005 Wipro Technologies 19


RMS Directory Structure

T-PT0108/04 CONFIDENTIAL© Copyright 2005 Wipro Technologies 20


Pro*C – Retek Program Structure
 Retek provides a framework to simplify development
EXEC SQL INCLUDE SQLCA;
#include “retek_2.h”
long SQLCODE;

 Retek programs mostly follow the same structure in main()


 LOGON()
 Connect to the database

 init()
 Initialize all process variables main
 retek_init initializes the retek restart framework

 process() init process final


 Actual program logic

 final()
???
 Clean up function: flush i/o, release memory, etc…
 retek_close cleans up the retek restart framework

T-PT0108/04 CONFIDENTIAL© Copyright 2005 Wipro Technologies 21


Pro*C - Restart Recovery

 Avoid wasting valuable processing resources repeating work

 Load variables with the previous bookmark


 init_parameters array
 retek_init()

 At every commit, create a bookmark


 retek_commit()
 retek_force_commit()

 On a subsequent run, pick up from the latest bookmark in the


driving cursor

T-PT0108/04 CONFIDENTIAL© Copyright 2005 Wipro Technologies 22


Pro*C – Restart Recovery
Data Model

RESTART_PROGRAM_STATUS RESTART_CONTROL

PK RESTART_NAME PK PROGRAM_NAME

Current
PK THREAD_VAL
PROGRAM_DESC Definition
execution
FK1 PROGRAM_NAME
START_TIME
DRIVER_NAME
NUM_THREADS
parameters
status PROGRAM_STATUS UPDATE_ALLOWED
PROCESS_FLAG
for a process
RESTART_TIME
COMMIT_MAX_CTR
per RESTART_FLAG
FINISH_TIME
thread CURRENT_PID
CURRENT_OPERATOR_ID
ERR_MESSAGE
CURRENT_ORACLE_SID
CURRENT_SHADOW_PID Ar
ch
ive
Ol
d Re
co
rds

RESTART_PROGRAM_HISTORY
PK RESTART_NAME
PK THREAD_VAL
RESTART_BOOKMARK PK PROGRAM_NAME
PK START_TIME Execution log
PK,FK1 RESTART_NAME PK NUM_THREADS
Book-keeping PK,FK1 THREAD_VAL PK FINISH_TIME (one record
for restart BOOKMARK_STRING
PK COMMIT_MAX_CTR
per thread per
recovery APPLICATION_IMAGE
OUT_FILE_STRING
RESTART_TIME successful
SHADOW_PID
NON_FATAL_ERR_FLAG SUCCESS_FLAG execution)
NUM_COMMITS NON_FATAL_ERR_FLAG
AVG_TIME_BTWN_COMMITS NUM_COMMITS
AVG_TIME_BTWN_COMMITS

T-PT0108/04 CONFIDENTIAL© Copyright 2005 Wipro Technologies 23


Pro*C – Restart Recovery
Process Execution workflow
Start

‘ready for
Yes No
start’?
PROGRAM_STATUS state chart
Create bookmark row
with lowest possible
values Restart_flag User updates
=’Y’? status to ‘ready for start’
reprocess
No
Yes Program started

Get bookmark data


Sucessful ‘started’
completion
Program failed

For every row starting from bookmark ‘completed’ Program ‘aborted’


started

User fixed
Process data
problem and
sets restart_flag
‘aborted’
Restart=’Y’

Commit_max_ctr
Yes
rows?
Save current row as
bookmark and commit
No

End

T-PT0108/04 CONFIDENTIAL© Copyright 2005 Wipro Technologies 24


Pro*C – Multi-threading

 Multi-threading allows for better scalability


 The machines have several CPUs, use them!

 Load variables with the previous bookmark


 init_parameters array
 retek_init()

 On the main cursor filter by thread id


 Views like V_RESTART_XXX
 Or some similar logic

T-PT0108/04 CONFIDENTIAL© Copyright 2005 Wipro Technologies 25


Oracle Retail Merchandising System
GUI
Introduction

 Oracle Retail Merchandising System is accessed via internet browser

 URL for ORMS GUI:


 http://tb137.ukroi.tesco.org:7780/forms/frmservlet?config=rms
 Username = rms12
 Password = rms12
 Connect String = NBSTBR02

T-PT0108/04 CONFIDENTIAL© Copyright 2005 Wipro Technologies 27


Starting in the ORMS GUI

Expand or
Collapse
contents of
folder

Double-click
on folder or
form to
access

Highlight
folder or
form and
Retek Enterprise Start Form click Open to
access

T-PT0108/04 CONFIDENTIAL© Copyright 2005 Wipro Technologies 28


[email protected]
Thank You [email protected]
[email protected]
T-PT0108/04 CONFIDENTIAL© Copyright 2005 Wipro Technologies 29

You might also like