Skip to content
Snippets Groups Projects
Commit 3a349eee authored by Giuseppe Lo Presti's avatar Giuseppe Lo Presti
Browse files

[migration] Completed #644:

- Added tool to drop from the CTA catalogue all CASTOR tapes from a given tapepool.
  This tool makes use of a temporary table and an additional PL/SQL procedure
  in order to perform efficient bulk operations in the CTA catalogue.
- Made tapepool insertion idempotent.
- Updated documentation.
parent 00dce3c6
No related branches found
No related tags found
No related merge requests found
......@@ -242,6 +242,7 @@ void DropSchemaCmd::dropOracleCatalogueSchema(rdbms::Conn &conn) {
"TAPE",
"TEMP_TAPE_FILE_BATCH",
"TEMP_TAPE_FILE_INSERTION_BATCH",
"TEMP_REMOVE_CASTOR_METADATA",
"REQUESTER_MOUNT_RULE",
"REQUESTER_GROUP_MOUNT_RULE",
"ADMIN_USER",
......
......@@ -33,3 +33,7 @@ CREATE GLOBAL TEMPORARY TABLE TEMP_TAPE_FILE_INSERTION_BATCH(
)
ON COMMIT DELETE ROWS;
CREATE INDEX TEMP_T_F_I_B_ARCHIVE_FILE_ID_I ON TEMP_TAPE_FILE_INSERTION_BATCH(ARCHIVE_FILE_ID);
CREATE GLOBAL TEMPORARY TABLE TEMP_REMOVE_CASTOR_METADATA(
ARCHIVE_FILE_ID UINT64TYPE
)
ON COMMIT DELETE ROWS;
......@@ -318,9 +318,10 @@ directory metadata into the EOS namespace.
%attr(0755,root,root) %{_bindir}/json-pretty-print.sh
%attr(0644,root,root) %{_bindir}/begin_vo_export_to_cta.sh
%attr(0644,root,root) %{_bindir}/export_production_tapepool_to_cta.sh
%attr(0644,root,root) %{_bindir}/vmgr_reenable_tapepool.sh
%attr(0755,root,root) %{_bindir}/tapepool_castor_to_cta.py
%attr(0755,root,root) %{_bindir}/complete_tapepool_export.py
%attr(0644,root,root) %{_bindir}/vmgr_reenable_tapepool.sh
%attr(0644,root,root) %{_bindir}/cta-catalogue-remove-castor-tapes.py
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/cta/castor-migration.conf.example
%package -n cta-rmcd
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment