"Oracle" (Data Connection)
"Oracle" (Data Connection)
Details
- Use DataConnectionObject to represent data located in an Oracle database in Wolfram Language.
- Import can be used to retrieve data from a DataConnectionObject.
- RelationalDatabase can be used to represent the schema of a "Oracle" database.
Properties
| "ConnectionName" | "Oracle" | |
| "Location" | SQL query given as a string | |
| "Redownload" | whether to rerun the query and overwrite cached results |
| "DatabaseName" | string giving the database to access | |
| "Host" | the host servicing the database |
| "Port" | the server port to access the database |
| "query" | SQL query given as a string |
Supported Types
| BFILE, BLOB, RAW | ByteArray | |
| DATE | DateObject with instant granularity | |
| TIMESTAMP | DateObject with instant granularity and time zone support | |
| NUMBER | Real with fixed precision | |
| INTEGER | Integer | |
| BINARY_DOUBLE, BINARY_FLOAT, FLOAT | Real | |
| CHAR, CLOB, LONG, NCLOB, NVARCHAR, NVARCHAR2, ROWID, VARCHAR, VARCHAR2 | String |
Account Setting & Authentication
| Automatic | attempt to use saved credentials or give a dialog | |
| "Dialog" | give authentication parameters via a dialog | |
| SystemCredential["key"] | retrieve authentication information from secure storage | |
| SystemCredentialData[…] | stored authentication data | |
| assoc | provide explicit credentials |
| "Username" | username | |
| "Password" | password |
Examples
Basic Examples (2)
Create a DataConnectionObject to data from an Oracle query:
DataConnectionObject[<|"ConnectionName" -> "Oracle", "DatabaseName" -> "dbname", "Host" -> "my.host.com", "Location" -> "SELECT * FROM users"|>, Authentication -> <|"Username" -> "reader1", "Password" -> "reader1"|>]Retrieve the data using Import:
Import@DataConnectionObject[<|"ConnectionName" -> "Oracle", "DatabaseName" -> "dbname", "Host" -> "my.host.com", "Location" -> "SELECT * FROM table"|>, Authentication -> <|"Username" -> "user", "Password" -> "pass"|>]See Also
DataConnectionObject Import DatabaseReference RelationalDatabase
Data Connections: SQLite PostgreSQL MySQL MicrosoftSQL