SlideShare uma empresa Scribd logo
1 de 129
Cross-platform Batch Reports Waldo Library Western Michigan University
Objectives ,[object Object],[object Object]
Bonus!!!!! Source code for BLOB access  and a  table+column schema listing included in the handout.
Brief Bio
Brief Bio ,[object Object]
Brief Bio ,[object Object],[object Object]
Brief Bio ,[object Object],[object Object],[object Object]
Brief Bio ,[object Object],[object Object],[object Object],[object Object]
Brief Bio ,[object Object],[object Object],[object Object],[object Object],[object Object]
Why We Did This
Why We Did This ,[object Object]
Why We Did This ,[object Object],[object Object]
Why We Did This ,[object Object],[object Object],[object Object],[object Object],[object Object]
Why We Did This ,[object Object],[object Object],[object Object]
Why We Did This ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Cross-Platform Batch Reports Overview of Process (Handout page 4) Unix
cron Cross-Platform Batch Reports Overview of Process Unix
cron Cross-Platform Batch Reports Overview of Process Unix Time/date parameters  in one crontab file
cron Cross-Platform Batch Reports Overview of Process Unix Time/date parameters  in one crontab file script
cron Cross-Platform Batch Reports Overview of Process Unix Time/date parameters  in one crontab file script SQL, PL/SQL, Perl
cron Cross-Platform Batch Reports Overview of Process Unix Time/date parameters  in one crontab file script SQL, PL/SQL, Perl report One cron process running
cron Cross-Platform Batch Reports Overview of Process Unix Time/date parameters  in one crontab file script SQL, PL/SQL, Perl report One cron process running Batch PC
cron Cross-Platform Batch Reports Overview of Process Unix Time/date parameters  in one crontab file script SQL, PL/SQL, Perl report One cron process running Batch PC WinBatch
cron Cross-Platform Batch Reports Overview of Process Unix Time/date parameters  in one crontab file script SQL, PL/SQL, Perl report One cron process running Batch PC WinBatch script or .exe
cron Cross-Platform Batch Reports Overview of Process Unix Time/date parameters  in one crontab file script SQL, PL/SQL, Perl report One cron process running Batch PC WinBatch script or .exe use ftp to get the report pull it into Word format the report
cron Cross-Platform Batch Reports Overview of Process Unix Time/date parameters  in one crontab file script SQL, PL/SQL, Perl report One cron process running Batch PC WinBatch script or .exe use ftp to get the report pull it into Word format the report time/date parameters stored in each script
cron Cross-Platform Batch Reports Overview of Process Unix Time/date parameters  in one crontab file script SQL, PL/SQL, Perl report One cron process running Batch PC WinBatch script or .exe use ftp to get the report pull it into Word format the report time/date parameters stored in each script copy report to destination on LAN
cron Cross-Platform Batch Reports Overview of Process Unix Time/date parameters  in one crontab file script SQL, PL/SQL, Perl report One cron process running Batch PC WinBatch script or .exe use ftp to get the report pull it into Word format the report time/date parameters stored in each script copy report to destination on LAN print report to location
cron Cross-Platform Batch Reports Overview of Process Unix Time/date parameters  in one crontab file script SQL, PL/SQL, Perl report One cron process running Batch PC WinBatch script or .exe use ftp to get the report pull it into Word format the report time/date parameters stored in each script copy report to destination on LAN print report to location Library Administration Library Systems Media Resources Mono Acquisitions Serials
When to Choose SQL, PL/SQL, or Perl ,[object Object]
When to Choose SQL, PL/SQL, or Perl ,[object Object],[object Object]
When to Choose SQL, PL/SQL, or Perl ,[object Object],[object Object],[object Object]
When to Choose SQL, PL/SQL, or Perl ,[object Object],[object Object],[object Object],[object Object]
When to Choose SQL, PL/SQL, or Perl ,[object Object],[object Object],[object Object],[object Object],[object Object]
When to Choose SQL, PL/SQL, or Perl ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
When to Choose SQL, PL/SQL, or Perl ,[object Object],[object Object],[object Object]
When to Choose SQL, PL/SQL, or Perl identify what the report generates
When to Choose SQL, PL/SQL, or Perl include Word format settings
When to Choose SQL, PL/SQL, or Perl define output columns
When to Choose SQL, PL/SQL, or Perl these two columns are for sorting only
When to Choose SQL, PL/SQL, or Perl The call to FISCYRSETUP creates a temporary table, for the duration of this report, that contains the name and start date for the current and previous year. This is used in a number of reports to automatically reference fiscal year data.
When to Choose SQL, PL/SQL, or Perl Set up title and some report parameters. Want output in a file.
When to Choose SQL, PL/SQL, or Perl Run the query to create the report. Clean up when done.
When to Choose SQL, PL/SQL, or Perl ,[object Object]
When to Choose SQL, PL/SQL, or Perl ,[object Object],[object Object]
When to Choose SQL, PL/SQL, or Perl ,[object Object],[object Object],[object Object]
When to Choose SQL, PL/SQL, or Perl ,[object Object],[object Object],[object Object],[object Object]
When to Choose SQL, PL/SQL, or Perl ,[object Object],[object Object]
When to Choose SQL, PL/SQL, or Perl ,[object Object],[object Object],[object Object]
When to Choose SQL, PL/SQL, or Perl ,[object Object],[object Object],[object Object],[object Object]
When to Choose SQL, PL/SQL, or Perl ,[object Object],[object Object],[object Object],[object Object],[object Object]
When to Choose SQL, PL/SQL, or Perl ,[object Object],[object Object],[object Object]
When to Choose SQL, PL/SQL, or Perl start off with some comments… output limitation…
When to Choose SQL, PL/SQL, or Perl important reminder
When to Choose SQL, PL/SQL, or Perl note the order by
When to Choose SQL, PL/SQL, or Perl variables must be declared
When to Choose SQL, PL/SQL, or Perl fields from the table
When to Choose SQL, PL/SQL, or Perl you have control of looping through results
When to Choose SQL, PL/SQL, or Perl What is a  BLOB ? It stands for  B inary  L arge  Ob ject. More simply put, it is a collection of bytes that can contain both printable and unprintable characters. This is how MARC data is stored under Voyager.
When to Choose SQL, PL/SQL, or Perl The BLOB can be stored in one or more sections: BibID: 57  Seqnum: 1  Recseg: BLOB Part A BibID: 57  Seqnum: 2  Recseg: BLOB Part B
When to Choose SQL, PL/SQL, or Perl The BLOB can be stored in one or more sections: BibID: 57  Seqnum: 1  Recseg: BLOB Part A BibID: 57  Seqnum: 2  Recseg: BLOB Part B The BLOB is put together in  reverse order, because we can depend on Seqnum #1 being the last one that way.
When to Choose SQL, PL/SQL, or Perl get data from the header, then get each tag’s data as we loop through the directory structure
When to Choose SQL, PL/SQL, or Perl do some formatting...
When to Choose SQL, PL/SQL, or Perl print formatted tag data… finish looping and end the program
When to Choose SQL, PL/SQL, or Perl Without the closing “ / ”, your PL/SQL code will NOT run!
When to Choose SQL, PL/SQL, or Perl ,[object Object]
When to Choose SQL, PL/SQL, or Perl ,[object Object],[object Object],[object Object]
When to Choose SQL, PL/SQL, or Perl ,[object Object],[object Object],[object Object],[object Object]
When to Choose SQL, PL/SQL, or Perl ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
When to Choose SQL, PL/SQL, or Perl ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
When to Choose SQL, PL/SQL, or Perl ,[object Object],[object Object],[object Object]
When to Choose SQL, PL/SQL, or Perl start off with some comments
When to Choose SQL, PL/SQL, or Perl You’ll need to have DBI and DBD for Oracle set up on your Unix box.
When to Choose SQL, PL/SQL, or Perl set up some variables
When to Choose SQL, PL/SQL, or Perl need to be able to talk to the database
When to Choose SQL, PL/SQL, or Perl Get all the table names. In my experience, I was unable to use the reserved word “ distinct ” in the query. Thus the extract code to dedupe the results.
When to Choose SQL, PL/SQL, or Perl need to know how many columns per table to aid in output formatting
When to Choose SQL, PL/SQL, or Perl set up and initiate output
When to Choose SQL, PL/SQL, or Perl get the report’s data
When to Choose SQL, PL/SQL, or Perl keep track of column names ending in “_id”
When to Choose SQL, PL/SQL, or Perl go through array, output columns ending in “_id” first
When to Choose SQL, PL/SQL, or Perl go through array, output columns ending in “_id” first Remember counting columns per table? Here we advance to the next page, if the table doesn’t fit on the current page.
When to Choose SQL, PL/SQL, or Perl then repeat this process for columns that do not end in “_id”
When to Choose SQL, PL/SQL, or Perl if not enough room for smallest possible table, go to next page
When to Choose SQL, PL/SQL, or Perl clean up when done
The Batch PC
The Batch PC ,[object Object]
The Batch PC ,[object Object],[object Object]
The Batch PC ,[object Object]
The Batch PC ,[object Object],[object Object]
The Batch PC ,[object Object],[object Object],[object Object]
The Batch PC ,[object Object],[object Object],[object Object],[object Object]
The Batch PC ,[object Object],[object Object],[object Object],[object Object],[object Object]
The Batch PC ,[object Object]
The Batch PC ,[object Object],[object Object]
The Batch PC ,[object Object],[object Object],[object Object],[object Object]
The Batch PC ,[object Object],[object Object],[object Object],[object Object],[object Object]
The Batch PC ,[object Object]
The Batch PC ,[object Object],[object Object]
The Batch PC ,[object Object],[object Object],[object Object]
The Batch PC ,[object Object],[object Object],[object Object],[object Object]
Quick Process Review
cron Cross-Platform Batch Reports Overview of Process Unix Time/date parameters  in one crontab file script SQL, PL/SQL, Perl report One cron process running Batch PC WinBatch script or .exe use ftp to get the report pull it into Word format the report time/date parameters stored in each script copy report to destination on LAN print report to location Library Administration Library Systems Media Resources Mono Acquisitions Serials
The Batch PC ,[object Object],[object Object]
The Batch PC start off with comments, including instructions on when the script can be started safely to avoid duplication of report printing
The Batch PC set up paths and filenames on the Unix box and the batch PC, get the database password from a file
The Batch PC determine if it’s time for the script to run
The Batch PC Encapsulating the ftp process in a WinBatch script file works well. Use the DOS ftp program supplied with Windows.
The Batch PC wait a minute for ftp to complete
The Batch PC make sure file exists, then launch Word with it
The Batch PC send formatting keystrokes to Word
The Batch PC Get the printer pull-down menu, select the desired printer, and print. Wait a minute for printing to complete before closing Word.
The Batch PC The rest of the code closes loops and makes the script wait until the next run time occurs.
Example from another script illustrating how to trigger on day of the week. This script runs early in the morning, six days a week.
The Batch PC ,[object Object],[object Object]
The Batch PC ,[object Object],[object Object],[object Object]
The Batch PC ,[object Object],[object Object],[object Object],[object Object]
The Batch PC ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Thanks for listening Questions? Email: zimmer@wmich.edu Phone: 616.387.3885
Better Call Number Sorting Roll your own!
What Voyager gives us…
We can achieve better results…  this is now our input correctly sorted
Better Call Number Sorting ,[object Object]
Better Call Number Sorting ,[object Object],[object Object]
Better Call Number Sorting ,[object Object],[object Object],[object Object]
Better Call Number Sorting ,[object Object],[object Object],[object Object],[object Object]
Better Call Number Sorting ,[object Object],[object Object],[object Object]
Better Call Number Sorting ,[object Object],[object Object],[object Object]
Thanks for listening. Contact me if you want to receive the CallNumber Perl module. Questions? Email: zimmer@wmich.edu Phone: 616.387.3885

