Dokumentation zu: TcExtractData_2013_10 (C) J.Feuerstein
Erstellt: 09/2013   J.Fes
Stand   : 01.10.2013    J.Fes

--------------------------------------------------------------------------------------------------------------------------------------------------------------------
#Doc: Aktion: Extraction von TC Daten

CLA CommandLineArguments:
-------------------------

JobManagerCmdTools.exe -Action "TcExtractData_2013_10"
                       -SubAction  "DS_of_IR"

Examples:
: 19.09.2013/A.Becker
-Action "TcExtractData_2013_10" 
-SubAction "DS_of_IR"
-JobRoot_DP "C:\tmp"
-TnsNames_dpne "V:\JobManager\ProgEntw\Ver03\JobManagerV3\01-BinServer.Custom\TnsAdmin\tnsnames.ora"
-DbNetworkAlias "tc83"
-u "infodba" 
-p "infodba"
-TcSQL_DP #TcSQL_DP#
-OraClient_DP "V:\JobManager\ProgEntw\Ver03\JobManagerV3\03-BinPublic\OraClient"
-ResultFile_dpne "#JobRoot_DP#\TcExtractedData.xml"

#last.change: 2.1210;22.04.2014;J.Fes
-Action "TcExtractData_2013_10" -SubAction "DS_of_IR" -JobRoot_DP "C:\tmp" -TnsNames_DPNE "V:\JobManager\ProgEntw\Ver03\JobManagerV3\01-BinServer.Custom\TnsAdmin\tnsnames.ora" -DbNetworkAlias "tc83" -u "infodba" -p "infodba" -TcSQL_DP "V:\JobManager\ProgEntw\Ver03\JobManagerV3\02-BinClient.Custom\_CustomTcSQL\Tc83" -Obj_ReleaseState_DPNE "V:\JobManager\ProgEntw\Ver03\JobManagerV3\01-BinServer\Resources\TCSQL_TEST\Obj_ReleaseState.sql" -OraClient_DP "V:\JobManager\ProgEntw\Ver03\JobManagerV3\03-BinPublic\OraClient" -ResultFile_DPNE "#JobRoot_DP#\TcExtractedData.xml"  -verbose -PauseOnEnd

#New: 3.1460;26.03.2018;J.Fes
-Action "TcExtractData_2013_10" -SubAction "DS_of_IR" -JobRoot_DP "V:\CustomersDataL\SiPG\2018-03-26-ExampleData\Tc83_GenericExample1_RUN_04982_CustomerNameShort" -ResultFile_DPNE "#JobRoot_DP#\01-TcExtractData_2013_10-DS_of_IR-resultfile.xml" -TcSQL_DP "V:\JobManager\ProgEntw\Ver03\JobManagerV3\02-BinClient.Custom\_CustomTcSQL\Tc83" -OraClient_DP "V:\JobManager\ProgEntw\Ver03\JobManagerV3\03-BinPublic\OraClient" -verbose -pauseOnEnd 

#New: 3.1493;15.06.2020;J.Fes
-Action "TcExtractData_2013_10" -SubAction "DS_of_IR" -JobRoot_DP "L:\_JobMgrL\JobClient\HIL_QS_TCDataExtractTest_00001_CustomerNameShort" -ResultFile_DPNE "#JobRoot_DP#\01-TcExtractData_2013_10-DS_of_IR-resultfile.xml" -SubActionSettingsXML "#JobRoot_DP#\SubActionSettings\02-DS_of_IR_#TcExtractData_2013_10_#DS_of_IR.xml" -TcSQL_DP "V:\JobManager\ProgEntw\Ver03\JobManagerV3\02-BinClient.Custom\_CustomTcSQL\HIL_QS" -Verbose -PauseOnEnd


