Open hito4t opened 8 years ago
For using database service name, use url
instead of host/database
in:
type: oracle
driver_path:.......ojdbc6.jar
url: jdbc:oracle:thin:@x.x.x.x:1524/<service_name>
out:
type: stdout
But what happened if there are multiple port or host in tnsname.ora
file?
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = x.x.x.x)(PORT = 1524))
(ADDRESS = (PROTOCOL = TCP)(HOST = x.x.x.x)(PORT = 1525))
(LOAD_BALANCE = ON)
(FAILOVER = ON)
)
Oracle JDBC Thin Driver doesn't use tnsname.ora
by default.
So embulk-output-oracle will connect to x.x.x.x:1524
as written in url
.
Thanks @hito4t !
I create a PR for this issue.
Now
database
means SID. For using database service name, must set full JDBC URL, but it is inconvenient.