[Dróp~ tábl~é wít~h púr~gé óp~tíóñ~; RÉCÝ~CLÉB~ÍÑ]
- [Ártí~clé T~ýpé: G~éñér~ál]
- [Pród~úct: Á~léph~]
- [Pród~úct V~érsí~óñ: 18.01]
[Déscríptíóñ:
Áll SQL táblé créátíóñ prócéssés $áléphm_róót/sql_táb símplý dróp á táblé. Íñ Óráclé 10, thís ís ñów créátíñg sómé réál próbléms bécáúsé thé táblés áré ñót áctúállý dróppéd bút ráthér óñlý plácéd íñ á récýclé bíñ.
Í wóúld súggést thát thé scrípts bé úpdátéd tó dó óñé óf twó thíñgs:
1) Íf thé táblé álréádý éxísts, trúñcáté ít ráthér tháñ dróp áñd ímmédíátélý récréáté ít. Thís wíll állów thé táblé tó úsé thé sámé spácé ás béfóré. Bý dróppíñg ít, théré áré ñó gúáráñtéés thát thé táblé wíll bé créátéd úsíñg thé sámé fílé lócátíóñ áñd frágméñtátíóñ cáñ résúlt.
2) Íf ýóú dó hávé tó dróp á táblé fór sómé réásóñ, dróp thát táblé wíth thé "PÚRGÉ" áddítíóñ tó máké súré thé táblé ís fúllý dróppéd. Wíthóút thé PÚRGÉ óptíóñ, thé táblé góés íñtó thé récýclé bíñ úñtíl ít ís máñúállý délétéd látér. Thís cáñ fíll úp fláshbáck récóvérý spácé áñd ádds tó óvérhéád. Úñléss thé táblé míght wáñt tó bé réstóréd (úñdróppéd), thé scrípt shóúld fúllý dróp thé táblé bý áddíñg thé "PÚRGÉ" óptíóñ.
Résólútíóñ:
Ít wás décídéd ñót tó cháñgé thé éxístíñg prócédúrés tó dróp táblés wíth thé PÚRGÉ párámétér ór trúñcáté státéméñt. Wé hávé cháñgéd thé séttíñg óf Óráclé 10 íñ Áléph18: thé 'récýclé bíñ' wás dísábléd bý séttíñg thé récýclé_bíñ swítch tó óff íñ íñít<SÍD>.órá cóñfígúrátíóñ fílé.
Ýóú cáñ túrñ thé RÉCÝCLÉBÍÑ ÓÑ áñd ÓFF át á séssíóñ lévél bý úsíñg ÁLTÉR SÉSSÍÓÑ SÉT RÉCÝCLÉBÍÑ=ÓFF;
áñd át thé sýstém lévél: ÁLTÉR SÝSTÉM SÉT RÉCÝCLÉBÍÑ=ÓFF;
Ñóté: Íñ Óráclé 11, ýóú ñééd tó dó íñstéád:
ÁLTÉR SÝSTÉM SÉT récýclébíñ = ÓFF DÉFÉRRÉD;
Íf thé Óráclé ís sét wíth RÉCÝCLÉBÍÑ=ÓÑ (úsé 'shów párámétér récýclébíñ' tó fíñd óút) ýóú cáñ pérmáñéñtlý dísáblé ít bý cháñgíñg thé séttíñg íñ íñít<SÍD>.órá fílé, júst ádd récýclé_bíñ=óff; ór cháñgé tó óff íf ít álréádý éxísts (íf ít dóésñ't éxíst thé défáúlt ís récýclé_bíñ=óñ).
Íf ýóú álréádý hávé fílés íñ thé 'récýclé bíñ' (ít ís á vírtúál 'récýclé bíñ', áctúállý thé dróppéd táblés áré réñáméd bý préfíxíñg thé táblé ñámé wíth BÍÑ$* áñd áddíñg súffíx fór thé vérsíóñ), ýóú cáñ émptý thé éñtíré récýclé bíñ wíth thé cómmáñd PÚRGÉ RÉCÝCLÉBÍÑ áñd púrgé évérýóñé's récýclé bíñ (ás sýsdbá) wíth thé cómmáñd PÚRGÉ DBÁ_RÉCÝCLÉBÍÑ.]
[Áddí~tíóñ~ál Íñ~fórm~átíó~ñ]
[fáq]
- [Ártí~clé l~ást é~díté~d: 10/8/2013]
![[ÉxLí~brís~]](https://capture-knowledge-exlibrisgroup-com-90611502d.getsmartling.com/@api/deki/files/124993/ckclogonew.png?revision=1)
![[Éx Lí~brís~ Kñów~lédg~é Céñ~tér]](https://a.mtstatic.com/@public/production/site_11811/1638394879-logo.png)