-----------------------------------------------------------------------
Examples:
: 2.1200;04.11.2013;J.Fes
-Action "TcExtractData_2013_10" 
-SubAction "UsersDefVolCurSubDirFileCount"
-JobRoot_DP "C:\tmp"
-TnsNames_dpne "V:\JobManager\ProgEntw\Ver03\JobManagerV3\01-BinServer.Custom\TnsAdmin\tnsnames.ora"
-DbNetworkAlias "tc83"
-u "infodba" 
-p "infodba"
-SqlScript_dpne "V:\JobManager\ProgEntw\Ver03\JobManagerV3\03-BinPublic.ClientServer\JobManagerCmdTools_Resources\TcExtractData_2013_10\SubAction_UsersDefVolumeCurSubDir.sql"
-para_like_PUSER_ID "%"
-OraClient_DP "V:\JobManager\ProgEntw\Ver03\JobManagerV3\03-BinPublic\OraClient"
-ResultFile_dpne "#JobRoot_DP#\TcExtractedData.xml"
-RevokeGrand_RunIfMoreThenMaxFilesInDir "15" 
-RevokeGrand_Cmd_DPNE "C:\tmp\RevokeGrand.cmd"
-MsgLog_DPNE "C:\tmp\RevokeGrand_JCMSG_Log.txt"

New: 2.1200;04.11.2013;J.Fes
-Action "TcExtractData_2013_10" -SubAction "UsersDefVolCurSubDirFileCount" -JobRoot_DP "C:\tmp" -TnsNames_dpne "V:\JobManager\ProgEntw\Ver03\JobManagerV3\01-BinServer.Custom\TnsAdmin\tnsnames.ora" -DbNetworkAlias "tc83" -u "infodba" -p "infodba" -SqlScript_dpne "V:\JobManager\ProgEntw\Ver03\JobManagerV3\03-BinPublic.ClientServer\JobManagerCmdTools_Resources\TcExtractData_2013_10\SubAction_UsersDefVolumeCurSubDir.sql" -para_like_PUSER_ID "%" -OraClient_DP "V:\JobManager\ProgEntw\Ver03\JobManagerV3\03-BinPublic\OraClient" -RevokeGrand_RunIfMoreThenMaxFilesInDir "15" -RevokeGrand_Cmd_DPNE "C:\tmp\RevokeGrand.cmd" -verbose -pauseOnEnd -MsgLog_DPNE "C:\tmp\RevokeGrand_JCMSG_Log.txt"

#New: 3.1465;22.05.2018;J.Fes
-Action "TcExtractData_2013_10" -SubAction "UsersDefVolCurSubDirFileCount" -JobRoot_DP "C:\tmp" -TnsNames_DPNE "V:\JobManager\ProgEntw\Ver03\JobManagerV3\01-BinServer.Custom\TnsAdmin\tnsnames.ora" -DbNetworkAlias "tc83" -u "infodba" -p "infodba" -SqlScript_dpne "D:\addPLM\JobManager\ProgEntw\Ver03\JobManagerV3\01-BinServer.Custom\_CustomTcSQL\tc10\VolumeRevokeGrandInfo.sql" -para_like_PUSER_ID "%" -OraClient_DP "V:\JobManager\ProgEntw\Ver03\JobManagerV3\03-BinPublic\OraClient" -RevokeGrand_RunIfMoreThenMaxFilesInDir "5" -RevokeGrand_Cmd_DPNE "C:\tmp\RevokeGrand.cmd" -verbose -pauseOnEnd -MsgLog_DPNE "C:\tmp\RevokeGrand_JCMSG_Log.txt"


--------------------------------------------------------------------------------------------------------------------------------------------------------------------

JobManagerCmdTools.exe 
-Action "TcExtractData_2013_10"
-SubAction  "CompareTCExtractedData"
-JobRoot_DP "C:\tmp"
-ResultFile1_DPNE
-ResultFile2_DPNE

Examples:
#Doc: 08.11.2013 S.Güth
-Action "TcExtractData_2013_10" -SubAction  "CompareTCExtractedData" -JobRoot_DP "V:\CustomersDataL\addPLM\2013-11-08\tceng_GenericExample_00173_CustomerNameShort" -ResultFile1_DPNE V:\CustomersDataL\addPLM\2013-11-08\tceng_GenericExample_00173_CustomerNameShort\result1.xml -ResultFile2_DPNE V:\CustomersDataL\addPLM\2013-11-08\tceng_GenericExample_00173_CustomerNameShort\result2.xml

==========================================================================================================