Mais conteúdo relacionado

Mais procurados

Mais procurados (17)

Oracle sql & plsql
Oracle sql & plsqlOracle sql & plsql
Oracle sql & plsql
 
Oracle data pump
Oracle data pumpOracle data pump
Oracle data pump
 
Apache TomEE - Tomcat with a kick
Apache TomEE  - Tomcat with a kickApache TomEE  - Tomcat with a kick
Apache TomEE - Tomcat with a kick
 
Oracle: PLSQL
Oracle: PLSQLOracle: PLSQL
Oracle: PLSQL
 
Plsql
PlsqlPlsql
Plsql
 
nir
nirnir
nir
 
ORACLE PL SQL FOR BEGINNERS
ORACLE PL SQL FOR BEGINNERSORACLE PL SQL FOR BEGINNERS
ORACLE PL SQL FOR BEGINNERS
 
AtoM's Command Line Tasks - An Introduction
AtoM's Command Line Tasks - An IntroductionAtoM's Command Line Tasks - An Introduction
AtoM's Command Line Tasks - An Introduction
 
Oracle api gateway installation as cluster and single node
Oracle api gateway installation as cluster and single nodeOracle api gateway installation as cluster and single node
Oracle api gateway installation as cluster and single node
 
Phalcon 2 - PHP Brazil Conference
Phalcon 2 - PHP Brazil ConferencePhalcon 2 - PHP Brazil Conference
Phalcon 2 - PHP Brazil Conference
 
