Understanding SQL*Net

Contents Glossary Index Home Previous Next

Further Syntax Rules for TNS Configuration Files

The following rules apply to the syntax of configuration files:

		(COMMUNITY = "West Central") 

Network Character Set

The network character set consists of the following characters. Values given for keywords must be made up only of characters in this set. Connect descriptors must be made up of single-byte characters.

		A-Z, a-z
		0-9
		( ) < > / \ 
		, . : ; ' " = - _ 
		$ + * # & ! % ? @ 

Within this character set, the following symbols are reserved:

		(  ) = \ " ' # 

Reserved symbols should be used only as delimiters, not as part of a keyword or a value unless the keyword or value is quoted. Either single or double quotes can be used to enclose a value containing reserved symbols. To include a quote within a value that is surrounded by quotes, use different quote types. The backslash (\) is used as an escape character.

A specific example of the use of reserved symbols is in a numeric DECnet object within a DECnet address. As defined by DECnet, an OBJECT can be a name such as ABC or a value such as #123. These would be entered in the form:

(OBJECT=ABC)

or

(OBJECT=\#123) 

The numeric DECnet object requires a symbol that is reserved by TNS. Because # is a reserved symbol, the character must be preceded by a backslash. See the Oracle Protocol Adapter information for your platform for further details on DECnet.

The following characters can be used within the structure of a connect descriptor, but cannot be part of a keyword or value:

		<space> <tab> <CR> <newline>

Service Name Character Set

The listener name, service name, and Interchange names used in TNS configuration files are limited to the following character set:

[a...z] [A...Z] [0...9] _ 

The first character in a service name must be an alphabetic character. The number of characters allowed is platform specific; in general, however, up to 64 characters is acceptable. A database service name must match the global database name defined by the DBA. It consists of a database name (originally limited to eight characters), and the database domains. Service names and global database names are not case sensitive.

Note: Network Manager uses periods (.) when it appends domains to the names you enter, but it does not accept periods in the name you provide.


Contents Glossary Index Home Previous Next