1. 程式人生 > 其它 >金蝶EAS清理業務表、保留業務表清單

金蝶EAS清理業務表、保留業務表清單

truncate table T_GL_CASHFLOWRECORD ;
truncate table T_CAS_PaymentBill ;
truncate table T_CAS_PaymentBillEntry ;
truncate table T_BE_BankPayingBill ;
truncate table CT_NT_NtPayMent ;--不存在
truncate table CT_NT_NtPayMentTwo ;--不存在
truncate table T_CAS_ReceivingBillEntry ;
truncate table T_CAS_ReceivingBill ;
truncate table CT_NT_NtReceiving ;--不存在
truncate table CT_NT_NtReceivingTwo ;--不存在
truncate table T_CR_ReceiveBill ;
_________________________________收付款單據

truncate table V_AP_CheckAuditedOrVouchered ;
truncate table T_AR_ArInvoiceEntry ;
truncate table T_AR_ArPrintBill ;
truncate table T_AR_OtherBillentry ;
truncate table T_AR_OtherBillPlan ;
truncate table T_AR_ArInvoice ;
truncate table T_AR_ArPrintBillEntry ;
truncate table T_AR_OtherBill ;
truncate table CT_NT_NtReceiving ;--不存在
truncate table CT_NT_NtReceivingEntry ;--不存在
truncate table T_NT_ReceivableBill ;
truncate table T_AP_ApInvoice ;
truncate table T_AP_ApInvoiceEntry ;
truncate table T_AP_OtherBill ;
truncate table T_NT_PayableBill ;
truncate table T_NT_PayableTransferBill ;
_________________________________應收應付單據

truncate table T_ST_LadingEntry ;
truncate table T_ST_MaterialEntry ;
truncate table T_IV_MoveIssueBillDetailEntry ;
truncate table T_IM_MoveIssueBillEntry ;
truncate table T_IM_MaterialReqBill ;
truncate table T_IM_MaterialReqBillEntry ;
truncate table T_IM_MoveIssueBill ;
truncate table T_IM_OtherIssueBill ;
truncate table T_IM_OtherIssueBillEntry ;
truncate table T_IM_SaleIssueBill ;
truncate table T_IM_SaleIssueEntry ;
truncate table T_ST_Lading ;
truncate table T_ST_LadingWeighEntries ;
————————————--------------------出庫單據
truncate table T_IM_ManufactureRecBill ;
truncate table T_IM_ManufactureRecBillEntry ;
truncate table T_IM_MoveInWarehsBillEntry ;
truncate table T_IV_MoveIWBDE ;
truncate table T_IM_MoveInWarehsBill ;
truncate table T_IM_OtherInWarehsBillEntry ;
truncate table T_IM_OtherInWarehsBill ;
truncate table T_IM_PurInWarehsEntry ;
truncate table T_IM_PurInWarehsBill ;
truncate table T_ST_PurPABEPI ;
truncate table T_ST_SFCRedCrash ;
truncate table T_ST_SFCRedCrashEntry ;
truncate table T_ST_StorageForCheck ;
truncate table T_ST_StorageForCheckEntry ;
truncate table T_ST_DetailSABE ;
truncate table T_ST_DetailStorageAdjustBill ;
truncate table T_ST_ProductDAE ;
truncate table T_ST_ProductDispenseAdjust ;
___________________________________入庫單
truncate table T_IM_PurReceivalBill;
truncate table T_IM_PurReceivalEntry;
truncate table T_IM_PurReceivalEntryCheck;
_____________________________________採購收貨
truncate table T_QM_QCReportRelaWeighEntry ;
truncate table T_QM_QCRequestRelWeighEntry ;
truncate table CT_NB_Jianjinrenwuliebiao ;
truncate table CT_NB_Jianjintongzhidanfubiao ;
truncate table T_ST_LadingWeighEntries ;
truncate table T_ST_SettleReportWeighEntry ;
truncate table T_ST_QIReportWTRelation ;
truncate table T_ST_SampleWeighNotice ;
truncate table T_ST_SettleReportWTRelation ;
truncate table T_ST_SampleBillWeighRelation ;
truncate table T_ST_SaleFreightWeigh ;
truncate table T_ST_FreightBalanceWeighEntry ;
truncate table CT_WEI_NotWeighManger ;--不存在
truncate table CT_WEI_NotWeighMangerEntry ;--不存在
truncate table T_ST_Weigh ;
truncate table T_ST_WeighNoticeBill ;
truncate table T_WM_WeighNoticeBillEntry ;--不存在
————————————————檢斤業務單據
truncate table T_QM_QIItem ;
truncate table T_QM_QIScheme ;
truncate table T_QM_QIItemGroup ;
truncate table T_QM_QISchemeGroup ;
truncate table T_QM_QISchemeQiStandardEntry ;
truncate table T_QM_QIStandard ;
truncate table T_SD_SaleCEC ;
truncate table T_SD_SaleContractQCItem ;
truncate table T_PUR_PurCEC ;
truncate table T_SM_PurContractQCItemsNorth ;
truncate table T_ST_QIBill ;
truncate table T_ST_QIBillEntry ;
truncate table T_ST_QIBillForAll ;
truncate table T_ST_QIBillForAllEntry ;
truncate table T_ST_QIBillQICondition ;
truncate table T_ST_QIDelegateBill ;
truncate table T_ST_QIDelegateBillSampleEntry;
truncate table T_ST_QIDelegateBillEntry ;
truncate table T_ST_QIReport ;
truncate table T_ST_QIReportEntry ;
truncate table T_ST_QIReportSeqDetail ;
truncate table T_ST_QIReportWTRelation ;
truncate table T_ST_QIReportBalanceItem ;
truncate table T_ST_SampleCheckDetailEntry ;
——————————————————質檢業務
truncate table CT_NB_Txwlrfhlngnl ;
truncate table T_NT_LetterOfCreditRecEntity ;
truncate table T_SD_PostRequisition ;
truncate table T_SD_PostRequisitionEntry ;
truncate table T_SD_PostRDE ;
truncate table T_EQM_SparepartPlanOrder ;
truncate table T_MM_ProductionOrder ;
truncate table T_MM_ProductionOrderEntry ;
truncate table T_MM_ProductionOrderSEntry ;
truncate table T_MM_ProductionOrderOEntry ;
truncate table T_MM_ManufactureOrder ;
truncate table T_MM_MFTOrderTechnics ;
truncate table T_MM_MFTOrderStock ;
truncate table T_MM_PlanOrderChange ;
truncate table T_MM_PlanOrderEntry ;
truncate table T_MM_PlannedOrder ;
truncate table T_MM_PlannedOrderEntry ;
truncate table T_IM_PlanOrder ;
truncate table T_IM_PlanOrderEntry ;
truncate table T_IM_TransferOrderBill ;
truncate table T_IM_TransferOrderBillEntry ;
truncate table T_CHA_NetOrderBill ;
truncate table T_CHA_NetOrderBillEntry ;
truncate table T_SD_SaleOrder ;
truncate table T_SD_SaleOrderEntry ;
truncate table T_SM_PurOrder ;
truncate table T_SM_PurOrderEntry ;
truncate table T_SM_PurOrderExpenseEntry ;
truncate table T_SM_SubContractOrder ;
truncate table T_SM_SubContractOrderEntry ;
————————————————————----------------------訂單
truncate table T_ST_SalePlan ;
truncate table T_ST_SalePlanEntry ;
truncate table T_ST_ProduceTaskBill ;
truncate table T_ST_ProduceTaskBillEntry ;
————————————————銷售計劃單、生成任務單

