Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

BOX - beginning of expedition
EOX - end of expedition

About BOX

The incoming developerprogrammer(s) is(are) always responsible for all BOX activities. And for some of the EOX activities. 

Ship-based activities are described. In many cases pre-expedition preparation is required.

For a repository of shipboard developer programmer resources see the Developer space on shipboard Confluence:  http://confluence.ship.iodp.tamu.edu:8090/display/RAADND/Random+Access%3A+Application+Developer+Notes+and+Documentation+Home.  

Checklist / Overview

  1. Make sure you are connected in your new home.
  2. Relieve your counterpart. Take charge.
  3. Courier duties: transfer and deliver any IT content in your possession.
  4. Apply database and web-service updates.
  5. Reset database defaults for expedition and projects.
  6. Create user accounts, manage application roles & privileges.
  7. Review what database accounts will be expiring soon. Let those folks know--set expectations.
  8. Clean & preen the database. Includes summary data cache in OVERVIEW application.
  9. Check that database triggers are enabled.
  10. Programs to run.
    1. Remind the Publications specialist to start the Virtual Photo Table compositer.
    2. Start the IRIS-Collector.exe on the Ops office engineering stationiRIS Collector utility on the physical host in the MCS office. Or otherwise confirm it is running.
    3. Enquire with the Ops Manager and the Drillers that their iRIS interfaces are up and running.
  11. Pull the current list of core catcher types LIST_ENTRY where LIST='CC_TYPE'. Chat with the Core Techs. - Do we still need this. Can we retire this?
  12. Check with the DESC tech to see if DESC value list entries need to be made available to the SEM uploader. Do we still need this. Can we retire this?
  13. Replace GEODCAT with the latest definitions from shore (RTLIMS.GEODCAT, or Blum source spreadsheet).LIMSHQ.GEODCAT--under normal circumstances this is the primary catalog).
  14. Honor moratorium. Assist other technical staff with this expedition preparation.
  15. Expedition readiness. Assist other technical staff with expedition readiness concerns.

Reset your credentials for your DBA account on SHIPTEST. See if your credentials will expire before you return. The conventional name is now yourname_dba--as a reminder that you are wearing that hat.

1. Make sure you are connected

Your duties require information technology connectivity. A lot of change happens in our environment between expeditions. Verify your tools and access:

  • Laptop connectivity to the network? Internet?
  • Email account on ship active?
  • Able to access file systems? Printers?
  • Can you get to the password safe? The database?
  • Can you get to your account on the BUILD box and DEV workstation? The dev account (for as long as we continue to do that).
  • Can you get to Nexus and Subversion?
  • Is the Subversion sync process still running? - BUILD (c:/srv/rsync/rsyncd.log)
  • Are your software distribution credentials still functional? Development, Test, Production?
  • Are your database access credentials still functional? Development, Test, Production? Can you reach shore too (in case required)?
  • Can you access your Confluence accounts?

2. Relieve your counterpart

Read the tech report. Exchange information. What's changed? What's broke? Is there anything outstanding that should be taken care of for laboratory readiness or shipboard operations for the new expedition? Swap war stories.

3. Courier duties

Deliver all transported media and equipment to their responsible parties. Stage any software-related components and tools in the appropriate locations. Make sure our own content survived the trip by connecting the media.

Examples

  • If shore sends out desktop/server software distributions with you, ensure the media is turned over to the MCS.
  • If you have Moisture and Density container information, make sure it is staged in a location you can find
  • it
  • when you are ready to process those containers.
  • If the science party requested legacy data to be available for the on-coming expedition, you should have that data and a plan for making it available.
  • If you have software updates for development or laboratory support, stage them under here: \\
  • CLEVELAND
  • NOVARUPTA\VOL3\
  • AD
  • DML\
  • dml

4. Apply database and web-service updates

Perform any database upgrades to implement changes from shore. Do this on the test system FIRST. This will confirm the scripts are good before you work on the ship databases.

...

Thoroughly test all upgrades and changes.

5. Reset database defaults for expedition and projects

Use SQLDeveloper SQL Developer to make these database changes for the newly started expedition. 1. As soon as possible. Technical staff are running instrument and lab readiness procedures on the first day on-board. Laboratory standards (calibrations, checks, controls, blanks, etc.) do not follow a geophysical hierarchy so depend on some of these settings to be associated with the current expedition.

  1. Set the default expedition for LIMS.

    Code Block
    update lims.lims_constants set constant_value='&currentExp' where name='EXPEDITION';

...


  1. If legacy data has been loaded run the appropriate compute procedure to generate display content for the OVERVIEW report.

...



  1. In

...

  1. SQL Developer browse

...

  1. LIMS.LIST_ENTRY

...

  1. where

...

  1. LIST='MENU'.

...

  1. Edit

...

  1. the

...

  1. record

...

  1. with

...

  1. NAME

...

  1. set

...

  1. to

...

  1. the

...

  1. previous

...

  1. expedition.

...

  1. Change

...

  1. the

...

  1. expedition

...

  1. name

