Star Trek: The Next Generation Season 7 Episode 17
Stardate: 47615.2. The Enterprise is slowly transformed into an ancient alien temple when Data discovers an alien archive full of information about an ancient culture. Shortly after opening the archive, Data becomes possessed with several different personalities.