New: 2.1210;30.01.2014;S.Gueth
-Action TcExtractData_2013_10 -SubAction AnalyseBomTest -JobRoot_DP "V:\CustomersDataL\Siemens\TCP010_M2NX_024_CMM_AP_IDrw_RUN2_07500_SiIEC" -verbose -pauseOnEnd -JobData1ToProcessDoPrint -JobData2ResultsDoPrint

==========================================================================================================
New: 2.1210;31.01.2014;J.Fes
-Action "TcExtractData_2013_10" -SubAction "DS_of_IR" -JobRoot_DP "V:\CustomersDataL\IEC\ExampleData\Tc83_GenericExample_T_00005_CustomerNameShort" -TnsNames_DPNE "V:\JobManager\ProgEntw\Ver03\JobManagerV3\01-BinServer.Custom\TnsAdmin\tnsnames.ora" -DbNetworkAlias "tc83" -u "infodba" -p "infodba" -SqlScript_DPNE "V:\JobManager\ProgEntw\Ver03\JobManagerV3\01-BinServer\Resources\TCSQL_TEST\IR_Datasets_NamedRef_Attr.SQL" -Obj_ReleaseState_DPNE "V:\JobManager\ProgEntw\Ver03\JobManagerV3\01-BinServer\Resources\TCSQL_TEST\Obj_ReleaseState.sql" -BOM_Datasets_SQL_DPNE "V:\JobManager\ProgEntw\Ver03\JobManagerV3\01-BinServer\Resources\TCSQL_TEST\Bom_Datasets_Precise.SQL" -OraClient_DP "V:\JobManager\ProgEntw\Ver03\JobManagerV3\03-BinPublic\OraClient" -ResultFile_DPNE "#JobRoot_DP#\TcExtractedData.xml"  -verbose -PauseOnEnd


=== BOM Extract New: 2.1210;06.07.2014;J.Fes =============================================================
-Action "TcExtractData_2013_10" 
-SubAction "BOMs_eXtract_for_JobData1ToProcess" 
-JobRoot_DP "V:\CustomersDataL\IEC\2014-07-06-ExampleData\Tc83_BOM_EXTRACT_01" 
-TnsNames_DPNE "\\pdmdev01\D\ugsshare\tc83data\windows\tnsnames.ora" 
-DbNetworkAlias "tc83" -u "infodba" -p "infodba" 
-TcSQL_DP "V:\JobManager\ProgEntw\Ver03\JobManagerV3\02-BinClient.Custom\_CustomTcSQL\Tc83" 
-OraClient_DP "V:\JobManager\ProgEntw\Ver03\JobManagerV3\03-BinPublic\OraClient" 
-BOMs_eXtract_prePost "pre/post"
-verbose -PauseOnEnds

New: 2.1210;06.07.2014;J.Fes
-Action "TcExtractData_2013_10" -SubAction "BOMs_eXtract_for_JobData1ToProcess" -JobRoot_DP "V:\CustomersDataL\IEC\2014-07-06-ExampleData\Tc83_BOM_EXTRACT_01" -TnsNames_DPNE "V:\JobManager\ProgEntw\Ver03\JobManagerV3\01-BinServer.Custom\TnsAdmin\tnsnames.ora" -DbNetworkAlias "tc83" -u "infodba" -p "infodba" -TcSQL_DP "V:\JobManager\ProgEntw\Ver03\JobManagerV3\02-BinClient.Custom\_CustomTcSQL\Tc83" -OraClient_DP "V:\JobManager\ProgEntw\Ver03\JobManagerV3\03-BinPublic\OraClient" -ResultFile_DPNE "#JobRoot_DP#\BOMs_01PreData.xml" -verbose -PauseOnEnd