Peoplesoft installation steps
Peoplesoft installation stepsPeoplesoft installation steps
Peoplesoft installation steps
 
Data pump-export-examples
Data pump-export-examplesData pump-export-examples
Data pump-export-examples
 
PL/SQL Fundamentals I
PL/SQL Fundamentals IPL/SQL Fundamentals I
PL/SQL Fundamentals I
 
Deep Dive: More Oracle Data Pump Performance Tips and Tricks
Deep Dive: More Oracle Data Pump Performance Tips and TricksDeep Dive: More Oracle Data Pump Performance Tips and Tricks
Deep Dive: More Oracle Data Pump Performance Tips and Tricks
 
PLSQL Tutorial
PLSQL TutorialPLSQL Tutorial
PLSQL Tutorial
 
Tomcat server
 Tomcat server Tomcat server
Tomcat server
 
Tomcat Server
Tomcat ServerTomcat Server
Tomcat Server
 

Destaque

Another Way to Attack the BLOB: Server-side Access via PL/SQL and Perl
Another Way to Attack the BLOB: Server-side Access via PL/SQL and PerlAnother Way to Attack the BLOB: Server-side Access via PL/SQL and Perl
Another Way to Attack the BLOB: Server-side Access via PL/SQL and PerlRoy Zimmer
 