...

  1. in

...

  1. the

...

  1. NAME

...

  1. column

...

  1. from

...

  1. the

...

  1. previous

...

  1. expedition

...

  1. to

...

  1. the

...

  1. current

...

  1. expedition.

...

  1. Change

...

  1. all

...

  1. the

...

  1. instances

...

  1. in

...

  1. the

...

  1. VALUE

...

  1. column

...

  1. from

...

  1. the

...

  1. previous

...

  1. expedition

...

  1. to

...

  1. the

...

  1. current

...

  1. expedition.

...


  1. Add a new project list entry for PROJECT.

    Code Block
    In 

...

  1. SQL Developer browse LIMS.LIST_ENTRY where LIST='PROJECT'.
    Edit the existing record to reflect the current expedition or add a new record.


  2. Auther privileges

...

  1. - requested by the LIME team

...

  1. , particularly
    • All scientist accounts are removed (just like with Oracle).
    • New scientist accounts are added.
    • No changes will be made to "tech" accounts.
    • New scientist accounts will have only the generic Scientist Role assigned.

...


    • Any special roles needed are handled by Curator.

...



  1. Are there any new personnel

...

  1. ?
    • Do they have the necessary lab application access privileges?
      Curators manage Auther roles and privileges. Give a hand as-needed to new Curators

...

    • .
    • Check-in with the individual(s), MCS, ALOs to ensure email, storage, Confluence resources have been allocated and are accessible.
      If there's an on-boarding check list, we should follow it.
    • Ensure appropriate GEODESC operator privileges are applied.

  1. Changes in

...

  1. application authorization
    • SampleMaster
      • If a new ALO or Curator is participating, ensure they have the SampleMaster curatorial role.
      • If a new Driller is participating, ensure they have the SampleMaster driller role.
    • GEODESC
      • Participant roles for GEODESC users are managed by the GEODESC Admin.
      • If a new GEODESC Admin is participating, ensure they are setup with the necessary permissions and training.
    • Desclogik

...

    • - This application is "not quite dead yet". The infrastructure will be maintained until the Thin Section Report Writer is brought current and confirmed to not need to be fed by any Desclogik worksheet constructions.
      • Participant roles for Desclogik users are managed by the Desclogik Admin.
      • If a new Desclogik Admin is participating, ensure they are setup with the necessary permissions and training.
    • Catwalk
      • If a new ALO or Curator is participating, ensure they have the CURATOR role. This

...

      • ensures access to the Template Manager and Settings.
    • Other accounts

...

    • Crossover with off-going developers to verify if any significant access changes were made. See the development password safe for credentials . If you make any credential change relevant to development work, please update the safe to reflect the change.

6.

...

Manage laboratory application accounts

See Subversion for the last created versions of the script: https://build.ship.iodp.tamu.edu/svn/wapps/Database/DbScript/participants

Best source of user names: the expedition science party email list maintained by the staff scientist EPM (expedition project manager) for on-going project communications. The MCS will have a list of the accounts the created and since we use the same names get their list when they are done.Obtain the list from the MCS as they routinely receive it before we do. The expedition participant list may also be retrieved from the Crew N Cruise application. Permission and authorization required.

  • Create accounts for new participants - participants_add.sql
  • Delete the accounts for those who are leaving or have left the ship.

...

7. Review Oracle accounts for expiring users

Review Oracle for accounts that are locked or pending expiration.

Code Block
select username, lock_date, expiry_date, password_change_date from dba_users where expiry_date <= sysdate + interval '3' month;

Send notifications to those whose accounts expire soon. Assist those whose accounts are locked.

8. Clean the database

Previous Expedition. Maybe play core data (999)--ask Remove previous expedition content. Maybe remove 999 (play core content). Ask Technical Staff and ALOs first.

CONFIRM WITH THE OUTGOING DEVELOPER THAT WE HAVE A GOOD COPY OF THE PREVIOUS EXPEDITION EXPORT. Review the EOX export (and spot-check import) logs.
CONFIRM THAT THE MCS HAVE A GOOD COPY OF THE EXPEDITION EXPORT, ASMAN FILES (OLYMPUS), DATA1 content, and CONFLUENCE spaces on TAPE.

DO NOT PROCEED UNTIL CONFIRMATION RECEIVED.

OVERVIEW. Review menus & and content: remove items no longer carried on ship.
GEODESC. Remove prior project schema and associated authorizations, roles, permissions.
LIMS. Remove the one (or more) expedition(s) content not pertinent to current expedition work.
OPS. Remove IRIS related data from the previous expedition--on the order of 125 GiB for 65 days; ~5 million records.

Prior expedition content is to be removed to enforce moratorium. Use this reference until you are comfortable with detailed reference to go through the process.

...

9. Check that database triggers are enabled

This step is dependent on the completion of (7). Via SQLDeveloperSQL Developer, log into the LIMS account. Ensure that no triggers, functions, procedures, views are flagged by a red 'X' (indicates invalid or disabled content).

...