New: 2.1210;08.07.2014;S.Gueth
-Action "TcExtractData_2013_10" -SubAction "BOMs_eXtract_for_JobData1ToProcess" -JobRoot_DP "V:\CustomersDataL\addPLM\2014-07-08\TCextractTest" -TnsNames_DPNE "V:\CustomersDataL\addPLM\2014-07-08\tnsnames.ora" -DbNetworkAlias "tc83" -u "infodba" -p "infodba" -TcSQL_DP "V:\JobManager\ProgEntw\Ver03\JobManagerV3\02-BinClient.Custom\_CustomTcSQL\tc83" -OraClient_DP "V:\JobManager\ProgEntw\Ver03\JobManagerV3\03-BinPublic\OraClient" -BOMs_eXtract_prePost pre -verbose -PauseOnEnd
-Action "TcExtractData_2013_10" -SubAction "BOMs_eXtract_for_JobData1ToProcess" -JobRoot_DP "V:\CustomersDataL\addPLM\2014-07-08\TCextractTest" -TnsNames_DPNE "V:\CustomersDataL\addPLM\2014-07-08\tnsnames.ora" -DbNetworkAlias "tc83" -u "infodba" -p "infodba" -TcSQL_DP "V:\JobManager\ProgEntw\Ver03\JobManagerV3\02-BinClient.Custom\_CustomTcSQL\tc83" -OraClient_DP "V:\JobManager\ProgEntw\Ver03\JobManagerV3\03-BinPublic\OraClient" -BOMs_eXtract_prePost post -verbose -PauseOnEnd



--------------------------------------------------------------------------------------------------------------------------------------------------------------------
#Doc: Aktion: Extraction von TC Daten, SubAction: I_IR_BOM_DS_extract
New: 2.1210;20.02.2015;S.Gueth

CLA CommandLineArguments:
-------------------------

JobManagerCmdTools.exe 
-Action					"TcExtractData_2013_10"
-SubAction				"I_IR_BOM_DS_extract"
-JobRoot_DP				"C:\tmp"
-JobMgrDataOrg_Root_DP  "V:\JobManagerV3\90-DATA\JobMgrDataOrg" 
-TnsNames_dpne			"V:\JobManager\ProgEntw\Ver03\JobManagerV3\01-BinServer.Custom\TnsAdmin\tnsnames.ora"
-DbNetworkAlias			"tc83"
-u						"infodba" 
-p						"infodba"
-TcSQL_DP				#TcSQL_DP#
-OraClient_DP			"V:\JobManager\ProgEntw\Ver03\JobManagerV3\03-BinPublic\OraClient"
-SqlScript_DPNE         "V:\JobManager\ProgEntw\Ver03\test.sql"
-extract_PrePost        "pre"
-VolumeReplaceFile_DPNE "C:\volume\replace\file.txt" (otpional: replaces given string with another for named ref file, content: share1;share223)


#Doc: New: 2.1210;23.02.2015;S.Gueth, first example, some required parameters missing
-Action "TcExtractData_2013_10" -SubAction "I_IR_BOM_DS_extract" -JobRoot_DP "V:\CustomersDataL\tbvc\2015-02-23-ExampleData\JobTest_Extract_I_IR_BOM_DS_Infos" -JobMgrDataOrg_Root_DP "V:\CustomersDataL\tbvc\2015-02-23-ExampleData\JobMgrDataOrg" -extract_PrePost "pre" -TcSQL_DP "V:\JobManager\ProgEntw\Ver03\JobManagerV3\02-BinClient.Custom\_CustomTcSQL\HIL_QS" -JobData1ToProcessDoPrint -JobData2ResultsDoPrint -JobParaDoPrint -PauseOnEnd -verbose
-Action "TcExtractData_2013_10" -SubAction "I_IR_BOM_DS_extract" -JobRoot_DP "V:\CustomersDataL\tbvc\2015-02-23-ExampleData\JobTest_Extract_I_IR_BOM_DS_Infos" -JobMgrDataOrg_Root_DP "V:\CustomersDataL\tbvc\2015-02-23-ExampleData\JobMgrDataOrg" -extract_PrePost "pre" -TcSQL_DP "V:\JobManager\ProgEntw\Ver03\JobManagerV3\02-BinClient.Custom\_CustomTcSQL\HIL_QS" -JobData1ToProcessDoPrint -JobData2ResultsDoPrint -JobParaDoPrint -PauseOnEnd -verbose -I_IR_BOM_DS_extract_DBProvider SQLClient -I_IR_BOM_DS_extract_ConnectionString "Data Source=ADDPLM-01\SQLEXPRESS;Initial Catalog=BizQS;User ID=sa;Password=Infodba100;Connection Timeout=60;Persist Security Info=True;MultipleActiveResultSets=True;" -I_IR_BOM_DS_extract_FromSiteID HIL_QS -I_IR_BOM_DS_extract_TCArchitecture TCEng


