CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Sun, 03 Aug 2025 15:50:40 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20081015010246
location: https://web.archive.org/web/20081015010246/https://examples.oreilly.com/unixoracledbapr/
server-timing: captures_list;dur=0.497781, exclusion.robots;dur=0.022956, exclusion.robots.policy;dur=0.014229, esindex;dur=0.010648, cdx.remote;dur=97.238443, LoadShardBlock;dur=364.317187, PetaboxLoader3.resolve;dur=176.934308, PetaboxLoader3.datanode;dur=125.328097
x-app-server: wwwb-app201
x-ts: 302
x-tr: 497
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=1
set-cookie: wb-p-SERVER=wwwb-app201; path=/
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 200
server: nginx
date: Sun, 03 Aug 2025 15:50:44 GMT
content-type: text/html
x-archive-orig-date: Wed, 15 Oct 2008 01:02:33 GMT
x-archive-orig-server: Apache
x-archive-orig-last-modified: Mon, 31 Mar 2008 17:37:56 GMT
x-archive-orig-etag: "59987b-1388-1cb44500"
x-archive-orig-accept-ranges: bytes
x-archive-orig-content-length: 5000
x-archive-orig-connection: close
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
memento-datetime: Wed, 15 Oct 2008 01:02:46 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Thu, 23 Aug 2001 03:59:09 GMT", ; rel="prev memento"; datetime="Sun, 14 Sep 2008 14:37:42 GMT", ; rel="memento"; datetime="Wed, 15 Oct 2008 01:02:46 GMT", ; rel="next memento"; datetime="Sat, 20 Jun 2015 03:27:07 GMT", ; rel="last memento"; datetime="Mon, 22 Jan 2024 07:42:48 GMT"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: 51_6_20081014234711_crawl100-c/51_6_20081015003532_crawl100.arc.gz
server-timing: captures_list;dur=0.697751, exclusion.robots;dur=0.035079, exclusion.robots.policy;dur=0.022246, esindex;dur=0.012951, cdx.remote;dur=2855.603699, LoadShardBlock;dur=488.064415, PetaboxLoader3.datanode;dur=145.840921, PetaboxLoader3.resolve;dur=456.594856, load_resource;dur=264.745186
x-app-server: wwwb-app201
x-ts: 200
x-tr: 3649
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
content-encoding: gzip
Unix for Oracle DBAs Pocket Reference -- Examples
Unix for Oracle DBAs Pocket Reference
oreilly.com Home | O'Reilly Bookstores | How to Order | O'Reilly Contacts
International | About O'Reilly | Affiliated Companies | Privacy Policy

Unix for Oracle DBAs Pocket Reference
Examples
[ Back to: Unix for Oracle DBAs Pocket Reference ]
This page contains links to many of the scripts shown in Unix for Oracle DBAs Pocket Reference. The scripts are organized by major sections as they appear in the book. Only scripts too long to retype are included on this page. The many one and two line commands shown in the book are not reproduced here.
You may download a zip file containing all of the scripts listed on this page. Or you may view any of the scripts individually by following the links provided below.
Unix Server Environment
- dot_profile: Contains commands that the author
commonly adds
to the .profile files of Oracle users.
- run_sql.ksh: Shows how to place a SQL*Plus script
in a Unix shell wrapper.
- check_parms.ksh: Shows how to ensure that
proper parameters are passed to a Unix script.
- val_sid.ksh: Demonstrates a method for validating
the Oracle SID passed to a Unix shell script.
- rsh_server_loop.ksh: Shows how to loop
through .rhosts and use rsh to execute a set of commands on all your Unix
servers.
- rsh_sqlplus_loop.ksh: Similar to
rsh_server_loop.ksh, but also executes a SQL*Plus script on each Oracle
database on each server visited.
- chg_all.sh: Uses sed to do a search and replace on all files in a directory.
Server Monitoring
- cr_vmstat_tab.sql: Creates the table used
by get_vmstat.ksh.
- get_vmstat.ksh: Collects statistics at regular
intervals using vmstat, and stores them in the mon_vmstat table.
- mon_vmstat_report.sql: SQL*Plus script
to generate a report of the statistics contained in the mon_vmstat table.
- cr_iostat_tab.sql: Creates the tables used
by get_iostat.ksh.
- get_iostat.ksh: Collects I/O statistics using iostat, and stores them in the database tables created earlier using cr_iostat_tab.sql.
File Management
- del_old_files.ksh: Deletes audit and trace files that are more than 14 days old.
Disk Management
- dialect_changes.ksh: Demonstrates one way of encapsulating Unix dialect differences into a script.
Miscellaneous Shell Scripts
- soft_link.ksh: Creates a soft link to /etc for
every tnsnames.ora file on your server.
- tar_backup.ksh: Uses the tar utility to backup
database files to tape.
- copy_tnsnames.ksh: Uses rsh to copy a
tnsnames.ora file out to all your Oracle servers.
- dead_listener.ksh: Checks to see if the
Net8 listener is running, and then restarts the listener if necessary.
- db_run_check.ksh: A script snippet that you
can use to cause a script to exit when your database is not running.
- no_connect_alert.ksh: Tests to see if a database is accepting connections, and emails you an alert if it is not.
[ Return to Unix for Oracle DBAs Pocket Reference ]
oreilly.com Home | O'Reilly Bookstores | How to Order | O'Reilly Contacts
International | About O'Reilly | Affiliated Companies | Privacy Policy
© 2001, O'Reilly & Associates, Inc.