Connecting to database servers
Hi, I do have a problem with my Java project. I am suppose to develop a handphone program using Java for MIDP.
I wish to allow my handphone program to access MS SQL Databases.
Do I need to create servlets to act as middle-men for the MIDP Java files and the Databases? Is it the only way or is there other methods?
Thanks in advance.
It doesn't necesarilly have to be a servlet. Any other server side technology (JSP, ASP, CGI, etc.) can be used.
Some phones support socket connections, and maybe with these you can implement a direct connection to the SQL Server (I wouldn't know how to do it though, but with enough knowledge of SQL Server I imagine it's possible). But if you want you app to be portable (to different phones) you should stick to using an HttpConnection, and as far as I know (I could be wrong, and would love to hear a contradiction) you can't access the database directly this way.
I also have a client/server app that accesses an SQL Server 7 database, and I use ASP to open a connection to it and execute some stored procedures, and return the result set to the MIDlet in a delimited string.
Similar Messages
-
Determine connection status of multiple database servers
We have mutliple database servers that MAY/MAY NOT be connected to the network at any time. I need to determine which DB servers are available to connect to. I have a stored procedure that does a HOST TNSPING command and checking the results through the FORM_SUCCESS function. That works but the response time is too slow, due to taking too long to timeout. What we attempted to do was to issue a HOST PING command, but because of the 16 bit factor, the FORM_SUCCESS did not recognize the results of the PING. I tried to capture the results of a PING into a variable, but had no success. Bottom line, we don't care how it gets done, we just need to be able to determine, as quickly as possible, what database servers are connected.
Microsoft SQL allows for clustering of SQL databases, so for
instance two servers connected to a fileshare and a virtual address
shared across the two physical boxes. Database connections are made
to the virtual addres which will then be handled by the active
node. Becuase a database is ultimately a file(s) on a disk it can
only be attached to one node at a time so you end up with an
active/inactive cluster. -
Managed Server can not connect to Database
I have a WebLogic cluster with three managed Server on 3 different machines.
ManagedServer_1, ManagedServer_2, ManagedServer_3 (on Machine 3)
Firstly, everything is ok. But when we changed some configuration on Firewall and make the WebLogic cluster could not connect to database. 3 servers change status from Running to Warning. Then, we undo all the changes to the Firewall configuration. 3 Servers could connect to Database again but still in warning state.
It is strange that when I tried to restart ManagedServer_3. That server could not be up normally. It went to Admin state and all the datasources and connection pool could not be created. I tried to restart the machine 3 and start the server but it still failed to make server running normally.
( I made the test connecting to Database from Machine 3, everything is okie, I can got data from database, port 1521 opened )
Has anyone got the same problem and how to fix it? Is that the problem with the admin server?JDBC DataSources/Connection pools are all at Domain Level. All we do is just target the datasources to AdminServer and Entire cluster (this will take care of all managed servers in the cluster). From Weblogic Console, TEST the data sources for any firewall issues. If this works from console, check from where you are accessing the Console like within the Firewall, that can access the database server. Even though the actual application is deployed only on cluster, still I would recommend targetting the datasources to both AdminServer and Cluster.
Ravi Jegga -
Hi All,
I am getting an error message "All available connections to database server are in use by other client machines. Please try again later and check the log file for error 5054" when trying to log into HRC (This user has the reporting capabilities) . I checked the log files this is what i found out
The log file stated that there were ongoing connections of HRC with the CCX (I am sure there isn't any active login to HRC)
|| When you tried to login the following error was being displayed because the maximum number of connections were reached for the server . We can see that a total number of 5 connections have been configured . ||
1: 6/20/2014 9:13:49 AM %CHC-LOG_SUBFAC-3-UNK:Current number of connections (5) from historical Clients/Scheduler to 'CRA_DATABASE' database exceeded the maximum number of possible connections (5).Check with your administrator about changing this limit on server (wfengine.properties), however this might impact server performance.
|| Below we can see all 5 connections being used up . ||
2: 6/20/2014 9:13:49 AM %CHC-LOG_SUBFAC-3-UNK:[DB Connections From Clients (count=5)]|[(#1) 'username'='uccxhrc','hostname'='3SK5FS1.ucsfmedicalcenter.org']|[(#2) 'username'='uccxhrc','hostname'='PFS-HHXDGX1.ucsfmedicalcenter.org']|[(#3) 'username'='uccxhrc','hostname'='PFS-HHXDGX1.ucsfmedicalcenter.org']|[(#4) 'username'='uccxhrc','hostname'='PFS-HHXDGX1.ucsfmedicalcenter.org']|[(#5) 'username'='uccxhrc','hostname'='47BMMM1.ucsfmedicalcenter.org']
|| Once the maximum number of connection was reached it threw an error . ||
3: 6/20/2014 9:13:49 AM %CHC-LOG_SUBFAC-3-UNK:Number of max connection to 'CRA_DATABASE' database was reached! Connection could not be established.
4: 6/20/2014 9:13:49 AM %CHC-LOG_SUBFAC-3-UNK:Database connection to 'CRA_DATABASE' failed due to (All available connections to database server are in use by other client machines. Please try again later and check the log file for error 5054.)
Current exact UCCX Version 9.0.2.11001-24
Current CUCM Version 8.6.2.23900-10
Business impact Not Critical
Exact error message All available connections to database server are in use by other client machines. Please try again later and check the log file for error 5054
What is the OS version of the PC you are running and is it physical machine or virtual machine that is running the HRC client ..
OS Version Windows 7 Home Premium 64 bit and it’s a physical machine.
. The Max DB Connections for Report Client Sessions is set to 5 for each servers (There are two servers). The no of HR Sessions is set to 10.
I wanted to know if there is a way to find the HRC sessions active now and terminate the one or more or all of that sessions from the server end ?We have had this "PRX5" problem with Exchange 2013 since the RTM version. We recently applied CU3, and it did not correct the problem. We have seen this problem on every Exchange 2013 we manage. They are all installations where all roles
are installed on the same Windows server, and in our case, they are all Windows virtual machines using Windows 2012 Hyper-V.
We have tried all the "this fixed it for me" solutions regarding DNS, network cards, host file entries and so forth. None of those "solutions" made any difference whatsoever. The occurrence of the temporary error PRX5 seems totally random.
About 2 out of 20 incoming mail test by Microsoft Connectivity Analyzer fail with this PRX5 error.
Most people don't ever notice the issue because remote mail servers retry the connection later. However, telephone voice mail systems that forward voice message files to email, or other such applications such as your scanner, often don't retry and
simply fail. Our phone system actually disables all further attempts to send voice mail to a particular user if the PRX5 error is returned when the email is sent by the phone system.
Is Microsoft totally oblivious to this problem?
PRX5 is a serious issue that needs an Exchange team resolution, or at least an acknowledgement that the problem actually does exist and has negative consequences for proper mail flow.
JSB -
Multiple Database Servers Question
Hi,
Please forgive this ignorant question, but can someone tell
me how one would go about using multiple database servers?
Just as there comes a time where one would need more than
one web server and would need to use a load balancing
solution, what happens when one would need more than one
Database Server?
How does one go about implementing that solution?
Is there some way to have two database servers carrying the
same information with some kind of load balancing solution
in front of it(?) or does one place some tables on one
Database
server, and other tables on the other database server?
(I have no clue as to how things would work.)
Thanks in advance,
JoeMicrosoft SQL allows for clustering of SQL databases, so for
instance two servers connected to a fileshare and a virtual address
shared across the two physical boxes. Database connections are made
to the virtual addres which will then be handled by the active
node. Becuase a database is ultimately a file(s) on a disk it can
only be attached to one node at a time so you end up with an
active/inactive cluster. -
How to connect multiple databases
Hi all,
This is my situation , i need to set the max number of connections to one database , if the connection exceeds then i need to connect to another database , is there any way to solve it? please help meSounds like you want to write your own load balancer. Sweet!!
As was already stated, this would be best handled by clustering your database servers.
If it's not done at that level, what's the next best option? How are your users currently connecting to the database? Is it through a web server or from stand-alone clients? If it's a web server, the server should have some facility for creating datasources and pooling connections. If you are dead set on switching to a different database when the number of connections in the pool has been maxed out, then you might have to write your own singleton class to manage the connection pool(s).
If your users are connecting through stand-alone clients, you have to force the client applications to connect through a single server that controls the connections.
There's one major problem with switching databases...if a user saves some data there is no guarantee that they will connect to the same database when they want to read the data at some later point. Maybe if there is replication between the two databases in the cluster, they might be able to do that.
Edited by: user9221846 on Feb 11, 2011 8:04 AM
Edited by: user9221846 on Feb 11, 2011 8:05 AM -
How to read the RD Connect Broker DataBase!!!!
The msdn say there is a RD Connect Broker Data Base , it store the session information,but i dont know where is it and how to read it !
Thank you !!!!Hi,
You can use the vbs script below to dump the contents of the RD Connection Broker database.
With credits to the authors of the Windows Server 2008 R2 RDS Resource Kit for putting it in there!
' Copyright (c) 2004-2005 Microsoft Corporation
' WMI Script - SDDatabaseDump.vbs
' Author - GopiV
' This script dumps the contents (clusters and associated sessions)
' of the Session Directory database
' USAGE: Cscript.exe SDDatabaseDump.vbs <SBservername> <Administrator> <Password>
const TAB = " "
const LINESEPARATOR = "------------------------------------------------"
ON ERROR RESUME NEXT
'* Function blnConnect()
'* Purpose: Connects to machine strServer.
'* Input: strServer a machine name
'* strNameSpace a namespace
'* strUserName name of the current user
'* strPassword password of the current user
'* Output: objService is returned as a service object.
Function blnConnect(objService, strServer, strNameSpace, strUserName, strPassword)
ON ERROR RESUME NEXT
Dim objLocator
blnConnect = True 'There is no error.
' Create Locator object to connect to remote CIM object manager
Set objLocator = CreateObject("WbemScripting.SWbemLocator")
if Err.Number then
Wscript.Echo "Error 0x" & CStr(Hex(Err.Number)) & " occurred in creating a locator object."
if Err.Description <> "" then
Wscript.Echo "Error description: " & Err.Description & "."
end if
Err.Clear
blnConnect = False 'An error occurred
Exit Function
end if
' Connect to the namespace which is either local or remote
Set objService = objLocator.ConnectServer (strServer, strNameSpace, strUserName, strPassword)
if Err.Number then
Wscript.Echo "Error 0x" & CStr(Hex(Err.Number)) & " occurred in connecting to server " _
& strServer & "."
if Err.Description <> "" then
Wscript.Echo "Error description: " & Err.Description & "."
end if
Err.Clear
blnConnect = False 'An error occurred
end if
objService.Security_.impersonationlevel = 3
if Err.Number then
Wscript.Echo "Error 0x" & CStr(Hex(Err.Number)) & " occurred in setting impersonation level " _
& strServer & "."
if Err.Description <> "" then
Wscript.Echo "Error description: " & Err.Description & "."
end if
Err.Clear
blnConnect = False 'An error occurred
end if
end Function
' Start of script
if Wscript.arguments.count<3 then
Wscript.echo "Script can't run without 3 arguments: ServerName Domain\UserName Password "
Wscript.quit
end if
Dim strServer, strUserName, strPassword
Dim objService, blnResult
' Extract the command line arguments
strServer=Wscript.arguments.Item(0)
strUserName=Wscript.arguments.Item(1)
strPassword=Wscript.arguments.Item(2)
' Connect to the WMI service on the SD Server machine
blnResult = blnConnect( objService, strServer, "root/cimv2", strUserName, strPassword )
if not blnResult then
Wscript.echo "Can not connect to the server " & strServer & " with the given credentials."
WScript.Quit
end if
Set clusterEnumerator = objService.InstancesOf ("Win32_SessionDirectoryCluster")
if Err.Number then
Wscript.Echo "Error 0x" & CStr(Hex(Err.Number)) & " occurred"
end if
if clusterEnumerator.Count = 0 then
Wscript.Echo "No clusters found in Session Directory database on " & strServer & "."
Wscript.Echo
Wscript.Quit
end if
for each clusterObj in clusterEnumerator
WScript.Echo LINESEPARATOR
WScript.Echo "ClusterName = " & clusterObj.ClusterName
WScript.Echo "NumberOfServers = " & clusterObj.NumberOfServers
WScript.Echo "SingleSessionMode = " & clusterObj.SingleSessionMode
Wscript.Echo
set serverEnumerator = objService.ExecQuery("Select * from Win32_SessionDirectoryServer where ClusterName = '" & clusterObj.ClusterName & "'")
if Err.Number then
Wscript.Echo "Error 0x" & CStr(Hex(Err.Number)) & " occurred"
end if
if serverEnumerator.Count = 0 then
Wscript.Echo "Error : No servers in cluster " & clusterObj.ClusterName
Wscript.Echo
else
' Enumerate the servers in this cluster
for each serverObj in serverEnumerator
WScript.Echo TAB & "SERVER :"
WScript.Echo TAB & "ServerName = " & serverObj.ServerName & " ServerSingleSessionMode = " & serverObj.SingleSessionMode & " LoadIndicator = " & serverObj.LoadIndicator
' WScript.Echo TAB & "ServerIP = " & serverObj.ServerIPAddress
' WScript.Echo TAB & "ServerWeight = " & serverObj.ServerWeight
set sessionEnumerator = objService.ExecQuery("Select * from Win32_SessionDirectorySession where ServerName = '" & serverObj.ServerName & "'")
if Err.Number then
Wscript.Echo "Error 0x" & CStr(Hex(Err.Number)) & " occurred"
end if
if sessionEnumerator.Count = 0 then
WScript.Echo
WScript.Echo TAB & "No sessions on server " & serverObj.ServerName
WScript.Echo
else
WScript.Echo TAB & "NumberOfSessions = " & sessionEnumerator.Count
Wscript.Echo
' Enumerate the sessions on this server
for each sessionObj in sessionEnumerator
WScript.Echo TAB & TAB & "SESSION :"
WScript.Echo TAB & TAB & "UserName= " & sessionObj.DomainName & "\" & sessionObj.UserName & TAB & "ApplicationType= " & sessionObj.ApplicationType
& TAB & "SessionState= " & sessionObj.SessionState
WScript.Echo TAB & TAB & "CreateTime= " & sessionObj.CreateTime & TAB & "DisconnectTime= " & sessionObj.DisconnectTime
' WScript.Echo TAB & TAB & "ServerName= " & sessionObj.ServerName
' WScript.Echo TAB & TAB & "SessionID= " & sessionObj.SessionID
' WScript.Echo TAB & TAB & "ServerIP= " & sessionObj.ServerIPAddress
' WScript.Echo TAB & TAB & "TSProtocol= " & sessionObj.TSProtocol
' WScript.Echo TAB & TAB & "ResolutionWidth= " & sessionObj.ResolutionWidth
' WScript.Echo TAB & TAB & "ResolutionHeight= " & sessionObj.ResolutionHeight
' WScript.Echo TAB & TAB & "ColorDepth= " & sessionObj.ColorDepth
' WScript.Echo
WScript.Echo
next
end if ' End of sessions on this server
next
end if ' End of servers on this cluster
next
Wscript.Echo
Wscript.Echo
Wscript.Echo "Dump of SD database on " & strServer & " complete."
Kind regards,
Freek Berson
http://www.microsoftplatform.blogspot.com
Wortell company website -
Cannot connect to database master at SQL server at SERVERNAME
I have installed SQL 2008 R2 in a fresh win 2008 R2. I’m running the sharepoint configuration Wizard using the database server name with the correct domain
credentials but I get the following error message. “Cannot connect to database master at SQL server at
SERVERNAME. The database might not exist, or the current user does not have permission to connect”
I‘m able to login to the new SQL server using the “SQL server management studio” with no problems. I used the sa account and a domain account.
The sharepoint server is also a new installation. And both servers have the firewall disabled.
Thanks in advance for your help.
SimonHi,
What is your SharePoint server’s version?
Please make sure you use the farm admin account to launch SharePoint configuration wizard. If not, please log in with this account, then check the effect.
In addition, check if you create a named instance, such as, servername\sharepoint, however, you only specify the servername in the configuration wizard. If this is
the case, change to servername\sharepoint, then check the effect.
Thanks,
Rock Wang
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support,
contact [email protected]
Regards, Rock Wang Microsoft Online Community Support -
Help: FORMS SERVER cannot connect to database (forms patch9)
Hi:
I've installed oracle 9i database and oracle 9ias 1.0.2.2.2a.
I configured FormsServlet and it's working very well as i suceed my test in http://machina.domain/servlet/oracle.forms.servlet.ListenerServlet!
The problem is that i cannot connect to the database and i got the error ORA-12203 TNS: Unable to connect to destination!
I've changed jserv.properties as recommended in 9ias 10222 release notes by commenting the wrapper.env=ORACLE_HOME in OJSP because it conflicts with forms server home.
I've read all about this, and i still cannot connect to the database.
I'm using a forms servlet configuration with IE JVM.
If anyone can help me... i apreciate it!
By the way in my jserv.properties forms server config i have:
# Oracle Forms and Reports Servers
wrapper.classpath=C:\ORACLE\806\forms60\java\f60srv.jar
wrapper.classpath=C:\ORACLE\806\forms60\java
If i have this the Test native method call (JNI) fails, but forms server keeps running. The error is:
Calling RunformProcess.nInitLib()...
RunformProcess.nInitLib() failed:
java.lang.NoClassDefFoundError: oracle/forms/servlet/RunformProcess
Your server configuration needs correcting. Please refer to the Forms documentation for details
If i comment the f60srv.jar as showed here i suceed the test
# Oracle Forms and Reports Servers
# wrapper.classpath=C:\ORACLE\806\forms60\java\f60srv.jar
wrapper.classpath=C:\ORACLE\806\forms60\java
So... anyone help ?
Ricardo
PS: I can't understand why oracle keep sending huge amounts of releases of products and everytime they send a new release, that new release keeps coming with new bugs.Hi:
This just connection problem just happen if i use formsservlet http connect mode. if i use normal HTTP (without servlet)connect mode with Jinitiator (1.1.8.16) i successfully connect to database (oracle 9i).
Anyone there using 9ias 1.0.2.2.2a with forms server servlet and oracle database 9i ?
thankx -
Eclipse can connect in database perspective, but Java program can't
I am totally new to JAVA, so I expect I am making a prize goof somewhere...
On my Macbook Pro (OS X 10.5) I have installed MySql and Eclipse and I have created a database with a number of tables populated with data (using phpmyadmin).
I seem to have the drivers in the right places and the classpath set correctly, because I can see my database, tables and columns in the "database perspective" in Eclipse. (I can see and manipulate my database in a variety of admin tools - so I think I have my user id, password and permissions set correctly.)
So, Eclipse can connect to my data base, but the following little Java test program can't can't connect to it.
I copied this sample test program from a website and supplied the parameters for user id, password and url, but I get the console message, "cannot connect to database server" each time i run it within the Eclipse sdk:
import java.sql.*;*
public class connect
public static void main (String[] args)
Connection conn = null;
try
String userName = "root";
String password = "mypassword";
String url = "jdbc:mysql://localhost:3306/testdatabase";
Class.forName ("com.mysql.jdbc.Driver").newInstance ();
conn = DriverManager.getConnection (url, userName, password);
System.out.println ("Database connection established");
catch (Exception e)
System.err.println ("Cannot connect to database server");
finally
if (conn != null)
try
conn.close ();
System.out.println ("Database connection terminated");
*catch (Exception e) { /* ignore close errors */ }
Any Ideas why eclipse can connect, but this little program can't?Almost nothing uses the system classpath anymore. IDE's, when they execute and compile projects, setup "custom" environments for those projects, web containers and application servers do the same for the applications they are responsible for, applets use the "codebase" and "archive" params, when you use the "-cp" option, the System classpath is also ignored, and when you use "-jar" both "-cp" and the system classpath are ignored. IOW, never depend on the system classpath. That is an outdated way of managing your environments, especially when you have applications running on varying versions of the JVM.
-
What's wrong with this MySQL connection? "Could not create connection to database server"
I'm able to connect to other MySQL databases but this one particular remote MySQL connection isn't working and I cannot figure it out. It probably has something to do with the remote server, not CF, but I thought I'd post it here if anyone had an idea. The MySQL account has full priviledges.
Here is the message when I try to validate the data source:
Connection verification failed for data source: test
com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnect 3 times. Giving up.
The root cause was that: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnect 3 times. Giving up.This happened on two servers. One one, the cause was that skip-networking was turned on. In the other situation, it appears that the database name was case sensitive, so TEST was not the same as test. Even though I edited the data source in the CF administrator, it still didn't work (very misleading). When a coworker entered a new data source with the same information (uppercase database name this time from the start), it worked.
Has anyone else seen this problem with the case sensitive database names? And with the data source in CF not updating the case correctly? Seems like a bug in CF. -
"new PDO" inconsistent in connections across our servers
Using PDO oci, our application web pages connect to various Oracle databases. All database connections before used the following connect strings successfully:
$conn = new PDO("oci:dbname=//servername.domain*:1521*/db_service_name",$db_username,$db_password);
up until last Friday 5/18 when one particular server connection attempt would throw a "Fatal error" unless we modify the connection string as follows:
$conn = new PDO("oci:dbname=//servername.domain/db_service_name",$db_username,$db_password); // no port number
php version appears to be 5.3, database version is 10.2.0.5.0, all running on linux RHEL 5. Other connections using RHEL 4, but I believe that is moot in that the app server running php 5.3 with oci8.so to connect to the database server running oracle 10.2.0.5 was working, but on Monday 5/21, it was not working.
Fatal error when not working is:
PHP Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[]: (null)' in /home/driskind/test_oci.php:7
Stack trace:
#0 /home/driskind/test_oci.php(7): PDO->__construct('oci:dbname=//ea...', 'user...', 'password')
#1 {main}
thrown in /home/driskind/test_oci.php on line 7
Note that from this same host, php can connect to older database servers utilizing the connection string with the port number, so I am suspecting a configuration on the database server side for the new database server where connection string using port number fails.
Please don't ask why application doesn't use other methods. They have adamantly stated they wish to continue to use thier application with php configured as is.Unless things have really changed with PDO I recommend not using it. Just use the OCI_ methods. For me the biggest problem is that PDO ( at my last reading ) does not support reference cursors which for me is just a non starter.
-
Connecting two Central Servers??
Mohan,
More info may be beneficial.
If you are trying to share service objects across two environments, you will
need to create
a reference partition. If the two different Central Servers are truly on two
different machines,
you can connect their environments.
If it's a matter of having your app on one server and the database on another,
you can
use SQLNET and connect using TNS NAMES.
The forte manuals can tell you how to create a reference partition, connect
environment,
etc.
Hope this helps somewhat.
Peggy Adrian
Eli Lilly and Company
[email protected]
---------------------- Forwarded by Peggy Lynn Adrian/AM/LLY on 01/12/98 01:09
PM ---------------------------
MOHAN CHICKMAGALUR <[email protected]> on 01/12/98 01:13:40 AM
Please respond to MOHAN CHICKMAGALUR <[email protected]>
To: [email protected]
cc: [email protected]
Subject: Connecting two Central Servers??
Dear Friends,
Wish U all avery happy new year. In our office we have 2 groups
working on two different Forte Central Server, say FCS-A & FCS-B. FCS-A
has the Oracle Database. We now want the clients connected to FCS-B to
access the Oracle Database. How do I connect these two???
Thanks in Advance for the help
mohan
Get Your Private, Free Email at http://www.hotmail.comI have heard about connecting 2 environments. I have never tried it
myself. Here is how you do it.
As long as your second environment has an environment visible service
object and your first environment does not have such an SO with the same
name, you can specify in the FORTE_NS_ADDRESS environment variable of
the first environment, the address for both the environments. This is
what I have seen in some examples
FORTE_NS_ADDRESS=env1:5000;env2:5000;env3:5000 and so on.
The control will query each environment for the SO.
Hope this helps. Remember, I have not tried it, so I cannot authenticate
it.
Venkat J Kodumudi
Price Waterhouse LLP
Internet: [email protected]
Internet2: [email protected]
-----Original Message-----
From: [email protected] [SMTP:[email protected]]
Sent: Monday, January 12, 1998 7:32 PM
To: Venkat Kodumudi
Subject: Connecting two Central Servers??
To: [email protected] @ Internet
cc: [email protected] @ Internet
From: [email protected] @ Internet
Date: 01/11/98 10:13:40 PM PST
Subject: Connecting two Central Servers??
Dear Friends,
Wish U all avery happy new year. In our office we have 2
groups
working on two different Forte Central Server, say FCS-A & FCS-B.
FCS-A
has the Oracle Database. We now want the clients connected to FCS-B to
access the Oracle Database. How do I connect these two???
Thanks in Advance for the help
mohan
Get Your Private, Free Email at http://www.hotmail.com -
Problem with connection to database when PC is connected to network
Hi,
I can't connect to my database locally when my PC (with database) is connected to network. When I try run enterpsise manager I see that Database Instance is down, Agent Connection to Instance is down with error ORA-12505 and Listener is up. When I try connect by sqlplus I see errors :ORA-01034 :Oracle not avilable and ORA-27101:shared memory realm does not exists. When I was installing database my PC was not connected to network.
When I disconnect my PC from network, after few minutes I can run enterprise manager, can connect to Oracle and everything is OK.Moreover after that I can connect PC to network and still everything is OK.
What is the reason of this problem and what can I do that I could always connect to Oracle, whenever my PC is connected or disconeccted to network?
Thanks
Jarekuser9290950 wrote:
Hi,
As I wrote in my previous post when I was installing database my PC was not connected to network.
And as was already replied.
My guess is that you installed on a network with dynamic IP and now you have a different IP address or none. If this is the case it is a clear indication that you didn't waste any time reading the installation documentation before you installed. This might be a great time to do so.Now, go back and read the installation guide. Pay particular attention to the section titled "Database Network Topics", especially the part about loopback adapters.
Servers process don't work very well with DHCP assigned addresses, causing the clients to have to guess where the server is.
version of Windows- Windows XP ( I test there my java program which connects to Oracle),
version of Oracle - 10g Release 2,
Oracle database service is running,
IP address which I gets is dynamic. After getting this addres I can't connect to database.
My TNSNAMES.ORA file:
SMSINFO =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = SMSINFO)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
Thanks
Jarek -
Please help in db connectivity issue after servers moves to diff location
Our database is 10.2.0.3 with 2 nodes in RAC. Our database servers are MS 2003 R2. Recently we moved our database to different servers in different location. Say we have location A, B and C.
A - the location for database users include me.
B - the old db location
C - the new db location.
Location B and C are in the same city but different places. A and B are located in different cities. I was told that there is no direct connection between A and C and the connection between A and C has to go through B. Since the move we have experienced database connectivity issue between A and C. Some users got “ORA-03113: end-of-file on communication channel”. For me I have constantly got “ORA-03135: connection lost contact” from Sqlplus or Toad if I leave my session idle for one hour or longer no matter if it uses dedicated connection or shared connection. We also asked our network admin to make sure there is no firewall in between and we also add KeepAliveTime and KeepAliveInterval to the new db server registry. We also have a TAR with Oracle.
Thanks a lot for your help in advance.
ShirleyIt feels like a firewall issue, yes. But this is realistically just a hunch-- your network admins ought to have a lot more tools at their disposal to diagnose the problem. It's quite possible that it's not a firewall but a flaky router or excessive packet loss over a WAN or any number of potential network related hiccups. If I had to place a bet, I'd be wagering on a firewall, but I certainly wouldn't be staking my life on it. I'd definitely be leaning on the network folks to diagnose the issue(s)-- there may well be multiple problems, i.e. a firewall that times out idle connections after an hour and a flaky router that drops connections for some subset of users between A and B.
Justin
Maybe you are looking for
-
I know that Position is the abstract data type and that it supports only one method - element() (that returns the element stored in this position).. Now when I wish to implement a List (with doubly linked list) using the Interface List...In the Inter
-
Using RAW in Jave Bean to store data in Oracle 8i database
I have a question about using RAW in java program to read write data in Oracle database. Is there any sample with key information for me to refer to? Your help will be appreciated. Jane
-
InDesign CC requirements & porting guide
Hi all, I'm looking for the ID CC requirements and porting guide (and others...). The ./docs/guides PDF folder in sdk (Build 244) just contains "IDML Specification.pdf". Which Mac/Win versions ? Which XCode/Visual versions ? How to convert a CS6 proj
-
Change default location of Ircat?
On pc. Is there a way to change the default location of the database (Ircat). I noticed it is in my "C" drive. I have a separate partition for data, which is where I would like LR to point the database. Genereally with Adobe products this would be do
-
I am upgrading to a new laptop computer (from XP pro to Vista 64), and because of previous hard drive space limitations, all of my photos are located on external hard drives. After installing LR on the new machine, I copied the catalog file over as w