Status metric for the OEM plugin for DB2 Databases
Hi,
I am doing some testing of the OEM system monitoring plug-in for an IBM DB2 Database. I am starting with some very basic alerts such as when an instance is down. However, it is not working as I would expect. When the instance is stopped using the command db2stop I would expect OEM to determine that the database is down. However, OEM reports a metric collection error and not the database being down.
Does anybody have any experience with DB2 databases and OEM?
Thanks,
Christine
By creating Groups for specific targets and authoriizing access to these groups you can have users only "seeing" databases or certain databases and other users only being able to see certain Middleware components etc.
Check
Oracle® Enterprise Manager Administration
11g Release 1 (11.1.0.1)
http://download.oracle.com/docs/cd/E11857_01/em.111/e16790/group_management.htm#DAFFHDCJ
for this
Regards
Rob
http://oemgc.wordpress.com
Similar Messages
-
How to create TNS entry for db2 database?
hi,
I want to create a db2 database tns entry in tnsname.ora file. How do i create?
thanksThere seem to be several related threads about this concern.
Creating dblink for db2 database
How to create TNS entry for db2 database?
How to create TNS entry for db2 database? -
Some errors after doing the system copy for DB2 database instance
HI,
Recently we have transferred the DB2 database instance from old host( db 9.1.7 under windows 2003 R2) to new host( DB2 9.7.9 under windows 2008 R2) using the system copy database depending methods.
Currently system is:
* ECC 6.0 under NW 7.0 SR3
* Kernel : 7.20
* Basis: 7.0 with support package level 17
*application instance connecting db instance via DB2 CLI
1) a) After log in system using the T-code: SM21 to read the system log, it will record the bellow error:
b) From the log taken from log fie: dev_w*, i also found the below error:
A ABAP Program SAPMSSY2 .
A Source RSBTCTRC Line 60.
A Error Code DBIF_RSQL_SQL_ERROR.
A Module $Id: //bas/720_REL/src/krn/runt/absapsql.c#28 $ SAP.
A Function ab_HandleRsqlErrors Line 716.
A ** RABAX: level LEV_RX_STDERR completed.
A ** RABAX: level LEV_RX_RFC_ERROR entered.
A ** RABAX: level LEV_RX_RFC_ERROR completed.
A ** RABAX: level LEV_RX_RFC_CLOSE entered.
A ** RABAX: level LEV_RX_RFC_CLOSE completed.
A ** RABAX: level LEV_RX_IMC_ERROR entered.
A ** RABAX: level LEV_RX_IMC_ERROR completed.
A ** RABAX: level LEV_RX_DATASET_CLOSE entered.
A ** RABAX: level LEV_RX_DATASET_CLOSE completed.
A ** RABAX: level LEV_RX_ERROR_SAVE entered.
A ** RABAX: level LEV_RX_ERROR_SAVE completed.
A ** RABAX: level LEV_RX_ERROR_TPDA entered.
A ** RABAX: level LEV_RX_ERROR_TPDA completed.
A ** RABAX: level LEV_RX_PXA_RELEASE_RUDI entered.
A ** RABAX: level LEV_RX_PXA_RELEASE_RUDI completed.
A ** RABAX: level LEV_RX_LIVE_CACHE_CLEANUP entered.
A ** RABAX: level LEV_RX_LIVE_CACHE_CLEANUP completed.
A ** RABAX: level LEV_RX_END entered.
A ** RABAX: level LEV_RX_END completed.
A ** RABAX: end no http/smtp
A ** RABAX: end RX_BTCHLOG|RX_VBLOG
A SQL error in the database when accessing a table..
c) any background job will be cancelled when it is running. I think the error is related to above mentioned issue.
2) If i go to T-code: DB13---Diagnostics----db2 logs, it will come out the below error:
Thanks.HI Manas,
Yes, this problem is with particular this table.
Refer to below error coming from db2diag.log when i access the table:BTCCTL:
2014-08-12-17.52.08.866000+480 I35784932F1196 LEVEL: Severe
PID : 3380 TID : 2676 PROC : db2syscs.exe
INSTANCE: DB2DV1 NODE : 000 DB : DV1
APPHDL : 0-127 APPID: *LOCAL.DB2DV1.140812095207
AUTHID : DB2DV1
EDUID : 2676 EDUNAME: db2agent (DV1) 0
FUNCTION: DB2 UDB, data management, sqldSetupIndexScan, probe:1873
MESSAGE : ZRC=0x82040001=-2113667071=SQLD_NONSEVERE_PRGERR
"non-severe dms programming error"
DIA8532C An internal processing error has occurred.
DATA #1 : String, 39 bytes
Specified index not found for scan open
DATA #2 : String, 12 bytes
sqldScanOpen
CALLSTCK:
[0] 0x000000018010E989 pdLog + 0x353
[1] 0x0000000003ABE3C2 sqlzSetAndLog901 + 0x192
[2] 0x0000000001E61F01 sqldSetupIndexScan + 0xF37
[3] 0x0000000001E5F5CC sqldScanOpen + 0xBEE
[4] 0x000000000334F460 sqlriopn + 0x316
[5] 0x00000000034AE788 sqlritaSimplePerm + 0x252
[6] 0x000000000336AC8B sqlriSectInvoke + 0x139
[7] 0x00000000030A6F0C sqlrr_process_fetch_request + 0x1A8
[8] 0x00000000030A2902 sqlrr_open + 0x534
[9] 0x000000000223FCCB sqljs_ddm_opnqry + 0x447
2014-08-12-17.52.08.866000+480 I35786130F533 LEVEL: Error
PID : 3380 TID : 2676 PROC : db2syscs.exe
INSTANCE: DB2DV1 NODE : 000 DB : DV1
APPHDL : 0-127 APPID: *LOCAL.DB2DV1.140812095207
AUTHID : DB2DV1
EDUID : 2676 EDUNAME: db2agent (DV1) 0
FUNCTION: DB2 UDB, data management, sqldSetupIndexScan, probe:1873
DATA #1 : unsigned integer, 4 bytes
10
DATA #2 : unsigned integer, 4 bytes
1704
DATA #3 : unsigned integer, 2 bytes -
I am new to OEM and have some generic question :
Question1:
Some of the metrics were available for only Database Instance (documentation says so) and only few for Clustered.
Example:
Alert Log Error Status
Archive Area Used (%)
Does this mean this won't work for Clustered DB (or not applicable ?). (OR) probably this should be setup for each instance ??? Now sure how to setup metrics for Clustered..
Question2:
The metric Response (for clustered database) works only when both instances are down. Any idea how to setup alerts even if one instance is down ???
Thank you...
James.For each notification Rule, there is a a page where you select (or deselect) the Metrics you want to receive emails for.
So when you edit the Notification Rule you created, you can add or remove the metrics you want and indicate the severity states. -
Tables not shown in connections tree for DB2 databases
Hi!
I often use SQL Developer to connect to our DB2 databases. However, when I expand the desired schema in a DB2 database, the Tables node is empty, although it should not be. There are tables in that schema and I can select data from them, so security is not an issue:
For example:
select tabschema, tabname from syscat.tables where tabschema not like 'SYS%' order by 1,2;
returns many schema names and table names is those schemas. Let's pick one, i.e table name METER_TYPE in schema METER ( there are 4 tables in schema METER)
select count(*) from meter.meter_type
returns: 38
However, the Tables node shows no tables. Tese tables are not Aliases (DB2 slang for synonyms) or views, however, those 2 nodes are also empty when they should not be - we have schemas with aliases and views, which are also NOT shown. The Index node is populated most frequently, but not completely (there are indexes missing).
Here are my details (don't be fooled by java 1.7, the behaviour is the same with 1.6):
DB2 jdbc driver version: 3.57.82
About
Oracle SQL Developer 3.0.04
Version 3.0.04
Build MAIN-04.34
Copyright © 2005, 2011 Oracle. All Rights Reserved.
IDE Version: 11.1.1.4.37.59.31
Product ID: oracle.sqldeveloper
Product Version: 11.1.2.04.34
Version
Component Version
========= =======
Java(TM) Platform 1.7.0
Oracle IDE 3.0.04.34
Versioning Support 3.0.04.34
Properties
Name Value
==== =====
awt.toolkit sun.awt.X11.XToolkit
class.load.environment oracle.ide.boot.IdeClassLoadEnvironment
class.load.log.level CONFIG
class.transfer delegate
file.encoding UTF-8
file.encoding.pkg sun.io
file.separator /
http.nonProxyHosts localhost|localhost.localdomain|127.0.0.1|::1|localhost|alex.localdomain
ice.browser.forcegc false
ice.pilots.html4.ignoreNonGenericFonts true
ice.pilots.html4.tileOptThreshold 0
ide.AssertTracingDisabled true
ide.bootstrap.start 5367470843749639
ide.build MAIN-04.34
ide.conf /home/alex/prg/oracle/sqldeveloper300434/sqldeveloper/sqldeveloper/bin/sqldeveloper.conf
ide.config_pathname /home/alex/prg/oracle/sqldeveloper300434/sqldeveloper/sqldeveloper/bin/sqldeveloper.conf
ide.debugbuild false
ide.devbuild false
ide.extension.search.path sqldeveloper/extensions:jdev/extensions:ide/extensions
ide.firstrun true
ide.java.minversion 1.6.0_04
ide.main.class oracle.ide.boot.IdeLauncher
ide.patches.dir ide/lib/patches
ide.pref.dir /home/alex/.sqldeveloper
ide.product oracle.sqldeveloper
ide.splash.screen splash.gif
ide.startingcwd "/home/alex/prg/oracle/sqldeveloper300434/sqldeveloper/sqldeveloper/bin"
ide.user.dir /home/alex/.sqldeveloper
ide.user.dir.var IDE_USER_DIR
ide.vcs.noapplications true
ide.work.dir /home/alex/sqldeveloper
ilog.propagatesPropertyEditors false
java.awt.graphicsenv sun.awt.X11GraphicsEnvironment
java.awt.printerjob sun.print.PSPrinterJob
java.class.path ../../ide/lib/ide-boot.jar
java.class.version 51.0
java.endorsed.dirs /home/alex/prg/jdk1.7.0/jre/lib/endorsed
java.ext.dirs /home/alex/prg/jdk1.7.0/jre/lib/ext:/usr/java/packages/lib/ext
java.home /home/alex/prg/jdk1.7.0/jre
java.io.tmpdir /tmp
java.library.path /home/alex/prg/oracle/instantclient_11_2::/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
java.naming.factory.initial oracle.javatools.jndi.LocalInitialContextFactory
java.protocol.handler.pkgs oracle.jdevimpl.handler
java.runtime.name Java(TM) SE Runtime Environment
java.runtime.version 1.7.0-b147
java.specification.name Java Platform API Specification
java.specification.vendor Oracle Corporation
java.specification.version 1.7
java.util.logging.config.file logging.conf
java.vendor Oracle Corporation
java.vendor.url http://java.oracle.com/
java.vendor.url.bug http://bugreport.sun.com/bugreport/
java.version 1.7.0
java.vm.info mixed mode
java.vm.name Java HotSpot(TM) 64-Bit Server VM
java.vm.specification.name Java Virtual Machine Specification
java.vm.specification.vendor Oracle Corporation
java.vm.specification.version 1.7
java.vm.vendor Oracle Corporation
java.vm.version 21.0-b17
jdbc.library /home/alex/prg/oracle/sqldeveloper300434/sqldeveloper/jdbc/lib/ojdbc6.jar
line.separator \n
log.file.name /home/alex/prg/oracle/sqldeveloper300434/sqldeveloper/sqldeveloper/extensions/oracle.datamodeler/log/datamodeler.log
oracle.home /home/alex/prg/oracle/sqldeveloper300434/sqldeveloper
oracle.ide.util.AddinPolicyUtils.OVERRIDE_FLAG true
oracle.jdbc.mapDateToTimestamp false
oracle.net.tns_admin /home/alex/prg/oracle/sqldeveloper300434/sqldeveloper/network/admin
oracle.translated.locales de,es,fr,it,ja,ko,pt_BR,zh_CN,zh_TW
oracle.xdkjava.compatibility.version 9.0.4
orai18n.library /home/alex/prg/oracle/sqldeveloper300434/sqldeveloper/jlib/orai18n.jar
os.arch amd64
os.name Linux
os.version 2.6.30.10-105.2.23.fc11.x86_64
path.separator :
reserved_filenames con,aux,prn,lpt1,lpt2,lpt3,lpt4,lpt5,lpt6,lpt7,lpt8,lpt9,com1,com2,com3,com4,com5,com6,com7,com8,com9,conin$,conout,conout$
sqldev.debug false
sun.arch.data.model 64
sun.awt.enableExtraMouseButtons true
sun.boot.class.path /home/alex/prg/jdk1.7.0/jre/lib/resources.jar:/home/alex/prg/jdk1.7.0/jre/lib/rt.jar:/home/alex/prg/jdk1.7.0/jre/lib/sunrsasign.jar:/home/alex/prg/jdk1.7.0/jre/lib/jsse.jar:/home/alex/prg/jdk1.7.0/jre/lib/jce.jar:/home/alex/prg/jdk1.7.0/jre/lib/charsets.jar:/home/alex/prg/jdk1.7.0/jre/classes
sun.boot.library.path /home/alex/prg/jdk1.7.0/jre/lib/amd64
sun.cpu.endian little
sun.cpu.isalist
sun.desktop gnome
sun.io.unicode.encoding UnicodeLittle
sun.java.command oracle.ide.boot.Launcher
sun.java.launcher SUN_STANDARD
sun.java2d.ddoffscreen false
sun.java2d.pmoffscreen false
sun.jnu.encoding UTF-8
sun.management.compiler HotSpot 64-Bit Tiered Compilers
sun.os.patch.level unknown
svnkit.sax.useDefault true
user.country US
user.dir /home/alex/prg/oracle/sqldeveloper300434/sqldeveloper/sqldeveloper/bin
user.home /home/alex
user.language en
user.name alex
user.timezone CET
windows.shell.font.languages
Extensions
Name Identifier Version Status
==== ========== ======= ======
Check For Updates oracle.ide.webupdate 11.1.1.4.37.59.31 Loaded
Code Editor oracle.ide.ceditor 11.1.1.4.37.59.31 Loaded
Component Palette oracle.ide.palette1 11.1.1.4.37.59.31 Loaded
Data Miner oracle.dmt.dataminer 11.2.0.1.10.109 Loaded
Database Connection Support oracle.jdeveloper.db.connection 11.1.1.4.37.59.31 Loaded
Database Object Explorers oracle.ide.db.explorer 11.1.1.4.37.59.31 Loaded
Database UI oracle.ide.db 11.1.1.4.37.59.31 Loaded
Diagram Framework oracle.diagram 11.1.1.4.37.59.31 Loaded
Diagram Javadoc Extension oracle.diagram.javadoc 11.1.1.4.37.59.31 Loaded
Diagram Thumbnail oracle.diagram.thumbnail 11.1.1.4.37.59.31 Loaded
Diff/Merge oracle.ide.diffmerge 11.1.1.4.37.59.31 Loaded
Extended IDE Platform oracle.javacore 11.1.1.4.37.59.31 Loaded
External Tools oracle.ide.externaltools 11.1.1.4.37.59.31 Loaded
File Support oracle.ide.files 11.1.1.4.37.59.31 Loaded
Help System oracle.ide.help 11.1.1.4.37.59.31 Loaded
History Support oracle.jdeveloper.history 11.1.1.4.37.59.31 Loaded
Import/Export Support oracle.ide.importexport 11.1.1.4.37.59.31 Loaded
Index Migrator support oracle.ideimpl.indexing-migrator 11.1.1.4.37.59.31 Loaded
JDeveloper Runner oracle.jdeveloper.runner 11.1.1.4.37.59.31 Loaded
JViews Registration Addin oracle.diagram.registration 11.1.1.4.37.59.31 Loaded
Log Window oracle.ide.log 11.1.1.4.37.59.31 Loaded
Mac OS X Adapter oracle.ideimpl.apple 11.1.1.4.37.59.31 Loaded
Navigator oracle.ide.navigator 11.1.1.4.37.59.31 Loaded
Object Gallery oracle.ide.gallery 11.1.1.4.37.59.31 Loaded
Oracle IDE oracle.ide 11.1.1.4.37.59.31 Loaded
Oracle SQL Developer oracle.sqldeveloper 11.1.2.04.34 Loaded
Oracle SQL Developer - 3rd Party Database Browsers oracle.sqldeveloper.thirdparty.browsers 11.1.1.04.34 Loaded
Oracle SQL Developer - DBA Navigator oracle.sqldeveloper.dbanavigator 11.1.1.04.34 Loaded
Oracle SQL Developer - Extras oracle.sqldeveloper.extras 1.1.1.04.34 Loaded
Oracle SQL Developer - File Navigator oracle.sqldeveloper.filenavigator 11.1.1.04.34 Loaded
Oracle SQL Developer - Migrations Antlr3 Translator oracle.sqldeveloper.migration.translation.core_antlr3 11.1.1.04.34 Loaded
Oracle SQL Developer - Migrations Application Migration oracle.sqldeveloper.migration.application 11.1.1.04.34 Loaded
Oracle SQL Developer - Migrations Core oracle.sqldeveloper.migration 11.1.1.04.34 Loaded
Oracle SQL Developer - Migrations DB2 oracle.sqldeveloper.migration.db2 11.1.1.04.34 Loaded
Oracle SQL Developer - Migrations DB2 Translator oracle.sqldeveloper.migration.translation.db2 11.1.1.04.34 Loaded
Oracle SQL Developer - Migrations Microsoft Access oracle.sqldeveloper.migration.msaccess 11.1.1.04.34 Loaded
Oracle SQL Developer - Migrations Microsoft SQL Server oracle.sqldeveloper.migration.sqlserver 11.1.1.04.34 Loaded
Oracle SQL Developer - Migrations MySQL oracle.sqldeveloper.migration.mysql 11.1.1.04.34 Loaded
Oracle SQL Developer - Migrations Sybase Adaptive Server oracle.sqldeveloper.migration.sybase 11.1.1.04.34 Loaded
Oracle SQL Developer - Migrations T-SQL Translator oracle.sqldeveloper.migration.translation.core 11.1.1.04.34 Loaded
Oracle SQL Developer - Migrations Teradata oracle.sqldeveloper.migration.teradata 11.1.1.04.34 Loaded
Oracle SQL Developer - Migrations Translation UI oracle.sqldeveloper.migration.translation.gui 11.1.1.04.34 Loaded
Oracle SQL Developer - Object Viewer oracle.sqldeveloper.oviewer 11.1.1.04.34 Loaded
Oracle SQL Developer - Real Time SQL Monitoring oracle.sqldeveloper.sqlmonitor 11.1.1.04.34 Loaded
Oracle SQL Developer - Reports oracle.sqldeveloper.report 11.1.1.04.34 Loaded
Oracle SQL Developer - Scheduler oracle.sqldeveloper.scheduler 11.1.1.04.34 Loaded
Oracle SQL Developer - Schema Browser oracle.sqldeveloper.schemabrowser 11.1.1.04.34 Loaded
Oracle SQL Developer - SearchBar oracle.sqldeveloper.searchbar 11.1.1.04.34 Loaded
Oracle SQL Developer - Snippet oracle.sqldeveloper.snippet 11.1.1.04.34 Loaded
Oracle SQL Developer - Spatial oracle.sqldeveloper.spatial 11.1.1.04.34 Loaded
Oracle SQL Developer - TimesTen oracle.sqldeveloper.timesten 2.0.0.04.34 Loaded
Oracle SQL Developer - Tuning oracle.sqldeveloper.tuning 11.1.1.04.34 Loaded
Oracle SQL Developer - Unit Test oracle.sqldeveloper.unit_test 11.1.1.04.34 Loaded
Oracle SQL Developer - User Extensions Support oracle.sqldeveloper.userextensions 11.1.1.04.34 Loaded
Oracle SQL Developer - Worksheet v2 oracle.sqldeveloper.worksheet 11.1.1.04.34 Loaded
Oracle SQL Developer - XML Schema oracle.sqldeveloper.xmlschema 11.1.1.04.34 Loaded
Oracle SQL Developer Data Modeler oracle.datamodeler 3.0.0.665.2 Loaded
Oracle SQL Developer Data Modeler - Reports oracle.sqldeveloper.datamodeler_reports 11.1.1.04.34 Loaded
PROBE Debugger oracle.jdeveloper.db.debug.probe 11.1.1.4.37.59.31 Loaded
Peek oracle.ide.peek 11.1.1.4.37.59.31 Loaded
Persistent Storage oracle.ide.persistence 11.1.1.4.37.59.31 Loaded
Property Inspector oracle.ide.inspector 11.1.1.4.37.59.31 Loaded
QuickDiff oracle.ide.quickdiff 11.1.1.4.37.59.31 Loaded
Replace With oracle.ide.replace 11.1.1.4.37.59.31 Loaded
Runner oracle.ide.runner 11.1.1.4.37.59.31 Loaded
SQL Developer Patch oracle.sqldeveloper.patch 11.1.2.04.39 Loaded
VHV oracle.ide.vhv 11.1.1.4.37.59.31 Loaded
Versioning Support oracle.jdeveloper.vcs 11.1.1.4.37.59.31 Loaded
Versioning Support for Subversion oracle.jdeveloper.subversion 11.1.1.4.37.59.31 Loaded
Virtual File System oracle.ide.vfs 11.1.1.4.37.59.31 Loaded
Web Browser and Proxy oracle.ide.webbrowser 11.1.1.4.37.59.31 Loaded
XML Editing Framework IDE Extension oracle.ide.xmlef 11.1.1.4.37.59.31 Loaded
audit oracle.ide.audit 11.1.1.4.37.59.31 Loaded
classpath: protocol handler extension oracle.jdeveloper.classpath 11.1.1.0.0 Loaded
jdukshare oracle.bm.jdukshare 11.1.1.4.37.59.31 Loaded
mof-xmi oracle.mof.xmi 11.1.1.4.37.59.31 Loaded
oracle.ide.dependency oracle.ide.dependency 11.1.1.4.37.59.31 Loaded
oracle.ide.indexing oracle.ide.indexing 11.1.1.4.37.59.31 Loaded
palette2 oracle.ide.palette2 11.1.1.4.37.59.31 Loaded
status oracle.ide.status 11.1.1.4.37.59.31 LoadedIt doesn't sound like this is the answer in your case, but here is a problem I had with tree icons in 6i which took me a while to figure out.
For some unknown and probably pointless reason, forms converts the tree query to uppercase before executing it. This can cause problems if the sql contains any hardcoded strings. In my case I was doing something like
decode(status,1,'red',2,'green')||icon_name
this resulted in REDicon when my icon was actually redicon.gif -
JDBC Driver Class for DB2 databases on OS/390
Hi,
To anybody who can help.
I am trying to connect to DB2 database on OS/390 from my PC - Windows 2000. I have loaded IBM DB2 Application Development Client V7.2 as well as IBM DB2 Administration Client V7.2 I guess this is called using Db2 Connect. I have done proper configuration of host databases.
Anyway, I write this small simple class to connect to Db2 database and I keep getting this error.
"Error loading Driver classjava.lang.ClassNotFoundException: com.ibm.db2.jdbc.app.DB2Driver
Sorry, No connection established"
This is my classpath....
C:\Program Files\SQLLIB\java\db2java.zip;
C:\ProgramFiles\IBM\ApplicationDeveloper\plugins\com.ibm.etools.webtools\jars\jspsql.jar;
C:\ProgramFiles\IBM\ApplicationDeveloper\plugins\com.ibm.etools.webtools\jars\dbbeans.jar;
C:\ProgramFiles\IBM\ApplicationDeveloper\plugins\com.ibm.etools.webtools\jars\dbbeans_javadoc.zip;
C:\Program Files\SQLLIB\java\runtime.zip;
C:\Program Files\SQLLIB\java\sqlj.zip;
C:\Program Files\SQLLIB\bin
This is my java class....
package JavaFiles;
import java.sql.*;
import java.lang.*;
public class DbConnection
public static void main(String[] args)
throws ClassNotFoundException,SQLException
String url = "jdbc:db2:db2test.state.sc.us:50000:DB2DB02";
String username = "db2admin";
String passwd = "db2admin1";
connect(url,username,passwd);
public static void connect(String url, String username, String passwd)
throws ClassNotFoundException,SQLException
try
Class.forName("com.ibm.db2.jdbc.app.DB2Driver");
Connection conn = DriverManager.getConnection(url,username,passwd);
System.out.println("Yes,You are connected");
catch(ClassNotFoundException cnfe)
System.err.println("Error loading Driver class" + cnfe);
System.out.println("Sorry, No connection established");
catch(SQLException sqle)
System.err.println("Error connecting to Database" + sqle);
Any help on this will let me move further in my project. ThankYou.Nice trap from IBM: package name starts with COM not
com!
Class.forName("COM.ibm.db2.jdbc.app.DB2Driver");---Sure I tried that. Sorry. That doesn't work.
I tried with Class.forName("COM.ibm.db2.jdbc.net.DB2Driver");
That doesn't work either.
Is my connection URL OK? I made several kinds of format changes to the URL
"jdbc:db2://db2test.state.sc.us:50000/DB2DB02";
"jdbc:db2:db2test.state.sc.us:50000:DB2DB02";
etc....For now I am sticking with the first version.
Any more suggestions please. Did you take a look at my classpath. Is that OK? Should I rename db2java.zip to .jar and are there any other dir's where it should be contained?????
ThankYou all. -
Can the connection to a DB2 database be encrypted?
I'm wanting to connect to a remote DB2 database (i.e. not the database the SAP system is running on) and have the communication encrypted. Thanks to note 200164 I have deployed the DB2 CLI client and configured DBCO. I am now able to make connections to the DB2 database using exec sql statements. What I'm missing is any information on if and how the connection to the DB2 database can be encrypted. Does anyone know if this is possible?
I'm wanting to connect to a remote DB2 database and have the communication encrypted.
Perhaps if I'd put a colon after 'wanting' it would have been more clear? If you read it as "I'm wanting to connect to a remote DB2 database and I have the communication encrypted" then it doesn't really make sense, so I fail to see the ambiguity.
Anyway, are you saying that the DB2 user can be set to require encryption on the DB2 database server, and that in this case no changes are required on the client side to accomplish encryption? This would be a suitable solution to my problem. I had been lead to believe that encryption must be specified on both the server and client side for it to work. -
Using Native SQL in ABAP for DB2 database
Dear Friends,
I have 500K records in ITAB(Internal table) which needs to insert in 'Z' transparent table. Currently it is taking hours of time for insertion and commit.
Does using Native SQL helps in performance or any suggestions? If so please send the code. Our database is DB2.
Your immediate reply is appreciated. Thanks in advance.Hi Rama,
Using array inserts and commit after each Insert, set up your array size as a parameter and try different array sizes.
I would start with 2000 and increment by 1000 or 2000 and see what the optimal array size is.
I would think more commits are desirable, as the array gets bigger it takes longer for the system to prepare in the event of a rollback.
Just remember to commit after each insert. And are you enqueueing the table first?
Hope this helps.
Filler -
How to specify a particular index for DB2 database when using SQL in ABAP
Is this format for Oracle?
select *
into -
from vbrk CLIENT SPECIFIED
where erdat in erdat
and mandt EQ sy-MANDT
%_HINTS ORACLE 'INDEX("VBRK" "VBRK~ZER")'
For the index 'VBRK~ZER' was defined before,it only includes one field 'VBRK-ERDAT'.
How can i tell Sap to use this index while processing SQL in DB2?
Thanks advance.There are different hints for the different database platforms.
For up-to-date information please read the SAP notes, search 'hint DB2'.
Siegfried -
Correct Schema translation for DB2 Database.
Hi,
I am trying to change a reports runtime datasource using CR4E 2.0 jars. settableloccation method.
The reports are based on command objects.
code am using is:
final String TABLE_NAME_QUALIFIER = "SSS.";
final String SERVERNAME = "136.51.30.145";
final String CONNECTION_STRING ="!com.ibm.db2.jcc.DB2Driver!jdbc:db2://136.51.30.145:60000/UniQMI_H:retrieveMessagesFromServerOnGetMessage=true;!user=The specified item was not found.!password={pass@123}!ServerType=5!QuoteChar=\"";
final String DATABASE_CLASS_NAME = "com.ibm.db2.jcc.DB2Driver";
final String DATABASE_DLL = "crdb_jdbc.dll";
final String DBURI = "!com.ibm.db2.jcc.DB2Driver!jdbc:db2://136.51.30.145:60000/UNIQMI_H!ServerType=5!QuoteChar=\"";
final String DBUSERNAME = "user";
final String DBPASSWORD = "pass@123";
Tables tables = databaseController.getDatabase().getTables();
System.out.println("Table Size="+tables.size());
System.out.println(tables.getTable(0).getClass().getCanonicalName() );
ICommandTable oldtable = (ICommandTable)tables.getTable(0);
System.out.println(oldtable.getName());
oldtable.setName("Command");
oldtable.setAlias("Command");
System.out.println(oldtable.getAlias());
oldtable.setQualifiedName(TABLE_NAME_QUALIFIER+"Command");
System.out.println(oldtable.getQualifiedName());
IConnectionInfo connectionInfo = oldtable.getConnectionInfo();
PropertyBag innerProp = connectionInfo.getAttributes();
System.out.println(innerProp);
innerProp.clear();
PropertyBag propertyBag = new PropertyBag();
propertyBag.put("Trusted_Connection", "b(false)");
propertyBag.put("Server Name", SERVERNAME);
propertyBag.put("Connection String", CONNECTION_STRING);
propertyBag.put("Server Type", "JDBC (JNDI)");
propertyBag.put("Database Class Name", DATABASE_CLASS_NAME);
propertyBag.put("Use JDBC", "true");
propertyBag.put("URI", DBURI);
propertyBag.put("Database DLL", DATABASE_DLL);
connectionInfo.setAttributes(propertyBag);
connectionInfo.setUserName("user");
connectionInfo.setPassword("pass@123");
connectionInfo.setKind(ConnectionInfoKind.SQL);
oldtable.setConnectionInfo(connectionInfo);
databaseController.setTableLocation(oldtable,tables.getTable(0));
Can some one figure out where I am wrong?
Is the Schem Translation correct?
Regards,
JonThanks TED,
I did the same but again same error:
Before setdatasource from the designer was able to retrieve following properties using displayconnectioninfo.java code:
**Table Properties **
Name Command
Alias Command
Qualified Name Command
**ConnectionInfo Properties **
User Name super
Password
Kind SQL
**ConnectionInfo Atttribute Properties **
JDBC Connection String !com.ibm.db2.jcc.DB2Driver!jdbc:db2://136.53.51.146:60000/SSS!user=!password=
PreQEServerName jdbc:db2://136.50.54.146:60000/SSS
Server Type JDBC (JNDI)
Database DLL crdb_jdbc.dll
Database SSS
Database Class Name com.ibm.db2.jcc.DB2Driver
Use JDBC true
Database Name SSS
Server Name jdbc:db2://136.50.54.146:60000/SSS
Connection URL jdbc:db2://136.50.54.146:60000/SSS
After setdatasource
**Table Properties **
Name Command
Alias Command
Qualified Name Command
**ConnectionInfo Properties **
User Name super
Password
Kind SQL
**ConnectionInfo Atttribute Properties **
JDBC Connection String !com.ibm.db2.jcc.DB2Driver!jdbc:db2://136.55.53.150:50000/SSS!user=!password=
PreQEServerName jdbc:db2://136.55.53.150:50000:60000/SSS
Server Type JDBC (JNDI)
Database DLL crdb_jdbc.dll
Database SSS
Database Class Name com.ibm.db2.jcc.DB2Driver
Use JDBC true
Database Name SSS
Server Name jdbc:db2://136.55.53.150:50000:60000/SSS
Connection URL jdbc:db2://136.55.53.150:50000:60000/SSS
Thanks,
Jon -
How can I use the Connection Pool with DB2
Hi All,
I am facing the problem with the usage for the Connection Pool.
I want to use DB2 via JNDI lookup.
But when starting the Weblogic server, Error occured with the following message.
<Error> <JDBC> <Cannot startup connection pool "MyJDBCPool" Cannot load driver class : com.ibm.db2.jdbc.app.DB2Driver>
DB2 and Weblogic are on the same machine.
In case of the use of remote DB2 database, I also encountered the same error.
Configurations are as follows.
<JDBCConnectionPool DriverName="com.ibm.db2.jdbc.app.DB2Driver"
MaxCapacity="10" Name="MyJDBCPool"
Password="{3DES}gCGsOfD9M6iwOtgL2v/NpA==" Targets="myserver"
TestConnectionsOnReserve="false" TestTableName="test" URL="jdbc:db2://localhost:6789/yongjoo"/>
<SNMPAgent Name="mydomain"/>
<JDBCDataSource JNDIName="acsdb" Name="acsdb" PoolName="MyJDBCPool" Targets="myserver"/>
Could you please give some information about this problem? I will appreciate your kindness.Hi Joe,
Thanks your help.
Perhaps It's my fault for Weblogic console's setting.
After I reset the target server in console, Error message disappeared.
But, when I call the TestCode, I encountered another error message. The error
is NameNotFoundException.
When lookingup the JNDI name, NameNotFoundException errer occured. I tried to
change my setting and JNDI name, but the results are the same.
Would you please give me some information about this one more time? I will be
appreciated for your help.
Follows are Config.xml
<JDBCConnectionPool DriverName="com.ibm.db2.jdbc.app.DB2Driver" MaxCapacity="10"
Name="MyJDBCPool" Password="{3DES}gCGsOfD9M6iwOtgL2v/NpA==" Targets="myserver"
TestConnectionsOnReserve="false" TestTableName="test"
URL="jdbc:db2://localhost:6789/yongjoo"/> <SNMPAgent Name="mydomain"/>
<JDBCDataSource JNDIName="acsdb" Name="acsdb" PoolName="MyJDBCPool"
Targets="myserver"/>
and follows are TestCode,
url = "t3://localhost:7001"; //default URL
datasource = "jdbc/acsdb";
Context ctx = null;
Hashtable p = new Hashtable();
p.put(Context.INITIAL_CONTEXT_FACTORY,
"weblogic.jndi.WLInitialContextFactory");
p.put(Context.PROVIDER_URL, url);
try{
ctx = new InitialContext(p);
System.err.println("initialContext(p)"+ctx); <-- success
ds = (DataSource)ctx.lookup("java:comp/env/jdbc/acsdb");
}catch(NameNotFoundException ne){
throw new ConnectionException(); .
}catch(NamingException ne){
throw new ConnectionException(); -
New in DB2 database administration
Dear Friends,
I have installed ECC 6.0 with DB2 database , at SAP service started successfully. Also login possible. But i am new in DB2 database administration, so can you help me the list of DB2 command to check on OS level.
How listener start for DB2 database and so on.
Thanks in advance.
Regards,
SachinHi Sachin,
DB2 LUW/UDB does not have a separate listener like Oracle.
You're not stating what OS you're running but the follow commands are useful no matter what OS(i.e. Windows or UNIX/Linux):
Check the patchlevel:
db2level
Start DB2:
db2start
Stop DB2:
db2stop
(You can add force as a parameter if you wish to shutdown it down more forcefully)
To list all the parameters for the DBM:
db2 get dbm cfg
To list all the DB parameters:
db2 get db cfg for db <SID>
Show progress of running backups etc
db2 list utilities show detail
I really would like to recommend the IBM online help for DB2:
http://publib.boulder.ibm.com/infocenter/db2luw/v9r5/index.jsp
Regards,
Martin -
In Firefox, I select Tools > Add-ons > Find Updates. The Plugin Check page comes up in the browser. The entry for the WMP Plugin indicates it is out of date. I click on the "Update" button and nothing happens. When I mouse over the button, no link is indicated in the status bar (it continues to read "Done").
The entries for the other plugins indicate they are current. When I mouse over the "Up to date" button for each of those entries, a link is indicated in the status bar.
I am running Windows XP SP2 on a 2005 Dell Inspiron 6000 (1.6 GHz Pentium M processor, 590 MHz bus, 504 MB RAM). I have Norton Internet Security 2010 installed and running.See:
* http://kb.mozillazine.org/Windows_Media_Player#Missing_plugin
* http://windows.microsoft.com/en-US/windows/downloads/windows-media-player (see Firefox)
* http://port25.technet.com/pages/windows-media-player-firefox-plugin-download.aspx -
Create metric alert in OEM 12c for windows services
Hi,
I was wondering if there is a way to create metric alert for services on a windows host, so that when any service is in stopped state, we will get an alert.
We can check the status of services from OEM that are running in a windows server.
Host -> Monitoring -> All Metrics -> Services
I got below command from this forum that was posted a long time ago,
nmefwmi "wbem_wql=select name, pathname, processid, Started, startmode, state, status from win32_service" "wbem_wql_column_order=name, pathname, processid, Started, startmode, state, status" "wbem_namespace=root\cimv2"
However, I am not sure where to run this command. Basically we want to get an alert when a windows service stops.Hi Abid,
Ensure you are logged in as sysman user or any other super Admin user
Go to Host -> Monitoring -> All Metrics -> Services >
Next to Collection Schedule there is a modify button > click on that
It will show a new page having following options
Data Collection Enabled Disabled (Select Enabled here)
Frequency
Default is 15 min , if you want then you can change it accordingly
Regards,
Rahul -
Transactional Metrics for Status Changes
I'm using the Plant Maintenance module in PR4, with SAP GUI 720 Final Release, if that helps.
Does someone know where I can start to build metrics regarding the quantity per time period of items that went from one user and/or system status to another?
For example, during the week of 8/29(Mon 8/29 - Sun 9/4) how many maintenance orders went from user status AUTH (or PNPG) to PLND?
This is my first post on these forums, so if I'm in the wrong place or need to search through some other place before I ask questions like this, please point me in the right direction.
Thank you,
TimIt would be helpful if you told me what the right forum is. Where should I post this question?
Maybe you are looking for
-
How can I modify the UI for the crystalreportviewer prompt screen ?
<p>Hi,</p><p> I am using Crystal Report XI with JRC.</p><p>I have come across a couple of issues. My report accepts 2 parameters from the user. One is a date field and the other is the 'Period'. I have provided a drop-down having values as Daily, Wee
-
No service, sim not provisioned, copy numbers from old phone to iPhone!!!
As Apple don't provide any sort of useful instruction manual with the iphone here are the probs and answers I encountered with my iPhone 3GS. *copy numbers from old phone to iPhone* 1st problem is that my old Nokia had far more numbers stored on it t
-
One digit is missing while downloading to excel
Hi Experts, I am executing a report and the result is in ALV format. When i was trying to download the result into an excel sheet I am missing one digit (last digit) from material number. What could be the reason...Please help me in this regards Than
-
Referencing an image in Oracle Workflow Notification
Hi, My requirement is to generate a HTML Oracle Message in Oracle Workflow which references an image. The information which i came across is that we can incorporate an image in html using a URL attribute. This means that we need to put the image file
-
Exporting Catalog Content in CCM 2.0
Hello, I would like to know if it is possible to export the content of a catalog to Excel. In CCM 2.0 it seems to be that one can only export the structure of the catalog. Thanks for any answer, Aart