Plunging Into Perl While Avoiding the Deep End (mostly)
Plunging Into Perl While Avoiding the Deep End (mostly)Plunging Into Perl While Avoiding the Deep End (mostly)
Plunging Into Perl While Avoiding the Deep End (mostly)Roy Zimmer
 
My angelito's total makeover
My angelito's total makeoverMy angelito's total makeover
My angelito's total makeoverAritazul
 
Marcive Documents: Catching Up and Keeping Up
Marcive Documents: Catching Up and Keeping UpMarcive Documents: Catching Up and Keeping Up
Marcive Documents: Catching Up and Keeping UpRoy Zimmer
 
A Strand of Perls: Some Home Grown Utilities
A Strand of Perls: Some Home Grown UtilitiesA Strand of Perls: Some Home Grown Utilities
A Strand of Perls: Some Home Grown UtilitiesRoy Zimmer
 
The Outer Planets Of Our Solar System
The Outer Planets Of Our Solar SystemThe Outer Planets Of Our Solar System
The Outer Planets Of Our Solar SystemMark L.
 
The Physics of God and the Quantum Gravity Theory of Everything
The Physics of God and the Quantum Gravity Theory of EverythingThe Physics of God and the Quantum Gravity Theory of Everything
The Physics of God and the Quantum Gravity Theory of EverythingJamesRedford
 
You Can Do It! Start Using Perl to Handle Your Voyager Needs
You Can Do It! Start Using Perl to Handle Your Voyager NeedsYou Can Do It! Start Using Perl to Handle Your Voyager Needs
You Can Do It! Start Using Perl to Handle Your Voyager NeedsRoy Zimmer
 
Voyager Meets MeLCat: MC'ing the Introductions
Voyager Meets MeLCat: MC'ing the IntroductionsVoyager Meets MeLCat: MC'ing the Introductions
Voyager Meets MeLCat: MC'ing the IntroductionsRoy Zimmer
 
Ray Owens 04.12.11
Ray Owens 04.12.11Ray Owens 04.12.11
Ray Owens 04.12.11Ccasati
 
The Outer Planets Of Our Solar System
The Outer Planets Of Our Solar SystemThe Outer Planets Of Our Solar System
The Outer Planets Of Our Solar SystemMark L.
 
Double page stages
Double page stagesDouble page stages
Double page stagesMitchElsey
 
Orientation Session for (New) Presenters and Moderators
Orientation Session for (New) Presenters and ModeratorsOrientation Session for (New) Presenters and Moderators
Orientation Session for (New) Presenters and ModeratorsRoy Zimmer
 

Destaque (13)

Another Way to Attack the BLOB: Server-side Access via PL/SQL and Perl
Another Way to Attack the BLOB: Server-side Access via PL/SQL and PerlAnother Way to Attack the BLOB: Server-side Access via PL/SQL and Perl
Another Way to Attack the BLOB: Server-side Access via PL/SQL and Perl
 
Plunging Into Perl While Avoiding the Deep End (mostly)
Plunging Into Perl While Avoiding the Deep End (mostly)Plunging Into Perl While Avoiding the Deep End (mostly)
Plunging Into Perl While Avoiding the Deep End (mostly)
 
My angelito's total makeover
My angelito's total makeoverMy angelito's total makeover
My angelito's total makeover
 
Marcive Documents: Catching Up and Keeping Up
Marcive Documents: Catching Up and Keeping UpMarcive Documents: Catching Up and Keeping Up
Marcive Documents: Catching Up and Keeping Up
 
A Strand of Perls: Some Home Grown Utilities
A Strand of Perls: Some Home Grown UtilitiesA Strand of Perls: Some Home Grown Utilities
A Strand of Perls: Some Home Grown Utilities
 
