First observations and measurements of the branching fractions of the $bar{B}_s^0to D^+D^-$, $bar{B}_s^0to D_s^+D^-$ and $bar{B}_s^0to D^0bar{D}^0$ decays are presented using 1.0 fb$^{-1}$ of data collected by the LHCb experiment. These branching fractions are normalized to those of $bar{B}^0to D^+D^-$, $B^0to D_s^+D^-$ and $B^-to D^0D_s^-$, respectively. An excess of events consistent with the decay $bar{B}^0to D^0bar{D}^0$ is also seen, and its branching fraction is measured relative to that of $B^-to D^0D_s^-$. Improved measurements of the branching fractions ${cal{B}}(bar{B}_s^0to D_s^+D_s^-)$ and ${cal{B}}(B^-to D^0D_s^-)$ are reported, each relative to ${cal{B}}(B^0to D_s^+D^-)$. The ratios of branching fractions are {-0.2in} {center} {align*} {{cal{B}}(bar{B}_s^0to D^+D^-)over {cal{B}}(bar{B}^0to D^+D^-)} &= 1.08pm 0.20pm0.10, {{cal{B}}(bar{B}_s^0to D_s^+D^-)over {cal{B}}(B^0to D_s^+D^-)} &= 0.050pm 0.008pm0.004, {{cal{B}}(bar{B}_s^0to D^0bar{D}^0)over {cal{B}}(B^-to D^0D_s^-)} &= 0.019pm 0.003pm0.003, {{cal{B}}(bar{B}^0to D^0bar{D}^0)over {cal{B}}(B^-to D^0D_s^-)} &= 0.0014pm 0.0006pm0.0002,{{cal{B}}(bar{B}_s^0to D_s^+D_s^-)over {cal{B}}(B^0to D_s^+D^-)} &= 0.56pm 0.03pm0.04, {{cal{B}}(B^-to D^0D_s^-)over {cal{B}}(B^0to D_s^+D^-)} &= 1.22pm 0.02pm0.07, {align*} {center} oindent where the uncertainties are statistical and systematic, respectively.