TCPRegistered PortFirewall: Usually Closed
1521

Oracle Database

What is Port 1521?

Port 1521 is the default port for Oracle Database's TNS (Transparent Network Substrate) listener, which handles incoming client connections to Oracle database instances. Oracle Database is one of the leading enterprise relational database systems, widely used in large corporations, government agencies, and financial institutions. The TNS listener manages connection requests, routing clients to the appropriate database instance or pluggable database. Oracle supports multiple authentication methods, connection pooling, and advanced security features like Transparent Data Encryption (TDE) and Oracle Advanced Security. Oracle's Real Application Clusters (RAC) use SCAN (Single Client Access Name) listeners for load-balanced access across multiple nodes.

Common Uses

  • Enterprise database client connections
  • Oracle ERP and financial application backends
  • Data warehouse and analytics platform access
  • Government and healthcare system databases

Technical Details

Port Number1521
ProtocolTCP
CategoryRegistered
Service NameOracle Database
Default FirewallUsually Closed
Port Test Commands

Copy-paste commands to check port 1521 (Oracle Database) from your terminal

Test connectivity

Netcat (nc)Check if TCP port is reachable
nc -zv example.com 1521
curl (HTTP)Test HTTP response on this port
curl -v --max-time 5 http://example.com:1521/
TelnetBasic TCP port connectivity check
telnet example.com 1521
nmapScan port 1521 with service detection
nmap -p 1521 -sV example.com
Bash /dev/tcpPure bash TCP check (no extra tools needed)
(echo > /dev/tcp/example.com/1521) 2>/dev/null && echo "open" || echo "closed"

Open port in firewall

UFW (Ubuntu / Debian)
sudo ufw allow 1521/tcp
iptables
sudo iptables -A INPUT -p tcp --dport 1521 -j ACCEPT
firewalld (RHEL / CentOS)
sudo firewall-cmd --permanent --add-port=1521/tcp && sudo firewall-cmd --reload

Security Considerations

!

Oracle databases contain some of the most sensitive enterprise data. Never expose port 1521 to the internet. Use Oracle Net encryption for all connections. Implement Oracle Database Vault and audit policies. Change default passwords for SYS, SYSTEM, and DBSNMP accounts. Use Oracle Connection Manager for additional security and filtering at the network level.

Popular Ports Reference

The most commonly used and referenced network ports

Related Ports