-Action TcExtractData_2013_10 -Subaction I_IR_BOM_DS_extract -JobRoot_DP V:\CustomersDataL\tbvc\2015-05-20-ExampleData\tcconsnb_DSEvalExtractPost_RUN_25928_VC -JobMgrDataOrg_Root_DP \\TDSAPP002.global.dir\JobManagerV3\90-DATA\VC_WorkInst_TestSystem\12-Data\JobMgrData -extract_PrePost post -TcSQL_DP \\TDSAPP002.global.dir\JobManagerV3\02-BinClient.Custom\_CustomTcSQL\tccons -JobData1ToProcessDoPrint -JobData2ResultsDoPrint -JobParaDoPrint -I_IR_BOM_DS_extract_FromSiteID tccons -pauseonend
-Action TcExtractData_2013_10 -Subaction I_IR_BOM_DS_extract -JobRoot_DP V:\CustomersDataL\tbvc\2015-05-20-ExampleData\tcconsnb_DSEvalExtractPost_RUN_25929_VC -JobMgrDataOrg_Root_DP \\TDSAPP002.global.dir\JobManagerV3\90-DATA\VC_WorkInst_TestSystem\12-Data\JobMgrData -extract_PrePost post -TcSQL_DP \\TDSAPP002.global.dir\JobManagerV3\02-BinClient.Custom\_CustomTcSQL\tccons -JobData1ToProcessDoPrint -JobData2ResultsDoPrint -JobParaDoPrint -I_IR_BOM_DS_extract_FromSiteID tccons -pauseonend

#Doc: New: 2.1217;28.08.2015;S.Gueth
-Action TcExtractData_2013_10 -Subaction I_IR_BOM_DS_extract -JobRoot_DP V:\CustomersDataL\tbvc\2015-05-20-ExampleData\tcconsnb_DSEvalExtractPost_RUN_25929_VC -JobMgrDataOrg_Root_DP V:\CustomersDataL\tbvc\JobMgrData -extract_PrePost pre -TcSQL_DP \\TDSAPP002.global.dir\JobManagerV3\02-BinClient.Custom\_CustomTcSQL\tccons -JobData1ToProcessDoPrint -JobData2ResultsDoPrint -JobParaDoPrint -I_IR_BOM_DS_extract_FromSiteID tccons -pauseonend
-Action TcExtractData_2013_10 -Subaction I_IR_BOM_DS_extract -JobRoot_DP V:\CustomersDataL\tbvc\2015-05-20-ExampleData\tcconsnb_DSEvalExtractPost_RUN_25929_VC -JobMgrDataOrg_Root_DP V:\CustomersDataL\tbvc\JobMgrData -extract_PrePost post -TcSQL_DP \\TDSAPP002.global.dir\JobManagerV3\02-BinClient.Custom\_CustomTcSQL\tccons -JobData1ToProcessDoPrint -JobData2ResultsDoPrint -JobParaDoPrint -I_IR_BOM_DS_extract_FromSiteID tccons -pauseonend



--------------------------------------------------------------------------------------------------------------------------------------------------------------------
#Doc: Aktion: Extraction von TC Daten, SubAction: BOMs_eXtract_for_JobData1ToProcess


CLA CommandLineArguments:
-------------------------

JobManagerCmdTools.exe 
-Action							"TcExtractData_2013_10"
-SubAction						"BOMs_eXtract_for_JobData1ToProcess"
-JobRoot_DP						"C:\temp\JopRoot\DP"
-BOMs_eXtract_IrData_Root_DP	"C:\BOM\Extract\Root\DP"
-BOMs_eXtract_prePost           "pre"
-TcSQL_DP                       #TcSQL_DP#


Example:
#New: 3.1419;09.08.2017;S.Gueth
-Action "TcExtractData_2013_10" -SubAction "BOMs_eXtract_for_JobData1ToProcess" -JobRoot_DP "V:\CustomersDataL\BuS\2017-08-09-ExampleData\IMA2_RfAP_Test_00007_BuS" -BOMs_eXtract_prePost "pre" -BOMs_eXtract_IrData_Root_DP "V:\CustomersDataL\BuS\2017-08-09-ExampleData\IMA2_RfAP_Test_00007_BuS\JobTempSO/BOMData" -JobData2ResultsDoPrint -verbose -pauseOnEnd



