What is considered a primary source varies somewhat by discipline. However, below are some general guidelines:
A secondary source is based on other sources. It includes analysis, criticism, or other intellectual input. Review articles are based on analysis of the published 'literature' (books, articles and dissertations about the topic). Secondary sources can include books, book chapters, articles, especially literature reviews, and some book reviews.
A tertiary source is commonly a resource or tool that helps people find primary or secondary sources. Tertiary sources include most bibliographies, databases and indexes, and library catalogs.