how your dba or database programmer can improve your argos reporting!
DESCRIPTION
How Your DBA or Database Programmer Can Improve Your Argos Reporting!. Presented By Bruce Knox University of Arkansas Division of Agriculture Cooperative Extension Service BAS S274 October 14 th 2008. Argos provides THE missing Banner Reporting Tool. - PowerPoint PPT PresentationTRANSCRIPT
How your Database Professionals can Improve your Argos Reporting1
How Your DBA or Database Programmer Can Improve Your Argos Reporting!
Presented ByBruce Knox
University of ArkansasDivision of Agriculture
Cooperative Extension Service
BAS S274 October 14th 2008
How your Database Professionals can Improve your Argos Reporting2
Argos provides THE missing Banner Reporting Tool
How your Database Professionals can Improve your Argos Reporting3
Even with Argos, there remains a need for further simplification
How your Database Professionals can Improve your Argos Reporting4
Even with Argos, there remains a need for further simplification
• Current Banner Record Sets
How your Database Professionals can Improve your Argos Reporting5
Even with Argos, there remains a need for further simplification
• Current Banner Record Sets
• Flattened Banner Data
How your Database Professionals can Improve your Argos Reporting6
Even with Argos, there remains a need for further simplification
• Current Banner Record Sets
• Flattened Banner Data
• Using Desktop Data with Banner
How your Database Professionals can Improve your Argos Reporting8
Views, Views, and Banner Views
• To Deal with Effective Dated Records
How your Database Professionals can Improve your Argos Reporting9
Views, Views, and Banner Views
• To Deal with Effective Dated Records
• To Flatten The Database
How your Database Professionals can Improve your Argos Reporting10
Views, Views, and Banner Views
• To Deal with Effective Dated Records
• To Flatten The Database
• Using Existing Banner Provided Views
How your Database Professionals can Improve your Argos Reporting12
Effective Dated Records• The #1 Bane of Ad Hoc Banner Reporting
How your Database Professionals can Improve your Argos Reporting13
Effective Dated Records• 99% of all Ad Hoc Reports
are for Current Banner Records
How your Database Professionals can Improve your Argos Reporting14
Effective Dated Records• 99% of all Ad Hoc Reports
are for Current Records
• Oracle Views can Deliver them without the need for Additional Selection Criteria
How your Database Professionals can Improve your Argos Reporting15
Effective Dated Records• 99% of all Ad Hoc Reports
are for Current Records
• Views can Deliver them without the need for Additional Selection Criteria
• Just JOIN the Views and the Query is Done!
How your Database Professionals can Improve your Argos Reporting20
What Was Hidden Here? FROM FTVORGN
WHERE
TRUNC(FTVORGN_EFF_DATE) <= SYSDATE
AND (FTVORGN_NCHG_DATE > SYSDATE OR FTVORGN_NCHG_DATE IS NULL)
AND (FTVORGN_TERM_DATE > SYSDATE OR FTVORGN_TERM_DATE IS NULL)
AND FTVORGN_STATUS_IND = 'A'
How your Database Professionals can Improve your Argos Reporting22
Thousands of Related Tables• The #2 Bane of Ad Hoc Banner Reporting
How your Database Professionals can Improve your Argos Reporting23
Thousands of Related Tables• The #2 Bane of Ad Hoc Banner Reporting
• Oracle Views Can Flatten the Database
How your Database Professionals can Improve your Argos Reporting37
Banner Views• Banner Actually Includes Useful Views
How your Database Professionals can Improve your Argos Reporting38
Banner Views• PEVEMPL: Employee Information View
How your Database Professionals can Improve your Argos Reporting39
Banner Views• PEVEMPL: Employee Information View
• A Commonly Used View
How your Database Professionals can Improve your Argos Reporting40
Banner Views• PEVEMPL: Employee Information View
• A Commonly Used View
• Flattens 16 Tables
How your Database Professionals can Improve your Argos Reporting41
Banner Views• PEVEMPL: Employee Information View
• A Commonly Used View
• Flattens 16 Tables
• Obscures the Source Column Names
How your Database Professionals can Improve your Argos Reporting48
Importing Desktop Data• Oracle Operates Best with Data in Oracle
How your Database Professionals can Improve your Argos Reporting49
Importing Desktop Data• Oracle Operates Best with Data in Oracle
• Upload Data Interactively with APEX
How your Database Professionals can Improve your Argos Reporting50
Importing Desktop Data• Oracle Operates Best with Data in Oracle
• Upload Data Interactively with APEX
• Loading an Excel file
• Upload Using Batch Scripts
How your Database Professionals can Improve your Argos Reporting66
Loading Excel Workbooks• All you need is the Microsoft Excel Driver (*.xls) ODBC Driver
• And you can load the structured data using instructions available from http://helpdesk.evisions.com
• But, you will not have access to another data source.
How your Database Professionals can Improve your Argos Reporting69
SQL*Plus Batch Script• -- publication_approval.sql Test Script for SQL*Plus External Table Loads
• -- SET ECHO OFF
• -- 01/29/08 bknox Created
• --this script named publication_approval.sql is to be run by a matching publication_approval.bat for the Application.
• --If your file to load is publication_approval.csv• --then filename1 => 'D:\orcl_ext\Application\publication_approval.log'
• SET FEEDBACK OFF• SET TIMING OFF• COLUMN Variable HEADING "Variable" FORMAT A16• COLUMN Value HEADING "Value" FORMAT A30
• HOST DEL D:\orcl_ext\Scripts\publication_approval_run.log• -- ONCE THE TESTING IS DONE HOST DEL D:\orcl_ext\Publications\publication_approval.log
• SPOOL publication_approval_run.log
• SELECT ' Host_Name: ' Variable, host_name Value FROM v$instance• UNION ALL• SELECT ' DB_Instance: ' Variable, SUBSTR(SUBSTR(global_name,1,30),1,instr(SUBSTR(global_name,1,30)||'.','.')-1)
Value FROM global_name• UNION ALL• SELECT 'Oracle Version: ' Variable, version Value FROM v$instance;
How your Database Professionals can Improve your Argos Reporting70
SQL*Plus Batch Script• SET FEEDBACK ON
• TRUNCATE TABLE pub_approval;• -- TRUNCATE TABLE is the preferred way to empty the Table, but only works when run by the Table Owner.
• --DELETE FROM pub_approval;
• INSERT INTO pub_approval• ( FUND,• ORGN,• PIDM )• SELECT • FUND,• ORGN,• PIDM• FROM pub_approval_ext;
• SET FEEDBACK OFF
• select 'Current-Record-Count:PUB_APPROVAL', COUNT(*) FROM PUB_APPROVAL;
• SPOOL OFF
• -- Note that publication_approval_run.log is the result of SQL*Plus FEEDBACK• -- publication_approval.log is the result of SQL*Loader via the External Table Load• begin• CES.email_files(• from_name => 'Publications',• to_names => '[email protected]',• subject => 'Pubs Approval External Table Load',• message => 'D:\orcl_ext\Scripts\publication_approval_run.log',• filename1 => 'D:\orcl_ext\Publications\publication_approval.log',• filetype1 => 'text/plain');• end;• /• EXIT
How your Database Professionals can Improve your Argos Reporting71
Windows Script• REM Windows Batch Script for running publication_approval.sql • REM which loads Internal Table from External Table.
• D:• cd oracle_ext
• cd Scripts• DEL D:\ORACLE_EXT\Publications\publication_approval.log• DEL D:\ORACLE_EXT\Publications\publication_approval.bad• DEL D:\ORACLE_EXT\Publications\publication_approval.dsc
• sqlplus pubsid/pwd@APPS @D:\oracle_ext\Scripts\publication_approval.sql• EXIT
How your Database Professionals can Improve your Argos Reporting74
Conclusions• Use Oracle Views to Simplify Banner
• Use Banner Views Whenever Available
• Use Batch Scripts to Upload Spreadsheets
How your Database Professionals can Improve your Argos Reporting75
Questions?Bruce Knox bknox @t uaex.edu
http://www.uaex.edu/bknox
http://www.uaex.edu/bknox/BannerArgos.htm
University of Arkansas Division of Agriculture
Cooperative Extension Service
Thank You! And, thanks to the Tennessee Board of Regents (TBR) and the Middle Tennessee State University
How your Database Professionals can Improve your Argos Reporting76
Contact InformationBruce Knox bknox @t uaex.edu
http://www.uaex.edu/bknox
http://www.uaex.edu/bknox/BannerArgos.htmhttp://www.uaex.edu/bknox/BannerScripts.htm password is scripts
University of Arkansas Division of Agriculture
Cooperative Extension Service
How your Database Professionals can Improve your Argos Reporting77
Argos Resources• Training classes http://www.evisions.com/calendar• Documentation and videos http://www.evisions.com/support/argos • Argos Listserve http://www.evisions.com/community • Argos Coop http://datablocks.evisions.com• Evisions HelpDesk http://helpdesk.evisions.com