The Outer Planets Of Our Solar System
The Outer Planets Of Our Solar SystemThe Outer Planets Of Our Solar System
The Outer Planets Of Our Solar System
 
The Physics of God and the Quantum Gravity Theory of Everything
The Physics of God and the Quantum Gravity Theory of EverythingThe Physics of God and the Quantum Gravity Theory of Everything
The Physics of God and the Quantum Gravity Theory of Everything
 
You Can Do It! Start Using Perl to Handle Your Voyager Needs
You Can Do It! Start Using Perl to Handle Your Voyager NeedsYou Can Do It! Start Using Perl to Handle Your Voyager Needs
You Can Do It! Start Using Perl to Handle Your Voyager Needs
 
Voyager Meets MeLCat: MC'ing the Introductions
Voyager Meets MeLCat: MC'ing the IntroductionsVoyager Meets MeLCat: MC'ing the Introductions
Voyager Meets MeLCat: MC'ing the Introductions
 
Ray Owens 04.12.11
Ray Owens 04.12.11Ray Owens 04.12.11
Ray Owens 04.12.11
 
The Outer Planets Of Our Solar System
The Outer Planets Of Our Solar SystemThe Outer Planets Of Our Solar System
The Outer Planets Of Our Solar System
 
Double page stages
Double page stagesDouble page stages
Double page stages
 
Orientation Session for (New) Presenters and Moderators
Orientation Session for (New) Presenters and ModeratorsOrientation Session for (New) Presenters and Moderators
Orientation Session for (New) Presenters and Moderators
 

Semelhante a Batchhow

PLSQL Developer tips and tricks
PLSQL Developer tips and tricksPLSQL Developer tips and tricks
PLSQL Developer tips and tricksPatrick Barel
 
Boost Your Environment With XMLDB - UKOUG 2008 - Marco Gralike
Boost Your Environment With XMLDB - UKOUG 2008 - Marco GralikeBoost Your Environment With XMLDB - UKOUG 2008 - Marco Gralike
Boost Your Environment With XMLDB - UKOUG 2008 - Marco GralikeMarco Gralike
 
Oracle forms and reports 11g installation on linux
Oracle forms and reports 11g installation on linuxOracle forms and reports 11g installation on linux
Oracle forms and reports 11g installation on linuxVenu Palakolanu
 
Leveraging Open Source to Manage SAN Performance
Leveraging Open Source to Manage SAN PerformanceLeveraging Open Source to Manage SAN Performance
Leveraging Open Source to Manage SAN Performancebrettallison
 
From Idea to Model: Productionizing Data Pipelines with Apache Airflow
From Idea to Model: Productionizing Data Pipelines with Apache AirflowFrom Idea to Model: Productionizing Data Pipelines with Apache Airflow
From Idea to Model: Productionizing Data Pipelines with Apache AirflowDatabricks
 
Advanced Index, Partitioning and Compression Strategies for SQL Server
Advanced Index, Partitioning and Compression Strategies for SQL ServerAdvanced Index, Partitioning and Compression Strategies for SQL Server
Advanced Index, Partitioning and Compression Strategies for SQL ServerConfio Software
 
Power point on linux commands,appache,php,mysql,html,css,web 2.0
Power point on linux commands,appache,php,mysql,html,css,web 2.0Power point on linux commands,appache,php,mysql,html,css,web 2.0
Power point on linux commands,appache,php,mysql,html,css,web 2.0venkatakrishnan k
 
Performance Tuning Using oratop
Performance Tuning Using oratop Performance Tuning Using oratop
Performance Tuning Using oratop Sandesh Rao
 
XFILES, The APEX 4 version - The truth is in there
XFILES, The APEX 4 version - The truth is in thereXFILES, The APEX 4 version - The truth is in there
XFILES, The APEX 4 version - The truth is in thereMarco Gralike
 
Best Implementation Practices with BI Publisher
Best Implementation Practices with BI PublisherBest Implementation Practices with BI Publisher
Best Implementation Practices with BI PublisherMohan Dutt
 
Oracle DBA interview_questions
Oracle DBA interview_questionsOracle DBA interview_questions
Oracle DBA interview_questionsNaveen P
 
SPARQLing Services
SPARQLing ServicesSPARQLing Services
SPARQLing ServicesLeigh Dodds
 
R12 d49656 gc10-apps dba 01
R12 d49656 gc10-apps dba 01R12 d49656 gc10-apps dba 01
R12 d49656 gc10-apps dba 01zeesniper
 
What's New in Oracle SQL Developer for 2018
What's New in Oracle SQL Developer for 2018What's New in Oracle SQL Developer for 2018
What's New in Oracle SQL Developer for 2018Jeff Smith
 