--------------------------------------------------------------------------------------------------------------------------------------------------------------------
#Doc: Aktion: Extraction von TC Daten, SubAction: TCDataExtract_ForRefile


CLA CommandLineArguments:
-------------------------

JobManagerCmdTools.exe 
-Action							"TcExtractData_2013_10"
-SubAction						"TCDataExtract"
-JobRoot_DP						"C:\temp\JopRoot\DP"
-BOMs_eXtract_IrData_Root_DP	"C:\BOM\Extract\Root\DP"
-NamedRefsExtractDir_DP         "C:\NamedRefsExtract\Dir"
-eXtract_prePost                "pre"
-TcSQL_DP                       #TcSQL_DP#

#New: 3.1456;08.03.2018;J.Fes
-Action "TcExtractData_2013_10" -SubAction "TCDataExtract_ForRefile" -JobRoot_DP "V:\CustomersDataL\BuS\2017-08-09-ExampleData\IMA2_RfAP_Test_00007_BuS" -BOMs_eXtract_prePost "pre" -BOMs_eXtract_IrData_Root_DP "V:\CustomersDataL\BuS\2017-08-09-ExampleData\IMA2_RfAP_Test_00007_BuS\JobTempSO/BOMData" -JobData2ResultsDoPrint -verbose -pauseOnEnd


#Doc: Aktion: Extraction von TC Daten, SubAction: BOMs_eXtract_for_JobData1ToProcess


--------------------------------------------------------------------------------------------------------------------------------------------------------------------
CLA CommandLineArguments:
-------------------------

JobManagerCmdTools.exe 
-Action				"TcExtractData_2013_10"
-SubAction			"??"
-JobRoot_DP			"C:\temp\JopRoot\DP"
-eXtract_prePost    "pre"
-TcSQL_DP           "#TcSQL_DP#"


#New: 3.1601;13.12.2021;J.Fes
-Action "TcExtractData_2013_10" 
-SubActionSettingsXml "01-ExtrDefault_#TcExtractData_2013_10_#TCDataExtract.xml"
-JobRoot_DP "V:\CustomersDataL\addPLM\2021-12-13-ExampleData\TC11ADDPLM_PUpNX12_91LoadCompYES_T_00009_CustomerNameShort"  
-eXtract_prePost "pre" 
-TcData_eXtract_DP "#JobRoot_DP#\JobTempSO\TcData" 
-TcSQL_DP "V:\JobManager\ProgEntw\Ver03\JobManagerV3\02-BinClient.Custom\_CustomTcSQL\TC11ADDPLM" 
-verbose -pauseOnEnd


 rem -- #Step: Extract from TC.DB DS_of_IR for CMM -----------------------------------------
 -Action "TcExtractData_2013_10"
 -SubAction "DS_of_IR"
 -JobRoot_DP "%CmdCurRoot_DP%"
 -DS_of_IR_Opt_GetAll_DS_and_NamedRefData_YESNO "YES"
 -TcSQL_DP "#TcSQL_DP#"
 -OraClient_DP "%OraClient_DP%"
 

 rem -- #Step: Extract DS_of_IR ------------------------------------------------------------
 #New: 3.1601;04.02.2022;J.Fes
 -SubActionSettingsXML "90-Debug-DS_of_IR_#TcExtractData_2013_10_#DS_of_IR.xml" 
 
 -Action "TcExtractData_2013_10" 
 -SubAction "DS_of_IR"
 -JobRoot_DP "V:\CustomersDataL\JobMgr\2022-02-04-ExampleData\TC11ADDPLM_PUpNX12_91LoadCompYES_T_00014_CustomerNameShort" 
 -DS_of_IR_Opt_GetAll_DS_and_NamedRefData_YESNO "NO"
 -extract_PrePost "pre" 
 -TcData_eXtract_DP "#JobRoot_DP#\JobTempSO\TcData" 
 -TcSQL_DP "V:\JobManager\ProgEntw\Ver03\JobManagerV3\02-BinClient.Custom\_CustomTcSQL\TC11ADDPLM" 
 -Verbose -PauseOnEnd  


