Pennsylvania BANNER Users Group 2006 Taming the ENV Settings Robin Ying 760-355-6377 Imperial Valley College.

Slides:



Advertisements
Similar presentations
1 Radio Maria World. 2 Postazioni Transmitter locations.
Advertisements

Números.
JavaScript: Functions
Trend for Precision Soil Testing % Zone or Grid Samples Tested compared to Total Samples.
Trend for Precision Soil Testing % Zone or Grid Samples Tested compared to Total Samples.
AGVISE Laboratories %Zone or Grid Samples – Northwood laboratory
Trend for Precision Soil Testing % Zone or Grid Samples Tested compared to Total Samples.
193 G 10. G 194 G G 10 G 197 G
SKELETAL QUIZ 3.

PDAs Accept Context-Free Languages
/ /17 32/ / /
Reflection nurulquran.com.
EuroCondens SGB E.
Worksheets.
Power of Evidence Review
Addition and Subtraction Equations
Multiplication X 1 1 x 1 = 1 2 x 1 = 2 3 x 1 = 3 4 x 1 = 4 5 x 1 = 5 6 x 1 = 6 7 x 1 = 7 8 x 1 = 8 9 x 1 = 9 10 x 1 = x 1 = x 1 = 12 X 2 1.
Division ÷ 1 1 ÷ 1 = 1 2 ÷ 1 = 2 3 ÷ 1 = 3 4 ÷ 1 = 4 5 ÷ 1 = 5 6 ÷ 1 = 6 7 ÷ 1 = 7 8 ÷ 1 = 8 9 ÷ 1 = 9 10 ÷ 1 = ÷ 1 = ÷ 1 = 12 ÷ 2 2 ÷ 2 =
Random Number Generator (RNG) for Microcontrollers
By John E. Hopcroft, Rajeev Motwani and Jeffrey D. Ullman
1 When you see… Find the zeros You think…. 2 To find the zeros...
Pennsylvania BANNER Users Group 2006 Instance Neutral Cloning Script Robin Ying Imperial Valley.
Pennsylvania BANNER Users Group 2007 Automating the Freshman Parent Load.
Pennsylvania Banner Users Group 2008 Fall Conference Finance Reporting from the ODS using Cognos.
Pennsylvania BANNER Users Group 2007 Oracle Discoverer Web Reports for the Provost & Deans.
Western Public Lands Grazing: The Real Costs Explore, enjoy and protect the planet Forest Guardians Jonathan Proctor.
EQUS Conference - Brussels, June 16, 2011 Ambros Uchtenhagen, Michael Schaub Minimum Quality Standards in the field of Drug Demand Reduction Parallel Session.
Created By Sherri Desseau
Created By Sherri Desseau
Add Governors Discretionary (1G) Grants Chapter 6.
CALENDAR.
Summative Math Test Algebra (28%) Geometry (29%)
Introduction to Turing Machines
ASCII stands for American Standard Code for Information Interchange
The 5S numbers game..
突破信息检索壁垒 -SciFinder Scholar 介绍
A Fractional Order (Proportional and Derivative) Motion Controller Design for A Class of Second-order Systems Center for Self-Organizing Intelligent.
The basics for simulations
© 2010 Concept Systems, Inc.1 Concept Mapping Methodology: An Example.
Connecticut Mastery Test (CMT) and the Connecticut Academic Achievement Test (CAPT) Spring 2013 Presented to the Guilford Board of Education September.
Look at This PowerPoint for help on you times tables
Figure 3–1 Standard logic symbols for the inverter (ANSI/IEEE Std
TCCI Barometer March “Establishing a reliable tool for monitoring the financial, business and social activity in the Prefecture of Thessaloniki”
Dynamic Access Control the file server, reimagined Presented by Mark on twitter 1 contents copyright 2013 Mark Minasi.
Statistics Review – Part I
Progressive Aerobic Cardiovascular Endurance Run
Trichophyton rubrum An anthropophilic fungus, which has become the most common and widely distributed dermatophyte of humans. It frequently causes chronic.
11.0 Release Training Online Credit Unions: April 17, 2011 CU*NorthWest/CU*South: May 9, 2011 Self Processing CUs: May 9 & 10, 2011 Posted: April 8, 2011.
2011 WINNISQUAM COMMUNITY SURVEY YOUTH RISK BEHAVIOR GRADES 9-12 STUDENTS=1021.
Before Between After.
2011 FRANKLIN COMMUNITY SURVEY YOUTH RISK BEHAVIOR GRADES 9-12 STUDENTS=332.
ST/PRM3-EU | | © Robert Bosch GmbH reserves all rights even in the event of industrial property rights. We reserve all rights of disposal such as copying.
2.10% more children born Die 0.2 years sooner Spend 95.53% less money on health care No class divide 60.84% less electricity 84.40% less oil.
Foundation Stage Results CLL (6 or above) 79% 73.5%79.4%86.5% M (6 or above) 91%99%97%99% PSE (6 or above) 96%84%100%91.2%97.3% CLL.
Numeracy Resources for KS2
Static Equilibrium; Elasticity and Fracture
ANALYTICAL GEOMETRY ONE MARK QUESTIONS PREPARED BY:
Resistência dos Materiais, 5ª ed.
Lial/Hungerford/Holcomb/Mullins: Mathematics with Applications 11e Finite Mathematics with Applications 11e Copyright ©2015 Pearson Education, Inc. All.
Maths Warm Up Term 1.
Take any two digit number between 11 to Add the numbers (Example: Number 54 : 5+4=9). 2. Now subtract the answer from original number (i.e. 54-9=45,
Biostatistics course Part 14 Analysis of binary paired data
UNDERSTANDING THE ISSUES. 22 HILLSBOROUGH IS A REALLY BIG COUNTY.
Chart Deception Main Source: How to Lie with Charts, by Gerald E. Jones Dr. Michael R. Hyman, NMSU.
1 Lab 06 ONLINE LESSON Use down or up arrows to navigate.
Introduction Embedded Universal Tools and Online Features 2.
What impact does the address have on the tribe?
úkol = A 77 B 72 C 67 D = A 77 B 72 C 67 D 79.
Schutzvermerk nach DIN 34 beachten 05/04/15 Seite 1 Training EPAM and CANopen Basic Solution: Password * * Level 1 Level 2 * Level 3 Password2 IP-Adr.
Presentation transcript:

Pennsylvania BANNER Users Group 2006 Taming the ENV Settings Robin Ying Imperial Valley College

2 General Announcements: Please turn off all cell phones/pagers If you must leave the session early, please do so as discreetly as possible Please avoid side conversations during the session Questions will be answered at the end of the session Thank you for your cooperation

3 Background Our Environment: – System was set up by consultants, lack of documentation and knowledge transfer. – Limited fiscal resources. – Users want to have their exclusive cloned databases – AR, FA, FIN, HR, STU. – Going through Version 6 to Version 7 upgrade. Why Refactoring? – Duplicated code, very difficult to maintain. – Confusing setup, hard to trace errors.

4 Background The Banner-Oracle Instances: – 3 parts: INB + Database + Code Tree – 2 types of cloned instances: Shared Code Tree Independent instances ProductionSTUHRTESTUPGR INB Forms banprodbantestbanpprd Code Tree Production[ HR ][ Student ]TESTUPGR Database

5 Refactoring Goals Allow only one place to make changes to all ENV settings – the oraenv_local. – Simplifies maintenance Making Banner-Oracle instance change a single-command effort. – Simplifies usage Easy to exam the ENV settings. – Simplifies debugging Not affecting the baseline. – Easy to carry forward

6 Walk through the code ############################################################# 31 # Local host settings -- modify according to installation 32 ############################################################# 33 production_host=sun2 34 oracle_production_sid=IVC 45 ORACLE_BASE=/u01/app/oracle 46 ORACLE_HOME=$ORACLE_BASE/product/ [ ${ORACLE_SID:-0} = 0 ] && { 64 if [ $ask = 'y' ] 65 then 66chsid# ask for it 67 else 68ORACLE_SID=TEST;# default setting 69[ `hostname` = $production_host ] && ORACLE_SID=$oracle_production_sid; 70 fi recursion

7 Walk through the code ############################################################# 78 # Oracle instance settings -- this is the ONLY place defining the relationships 79 #between the Oracle instance and Banner code tree 80 ############################################################# 81 # 82 # setting the Banner code tree for the Oracle instance ( ${ORACLE_SID}_ct ) 83 # 84 instances='IVC AR320 FIN HR STU TRNG PPRD CURR TEST FA' 86 IVC_ct=banprod 87 AR320_ct=banprod 88 FIN_ct=banprod 89 HR_ct=banprod 90 STU_ct=banprod 91 TRNG_ct=banprod 93 PPRD_ct=banpprd 94 CURR_ct=bancurr 95 TEST_ct=bantest 96 FA_ct=banfa Independent code tree Shared code tree

8 Walk through the code $ECHO $instances | /bin/grep $ORACLE_SID > /dev/null 99 [ $? = 1 ] && { 100$ECHO "\n** Error: Invalid ORACLE_SID: $ORACLE_SID" 101$ECHO "\n** Valid values are: $instances\n" 102chsid 103 } 111 BANNER_HOME='$'${ORACLE_SID}_ct; BANNER_HOME=$BANNER_ROOT/`eval "echo $BANNER_HOME"` recursion dynamic variable dynamic rendering

9 Dynamic Variables Dynamic variables are constructed and rendered during execution. Basic structure: 1. There is a static variable with an assigned value. 2. A dynamic variable is constructed during the execution time whose value is to match the name of the static variable. 3. The dynamic variable is rendered during execution time with the value of the static variable.

10 Dynamic Variables Example: – Static variable with value: PPRD_ct=banpprd – Dynamic variable is constructed during execution time ( ${ORACLE_SID} changes according to the ENV setting): code_tree='$'${ORACLE_SID}_ct code_tree=$PPRD_ct when ORACLE_SID is set to PPRD – Dynamic variable is rendered: BANNER_HOME=/u01/sghe/`eval "echo $code_tree"` echo $code_tree produces $PPRD_ct eval $PPRD_ct produces banpprd BANNER_HOME=/u01/sghe/banpprd

11 Walk through the code # boenv function -- print the Banner/Oracle env settings 175 # 176 # Usage: boenv [-a] 177 # 178 function boenv { 179case "$1" in 180"") 217 typeset –fx boenv# export the boenv function

12 Walk through the code # Usage: chsid oracle_sid 223 # 224 function chsid { 225s= 226[ $# = 1 ] && s=$ while [ ${s:-0} = 0 ] 229do 230$ECHO "Enter ORACLE_SID=\c" 231read s 232done ORACLE_SID=$s 235export ORACLE_SID 236unset TWO_TASK 237. /usr/local/bin/oraenv_local 238_fixpath 239 } 240 typeset -fx chsid recursion

13 Walk through the code function _fixpath { 252p0='$'${ORACLE_SID}_ct 253p0=`eval "echo $p0"` for i in $instances 256do 257p1='$'${i}_ct; p1=`eval "echo $p1"` 258case ${PATH} in 259*${p1}*) 260PATH=`echo $PATH | sed "s%$p1%$p0%g"`;; 262*);; 264esac 265done echo $PATH | grep "$ora_path" > /dev/null 268[ $? = 1 ] && PATH=$ora_path:$PATH echo $PATH | grep "$ban_path" > /dev/null 271[ $? = 1 ] && PATH=$ban_path:$PATH 272 }

14 PABUG 2006

Pennsylvania BANNER Users Group 2006 Have a great day! Robin Ying Imperial Valley College