truncate table T_CON_ConNoCostSplit ;--不存在
truncate table T_CON_ConNoCostSplitEntry ;--不存在
truncate table T_CON_ContractBill ;--不存在
truncate table T_CON_ContractBillEntry ;--不存在
truncate table T_CON_ContractLandDeveloper ;--不存在
truncate table T_CON_ContractBillContractPlan ;--不存在
truncate table T_CON_ContractBillRevise ;--不存在
truncate table T_CON_ContractBillReviseEntry ;--不存在
truncate table T_CON_ContractContent ;--不存在
truncate table T_CON_ContractCostSplit ;--不存在
truncate table T_CON_ContractCostSplitEntry ;--不存在
truncate table T_CON_ContractSettlementBill ;--不存在
truncate table T_CON_ContractWithoutText ;--不存在
truncate table T_FNC_ConPayPlanSplit ;--不存在
truncate table T_FNC_ConPayPlanSplitEntry ;--不存在
truncate table T_FNC_ContractPayPlan ;--不存在
truncate table T_FNC_PartAMainContract ;--不存在
truncate table T_CON_ContractBillEntry ;--不存在
truncate table T_CON_ContractWithoutText ;---不存在
truncate table T_FA_FALeaseContract ;
truncate table T_CL_ConsignContact ;
truncate table T_CL_ConsignLoanUsingPlan ;
truncate table T_CTL_BankFactorContractEntry ;
truncate table T_FIN_MainConLoan ;
truncate table T_CR_BgContract ;
truncate table T_CR_BgContractEntry ;
truncate table T_CR_BgContract ;
truncate table T_CR_BgContractPpEntrys ;--不存在
truncate table T_CR_BgPjDB ;
truncate table T_CR_BgPjDBEntry ;-
truncate table T_SD_SaleContract ;
truncate table T_SD_SaleContractEntry ;
truncate table T_SD_SaleContractTerm ;
truncate table T_SD_SaleContractQCItem ;
truncate table T_SM_PurContract ;
truncate table T_SM_PurContractEntry ;
truncate table T_SM_PurContractTerm ;
truncate table T_SM_PurContractPayment ;
truncate table T_ST_PurContractRcd ;
truncate table T_SM_PurRequest ;
truncate table T_SM_PurRequestEntry ;
truncate table T_SM_PurRequestEntryML ;
————————————————合同

