Did you commit the transaction after running the proc?This should remove all the relevant data from the system.Gordon CookeSpark::red - Managed ATG Hostingm: 206-384-1314w: 888-666-5582Follow Spark::red for the latest news on eCommerce and ATG:
Twitter - www.twitter.com/ATGhostingSparkFacebook - www.facebook.com/SparkredATGHostingBlog - www.sparkred.com/blog/
On Aug 30, 2012, at 11:07 AM, Kadinamkulam <kadina...@gmail.com> wrote:Hi Gordon,
I executed this procedure and the data is removed from the db and restarted the CA instance.
But still I can see those projects in BCC. is there any thing else we need to check.. like is there any lock or so ?
Warm Regards
KdMOn Thu, Aug 30, 2012 at 10:09 AM, Gordon Cooke <gor...@sparkred.com> wrote:
Not sure how others have done this but it is not as easy as that. I use a stored procedure (for Oracle DB) that I set up in the PUB schema that looks something like the following. I am sure there are more elegant ways of going about this but this works.create or replace procedure clean_bcc_project( projid varchar2, procid varchar2)isbeginfor histid in(select history from epub_proc_history where process_id = procid) loopdbms_output.put_line(histid.history);delete from epub_proc_history where history = histid.history and process_id = procid;delete from epub_history where history_id = histid.history;end loop;for histidx in(select history from epub_pr_history where project_id = projid) loopdbms_output.put_line('History id is ' || histidx.history);delete from epub_pr_history where history = histidx.history and project_id = projid;delete from epub_history where history_id = histidx.history;end loop;for taskinfo in (select taskinfo_id from epub_proc_taskinfo where id = procid) loopdbms_output.put_line('Task info id is ' || taskinfo.taskinfo_id);delete from epub_proc_taskinfo where taskinfo_id = taskinfo.taskinfo_id and id = procid;delete from epub_taskinfo where taskinfo_id = taskinfo.taskinfo_id;end loop;delete from epub_project where project_id = projid;delete from epub_ind_workflow where process_id=procid;delete from epub_process where process_id = procid;end;--execute clean_bcc_project('prj381005','prc381005');Gordon CookeSpark::red - Managed ATG Hostingm: 206-384-1314w: 888-666-5582Follow Spark::red for the latest news on eCommerce and ATG:
Twitter - www.twitter.com/ATGhostingSparkFacebook - www.facebook.com/SparkredATGHostingBlog - www.sparkred.com/blog/
On Aug 30, 2012, at 6:58 AM, Kadinamkulam <kadina...@gmail.com> wrote:--HI Experts,
What are the steps to remove a project from the BCC.
I tried to Delete it from bcc. but since the topology was not configured it got hanged in the deployment phase.
I tried the below remove-item RQL but still I can see the project in bcc like orphan.
Is there any order in doing this ?
Please help,
Warm Regards
KdmSELECT COUNT(*), WORKSPACE_ID FROM CCAVERSION.AVM_ASSET_LOCK GROUP BY WORKSPACE_ID
Gives now of projects in editable
COUNT(*)
WORKSPACE_ID
0
6
45785
1
4
47682
2
2
50564
3
7
52051
/atg/epub/PublishingRepository/
<print-item item-descriptor="project" id="prj19095"/>
<print-item item-descriptor="process" id="prc19095"/>
<delete-item item-descriptor="project" id="prj19095"/>
<remove-item item-descriptor="project" id="prj19095"/><remove-item item-descriptor="process" id="prc19095"/>
<print-item item-descriptor="process" id=" prc20002"/>
--
You received this message because you are subscribed to the Google Groups "ATG_Tech" group.
To post to this group, send email to atg_...@googlegroups.com
To unsubscribe from this group, send email to atg_tech-u...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/atg_tech?hl=en
--
--
You received this message because you are subscribed to the Google Groups "ATG_Tech" group.
To post to this group, send email to atg_...@googlegroups.com
To unsubscribe from this group, send email to atg_tech-u...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/atg_tech?hl=en
--
--
You received this message because you are subscribed to the Google Groups "ATG_Tech" group.
To post to this group, send email to atg_...@googlegroups.com
To unsubscribe from this group, send email to atg_tech-u...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/atg_tech?hl=en
--
--
You received this message because you are subscribed to the Google Groups "ATG_Tech" group.
To post to this group, send email to atg_...@googlegroups.com
To unsubscribe from this group, send email to atg_tech-u...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/atg_tech?hl=en