473,804 Members | 2,271 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

querying from sysibm or syscat tables

Can I get the equivalent information for the following commands
using SYSCAT or SYSIBM tables.

db2 list tablespace containers for 14 show detail

db2 list history backup since 20061018 for dbname

I would like to use perl DBI to get the relevant information.

Oct 24 '06 #1
8 14613
dc********@aim. com wrote:
Can I get the equivalent information for the following commands
using SYSCAT or SYSIBM tables.

db2 list tablespace containers for 14 show detail

db2 list history backup since 20061018 for dbname

I would like to use perl DBI to get the relevant information.
There are administrative functions and views to get the information.
E.g.:
http://publib.boulder.ibm.com/infoce...c/r0022351.htm
--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab

IOD Conference
http://www.ibm.com/software/data/ond...ness/conf2006/
Oct 24 '06 #2

Serge Rielau wrote:
dc********@aim. com wrote:
Can I get the equivalent information for the following commands
using SYSCAT or SYSIBM tables.

db2 list tablespace containers for 14 show detail

db2 list history backup since 20061018 for dbname

I would like to use perl DBI to get the relevant information.
There are administrative functions and views to get the information.
E.g.:
http://publib.boulder.ibm.com/infoce...c/r0022351.htm
this is for ver 9.

we are using 8.2.3

I found out the sql to get tablespace containers information

select * from
table(sysproc.s napshot_contain er('dbname',dbp artitionnum))

Looks like there is no query to get db2 list history backup since
20061018 for dbname

also what is sql query to get information of

db2 list db directory

I want to avoid use "db2 " commands inside. Would prefer direct perl
DBI calls.

Oct 24 '06 #3
dc********@aim. com wrote:
db2 list db directory
I think you'll need to write a C UDF for that:
http://publib.boulder.ibm.com/infoce...c/r0001492.htm

Cheers
Serge

--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab

IOD Conference
http://www.ibm.com/software/data/ond...ness/conf2006/
Oct 24 '06 #4

dc********@aim. com wrote:
db2 list history backup since 20061018 for dbname
found one for this.

select * from table(admin_lis t_hist()) where operation = 'B';

will give the same information as list history backup

Oct 24 '06 #5
dc********@aim. com wrote:
Can I get the equivalent information for the following commands
using SYSCAT or SYSIBM tables.
The question doesn't even arise. Since the SYSCAT views are documented and
the SYSIBM tables are not (with the exception of SYSIBM.SYSDUMMY 1), you
should never rely on the SYSIBM tables. Those may change at any time (and
they do change once in a while). If you rely on them and your application
breaks, its your problem.

--
Knut Stolze
DB2 Information Integration Development
IBM Germany
Oct 25 '06 #6
Looks like ADMIN_LIST_HIST table function requires something to be
installed.
On some of the servers when I run the query against that table table
function
I get the following error:-

SQL0440N No authorized routine named "ADMIN_LIST_HIS T" of type
"FUNCTION"
having compatible arguments was found. SQLSTATE=42884

The same query works fine on other servers. The version of Db2 is same.
8.2.3
However all failed boxes were 64bit Db2.

What needs to be done?

Oct 25 '06 #7
Ian
dc********@aim. com wrote:
Looks like ADMIN_LIST_HIST table function requires something to be
installed.
On some of the servers when I run the query against that table table
function
I get the following error:-

SQL0440N No authorized routine named "ADMIN_LIST_HIS T" of type
"FUNCTION"
having compatible arguments was found. SQLSTATE=42884

The same query works fine on other servers. The version of Db2 is same.
8.2.3
However all failed boxes were 64bit Db2.

What needs to be done?
You probably didn't execute the 'db2updv8' command after applying a
fixpack.

db2updv8 -d SAMPLE (or whatever the name of your database is).

Oct 25 '06 #8
Ian wrote:
You probably didn't execute the 'db2updv8' command after applying a
fixpack.

db2updv8 -d SAMPLE (or whatever the name of your database is).
yes that was the reason.

thanks.

Oct 25 '06 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
5298
by: Patrick Finnegan | last post by:
DB2DART detects problems with SYSIBM.SYSSECTION and SYSIBM.SYSSTMT .. I cannot connect to or drop these tables(system objects). What are my options besides a db restore? Thanks in advance. Table inspection start: SYSIBM.SYSSECTION
5
3697
by: Andrew Werden | last post by:
I've inherited some code that calls SYSIBM.SQLPROCEDURES to validate user provided parameters and text prior to executing a stored procedure. This code was written on an early UDB release (V6?) and presumably ran fine. On some UDB v8.1 systems, calls to SYSIBM.SQLPROCEDURES take in excess of 58 seconds. My actual application sproc takes < 1 second to execute. Needless to say, this is not quite acceptable performance. On other UDB 8.1...
7
7386
by: Robert Stearns | last post by:
I ran the following bit of SQL and my PRIMARY KEY wound up in schema SYSIBM called SQL.... not schema is3 called primary. The index registation did wind up there. Obviously there's something I don't understand or see. If you have some insight into this problem that you are willing to share, I'd be grateful. One possibility is the uniqueness required: is the constraint required to be unique with table, schema or database? PS: Ignore the...
9
7052
by: Raquel | last post by:
When I create a package (by db2sqljcustomize command), the new package does not immediately appear in SYSIBM.SYSPLAN for that database. It appears after some time. Does anyone know when SYSIBM.SYSPLAN gets refreshed so that the new package appears in it? I would have thought that this should be a synchronous activity. TIA Raquel.
3
6564
by: Michael Rudolph | last post by:
Hi, at the moment i try to use the federated database feature (DB2/NT 8.2.3) to use a remote host db2 (DB2 OS/390 7.1.2). I am unsure what privileges are needed for the host db2 user. A select on SYSIBM.SYSTABLES and on the tables where the data resides as mentioned in the following URL is successful.
10
5000
by: Lennart | last post by:
I see a bunch of packages where valid <'Y'. What I cant figure out is how to relate the package to a procedure, function or whatever. Does anyone have a reference to share on the relationship between, say syscat.packages and syscat.routines. If anyone have sql for this I can live with that too :-) /Lennart
4
4722
by: d0m_at0m | last post by:
hello, how to select a table that has a highest amount of columns (compared to other tables) using syscat? thanks in advance
0
2330
by: deangc | last post by:
We have a number of client installations where dynamic sql snapshots show that: CALL SYSIBM.SQLSTATISTICS(?,?,?,?,?,?) is the top consumer of CPU, usually by a wide margin. We regularly do runstats/rebind on SYSIBM.*, like this: DB2 -x "SELECT 'RUNSTATS ON TABLE SYSIBM.'||TABNAME||' WITH DISTRIBUTION AND DETAILED INDEXES ALL SHRLEVEL CHANGE' FROM
1
1616
by: SilRay | last post by:
I will admit up front that this is to help with an assignment for a class, however, I'm looking for information outside the scope of the assignment because I want to do something cooler. The assignment is intended to demonstrate the ability to query against a joined table. I am supposed to get the values for all fields of a given datatype within these 2 tables that are joined. The teacher expects that we will look at the descriptions of the...
0
9594
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10346
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10347
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9173
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5531
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5673
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4308
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3832
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3001
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.