2. If the graph of the quadratic function $y=(x-3)^{2}-2$ intersects the $x$-axis at two points $\left(x_{1}, 0\right),\left(x_{2}, 0\right)$, then $\frac{\sqrt{x_{1} x_{2}}+x_{1}}{x_{2}+\sqrt{x_{1} x_{2}}}+\frac{\sqrt{x_{1} x_{2}}-x_{2}}{x_{1}-\sqrt{x_{1} x_{2}}}=(\quad)$.
(A) $\frac{12 \sqrt{13}}{13}$
(B) $\frac{10 \sqrt{11}}{11}$
(C) $\frac{6 \sqrt{7}}{7}$
(D) $\frac{4 \sqrt{5}}{5}$
2. C.

According to the problem, we have $y=x^{2}-6 x+7$.
By Vieta's formulas, we get
$$
\begin{array}{l}
x_{1}+x_{2}=6, x_{1} x_{2}=7 . \\
\text { Therefore, the original expression }=\frac{\sqrt{x_{1}}}{\sqrt{x_{2}}}+\frac{\sqrt{x_{2}}}{\sqrt{x_{1}}}=\frac{x_{1}+x_{2}}{\sqrt{x_{1} x_{2}}}=\frac{6 \sqrt{7}}{7} .
\end{array}
$$