Jump to content

Connection string: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Bender the Bot (talk | contribs)
m Examples: http→https for Google Books and Google News using AWB
No edit summary
Tags: Visual edit Mobile edit Mobile web edit
Line 12: Line 12:


* on the [[command-line]] (as in: <code>sqlplus scott/tiger@connection_string</code> )
* on the [[command-line]] (as in: <code>sqlplus scott/tiger@connection_string</code> )
* via [[environment variable]]s (<code>$TWO_TASK</code> in Unix-like environments; <code>%LOCAL%</code> in Microsoft Windows environments)<ref>
* via [[environment variable]]s (<code>$TWO_TASK</code> in Unix-like environments; <code>%LOCAL%</code> in Microsoft Windows environments)<ref name=":0">
{{cite web
{{cite web
| url = http://download.oracle.com/docs/cd/B19306_01/server.102/b14357/ch2.htm#sthref360
| url = http://download.oracle.com/docs/cd/B19306_01/server.102/b14357/ch2.htm#sthref360
Line 47: Line 47:


==References==
==References==
{{reflist}}
{{reflist}}<ref name=":0" />


{{DEFAULTSORT:Connection String}}
{{DEFAULTSORT:Connection String}}

Revision as of 06:41, 1 February 2019

In computing, a connection string is a string that specifies information about a data source and the means of connecting to it. It is passed in code to an underlying driver or provider in order to initiate the connection. Whilst commonly used for a database connection, the data source could also be a spreadsheet or text file.

The connection string may include attributes such as the name of the driver, server and database, as well as security information such as user name and password.

Examples

This example shows a Postgres connection string for connecting to wikipedia.com with SSL and a connection timeout of 180 seconds:

DRIVER={PostgreSQL Unicode};SERVER=www.wikipedia.com;SSL=true;SSLMode=require;DATABASE=wiki;UID=wikiuser;Connect Timeout=180;PWD=ashiknoor

Users of Oracle databases can specify connection strings:

References

  1. ^ Watt, Simon; et al. (June 2005). "Configuring SQL*Plus". SQL*Plus User's Guide and Reference: Release 10.2. Redwood City: Oracle Corporation. Retrieved 2010-08-26. LOCAL [:] Windows environment variable to specify a connection string. Performs the same function as TWO_TASK on UNIX.
  2. ^ Kyte, Thomas (2005). Expert Oracle database architecture: 9i and 10g programming techniques and solutions. Apress series. Apress. p. 60. ISBN 978-1-59059-530-5. Retrieved 2010-08-26. The TNS connection string tells the Oracle software how to connect to the remote database. Generally, the client software [...] will read a file called tnsnames.ora. This is a plaint-text configuration file commonly found in the [ORACLE_HOME]\network\admin directory ([ORACLE_HOME] represents the full path to your Oracle installation directory).

[1]


  1. ^ Cite error: The named reference :0 was invoked but never defined (see the help page).