Oracle DBMS_TNS
Version 12.2.0.1

General Information
Library Note Morgan's Library Page Header
For how many years have you been working with physical servers that are starving your database of the memory necessary to deploy important new performance features such as the Result Cache, Memoptimize Pool, In-Memory Aggregation, In-Memory Column Store, and Full Database Caching? Too long? Contact me to learn how to improve all queries ... not just some queries.
Purpose Provides the RESOLVE_TNSNAME function to resolve a TNS name and return the corresponding Oracle Net8 connection string.
AUTHID DEFINER
Dependencies
DBMS_TNS_LIB    
Documented No
First Available 12.2.0.1
Security Model Owned by SYS with EXECUTE granted to the DBA role
Source {ORACLE_HOME}/rdbms/admin/dbmstns.sql
Subprograms
 
RESOLVE_TNSNAME (new 12.2)
Returns the resolved connect string from any configured source (tnsnames, LDAP, Easy Connect) as indicated in the sqlnet.ora names.directory_path parameter) dbms_tns.resolve_tnsname(
tns_name IN VARCHAR2)
RETURN   IN VARCHAR2;
SELECT db_link, dbms_tns.resolve_tnsname(host)
FROM dba_db_links;

DB_LINK DBMS_TNS.RESOLVE_TNSNAME(HOST)
------- ---------------------------------------------------------------------------------------
PDBPROD (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=127.0.0.1)(PORT=1521)))
        (CONNECT_DATA = (SERVICE_NAME = pdbprod)))

Related Topics
Net Services
Packages
What's New In 12cR1
What's New In 12cR2

Morgan's Library Page Footer
This site is maintained by Dan Morgan. Last Updated: This site is protected by copyright and trademark laws under U.S. and International law. © 1998-2019 Daniel A. Morgan All Rights Reserved