Comments (2)
You'll need to remove the space characters in the descriptor.
Here's some code I wrote to test this out. You can see after replace(" ", "")
, the descriptor URL does not result in an error.
import io.r2dbc.spi.ConnectionFactories;
import io.r2dbc.spi.ConnectionFactory;
public class DescriptorTest {
public static void main(String[] args) {
String descriptorUrl =
"r2dbc:oracle://?oracle.r2dbc.descriptor=(DESCRIPTION =" +
"(ADDRESS = " +
" (PROTOCOL = TCP)" +
"(HOST = hostname)(PORT = portnum))" +
" (CONNECT_DATA = " +
"(SERVER = DEDICATED)" +
" (SERVICE_NAME = servicename)))";
tryUrl(descriptorUrl);
descriptorUrl = descriptorUrl.replace(" ", "");
tryUrl(descriptorUrl);
}
static void tryUrl(String url) {
System.out.println("Trying:\n" + url);
try {
ConnectionFactory connectionFactory =
ConnectionFactories.get(url);
}
catch (Exception exception) {
System.out.println(exception.getMessage());
}
}
}
Compared to JDBC, R2DBC is more strict about the URL format. URLs must comply with RFC 3986. This is summarized in the R2DBC Specification here: https://r2dbc.io/spec/1.0.0.RELEASE/spec/html/#overview.connection.url
With this specification, a space character may not appear in the query section of the URL (the section following the ? character).
Hope this helps.
from oracle-r2dbc.
I'm closing this issue now. I hope it was resolved.
from oracle-r2dbc.
Related Issues (20)
- Sample Bug: r2dbc version
- option(OracleR2dbcOptions.TLS_SERVER_DN_MATCH, "false") does not work HOT 3
- Issue with the OracleR2dbcOptions.Executor option HOT 2
- Maven Repository v1.1.0 HOT 4
- Error occurs if ConnectionFactoryOptions.PROTOCOL option is an empty string HOT 1
- Support RETURNING * INTO HOT 2
- Unsupported Java type:class java.util.ArrayList exception when using IN clause in sql HOT 1
- Can not find oracle-r2dbc-1.1.1.pom HOT 2
- Support DML Returning for JSON Views
- Does r2dbc connection string support oracle failover ? HOT 14
- Add support to set "oracle.net.kerberos5_cc_name" programmatically (for multi datasource scenarios) HOT 1
- Issue with microservice using r2dbc oracle inside kubernetes cluster. (Request timeouts) HOT 13
- Operator has been terminated issue with RowsFetchSpec and Spring DatabaseClient HOT 6
- How to configure SECURITY=(SSL_SERVER_CERT_DN) Option in R2dbc connection String with Descriptor HOT 2
- OracleReactiveJdbcAdaptor.publishConnection should timeout if Oracle JDBC connection publisher does not resolve HOT 1
- Add JavaDoc to CI Runs
- R2DBC treating warning as exception HOT 8
- Caused by: io.r2dbc.spi.R2dbcBadGrammarException: ORA-00923 HOT 5
- Upgrade from oracle-r2dbc version 0.4.0 to 1.0.0 is resulting in class cast exception while update. HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from oracle-r2dbc.