To export and import .dmp files in an Oracle database using SQL, you primarily use the DBMS_DATAPUMP PL/SQL package. While most users use the command-line utilities expdp and impdp, the DBMS_DATAPUMP API allows you to perform these operations directly within a SQL environment like Oracle SQL Developer or SQL*Plus.