How to change the connection pool configuration on OC4J?
Hi everybody,
I am developing an application with JDeveloper which is running on an OC4J standalone server, we have 2 enviroments, the develop server and the server of the client, and the data base connection configurations are differents.
The problem is that if we try to deploy the application (we have deploy on the develop server) on the client server and try to change the connection pool configuration the application cannot connect to the data base, we need to re-build the project with the client connection pool configuration.
We tried to change the configuration on the enterprise manager of the OC4J, on "JDBC Resources" panel, and the test the connection is ok, but when try to access to the application we get an Exception. After that we try to do that changing the parameters from the datasources.xml file on the application, but the result is the same.
How can we change the DataBase configuration without re-build the project?
Thanks very much
Tony
Meaning you have created just the empty data-sources.xml and not configured any Connection Pool and DataSource in JDev?
In Oracle AS 10.1.3 you have two ways to do this:
1. Use JDev and configure the data-sources.xml (Context Menu -> Properties)
2. In Oracle AS: Select application -> Administration -> Services -> JDBC Resources -> Create Pool and Create DataSource
--olaf
Similar Messages
-
How to Troubleshoot the Connection Pool Exception?
Dear Oracle Gurus, very good afternoon to you.
I'm looking forward for some tips/troubleshoting guide to escape from the below exception, that occres very frequently to one of application that 100+ users will login from different locations & work on and update the data and save their work, where all in sudden they can't acces the application and it gets down.
Most of the times in the server log I observed below.
weblogic.jdbc.extensions.PoolLimitSQLException: weblogic.common.resourcepool.ResourceLimitException: No resources currently available in pool RemoteDesktop.main to allocate to applications, please increase the size of the pool and retry..
Please help me on, how to overcome this kind of exception.
In Weblogi c server I see below kind of Warnings.
If you set the buffer size to zero in a servlet, it would fail to respond and would initiate an infinite loop in the server. WebLogic Server would ultimately display a Errors:
ExecuteThread: '157' for queue: 'weblogic.kernel.Default' has been busy for "633" seconds working on the request "Http Request: : ../updates/process_manager.jsp", which is more than the configured time (StuckThreadMaxTime) of "600" seconds.
I searched over google for this kind of error, See otherusers posted the same kind of errors but didn't have any positive replies to troubleshoot this issue.
I also got Oracle Dev link on Weblogic version upgrade product where they fixed similar kind of error it seems. Which is shown below.
http://docs.oracle.com/cd/E13222_01/wls/docs61/notes/bugfixes2.html -- BUG # CR106186
details:
"Suspend Checker Thread" prio=10 tid=0x23eb90 nid=0xfec runnable
<May 14, 2003 10:53:34 AM PDT> <Warning> <WebLogicServer> <000337>
<ExecuteThread: '10' for queue: 'default' has been busy for "1,181" seconds working on the request "Http Request: servlet_uri", which is more than the configured time (StuckThreadMaxTime) of "600" seconds.>
This problem was solved with a code fix.
Looking forward for some help, Thank you inadvance.
FYI..
I'm using oracle thin driver JDBC connection/Weblogic 8.1
Edited by: user1072948 on Apr 26, 2012 11:55 AMI agree that looking into the number of connections that you have open when you see
weblogic.jdbc.extensions.PoolLimitSQLException: weblogic.common.resourcepool.ResourceLimitException: No resources currently available in pool RemoteDesktop.main to allocate to applications, please increase the size of the pool and retry..
would be a good idea; but I would suggest that you don't increase without thinking about the consequences. I would look more closely at what the connections to the database are doing, for instance, how long are the connection being left open for? What are the queries that are being run? Should you expect to see all the connections in the connection pool being used? What is the current connection pool limit? Are you simply going to increase the number of connections to find that they are also waiting? What is the load on the database at the time?
It's the other error that you say you see
ExecuteThread: '157' for queue: 'weblogic.kernel.Default' has been busy for "633" seconds working on the request "Http Request: : ../updates/process_manager.jsp", which is more than the configured time (StuckThreadMaxTime) of "600" seconds.
What does this JSP do? Why would this be busy for so long? Is it related to the previous exception that you have? I'd ask you delevelopment team to look into this.
In short, it sounds like you have load issues on your server(s) and a careful tuning of the system after a full analysis (thread dumps, heap profiling, connection pool monitoring and code review) would probably be beneficial. It may be that restricting the thread pool may help, it may be that increasing the connection pool would help. I'd not plump for a quick fix here. -
How to track the connection pool refresh details
Hi,
Could you please help to track the connection pool refresh details.
Thanks
PanneerHi,
I want track connection pool refresh details for oracle application server 10.1.3.4.
Please help me to get this info.
Thanks
Panneer -
How to change the connection to MTP
Please advise how do I change the auto connection to MTP for Iphone 4.
Meaning you have created just the empty data-sources.xml and not configured any Connection Pool and DataSource in JDev?
In Oracle AS 10.1.3 you have two ways to do this:
1. Use JDev and configure the data-sources.xml (Context Menu -> Properties)
2. In Oracle AS: Select application -> Administration -> Services -> JDBC Resources -> Create Pool and Create DataSource
--olaf -
How to create the connection pool using jdbc20 driver?
Hi all,
My configuration is WL4.5 SP5 + jdk1.2.2+WinNT+ Oracle thin driver
8.1.6.
It is creating the connections with weblogic.jdbc.pool.Driver, whereas i
want the connections in the pool to be created with jdbc20 driver. This
how my pool definition is defined.
weblogic.jdbc.connectionPool.PoolName=\
url=jdbc:oracle:thin:@<IP address>:<Instance>,\
driver=oracle.jdbc.driver.OracleDriver,\
loginDelaySecs=1,\
initialCapacity=1,\
maxCapacity=40,\
capacityIncrement=2,\
allowShrinking=true,\
shrinkPeriodMins=5,\
refreshMinutes=10,\
testTable=dual,\
props=user=XXXX;password=XXXX
The reason is I want to use BLOB's. I have a message posted in jdbc news
group with the exception i got. But since this more of a environement
issue i am posting it here.
Any help is appreciated,
Thanks
JohnHere is the correct pool definition.
################JDBC20 Driver#########################
weblogic.jdbc.connectionPool.jdbc20Pool=\
url=jdbc20:weblogic:oracle,\
driver=weblogic.jdbc20.oci.Driver,\
loginDelaySecs=1,\
initialCapacity=1,\
maxCapacity=1,\
capacityIncrement=2,\
allowShrinking=true,\
shrinkPeriodMins=15,\
refreshMinutes=10,\
testTable=dual,\
props=user=SCOTT;password=tiger;server=goldengate
weblogic.allow.reserve.weblogic.jdbc.connectionPool.jdbc20Pool=guest
Hope this helps,
--Kumar
Kuppuswamy Seshadhri wrote:
I think you are missing the port number.
A working example,
Ensuring
- TSNAMES is setup and the service is running
- set ORACLE_HOME variable in setenv.cmd
weblogic.jdbc.connectionPool.theOraclePool=\
url=jdbc:oracle:thin:@IPADRESS:1521:orcl,\
driver=oracle.jdbc.driver.OracleDriver,\
loginDelaySecs=1,\
initialCapacity=1,\
maxCapacity=10,\
capacityIncrement=2,\
allowShrinking=true,\
shrinkPeriodMins=15,\
refreshMinutes=10,\
testTable=dual,\
props=user=XXXX;password=XXXX;
weblogic.allow.reserve.weblogic.jdbc.connectionPool.theOraclePool=everyone
Kuppu
"John Galt" <[email protected]> wrote in message
news:[email protected]..
Hi all,
My configuration is WL4.5 SP5 + jdk1.2.2+WinNT+ Oracle thin driver
8.1.6.
It is creating the connections with weblogic.jdbc.pool.Driver, whereas i
want the connections in the pool to be created with jdbc20 driver. This
how my pool definition is defined.
weblogic.jdbc.connectionPool.PoolName=\
url=jdbc:oracle:thin:@<IP address>:<Instance>,\
driver=oracle.jdbc.driver.OracleDriver,\
loginDelaySecs=1,\
initialCapacity=1,\
maxCapacity=40,\
capacityIncrement=2,\
allowShrinking=true,\
shrinkPeriodMins=5,\
refreshMinutes=10,\
testTable=dual,\
props=user=XXXX;password=XXXX
The reason is I want to use BLOB's. I have a message posted in jdbc news
group with the exception i got. But since this more of a environement
issue i am posting it here.
Any help is appreciated,
Thanks
John -
How to change the connection for a recurring report
I have a group of reports running in production on recurring schedules. I need to update the database connection for these as we are changing our server environment.
I open the report in Crystal Reports 11 and changed the database connection saved the report back to the Enterprise Server location (I also have a backup of the original). When I preview the report using the Central Management Console, the report uses the updated database connection info. When I test the recurring report I get a logon failure. When I go to the instance to look at the database logon for the recurring instance it shows the old database connection.
How can this database connection get updated for the current group of instances for these recurring reports?
Thanks
BOBJCMCHi Stratos,
I tried to use .NET SDK to update the Logon_Info properties as below. But it does not seem to be working. Is this the correct way to update logon info for recurring instances?
infoObject.ProcessingInfo.Properties["SI_LOGON_INFO"].Properties["SI_LOGON1"].Properties["SI_USER"].Value = <userid>
infoObject.ProcessingInfo.Properties["SI_LOGON_INFO"].Properties["SI_LOGON1"].Properties["SI_PASSWORD"].Value = "pwd"
Thanks
Ajith -
How can I use the Connection Pool with DB2
Hi All,
I am facing the problem with the usage for the Connection Pool.
I want to use DB2 via JNDI lookup.
But when starting the Weblogic server, Error occured with the following message.
<Error> <JDBC> <Cannot startup connection pool "MyJDBCPool" Cannot load driver class : com.ibm.db2.jdbc.app.DB2Driver>
DB2 and Weblogic are on the same machine.
In case of the use of remote DB2 database, I also encountered the same error.
Configurations are as follows.
<JDBCConnectionPool DriverName="com.ibm.db2.jdbc.app.DB2Driver"
MaxCapacity="10" Name="MyJDBCPool"
Password="{3DES}gCGsOfD9M6iwOtgL2v/NpA==" Targets="myserver"
TestConnectionsOnReserve="false" TestTableName="test" URL="jdbc:db2://localhost:6789/yongjoo"/>
<SNMPAgent Name="mydomain"/>
<JDBCDataSource JNDIName="acsdb" Name="acsdb" PoolName="MyJDBCPool" Targets="myserver"/>
Could you please give some information about this problem? I will appreciate your kindness.Hi Joe,
Thanks your help.
Perhaps It's my fault for Weblogic console's setting.
After I reset the target server in console, Error message disappeared.
But, when I call the TestCode, I encountered another error message. The error
is NameNotFoundException.
When lookingup the JNDI name, NameNotFoundException errer occured. I tried to
change my setting and JNDI name, but the results are the same.
Would you please give me some information about this one more time? I will be
appreciated for your help.
Follows are Config.xml
<JDBCConnectionPool DriverName="com.ibm.db2.jdbc.app.DB2Driver" MaxCapacity="10"
Name="MyJDBCPool" Password="{3DES}gCGsOfD9M6iwOtgL2v/NpA==" Targets="myserver"
TestConnectionsOnReserve="false" TestTableName="test"
URL="jdbc:db2://localhost:6789/yongjoo"/> <SNMPAgent Name="mydomain"/>
<JDBCDataSource JNDIName="acsdb" Name="acsdb" PoolName="MyJDBCPool"
Targets="myserver"/>
and follows are TestCode,
url = "t3://localhost:7001"; //default URL
datasource = "jdbc/acsdb";
Context ctx = null;
Hashtable p = new Hashtable();
p.put(Context.INITIAL_CONTEXT_FACTORY,
"weblogic.jndi.WLInitialContextFactory");
p.put(Context.PROVIDER_URL, url);
try{
ctx = new InitialContext(p);
System.err.println("initialContext(p)"+ctx); <-- success
ds = (DataSource)ctx.lookup("java:comp/env/jdbc/acsdb");
}catch(NameNotFoundException ne){
throw new ConnectionException(); .
}catch(NamingException ne){
throw new ConnectionException(); -
How to change a connection with the database in Runtime?
How to change a connection with the database in Runtime?
My connection was made using ADF Business component (ApplicationModule).
ADF Swing.
JDeveloper Studio 11.1.1.4.0.When deploying ADF applications with database connection, you should be using JDBC data sources configured in the weblogic server.
You could change the JDBC data sources to a different DB instance or location - by changing the JDBC data source and restarting the weblogic server.
For more details, check
http://techiecook.wordpress.com/2010/12/02/oracle-weblogic-adf-datasources/
Thanks,
Navaneeth -
How can I switch the connection pool dynamically during on load happens
HI,
I have two data bases which holds same data. i.e Prod_db, Prod_db1,
I want to switch the connection pool dynamically during load happens
Ex: During load happens i want to hit prod_db1, after load completes i want to hit prod_db. How to achieve this.create dynamic repository variable for DSN using init block so that value is changes based on your timings and use this in connection pool.
If you use same user and passwords for both the databases that would be easy or else need to follow the same for uid and pwd.
That should work, if not update.
If helps pls mark correct/helpful -
How can i use connection pool within the sqlj?
hello
i am a beginner to sqlj,i find all of the sample code from the oracle DON'T use connectionpool,they only write the database url to "connection.properties" file,but i think in the production environment we should use the connectionpool to optimise the querying,i usually use the weblogic connection pool.
how can i use the connection pool within the sqlj?
thank you very much!Im not sure if I understand. :)
English is not my best language...
Looking up the connection again? Do you mean I have to create new DataSource object and bind it again to ServletContext? -
How to create a connection pooling in Netbeans 6.0 using the oracle driver
hi all,
I am using Netbeans 6.0. Apache Tomcat 6.0.14 server, oracle 9i.
I tried to create a connection pooling using tomcat web server.
I have included the following code in context.xml and web.xml.
CONTEXT.XML:
<?xml version="1.0" encoding="UTF-8"?>
<Context path="/network1">
<Resource name="jdbc/myoracle"
auth="Container"
type="javax.sql.DataSource"
username="scott"
password="tiger"
factory="BasicDataSourceFactory"
driverClassName="oracle.jdbc.OracleDriver"
url="jdbc:odbc:thin:@127.0.0.1:1521:mydb"
maxActive="20"
maxIdle="10"
maxwait="-1"/>
</Context>
WEB.XML:
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
<session-config>
<session-timeout>
30
</session-timeout>
</session-config>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
<resource-ref>
<description>Oracle Datasource example</description>
<res-ref-name>jdbc/myoracle</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
</web-app>
After that i have included the following JDBC driver's jar files in the $Catalina_Home/lib folder.
classes 111.jar,
classes 111_g.jar
classes12.jar
classes 12_g.jar
classes12dms.jar
classes12dms_g.jar
nls_charset11.jar
nls_charset12.jar
ocrs12.jar
ojdbc14.jar
ojdbc14_g.jar
Then i stop the tomcat web server and start it again.
In jsp page i have included the following code:
Context ctx=new InitialContext();
Context envctx=(Context)ctx.lookup("java:comp:env");
DataSource ds=(DataSource)envctx.lookup("jdbc/myoracle");
Connection con=ds.getConnection(); ----->(In this line an error occured that Connection class cannot be found.)
please help me how to create a connection pooling and rectify the error in conneciton.
Thanks in advancePlease refer
http://www.netbeans.org/kb/60/web/customer-book.html -
How to change the Data base connection Dynamically
Hi
Hi create a crystal reports using crystal report 12.0 in this i use the standard wizard and local data base connection and create a dotnet programme for this .Now i want to change the database because because i want to instal it in client they use a different connection so i need to change the connection .How is it possible . PLzzzzz tell me it is urgen t
Addvance thnksHi
To change the database you can use DataSource Option that is present in the Menu Bar.
Go to Database
->Set Datasource Location
->Replace the current Data Source with the new Datasource.
Hope this helps
Shraddha -
How to change the portal user id 's assigned employee in ESS configuration
Hello Gurus,
I now have a question related to ESS configuration. I want to know how to change the Portal user's pernr assignment in the ECC 6.0 system. Somebody had actually assigned my portal user ID a PERNR in the ECC 6.0 system. But now, for test purposes, I want to change the PERNR assignment to something else for my portal user id.
Could any of you please guide me in doing these steps?
Points will definitely be awarded for helpful answers.
Thanks gurus in advance for your help.
~~LBHi Leena,
You can create a new user name with the username and password assigned to it, with the transaction SU01.
Ex : ESS_USER1
Go to transaction code : PA30.
Enter the pernr you want to assign to the user ESS_USER1 that you have created earlier.
Enter infotype number : 105
Now go ahead and click on the change button.
And assign the user name as ESS_USER1.
Then the pernr number will be assigned to the ESS_USER1 that you have created.
You can check the same when you go to the HRUSER transaction code.
Please let me know if you still have any issues on the same.
Cheers.
Sandeep -
I need to know how to block the option menu on firefox because my students are able to change the connection option bypassing the proxy that should block them when it's not alloud surf on the web. Thank's
See http://kb.mozillazine.org/Locking_preferences
<code>//
lockPref("network.proxy.type", 1);
lockPref("network.proxy.http", "");
lockPref("network.proxy.http_port", "");
</code>
See:
http://kb.mozillazine.org/network.proxy.type
http://kb.mozillazine.org/network.proxy.%28protocol%29
http://kb.mozillazine.org/network.proxy.%28protocol%29_port -
How to change the text of a button dynamically in module pool
hi gurus,
how to change the text of button dynamicallyHi ,
Declare a variable in TOP Include with your button name.
Example : P_BUTTON(20) TYPE C.
Place button with name P_BUTTON on you screen. Do not forget to mark it as "Output Field". [ Double click on button, Attributes --> Program tab --> tick "Output Field".
In you PBO / PAI , whereever you want to change your text -
Assign value to P_BUTTON.
Example -
iF COND1..
P_BUTTON = 'EDIT'.
ELSEIF COND2.
P_BUTTON = 'DISPLAY'.
ENDIF.
Regards,
Mohaiyuddin
Maybe you are looking for
-
Safari Browser Not Supported on Windows 7 & 8.1
I have been using Safari for years and prefer it over I.E. and other browsers. Recently on my MS Windows computers I am being told that the version of Safari is no longer supported and that I need to update it. I have the latest version that I can
-
hi all, i have to extract data from 3 different tables. is a single inner join better option or separate select statements ? thanks
-
Trying to purchase music and received this message: Could not purchase "Wish List". An unknown error occurred (5002) in the iTunes store. Try again later. I have tryed multiple times and still keep getting this error message. I have the downloaded th
-
How to develop NT services?
Greetings! Urgent! How to use Java programming to develop NT services like the one in Windows NT, 2000 and XP. Please give me some guidance or tips for me. The example code or helpful link are appreciated. Thank you! Regards, Anson
-
What microphone for voice over?
I am having a wonderful time with iMovie. I think I have figured out how to upload to YouTube, but it requires that I use Quick Time to do so. I would much prefer to upload directly from iMovie, but I think that may take a while to master. What I am