JDBC Ipv6 address, what is the port number?
I believe there might an ambiguity when using IPv6 IP address
format with JDBC connection address.
A common format for the connection url is:
jdbc:subprotocol:subname
Where:
subprotocol = <some name>
subname = //<{IP Address|Machine Name}[:port]>/<database name>
Example:
jdbc:sql:t9://130.168.200.30:1433/database1
An IPv6 has the format
x:x:x:x:x:x:x:x
where the 'x's are the hexadecimal values of the
eight 16-bit pieces of the address. This is the
full form. For example,
1:2:0:0:5:6
The IPv6 format also allows an abbreviation version where 0's are
replaced with "::". So, the above address could also be written
as:
1:2::5:6
An optional port number can be added. For example,
1:2:0:0:5:6:8888
or as the following if using the abbreviation version of IPv6
1:2::5:6:8888
While decoding this version of the address, an ambiguity arises.
Does the address expand to
1:2:0:5:6:8888 // no optional port number
or
1:2:0:0:5:6:8888 // contains the optional port number.
Is this correct? If so, how are vendors dealing with this?
Thanks,
.........Ken
>
1:2:0:5:6:8888 // no optional port optional port numberYou are claiming that this is a valid address?
>
Is this correct? I am rather certain that you can not create a form that is ambiguous. Ipv4 has either 4 or 5 integers. Where Ipv6 has either 6 or 7.
If so, how are vendors dealing with
this?Realistically the following situations probably exist
- They are not dealing with it.
- The use the functionality in java.net.* and it deals with it.
- They wrote their own stuff which mimics what java.net.* does.
Similar Messages
-
IMessage will not work at home on my network. What is the port number?
IMessage will not work at home on my network. What is the port number?
iOS: Troubleshooting Messages
iOS: Troubleshooting FaceTime and iMessage activation
FaceTime, Game Center, Messages: Troubleshooting sign in issues
Make sure that Time Zone is also correct. -
What is the maximum number of physical link we can bind to a ether-channel and port-channel
Hi,
I was studying about port-channel & ether-channel and found that, it can be bind up-to 8 ports. So maximum number, we can have of 8 ports or more ?
For binding we should have minimum of 2 ports or 1 ports will work ? For load-balancing purpose, is the port no. would be in a bundle of 2,4 and 8 ?
ThanksHi Kathik,
I have gone through one document. It's saying the below mentioned things :
Jun 7, 2012 9:36 PM (in response to Sarabjit)
Re: What is the maximum number of etherchannels we can have?
The maximum number of Etherchannels varies from platform to platform. The maximum number of ports in an etherchannel is either 8 ro 16 depending on the platform. The minimum number of ports in an etherchannel bundle is 1.
Jun 8, 2012 1:27 AM (in response to Sarabjit)
Re: What is the maximum number of etherchannels we can have?
Etherchannels is a Cisco term. Other vendors call them 802.3ad trunks. It's common to see something like this in datasheets:
48 ports 10/100/1000 Mbit/s
802.3ad:
Maximum of 32 groups
Maximum of 8 ports per group
The document url is https://learningnetwork.cisco.com/thread/43680
The another document says the below mentioned things :
Matrix of Load Balancing Methods
This matrix consolidates the load balancing methods that this document describes:
Platform
Address Used in XOR
Source-Based?
Destination-Based?
Source-Destination-Based?
Load Balancing Method—Configurable/Fixed?
6500/6000
Layer 2, Layer 3 addresses, Layer 4 information, or MPLS information2
Yes
Yes
Yes
Configurable
5500/5000
Layer 2 address only
Yes
Cannot change the method
4500/4000
Layer 2, Layer 3 addresses, or Layer 4 information
Yes
Yes
Yes
Configurable
2900XL/3500XL
Layer 2 address only
Yes
Yes
Configurable
3750/3560
Layer 2 or Layer 3 address only
Yes
Yes
Yes
Configurable
2950/2955/3550
Layer 2 address only1
Yes
Yes
—1
Configurable
1900/2820
These platforms use a special method of load balancing. See theCatalyst 1900/2820 section for details.
8500
Layer 3 address only
Yes
Cannot change the method
1 For the 3550 series switch, when source-MAC address forwarding is used, load distribution based on the source and destination IP address is also enabled for routed IP traffic. All routed IP traffic chooses a port based on the source and destination IP address.
2 For the 6500 series switches that run Cisco IOS, MPLS layer 2 information can also be used for load balancing MPLS packets.
The document url is http://www.cisco.com/c/en/us/support/docs/lan-switching/etherchannel/12023-4.html
Another document says the below mentioned things for load-balancing :
inally, here is full list of valid load-distribution methods:
•dst-ip—Load distribution on the destination IP address
•dst-mac—Load distribution on the destination MAC address
•dst-port—Load distribution on the destination TCP/UDP port
•src-dst-ip—Load distribution on the source XOR destination IP address
•src-dst-mac—Load distribution on the source XOR destination MAC address
•src-dst-port—Load distribution on the source XOR destination TCP/UDP port
•src-ip—Load distribution on the source IP address
•src-mac—Load distribution on the source MAC address
•src-port—Load distribution on the source port
The document url is https://learningnetwork.cisco.com/thread/63064
Please suggest. -
What is the model number and how many ports in the back?
What is the Model number and how many ports int he back?
You can compare your yourself here:
http://www.apple.com/wifi/
The AirPort Express is Model Number A1394
The AirPort Extreme is Model Number A1408 -
Q: What is the maximum number of ARP entries (IPv4) and ND entries (IPv6) supported in Aruba controllers?
A: The maximum number of static ARP entries supported is about 2048 for M3/72xx/70xx platforms.
The maximum number of static ARP entries supported is about 128 for 6xx platforms.
The maximum number of static ND entries supported is about 2048 for M3/72xx/70xx platforms.
The maximum number of static ND entries supported is about 128 for 6xx platforms.a)It depends upon software level. b) 16,000 per card, With release 9.3:
60K Connections Support on BXM-E—Provides the ability to support a maximum of 60K per card for VSI applications for the BPX 8600, for example, PNNI or MPLS, used on enhanced BXM-E cards. -
Tomcat Server Port Number: Why do I have to enter the port number?
My ultimate goal is to setup a website that displays data from a database. I will use Java, Apache, Oracle, and whatever else I need to create a website the uses servlets, JavaServer Pages, and JDBC.
I�ve got four Pentium III computers:
1. Windows 2000 Server to be the web server (MyWebServer, IP = 10.10.1.1).
2. Windows 2000 Professional to be the database server (MyDatabaseServer, IP = 10.10.1.2).
3. Windows 2000 Professional that I use to develop and test (MyDeveloperPC, IP = 10.10.1.3).
4. Windows 2000 Professional that I use as a client to connect to the website (MyClientPC, IP = 10.10.1.4).
I installed Java Web Services Developer Pack on MyWebServer. It requires Java 2 Standard Edition (J2SE), so I installed that first. The files I downloaded and installed are as follows:
J2SE: j2sdk-1_4_0-rc-win.exe
JWSDP: jwsdp-1_0-ea1-win.exe
After installing these products, I set the environment variables as follows:
JAVA_HOME = c:\j2se
JWSDP_HOME = c:\jwsdp
Path = c:\j2se\bin;c:\jwsdp\bin; [and other previous statements]
On MyWebServer I start Tomcat (from the JWSDP menu option). It starts properly (as far as I can tell).
Then, from MyClientPC I open Internet Explorer and in the address box I type:
http://10.10.1.1
�The page cannot be displayed�.
I then try again and add the port number:
http://10.10.1.1:8080
This displays the page c:\jwsdp\webapps\root\index.html.
Here�s my question: Why do I have to enter the port number to get a page displayed? Do I have to have Apache HTTP Server running on MyWebServer to display pages without entering the port number?
Thanks for your help.Oh simmy1, so silly....
You have to enter the port number because Tomcat is running on that port (probably 8080). You actually don't NEED apache at all. Most people use it an HTTP listener because historically, servlet engines and application servers had shitty listeners. (WebLogic 5.1 was really bad.) Not sure how they stack up today.
Port 80 is the default port that browsers will look at. (Try it, hit these forums with http://forum.java.sun.com and then hit it with http://forum.java.sun.com:80. See? Same thing.) If you don't want to have to enter a port number, just make sure whatever is running at the front of your network is serving on port 80. It doesn't matter if its apache, tomcat, weblogic, iis or whatever. There is nothing wrong with running Tomcat on port 80, although using a webserver proxy like apache is generally recommended.
And don't listen to simmy1, this is his second bonehead post I've seen today: http://forum.java.sun.com/thread.jsp?forum=45&thread=231154 -
Java and Tomcat: Why do I need the port number when accessing Tomcat?
My ultimate goal is to setup a website that displays data from a database. I will use Java, Apache, Oracle, and whatever else I need to create a website the uses servlets, JavaServer Pages, and JDBC.
I�ve got four Pentium III computers:
1. Windows 2000 Server to be the web server (MyWebServer, IP = 10.10.1.1).
2. Windows 2000 Professional to be the database server (MyDatabaseServer, IP = 10.10.1.2).
3. Windows 2000 Professional that I use to develop and test (MyDeveloperPC, IP = 10.10.1.3).
4. Windows 2000 Professional that I use as a client to connect to the website (MyClientPC, IP = 10.10.1.4).
I installed Java Web Services Developer Pack on MyWebServer. It requires Java 2 Standard Edition (J2SE), so I installed that first. The files I downloaded and installed are as follows:
J2SE: j2sdk-1_4_0-rc-win.exe
JWSDP: jwsdp-1_0-ea1-win.exe
After installing these products, I set the environment variables as follows:
JAVA_HOME = c:\j2se
JWSDP_HOME = c:\jwsdp
Path = c:\j2se\bin;c:\jwsdp\bin; [and other previous statements]
On MyWebServer I start Tomcat (from the JWSDP menu option). It starts properly (as far as I can tell).
Then, from MyClientPC I open Internet Explorer and in the address box I type:
http://10.10.1.1
�The page cannot be displayed�.
I then try again and add the port number:
http://10.10.1.1:8080
This displays the page c:\jwsdp\webapps\root\index.html.
Here�s my question: Why do I have to enter the port number to get a page displayed? Do I have to have Apache HTTP Server running on MyWebServer to display pages without entering the port number?
Thanks for your help.When you web server is running at the default Http Port, then you do not have to specify the port yourself.(The browser does it automatically)
So if you run your web server at port 80, then you will not have to specify the port explicitlyin the url.
If you want to use tomcat only as a jsp/servlet processing engine then install a web server (either IIS, or apache web server) and run it on port 80. (so that you dont have to specify the port)
Now configure tomcat to run as a servlet engine for this web server. for this refer to the tomcat documentation.
If you do not want to have an external webserver then you can configure tomcat itself to run at port 80 (in this case tomcat would do the work of both the web server as well as jsp/servlet engine... but this is not the setup for a production site). this can be done by changing the server.xml file in the conf directory of tomcat installation.
hope this helps.
regards,
Abhishek. -
Identifying the port number where Tomcat is running.
I want to mail the URL of the my application dynamically with the system generated mails. With the help of java.net package I am able to get the IP address of the system, but I have hard coded the port no in the URL. I want to make the port no. also dynamic (E.g. IP address is not hard coded).
The servlet is deployed to the Tomcat server. What code I write to know the port on which the tomcat is running ?
thanks in advance,
Mukesh.You could use ServletRequest.getServerPort() to find out the port number on which the request is being sent by the client but I don't know if this will help you.
People on the forum help others voluntarily, it's not their job.
Help them help you.
Learn how to ask questions first: http://faq.javaranch.com/java/HowToAskQuestionsOnJavaRanch
(Yes I know it's on JavaRanch but I think it applies everywhere)
EDIT: ServletRequest.getLocaPort() gives the port at which the request is received; I'm not quite sure what the difference is ( I can guess but I'm not certain ) and I don't know which, if either, will be of use to you.
Edited by: nogoodatcoding on Oct 9, 2007 7:26 PM -
Dynamically determining the port number of a deployed application
Hi
How do I dynamically determine the port number of a deployed web application ?
I know HttpRequest.RequestURL() returns us the entire URL but I wanted to just
know the port number .
Is there any API do that ??
Thanks
Kar
kar piyush wrote:
> Hi
>
> How do I dynamically determine the port number of a deployed web application ?
> I know HttpRequest.RequestURL() returns us the entire URL but I wanted to just
> know the port number .
>
> Is there any API do that ??
>
kar,
Here's what I do under WL 7 SP2:
import javax.management.AttributeNotFoundException;
import javax.management.DynamicMBean;
import javax.management.MBeanException;
import javax.management.ReflectionException;
import javax.naming.Context;
import javax.naming.NamingException;
import weblogic.jndi.Environment;
import weblogic.management.MBeanHome;
String domainName,
serverName,
serverPort,
serverUrl;
// Getting the initial context
Environment env = new Environment();
try
Context ctx = env.getInitialContext();
if (ctx == null)
// unable to retrieve a JNDI context
return;
// Retrieving the server-specific MBeanHome interface
MBeanHome home =
(MBeanHome) ctx.lookup(MBeanHome.LOCAL_JNDI_NAME);
if (home == null)
// unable to retrieve the local server MBean
return;
// Get the domain & server name
domainName = home.getDomainName();
serverName = home.getMBeanServer().getServerName();
// The server port and address are a little trickier to extract...
Object mbeanArray[] =
home.getMBeansByType("ServerConfig").toArray();
DynamicMBean mbean = (DynamicMBean) mbeanArray[0];
try
serverPort =
Integer.parseInt(
mbean.getAttribute("ListenPort").toString());
serverUrl =
mbean.getAttribute("ListenAddress").toString();
catch (AttributeNotFoundException thrown)
// caught a AttributeNotFoundException
catch (MBeanException thrown)
// caught a MBeanException
catch (NullPointerException thrown)
// caught a NullPointerException
catch (ReflectionException thrown)
// caught a ReflectionException
catch (NamingException thrown)
log.debug("caught a NamingException", thrown);
-
How do i find the port number for oracle10g
Hi,
I have installed oracle10g on my pc running windows XP. I need to get the port number for JDBC drivers used by Java Application when defining a JDBC source.
Java is running on the same machine.
When I installed oracle I was given the links (with port numbers) for EM, ULTRA SEARCH and iSQLPLUS, what I need is the ORACLE10g database port number. Anybody know where I get from ?
Cheersthanks for the reply the portlist does not contain the port of oracle. The file is below.
[i]Ultra Search HTTP port number =5620
Enterprise Manager Agent Port =
iSQL*Plus HTTP port number =5560
Enterprise Manager Console HTTP Port (oracle10) = 5500
Enterprise Manager Agent Port (oracle10) = 1830
However searching through some other threads found the port to be 1521, which
oracle must set during installation and tell anybody, unless this infor is in the log.
so configured the oracle JDBC driver as below (PE8.2 --> ConnectionPools)
Datasource Classname = oracle.jdbc.pool.OracleDataSource
URL = jdbc:oracle:thin:@localhost:1521:oracle10
User = abc
Password = abc
Now able to ping. Cheers -
What is the service number in INTEGRATION_DIRECTORY_HMI
Can any one tell me What is the service number in INTEGRATION_DIRECTORY_HMI.
Is it J2EE PORT (THE WE FIND IN xi home page URL)OR HTTP PORT (the one we find in SMICM > Goto > services)
-Naveen.Hi,
It should be 5<Java inst no.>00
Also have a look into this document
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/1a69ea11-0d01-0010-fa80-b47a79301290
Regards,
Prakash
Message was edited by: Prakash Arunachalam -
How to hide the PORT NUMBER from the URL
Hi,
We have Application on Node 1 and Database on Node 2
Apps Version: 11.5.10.2
DB: 9.2.0.6
We recently added a new node to act as web server for iSupport.
Now we are able to access the url using public Ip-address which looks like
http://<Internet Ip-Address>:<PORT NUMBER>
Eg: http://******.com:8000
But we dont want the *'PORT NUMBER(8000)'* to be displayed.
How to hide the port number ?..
Thanks in Advance,
MaheshHi Hsawwan,
Can you plz explain me the steps how to hide the port number from the url as our network administrator is not aware of this.
Regards,
Mahesh -
Is it possible to change the port number of an already installed ITS?
Hello,
I've done an install of the latest ITS stand-alone application (win2k server , IIS). It was installed on port 81.
Is there an easy way to change the port number of this ITS installation without doing a new install? I know there are port references in the itsregistrywgate.xml file but was not sure if these were maintained during install or by reading the global.srvc file entries.
I've taken the simplistic steps of changing the port number in IIS and the global.srvc file but that does not work. I get a 403.2 read access forbidden error.
Any advice would be much appreciated.
Thanks,
GrahamHello Graham,
yes, it is possible but depends on what you want.
For IIS, WGate is depending on the following items:
ISAPI wgate (the filter API that triggers on /scripts/wgate) which is normally a general isapi for all webserver instances.
the virtual directory "SAP-WGate-Scripts" which exists for the according "virtual" webserver instance.
the (web)servername in wgate registry, which points to your virtual webserver
the "Port" in the URL section in wgate registry.
So, if you want to change the port (e.g. from 81 to 82) for both your virtual webserver and the wgate then go ahead.
But if you want an extra virtual host (e.g. on 82) then:
create the virtual host on 82
create a "SAP-WGate-Scripts" directory on this 82 host exactly as the one on the 81 host.
change the "Port" in the wgate URL section.
if you also have an own docroot directory you have to copy the SAP mimes from the 81 docroot to the new one.
The only thing that will be wrong afterwards is the webservername, this will have no effect on the runtime behavior but at the next patch install you will get an extra dialog to identify your webserver again.
If you wanted to go for the latter scenario then it might be less work to add a new instance by install e.g. a dual host wgate on the new virtual host or a single host install (with a dummy agate).
Afterwards you can play around with the WGate configuration to change it to your needs.
Regards,
Fekke -
Changing the port number in 10g Discoverer- Middle Tier & Infrasctructural
Earlier I had insalled 10g discoverer which incudes both Middle Tier & Infrastructural Tier with default port numbers.
Now i would like to change the default port numbers to other port numbers. This is because , i am got to do another discoverer installation with default port numers.
In this case i have one question. Is it required to change all the port numbers that exist in the file "portlist.ini" of both Middle Tier & Infrastructural Tier.
What change still i need to do in Oracle 11i application front.
Thanks
NaveenI did troubleshooting to verify the group, but this just changed the port number back to the default in the listener.ora & tnsnames.ora.
So I did all the steps again to change the port number from the default to another - via lsnrctl status, i see that the new port number is being used, I can also log in to the database via Toad using the new port number, in v$parameter i see that the local_listener is registered on the new port number....only under the Fail Safe manager, the port number (under listener parameter) has not changed....it still shows the default port number. Anyone know how to change this??? -
What is the maximum number of Active Connection in SSG 7206VXR?
Hi,
What is the maximum number of SSG Host or active connection (show ssg service package) for Cisco 7206VXR which running with NPE-G1? The SSG is deploying with Web-login and the TCP-Redirect, Port-bundle and Pass-through is enabling. The SSG is to handling IP session authentication. The SSG is binding Gigabit Ethernet.
The current version of IOS is show as below.
Cisco IOS Software, 7200 Software (C7200-ADVIPSERVICESK9-M), Version 12.4(9)T1, RELEASE SOFTWARE (fc2)
Thanks,
ChiaTo set the maximum number of services per user, use the ssg maxservice command in global configuration mode. To reset the maximum number of services per user to the default, use the no form of this command. ssg maxservice number and no ssg maxservice
If you want to know more please click following URL:
http://www.cisco.com/en/US/products/sw/iosswrel/ps5187/products_command_reference_chapter09186a008017cf59.html
Maybe you are looking for
-
Hi friends, need some help on this. I have to store data in a data base table. basically the table will have millions of records. I have a program which updates/creates/deletes the data in this heavy table in background job. But strong point i want t
-
Where does ARD store password info
Has anyone else had this issue, which is absolutely infuriating? From time to time ARD freaks out, does something stupid and its absolutely absurd. We just recently changed the passwords on our servers, simple enough, change the passwords in ARD, wro
-
MuseJAssert:Error calling selector function: Error:Invalid argument
Some people are reporting this error on one page of a site I am building. Those users are all using IE for a browser. The site is www.shermanoaksstreetfair.org and it comes up with the main stage schedule page. I took out all questionable links, bu
-
Hi experts !!!!!!! @ scope of sap b1
hello experts !!!!!!!! i am interested to know @ SAP B1 what is the scope of SAP B1 if i choose this as a carrier what will be the future. and what will be the salary get if i will be 1-2 year in that field . and which are the industries who provide
-
No entry in table T512W for key 40 9913
Dear Guru When I am running simulation payroll run, system is throwing this error "No entry in table T512W for key 40 9913". 9913 is the wage type which is getting updated due to INCS rule. In the log, 9913 value is same as value of EDLI Contribution