Mil e um diretório em gerenciamento de dados mestre da Rostelecom

Olá! Em contato, Alexander Kivaev, chefe do departamento de gerenciamento de informações de referência na equipe de gerenciamento de dados da Rostelecom . Se a sua empresa implementou e está operando efetivamente um sistema MDM, considere que você acertou o jackpot, porque isso irá facilitar muito o processo de introdução de novos sistemas de informação na infraestrutura de TI da empresa, simplificar e reduzir o custo de integração dos sistemas existentes, e permitem que você crie relatórios analíticos e de gerenciamento de alta qualidade, enquanto reduz o tempo de processamento, atualização e verificação de dados.





São esses benefícios que motivam grandes empresas a implementar soluções de MDM. Neste artigo, queremos falar sobre a experiência de implementação do sistema de gerenciamento de dados mestre Rostelecom, quais as dificuldades que encontramos e como conseguimos resolvê-las.





MDM fora da caixa

Escolhemos o Microsoft Master Data Services (MDS) como a principal solução para a construção de um sistema de gerenciamento de dados mestre . O MDS está disponível para empresas que usam o Microsoft SQL Server Enterprise Edition a partir de 2014. O MDS está incluso no pacote e não exige custos adicionais de licenciamento, o que foi um dos fatores determinantes na escolha deste produto.





. , MDM- , «» - .   , MDM- -, MDM- -, , .





… …

. , ERP, CRM, .





, , . , , . , - , -, .





- -, , .





Master Data Management

, , , . .





  1. MDM :





  2. .





  3. , -. - Extract Transfom Load (ETL). , Landing.





  4. . MDM. , Staging.





  5. Staging .





  6. , - . .





  7. - .





MDM , BI, .





Microsoft MDS

Microsoft MDS , . , MDS , . , . .





, , Master Data Services :





  • .





  • - .





MDS, . , , , MDM.





MDS MDM

- MDS, , , . :





  1. , Landing. ETL , -. .





  2. , -. Landing Staging MDS ( MDS, stg). , - .





  3. MDS, Staging MDS.





:





MDM, .





MDS





- MDS, MDS -:





:





  • - – , MDS;





  • – MDS;





  • - – , MDS.





MDS

, , MDS, , .





, -, , – , . MDS – , . « ».





, – . : , MDS .





MDS, :





Landing

Landing , – - , .





, «», Service. , -, SERVICE_000085.





Landing :





  • lnd.SERVICE_000085;





  • lnd.Load_SERVICE_000085.





, :





CREATE TABLE lnd.SERVICE_000085(
	code nvarchar(250) NOT NULL,
       Name nvarchar(250) NOT NULL,
       business_service_key nvarchar(250) NULL,
       technology_type_key nvarchar(250) NULL,
       access_service_type_key nvarchar(250) NULL,
      [service_type_key nvarchar(250) NULL
)
      
      



:





CREATE PROCEDURE lnd.Load_SERVICE_000085
AS
BEGIN
       --    BatchTag
       declare @SourceSystem varchar(50) = 'SERVICE_000085' + '_' + getdate()
 
       --       ,   -.      mdm.SERVICE_000085_V     MDS « ».
       --     Staging.
       insert into stg.SERVICE_M_000085_Leaf
             (
             ImportType
             , ImportStatus_ID
             , BatchTag
             , Code
             , Name
             , business_service_key
             , technology_type_key
             , service_type_key
      
             )
             select
                    '0'
                    , '0'
                    , @BatchTag
                    , l.code
                    , l.Name
                    , l.business_service_key
                    , l.technology_type_key
                    , l.service_type_key
      
             from lnd.SERVICE_000085 as l
             left join mdm.SERVICE_000085_V as ve on l.code = ve.code
                    where
                           ve.code is null
      
 
       declare @count int = @@ROWCOUNT
 
       if (@count > 0)
       begin
             --    MDS      Staging  
             EXEC stg.udp_SERVICE_000085_Leaf
                    @VersionName = 'VERSION_1', 
                    @LogFlag = 1, 
                    @BatchTag = @BatchTag, 
                    @UserName = 'SI\USER'
 
       end
END
      
      



, MDS, :





, , , T-SQL .





Web Services REST

MDS - – dblink (view). , . Web Services REST, .





Web Services, , MDS, - JSON XML.





Web Services, , .





MDS

, , – .





, REST :





{"format": " ",
   "name": "_",
    "where": [
        {
            "name": "_1",
            "operator": "=",
            "value": "  "
        },
        {
            "name": "_2",
            "operator": ">=",
            "value": "  "
        }
    ]
}
      
      



:





  • format – , . : json xml;





  • "name": "_" – , ;





  • "where" , : "name": "_N" – , , "operator": "=" – . :





"where" , :





  • "name": "_N" – , ;





  • "operator": "=" – . : = , <> , > , < , >= , <= ;





  • “value”:  “ ” – , .





:





{"format": "json",
  "name": "service_000085",
    "where": [
	 {
            "name": "technology_type_key",
            "operator": "=",
            "value": "PSTN/"
        },
        {
            "name": "lastchgdatetime",
            "operator": ">",
            "value": "2018.12.31 10:30"
        }
    ]
}
      
      



MDS. mdm.tblEntity . mdm.tblAttribute .





sql- MDS, .





SQL- MDS:





select a.Name, a.AttributeType_ID, a.DataType_ID from  mdm.tblAttribute as a
	inner join  mdm.tblEntity as e on a.Entity_ID = e.id
						and e.name = 'SERVICE_000085'
      
      



sql-, , MDS « », .





Sql- :





select Code, Name, ImportType, ImportStatus_ID, business_service_key, technology_type_key, technology_type_key 
	from mdm.SERVICE_000085_V
		where technology_type_key = 'PSTN/'
		and lastchgdatetime > '2018.12.31 10:30'
      
      



, web-, , MDS .





: MDM , , , -, - .





. . MDS , .





open-source . MDM- . .





«»








All Articles