How to find port in db2 database
Hello Everyone,
I am using a db2 V8.1 and try to connect to it via JDBC. I am using the app-driver,
Class.forName("COM.ibm.db2.jdbc.app.DB2Driver");
however I get an errormessage: java.sql.SQLException: No suitable driver. I can see though that the driver is registered at the DriverManager, so I assume that something in the database connection part is wrong. I have tried to use the url in the way jdbc:db2://host:port/DBName, however I don't know how to find out which port my DB uses. Can someone tell me how to find it under Linux? And also I have read somewhere that one could use the IP-address instead of host:port, is that possible as well?
thank you very much in advance
No, the IP address will only replace host, not port. You've got to know the port that the database listener is attached to.
The DB2 JDBC docs ought to tell you what the default port is. I believe it's 6789. (It was back in Apr-2000 when I last connected to DB2.)
I don't know what the Linux/Unix command is to list all the active ports, but on Windoze it's netstat -a. I think it's the same in Unix. You should try it and see if it tells you about an app listening on port 6789. If not, speak to your DB admin and ask if the listener is up and running on the database server. - MOD
Similar Messages
-
How to find port number , when there will be different instance number ?
In case of portal url,
port number is 50000 for default instance number 00.
how to find port number , when there will be different instance number , instead of 00?
ThanksHi
You can find the port number by your instance number as follows:
There is a general format for the port number like you have mentioned.
For 00 instance the port number is 50000.
The general format for the port number goes like this:
<b>5<instance_no>00</b>
If your <b>instance number is 01</b> then the port number would be <b>50100</b>.
It depends on the installation type which you perform.
You can also change the instance number during the installation but normally you dont do this.
If you have many components or units installed on your system you may have more than one instance in that case it may go like this 00, 01, 02....accordingly port number will be 50000, 50100, 50200...resp.
Hope this solves your doubt.
If you need some more clarification please lemme know.
Regards
Sumit Jain
**Rewrd with points if useful. -
How to Find the number of Databases in a server.
HI,
Please tell me how to find the number of Databases are in a server . when the DB is not up.
ps -ef | grep ora_
This i know whether our DB is up or not. But i want to know how many databases are in a server .If the database is down .
Cheers,
Gobi.Hi,
[oracle@oralinux admin]$ lsnrctl status
LSNRCTL for Linux: Version 9.2.0.4.0 - Production on 01-DEC-2006 16:25:41
Copyright (c) 1991, 2002, Oracle Corporation. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC)))
TNS-01169: The listener has not recognized the password
[oracle@oralinux admin]$
Plz give me the solution.
Cheers ,
Gobi. -
How to find Port numbers used by RMI application
Hi, hope u all find me a solution, how to find port numbers used in the RMI application, that is port number which the RMI application communicates between RMIserver and RMIclient. ur answers would b highly appreciated
Currently RMI transport layer does not directly expose any public methods to get the listening ports of the exported RMI objects, but the application can always export RMI server objects at certain designated ports instead of relying on the RMI runtime by specifying them to UnicastRemoteObjcect at the time of exporting.
RMI transport layer try to optimize the number of listeing sockets by exporting all RMI server objects on a single port if no explicit ports were chosen. If the application is really interested in knowing the listeing ports, it can always specify the client and server socket factories to be used for creating Socket and ServerSocket to the RMI runtime at the time of exporting. When a RMI server object is exported, but the listening socket is not yet created, RMI transport layer invokes the createServerSocket(host, port) of server socket factory by passing the host and port details. If no explicit port is specified, underlying socket implementation choses anonymous port. At this point of time application can log these listeing ports to some log file.
Similarly when the stub to the remote object is de-serialized in the client address space, it does also contain the client socket factory along with the end point details (host, port and server object ID). RMI runtime in the client address space needs to establish connection with the remote server object, it try to get the socket from client socket factory by invoking createSocket() on the client socket factory. Now the application can call getLocalPort() on the socket before returning it to the RMI transport layer.
There is a undocumented class RMIStat to dump RMI runtime state information. It provides a lot of static methods to dump RMI state information like object table, transports, threads etc. You can download the source code of this utility from RMI archives, but remember this is not a comman-line utility, you must invoke these static methods as part of the application code.
-- Srinath Mandalapu -
How to find port number of message server
Hi All,
Is anyone there who could tell me how to find out port number of message server (Message Port)? I am defining new system in my SLD so I need port number of message server of the system that I am connecting to. Thanks in advance.
Best regardsHi,
Go to the index page of the url,
type http://hostname:http port in Internet browser.
for ex : if installation is done on system with IP 172.16.28.90
and your http port is 50000(depends on Central instance number,JCxx)
then type http://172.16.28.90:50000.
1.then go to system information tab in index page.
for the credentials asked,type,
user:administrator
password:master password given during installation.
then system information page opens,in the left corner top,you can find message server port.
reward points if helpful......... -
How to find out that the database table is empty
Hello all,
How to find out in ABAP in the best performant way, that the database table is empty. The table could have several milions of records or be empty. SELECT count( * ) looks to me as not the best way.
Kind regards
Radim Benek
Moderator message: FAQ, please search for previous discussions of similar topics.
example: "SELECT SINGLE" vs. "SELECT UP TO 1 ROWS"
Moderator message: Please Read before Posting in the Performance and Tuning Forum
Edited by: Thomas Zloch on Aug 11, 2011 5:06 PMHi,
One approach is:
check lt_mytable is initial.
This will be true if there are no lines.
Another:
describe table lt_mytable lines lv_count
if lv_count = 0.
"Empty
Thanks.
Anitha a -
How can find out LONG column database?
Hi,
in my database ORA-1461 error occured
01461, 00000, "can bind a LONG value only for insert into a LONG column
how can find out LONG column in my database ?DESCRIBE
The description for tables, views, types and synonyms contains the following information:
each column's name
whether or not null values are allowed (NULL or NOT NULL) for each column
datatype of columns, for example, CHAR, DATE, LONG, LONGRAW, NUMBER, RAW, ROWID, VARCHAR2 (VARCHAR), or XMLType
precision of columns (and scale, if any, for a numeric column)
Extract of the link;
http://download.oracle.com/docs/cd/B19306_01/server.102/b14357/ch12019.htm#SQPUG040
Secondly with reference to the error;
Do not try to insert LONG datatypes into other types of columns.
Hope this helps.
Adith -
How to find if a logical database exists for your program requrements?
hi
How do you find if a logical database exists for your program requrements?
RegardsYou probably know the DB table that you'd like to query
try where used list : 'Logical database'
then you can see what interests you... -
How to save data in DB2 database
Hi All,
I have an SAP webdynpro application in which 10 fields are there for the user to enter. Out this 10 fields i need to save 5 fields in SAP database and another 5 in DB2 database.Please help me how to achieve this.
Regards
VEnk@Dear Venkat,
Am I right that your requirement is to save some fields into the SAP DB2 database and to save the other fields
to an external DB2 database.
For that you have to setup the connection with transaction DBCO (tabel DBCON),
For details about "how to..." please refer to sap note 323151.
Hope this will help you.
Regards,
Reinhard Meixner -
How to find out whether Oracle database was upgraded ??
Hi,
I need to find out whether my Oracle database was upgraded, If yes how to find out by SQL query .I know their is database_properties table, but when I try to query that it didnt gave me the output which I required.
Like in SAP we have uvers table which keep info about the upgrade history, whether such history is avaliable in oracle ?? . Iam looking out for output which is like old database Release 9.2.0.7 and new database release 10.2.0.2.
Whether similar such history is maintained in Oracle database.
Awaiting for your feedback.
Kind Regards
NeenadHi all,
After checking all the material,I dont think prior to 10g, oracle register its earlier version.
The views of v$version show the current version for various components and also dba_registry displays info about catlog/catproc versions.
In 10g, you can use the following query to know the version when the database was broughtup.
select startup_time,version,db_name from dba_hist_database_instance.
Anways thanks to all of you.
Kind Regards
Neenad -
Hi All,
i need to find Port no. for Essbase and FR, how to find it is there any script or any other process to find it
plz let me if any know abt it
Sri......Hi,
Essbase Agent will usually run on port 1423
Essbase server applications (ESSSVR) port = 32768–33768
Financial Reporting
Web server usually runs on port 8200
FR Communication service runs on port 8299
Other FR ports are usually dynamic and can be set in property files e.g. fr_repserver.properties, fr_scheduler.properties, fr_printserver.properties
Cheers
John
http://john-goodwin.blogspot.com/ -
How to find port address in AL11
Hi ,
In transaction AL11.
I need to know the port address defined for the directories in AL11 .
How we find the port?
Good answers will be really appreciated .
Regards & Thanks
SandeepHi,
Please check the table
user_dir for this
report - RSWATCH0 to refer to directories.
FM - /SAPDMC/LSM_F4_SERVER_FILE.
Other AL11 related FM
EPS_GET_DIRECTORY_LISTING Get directory listing
EPS_GET_DIRECTORY_PATH Get directory path for EPS subdirectories
EPS_GET_FILE_ATTRIBUTES
EPS_GET_FTP_SYSTEM_INFO Get ftp system info
EPS_INFO_TO_STRING
EPS_OPEN_INPUT_FILE Open file for input
EPS_OPEN_OUTPUT_FILE Open file for output
Thanks & Regards,
Chandralekha. -
How to find out object / schema / database level replication is active
Hi,
I am an experienced DBA but new to streams and I am asked to support an existing streams configuration between two Oracle 10g databases. I was told it is bi-directional but one database is standby and it never took traffic. My questions are
1. How will I find out whether it is a database or schema level replication? Any queries that I can run to find it out?
2. How do I find out it is bi-directional and it iis current. What queries I can run to confirm?
3. How will I find out the excluded objects? Any queries please...
Thanks for the help
Regards
Ramahttp://www.morganslibrary.org/reference/dyn_perf_view.html#dyst
SELECT name FROM dba_dependencies
WHERE referenced_name = 'DBMS_STREAMS_ADM' AND name LIKE 'DBA%'
UNION
SELECT referenced_name FROM dba_dependencies
WHERE name = 'DBMS_STREAMS_ADM' AND referenced_name LIKE 'DBA%'; -
How to find out who updated database tables
Hi
We are using Oracle Database 10g Release 10.2.0.4.0.
A user, via pl/sql developer, has been updating data on our database. This resulted in certain reports not balancing. At that time, we did not have database triggers on the tables concerned. We now need to go back at least a month or more to see who had updated these tables. We have a username, is there any script that we can use? How accurate is v$active_session_history? Would it give us all the info we need?781424 wrote:
Hi
We are using Oracle Database 10g Release 10.2.0.4.0.
A user, via pl/sql developer, has been updating data on our database. This resulted in certain reports not balancing. At that time, we did not have database triggers on the tables concerned. We now need to go back at least a month or more to see who had updated these tables. We have a username, is there any script that we can use? How accurate is v$active_session_history? Would it give us all the info we need?It is little easy to know with AUDITING, or use Log miner to analyze log files. -
How to find space occupy by database
Hi,
Disk partition on which oracle is installed is consuming 99% space.
How can i know which tablespace or object is access that space?
Your early response is appreciated.
Thanks in advanceuser647572 wrote:
Hi,
Disk partition on which oracle is installed is consuming 99% space.
How can i know which tablespace or object is access that space?
Your early response is appreciated.
Thanks in advanceDistribution of objects and data
Which schemas are taking up all of the space
set pages 999
col "size MB" format 999,999,999
col "Objects" format 999,999,999
select obj.owner "Owner"
, obj_cnt "Objects"
, decode(seg_size, NULL, 0, seg_size) "size MB"
from (select owner, count(*) obj_cnt from dba_objects group by owner) obj
, (select owner, ceil(sum(bytes)/1024/1024) seg_size
from dba_segments group by owner) seg
where obj.owner = seg.owner(+)
order by 3 desc ,2 desc, 1
Show the ten largest objects in the database
col owner format a15
col segment_name format a30
col segment_type format a15
col mb format 999,999,999
select owner
, segment_name
, segment_type
, mb
from (
select owner
, segment_name
, segment_type
, bytes / 1024 / 1024 "MB"
from dba_segments
order by bytes desc
where rownum < 11
/more queries refer:http://www.shutdownabort.com/dbaqueries/Structure_Tablespace.php
Maybe you are looking for
-
Yesterday I noticed while browsing Internet that some sites would not open and that some games I regularly play would not open. I also found that I could not open either the apps store or iTunes. Everything seemed to be working the day before and I h
-
just a couple quick questions.I just got a mac mini w/ garage band 1)Are the loops that are greyed out in the jam pack,,,or is there another way to get them.. 2) and if i open a intrument track ,,,just play a bunch of random notes...then save in my l
-
My new IPAD froze during software update thru itunes on my winows PC. The normal reset instructions holding the home and power buttons do not work. Itunes no longer recognizes my IPAD. What can i do?
-
BT Openzone showing from my Home Hub
My PC is picking up 3 services apparently coming from my router: My BB service My BT Fon service - I undertand this A BT Openzone service - I don't understand this. I'm sure they're all from my router as the signal strength is precisely the same. Can
-
REG : in which memory area BackGround process will execute??
hi everyone, in which memory area , background process will be executed ? Thanks and Regards, Nikhil K