?
Solved

Trying to find a connection string to unidata database IBM.UniOLEDB

Posted on 2008-10-28
4
Medium Priority
?
1,040 Views
Last Modified: 2012-05-05
connection string exact syntax is unknown and up to now can't be found by me.
0
Comment
Question by:bdpcpa
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 60

Expert Comment

by:Kevin Cross
ID: 22824653
For a linked server connection?  I have an IBM Universe / Unidata database internally that I have connected to from Java and from SQL Server so can give you want I have used.
0
 

Author Comment

by:bdpcpa
ID: 22824750
That sounds good send it over.
0
 
LVL 60

Accepted Solution

by:
Kevin Cross earned 2000 total points
ID: 22824782
It has been a while since I configured it, but what I remember doing was installing the IBM U2 developers kit which then gives you the UCI Editor which allows you to create a datasource in UCI.config.  Then in the Windows datasources you configure DSN that points to the UCI names datasource.

To connect from SQL Server, just did this:
Linked Server: {name you want}
Server type: Other data source
Provider: UniOLEDB Provider
Data source: {name of datasource}
Location: {.DB file name from Universe / Database}

I had this file in my knowledgebase, so may come in handy.
OLDB.pdf
0
 
LVL 60

Assisted Solution

by:Kevin Cross
Kevin Cross earned 2000 total points
ID: 22824933
For Java, I extended the asjava.uniobjects.UniSession object from the IBM U2 SDK which has methods to setUserName(String), setPassword(String), setHostName(String), setAccountPath(String) and then here is an example of my methods to login() and logout():
/*
* @see UniSession#connect()
	 */
public boolean login() {
		if(this.isActive()) return true;
		try { 
			this.connect(); 
			return true;		
		} catch(Exception e) {
			System.err.println("\n" + Calendar.getInstance().getTime().toString() + "\n");
			System.err.println(e.getMessage());
			System.err.println("Cause: " + e.getCause() + "\n");
		}
		return false;
	}
/*
* @see UniSession#disconnect()
	 */
public void logout() {
		try { 
			this.disconnect(); 
		} catch(Exception e) {
			System.err.println("\n" + Calendar.getInstance().getTime().toString() + "\n");
			System.err.println(e.getMessage());
			System.err.println("Cause: " + e.getCause() + "\n");
		}
	}

Open in new window

0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.
Viewers will learn how the fundamental information of how to create a table.
Suggested Courses

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question