1 / 50

Aleph 常用 Oracle 表键值及批处理

Aleph 常用 Oracle 表键值及批处理. 周磊 以色列艾利贝斯有限公司 北京代表处 2014 年 6 月. 提纲. 常用 Oracle 表键值 记录结果集的转换与链接 小结. 常用数据表键值. 书目记录结果集的获取与批处理. 书目记录 键值. 书目记录号 9 位数字编号 每个库都是从 1 号开始递增 书目记录号结果文件 9 位书目记录号 + 库代码,如: 000111111WHU01 000222222WHU01 000333333WHU01 000444444WHU01 通常结果文件放在 $ alephe_scratch 目录下.

Download Presentation

Aleph 常用 Oracle 表键值及批处理

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Aleph常用Oracle表键值及批处理 周磊 以色列艾利贝斯有限公司北京代表处 2014年6月

  2. 提纲 • 常用Oracle表键值 • 记录结果集的转换与链接 • 小结

  3. 常用数据表键值

  4. 书目记录结果集的获取与批处理

  5. 书目记录键值 • 书目记录号 • 9位数字编号 • 每个库都是从1号开始递增 • 书目记录号结果文件 • 9位书目记录号+库代码,如: 000111111WHU01 000222222WHU01 000333333WHU01 000444444WHU01 • 通常结果文件放在 $alephe_scratch目录下

  6. 如何获取书目结果集

  7. 查看书目结果集 • more $alephe_scratch/set001 000191481WHU01 000192508WHU01 000107697WHU01 000107943WHU01 000015309WHU01 000109442WHU01 000204759WHU01 000231926WHU01 ……

  8. 其他检索方式 • p-ret-01通用检索表单 • p-ret-03用CCL检索 • p-ret-04根据日期检索 • p-ret-10检索结果集组配 • 二次检索与集合处理

  9. 通用检索表单(p_ret_01)

  10. 二次检索与集合处理

  11. 通过数据库获取-Z13/Z13U

  12. 通过数据库表获取-V13

  13. 通过数据库表获取书目键值样例 • 根据编目修改日期 select z13_rec_key from z13 where z13_update_date between ‘20140101’ and ‘20140531’; • 根据原编/套录提取书目记录 select z13_rec_key from v13 where z13_sid_type=‘GUI’ and z13_sid_date between ‘20140101’ and ‘20140531’;

  14. 通过数据库表获取书目结果集 • 根据编目修改日期 select z13_rec_key||’WHU01’ from z13 where z13_update_date between ‘20140101’ and ‘20140531’; • 根据原编/套录提取书目记录 select z13_bib_rec_key||z13_bib_library from v13 where z13_sid_type=‘GUI’ and z13_sid_date between ‘20140101’ and ‘20140531’;

  15. 结果集文件能做什么? • 装载显示、保存邮寄 • p-print-03 输出marc或aleph顺序文件 • p-print-01 输出定制格式 • p-print-08 输出表格式 • p-manage-25 记录检查 • p-manage-37 整理记录 • p-manage-40 重建索引 • p-manage-21 全局更新 • p-manage-33 批删除 • ......

  16. 检索结果集打印发送

  17. p-print-03 导出记录

  18. p-manage-33 批删除

  19. p-manage-33删除 • 在库的check_doc中定义删除前的检查 BATCH-DELETE check_doc_delete_lkr BATCH-DELETE check_doc_delete_item_2 BATCH-DELETE check_doc_delete_copies BATCH-DELETE check_doc_delete_order BATCH-DELETE check_doc_delete_loan BATCH-DELETE check_doc_delete_hold • 其中check_doc_delete_item_2是检查如果该书目下挂有已登到单册的话,书目不让删除。已登到单册是指单册处理状态不是OR,CA,CL的单册。

  20. p-manage-37 批修改书目

  21. 单册记录结果集的获取与批处理

  22. 单册记录键值 • 单册记录REC_KEY • 9位管理记录号 • 6位单册顺序号(步长为10) • 单册记录号结果文件 • 15位的REC_KEY

  23. 获取单册记录结果集-Z30

  24. 获取单册记录结果集(p_ret_adm_01)

  25. 获取单册记录结果集 • 根据分馆、馆藏地、到达日期提取单册信息 select z30_rec_key from z30 where z30_sub_library=‘WL30’ and z30_item_status=’11’ and z30_arrival_date between ‘20140501’ and ‘20140531’;

  26. 针对单册结果集的批处理-批修改

  27. 针对单册结果集的批处理-批删除

  28. 订单记录结果集的获取与批处理

  29. 订单记录键值 • 订单记录REC_KEY • 9位管理记录号 • 5位顺序号 • 订单记录号结果文件 • 14位的REC_KEY

  30. 获取订单记录结果集-Z68

  31. 获取订单记录结果集(p_acq_02_01) 可检索字段 管理记录号 订单号 订单号2 订单号3 订购组 订单打开日期 订单更新日期 订单日期 订单类型 订单状态 发票状态 材料类型 分馆 书商代码 估计到达日期 可检索字段 出货日期 到达日期 到达状态 发票类型 发票号 发票状态 订购单册数 单册价格 数量备注 订单本地价格 订单最终价格 发票行项目总价 付款日期 预算代码 原始预支

  32. 定制专用的订单检索服务

  33. 获取订单结果集-APSM打印正式订购报表

  34. 获取单册记录结果集 • 按订单批次号范围 select z68_rec_key from z68 where z68_order_number_1 between 'upper(&&1)' and 'upper(&&2)'; • 按书商检索 select z68_rec_key from z68 where z68_vendor_code like 'upper(&&1)%'; • 按订购日期范围检索 select z68_rec_key from z68 where z68_order_date between '&&1' and '&&2'; • 按附加订单号2范围 select z68_rec_key from z68 where z68_order_number_2 between 'upper(&&1)' and 'upper(&&2)'; • 按订单状态检索 select z68_rec_key from z68 where z68_order_status='&&1';

  35. 获取订单记录结果集 • 按订购分馆 select z68_rec_key from z68 where z68_sub_library = '&&1'; • 按采访方式 select z68_rec_key from z68 where z68_method_of_aquisition = '&&1'; • 按订购组别 select z68_rec_key from z68 where z68_order_group = '&&1'; • 按订购人检索 select substr(z71_rec_key,2,14) from z71 where z71_user_name = 'upper(&&1)' and z71_rec_key like 'O%' and z71_type='03'; • 按预算检索 select z601_rec_key_3 from z601 where z601_rec_key like '&&1'; 注:&&1需转成大写,且补齐50位。

  36. 针对订单结果集的批处理-打印清单

  37. 读者记录结果集的获取与批处理

  38. 读者记录键值 • 读者记录REC_KEY • 12位编号

  39. 读者记录相关表 • 读者全局信息Z303 • 读者本地信息Z305 • 读者地址信息Z304 • 读者ID信息Z308

  40. 读者记录结果集获取 • 按ID号范围 select distinct z308_id from z308 where substr(z308_rec_key,3,20) between 'upper(&&1)' and 'upper(&&2)'; • 按单位检索 select distinct substr(z304_rec_key,1,12) from z304 where z304_address like '%&&1%'; • 按有效期范围检索 select distinct substr(z305_rec_key,1,12) from z305 where z305_expiry_date between '&&1' and '&&2'; • 按注册日期范围检索 select distinct substr(z305_rec_key,1,12) from z305 where z305_registration_date between '&&1' and '&&2';

  41. 读者记录结果集获取 • 按读者状态检索 select distinct substr(z305_rec_key,1,12) from z305 where z305_bor_status='&&1'; • 按读者类型检索 select distinct substr(z305_rec_key,1,12) from z305 where z305_bor_type = '&&1'; • 按全局备注检索 select distinct z303_rec_key from z303 where z303_field_1 like '%&&1%' or z303_field_2 like '%&&1%' or z303_field_3 like '%&&1%';

  42. 记录键值转换

  43. 记录键值转换 - p_manage_70 • ADM-TO-ITEM • ADM-TO-ORDER • BARCODE-TO-ITEM • BIB-TO-ADM • BIB-TO-ITEM • BIB-TO-ORDER • ITEM-TO-BIB • ORDER-TO-BIB • BIB-TO-HOL • ITEM-TO-HOL • BARCODE-TO-HOL • HOL-TO-BIB • HOL-TO-ITEM • HOL-TO-BARCODE • BARCODE-TO-BIB • BIB-TO-BARCODE • ADM-TO-BIB • 不同结果集之间进行转换 • 转换例程有:

  44. 记录键值转换 - p_manage_70

  45. 记录之间的关联关系 • 书目与单册 • z13_rec_key=substr(z30_rec_key,1,9) • 书目与订单 • z13_rec_key=substr(z68_rec_key,1,9) • 单册与订单 • z30_order_number=trim(z68_order_number) • 读者 • z304_rec_key=z303_rec_key||’01’ and • z305_rec_key=z303_rec_key||’WHU50’ and • z308_id=z303_rec_key

  46. 小结

  47. 各种记录的键值

  48. 检索结果集

  49. 任务管理与调度系统服务框架 结果集: • 书目记录号 • 管理记录号 • 单册键值 • 读者ID • 订单键值 获取 结果集 审核 处理

  50. 谢谢!

More Related