How to connect database with test complete tool - testcomplete

I want to connect with my MySQL database with the help of test complete. I am able to connect with MySQL Work Bench but I never try with test complete tool.

you can use a script in any language php, python, java ....etc. and call it with test complete
for example to use python you can use this code
import mysql.connector
cnx = mysql.connector.connect(user='scott', password='tiger',
host='127.0.0.1',
database='employees')
cnx.close()
you find read more here
http://dev.mysql.com/doc/connector-python/en/connector-python-example-connecting.html
good luck!

You can use the corresponding OLE DB or ODBC Provider to work with your database from TestComplete. Find a suitable connection string here and then use one of the approaches to work with a DB described in the Working With Databases help topic.
Please note that you may need to download and install MySQL OLE DB or ODBC Provider first.

Related

Not able to create connection on oracle sql developer tool

I'm trying to create a new connection on the Oracle SQL Developer tool but I'm not able to. I just simply download the latest version of oracle SQL developer tool from the oracle site and unzip the folder and run. I haven't set any password or anything because there is nothing to do so.
Please guide how I can make a local connection on oracle Sql developer tool.
Well based on what you have described, you only installed SQL Developer, without having the Oracle Client installed on your device.
To be able to connec to to something in SQL Developer, you need to have a database to which you would like to connect. That basically means that either you need to install one, or you have one available in your System. But I will assume that you are new to this and have no database to connect to.
First things first, you will need to install the Oracle Client. A pretty good example can be found on here. You have a video tutorial which contains a step by step guide.
Once you finished installing the Oracle Client, you can proceed with unlocking the basic HR Schema, or create your own DB Schema. Again, a tutorial on how to achieve this step can be found here.
There are a few steps to follow, but in the end, if you follow them accordingly, you will be able to make a local connection on oracle using SQL Developer. Besides that, both the links will provide you with some explanation as well for each particular task.

Postgres and oracle in one project

In my project, I should receive data from the oracle and after processing it, write it to postgres, in my case, I need to use mybatis to communicate with the database. Can I connect to different databases in one project?(Postgres, Oracle) Have you faced such a situation?
If so, how do configure the datasourse? I need advice, thanks in advance. It will be great to see code examples

How to replicate existing OracleRDB ODBC connection in Oracle's SQL Developer application?

I am new to Oracle database in general, but I'm attempting to get Oracle's SQL Developer running on a workstation that has pre-configured System DSNs created for an OracleRDB database. I've confirmed the ODBC connections are working because I can use MS Access to connect and link to the tables. The "test" options within ODBC also succeed. Now I am trying to get a similar connection created using SQL Developer so I can see the column types and write queries in a more useful editor.
Here's what I have available when examining the ODBC connection properties:
Now I'm trying to create a duplicate connection in SQL Developer, but I'm at a loss for why things don't work. I first tried using the default SQL Developer installation, but couldn't get things working. Then I discovered there's an OracleRDB extension available, so I installed that, but I keep getting this error when attempting to use similar values:
As I stated, these ODBC connections were pre-configured on the workstation I'm using, so I don't know anything more than what is provided by the Oracle ODBC driver window.
Is there something obvious I'm not seeing or doing to replicate this connection in SQL Developer? Or perhaps something else I can do to debug this to learn more?
UPDATE
On the advice of one answer I'm trying to make the connection with JDBC, but having a hard time understanding what I'm doing wrong. Here's another screenshot with the connection parameters I have available, but with the server and database names changed:
With these values (the port came from my tnsnames.ora file), if I try to make a JDBC connection I keep getting the following error from SQL Developer:
One final attempt I did was to use the proper values in the Oracle RDB tab, and when I use them and click 'test' the Testing Connection dialog just spins and never seems to return:
So I apologize for the long post here, but I'm struggling because there's just something I am really not understanding about how this all works. I appreciate everyone who took the time to read this question.
Oracle SQL Developer is a Java Application. You'll need to get the JDBC Driver for RDB.
Once you have that, in the SQL Developer preferences, find the Third Party JDBC section, and then use that to add an entry and point to the JAR for what you just installed.
Step by step instructions here.
Working connection string for RDB Thin Driver:
RDB_DB_CONN_STR = "jdbc:rdbThin://node.myplace.com:1707/";
where node.myplace.com is the name of the OpenVMS node hosting the RDB Thin Driver, 1707 is the port number assigned to the RDB Thin Driver.

mirth can connect with Cache,sybase,informix database?

I want to know that mirth can connect with other database like(cache,sybase,informix).
I am getting no way to connect all above database using mirth
because In Mcsm(mirth connect server manager) there is only few database option like(postgres,durby,oracle,mysql).
so is there any alternate way to use url of (cache,informaix database) in mcsm.
please help me any help is highly apprecialble.
derby
postgres
mysql
oracle
Sql server2000
sql server
-These are the various different RDBMS system that Mirth can support at this moment in the latest version 2.2.2.6388
Having said that, it means that the mirthdb the database that mirth uses for its integration purpose can be configured/installed on any of the above RDBMS systems, most of the times its either postgre or mysql.
Other than this, there is no other means of connecting to informix (even though I would love to see that happen), that depends on Mirth corp.
If you have a JDBC driver (.jar file) for the other database(s), you could try these steps:
Add the .jar file to the $MIRTH_HOME/custom-lib directory
Add/Change a driver entry to the file $MIRTH_HOME/conf/dbdrivers.xml
I'm not sure if that will let you choose other databases in MCSM or only allows you to choose them in Mirth channels (Database Reader, Database Writer, etc), but it's worth a try. I am unable to test it right now.
See http://www.mirthcorp.com/community/wiki/display/mirth/Server+Configuration

Importing Data from a Microsoft Access File on a Mac

I have an MS-Access mdb file that I need to import data from into my mysql instance. I am on a mac, is there any free/OSS tools that allow me to do that? If not, is there a free/OSS JDBC driver that I can use to extract the data I need?
Thanks.
Have a look at Jackcess. Note that this doesn't support Access 97 databases, however, only 2000+.
For Access 97, the only thing I'm aware of is mdbtools, but that's a C library, so you'll have to write some JNI glue code if you want to use it from Java; also, it's not maintained anymore, to the best of my knowledge.
UCanAccess is a pure-Java JDBC driver that can read from and write to Access 2000 and newer databases. (Access 97 files are supported read-only.) It will work on any machine that runs Java.
For more details see
Manipulating an Access database from Java without ODBC
Is your Access MDB on mac?
Does the mac Access have the option of using linked tables?
If so, you can create a Linked Table from Access MDB to mySQL. Then, you could treat mysql tables as if it were part of MS-Access.
EDIT: See if this helps.
You could export the MDB file using something like this. This won't help you if you need to do it from within your app, but if you are ok exporting the data then using it, then this should help.
I do the following way to convert;
Download ACCDB MDB Explorer
http://accdb-mdb-explorer.en.softonic.com/mac
Open the MDB file
Export as SQL
Import in MySQL using MySQL Workbench.
Hope it helps..

Resources