Encountering 'ORA-12162: TNS:net service name is incorrectly specified' when running sqlplus manually

Solution Verified - Updated -

Issue

[root@satellite ~]# sqlplus $(spacewalk-cfg-get default-db)

SQL*Plus: Release 10.2.0.4.0 - Production on Sun Dec 16 22:01:27 2012

Copyright (c) 1982, 2007, Oracle.  All Rights Reserved.

Enter user-name: rhnsat
Enter password: 
ERROR:
ORA-12162: TNS:net service name is incorrectly specified

Environment

  • RHN Satellite 5.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.