Trouble in connecting to database
I'm using Dreamweaver CS3, and everytime I try to connect to
a database, when it is testing the database connection, I always
get this error message:
HTTP Error Code 504 Some error
Can somebody here please help me with this problem?
Thanks a lot in advance! :D
Hi Subhadip Kumar
Thank you for ur quick response.
1. Check whether all database service is up and running.
All database service are up and running. Because SAP is working fine I am just performing export for migrating the database to different platform.
2. Check whether correct parameters about the database has been defined in the secure store of the config tool.
All Sec store parameters are fine, other portal wont work. Its a productive system. System is working fine.
3. Make sure all the database resources (datafiles and logfiles) are available. Check it from Cluster Administrator.
All database resources (datafiles and logfiles) are available. Donu2019t have any issue with database or with the cluster.
Thanks,
Surendra
Similar Messages
-
Hi,
My team and I are trying to resolve this issue. some of our users are having trouble uploading data into the database. this is the error that they are getting.
I would really appreciate it if you could help me get ridd fo this issue.
Server Error in '/' Application.
Unable to connect to database. Check database connection information and make sure the database server is running.
Description:
An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details:
System.Runtime.InteropServices.COMException: Unable to connect to database. Check database connection information and make sure the database server is running.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace
below.
Stack Trace:
[COMException (0x81020024): Unable to connect to database. Check database connection information and make sure the database server is running.]
Microsoft.SharePoint.Library.SPRequestInternalClass.PreInitServer(String bstrAbsoluteRequestUrl, String bstrServerRelativeUrl, Int32 lZone, Guid gApplicationId, Guid gSiteId, Guid gDatabaseId,
String bstrDatabaseServer, String bstrDatabaseName, String bstrDatabaseUsername, String bstrDatabasePassword, Boolean fHostHeaderIsSiteName) +0
Microsoft.SharePoint.Library.SPRequest.PreInitServer(String bstrAbsoluteRequestUrl, String bstrServerRelativeUrl, Int32 lZone, Guid gApplicationId, Guid gSiteId, Guid gDatabaseId, String
bstrDatabaseServer, String bstrDatabaseName, String bstrDatabaseUsername, String bstrDatabasePassword, Boolean fHostHeaderIsSiteName) +359
[SPException: Unable to connect to database. Check database connection information and make sure the database server is running.]
Microsoft.SharePoint.Library.SPRequest.PreInitServer(String bstrAbsoluteRequestUrl, String bstrServerRelativeUrl, Int32 lZone, Guid gApplicationId, Guid gSiteId, Guid gDatabaseId, String
bstrDatabaseServer, String bstrDatabaseName, String bstrDatabaseUsername, String bstrDatabasePassword, Boolean fHostHeaderIsSiteName) +479
Microsoft.SharePoint.SPSite.PreinitializeServer(SPRequest request) +666
Microsoft.SharePoint.SPWeb.InitializeSPRequest() +548
Microsoft.SharePoint.SPWeb.EnsureSPRequest() +75
Microsoft.SharePoint.SPWeb.get_Request() +74
Microsoft.SharePoint.WebControls.SPControl.SPWebEnsureSPControl(HttpContext context) +613
Microsoft.SharePoint.WebControls.SPControl.GetContextWeb(HttpContext context) +41
Microsoft.SharePoint.SPContext.get_Current() +123
CKS.EBE.BlogContext.get_BlogEnabledSite() +37
CKS.EBE.BlogHttpModule._app_PostAuthorizeRequest(Object sender, EventArgs e) +113
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +80
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +171
the description of the error on the server is as follows:
The description for Event ID ( 27745 ) in Source ( Windows SharePoint Services 3 ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use
the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: #50071: Unable to connect to the database MOSS_Content_RBI on BartDB\Bart. Check the database connection information
and make sure that the database server is running..are you using the Aliases for the SQL Server, make sure your account having the correct permission.
If it is your QA farm, you can run the config wizard to fix his problem...
check this post having the similar issue.
http://social.technet.microsoft.com/Forums/sharepoint/en-US/478d6b3a-a51e-48c5-832b-5afb51c69734/unable-to-connect-to-the-sql-content-database-from-sharepoint-web-front-server?forum=sharepointadminlegacy
http://hammad1.wordpress.com/2008/06/04/unable-to-connect-to-database-in-event-logs/
Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog -
Cannot connect to database via TNS
Hello!
I installed XE with default settings and have some trouble. I cannot connect to database via TNS. Two symptoms:
1. I can connect with SQLPLUS system/pwd (locally, without tns name input), but CANNOT connect with SQLPLUS system/pwd@EX (WITH TNS NAME input).
2. I cannot start Database Home Page.
How to avoid this problem? Any ideas?
DETAILS:
PC configuration: Win2k+SP4, 512Mb, Outpost Firewall (disabled!), No another Oracle products being installed.
TNSNAMES.ORA file:
************* BEGIN TNSNAMES *****************************************
XE =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = pz)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = XE)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
ORACLR_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
(CONNECT_DATA =
(SID = CLRExtProc)
(PRESENTATION = RO)
************* END OF TNSNAMES *****************************************
Listener status:
************* BEGIN STATUS *****************************************
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_XE)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Prod
ction
Start Date 22-MAR-2006 17:27:15
Uptime 0 days 1 hr. 8 min. 53 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Default Service XE
Listener Parameter File D:\oracle\ora10xe\app\oracle\product\10.2.0\server\ne
work\admin\listener.ora
Listener Log File D:\oracle\ora10xe\app\oracle\product\10.2.0\server\ne
work\log\listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC_FOR_XEipc)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=pz)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=8080))(Presentation
HTTP)(Session=RAW))
Services Summary...
Service "CLRExtProc" has 1 instance(s).
Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "XEXDB" has 1 instance(s).
Instance "xe", status READY, has 1 handler(s) for this service...
Service "XE_XPT" has 1 instance(s).
Instance "xe", status READY, has 1 handler(s) for this service...
Service "xe" has 1 instance(s).
Instance "xe", status READY, has 1 handler(s) for this service...
The command completed successfully
************* END OF STATUS *****************************************
NETSTAT -an results:
************* BEGIN NETSTAT *****************************************
Proto Local Address Foreign Address State
TCP 0.0.0.0:1521 0.0.0.0:0 LISTENING
TCP 0.0.0.0:2298 0.0.0.0:0 LISTENING
TCP 127.0.0.1:2455 127.0.0.1:8080 ESTABLISHED
TCP 127.0.0.1:8080 0.0.0.0:0 LISTENING
TCP 127.0.0.1:8080 127.0.0.1:2382 CLOSE_WAIT
TCP 127.0.0.1:8080 127.0.0.1:2455 ESTABLISHED
TCP 192.168.200.49:1521 192.168.200.49:2298 ESTABLISHED
TCP 192.168.200.49:2298 192.168.200.49:1521 ESTABLISHED
<truncated>
************* END OF NETSTAT *****************************************
I found following error in SQLNET.LOG:
*************** START LOG *********************************************
Fatal NI connect error 12570, connecting to:
(LOCAL=NO)
VERSION INFORMATION:
TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
Oracle Bequeath NT Protocol Adapter for 32-bit Windows: Version 10.2.0.1.0 - Production
Windows NT TCP/IP NT Protocol Adapter for 32-bit Windows: Version 10.2.0.1.0 - Production
Time: 22-MAR-2006 17:28:59
Tracing not turned on.
Tns error struct:
ns main err code: 12570
TNS-12570: TNS:packet reader failure
ns secondary err code: 12560
nt main err code: 0
nt secondary err code: 0
nt OS err code: 0
*************** END OF LOG *******************************************I successfully connect with XE client to another Oracle databases from LAN, including 8i and 9i databases.
But cannot connect from another machines to my XE. -
First let me say sorry as i have already started this post in another thread, but know one seems to be replying to it any more. the other thread can be found out: http://forum.java.sun.com/thread.jspa?messageID=9413573
package coreservlets;
public class Catalog {
private static CatalogItem[] items =
{new CatalogItem
("hall002",
"<I>Core Web Programming, 2nd Edition</I> " +
"by Marty Hall and Larry Brown",
"One stop shopping for the Web programmer. " +
"Topics include \n" +
"<UL><LI>Thorough coverage of Java 2; " +
"including Threads, Networking, Swing, \n" +
"Java 2D, RMI, JDBC, and Collections\n" +
"<LI>A fast introduction to HTML 4.01, " +
"including frames, style sheets, and layers.\n" +
"<LI>A fast introduction to HTTP 1.1, " +
"servlets, and JavaServer Pages.\n" +
"<LI>A quick overview of JavaScript 1.2\n" +
"</UL>",
49.99),
new CatalogItem
("lewis001",
"<I>The Chronicles of Narnia</I> by C.S. Lewis",
"The classic children's adventure pitting " +
"Aslan the Great Lion and his followers\n" +
"against the White Witch and the forces " +
"of evil. Dragons, magicians, quests, \n" +
"and talking animals wound around a deep " +
"spiritual allegory. Series includes\n" +
"<I>The Magician's Nephew</I>,\n" +
"<I>The Lion, the Witch and the Wardrobe</I>,\n" +
"<I>The Horse and His Boy</I>,\n" +
"<I>Prince Caspian</I>,\n" +
"<I>The Voyage of the Dawn Treader</I>,\n" +
"<I>The Silver Chair</I>, and \n" +
"<I>The Last Battle</I>.",
19.95),
new CatalogItem
("alexander001",
"<I>The Prydain Series</I> by Lloyd Alexander",
"Humble pig-keeper Taran joins mighty " +
"Lord Gwydion in his battle against\n" +
"Arawn the Lord of Annuvin. Joined by " +
"his loyal friends the beautiful princess\n" +
"Eilonwy, wannabe bard Fflewddur Fflam," +
"and furry half-man Gurgi, Taran discovers " +
"courage, nobility, and other values along\n" +
"the way. Series includes\n" +
"<I>The Book of Three</I>,\n" +
"<I>The Black Cauldron</I>,\n" +
"<I>The Castle of Llyr</I>,\n" +
"<I>Taran Wanderer</I>, and\n" +
"<I>The High King</I>.",
19.95),
new CatalogItem
("rowling001",
"<I>The Harry Potter Series</I> by J.K. Rowling",
"The first five of the popular stories " +
"about wizard-in-training Harry Potter\n" +
"topped both the adult and children's " +
"best-seller lists. Series includes\n" +
"<I>Harry Potter and the Sorcerer's Stone</I>,\n" +
"<I>Harry Potter and the Chamber of Secrets</I>,\n" +
"<I>Harry Potter and the " +
"Prisoner of Azkaban</I>,\n" +
"<I>Harry Potter and the Goblet of Fire</I>, and\n" +
"<I>Harry Potter and the "+
"Order of the Phoenix</I>.\n",
59.95)
public static CatalogItem getItem(String itemID) {
CatalogItem item;
if (itemID == null) {
return(null);
for(int i=0; i<items.length; i++) {
item = items;
if (itemID.equals(item.getItemID())) {
return(item);
return(null);
Using the above servlet and this one:
package coreservlets
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
import java.sql.*;
public class browser extends HttpServlet {
public void doGet(HttpServletRequest request,
HttpServletResponse response)
throws ServletException, IOException {
response.setContentType("text/html");
PrintWriter out = response.getWriter();
Connection conn = null;
try{
Class.forName("com.mysql.jdbc.Driver").newInstance();
} catch(Exception e) {
System.out.println(e);
// connecting to database
try{
conn = DriverManager.getConnection
("jdbc:mysql://MY WEB ADDRESS FOR THE SQL TABLES GOES HERE");
// System.out.println("Connection to database successful.");
catch(SQLException se) {
System.out.println(se);
try{
// Get the category from the input form
String categoryString = request.getParameter("category");
// check if no category
if (categoryString == "") categoryString = "Action & Adventure";
String selectSQL = "select title, director, rating, year_released, price, stock_count, image_name "+
"from video_recordings "+
"where category = '" + categoryString + "'";
Statement stmt = conn.createStatement();
ResultSet rs1 = stmt.executeQuery(selectSQL);
// output html headers
String title = "Films in the " + categoryString + " genre" ;
out.println(ServletUtilities.headWithTitle(title) +
"><BODY BGCOLOR=\"#a00e0e\">\n" +
"<center><img src=\"http://localhost:8080/examples/pic.jpg\" width=350 height=200/></center>\n" +
"<H1 ALIGN=\"CENTER\">" + title + "</H1>\n");
out.println("<TABLE BORDER=1 ALIGN=\"CENTER\">\n" +
"<TR BGCOLOR=\"#FFAD00\">\n" +
" <TH>Title\n" +
" <TH>Director\n" +
" <TH>Rating\n" +
" <TH>Year Released\n" +
" <TH>Price\n" +
" <TH>Number in stock\n" +
" <TH>image name"
// Retrieve the results
while(rs1.next()){
out.println("<TR>" +
"<TD>" + rs1.getString("title") + "</TD>" +
"<TD>" + rs1.getString("director") + "</TD>" +
"<TD>" + rs1.getString("rating") + "</TD>" +
"<TD>" + rs1.getDouble("year_released") + "</TD>" +
"<TD>" + rs1.getString("price") + "</TD>" +
"<TD>" + rs1.getString("stock_count") + "</TD>" +
"<TD>" + rs1.getString("image_name") +"</TD>\n");
"<TD> <IMG SRC=\"../images/music/" + image_name +"\">"
// close the html
out.println("</TABLE></BODY></HTML>");
// Close the stament and database connection
stmt.close();
conn.close();
} catch(SQLException se) {
System.out.println(se);
}How do i merge these two together so that a catalogItem is created by connecting to the database and uses the select statement?? If any one can help me here i would be really grateful as i am having real trouble with this.Below is what i have come up with (I cut out the code that just gets in the way for this post, eg the connect to database and import statements) My problem is this would only work once has i need to add the item to the array addedItem in the first for loop, can anybody help me with this has i have tried a number of ways but can't get it to compile.
private static CatalogItem[] addedItem
private static CatalogItem[] ItemsInCat;
CatalogItem item;
CatalogItem details;
int recordingidDB;
String directorDB;
String titleDB;
String categoryDB;
String imageDB;
int durationDB;
String ratingDB;
String yearDB;
float priceDB;
int StockDB;
// Create select statement and execute it
try{
String selectSQL = "select title, director, rating, year_released, price, stock_count, image_name "+
"from video_recordings " + "'";
Statement stmt = conn.createStatement();
ResultSet rs1 = stmt.executeQuery(selectSQL);
while(rs1.next()){
recordingidDB = rs1.getInt("recording_id");
directorDB = rs1.getString("director");
titleDB = rs1.getString("title");
categoryDB = rs1.getString("category");
imageDB = rs1.getString("image_name");
durationDB = rs1.getInt("duration");
ratingDB = rs1.getString("rating");
yearDB = rs1.getString("year_released");
priceDB = rs1.getFloat("price");
stockDB = rs1.getInt("stock_count");
item =
new CatalogItem
(recordingidDB, directorDB,titleDB, categoryDB, imageDB, durationDB, ratingDB, yearDB, priceDB, stockDB);
String title = "Catalog Items";
out.println(ServletUtilities.headWithTitle(title) +
"<BODY BGCOLOR=\"#a00e0e\">\n" +
"<center><img src=\"http://localhost:8080/examples/img.jpg\" width=350 height=200/></center>\n" +
"<H1 ALIGN=\"CENTER\">" + title + "</H1>\n");
// loop to go over each item in the array of catalogItem
for (int i=0; i < ItemsInCat.length; i++) {
out.println("__________________________");
details = item;
if (details == null) {
out.println("SORRY THERE HAS BEEN AN ERROR ");
} else {
addedItem[] // needd to store item in array here
out.println(titleDB + "\n" + priceDB + "\n");
out.println("</BODY></HTML>");
public static CatalogItem getItem(int recordingidDB) {
CatalogItem item;
for(int i=0; i<itemsInCat.length; i++) {
item = itemsInCat[i];
if (recordingidDB.equals(item.getItemID())) {
return(item);
return(null);
// Close the stament and database connection -
RMAN off line backup failed as unable to connect to database while databse
Hi,
I am facing below error while running offline rman backup:
OS: HP-UX, Database : 11.1.7
Issue:
1. using simple shell script stopping the database then mounting it for rman backup (script is running from root)
3. rman unable to connect to database then tried various ways to connect to database as bellow but no success:
SQL> conn rman/rman@orcl
ERROR:
ORA-12537: TNS:connection closed
while
SQL> conn rman/rman as sysdba
Connected.
SQL>
SQL> conn rman/rman
ERROR:
ORA-01033: ORACLE initialization or shutdown in progress
Process ID: 0
Session ID: 555 Serial number: 29
Alert log tail:
Setting recovery target incarnation to 2
Successful mount of redo thread 1, with mount id 3261837737
Database mounted in Exclusive Mode
Lost write protection disabled
Completed: ALTER DATABASE MOUNT
This all goes fine if I just restart the database manually
can some help me on this......
Thanksuser11993192 wrote:
Hi,
I am facing below error while running offline rman backup:
OS: HP-UX, Database : 11.1.7
Issue:
1. using simple shell script stopping the database then mounting it for rman backup (script is running from root)
3. rman unable to connect to database then tried various ways to connect to database as bellow but no success:
SQL> conn rman/rman@orcl
ERROR:
ORA-12537: TNS:connection closed
while
SQL> conn rman/rman as sysdba
Connected.
SQL>
SQL> conn rman/rman
ERROR:
ORA-01033: ORACLE initialization or shutdown in progress
Process ID: 0
Session ID: 555 Serial number: 29
Alert log tail:
Setting recovery target incarnation to 2
Successful mount of redo thread 1, with mount id 3261837737
Database mounted in Exclusive Mode
Lost write protection disabled
Completed: ALTER DATABASE MOUNT
This all goes fine if I just restart the database manually
can some help me on this......
ThanksIn addition to the other comments (don't shut down the db yourself, just tell rman to do a cold backup and let rman handle the details) let me point out that trying to do any db related stuff as root is asking for all kinds of trouble. In fact, it is a general principle that root should never be used for anything that doesn't absolutely require root access. And orcle backups don't absolutely require root access.
Bottom line is ... you must want to take this backup in the worst way possible, because that's exactly how you are going about it -- in the worst way possible. You really should spend some more time reading up on rman backups and revamp your entire approach to this problem.
Edited by: EdStevens on Sep 25, 2011 11:38 AM -
Veeva Vacations Sample application - Error connecting to database
I am new to WebCenter and I am trying to go through the Veeva Vacations Sample. I am having trouble creating a New Database Connection as described on page 8 of the Veeva_Hands_on.pdf.
I enter the Host of *127.0.0.1*, Port of *8080* and when I test the connection I get the following error.
Io exception: Got minus one from a read call
Any suggestions?
Edited by: user985561 on Sep 29, 2008 12:52 PMHi Jeroen,
Thank you for your response. I am working through the Veeva Vacations example that can be found at
http://www.oracle.com/technology/products/webcenter/owcs_10132_demos.html
I am trying to create a Database Connection in JDeveloper. Starting on page 8 of the veeva_hands_on.pdf it asks you to Define a Database Connection. On page 10 it provides the connection details. Host Name: localhost, JDBC Port 1521. When I try this I get the following errror:
Listener refused the connection with the following error:
ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
The Connection descriptor used by the client was:
localhost:1521:ORCL
So I tried changing it to Host Name: 127.0.0.1, JDBC Port: 8080, which is the Host and port that I see in the URL when I log into the Oracle Database Express Edition from the 10g Database Home page. With this configuration I get the following error:
Io exception: Got minus one from a read call
I am running in a Windows environment with no Firewall software installed that I am aware of...
Thank you for your time
Christine -
Code to connect to database in Webdynpro-- iviews
Hi All-
Could you let me know the code to connect to database
in WebDynPro-->iviews.
Regards,
CrisHi,
Here are the two ways of connecting to a database through coding:
////1////
Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
java.sql.Connection conn= java.sql.DriverManager.getConnection("jdbc:microsoft:sqlserver://<IP>:<port>;user=<abc>;password=<xyz>;database=<DB name>");
////2////
InitialContext initialContext = new InitialContext();
DataSource dataSource = (DataSource)initialContext.lookup("jdbc/SRI");
java.sql.Connection conn = dataSource.getConnection();
Regards
Srinivasan T -
How to find the number of users connected to database from OS level(Linux)
Hi All,
Could anyone know , how to find the number of users connected to database without connecting with sql*plus
is there any command to find it?
example we have 10 databases in one server, how to find the number of users connected to particular database without connecting to database(v$session)?
oracle version:- 10g,11g
Operating System:- OEL4/OEL5/AIX/Solaris
any help will be appreciated.
Thanks in advance.
Thank you.
Regards,
Rajesh.Excellent.
Tested, works as long as you set the ORACLE_SID first ( to change databases )
ps -ef | grep $ORACLE_SID | grep "LOCAL=NO" | awk '{print $2}' | wc -l
Thanks!
select OSUSER
from V$SESSION
where AUDSID = SYS_CONTEXT('userenv','sessionid')
and rownum=1;Best Regards
mseberg -
I am not able to connect to database in sql developer.how to do?
I downloaded sqldeveloper 1.5.4.59.40. iam not able to establish connection to database. Can anyone tell me ?
Have you created a database (or have one you connect to)?
Have you created the Net Service connections for SQL Developer to use?
Does SQL Developer have access to this Net Serviice name?
Have you created the connections from SQL Developer?
Can you post an error message?
See
<br>
Oracle Database FAQs
</br> -
(Trouble printing) Trouble with connection between Macbook Pro and Hp Deskjet 1510.
Trouble with connection between Macbook Pro and Hp Deskjet 1510. (Nothing Prints).
I have a Macbook Pro and am having difficulty printing documents from ‘Pages' from my Hp Deskjet 1510. I have installed the necessary software for the printer and it is connected via USB. Every time I try to print the printer icon comes up as it should, 'printing' and then 'job completed' and then the icon disappears. (Nothing is printed.) I thought it might be something to do with Pages compatibility with the printer but exporting the document to Word or making it a PDF doesn’t change anything. I don’t have Microsoft Word on my computer. The scanner does work and when I printed a ‘Test Page’ that worked too.
Let me know if you know why this is happening.With these settings the network now works flawlessly, however, when i have my ethernet cable plugged in, my internet access via my airport card(on the macbook pro) is no longer available. Hoping you can tell me why this would be with this info i've provided.
Educated guess. The networking devices have priorities as to which are used. The standard order is that Ethernet has a higher priority than Airport.
While your Ethernet is unplugged it is inactive and the Mac ignores it. Once you plug it in, the Mac sees that it is active and switches traffic to that interface.
I actually take advantage of this feature at home, but configuring my Airport and Ethernet with identical fixed IP addresses. Normally I'll use Airport, but if I'm copying a huge file and I want faster performance, I'll just walk my MacBook (previously iBook, previously Powerbook) over to my Ethernet switch and plug in my MacBook. Magically, the Mac detects that the Ethernet is active and continues the file transfer uninterrupted over the faster 100baseT Ethernet connection. When the transfer is finished, or if I really need to move back to the Comfy Chair, I unplug the Ethernet cable, and all activity reverts back to the Airport, all without disrupting any existing networking connections.
You on the other hand have totally different settings for your Ethernet and your Airport, so when you switch to Ethernet, you basically loose your Airport connections.
Something you can try:
System Preferences -> Network
Gear icon on the bottom left, next to the [+] [-] icons.
Select *Set Service Order...*
Now Drag the network interfaces into the perfer priority order you want. In this case put Airport above Ethernet.
NOTE: You may want to create a new Network Location for this, instead of messing with your normal home Location (which is most likely the default Automatic. That way you have your original you can always fall back to. -
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 -
Taking too much time (1min) to connect to database
Hi,
I have oracle 10.2 and 10g application server.
Its taking too much time to connect to database through application (on browser). The connection through sqlplus is fine.
Please share your experience.
Regards,
NaseerDear AnaTech,
i am going to ask not related this question which already you answered i am going to ask you about that how to connect forms6i and Developer 10g with OracleAS.
i have installed and working Developer Suite 10g Ver. 10.1.2 and also Form Builder 6i. On my other machine i installed and working Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 and also on the database machine i installed Oracle Enterprise Manager 10g Application Server Control 10.1.2.0.2.
my database conectivity with Developer suite Forms and Reports and also Form6i and Reports6i are working fine. no problem.
now the 1 question of mine is that when i try to run form6i through run from web i got this error. FRM-99999: error 18121 occured see the release not.
this and the main question of mine is this that how can i control my OracleAS 10g with forms because basically the functionality of OracleAS is Mid-Tier but i am not utilizing the Mid-tier i am using here Two-tier Envrionment even i installed 3-Tier Environment so tell me how i utilize it with 3-Tier..
I hope you don't mind that i ask this question here and also if you give me you email then we can discuss this in detail and i can be helpful of your great expertise. i also know and utilize my 3-tier real envrionment.
Waiting for your great response.
Regards,
K.J.J.C -
MySQL Database Connection (two databases at the same time)
I have never had to open more than one MySQL database from within the same website before, but I do now. The website I have is designed where all the content comes from within the main database. I am building an Inventory system that I want within it's own database, in the event I would ever need to move the application to another server or something, I don't want this data residing in the main database.
Currently, I open the database connection from within a file called "common.php" that resides in a directory called "lib" that can be accessed from the root directory. Below is the proposed code that would be placed within the "common.php" file:
// Define Database Variables
$dbserver = "127.0.0.1";
$dbuser = array('clevelan_user1', 'clevelan_user2');
$dbpass = array('P@ssw0rd', 'P@ssw0rd2');
$dbname = array('clevelan_database1', 'clevelan_database2');
// Start Session
session_start();
// Connect to Databases
connectdb($dbserver, $dbuser[0], $dbpass[0], $dbname[0]);
connectdb2($dbserver, $dbuser[1], $dbpass[1], $dbname[1]);
// Database 1 Connection
function connectdb($dbserver, $dbuser, $dbpass, $dbname) {
// connects to db
global $connection;
$connection = @mysql_connect($dbserver, $dbuser, $dbpass) or die ("could not connect to server");
$db = @mysql_select_db($dbname, $connection) or die ("could not select databsase");
return $connection;
// Database 2 Connection
function connectdb2($dbserver, $dbuser, $dbpass, $dbname) {
// connects to db
global $connection2;
$connection2 = @mysql_connect($dbserver, $dbuser, $dbpass) or die ("could not connect to server");
$db2 = @mysql_select_db($dbname, $connection2) or die ("could not select databsase");
return $connection2;
//End of Code Within the "common.php"
From within any page of the website, I want to access both connections by placing an include at the top of each page:
include_once("lib/common.php");
Currently, when I run the code above, any page within the website (the home page) provides error messages with regards to database connectivity (the pages are looking for there content from within the second database. It's as if the second database is the only database seen by the website.
I need help figuring out how I can have two MySQL databases open at the same time (the second database will only be open for short periods of time and then closed). But the main database is always open.Create one project using one copy of the exact tables.
create 2 different sessions.xml files each pointing to the same project. Set the login information in the sessions.xml files.
That should work fine.
Peter -
Enterprise manager is not able to connect to database instance
Hi
I am having a problem with Oracle EM. I would appreciate very much if anyone can help me.
I installed Oracle on XP which runs on virtual pc on XP as well. Everything is fine, I can connect to database with sqlplus, and there were no errors during installation.
But the problem is that, when I try to connect to database with EM, it says:
Enterprise manager is not able to connect to database instance . The state of the components are listed below.
Can anoyone help me?user10637311 wrote:
When you want OEM DB , your existing DB should be created by DBCA or if suppose manually creaed DB then you have to configure that DB to EM by
"emca -config dbcontrol db -repos create". for these two cases istener should be running.
emctl start dbconsole -> to start dbconsole service
emctl status dbconsole-> status of servicesI am sorry, I was looking at $ORACLE_HOME\admin . And in the proper path, both listener.ora and tnsnames.ora do exist.
emca -config dbcontrol db -repos create :
<last part>:
INFO: This operation is being logged at C:\oracle\product\10.2.0\db_1\cfgtoollog
s\emca\orcl\emca_2010-02-18_02-01-40-AM.log.
Feb 18, 2010 2:02:46 AM oracle.sysman.emcp.util.DBControlUtil stopOMS
INFO: Stopping Database Control (this may take a while) ...
Feb 18, 2010 2:03:19 AM oracle.sysman.emcp.EMReposConfig createRepository
INFO: Creating the EM repository (this may take a while) ...
Feb 18, 2010 2:03:19 AM oracle.sysman.emcp.EMReposConfig invoke
SEVERE: Error creating the repository
Feb 18, 2010 2:03:19 AM oracle.sysman.emcp.EMReposConfig invoke
INFO: Refer to the log file at C:\oracle\product\10.2.0\db_1\cfgtoollogs\emca\or
cl\emca_repos_create_<date>.log for more details.
Feb 18, 2010 2:03:19 AM oracle.sysman.emcp.EMConfig perform
SEVERE: Error creating the repository
Refer to the log file at C:\oracle\product\10.2.0\db_1\cfgtoollogs\emca\orcl\emc
a_2010-02-18_02-01-40-AM.log for more details.
Could not complete the configuration. Refer to the log file at C:\oracle\product
\10.2.0\db_1\cfgtoollogs\emca\orcl\emca_2010-02-18_02-01-40-AM.log for more deta
ils.
C:\oracle\product\10.2.0\db_1\cfgtoollogs\emca\or
cl\emca_repos_create_<date>.log:
Check if repos user already exists.
old 6: WHERE username=UPPER('&EM_REPOS_USER');
new 6: WHERE username=UPPER('SYSMAN');
old 8: IF ( '&EM_CHECK_TYPE' = 'EXISTS') THEN
new 8: IF ( 'NOT_EXISTS' = 'EXISTS') THEN
old 11: raise_application_error(-20000, '&EM_REPOS_USER does not exists..');
new 11: raise_application_error(-20000, 'SYSMAN does not exists..');
old 14: ELSIF ( '&EM_CHECK_TYPE' = 'NOT_EXISTS' ) THEN
new 14: ELSIF ( 'NOT_EXISTS' = 'NOT_EXISTS' ) THEN
old 17: raise_application_error(-20001, '&EM_REPOS_USER already exists..');
new 17: raise_application_error(-20001, 'SYSMAN already exists..');
old 21: raise_application_error(-20002, 'Invalid Check type &EM_CHECK_TYPE');
new 21: raise_application_error(-20002, 'Invalid Check type NOT_EXISTS');
DECLARE
ERROR at line 1:
ORA-20001: SYSMAN already exists..
ORA-06512: at line 17 -
Trying to Install RMS application 13.2.2 and I get past the pre-installation checks and when I get to the Data Source details and enter the data source details with the check box checked to validate the schema/Test Data Source I get the following error:
Error Connecting to database URL jdbc:oracle:oci:@rmsdbtst as user rms13 java.lang.Exception:UnsatisfiedLinkError encountered when using the Oracle driver. Please check that the library path is set up properly or switch to the JDBC thin client oracle/jdbc/driver/T2CConnection.getLibraryVersioNumber()
Checks performed:
RMS Application code location and directory contents:
[oracle@test-rms-app application]$ pwd
/binary_files/STAGING_DIR/rms/application
[oracle@test-rms-app application]$ ls -ltr
total 144
-rw-r--r-- 1 oracle oinstall 272 Dec 7 2010 version.properties
-rw-r--r-- 1 oracle oinstall 405 Jan 16 2011 expected-object-counts.properties
-rw-r--r-- 1 oracle oinstall 892 May 13 2011 ant.install.properties.sample
-rw-r--r-- 1 oracle oinstall 64004 Jun 6 2011 build.xml
drwxr-xr-x 9 oracle oinstall 4096 Jun 16 2011 rms13
drwxr-xr-x 3 oracle oinstall 4096 Jun 16 2011 installer-resources
drwxr-xr-x 3 oracle oinstall 4096 Jun 16 2011 antinstall
drwxr-xr-x 2 oracle oinstall 4096 Jun 16 2011 ant-ext
drwxr-xr-x 5 oracle oinstall 4096 Jun 16 2011 ant
-rw-r--r-- 1 oracle oinstall 11324 Dec 18 09:18 antinstall-config.xml.ORIG
-rwxr-xr-x 1 oracle oinstall 4249 Dec 18 10:01 install.sh
drwxr-xr-x 4 oracle oinstall 4096 Dec 18 10:06 common
-rw-r--r-- 1 oracle oinstall 16244 Dec 19 10:37 antinstall-config.xml
-rw-r--r-- 1 oracle oinstall 689 Dec 19 10:37 ant.install.log
[oracle@test-rms-app application]$
Application installation:
[oracle@test-rms-app application]$ ./install.sh
THIS IS the driver directory
Verified $ORACLE_SID.
Verified SQL*Plus exists.
Verified write permissions.
Verified formsweb.cfg read permissions.
Verified Registry.dat read permissions.
Verified Java version 1.4.2.x or greater. Java version - 1.6.0
Verified Tk2Motif.rgb settings.
Verified frmcmp_batch.sh status.
WARNING: Oracle Enterprise Linux not detected. Some components may not install properly.
Verified $DISPLAY - 172.16.129.82:0.0.
This installer will ask for your "My Oracle Support" credentials.
Preparing installer. This may take a few moments.
Your internet connection type is: NONE
Integrating My Oracle Support into the product installer workflow...
[move] Moving 1 file to /binary_files/STAGING_DIR/rms/application
Installer preparation complete.
MW_HOME=/u01/app/oracle/Middleware/NewMiddleware1034
ORACLE_HOME=/u01/app/oracle/Middleware/NewMiddleware1034/as_1
ORACLE_INSTANCE=/u01/app/oracle/Middleware/NewMiddleware1034/asinst_1
DOMAIN_HOME=/u01/app/oracle/Middleware/NewMiddleware1034/user_projects/domains/rmsClassDomain
WLS_INSTANCE=WLS_FORMS
ORACLE_SID=rmsdbtst
JAVA_HOME=/u01/app/oracle/jrockit-jdk1.6.0_45-R28.2.7-4.1.0
Launching installer...
To make sure I have connectivity from the app server to the database (on a database server) here are the steps followed:
[oracle@test-rms-app application]$ tnsping rmsdbtst
TNS Ping Utility for Linux: Version 11.1.0.7.0 - Production on 19-DEC-2013 10:41:40
Copyright (c) 1997, 2008, Oracle. All rights reserved.
Used parameter files:
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = test-rms-db.vonmaur.vmc)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SID = rmsdbtst)))
OK (0 msec)
[oracle@test-rms-app application]$
[oracle@test-rms-app application]$ sqlplus rms13@rmsdbtst
SQL*Plus: Release 11.1.0.7.0 - Production on Thu Dec 19 10:46:18 2013
Copyright (c) 1982, 2008, Oracle. All rights reserved.
Enter password:
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
[oracle@test-rms-app application]$
[oracle@test-rms-app application]$ ping test-rms-db
PING test-rms-db.vonmaur.vmc (192.168.1.140) 56(84) bytes of data.
64 bytes from test-rms-db.vonmaur.vmc (192.168.1.140): icmp_seq=1 ttl=64 time=0.599 ms
64 bytes from test-rms-db.vonmaur.vmc (192.168.1.140): icmp_seq=2 ttl=64 time=0.168 ms
64 bytes from test-rms-db.vonmaur.vmc (192.168.1.140): icmp_seq=3 ttl=64 time=0.132 ms
64 bytes from test-rms-db.vonmaur.vmc (192.168.1.140): icmp_seq=4 ttl=64 time=0.158 ms
64 bytes from test-rms-db.vonmaur.vmc (192.168.1.140): icmp_seq=5 ttl=64 time=0.135 ms
--- test-rms-db.vonmaur.vmc ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4001ms
rtt min/avg/max/mdev = 0.132/0.238/0.599/0.181 ms
[oracle@test-rms-app application]$
[oracle@test-rms-app application]$ uname -a
Linux test-rms-app.vonmaur.vmc 2.6.18-128.el5 #1 SMP Wed Jan 21 08:45:05 EST 2009 x86_64 x86_64 x86_64 GNU/Linux
[oracle@test-rms-app application]$
[oracle@test-rms-app application]$ cat /etc/*-release
Enterprise Linux Enterprise Linux Server release 5.3 (Carthage)
Red Hat Enterprise Linux Server release 5.3 (Tikanga)
[oracle@test-rms-app application]$
The database is created and all the batch file scripts have been successfully deployed. Now working on the application server. The Weblogic server is installed and 11g forms and reports are installed successfully.
Any help would be helpful.
Thanks,
Ram.Please check MOS Notes:
FAQ: RWMS 13.2 Installation and Configuration (Doc ID 1307639.1)
Maybe you are looking for
-
Set Maximum Rows Per Page not working
I want to display 50 rows per page and I tried the below but still I can see the default 15 rows per page. Home>Application Builder>Application 301>Page 51>Interactive Report Attributes>Search Bar>Maximum Rows Per Page Set to = 50 Home>Application Bu
-
I can open firefox by right clicking a icon that was installed above above the all programs button in the start window, the clicking browse the internet. When I try to add a shortcut on the desktop window, it says it can't add the shortcut. Is there
-
Calling RFC placed in PI from Portal
Dear All, We have a scenario where we have RFCs in ECC and it has to be called from Portal through PI. Please suggest the possible and easiest ways. Please note these RFC are already being called from Portal to ECC directly. So we need to change it b
-
Can i change the location for backup in my widows 7 ?
How can i change the location for the bacup in my windows 7?Thanks.
-
IE will not open a pdf or word doc
IE will not open a pdf or word doc I'm trying to make a quick cd for a portfolio What I'm having trouble with is I have only 2 buttons and one opens a pdf and the other opens a word doc. With firefox the buttons work with IE they don't. I used set na