truncate table T_QM_ExecuteStandardCode ;
truncate table T_QM_SteelGrade ;
truncate table T_QM_QIStdSteelGrade ;
truncate table T_QM_SteelGradeTREE ;
truncate table T_QM_QCSample ;
truncate table T_QM_QCSampleEntry ;
truncate table T_QM_QCSampleItemEntry ;
truncate table T_ST_SampleBill ;
truncate table T_ST_SampleBillEntry ;
truncate table T_ST_SampleWeighNotice ;
truncate table T_ST_SampleBillWeighRelation ;
truncate table T_ST_QICertificate ;
truncate table T_ST_QICertificateEntry ;
truncate table T_ST_QICertificateEntryDetail ;
truncate table T_ST_ProduceChangeNotice ;
truncate table T_ST_ProChangeNoticeMainEntry ;
truncate table T_SM_PurReturns ;
truncate table T_SM_PurReturnsEntry ;
truncate table T_ST_PurPriceBill ;
truncate table T_ST_PurPriceBillEntry ;
truncate table T_ST_PurPriceBillAss ;
truncate table T_ST_PurPABEPI ;
truncate table T_ST_PurPABWE ;
truncate table T_PUR_QualitySettleTerm ;
truncate table T_PUR_QualityAverage ;
truncate table T_ST_PurSettleReport ;
truncate table T_ST_PurSettleReportEntry ;
truncate table T_ST_SettleReportOtherEntry ;
truncate table T_ST_SettleReport ;
truncate table T_ST_SettleReportEntry ;
truncate table T_ST_SettleReportSettleEntries ;
truncate table T_ST_SettleROPE ;
truncate table T_ST_SettleReportWTRelation ;
truncate table T_ST_SettleRASE ;
truncate table T_ST_SupplementalAgreementBill ;
truncate table T_ST_SupplementalABE ;
truncate table T_AP_OtherBillExpApportion ;
truncate table T_CL_ExpenseApportion ;
truncate table T_CL_ExpenseApportionEntry ;
truncate table T_PUR_PurOrderPriceEntry ;
truncate table T_ST_SalePriceBill ;
truncate table T_ST_SalePriceBillEntry ;
truncate table T_ST_SalePriceBillAss ;
truncate table T_ST_SalePriceBillEntry ;
truncate table T_BD_SaleGroup ;
truncate table T_BD_SalePerson ;
truncate table T_GL_AcctCussentHistory ;
truncate table T_CL_DevolveWriteOffGroup ;
truncate table T_CL_DevolveWriteOffRecord ;
truncate table T_CL_WriteOffRecord ;
truncate table T_ST_PriceSetting ;
truncate table T_ST_PriceSettingEntry ;
truncate table T_BD_CostObject ;
truncate table T_BD_CostObjectEntry ;
truncate table T_BD_CostObjectGroup ;
truncate table T_NCM_CostObjectSuite ;
truncate table T_NCM_CostObjectSuiteEntry ;
truncate table T_NCM_CostCenterOrgUnitGroup ;
truncate table T_NCM_CostCenterGroupEntry ;
truncate table T_NCM_CostItem ;
truncate table T_NCM_CostItemTypeTree ;
truncate table T_NCM_Expense ;
truncate table T_NCM_ExpenseCompanyInfo ;
truncate table T_NCM_ExpenseTREE ;
truncate table T_NCM_InitBalance ;
truncate table T_NCM_InitBalanceEntry ;
truncate table T_NCM_InitBalanceMatDetail ;
truncate table T_CM_Dep_ProductFee ;
truncate table T_CM_Dep_ProductFeeEntry ;
truncate table T_NCM_AllocStdSetByAUXOverhead ;
truncate table T_NCM_InputQtyBill ;
truncate table T_NCM_InputQtyBillEntry ;
truncate table T_FA_Cat ;
truncate table T_FA_FaCurCard ;
truncate table T_FA_FaCurFacility ;
truncate table T_FA_FaCurCostCenter ;
truncate table T_FA_FaCurInitData ;
truncate table T_FA_FaCurDepartment ;
truncate table T_FA_FaChangeBill ;
truncate table T_FA_FaChangeBillEntry ;
truncate table T_FA_ClearBill ;
truncate table T_FA_ClearBillEntry ;
truncate table T_FA_FaSplitBill ;
truncate table T_FA_FaSplitBillEntry ;
truncate table T_FA_FaCombinBill ;
truncate table T_FA_FaCombinBillEntry ;
truncate table T_RPT_Report ;
truncate table T_RPT_ReportType ;
truncate table T_RPT_RptTypeStd ;
truncate table T_RPT_Template ;
truncate table T_CM_CMStart ;
truncate table T_CM_CMStartEntry ;
truncate table T_AP_InitDataInput ;
truncate table T_AP_InitDataInputEntry ;
truncate table T_AR_InitDataInput ;
truncate table T_AR_InitDataInputEntry ;
truncate table T_FA_FaMonCard ;
truncate table T_FA_FaMonFacility ;
truncate table T_FA_FaMonCostCenter ;
truncate table T_FA_FaMonInitData ;
truncate table T_FA_FaMonDepartment ;
truncate table T_IM_InventoryInitBill ;
truncate table T_IM_InventoryInitEntry ;

