Main FTS Pages |
---|
FtsRelease22 |
Install |
Configuration |
Administration |
Procedures |
Operations |
Development |
Previous FTSes |
FtsRelease21 |
FtsRelease21 |
All FTS Pages |
FtsWikiPages |
Last Page Update |
SteveTraylen 2007-04-04 |
glite-data-transfer-scripts
RPM.
/opt/glite/share/glite-data-transfer-scripts/plsql/fts_admin_pack.sql /opt/glite/share/glite-data-transfer-scripts/plsql/fts_admin_pack_body.sqlLoad the package into your database on the schema owner account (the account on which your ran the schema install) using the tool of your choice (see FtsAdminToolsPackageLoading15 for how to do this with SQL/Plus).
fts_admin_pack.CHANGE_CHANNEL_SOURCE
or fts_admin_pack.CHANGE_CHANNEL_DEST
methods, passing the channel name and the new source or destination.
You do not need to stop the agents to make this change.
SQL> exec fts_admin_pack.CHANGE_CHANNEL_DEST('CERN-RANDOM', 'RANDOMT1_NEW_NAME'); PL/SQL procedure successfully completed.
fts_admin_pack.RENAME_CHANNEL
passing the old and new channel names.
This is not a lightweight operation with the current schema.
YOU MUST STOP ALL VO AND TRANSFER AGENTS BEFORE YOU DO THIS
If you do not stop all agents, it will lock-up your schema (in which case, buy your DBA a coffee...)
SQL> exec fts_admin_pack.RENAME_CHANNEL('CERN-RANDOM', 'CERN-NEWRANDOM'); PL/SQL procedure successfully completed.The channel name is used as a key in the job table and updating this may take a long time (like
several hours
if you have many jobs in the table).
t_job
, t_file
and t_transfer
tables.
From SQL/Plus (as described in FtsAdminToolsPackageLoading15):
SQL> @/opt/glite/share/glite-data-transfer-scripts/plsql/create_fts_history_tables.sql Table created. Table altered. Table created. Table altered. Table created. Table created. Index created. Index created. Index created. Index created. Table created. Index created. Index created. Index created. Table created. Index created. Index created. Index created. Index created.
SQL> @/opt/glite/share/glite-data-transfer-scripts/plsql/fts_history_pack.sql Package created. SQL> @/opt/glite/share/glite-data-transfer-scripts/plsql/fts_history_pack_body.sql Package body created.
SQL> exec fts_history.submit_job; PL/SQL procedure successfully completed.Check the job is there using your user ID:
SQL> select job, next_date, next_sec from user_jobs where user='LCG_FTS_STRESSTEST2'; JOB NEXT_DATE NEXT_SEC ---------- --------- -------- 82 04-JUL-06 16:00:24Start the job for the first time (this is often needed) and check that there is no error code reported in the logging table. Use the job id you got back from hte user_jobs table:
SQL> exec dbms_job.run(82); PL/SQL procedure successfully completed. SQL> select ERRCODE, JOBS, FILES from T_HISTORY_LOG; ERRCODE JOBS FILES ---------- ---------- ---------- 100 217The numbers refer to the number of jobs and files that were moved to the history table on this job run. There will be an entry each time the job runs. Any error codes are reported here. To stop the DBMS job, run:
SQL> exec fts_history.STOP_JOB; PL/SQL procedure successfully completed. SQL> select * from user_jobs where job = 82; no rows selected
t_job
should reduce by approx. 100, provided you have that many entries that are more than 7 days old in a final job state. The number of entries in t_job_history
should increase by the corresponding number.
The same can be said for t_file
/ t_file_history
and t_transfer
/ t_transfer_history
, although the number of entries moved will depend on the content and performance of the jobs.
SQL> select count(*) from t_job; COUNT(*) ---------- 12223 SQL> select count(*) from t_job_history; COUNT(*) ---------- 100... wait a while (> 10 minutes) ...
SQL> select count(*) from t_job; COUNT(*) ---------- 12123 SQL> select count(*) from t_job_history; COUNT(*) ---------- 200