473,394 Members | 1,852 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

cannot connect to DB2 mainframe for getting tables from metadata

i am trying to get all tables from metadata for mainframe DB2 but not able to get any .
Can anybody please help

Expand|Select|Wrap|Line Numbers
  1.  try {
  2.             conn = (Connection) dbConnection.getConnection("connctor for IBM DB2");
  3.             dbmd = conn.getMetaData();
  4.             tableSet = dbmd.getTables(null, null, null, new String[] { "TABLE" });
  5.             tableList = new ArrayList<String>();
  6.             while (tableSet.next()) {
  7.  
  8.                 if (tableSet.getString("TABLE_SCHEM") != null && !tableSet.getString("TABLE_SCHEM").equalsIgnoreCase(databaseConnector.getOwnerNm())) {
  9.                 // logger.info("schema not matchinng
  10.                                 // :"+tableSet.getString("TABLE_SCHEM"));
  11.                 }
  12.                 else {
  13.                 String tableNm = tableSet.getString(3);
  14.                 tableList.add(tableNm);
  15.  
  16.                 }
  17.             }
  18.             }
  19.             catch (Exception e) {
  20.             logger.fatal("Error", e);
  21.             }
May 27 '15 #1
2 2133
Rabbit
12,516 Expert Mod 8TB
Please use code tags when posting code or formatted data.

This doesn't look like db2 code. What language is this? I will move it to the correct forum.
May 27 '15 #2
I am using it to connect to different database by providing database connectors in it, can you please provide a sample to connect get tables metadata information using JDBC or something from DB2 Mainframe .

will surely remember next time to use code tags , thanks
May 28 '15 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Jack Smith | last post by:
Hello, I have PHP 4.3.1.1 running on Windows 2000 Server with IIS 5. This connects to an MS SQL 7 server running on a seperate NT4 box. Recently, this SQL7 Server had SQL7 Service Pack 4...
2
by: Hari Om | last post by:
Cannot connect as Internal Hello, I am using IBM AIX 5.1L box for Oracle 9.2.0.1. I cannot connect as internal to my DB INstance - wonder why? Here is what is do:...
6
by: Jeff Sandler | last post by:
I have a database I created in mySQL. I've been entering data every day into the database using a Java application that I wrote. The database and the Java program are on the same Win 98 SE...
0
by: Bryan | last post by:
Can anyone give me some pointers please on where to look next in solving the problem I'm getting with running a Perl program (my first of any real complexity) from the command line in WindowsXP? ...
0
by: sam | last post by:
I always create one new class for one table in order to connect it via wizard. So,I had created ten classes for ten tables. Can you teache me how to create one new class which it can connect to...
1
by: Sivaprasad | last post by:
Hi All, I am developing an app in Compact framework. When i run the app i am getting the error "Cannot connect to the remote Server". I put the same code in regular VB.Net it works fine.But not...
7
by: Mathew Butler | last post by:
I'm investigating an issue I have when pulling data back from MS access I'm retrieving all rows from a column in a table of 5000 rows - accessing a column of type "memo" ( can be 65353 character...
3
by: FNA access | last post by:
Hello all, I am relitivley new to mySQL. I started by downloading from the mySQL site. I then downloaded mySQL administrator and mySQL Query browser. With my set up I got a user root with a...
4
by: Gourk | last post by:
I'm fairly new to the whole MySQL thing, But not new to SQL. So doing most of this was fairly easy, but I have a hosting service with Godaddy.com, and Yes it supports MySQL 5.0 and is installed and...
0
by: pnalla | last post by:
Hi, I am trying to connect mainframe screens using vb In this i need read the fields from mainfrmes screens to vb and vb to mainframe . Fo this anu DLL need .Please help me Thanks Prasad
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.