truncate table T_AP_VerificationBill ;
truncate table T_AP_VerificationBillentry ;
truncate table T_AR_VerificationBill ;
truncate table T_AR_VerificationBillentry ;
truncate table T_NT_EndorsementSettleEntry ;
truncate table T_CL_CostAdjustBill ;
truncate table T_CL_CostAdjustBillEntry ;

__________________________________________________________________________________________________________testdb1015.dmp(/u01/MY_DIR)
恢復資料到此位置


truncate table T_IM_Inventory ;


truncate table T_BD_AccountBanks ;
truncate table T_BD_MaterialCompanyInfo ;
truncate table T_BD_MaterialCost ;
truncate table T_BD_MaterialGroupDetial ;
truncate table T_BD_MaterialInventory ;
truncate table T_BD_MaterialPlan ;
truncate table T_BD_MaterialPropEntry ;
truncate table T_BD_MaterialPurchasing ;
truncate table T_BD_MaterialSales ;
truncate table T_BD_MaterialAsstAttrValue;
truncate table ————————————————物料 ;
truncate table T_BD_SupplierGroupDetail ;
truncate table T_BD_SupplierCompanyInfo ;
truncate table T_BD_SupplierCompanyBank ;
truncate table T_BD_SupplierPurchaseInfo;
truncate table T_BD_SupplierLinkMan ;
truncate table ————————————————供應商 ;
truncate table T_BD_CustomerCompanyInfo ;
truncate table T_BD_CustomerCompanyBank ;
truncate table T_BD_CustomerSaleInfo ;
truncate table T_BD_CustomerDlvAddress ;
truncate table T_BD_CustomerLinkMan ;
truncate table T_BD_CustomerSaler ;

————————————————————————————————————————————————————————————————————————————————————————————————————————————————testdb1020.dmp(/u01/MY_DIR)


2021/10/20清理

truncate table T_IM_DateOfMinDurability ;
truncate table ——————————————保質期管理 ;
truncate table T_CL_CalculateKindRefactorBill;
truncate table T_MPM_MaterialApplicationEntry;
truncate table T_CL_CalculateKindRefactEntry ;
truncate table T_ST_WeighNoticeBillEntry ;
truncate table ______________________________;___________單據分錄
truncate table T_BD_PurchasePerson ;
truncate table T_BD_PurchaseGroup ;
truncate table ———————————————採購組、採購員 ;
truncate table T_IM_MoveLocationBill ;
truncate table T_IM_MoveLocationBillEntry ;
truncate table ————————————————庫位移動

truncate table T_IM_StockTransferBill ;
truncate table T_IM_StockTransferBillEntry ;
truncate table ——————————————庫存調撥 ;
truncate table T_DB_SOAccreditWH ;
truncate table T_DB_LOCATION ;
truncate table T_DB_WAREHOUSE ;
truncate table ——————————————倉庫設定 ;
truncate table T_BD_AccountView ;
truncate table ————————————會計科目 ;
truncate table T_BD_Period ;
truncate table ————————————會計期間 ;
truncate table T_BD_ExchangeRate ;
truncate table ————————————匯率 ;
truncate table T_BD_GeneralAsstActType ;
truncate table T_BD_VoucherAbstract ;
truncate table ————————————————自定義核算專案、憑;證摘要
truncate table T_BD_KAClassfication ;
truncate table T_BD_KAClassficationType ;
truncate table ————————————————————記賬分類 ;
truncate table T_BD_Bank ;
truncate table ————————————————————金融機構 ;
truncate table T_BD_Project ;
truncate table ————————————————————專案 ;
truncate table T_BD_Address ;
truncate table ————————————————————地址簿 ;
truncate table T_GL_AutoTrans ;
truncate table T_GL_AutoTransEntry ;
truncate table T_GL_AutoTransAssistRecord ;
truncate table T_GL_AssistRepordEntry ;
truncate table ——————————————自動轉賬 ;
truncate table T_GL_TemplateVoucher ;
truncate table T_GL_TemplateVoucherEntry ;
truncate table T_GL_TemplateCashflowRecord ;
truncate table T_GL_TemplateVoucherAsstRecord ;
truncate table ——————————————————模式憑證 ;
truncate table T_BD_CashFlowItem ;
truncate table T_GL_CFRequisition ;
truncate table T_GL_CashFlowDefAccount ;
truncate table T_GL_CashflowSplitRecord ;
truncate table T_GL_CashflowRecord ;
truncate table ————————————————現金流量 ;
truncate table T_CL_CalculateKindRefactorBill ;
truncate table T_CL_CalculateKindRefactEntry ;
truncate table ——————————————————計價方法變更 ;
truncate table T_BD_MultiMeasureUnit ;
truncate table ————————————多計量單位 ;
truncate table T_MPM_MaterialProperties ;
truncate table ————————————————物料多屬性 ;