A pattern to enable all triggers for a table. Must have appropriate privilege for the target tables.

Code Block
alter table lims.sample enable all triggers;

This pattern is applicable to SAMPLE, TEST, RESULT, GEOD_DATA, etc.

If invalid triggers exist, track down why. Look for the Oracle-specific errors via SQL Developer. Give another DBA a holler.

10. Programs to Run

Start the Virtual Photo Generator

If not already present, help set it up on the Publications Specialist host. This should be the ONLY location that runs it.

Start the

...

iRIS Collector

If not already present, help set it up on the Ops Engineer station. the dedicated iRIS Collector physical host. The physical host resides in the MCS office at the far back corner of the desk.

  • This should be the ONLY location that runs it.

...

  • Set the credential store for information on host access--device "iRIS Collector".

Check-in with the Ops Manager and Drillers to ensure they are able to access their respective user interfaces.

11. Core Catcher Types

Chat with the Core Technicians--are there any changes to the list of Core Catcher Types LIST_ENTRY where LIST='CC_TYPE'?
The goal is to keep the list short. Most often used items should be pushed to the top by use of the ORDER_NUMBER field.
Keep core entry simple. Drill-floor safety and core recovery take precedent over this small thing.

...

12. Check with the

...

GEODESC tech to see if DESC value list entries need to be made available to the SEM uploader.

DESCLOGIK TOOLS ARE OBSOLETE. REVIEW FOR CHANGES.

The product LIVE has integrations for presenting some descriptive information. However, that entails an update to service code so that the correct templates and columns are read. This is presently an Ad Hoc process, not something the GEODESC specialist or participants can configure.

This step involves updating the DESCINFO2.X_SIEM_HERARCHY table.  If this is needed:

  1. In SQL Developer, look at the table, sorted by HIER_KEY.  At the bottom, you might find one or more expedition-specific entries (they'll have an expedition number in their names).  Delete these.
  2. This documentation describes the process of adding new values for your expedition:  SEM uploader X_SEM_HIERARCHY table.
  3. If the above documentation is confusing, here are some notes:
    1. The data in this table represents a hierarchy, and the PARENT value for each record links back to the HIER_KEY of that item's parent.   
    2. For example, "igneous rock names", "sediment names" and "metamorphic rock names" (HIER_KEY = 80, 90, 100) all link back to "LITHOLOGY" (HIER_KEY = 10).  On expedition 396, we added three entries, with each one linking back to one of the three lithology items just mentioned, so their PARENT values were 80, 90, 100.
    3. If you've done this properly, you should be able to run the SEM uploader and (after selecting an image, which can be anything), see the name(s) you added when you pick the parents (e.g. Category = LITHOLOGY → General subcategory = igneous rock names → Exp. specific subcategory = [your entry or entries]).

...

13. Replace GEODESC catalog and projects with the latest definitions from shore

GEODCAT

...

Export a copy from LIMSHQ before the expedition. Bring it along (order of megabytes).

Code Block
-- LIMSHQ as your DBA account, from within SQL
dp export -directory dmpdir -dumpfile to###-geodcat.dmpdp -logfile to###-geodcat.log -schemas geodcat
-- pick up the output file from s1:/backup/export/

-- To restore on ship
dp export -directory dmpdir -dumpfile geodcat-yyyymmdd.dmpdp -logfile geodcat-yyyymmdd.log -schemas geodcat         -- Backup up the current state
drop user geodcat cascade;                                                                                          -- Delete the current schema
dp import -directory dmpdir -dumpfile to###-geodcat.dmpdp -logfile to###-geodcat-import.log -schemas geodcat        -- Restore from copy transported

GEODP###

If prior work was done on shore, bring a copy out.

Code Block
-- LIMSHQ as your DBA account, from within SQL
dp export -directory dmpdir -dumpfile to###-geodp.dmpdp -logfile to###-geodp.log -schemas geodp###

-- To restore on ship
drop user geodp### cascade;                                                                          -- Delete the current schema
dp import -directory dmpdir -dumpfile to###-geodp.dmpdp -logfile to###-geodp-import.log -schemas geodp###        -- Restore from copy transported


If no prior work exists for the GEODESC project, create a new one per the scripts at Create New GEODESC Project (GEODPnnn) Schema – Ship

  • Be sure to catalog the new schema password in the shipboard safe.
  • Spotcheck newly created or imported schemas to confirm operability and access to existing data: Do templates load? Can new samples be added to DataCapture working sets?

2/13/2024: Removed constraints  from the end of the drop user geodcat  command. Was causing the script to fail. Left it on for the project schema because I did not have to run that command. - df Incorporated above for project too.

14. Honor moratorium.

Assist other technical staff with expedition preparation.

Typically this involves ensuring prior expedition content is removed from lab workstation and instrument host local hard drives.

15. Expedition readiness

Assist other technical staff with expedition readiness concerns.

If something worked the previous expedition, it is expected to work for you. Port call is the time to re-check / re-test. Do what you can early. Being on-site and scrambling isn't worth it when it can be readily and simply avoided.