03 Biz Talk 2010 Hands On Day Adapter Pack
03 Biz Talk 2010 Hands On Day  Adapter Pack03 Biz Talk 2010 Hands On Day  Adapter Pack
03 Biz Talk 2010 Hands On Day Adapter PackNikolai Blackie
 
SQLcl overview - A new Command Line Interface for Oracle Database
SQLcl overview - A new Command Line Interface for Oracle DatabaseSQLcl overview - A new Command Line Interface for Oracle Database
SQLcl overview - A new Command Line Interface for Oracle DatabaseJeff Smith
 

Semelhante a Batchhow (20)

PLSQL Developer tips and tricks
PLSQL Developer tips and tricksPLSQL Developer tips and tricks
PLSQL Developer tips and tricks
 
Boost Your Environment With XMLDB - UKOUG 2008 - Marco Gralike
Boost Your Environment With XMLDB - UKOUG 2008 - Marco GralikeBoost Your Environment With XMLDB - UKOUG 2008 - Marco Gralike
Boost Your Environment With XMLDB - UKOUG 2008 - Marco Gralike
 
Pl sql
Pl sqlPl sql
Pl sql
 
Oracle forms and reports 11g installation on linux
Oracle forms and reports 11g installation on linuxOracle forms and reports 11g installation on linux
Oracle forms and reports 11g installation on linux
 
Leveraging Open Source to Manage SAN Performance
Leveraging Open Source to Manage SAN PerformanceLeveraging Open Source to Manage SAN Performance
Leveraging Open Source to Manage SAN Performance
 
From Idea to Model: Productionizing Data Pipelines with Apache Airflow
From Idea to Model: Productionizing Data Pipelines with Apache AirflowFrom Idea to Model: Productionizing Data Pipelines with Apache Airflow
From Idea to Model: Productionizing Data Pipelines with Apache Airflow
 
Advanced Index, Partitioning and Compression Strategies for SQL Server
Advanced Index, Partitioning and Compression Strategies for SQL ServerAdvanced Index, Partitioning and Compression Strategies for SQL Server
Advanced Index, Partitioning and Compression Strategies for SQL Server
 
Power point on linux commands,appache,php,mysql,html,css,web 2.0
Power point on linux commands,appache,php,mysql,html,css,web 2.0Power point on linux commands,appache,php,mysql,html,css,web 2.0
Power point on linux commands,appache,php,mysql,html,css,web 2.0
 
Linux presentation
Linux presentationLinux presentation
Linux presentation
 
Performance Tuning Using oratop
Performance Tuning Using oratop Performance Tuning Using oratop
Performance Tuning Using oratop
 
XFILES, The APEX 4 version - The truth is in there
XFILES, The APEX 4 version - The truth is in thereXFILES, The APEX 4 version - The truth is in there
XFILES, The APEX 4 version - The truth is in there
 
Best Implementation Practices with BI Publisher
Best Implementation Practices with BI PublisherBest Implementation Practices with BI Publisher
Best Implementation Practices with BI Publisher
 
Oracle DBA interview_questions
Oracle DBA interview_questionsOracle DBA interview_questions
Oracle DBA interview_questions
 
SPARQLing Services
SPARQLing ServicesSPARQLing Services
SPARQLing Services
 
R12 d49656 gc10-apps dba 01
R12 d49656 gc10-apps dba 01R12 d49656 gc10-apps dba 01
R12 d49656 gc10-apps dba 01
 
Google cloud Dataflow & Apache Flink
Google cloud Dataflow & Apache FlinkGoogle cloud Dataflow & Apache Flink
Google cloud Dataflow & Apache Flink
 
What's New in Oracle SQL Developer for 2018
What's New in Oracle SQL Developer for 2018What's New in Oracle SQL Developer for 2018
What's New in Oracle SQL Developer for 2018
 
03 Biz Talk 2010 Hands On Day Adapter Pack
03 Biz Talk 2010 Hands On Day  Adapter Pack03 Biz Talk 2010 Hands On Day  Adapter Pack
03 Biz Talk 2010 Hands On Day Adapter Pack
 
Erik_van_Roon.pdf
Erik_van_Roon.pdfErik_van_Roon.pdf
Erik_van_Roon.pdf
 
SQLcl overview - A new Command Line Interface for Oracle Database
SQLcl overview - A new Command Line Interface for Oracle DatabaseSQLcl overview - A new Command Line Interface for Oracle Database
SQLcl overview - A new Command Line Interface for Oracle Database
 

Último

A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?Igalia
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 

Último (20)

A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 

