Aq_tm_processes parameter in Oracle 10.2.0.4.0-10.2.0..5.0
Hi all,
Just a question regarding aq_tm_processes. As per OWB Installation guide, this parameter should be one. But also in metalink there is a recommendation to leave it unset in database version up to 10.2.
There is a script to check if this parameter was set explicitly to zero or not. In this case: The parameter ''aq_tm_processes'' is not explicitly set to 0
Which is the correct setting in this case?
Regards,
Sebastian
Hi Sebastian,
starting from Oracle 10.1 the number of Queue Monitor processes is autotuned by database instance, so the best is to unset AQ_TM_PROCESSES parameter (as described in Metalink Note 305662.1 and in Oracle Database Reference since 11.1 release).
I think you can set this parameter to 1 (as specified in OWB installation guide) if OWB/workflow is the only product which use AQ database feature.
Regards,
Oleg
Similar Messages
-
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?> -
Net_write_timeout parameter for Oracle
HI,
"net_write_timeout" is parameter for MySQL. I need to know what is the name of this parameter in Oracle and PostgreSQL
thanks
vladHi Gopikrish
The root cause for your error is, it is not able to start the Pointbase database. Looks like you configured a domain with default pointbase database. In the domain\bin\ one of the starup scripts like startWeblogic.cmd, you should see some lines that start the pointbase database.
java.sql.SQLException: SQL-server rejected establishment of SQL-connection. Pointbase Server may not be running on localhost at port 9093
Instead of starting from Workshop, go to the domain root folder and start the weblogic using the command like startWeblogic.cmd (or .sh on unix). This should start the pointbase and then start the portal domain. Portal domain does need this backend pointbase database to store all the portal meta data and has datasources configured for this.
Do you have a Clustered Portal domain, with one of the managed servers located in the remote machine. If yes, and if you use default Pointbase database, you need to change something like pointbase db should not be localhost but the name of the machine where you have the admin server running.
Either way, the issue is not able to stat the pointbase db and thus serve not starting.
Thanks
Ravi Jegga -
NLS_CALENDAR parameter in oracle fusion middaleware
Dear
are we can change the NLS_CALENDAR parameter from oracle fusion middleweight 11 in windows environment in old version like 6 and prior we was change from registry how we can change nowAre you referring to Forms and Reports?
If so I suggest posting here(Respective to the product):
Oracle Forms (MOSC)
Oracle Reports (MOSC) -
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 -
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.
-
Issue with IN parameter of Oracle Procedure returning two RefCursors...
Hi all,
I'm having a nightmare with an Oracle procedure that takes one input parameter and returns two RefCursors as outputs. I recently got help in this forum getting a procedure to work that took no inputs but returned two refcursors and that's still working fine. So, for my current issue I have a procedure defined as follows:
PROCEDURE getQueueInfo(domainKey char, importQueues OUT ODPNet.refcur, exportQueues OUT ODPNet.refcur) IS
BEGIN
OPEN importQueues FOR SELECT
source_key, source_applid,
import_status(source_key) as status,
time_added, time_processed
FROM wm_import_source_header
WHERE source_id = domainKey
ORDER BY source_key DESC;
OPEN exportQueues FOR SELECT
h.source_key, d.source_applid,
export_status(h.source_key) as status,
d.source_wire_code, d.destination_wire_code, h.time_added,
h.time_transmitted
FROM wm_export_source_header h, wm_export_source_data d
WHERE h.source_key = d.source_key
and d.source_id = domainKey
ORDER BY h.source_key DESC;
END getQueueInfo;This is defined within a package called ODPNet as with my previous procedure and all works fine (I can execute within Oracle SQL Developer and it returns the expected results). Within my .NET application my code is as follows:
try
using (OracleConnection conn = new OracleConnection(connString))
using (OracleCommand comm = new OracleCommand())
comm.CommandText = "ODPNet.getQueueInfo";
comm.CommandType = CommandType.StoredProcedure;
comm.Connection = conn;
OracleParameter domainKey = new OracleParameter();
OracleParameter importQueues = new OracleParameter();
OracleParameter exportQueues = new OracleParameter();
domainKey.OracleDbType = OracleDbType.Char;
importQueues.OracleDbType = OracleDbType.RefCursor;
exportQueues.OracleDbType = OracleDbType.RefCursor;
domainKey.Value = "UKBD72";
domainKey.Direction = ParameterDirection.Input;
importQueues.Direction = ParameterDirection.Output;
exportQueues.Direction = ParameterDirection.Output;
comm.Parameters.Add(domainKey);
comm.Parameters.Add(importQueues);
comm.Parameters.Add(exportQueues);
conn.Open();
comm.ExecuteNonQuery();
OracleDataReader dr1 = ((OracleRefCursor)importQueues.Value).GetDataReader();
OracleDataReader dr2 = ((OracleRefCursor)exportQueues.Value).GetDataReader();
if (dr1.HasRows)
while (dr1.Read())
result6 += dr1["source_applid"].ToString() + "<br>";
else
result6 += "No Rows";
if (dr2.HasRows)
while (dr2.Read())
result7 += dr2["source_applid"].ToString() + "<br>";
else
result7 += "No Rows";
catch (Exception ex)
result6 = ex.ToString();
}The value I want to submit as the IN parameter of the procedure is "UKBD72". but I'm really not sure how to apply this and then return my two refcursors into separate datareaders (except for the input parameter stuff the code above is exactly what I did with the other procedure that returned two ref cursors and still works fine). When I run this code I get no errors, I just get told that each DataReader has no rows returned, which shouldn't be right.
Any help with this would be hugely appreciated.
Cheers,
SebSorry folks, after staring at this over and over, eventually going to sleep and coming back to it with some fresh eyes I realised I was just being a complete idiot - I was feeding the procedure different data in the .NET app than I was when testing in Oracle SQL Developer. Low and behold once I gave it the right data it worked!
Silly me... -
How to use LIKE function with a parameter in Oracle REPORT builder??
how could i use parameter inside a LIKE function in Oracle reports builder?
it works in SQL plus, but not in report builder!!
Example:
select code,desc from item_master where desc
like '%&give_desc%'; ---works in SQL
like '%:give_desc%' ---doesn't work in report builder!!Hi Renil,
You will need to use the wildcard character (%) and the concatenation character (||) to join to your user parameter.
i.e. like '%'||:give_desc||'%'
Regards,
John -
How to change the codebase_lookup Parameter in Oracle's Applet?
Hi,
We are using Oracle 10.1.2.3.0 AS, and we have some performance issues when running the applet. I turned on the Java trace and I saw that every time the user moves the cursor from one item to another, the application sends a request to the server, here is an example of that request:
network: Connecting http://prodserver/forms/lservlet;jsessionid=59cf1d233d52f219811fb1e7321d40b64b882bde5e6b1ac384bc0e7f0802fdd1.e34Ra38Pb3uLbi0QaxaNahaKb310n6jAmljGr5XDqQLvpAe with proxy=DIRECT
Looking on the WEB I found out that this kind of requests can be disabled by changing Applet's codebase_lookup property. (http://java.sun.com/javase/6/docs/technotes/guides/plugin/developer_guide/special_attributes.html)
I've changed the formsweb.cfg and basejini.htm in order to add this parameter, but it didn't work.
Does anybody know where can I change the value of this parameter?
Thanks in Advance.You can try passing the parameter in the HTML template file ... for example in the $ORACLE_HOME/forms/server/basejpi.htm
i.e.
<PARAM NAME="TYPE" VALUE="%jpi_mimetype%">
<PARAM NAME="CODEBASE" VALUE="%codebase%">
<PARAM NAME="CODE" VALUE="oracle.forms.engine.Main" >
<PARAM NAME="ARCHIVE" VALUE="%archive%" >
<PARAM name="codebase_lookup" value="false">
I have never done it myself so I do not know if it would be recognized though. -
How to create Array type parameter of Oracle 10.2.0.1.0 in java
I create a collection type with:
CREATE OR REPLACE
type TEST_User.T_ARRAY AS TABLE OF VARCHAR2(100);
and in java code, I use following code to create a parameter of this type, and set it for a procdure
String[] userMakeArray = new String[]{"V", "N", "A"};
oracle.sql.ArrayDescriptor descriptor = oracle.sql.ArrayDescriptor.createDescriptor("TEST_User.T_ARRAY", cn); // cn is connection instance to database
oracle.sql.ARRAY array = new oracle.sql.ARRAY(descriptor, cn, userMakeArray);
((oracle.jdbc.OracleCallableStatement)call).setArray(8, array);
when i use this to call procedure in Oracle 10.1, it work well.
In Oracle 10.2, it does not work well.
For test, I can execute procedure well in sql plus, but in java client, I found that array contains three items "Null", while array is correct when conect to 10.1 enviroment.
does anybody know what's the reason for this.
thanks a lot.Hi,
Too long to copy/paste here but i have a simpler working example of Nested Table of VARCHAR2 type against 10.2.0.x, in chapter 3 and 8 of my book:
create or replace type NTab_Vc2 as TABLE of varchar2(30)
create table NSTableTab (id int, numnt NTab_Num, vc2nt NTab_Vc2, datnt
NTab_Dat)
nested table numnt store as NSTabNum,
nested table vc2nt store as NSTabVc2,
nested table datnt store as NSTabDat;
insert into NSTableTab values (1,
NTab_Num(1, 2, 3, 4, 5, 6, 7, 8, 9, 10),
NTab_Vc2 ('One', 'Two', 'Three', 'Four', 'Five', 'Six', 'Seven', 'Eight', 'Nine', 'Ten'),NTab_Dat('01-JAN-2003', '02-JAN-2003', '03-JAN-2003', '04-JAN-2003',
'05-JAN-2003', '06-JAN-2003', '07-JAN-2003', '08-JAN-2003',
'09-JAN-2003', '10-JAN-2003')
// The following code snippet retrieves and returns a
// NTab_Vc2 as a java.sql.Array
OraclePreparedStatement ps = (OraclePreparedStatement)
conn.prepareStatement ("SELECT VC2NT FROM NSTableTab
WHERE ID = ?");
ps.setNUMBER (1, id[0]);
OracleResultSet rs = (OracleResultSet) ps.executeQuery();
Array a = null;
while (rs.next())
a = (Array) rs.getObject(1);
ps.close();
return a;
Kuassi, http://db360.blogspot.com/2006/08/oracle-database-programming-using-java_01.html -
LRM -00109:could not open parameter file Oracle 10g in Solaris 10
Hallo! I have just installed Oracle 10g in Solaris 10.When I logged into sqlplus / as sysdba if found that I was connected to an idle instance. When I tried to startup open the db, the following error appeared
Connected to an idle instance.
SQL> startup open;
ORA-01078: failure in processing system parameters
LRM-00109: could not open parameter file '/export/home/oracle/product/10.2.0/db_1/dbs/initsolaris.ora'
My pfile has the name init.ora and not initsolaris.ora.How can I change the settings to make the Oracle database start via pfile init.ora.
Eventually,I would like the db to read the spfile spfileorcl.ora during the startup.How can I achieve this?
Thanks4joey1 wrote:
Hallo! I have just installed Oracle 10g in Solaris 10.When I logged into sqlplus / as sysdba if found that I was connected to an idle instance. When I tried to startup open the db, the following error appeared
Connected to an idle instance.
SQL> startup open;
ORA-01078: failure in processing system parameters
LRM-00109: could not open parameter file '/export/home/oracle/product/10.2.0/db_1/dbs/initsolaris.ora'
My pfile has the name init.ora and not initsolaris.ora.How can I change the settings to make the Oracle database start via pfile init.ora.
By default, oracle will look first for a spfile named "spfile<ORACLE_SID>.ora". Lacking that, it will try to find "init<ORACLE_SID>).ora.
Eventually,I would like the db to read the spfile spfileorcl.ora during the startup.How can I achieve this?
Once you have started the db (I believe a startup nomount will be sufficient) you can issue CREATE SPFILE ... Details are in the fine SQL Reference manual found at tahiti.oracle.com
BTW, "open" is the default behavior of "startup", so no need to specify it. A simple "startup" does the same thing.
Thanks -
How to pass Parameter to Oracle Report from portal
Dear All
I create a report use Oracle Report, and the file name is "Account.rdf"
This report have a start date parameter and a end date parameter. I put this
report to the report server, and then add a new entry to the cgicmd.dat file,
so i enter the URL into IE and pass the start date and end date parameters to
the report.
And now, i want to put this report into portal, but how can i config the
start date parameter and the end date parameter?? i want provide a interface
to the end-user, so user can select which date he want to display. It is
possible?? How can i config?? Would you give me some idea.
Thanks for your help.
TonyYou will have to Register your .rdf in Oracle Portal. The following document gives details.
http://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=170178.1 -
Pass a ViewObject as a data parameter into Oracle Reports
Can I pass a ViewObject as a data parameter in an Oracle Reports jsp Report?
you can use impliment this script to your query get data from file
function AfterPForm return boolean is
infile text_io.file_type;
linebuf varchar2(3000) := '';
filename varchar2(100);
v_employee_id varchar2(2000);
begin
filename := :P_file_name; /* you can pass the file name like this c:\temp\test.txt */
infile := text_io.fopen(filename,'r');
loop
text_io.get_line(infile,linebuf);
v_employee_id := v_employee_id| |linebuf| |' ';
end loop;
if text_io.is_open(infile) then
text_io.fclose(infile);
end if;
exception when no_data_found then
text_io.fclose(infile);
v_employee_id := replace(rtrim(v_employee_id),' ',',');
:p_employee_param := 'and employee_id in ('| |v_employee_id| |')';
/* you can use either 'where employee_id in ('| |v_employee_id| |')' or
'and employee_id in ('| |v_employee_id| |')' */
return (TRUE);
end;
I think it will help you to solve your problem. Do not forget to put &v_employee_param
Good Luck
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by gvardhan:
The file will have one EmployeeID per line as follows
100
200
...<HR></BLOCKQUOTE>
null -
Lexical Parameter in Oracle Reports . . .
Hi all,
I am trying to pass a value to a query in oracle reports . . .
the use of the parameter is to add 2 additional columns to an existing query, if a bind parameter is set to 'Yes' else the parameter carries a value NULL;
Here is the code I have written in After Parameter Form:
if :P_ROLL_DETAIL_PRN='Yes' then
:P_CUSTOM_CODE:=NULL;
:P_CUSTOM_CODE:=:P_CUSTOM_CODE||'wdd.LOT_NUMBER' ||','||'wdd.SUBLOT_NUMBER';
else
:P_CUSTOM_CODE:='';
end if;
P_Roll_detail is the bind parameter . . and P_CUSTOM_CODE is the Lexical Parameter . ..
It works for value 'No' of P_ROLL_DETAIL .. . but for Value 'Yes' I get an error . . .
REP-0499: Column '' selected by the query is incompatible with report defination
Kindly help...
Regards
JaganLexical parameters can not be used to change the number of selected columns. Consider selecting max number of columns always, but populating last two columns with either NULL values or table columns based on the parameter. Also, manipulations can be done in the layout model using format triggers.
-
Impact of job_queue_processes parameter in oracle 10g
We have recently migrated 9i database to 10g.During business hours we will reduce the parallel jobs running to 5 and during night hours we set to 20.
After migration to 10g we faced major performance impact.Rest of the parameter we kept same as oracle 9i except obsolete.
Would change of this parameter will impact this performance?
What are other parameter we should check?
Can anyone help me regardng the performance improvement.This causes major business impact.
Thanks
RaghavendraHi,
When does you database becomes perticularly slow? In the day time ot night time?
What are the scheduled job (apart from queues) on your database? Is there any relation between the scheduled jobs running and your database slowing down?
Is there a stats collection job? Is it taking same time as before or taking longer?
Run this SQL,
select s.username,b.sid, a.STATISTIC#, name, b.value
from v$sesstat b, v$statname a, v$session s
where a.STATISTIC# = b.STATISTIC# and ( name like '%physical%' or name like '%consist%' )
and b.sid = s.sid and s.program not like 'oracle@%'
order by 2,4
Do you know about the views I have used in there? You can figure out the session with extensive read, write and select activities from here. Also, you will need to apply your logic there.
Best luck.
Maybe you are looking for
-
Facing problem to display the content in Android Emulator of my mobile app
Hi All, I have developed an adf mobile application as in the following and i successfully deployed my app in android emulator..... Link i have used to create basic mobile App ------------ http://docs.oracle.com/cd/E18941_01/tutorials/MobileTutorial/j
-
So my iTunes Radio is not working and whenever I press or choose a station, it goes into the song it was going to play and goes back out to the stations menu. I have great wifi, great cellular option or whatever it it, So how do I get it to work agai
-
Hi all, had to set up short timed a trial instance of SAP NetWeaver Application Server ABAP 7.4 on SAP MaxDB in Amazon Cloud Installtion was pretty straightforward but now if have the problem of accessing the frontend via RDP. Connecting via ssh work
-
OSX Mountain Lion Preview Hijacks Adobe PDF and Adobe Photoshop
My pdf files and all my images that I have designated to Adobe Reader and Photoshop in the "Get Info" window of these files... continually Default to Preview after a few days. This must stop... I never had this issue in Snow Leopard or Lion! Yes..
-
Reg: Where can i write pcr in tm04 for night allowence
Hi all, I got one requirement for payment for night shift allowance.Where exactly i can write a pcr for allowance and how do i evaluates with payroll. Thanks Laxmi