1 manufacturing operations center 16. demo data customization scripts apac training, feb-mar, 2010

25
<Insert Picture Here> 1 Manufacturing Operations Center 16. Demo Data Customization Scripts APAC Training, Feb-Mar, 2010

Upload: ashlynn-robertson

Post on 08-Jan-2018

232 views

Category:

Documents


0 download

DESCRIPTION

3 3 Pre-requisites 1.CSV Files location should copied to your PC 2.Access to the unix/windows system from where you can invoke the script

TRANSCRIPT

Page 1: 1 Manufacturing Operations Center 16. Demo Data Customization Scripts APAC Training, Feb-Mar, 2010

<Insert Picture Here>

1

Manufacturing Operations Center 16. Demo Data Customization Scripts

APAC Training, Feb-Mar, 2010

Page 2: 1 Manufacturing Operations Center 16. Demo Data Customization Scripts APAC Training, Feb-Mar, 2010

2

2

Overview & Scope

1. Scripts for automating creation/updation of MOC demo data

2. Data is populated in csv templates3. CSV files with data filled in are staged at some fixed

location 4. Automation script will invoke OWB process

flows/maps 5. Upon completion the script will indicate the status –

success/failure

Page 3: 1 Manufacturing Operations Center 16. Demo Data Customization Scripts APAC Training, Feb-Mar, 2010

3

3

Pre-requisites

1. CSV Files location should copied to your PC2. Access to the unix/windows system from where you

can invoke the script

Page 4: 1 Manufacturing Operations Center 16. Demo Data Customization Scripts APAC Training, Feb-Mar, 2010

4

4

Script Details

1. Two scripts are made available2. Script 1 - createNewDemoData

• This script will erase the entire demo data and create new demo data in the MOC instance

• This script should be run if you are creating the demo data for the first time

• Data should be populated in all the csv files

3. Script 2 - modifyExistingDemoData• This script will update the existing demo data• Data changes that you want to make should be done in the

CSV Files – entity name, description, and other attributes except the keys

Page 5: 1 Manufacturing Operations Center 16. Demo Data Customization Scripts APAC Training, Feb-Mar, 2010

5

5

Download the Original CSV files

1. Copy the Master set of CSV files to your PC1. Access Files on Line folder ‘richard.rodgers-Public’2. Copy the contents of ‘Original-do not modify’ to your PC

Page 6: 1 Manufacturing Operations Center 16. Demo Data Customization Scripts APAC Training, Feb-Mar, 2010

6

6

Modify the CSV demo data

1. Basically only change Names and Descriptions2. DO NOT CHANGE ‘PK’ Primary Keys

1. See link for detail file information Microsoft Office Word 97 - 2003 Document

Page 7: 1 Manufacturing Operations Center 16. Demo Data Customization Scripts APAC Training, Feb-Mar, 2010

7

7

Modify the CSV demo data

1. Understand and update file Hierarchies.1. MTH_EQUIP_HRCHY_DEF.csv2. MTH_ITEM_HIERARCHY.csv

Page 8: 1 Manufacturing Operations Center 16. Demo Data Customization Scripts APAC Training, Feb-Mar, 2010

8

8

Upload the CSV files

1. Upload the modified CSV files from your PC1. Access Files on Line folder ‘richard.rodgers-Public’2. Create a new sub-folder for your files

1. E.g. ‘Larry Mobley – modified csv files3. Copy the modified files to your folder

Page 9: 1 Manufacturing Operations Center 16. Demo Data Customization Scripts APAC Training, Feb-Mar, 2010

9

9

Login to Linux session servers - http://ebiztta/cgi-bin/secure/ttawlogin.cgi/?action=start&pg=index2.html

userid - gtippire

passwd - T6laqq3%

Page 10: 1 Manufacturing Operations Center 16. Demo Data Customization Scripts APAC Training, Feb-Mar, 2010

10

10

Login to Linux session servers - Select FVWM as a Session Server

Page 11: 1 Manufacturing Operations Center 16. Demo Data Customization Scripts APAC Training, Feb-Mar, 2010

11

11

Login to Linux session servers - Right Click on the pallet:

Select ShellsSelect Xterm

Page 12: 1 Manufacturing Operations Center 16. Demo Data Customization Scripts APAC Training, Feb-Mar, 2010

12

12

Login to Linux session servers -

Common Linux Commands:pwd = Present Work Directory

cp = copy from to

mkd = make directory

cd = current directory

ls = list

Copy in Windows (Ctrl + C) = simultaneous Left and Right Mouse clicks

Page 13: 1 Manufacturing Operations Center 16. Demo Data Customization Scripts APAC Training, Feb-Mar, 2010

13

13

Start OWBII Control Center Service

To Start OWBII Control Center Service:

Set the working directory:cd /rh2.1AS/nfs/lafrz/owb/owb10204_7252607/owb/bin/unix Enter the command:./run_service.sh -manual 1 /rh2.1AS/nfs/lafrz/owb/owb10204_7252607 mocowner rws60016rems 1537 az1mu211

Enter the password: ’mocowner’ and press enter key. 

Page 14: 1 Manufacturing Operations Center 16. Demo Data Customization Scripts APAC Training, Feb-Mar, 2010

14

14

Start a Browser session:Right Click on the pallet:

Page 15: 1 Manufacturing Operations Center 16. Demo Data Customization Scripts APAC Training, Feb-Mar, 2010

15

15

Log on to Files On Line

Page 16: 1 Manufacturing Operations Center 16. Demo Data Customization Scripts APAC Training, Feb-Mar, 2010

16

16

Upload the CSV files

Right Click on the file:

Page 17: 1 Manufacturing Operations Center 16. Demo Data Customization Scripts APAC Training, Feb-Mar, 2010

17

17

Upload the CSV files Make sure that you are saving to the

csv_staging folder

Page 18: 1 Manufacturing Operations Center 16. Demo Data Customization Scripts APAC Training, Feb-Mar, 2010

18

18

Create a second Shell

Right Click on the pallet:Select Shells

Select Xterm

Page 19: 1 Manufacturing Operations Center 16. Demo Data Customization Scripts APAC Training, Feb-Mar, 2010

19

19

Upload the CSV files

CSV File location for the scripts is in a home directory:  cd /home/yfeng/demo/csv 

To copy to the uploaded files to the home directory:Set current directory cd /home/yfeng/demo/csv

 

Page 20: 1 Manufacturing Operations Center 16. Demo Data Customization Scripts APAC Training, Feb-Mar, 2010

20

20

Upload the CSV files

CSV File location for the scripts is in a home directory:  cd /home/yfeng/demo/csv 

Copy from uploaded directory to the script home directory:cp /home/gtippire/csv_staging/*.csv .

 

Page 21: 1 Manufacturing Operations Center 16. Demo Data Customization Scripts APAC Training, Feb-Mar, 2010

21

21

Run the Script to Modify the demo data

Wait for it to finish 5-10 minutes

Page 22: 1 Manufacturing Operations Center 16. Demo Data Customization Scripts APAC Training, Feb-Mar, 2010

22

22

Wait for the script to finish

Page 23: 1 Manufacturing Operations Center 16. Demo Data Customization Scripts APAC Training, Feb-Mar, 2010

23

23

Start OBIEE

Page 24: 1 Manufacturing Operations Center 16. Demo Data Customization Scripts APAC Training, Feb-Mar, 2010

24

24

Verify in the database and OBIEE to make sure that the change is reflected

Page 25: 1 Manufacturing Operations Center 16. Demo Data Customization Scripts APAC Training, Feb-Mar, 2010

25