I am trying to connect to a Oracle database using UCP with DataDirect JDBC driver for oracle.
What is the URL tha tI need to use. I am currently using the following.
<property name="URL" value="jdbc:datadirect:oracle:TNSNamesFile=C:\\Oracle\\11.2.0\\client_1_X64\\network\\admin\\tnsnames.ora;TNSServerName=TESTA"/>
I get the error
Caused by: java.sql.SQLException: [DataDirect][Oracle JDBC Driver]A host name must be specified if a port number is specified.
Why do I get this error?
Is it possible to use UCP with DataDirect JDBC driver?
It appears your URL is correct, here is the sample URL from the documentation:
jdbc:datadirect:oracle:TNSNamesFile=c:\\oracle\\NETWORK\\ADMIN\\tnsnames.ora;
TNSServerName=FITZGERALD.SALES
You can go here for more information on connecting to Oracle database using UCP with DataDirect JDBC :
http://media.datadirect.com/download/docs/jdbc/alljdbc/userguide/jdbcoracle.11.08.html#974893
One thing you might try is using a hostname and port number, here's a sample URL:
jdbc:datadirect:oracle://server3:1521;ServiceName=ORCL;User=test;
Password=secret
Related
I have a MVC application which is using Azure SQL database for data storage. I have created a docker image for the same.
Later, I have setup Kubernetes cluster on Ubuntu 18.4 using Kubeadm. The Linux VM is is created on azure cloud.
Initially, i have deployed my app on the single node cluster and the application was working as expected without any SQL connection issue. Then I have created two VM on the cloud and used it as Node 1 (master) and Node 2. Now i am facing an SQL connection issue after deploying my app on Node 2 machine.
Unhandled Exception: System.Data.SqlClient.SqlException: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: TCP Provider, error: 35 - An internal exception was caught) ---> System.Net.Internals.SocketExceptionFactory+ExtendedSocketException: Resource temporarily unavailable
I tried and verified below options-
Added IPs to Azure SQL database firewall settings
From Linux Machine, tried to connect SQL database using sqlcmd
POD network is install correctly (calico)
Tried adding outbound rule for SQL port 1433 on VM
I have created a SQL database on VM and tried to connect this database from MVC app and it is also working.
Can someone please help me to diagnose and fix this issue? Please let me know if you want more details on this.
I have a Neo4J EC2 instance on AWS. I am able to access it programmatically, but when I try to access the Neo4J browser I get the error listed above. The URL I am using currently is:
http://35.174.211.60:7474/browser/
From there, I get the following page:
This page then tries to call the following URL:
bolt://35.174.211.60:7687
I use the username (neo4j) and password that already allows my code to access the Neo4J programmatically. From here I get the following error:
ServiceUnavailable: WebSocket connection failure. Due to security constraints in your web browser, the reason for the failure is not available to this Neo4j Driver.
I have verified that ports 7474, 7473, and 7687 are open to all in my EC2 Neo4J instance. What should I try next?
Try the fix suggested by this Knowledge Base article:
This error can be resolved by editing the file
$NEO4J_HOME/conf/neo4j.conf and uncommenting:
#To have Bolt accept non-local connections, uncomment this line:
dbms.connector.bolt.address=0.0.0.0:7687
Using the Azure SDK for iOS, I have an app writing to the database. I'm now trying to configure a query using ODBC and Excel. As I'm on a Mac, only JDBC is an option.
JDBC connection only gives "Network error IOException: Connection refused"
I have setup up the Azure firewall settings for the machine IP.
Anyone with any Azure/iOS dev experience?
Thanks
Martin
Please use Microsoft JDBC Driver and make sure your connection string conforms SQL Azure Connection string. Required properties are:
Encrypt=True
Trusted_Connection=false
Database=[database name]
You shall have no issues with this setup.
I have installed a Neo4J instance on my server on port 7474. My domain is also using that server and I want webadmin to be used remotely with a username and a password like this:
example.com:7474
Is there a way to do that? I could not find any guideline in the Neo4J documentation.
Did you get a chance to go through Neo4j Server Configuration documentation? It says:
#allow any client to connect
org.neo4j.server.webserver.address=0.0.0.0
This line in conf/neo4j-server.properties is commented by default and limits access to port 7474 to localhost or 127.0.0.1 (which probably is the reason why things work for your domain using that server and accessing Neo4j over localhost). Uncomment that line and it should make port 7474 accessible to everyone i.e. 0.0.0.0.
In order to secure your Neo4j server with an Authorization layer, you might want to refer Securing access to the Neo4j Server documentation.
In my case on ubuntu the line to uncomment was
dbms.connector.http.address=0.0.0.0:7474
File location
Ubuntu: /etc/neo4j/neo4j.conf
Neo4j 3.0.6
I got issues connecting to our remote HornetQ JMS-Provider (2.2.5, standalone) via JNDI on the standard port 1099. I try this not by code but via the tool JMS Browser.
When connecting against a local hornetq instance everything works fine.
The error I get is:
10:10:38.805 Error connecting to head-sa: Connection refused to host: 127.0.0.1; nested exception is:
And that's it. No stacktrace in the ui or in any log.
Testing with telnet give me another insight, it works fine and gave me (beside of the cryptic serialized rmi objects) the following String:
# telnet remoteserver 1099
Trying 193.164.8.162...
Connected to remoteserver.
Escape character is '^]'.
��srjava.rmi.MarshalledObject|���c�>.. and so on
UnicastRef2 127.0.0.1Jk��`�w�xConnection closed by foreign host.
Now the interessting part is UnicastRef2 127.0.0.1, which might be (but hasn't to be) a configuration issue with hornetq-configuration.xml or hornetq-jms.xml. Those are very standard on my remote host, except on hornetq-configuration.xml:
<acceptor name="netty">
<factory-class>org.hornetq.core.remoting.impl.netty.NettyAcceptorFactory</factory-class>
<param key="host" value="${hornetq.remoting.netty.host:0.0.0.0}"/>
<param key="port" value="${hornetq.remoting.netty.port:5445}"/>
</acceptor>
I even tried a tunnel to the remote host, but this gave me the same result.
Any ideas? Thanks.
I am having similar problems.
What worked for me was to configure JNDI settings in hornetq-bean.xml and the hornetq server ip as binding addresses values.