Batchhow

  • 1. Cross-platform Batch Reports Waldo Library Western Michigan University
  • 2.
  • 3. Bonus!!!!! Source code for BLOB access and a table+column schema listing included in the handout.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10. Why We Did This
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16. Cross-Platform Batch Reports Overview of Process (Handout page 4) Unix
  • 17. cron Cross-Platform Batch Reports Overview of Process Unix
  • 18. cron Cross-Platform Batch Reports Overview of Process Unix Time/date parameters in one crontab file
  • 19. cron Cross-Platform Batch Reports Overview of Process Unix Time/date parameters in one crontab file script
  • 20. cron Cross-Platform Batch Reports Overview of Process Unix Time/date parameters in one crontab file script SQL, PL/SQL, Perl
  • 21. cron Cross-Platform Batch Reports Overview of Process Unix Time/date parameters in one crontab file script SQL, PL/SQL, Perl report One cron process running
  • 22. cron Cross-Platform Batch Reports Overview of Process Unix Time/date parameters in one crontab file script SQL, PL/SQL, Perl report One cron process running Batch PC
  • 23. cron Cross-Platform Batch Reports Overview of Process Unix Time/date parameters in one crontab file script SQL, PL/SQL, Perl report One cron process running Batch PC WinBatch
  • 24. cron Cross-Platform Batch Reports Overview of Process Unix Time/date parameters in one crontab file script SQL, PL/SQL, Perl report One cron process running Batch PC WinBatch script or .exe
  • 25. cron Cross-Platform Batch Reports Overview of Process Unix Time/date parameters in one crontab file script SQL, PL/SQL, Perl report One cron process running Batch PC WinBatch script or .exe use ftp to get the report pull it into Word format the report
  • 26. cron Cross-Platform Batch Reports Overview of Process Unix Time/date parameters in one crontab file script SQL, PL/SQL, Perl report One cron process running Batch PC WinBatch script or .exe use ftp to get the report pull it into Word format the report time/date parameters stored in each script
  • 27. cron Cross-Platform Batch Reports Overview of Process Unix Time/date parameters in one crontab file script SQL, PL/SQL, Perl report One cron process running Batch PC WinBatch script or .exe use ftp to get the report pull it into Word format the report time/date parameters stored in each script copy report to destination on LAN
  • 28. cron Cross-Platform Batch Reports Overview of Process Unix Time/date parameters in one crontab file script SQL, PL/SQL, Perl report One cron process running Batch PC WinBatch script or .exe use ftp to get the report pull it into Word format the report time/date parameters stored in each script copy report to destination on LAN print report to location
  • 29. cron Cross-Platform Batch Reports Overview of Process Unix Time/date parameters in one crontab file script SQL, PL/SQL, Perl report One cron process running Batch PC WinBatch script or .exe use ftp to get the report pull it into Word format the report time/date parameters stored in each script copy report to destination on LAN print report to location Library Administration Library Systems Media Resources Mono Acquisitions Serials
  • 30.
  • 31.
  • 32.
  • 33.
  • 34.
  • 35.
  • 36.
  • 37. When to Choose SQL, PL/SQL, or Perl identify what the report generates
  • 38. When to Choose SQL, PL/SQL, or Perl include Word format settings
  • 39. When to Choose SQL, PL/SQL, or Perl define output columns
  • 40. When to Choose SQL, PL/SQL, or Perl these two columns are for sorting only
  • 41. When to Choose SQL, PL/SQL, or Perl The call to FISCYRSETUP creates a temporary table, for the duration of this report, that contains the name and start date for the current and previous year. This is used in a number of reports to automatically reference fiscal year data.
  • 42. When to Choose SQL, PL/SQL, or Perl Set up title and some report parameters. Want output in a file.
  • 43. When to Choose SQL, PL/SQL, or Perl Run the query to create the report. Clean up when done.
  • 44.
  • 45.
  • 46.
  • 47.
  • 48.
  • 49.
  • 50.
  • 51.
  • 52.
  • 53. When to Choose SQL, PL/SQL, or Perl start off with some comments… output limitation…
  • 54. When to Choose SQL, PL/SQL, or Perl important reminder
  • 55. When to Choose SQL, PL/SQL, or Perl note the order by
  • 56. When to Choose SQL, PL/SQL, or Perl variables must be declared
  • 57. When to Choose SQL, PL/SQL, or Perl fields from the table
  • 58. When to Choose SQL, PL/SQL, or Perl you have control of looping through results
  • 59. When to Choose SQL, PL/SQL, or Perl What is a BLOB ? It stands for B inary L arge Ob ject. More simply put, it is a collection of bytes that can contain both printable and unprintable characters. This is how MARC data is stored under Voyager.
  • 60. When to Choose SQL, PL/SQL, or Perl The BLOB can be stored in one or more sections: BibID: 57 Seqnum: 1 Recseg: BLOB Part A BibID: 57 Seqnum: 2 Recseg: BLOB Part B
  • 61. When to Choose SQL, PL/SQL, or Perl The BLOB can be stored in one or more sections: BibID: 57 Seqnum: 1 Recseg: BLOB Part A BibID: 57 Seqnum: 2 Recseg: BLOB Part B The BLOB is put together in reverse order, because we can depend on Seqnum #1 being the last one that way.
  • 62. When to Choose SQL, PL/SQL, or Perl get data from the header, then get each tag’s data as we loop through the directory structure
  • 63. When to Choose SQL, PL/SQL, or Perl do some formatting...
  • 64. When to Choose SQL, PL/SQL, or Perl print formatted tag data… finish looping and end the program
  • 65. When to Choose SQL, PL/SQL, or Perl Without the closing “ / ”, your PL/SQL code will NOT run!
  • 66.
  • 67.
  • 68.
  • 69.
  • 70.
  • 71.
  • 72. When to Choose SQL, PL/SQL, or Perl start off with some comments
  • 73. When to Choose SQL, PL/SQL, or Perl You’ll need to have DBI and DBD for Oracle set up on your Unix box.
  • 74. When to Choose SQL, PL/SQL, or Perl set up some variables
  • 75. When to Choose SQL, PL/SQL, or Perl need to be able to talk to the database
  • 76. When to Choose SQL, PL/SQL, or Perl Get all the table names. In my experience, I was unable to use the reserved word “ distinct ” in the query. Thus the extract code to dedupe the results.
  • 77. When to Choose SQL, PL/SQL, or Perl need to know how many columns per table to aid in output formatting
  • 78. When to Choose SQL, PL/SQL, or Perl set up and initiate output
  • 79. When to Choose SQL, PL/SQL, or Perl get the report’s data
  • 80. When to Choose SQL, PL/SQL, or Perl keep track of column names ending in “_id”
  • 81. When to Choose SQL, PL/SQL, or Perl go through array, output columns ending in “_id” first
  • 82. When to Choose SQL, PL/SQL, or Perl go through array, output columns ending in “_id” first Remember counting columns per table? Here we advance to the next page, if the table doesn’t fit on the current page.
  • 83. When to Choose SQL, PL/SQL, or Perl then repeat this process for columns that do not end in “_id”
  • 84. When to Choose SQL, PL/SQL, or Perl if not enough room for smallest possible table, go to next page
  • 85. When to Choose SQL, PL/SQL, or Perl clean up when done
  • 87.
  • 88.
  • 89.
  • 90.
  • 91.
  • 92.
  • 93.
  • 94.
  • 95.
  • 96.
  • 97.
  • 98.
  • 99.
  • 100.
  • 101.
  • 103. cron Cross-Platform Batch Reports Overview of Process Unix Time/date parameters in one crontab file script SQL, PL/SQL, Perl report One cron process running Batch PC WinBatch script or .exe use ftp to get the report pull it into Word format the report time/date parameters stored in each script copy report to destination on LAN print report to location Library Administration Library Systems Media Resources Mono Acquisitions Serials
  • 104.
  • 105. The Batch PC start off with comments, including instructions on when the script can be started safely to avoid duplication of report printing
  • 106. The Batch PC set up paths and filenames on the Unix box and the batch PC, get the database password from a file
  • 107. The Batch PC determine if it’s time for the script to run
  • 108. The Batch PC Encapsulating the ftp process in a WinBatch script file works well. Use the DOS ftp program supplied with Windows.
  • 109. The Batch PC wait a minute for ftp to complete
  • 110. The Batch PC make sure file exists, then launch Word with it
  • 111. The Batch PC send formatting keystrokes to Word
  • 112. The Batch PC Get the printer pull-down menu, select the desired printer, and print. Wait a minute for printing to complete before closing Word.
  • 113. The Batch PC The rest of the code closes loops and makes the script wait until the next run time occurs.
  • 114. Example from another script illustrating how to trigger on day of the week. This script runs early in the morning, six days a week.
  • 115.
  • 116.
  • 117.
  • 118.
  • 119. Thanks for listening Questions? Email: zimmer@wmich.edu Phone: 616.387.3885
  • 120. Better Call Number Sorting Roll your own!
  • 122. We can achieve better results… this is now our input correctly sorted
  • 123.
  • 124.
  • 125.
  • 126.
  • 127.
  • 128.
  • 129. Thanks for listening. Contact me if you want to receive the CallNumber Perl module. Questions? Email: zimmer@wmich.edu Phone: 616.387.3885