Skip to content

Commit

Permalink
updated oracle docs w alias conn & sys auth info
Browse files Browse the repository at this point in the history
  • Loading branch information
pangjunrong committed Oct 25, 2024
1 parent a387701 commit d08f6ce
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docs/databases/oracle.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Oracle

### System Authentication
```{hint}
If you want to use system authentication to access Oracle, username & password should not present in the connection string.
```

### Oracle Connection
```py
Expand All @@ -9,6 +13,14 @@ query = 'SELECT * FROM table' # query string
cx.read_sql(conn, query) # read data from Oracle
```

### Oracle TNS Alias (DNS) Connection
```py
import connectorx as cx
conn = 'oracle://username:password@alias_name?alias=true' # connection token
query = 'SELECT * FROM table' # query string
cx.read_sql(conn, query) # read data from Oracle
```

### Oracle-Pandas Type Mapping
| Oracle Type | Pandas Type | Comment |
|:-------------------------:|:---------------------------:|:----------------------------------:|
Expand Down

0 comments on commit d08f6ce

Please sign in to comment.