Skip to main content
Skip table of contents

COD license

This reports shows valid COD License data. This includes the details of the each licence along with the account device details.

Report columns 

Column name
Source DB field
Description
Account NumberCOR_ACCOUNT.ACC_NUMAccount Number to which the device belongs.
SPIDBOC_LICENSE.LIC_SPIDService Provider ID.
Device IDCOR_DEVICE_STB.CA_SNCASN (Serial Number) of the STB.
Nagra IDCOR_DEVICE_STB.NUIDNUID (Nagra UID) of the STB.
Content IDASSET.CAS_IDContent ID involved in the transaction.
Policy Group IDCOR_POLGROUP.ORIGIN_KEYProduct/Policy Group ID in the transaction.
License ReferenceCOD_LICENSE_REFPurchase Reference ID for the licence.
License Start DateCOD_LICENSE.START_DATEStart date of the license validity.
License End DateMAX(COR_ACL.EXPIRY_DATE)Expiry date of the license validity.
Purchase ItemPURCHASE_ITEMTitle of the purchased product.
Purchase ExpiryPURCHASE_EXPIRYExpiry date of the purchased item.
License StatusLICENSE_STATUSStatus of the licence; can be "ACTIVE" or "REVOKED".
Creation DateCREATION_DATEDate on which the record was created.
Origin KeyORIGIN_KEYExternal user identifier or Service Provider specific value.
Origin UIDORIGIN_UIDUID for external Origin_Key.
Modified dateMODIFIED _DATEDate on which the record was last modified.
License TypeNVL2(COR_ACL.CNSM_WN,'Relative','Absolute')License Type granted in the transaction.

Input parameters for report generation

Parameter
Type
Description
Lower date threshold of report periodDateTimeStart Date for the report, including the specified value.
Upper threshold of report periodDateTimeEnd Date for the report, including the specified value.
Service Provider IDStringThe report can be generated only for a specific service provider.

Data extraction file

cod_license_report_kettle.ktr

Query

CODE
CREATE OR REPLACE FORCE VIEW "KB_10JUL_O"."COD_LICENSE_RPT_V" ("ACCOUNT_NUMBER", "SPID", "DEVICE_ID", "NUID", "CONTENT_ID", "POL_GRP_ID", "LICENSE_REFERENCE", "LICENSE_START_DATE", "LICENSE_END_DATE", "PURCHASE_ITEM", "PURCHASE_EXPIRY", "LICENSE_STATUS", "CREATION_DATE", "ORIGIN_KEY", "ORIGIN_UID", "MODIFIED_DATE", "LICENSE_TYPE")
                                            AS
  SELECT DISTINCT ACC.ACC_NUM               AS ACCOUNT_NUMBER,
    LIC.LIC_SPID                            AS SPID,
    STB.CA_SN                               AS DEVICE_ID,
    STB.NUID                                AS NUID,
    ASS.CAS_ID                              AS CONTENT_ID,
    PGP.ORIGIN_KEY                          AS POL_GRP_ID,
    LIC.LICENSE_REF                         AS LICENSE_REFERENCE,
    LIC.START_DATE                          AS LICENSE_START_DATE,
    LIC.END_DATE                            AS LICENSE_END_DATE,
    ASS.ORIGIN_KEY                          AS PURCHASE_ITEM,
    MAX(ACL.EXPIRY_DATE)                    AS PURCHASE_EXPIRY,
    LIC.LIC_STATUS                          AS LICENSE_STATUS,
    LIC.CREATION_DATE                       AS CREATION_DATE,
    LIC.ORIGIN_KEY                          AS ORIGIN_KEY,
    LIC.ORIGIN_UID                          AS ORIGIN_UID,
    LIC.MODIFIED_DATE                       AS MODIFIED_DATE,
    NVL2(ACL.CNSM_WN,'Relative','Absolute') AS LICENSE_TYPE
  FROM cod_license LIC
  LEFT OUTER JOIN COR_DEVICE_STB STB
  ON LIC.DEV_UID = STB.DEV_UID
  LEFT OUTER JOIN COR_ACCOUNT ACC
  ON ACC.ACC_UID = LIC.ACC_UID
  LEFT OUTER JOIN COD_ASSET ASS
  ON LIC.ASS_UID = ASS.ASS_UID
  LEFT OUTER JOIN COR_ACL ACL
  ON ACL.ACC_UID        = LIC.ACC_UID
  AND ACL.SMARTCARD     = STB.SMARTCARD_ID
  AND ASS.ASS_UID       = ACL.ACL_ITEM_UID
  AND ACL.ACL_ITEM_TYPE = 'AST'
  AND ACL.ACL_STATUS    = 'S'
  LEFT OUTER JOIN COR_POLGROUP PGP
  ON PGP.POLGRP_UID   = ACL.POLGRP_UID
  WHERE LIC.END_DATE >= SYSDATE
  GROUP BY ACC.ACC_NUM,
    LIC.LIC_SPID,
    STB.CA_SN,
    STB.NUID,
    ASS.CAS_ID,
    LIC.LICENSE_REF,
    LIC.START_DATE,
    LIC.END_DATE,
    ASS.ORIGIN_KEY,
    LIC.LIC_STATUS,
    LIC.CREATION_DATE,
    LIC.ORIGIN_KEY,
    LIC.ORIGIN_UID,
    LIC.MODIFIED_DATE,
    PGP.ORIGIN_KEY,
    ACL.CNSM_WN
  ORDER BY ACC.ACC_NUM,
    STB.CA_SN,
    ASS.ORIGIN_KEY ;

BIRT design template file

cod-license-report.rptdesign

Sample report

The following image shows an example of a Cod License report:

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.