I want to make oracle database connection through google script.
I am using below connection string:
var conn = Jdbc.getConnection("jdbc:oracle:thin:#//127.0.0.1:1521/XE", "username", "pwd");
and getting error as
We're sorry, a server error occurred. Please wait a bit and try
again. (line 24, file "DatabaseConnection").
Could anyone suggest what I'm doing wrong?
Apps Script can connect to a server which is reachable over a public IP address. I can see that you are using the localhost IP address which will definitely not be reachable from Apps Script Servers.
You can check the requirement in more detail on Google Apps Script JDBC Service Requirement. You can follow below link.
Google Apps Script Docs : Setup for other databases
Related
We are suddenly getting the error ORA-12514, TNS:listener does not currently know of service requested in connect descriptor in our application.
Googling this seems to suggest a couple of easy solutions (e.g. found here), but they don't work for us.
The perplexing thing is:
We can connect via SSH to the server running our application, and..
we can connect with SQLPlus on that server, ..
using the exact same JDBC connection parameters as the app (we can get them from a log during application startup, so we are sure they are the same).
Why could it be that we can connect to the DB with SQLPlus, but our app cannot?
Here are the two methods to connect (JDBC and SQLPlus), both consistently anonymised:
JDBC
{
jdbcDriver=oracle.jdbc.OracleDriver,
jdbcUser=THE_USER,
jdbcPassword=THE_PASSWORD,
configurationVersion=1.0.14,
jdbcURL=jdbc:oracle:thin:#(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(Host=THE_HOST)(Port=THE_PORT))(CONNECT_DATA=(SERVICE_NAME=THE_SERVICE_NAME)))
}
SQLPlus
sqlplus THE_USER/'THE_PASSWORD#'"(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(Host=THE_HOST)(Port=THE_PORT))(CONNECT_DATA=(SERVICE_NAME=THE_SERVICE_NAME)))"
According to our DB specialist there were "wrong entries in Oracle Internet Directory (OID)".
They cleaned it up and now it ist working again. Sorry that this is not very helpful as an answer, but I don't know more details...
I am trying to install Informatica Server.
During domain configuration repository database information I get database connectivity error.
Error: Test Connection Failed. Correct the database connection information and test the connection again.
But when I connect using same details through Oracle SQL Developer to this database, it works fine.
I am using service name and port number field from the TNS File, still getting this error.
I think you can check tomcat log, catalina.out logs. This will help on finding out real issue.
Go to command prompt and type ping localhost and see if its responding anything. May be you can use IP and check host file.
We are trying to make a connection from PowerBI Desktop, to the Google Big Query Database. Upon starting the app and immediately after trying to make the connection to the Google Data Source, we get the error below:
Unable to Connect
We encountered an error.
Details: "ODBC: ERROR [HY000] [Microsoft][DriverOAuthSupport] (8701) Error interacting with REST API: Couldn't resolve host name
ERROR [HY000] [Microsoft][DriverOAuthSupport] (8701) Error interacting with REST
API: Couldn't resolve host name"
I suppose that it has something to do with the proxy used inside our corporate environment but i haven't found anything so far on what urls/ports should be opened in order for this connection to work.
Please do keep in mind that this is a new business need and it is not something that worked and stopped working.
I am trying to use MySQL Cluster 7.5 version , after opening the web browser and clicking on :create new MySQL cluster", and getting in the "define cluster" page , I write the IP of the remote data node in to the host list field ,but I get error which say "there were errors when connecting to the remote hosts, host 172.16.1.129: couldn't open socket to 172.16.1.129 ,press'ok to continue to the next page anyway, or cancel to stay in the previous page"
I turned off windows firewall options too, but no luck,
what is the cause of this error and how to solve it?
What are the essential steps to install/configure in remote pc (data node).?
Thanks a lot
https://www.mysql.com/support/supportedplatforms/cluster.html
Did you check this? if you OS supports?
This has nothing to do with supported platforms. My guess is the credentials you used to connect to nodes are bad. In that version of MySQL NDB Cluster autoinstaller you can provide only Cluster-wide credentials, i.e. one credentials for all the hosts. Those credentials could be a) private key without passphrase (idrsa in ~/.ssh) or b) ordinary username/password. Please see html help file that comes with Autoinstaller for details.
I am knocking together a short program mainly to try and learn some basics. I am finding an issue with this part of code:
{
MySqlConnection connection = new MySqlConnection("server=serverT;User Id=user;password=password;database=healer");
connection.Open();
MySqlDataReader reader = new MySqlCommand("SELECT version FROM version", connection).ExecuteReader();
reader.Read();
etc etc etc
}
Now when i build and run this, It works perfectly, no problems whatsoever, it connects up and i can read without any issue.. (The server is hosted online btw)
When i give out the exe/mysql.data.dll to anyone to run, they are thrown the exception of being unable to connect to any sql host.
I just cant see why I can connect, and they can't. I have tried this now on 3 other remote machines and they all fail to connect, but Mine works OK.
There are no access rules on the hosted sql database, I am allowing access from all IPs
Can anyone shed any light?
You are hard coding the connection string into your code. Your clients have a different server therefore they need a different connection string.
You need to create a form or a config file where the connection parameters are retrieved from.
Please read this:
http://msdn.microsoft.com/en-us/library/ms254494.aspx