The explosive popularity of small-cell and Internet of Everything devices has tremendously increased traffic loads. This increase has revolutionised the current network into 5G technology, which demands increased capacity, high data rate and ultra-low latency. Two of the research focus areas for meeting these demands are exploring the spectrum resource and maximising the utilisation of its bands. However, the scarcity of the spectrum resource creates a serious challenge in achieving an efficient management scheme. This work aims to conduct an in-depth survey on recent spectrum sharing (SS) technologies towards 5G development and recent 5G-enabling technologies. SS techniques are classified, and SS surveys and related studies on SS techniques relevant to 5G networks are reviewed. The surveys and studies are categorised into one of the main SS techniques on the basis of network architecture, spectrum allocation behaviour and spectrum access method. Moreover, a detailed survey on cognitive radio (CR) technology in SS related to 5G implementation is performed. For a complete survey, discussions are conducted on the issues and challenges in the current implementation of SS and CR, and the means to support efficient 5G advancement are provided.