-----------------------------------------------------------------------------testdb1020_2.dmp(/u01/MY_DIR)

truncate table T_IN_LotRule ;
truncate table T_IN_LotRuleEntry ;
truncate table ——————————批次規則 ;
truncate table T_QM_SteelGradeMaterial ;
truncate table T_QM_QISchemeRelaMaterialEntry ;
truncate table ——————————————————關聯物料 ;
truncate table T_IM_MaterialRequestBill ;
truncate table T_IM_MaterialRequestBillEntry ;
truncate table ————————————————領料申請 ;
truncate table T_BD_MultiMeasureUnit ;
truncate table ————————————多計量單位 ;
truncate table T_IM_CalulateBalance ;
truncate table —————————————核算餘額表 ;

truncate table T_DB_MaterialStorageAssign ;
truncate table T_CL_RecentCost ;


truncate table T_GL_AssistBalance ;
truncate table ——————————輔助賬餘額 ;
truncate table T_PM_USERORGPERM ;
truncate table ____________________________使用者組織許可權 ;
truncate table T_ST_PRICEEDITIONSENTRIES ;
truncate table ——————————————價格項 ;
truncate table T_BAS_Attachment ;
truncate table T_BAS_BoAttchAsso ;
truncate table ———————————— ;
truncate table T_NCM_UserDefinedData ;
truncate table ————————————————自定義分配標準資料錄入 ;
truncate table T_AP_OtherBillentry ;
truncate table T_AP_OtherBillPlan ;
truncate table ————————————其他應付單分錄 ;
truncate table T_BG_BgData ;
truncate table T_BG_BgForm ;
truncate table ——————————預算 ;
truncate table T_QUERY_QuerySolution(保留預設方案 FNAME_L2=';認方案')
truncate table ————————————通用查詢方案 ;
truncate table T_IM_CalulateBalance ;
truncate table _____________________________核算餘額表 ;
truncate table T_AP_ApBalanceInit ;
truncate table T_AP_ApBalanceCollateInit ;
truncate table T_AP_ApBalanceCollate ;
truncate table ________________________________應收對賬餘額 ;
truncate table T_FA_FaAccountBalance ;
truncate table ——————————————固定資產餘額表 ;
truncate table T_ST_PriceEditions ;
truncate table ——————————————價格版本 ;
truncate table T_GL_AccountBalance ;
truncate table ————————————————科目餘額 ;
truncate table T_IM_PurInWarehsVoucher ;
truncate table ————————————————採購入庫單憑證資訊 ;
truncate table T_GL_AssistMeasureBalance ;
truncate table ————————————————輔助賬餘額 ;
truncate table T_CL_WriteOffGroup ;
truncate table ————————————————核銷記錄 ;
truncate table T_NCM_EquiCoefIntegrated ;
truncate table ————————————————約當係數(綜合 ;
truncate table T_FA_FaDepreciationEntry ;
truncate table T_FA_FaDepAsstActComposit ;
truncate table T_FA_FaDepDistribute ;
truncate table T_FA_FaDepAsstActComposit ;
truncate table ————————————————折舊分錄 ;
truncate table T_ST_SettleReportSettleEntry ;
truncate table ————————————————結算影響明細 ;
truncate table T_IM_CountingTableEntry ;
truncate table ————————————————盤點表體 ;
truncate table T_BD_DataBaseDAssign ;
truncate table ————————————————基礎資料分配記錄 ;
truncate table T_ST_SaleBalanceReportEntry ;
truncate table ————————————————分錄 ;
truncate table T_IM_MATERIALREQBILLPRICEINFO ;
truncate table ————————————————領料出庫單價格資訊 ;
truncate table T_IM_PREINVENTORYBALANCE ;
truncate table ————————————————未知表 ;
truncate table T_FA_FABAKCARD ;
truncate table T_FA_FaBizCard ;
truncate table ————————————————固定資產備份卡片 ;
truncate table T_IM_DATEOFMINDURABILITY ;
truncate table ————————————————保質期管理 ;
truncate table T_IM_INVENTORYINITENTRY_0110 ;
truncate table ————————————————分錄 ;
truncate table T_PM_OrgRange ;
truncate table T_PM_ORGRANGEINCLUDESUBORG ;
truncate table ——————————————————使用者組織範圍 ;


______________________________________________________________________________________________________________________(/MY_DIR)___________testdb1021_1.dmp


truncate table T_ST_SFCRedCrashDetail ;
truncate table T_ST_ProduceChangeNoticeEntry ;
truncate table ————————————單品 ;
truncate table T_CAS_JOURNAL ;
truncate table ———————————————日記賬 ;
truncate table T_BG_BgCtrlRecord ;
truncate table ————————————預算控制 ;
truncate table T_IM_PURINWAREHSENTRY_0110 ;
truncate table ————————————採購入庫單據分錄 ;
truncate table T_NCM_OtherFeeBill ;
truncate table T_NCM_OtherFeeBillEntry ;
truncate table ——————————————費用歸集 ;
truncate table T_ST_PriceSettingSettingEntry ;
truncate table ——————————————價格設定 ;
truncate table T_PM_RolePerm ;
truncate table ——————————————角色許可權 ;
truncate table T_CL_INVENTORYBALANCE ;
truncate table ————————————————未知 ;
truncate table T_SM_PurContractQCItems ;
truncate table ————————————————明細的檢查專案 ;
truncate table T_SM_PurContractSettleTerms ;
truncate table ————————————————結算條款 ;
truncate table T_BG_BGCOURSEDATA ;
truncate table ————————————預算 ;
truncate table T_CL_CostComputeReport ;
truncate table T_NCM_CalcLog ;
truncate table T_NCM_CalcLogEntry ;
truncate table ——————————————成本計算報告 ;
truncate table T_CSL_ExchCheckageEntry ;
truncate table ————————————————內部交易核對記錄;細
truncate table T_NCM_CALCLOGENTRY ;
truncate table ——————————————計算報表分錄 ;
truncate table T_GL_COMMONSCHEMA ;
truncate table ——————————————攤銷方案 ;
truncate table T_GL_InitAssistBalance ;
truncate table ——————————————輔助賬餘額 ;
truncate table T_EP_EDITUICONFIGURE ;
truncate table ——————————————編輯介面方案 ;
truncate table T_NCM_AllocStdSetByCCO ;
truncate table ——————————————成本中心間費用分配;準設定


truncate table T_MPM_MPEVENTRY ;
truncate table T_MPM_MPRelation ;
truncate table T_MPM_MPRelationValueEntry ;
truncate table T_MPM_MPRelationValueEntry ;
truncate table ——————————————多屬性 ;
truncate table T_NCM_OtherFeeBillEntry ;
truncate table ——————————————其他費用歸集 ;
truncate table T_ST_PriceSettingFactorEntry ;
truncate table ——————————————價格因子 ;
truncate table T_BG_BgPastData ;
truncate table ——————————————差異資料 ;
truncate table T_CSL_Elimination ;
truncate table T_CSL_EliminationEntry ;
truncate table ——————————————抵消分錄明細 ;
truncate table T_FA_FaBakCostCenter ;
truncate table T_FA_FaBizCostCenter ;
truncate table T_FA_FABAKASSTACTCOMPOSIT ;
truncate table T_FA_FaBakDepartment ;
truncate table T_FA_FaBizAsstActComposit ;
truncate table T_FA_FABIZDEPARTMENT ;
truncate table T_FA_FaBakInitData ;
truncate table T_FA_FaBizInitData ;
truncate table T_FA_FaDeprSum ;
truncate table ——————————————備份卡片 ;
truncate table T_ST_SaleBalanceReport ;
truncate table T_ST_SaleBalanceReportEntry ;
truncate table ——————————————銷售結算報告 ;
truncate table T_CSL_ITEMDATAYEARINIT ;
truncate table ________________________________;__專案年初數
truncate table T_CSL_TempletDispense ;
truncate table ——————————————模板分配 ;
truncate table T_JP_PAGE ;
truncate table ________________________________;_
truncate table T_BAS_BOATTCHASSO ;
truncate table ________________________________;_附件與業務的關聯
truncate table T_CSL_DataCheckageEntry ;
truncate table ——————————————往來核算明細分錄 ;
truncate table T_CSL_EXCHITEMDATA ;
truncate table ——————————————內部交易明細 ;
truncate table T_CSL_InterItemData ;
truncate table ——————————————內部往來明細 ;
truncate table T_EXT_RPTAUDITSUM ;
truncate table T_MM_REQPLANDATA ;
——————————————未知

truncate table T_NCM_WIPCountingBill ;
truncate table ——————————————在產品產量盤點資料歸集 ;
truncate table T_PUR_QUALITYENTRY ;
truncate table —————————————— ;
truncate table T_XT_USER ;
truncate table —————————————— ;
truncate table T_BG_BgItemEntry ;
truncate table T_CSL_ITEMDATAENTRY ;
truncate table ————————————BgItemEntr專案輔助表 ;
truncate table T_NCM_GLFetchDataEntry ;
truncate table ——————————————總賬取數分錄 ;
truncate table T_CAL_CostObjectRankEntry ;



truncate table T_CSL_InterDataCheckage ;
truncate table ————————————————內部往來核對記錄 ;
truncate table T_GL_InitAccountBalance ;
truncate table ————————————————科目餘額 ;
truncate table T_IM_SplitBillRelation ;
truncate table ——————————————拆單關係表頭 ;
truncate table T_NCM_CCOFeeBill ;
truncate table T_NCM_CCOFeeBillEntry ;
truncate table ———————————————— ;
truncate table T_CSL_ExchCheckage ;
truncate table T_CSL_ExchCheckageEntry ;
truncate table —————————————————— ;
truncate table T_NCM_INNEROVERHEADBILLENTRY ;
truncate table ——————————————————內部費用結算單分錄 ;
truncate table T_CSL_ElimRecord ;
truncate table ————————————————抵消記錄 ;
truncate table T_QM_QIStandardEntry ;
truncate table _____________________________________;檢
truncate table T_CAS_JournalBalance ;
truncate table ——————————————日記賬餘額表 ;
truncate table T_AR_ContrastAccountView ;
truncate table ——————————————對賬科目 ;
truncate table T_RPT_RptTypeRela ;
truncate table _________________________報表類別關聯;系

truncate table T_IM_SplitBillEntryRelation ;
truncate table _______________________________;拆單關係分錄
truncate table T_NCM_ByProductUnitCost ;
truncate table ——————————————副產品單位成本錄入;
truncate table T_MM_BomEntry ;
truncate table ——————————————分錄 ;
truncate table T_GL_AdjExchRateHistory ;
truncate table ——————————————調匯歷史 ;
truncate table T_GL_Flag ;
truncate table ——————————————結束初始化標誌 ;
truncate table T_GL_CashflowInit ;
truncate table ——————————————現金流量初始餘額錄;
truncate table T_IM_CountingTable ;
truncate table ——————————————盤點表 ;
truncate table T_NCM_CCOFeeBillEntry ;
truncate table ——————————————分錄 ;
truncate table T_NCM_InnerOverheadBill ;
truncate table T_IM_SALEISSUEBILL_B4 ;
truncate table ——————————————銷售出庫單 ;
truncate table T_NCM_WIPCountingMaterial ;
truncate table ——————————————在產品材料盤點 ;
truncate table T_SD_SaleReturns ;
truncate table T_SD_SaleReturnsEntry ;
truncate table ————————————————銷售退貨申請單 ;
truncate table T_IM_SALEISSUEBILL_B1 ;
truncate table T_IM_SALEISSUEENTRY_E4 ;
truncate table ——————————————————銷售出庫單 ;


2021/10/21-15:10備份/u01/MY_DIR/
__________________________________________________________________________________________________________testdb_10_21.dmp

truncate table T_BOT_Relation ; 不清理
truncate table T_BOT_RelationEntry ; 不清理
————————————————關聯關係、關係分錄 不清理

truncate table T_AR_ARBALANCECOLLATE ;
truncate table T_AR_ARAPRELATIONENTRY ;
truncate table T_AR_ARBALANCE ;
truncate table ————————————————應收餘額 ;
truncate table T_BD_MATERIAL ;
truncate table ——————————————物料暫不清理 ;
truncate table T_ST_QIREPORT_QIBILL ;
truncate table ——————————————質檢報告 ;
truncate table T_ST_SaleBRPE ;
truncate table ————————————————價格項 ;
truncate table T_NCM_AllocStdSetByPrd ;
truncate table T_NCM_AllocStdSetByOverhead ;
truncate table ————————————————產品間費用分配;標準

truncate table T_BD_Customer ;
truncate table ——————————客戶 ;
truncate table T_BD_Supplier ;
truncate table ——————————供應商 ;
truncate table T_PM_User (保留admin和user) ;
truncate table T_PM_OrgRange ;
truncate table T_PM_OrgRangeIncludeSubOrg ;
truncate table __________________使用者、使用者組;
truncate table T_BD_Person ;
truncate table ——————————人員 ;
truncate table T_PM_UserGroup ;
truncate table ——————————使用者組 ;
truncate table T_PM_UserRoleOrg ;
truncate table ————————————使用者角色許可權 ;

impdp dxol/dexin directory=DIR dumpfile=user.dmp logfile=user.log remap_tablespace=EAS_D_DEXIN_STANDARD:EAS_D_DXOL_STANDARD,EAS_D_DEXIN_INDEX:EAS_D_DXOL_INDEX,EAS_D_DEXIN_TEMP2:EAS_D_DXOL_TEMP2 table_exists_action=replace

truncate table T_PM_Rule ;
truncate table T_PM_FieldAccess ;

---------------------------------------------------------------------恢復幾個表、、、


truncate table BAK1120NEED_RELATIONENTRY ;
truncate table T_BD_MATERIAL ;


truncate table T_BD_Customer;
truncate table T_BD_Supplier;


2021、10、24
恢復表:
T_BG_BUDGETCTRLWORKFLOWPROC
CT_LOG_OPERALOG
CT_LOG_NEIDAORIZHI
T_CSL_CSLREPORT

清理
truncate table T_ORG_UNITRELATION ;
truncate table T_BOT_RELATION_BK ;
truncate table T_HR_ACTIVITYRELATIONRESUME ;
truncate table T_HR_FAMILYRELATION ;
truncate table CT_XZZ_EASADMINORGRELATIONSHIP ;
truncate table T_HR_ACTIVITYRELATIONLEVEL ;
truncate table T_HR_BDRELATION ;

truncate table T_BD_SystemStatusCtrol;
-----------------------------------------------------------------------備份10_24_1

_________________________________________________________________________________________10_25_1
DELETE FROM T_ORG_OUPartAdmin WHERE FUNITID<>'00000000-0000-0000-0000-000000000000CCE7AED4'
DELETE FROM T_ORG_OUPartCostCenter WHERE FUNITID<>'00000000-0000-0000-0000-000000000000CCE7AED4'
DELETE FROM T_ORG_OUPartHR WHERE FUNITID<>'00000000-0000-0000-0000-000000000000CCE7AED4'
DELETE FROM T_ORG_OUPartProfitCenter WHERE FUNITID<>'00000000-0000-0000-0000-000000000000CCE7AED4'
DELETE FROM T_ORG_OUPartPurchase WHERE FUNITID<>'00000000-0000-0000-0000-000000000000CCE7AED4'
DELETE FROM T_ORG_OUPartQuality WHERE FUNITID<>'00000000-0000-0000-0000-000000000000CCE7AED4'
DELETE FROM T_ORG_OUPartSale WHERE FUNITID<>'00000000-0000-0000-0000-000000000000CCE7AED4'
DELETE FROM T_ORG_OUPartStorage WHERE FUNITID<>'00000000-0000-0000-0000-000000000000CCE7AED4'
DELETE FROM T_ORG_OUPartUnionGroup WHERE FUNITID<>'00000000-0000-0000-0000-000000000000CCE7AED4'

DELETE FROM T_ORG_OUPartMarket WHERE FUNITID is null

select count(*) from T_ORG_OUPartMarket where FUNITID is null

DELETE FROM T_ORG_OUPartService WHERE FUNITID is null
<>'00000000-0000-0000-0000-000000000000CCE7AED4'

DELETE
select count(*) FROM T_ORG_OUPartCtrl WHERE FUNITID<>'00000000-0000-0000-0000-000000000000CCE7AED4' AND FUNITID<>'11111111-1111-1111-1111-111111111111CCE7AED4'
DELETE FROM T_ORG_OUPartFI WHERE FUNITID<>'00000000-0000-0000-0000-000000000000CCE7AED4'
_______________________________________________________________________________________________________________________________組織單元拓展

DELETE FROM T_ORG_BaseUnit WHERE FID<>'00000000-0000-0000-0000-000000000000CCE7AED4' AND FID<>'11111111-1111-1111-1111-111111111111CCE7AED4'
_______________________________________________________________________________________________________________________________組織單元

_________________________________________________________________________________________10_25_1

DELETE FROM T_ORG_Admin WHERE FID<>'00000000-0000-0000-0000-000000000000CCE7AED4'
DELETE FROM T_ORG_Purchase WHERE FID<>'00000000-0000-0000-0000-000000000000CCE7AED4'
DELETE FROM T_ORG_Sale WHERE FID<>'00000000-0000-0000-0000-000000000000CCE7AED4'
DELETE FROM T_ORG_Storage WHERE FID<>'00000000-0000-0000-0000-000000000000CCE7AED4'


DELETE FROM T_ORG_Company WHERE FID<>'00000000-0000-0000-0000-000000000000CCE7AED4'


DELETE FROM T_BD_Acct_Contorl WHERE FDestCu is null

select count(*) FROM T_BD_Acct_Contorl WHERE FDestCu is null ='00000000-0000-0000-0000-000000000000CCE7AED4'


truncate table T_BD_SystemStatusCtrol


SELECT * FROM T_BD_Period


UPDATE T_BD_Period set FControlUnitID='00000000-0000-0000-0000-000000000000CCE7AED4' where 1=1


truncate table T_BD_MATERIALGROUPDETIAL_COPY1 ;
truncate table T_BD_MATERIALGROUPDETIAL ;
truncate table T_BD_MATERIALGROUPDETIAL_COPY ;
truncate table T_BD_SUPPLIERGROUPDETAIL ;
truncate table T_BD_CUSTOMERGROUPDETAIL ;
truncate table T_PM_UserRoleOrg ;
truncate table T_PM_OrgRange ;
truncate table BAK20141216 ;
truncate table T_BAS_CRMultiOrg ;
truncate table T_BAS_CodingRuleEntry ;

truncate table CT_WUL_WULIAOSHENQINGDAN ;
truncate table CT_WUL_WULIAOSHENQINGDANENTRY ;

DELETE FROM T_PM_OrgRangeIncludeSubOrg WHERE FORGID<>'00000000-0000-0000-0000-000000000000CCE7AED4'

select count(*) from T_PM_ORGRANGEINCLUDESUBORG


DELETE FROM T_PM_Role WHERE FControlUnitID<>'00000000-0000-0000-0000-000000000000CCE7AED4'


DELETE FROM T_BAS_CodingRule WHERE FControlUnitID<>'00000000-0000-0000-0000-000000000000CCE7AED4'

truncate table T_PM_UserGroup ;
truncate table T_BD_MaterialGroup ;

lift_dramas