Equivalent parameter in Oracle for lock_timeout in db2
Hello Guys,
We are migrating from Db2 to Oracle database.
I wanted to know what is the equivalent parameter in Oracle for lock_timeout in db2.
Thanks in advance.
I think there is no global prameter in Oracle, but you can determine a timeout for each statement or entire table
select for update wait seconds
Specify WAIT to instruct the database to wait integer seconds for the row to become available and then return control to you.
http://docs.oracle.com/cd/E11882_01/server.112/e26088/statements_10002.htm#SQLRF55372
Or Lock table for entire table
http://docs.oracle.com/cd/E18283_01/server.112/e17118/statements_9015.htm
DB2 locktimeout - Lock timeout configuration parameter
This parameter specifies the number of seconds that an application will wait to obtain a lock, helping avoid global deadlocks for applications.
If you set this parameter to0, locks are not waited for. In this situation, if no lock is available at the time of the request, the application immediately receives a -911.
If you set this parameter to
-1
, lock timeout detection is turned off. In this situation a lock will be waited for (if one is not available at the time of the request) until either of the following:
The lock is granted
A deadlock occurs.
Note: The value you specify for this configuration parameter is not used to control lock timeouts for event monitor target tables. Event monitors use a separate, non-configurable setting that will cause locks on event monitor tables to time out.
Recommendation: In a transaction processing (OLTP) environment, you can use an initial starting value of 30 seconds. In a query-only environment you could start with a higher value. In both cases, you should use benchmarking techniques to tune this parameter.
http://publib.boulder.ibm.com/infocenter/db2luw/v9/index.jsp?topic=%2Fcom.ibm.db2.udb.admin.doc%2Fdoc%2Fr0000329.htm
Regards
Similar Messages
-
Equivalent datatype in Oracle for datetime of SQL Server
Hello Everyone,
I'm very much new to Oracle. I have been working with SQL Server since 3yrs. Currently I'm working with Oracle 11g.
What is the equivalent datatype in oracle for datetime in sql server with which has the format YYYY-MM-DD HH:MM:SS?
I tried with timestamp and date which didnt solve my prob.... Please help me in using the equivalent datatype for the format provided above...
Regards,
Bhanu Yalamanchi.Oracle date format can be anything you want, either by default at the session level or preferably explicitly using to_char and a format mask.
Format masks are documented here.
http://download.oracle.com/docs/cd/E11882_01/server.112/e17118/sql_elements004.htm#CDEHIFJA
SQL> create table t (d date);
Table created.
SQL> insert into t values (sysdate);
1 row created.
SQL> select * from t;
D
19-JUL-11
SQL> alter session set nls_date_format = 'YYYY-MM-DD HH:MI:SS';
Session altered.
SQL> select * from t;
D
2011-07-19 08:27:59
SQL> select d, to_char(d, 'YYYY-MM-DD'), to_char(d,'Day') from t;
D TO_CHAR(D, TO_CHAR(D
2011-07-19 08:27:59 2011-07-19 Tuesday
SQL> alter session set nls_date_format = 'DD-MON-YY';
Session altered.
SQL> select d, to_char(d, 'YYYY-MM-DD HH24:MI:SS') from t;
D TO_CHAR(D,'YYYY-MM-
19-JUL-11 2011-07-19 08:27:59 -
Equivalent keyword in Oracle for QUALIFY of Teradata
Hi,
In teradata database we can write a query like below :
select sls_doc_id, sls_dlvr_doc_id, rank() over (partition by sls_dlvr_doc_id order by sls_dlvr_doc_id) rn
from cdp_analysis.v_sls_dlvr_doc_dtl
QUALIFY rn > 1;
If I want to write an equivalent thing in Oracle then I can write an equivalent like below :
select sls_doc_id, sls_dlvr_doc_id
from
select sls_doc_id, sls_dlvr_doc_id, rank() over (partition by sls_dlvr_doc_id order by sls_dlvr_doc_id) rn
from cdp_analysis.v_sls_dlvr_doc_dtl
where rn > 1;
I just want to know is any keyword exist in Oracle which is equivalent to QUALIFY of Teradata?
Regards,
KoushikNope. There is no equivalent of QUALIFY in Oracle. Which is a shame, as having read up about it, I can see it would be useful to have. Ditto the ability to use expression aliases in GROUP BY clauses.
Cheers, APC
blog: http://radiofreetooting.blogspot.com -
Passing a value for date parameter from Oracle Forms to BIP
Hi
I have created a report with the following SQL query:
select
d_tables.d_seq,
to_date(d_tables.d_created) creation_date,
d_tables.d_created_by created_by,
d_tables.d_pk,
d_tables.table_name,
d_tables.comments
from
d_tables, d_applications
where
d_tables.d_ppk = d_applications.d_pk
and to_date(d_tables.d_created) >= nvl(:P_CRE_DATE_FROM, to_date(d_tables.d_created))
and to_date(d_tables.d_created) <= nvl(:P_CRE_DATE_TO, to_date(d_tables.d_created))
The parameters P_CRE_DATE_FROM and P_CRE_DATE_TO have been set up as date in BI Publisher with format dd-MMM-yyyy
The report works fine when launched in BI Publisher.
I want to call this report from Oracle Forms and I'm trying to pass the values for both the parameters. However, the report does not generate output based on values passed.
Does it have to do with datatype? Does anyone know a solution for this?
Kind regards,
AparnaThanks for your suggestion. I am already referring to the whitepaper and have integrated Forms with BI Publisher. The parameter passing is working fine for a varchar2 type of parameter. However, for a date type, there seems to be some problem.
-
Hi,
In our shop management decided to migrate few SAP R/3 applications to Oracle 10G (RAC) from DB2 UDB. I am a DB2 UDB DBA. i want to learn Oracle. Is there any manuals or published books for Oracle DBA for DB2 UDB DBA's in SAP environment.
As i am not new to DBA world, i want to compare Oracle with DB2 UDB . So that i can learn Oracle fast.
Regards,
Sunil Gutta> As i am not new to DBA world, i want to
> compare Oracle with DB2 UDB . So that i can learn
> Oracle fast.
have a look here:
-> <a href="http://www.redbooks.ibm.com/abstracts/sg247048.html">Oracle to DB2 UDB Conversion Guide</a>
it's the other way round but should give you enough to work on
GreetZ, AH -
Equivalent application to Oracle RMS/ReSA by JD Edwards.
Want to know if there is any Equivalent application to Oracle RMS/ReSA by JD Edwards.If yes , then in what format does the Log file been inputed to the application . Like For Example RMS/ReSA - oracle accepts Log files in RTLog Format.Is there any file format equivalent in JD Edwards.
Just as an FYI, it would be helpful to explain what RMS is if you are posting to a forum like this. Probably 99.9% of the people in the JD Edwards world will have no clue at all what you are talking about. Let me ask this question - are you talking about JD Edwards World software or JD Edwards Enterprise One/One World? Or both? They are two different technical environments, so it does greatly matter which product you are dealing with. Since you posted in the JD Edwards World discussion, I will assume that is what you are talking about. No, there is not anything equivalent to Oracle RMS for JDE World. JDE World runs solely on the IBM AS/400 (or i5) using the IBM DB2/400 database. You can search the Oracle Technology network on phrase "Oracle RMS" to get more information on DB2 and relationship to other data sources. If you are dealing with Enterprise One/One World, then you should post this question in that forum. Hope this helps a bit.
John Dickey -
Equivalent application to Oracle RMS/ReSA by PeopleSoft
Want to know if there is any Equivalent application to Oracle RMS/ReSA by PeopleSoft.If yes , then in what format does the Log file been inputed to the application . Like For Example RMS/ReSA - oracle accepts Log files in RTLog Format.Is there any file format equivalent in JD Edwards.
Just as an FYI, it would be helpful to explain what RMS is if you are posting to a forum like this. Probably 99.9% of the people in the JD Edwards world will have no clue at all what you are talking about. Let me ask this question - are you talking about JD Edwards World software or JD Edwards Enterprise One/One World? Or both? They are two different technical environments, so it does greatly matter which product you are dealing with. Since you posted in the JD Edwards World discussion, I will assume that is what you are talking about. No, there is not anything equivalent to Oracle RMS for JDE World. JDE World runs solely on the IBM AS/400 (or i5) using the IBM DB2/400 database. You can search the Oracle Technology network on phrase "Oracle RMS" to get more information on DB2 and relationship to other data sources. If you are dealing with Enterprise One/One World, then you should post this question in that forum. Hope this helps a bit.
John Dickey -
Equivalent application to Oracle RMS/ReSA by Siebel
Is there any Equivalent application to Oracle RMS/ReSA by Siebel.
Just as an FYI, it would be helpful to explain what RMS is if you are posting to a forum like this. Probably 99.9% of the people in the JD Edwards world will have no clue at all what you are talking about. Let me ask this question - are you talking about JD Edwards World software or JD Edwards Enterprise One/One World? Or both? They are two different technical environments, so it does greatly matter which product you are dealing with. Since you posted in the JD Edwards World discussion, I will assume that is what you are talking about. No, there is not anything equivalent to Oracle RMS for JDE World. JDE World runs solely on the IBM AS/400 (or i5) using the IBM DB2/400 database. You can search the Oracle Technology network on phrase "Oracle RMS" to get more information on DB2 and relationship to other data sources. If you are dealing with Enterprise One/One World, then you should post this question in that forum. Hope this helps a bit.
John Dickey -
ORA-32004: obsolete or deprecated parameter(s) specified for RDBMS instance
hi
how to fix this error??
ORA-32004: obsolete or deprecated parameter(s) specified for RDBMS instance
ORACLE instance started.OS := OEL 5.6
DB:= 11R2 single instance
kind regardsno one wrote:
hi
how to fix this error??
ORA-32004: obsolete or deprecated parameter(s) specified for RDBMS instance
ORACLE instance started.OS := OEL 5.6
DB:= 11R2 single instance
kind regardsThis parameter is deprecated in Oracle 10g
This parameter determines if the background process ARCH is started. It can be set to either true or false.
Of course, it makes no sense, if this parameter is set to true if the database is running in noarchive log mode. If ARCH is started with the database being in noarchive log mode, messages like media recovery disabled will be written into the alert.log file. -
VO Substitution : JBO-25006 : Invalid parameter value passed for source
Hello All,
I want to add 2 new fields (attribute columns) to an existing VO for which I am trying to use VO substitution. I have followed these steps.
1. Downloaded all the class files from server to local machine
2. Opened an OA project and extended the VO by changing sql query to add 2 attribute columns
3. Added 2 transient VO attributes to map them to the added fields in sql query
4. Create a BC4J substitution and imported jpx file using jpximporter
While opening the page which consisted the original VO that I extended (creditRequestsVO), I am getting below error. Appreciate if anyone can throw any light on this.
Exception Details.
oracle.apps.fnd.framework.OAException: oracle.jbo.InvalidParamException: JBO-25006: Invalid parameter value creditRequestsVO for source passed to method ViewLinkImpl.setSource. Explanation: view def mismatch
at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1247)
at oracle.apps.fnd.framework.webui.OAPageErrorHandler.processErrors(OAPageErrorHandler.java:1435)
at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2542)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1892)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:536)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:424)
at OA.jspService(_OA.java:212)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:379)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
at oracle.apps.jtf.base.session.ReleaseResFilter.doFilter(ReleaseResFilter.java:26)
at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
at oracle.apps.fnd.security.AppsServletFilter.doFilter(AppsServletFilter.java:318)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:313)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:199)
at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:619)
## Detail 0 ##
oracle.apps.fnd.framework.OAException: oracle.jbo.InvalidParamException: JBO-25006: Invalid parameter value creditRequestsVO for source passed to method ViewLinkImpl.setSource. Explanation: view def mismatch
at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:896)
at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1169)
at oracle.apps.fnd.framework.webui.OAPageErrorHandler.processErrors(OAPageErrorHandler.java:1435)
at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2542)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1892)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:536)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:424)
at OA.jspService(_OA.java:212)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:379)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
at oracle.apps.jtf.base.session.ReleaseResFilter.doFilter(ReleaseResFilter.java:26)
at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
at oracle.apps.fnd.security.AppsServletFilter.doFilter(AppsServletFilter.java:318)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:313)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:199)
at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:619)
oracle.apps.fnd.framework.OAException: oracle.jbo.InvalidParamException: JBO-25006: Invalid parameter value creditRequestsVO for source passed to method ViewLinkImpl.setSource. Explanation: view def mismatch
at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:896)
at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1169)
at oracle.apps.fnd.framework.webui.OAPageErrorHandler.processErrors(OAPageErrorHandler.java:1435)
at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2542)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1892)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:536)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:424)
at OA.jspService(_OA.java:212)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:379)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
at oracle.apps.jtf.base.session.ReleaseResFilter.doFilter(ReleaseResFilter.java:26)
at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
at oracle.apps.fnd.security.AppsServletFilter.doFilter(AppsServletFilter.java:318)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:313)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:199)
at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:619)
Edited by: Bhavesh J Shah on Feb 22, 2010 1:58 AMHi Rama,
Parameter being passted to LeadHeaderDetailsVO is not right. Check the parameter values that are being passed,wether there are right or not
Thanks
Sandeep -
Bind variable with search parameter in Oracle BI Publisher 10
Search list for a search parameter in Oracle BI EE works fine when the query doesn't contain a bind variable (parameter identifier). But when a bind variable is introduced in the constraint of search list query, it keeps on searching endlessly. For example,
-- this doesn't work
select col1
from table
where table.col2 = :I_param_bind_var
-- this works
select col1
from table
where table.col2 = 'xyz'
Using such bind variable in the list of values for menu parameters works fine. Is it an issue regarding publisher or am I missing something?
Edited by: 933296 on Aug 21, 2012 1:38 AM<?param@begin:Show_Location;'Yes';'string';'Yes,No'?>
it will give the Parameter Show_Loactaion with drop down Yes and No.
and to display <?$Show_Location?>
<?param@begin:dept;'PAY'?>
<?$dept?> -
Oracle 11G,10g and DB2 replication?
Oracle 11G,10g and DB2 replication?
=======================================
We are using Oracle 11gR2. We have a table in Oracle filled with partial data (over 200K+, it may grow to 1M). The rest need to be obtained from DB2. It is not from one DB2 table.
The DB2 is configured to run Oracle 10g within it. We have given http interface, where we need to supply(Push) the partial data using HTTP_UTIL package for each row, then DB2/Oracle 10g return the result as XML.
It is a network heavy, slow and not reliable.
Are we able to replicate tables between Oracle 11g and DB2/oracle 10g?
We like to leverage the features on 11gR2 effectively.
I find some interesting folks in this forum.
Did anyone face such situation?
I like to know the best approach with good performance options.
Any idea?
Thanks in helping.qwe16235 wrote:
The DB2 is configured to run Oracle 10g within it. We have given http interface, where we need to supply(Push) the partial data using HTTP_UTIL package for each row, then DB2/Oracle 10g return the result as XML.
Any idea?http://en.wikipedia.org/wiki/Rube_Goldberg_machine
why is DB2 required to produce XML? -
How can i migrate oracle database data to DB2 database
Hi
how can i migrate oracle database data to db2 database.
can anyone provide me solution.BTW why do you want to migrate oracle database data to db2 database? Any specific project requirement like Parallel run with Oracle database (e.g data replication)? Or any other issues - Cost? Manageability? Availability? Business requirements?
Do you need to do a day-to-day data transfer or it is for permanent migration? -
Parameter not available for Menu in 10g?
Hi,
I am migrating forms 6i to 10g & I see that there is no parameter for a Menu item ( mmb) in 10g.
What would be the equivalent stmt in 10g for the following stmt in a Menu:
:parameter.username := get_application_property(username);I have a couple of MMB's with parameters in it.
ThanksPost Author: Mike Wright
CA Forum: General
Sorry, I will try and fill in the gaps
"run report user chooses yes and tabs off and nothing is entered into parameter field and report does not work as expected."
when the report is opened, a dailog screen appears with 2 boxes in it, one is a list box, with values "...","yes","no" - this box has the focus when the screen opens, selecting item and moving focus from this list box the value choosen is entered into the screen box and user click on "ok" and report is rendered.
"What are they using to run the report?"
We are running this from a product called Jiwa Financial Software. Jiwa is built using Microsoft development platform, .net accessing data from MS SQL Server 2000 server. The connection to the database is via odbc. Version of Crystal is XI.
if you need more information, please let me know. -
Is there an equivalent statement in Java for this PL/SQL stmt?
Hi,
I want to know if there is an equivalent statement
in java for this PL/SQL statement:
IF strTok IN('COM-1','COM-2','COM-3') Then
/* Do Something */
End If;
I tried using : // This is giving me errors..
if (strTok.equals(("COM-1") || ("COM-2") || ("COM-3") ) )
/* Do Something */
The above Java code is giving me errors.
Any Help to reduce the number of steps for comparison
is appreciated.
thanks in adv
SharathSomething like
if (strTok.equals("COM-1") ||
strTok.equals("COM-2") ||
strTok.equals("COM-3") )Justin
Distributed Database Consulting, Inc.
http://www.ddbcinc.com/askDDBC
Maybe you are looking for
-
I'm getting an error message while trying to install lightroom 4 beta on my mac
The download seems to go fine, but when I go to open "Adobe Photoshop Lightroom 4-1.pkg" I get an error message reading: "com.apple.installer.pagecontroller error -1"
-
Export of report data in XLS file
Hi, I need to analyze and manipulate reports output (pdf or html css) in XLS fomat. any idea how can i do it? Thanks Vishal
-
All, My input data looks like this: Parent_Column Child_Column Levels_from_Parent 100000 100000 0 100000 110000 1 100000 111000 2 100
-
Bug in formatting Tables with cel styles + toolbox
We continue to have major problems with the cel styles. Lines disappear due to adjacent cells. Let me ellaborate: I have a cel style that has no background and only a .5 line at the bottom. Underneith I have a cel style that has NO lines. What happen
-
Combining MPEG1 and miniDV camcorder footage
Hi, I have been using a Panasonic GS180 3CCD camcorder (miniDV tapes) and a Sony DSC-P200 camera to record footage of various carnivals. I use the Sony camera when I am performing as its small and the MPEG1 movies are okay quality for my purposes. I