Fork Join Framework Help
Hello,
I've been reading into the Fork/Join Framework. From what i have read so far the Fork Join Framework is brilliant. It offers a solution for true multicore processing. However im struggling to get my head around how you would use it to execute two different tasks. For example i have written the following very simple application using Threads. As the methods below do not return a value i know that RecrusiveAction would be used from the Fork Join Framework, however im not sure how to implement.
package threads;
import java.util.concurrent.Semaphore;
* @author steven.haynes
class Queue {
static Semaphore semConsumer = new Semaphore(0);
static Semaphore semProducer = new Semaphore(1);
String displayText;
String get() {
try {
semConsumer.acquire();
} catch (InterruptedException e) {}
System.out.println("Got: " + displayText);
semProducer.release();
return displayText;
void put(String displayText) {
try {
semProducer.acquire();
} catch (InterruptedException e) {}
this.displayText = displayText;
System.out.println("Put: " + displayText);
semConsumer.release();
class Producer implements Runnable {
Queue queue;
Producer(Queue queue) {
this.queue = queue;
new Thread(this, "Producer").start();
public void run() {
while (true) {
queue.put("Hello World");
try {
Thread.sleep(5000);
} catch (InterruptedException e) {}
class Consumer implements Runnable {
Queue queue;
Consumer(Queue queue) {
this.queue = queue;
new Thread(this, "Consumer").start();
public void run() {
while (true) {
queue.get();
try {
Thread.sleep(5000);
} catch (InterruptedException e) {}
class Concurrent {
public static void main(String args[]) {
System.out.println("Starting threads. Press Ctrl + C to exit.");
Queue queue = new Queue();
new Producer(queue);
new Consumer(queue);
Thanks,
I don't quite understand your point....
First, why would you create a semaphore with 0 permits ?
I copy/pasted your code and it seems to do what it's supposed to do...
Similar Messages
-
hi
i am encountering error like the values not getting populated in internal table though values are in dbtable...so if u can help me out in the join query it will be of gr8 help
SELECT a1~guid a1~posting_date a1~process_type
b1~sales_org b1~division b1~dis_channel
INTO CORRESPONDING FIELDS OF TABLE it_ordel
FROM ( ( crmd_orderadm_h AS a1 INNER JOIN crmd_link AS c1 ON a1~guid = c1~guid_hi )
INNER JOIN crmd_orgman AS b1 ON c1~guid_hi = b1~guid )
WHERE c1~objtype_hi = '05'
AND c1~objtype_set = '21'.
AND a1~process_type IN so_prst
AND a1~posting_date IN so_podt
AND b1~division IN so_div.
thnxSELECT a1~guid a1~posting_date a1~process_type
b1~sales_org b1~division b1~dis_channel
INTO CORRESPONDING FIELDS OF TABLE it_ordel
FROM ( ( crmd_orderadm_h AS a1 INNER JOIN crmd_link AS c1 ON a1~guid = c1~guid_hi )
INNER JOIN crmd_orgman AS b1 ON c1~guid_hi = b1~guid )
WHERE c1~objtype_hi = '05'
AND c1~objtype_set = '21'.
AND a1~process_type IN so_prst
AND a1~posting_date IN so_podt
AND b1~division IN so_div.
SELECT a1~guid a1~posting_date a1~process_type
b1~sales_org b1~division b1~dis_channel
INTO CORRESPONDING FIELDS OF TABLE it_ordel
FROM ( ( crmd_orderadm_h AS a1 INNER JOIN crmd_link AS c1 ON a1~guid = c1~guid_hi )
INNER JOIN crmd_orgman AS b1 ON c1~guid_hi = b1~guid )
WHERE c1~objtype_hi = '05'
AND c1~objtype_set = '21' ". delete that period its wrong
AND a1~process_type IN so_prst
AND a1~posting_date IN so_podt
AND b1~division IN so_div. -
I would be very grateful if someone would show me show to use the self join, I understand what is does but just don't know how to use it. I have a question from a exercise but no answer so I can't check it the question is - using temporary labels to abbreviate table names, find all the staff that earn more than 'SONG'.
here is the table
STAFFID SNAME JOB MGR STARTDATE SAL COMM BRANCHID
5963 SMITH ADMIN 5209 15-NOV-00 1600 20
5994 BATES ASSISTANT 5896 20-FEB-01 1800 100 30
5125 CHAN ASSISTANT 5896 22-FEB-02 1550 150 30
5665 JONES MANAGER 5938 02-MAR-01 3100 20
5465 WILSON ASSISTANT 5896 28-OCT-00 1250 140 30
5896 HAYAT MANAGER 5938 01-MAY-01 3100 30
5287 CLARK MANAGER 5938 09-JUL-02 3100 10
5887 COSTA BUYER 5665 18-APR-04 3150 20
5938 SHAW DIRECTOR 17-NOV-01 7000 10
5484 TURNER ASSISTANT 5896 08-OCT-01 1550 0 30
5678 KALIM ADMIN 5887 23-APR-04 1600 20
5009 JAMES ADMIN 5896 03-DEC-01 1600 30
5209 SONG BUYER 5665 03-JAN-02 3000 20
5439 SIMPSON ADMIN 5287 23-FEB-02 1600 10
Thanks in advanced :)
Edited by: user11093259 on 01-Dec-2010 10:19Hi,
Welcome to the forum!
Always post your best attempt at solving the problem. You'll get more specific replies that will help you learn more, and it often clarifies what you're trying to do.
Here's a typical self-join, using the scott.dept table (which you probably have avaialble).
SELECT l.dname AS lower_dname
, h.dname AS higher_dname
FROM scott.dept l
JOIN scott.dept h ON l.dname < h.dname
;Output:
LOWER_DNAME HIGHER_DNAME
ACCOUNTING OPERATIONS
ACCOUNTING RESEARCH
ACCOUNTING SALES
OPERATIONS RESEARCH
OPERATIONS SALES
RESEARCH SALESAs you can see, this pairs every higher_dname with every dname that is less than it.
This is very similar to your problem. The main difference is, where the query above shows every possible higher_dname (and the lower_dnames related to it), you're interested in a single, specific higher value (and the rolws with lower values related to it). You can restrict the query to show only that one, specific higher values by adding a WHERE clause. Try it. If you get stuck, ask a more specific question, and, remember, post your code. -
hi
I have following data
create table test1 (ind int,idd varchar(20), sec int, amt float)
create table test2 (ind int, id1 varchar(10), id2 varchar(10), sec int, qty float)
insert into test1 values (11, '1aa',1,100);
insert into test1 values (12, '1aa',1,200);
insert into test1 values (13, '2bb',2,500);
insert into test1 values ( 14,'2bb',2,600);
insert into test1 values ( 15, '3cc',3,100);
insert into test1 values ( 16, '4dd',4,100);
insert into test1 values ( 17, '1aa',5,5100);
insert into test1 values ( 18, '1aa',6,100);
insert into test2 values( 1, '1','aa',1, 300);
insert into test2 values( 2, '1','aa',1, 300);
insert into test2 values( 3, '2','bb',2, 700);
insert into test2 values( 4, '2','bb',2, 100);
insert into test2 values( 5, '3','cc',3, 400);
insert into test2 values( 6, '1','aa',5, 3100);
insert into test2 values( 7, '1','aa',6, 7100);
select test2.ind, idd, id1||id2 , test1.sec, amt, qty from test1 inner join test2 on idd=id1||id2 and test1.sec=test2.sec
order by indI am getting 11 records
1 1aa 1aa 1 100 300
1 1aa 1aa 1 200 300
2 1aa 1aa 1 100 300
2 1aa 1aa 1 200 300
3 2bb 2bb 2 500 700
3 2bb 2bb 2 600 700
4 2bb 2bb 2 600 100
4 2bb 2bb 2 500 100
5 3cc 3cc 3 100 400
6 1aa 1aa 5 5100 3100
7 1aa 1aa 6 100 7100
and following is my desired output
1 1aa 1aa 1 100 300
2 1aa 1aa 1 200 300
3 2bb 2bb 2 500 700
4 2bb 2bb 2 600 100
5 3cc 3cc 3 100 400
6 1aa 1aa 5 5100 3100
7 1aa 1aa 6 100 7100
please helpHi,
Thanks for posting the CREATE TABLE and INSERT statements! That's very helpful.
It's also helpful if you explain how you get the results you want from that data.
Why do you want 7 rows of output, not 11?
Given that you do want 7 rows of output, why do you want the results you posted, and not
IND IDD ID1_ID2 SEC AMT QTY
1 1aa 1aa 1 200 300
2 1aa 1aa 1 200 300
...or
IND IDD ID1_ID2 SEC AMT QTY
1 1aa 1aa 1 100 300
2 1aa 1aa 1 100 300
...or some other combination? Don't force people to spend time guessing, and don't give them a chance to guess wrong.
It looks like you're getting the output you want now, except when there are multiple rows with the same idd and sec in test1 (or the same id1, id2 and sec in test2). These are the join columns.
It looks like you only want one row of output for each gropup that has the same join columns.
Within each of those groups, do you only want
the row with the lowest test1.ind joined to the row with the lowest test2.ind,
the row with the 2nd lowest test1.ind joined to the row with the 2nd lowest test2.ind,
the row with the 3rd lowest test1.ind joined to the row with the 3rd lowest test2.ind,
and so on?
If so, use the analytic ROW_NUMBER functions to indicate whihc i the lowest, 2nd lowest, 3rd lowest, and so on:
WITH test1_with_r_num AS
SELECT ind, idd, sec, amt
, ROW_NUMBER () OVER ( PARTITION BY idd, sec
ORDER BY ind
) AS r_num
FROM test1
, test2_with_r_num AS
SELECT ind, id1, id2, sec, qty
, ROW_NUMBER () OVER ( PARTITION BY id1, id2, sec
ORDER BY ind
) AS r_num
FROM test2
select t2.ind
, t1.idd
, t2.id1 || t2.id2 AS id1_id2
, t1.sec
, t1.amt
, t2.qty
from test1_with_r_num t1
inner join test2_with_r_num t2 on t1.idd = t2.id1 || t2.id2
and t1.sec = t2.sec
and t1.r_num = t2.r_num
order by t2.ind
;This happens to give the results you requested from the data you posted. It may be purely by coincidence.
What if there are an unequal number of rows with the same join conditions in the two tables?
For example, what if we add another row to test1:
insert into test1 (ind, idd, sec, amt) values (91, '1aa',1,125);but don't add any new rows to test2?
What if we add a row only to test2
insert into test2 (ind, id1, id2, sec, ity) values( 9, '1','aa',6, 7199);? What results would you want in these cases? -
Join-Smooth help please..
Hello .. as in the photo i'm tring do an cartoon bird
but that step more that 1 hour i'm searching for soulotion and nothings happen
please help me :
http://imgur.com/nCddOyb
Quickly plzAhmed,
There seems to be some discrepancy:
Aaccording to the Layers palette, the beak shape is a linked image with a horizontal colour transition corresponding to a gradient at the top of the stacking order, and the selected path is a horizontal wave shape.
The appearance on the Artboard seems to correspond to a path with the same beak shape and a solid fill where all Anchor Points but 2 with one sided Handles are Direct Selected.
Whatever is the case, if the selected path has 8 Anchor Points, it should be closed; if it has more it may be open. You may try to click each Anchor Point with the Direct Selection Tool and move it 1pt or something to the side and see whether there is another one staying in place beneath it; if there is, the path is open there and you should be able to close it, dragging over the set with the Direct Selection Tool and joining. -
I'm having difficulty with the join logic of a particular query, which is modeled with the following (highly simplified) schema:
create table a(
a_id number,
constraint pk_a primary key(a_id));
create table b(
b_id number,
a_id number,
constraint pk_b primary key(b_id),
constraint fk_b_a foreign key(a_id) references a(a_id));
create table c(
c_id number,
b_id number,
constraint pk_c primary key(c_id),
constraint fk_c_b foreign key(b_id) references b(b_id));
insert into a values(1);
insert into a values(2);
insert into b values(1,1);
insert into b values(2,1);
insert into b values(3,2);
insert into b values(4,2);
insert into c values(1,1);
insert into c values(2,2);
insert into c values(3,3);There can be 1-many "b" records associated with each "a" record, but "b" and "c" have a 1-1 relationship. What query will select only the "a" records that have ALL associated "b" records contained in "c"? Given the above data, the query should return only "a=1", since both "b=1" and "b=2" are contained in "c". However, it would NOT return "a=2", since both "b=3" and "b=4" are not contained in "c". The results should be:
OUTPUT:
a_id
1Hi,
Here's one way:
SELECT a.a_id
FROM a
JOIN b ON a.a_id = b.a_id
LEFT OUTER JOIN c ON b.b_id = c.b_id
GROUP BY a.a_id
HAVING COUNT (b.b_id) = COUNT (c.b_id)
;Most things that you can do with IN sub-queries can also be done with joins, or with EXISTS sub-queries. (Most things that can be done with EXISTS sub-queries can also be done wioth joins or IN sub-queries. However, there are lots of things that can be done only with joins.)
If you don't like one, try the others.
Thanks for posting the CREATE TABLE and INSERT statements; that's very helpful.
Don't forget to post the results you want from that data, no matter how simple those results are, and your version of Oracle. -
Combine Paths - Join = problem HELP!!!
Hi all
When I join 2 or more rectangles it seems to enlarge the
rectangles after joining. Why does it do this and how can i stop
this from happening.
I've included before and after pictures for examples.
Anyone can help before I pull more of my hair out.???
Many thanks
Johnny
BEFORE -
http://img74.imageshack.us/my.php?image=example1fu1.jpg
AFTER -
http://img230.imageshack.us/my.php?image=example2tr4.jpgWhat is happening there is not really clear. You need to post
some
fireworks PNG files from before and after. Please don't use
imageshack to
do so.
Tony
"zenmasterjohnny" <[email protected]> wrote
in message
news:eh3kr0$ib3$[email protected]..
> Hi all
>
> When I join 2 or more rectangles it seems to enlarge the
rectangles after
> joining. Why does it do this and how can i stop this
from happening.
>
> I've included before and after pictures for examples.
>
> Anyone can help before I pull more of my hair out.???
>
> Many thanks
>
>
> Johnny
>
> BEFORE -
http://img74.imageshack.us/my.php?image=example1fu1.jpg
> AFTER -
http://img230.imageshack.us/my.php?image=example2tr4.jpg
> -
select * from ort
bid mid
18083 7
select * from st
tid bid mid act
318 18083 5 20091
318 18083 6 20091
321 18083 7 NULL
318 18083 16 23970
my out put should be
318 18083 6 20091
(basic idea is
In order to do this I wrote the following query. But I am getting the following error ora-01799. How do i fix this?
select ort.bid,st.tid from ort
left join st
on ort.BiD = st.bid
and st.mid in
(select max(MID)
from St
where BID = ort.BID and TID is not null and MID <= ort.MID
and ACT is not null
)May be this will clear up what I am trying to acheive a little better. I truly appreciate all your help. I have enclosed column headings and data items within double quotes and data is enclosd in double-quotes and separated by comma.
SQL> desc ort
"Name" "Null?" "Type"
"BID" "NUMBER"
"MID" "NUMBER"
SQL> desc st
"Name" "Null?" "Type"
"TID" "NUMBER"
"BID" "NUMBER"
"MID" "NUMBER"
"ACT" "NUMBER"
"LTP" "NUMBER(10)"
SQL> select * from ort
2 ;
"BID" "MID"
"18083", "7"
"18083", "6"
"18083", "16"
"18083", "277"
"18083", "117"
SQL> select * from st;
"TID" "BID" "MID" "ACT" "LTP"
"NULL", "18083", "117", "NULL", "246"
"NULL", "18083", "277", "NULL", "246"
"246", "18083", "272", "54998", "246"
"318", "18083", "6", "20091" "NULL"
"321", "18083", "7", "NULL", "NULL"
"318", "18083", "16", "23970", "NULL"
6 rows selected.
SQL> SELECT ort.bid, st.tid, st.mid, st.act
2 FROM ort
3 LEFT OUTER JOIN
4 st
5 ON ort.bid = st.bid
6 AND st.mid IN (SELECT mid
7 FROM myortview);
"BID" "TID" "MID" "ACT"
"18083", "246", "272", "54998"
"18083", "246", "272", "54998"
"18083", "246", "272", "54998"
"18083", "246", "272", "54998"
"18083", "246", "272", "54998"
SQL> -- expected result is
bid tpid ort.mid st. mid
"18083", "246", "277", "272"
"18083", "246", "117", "116"
"18083", "318", "16", "16"
"18083", "318", "6", "6"
"18083", "318", "7", "6" -
Query Using Joins.Please Help
Hi,
A Query please
I have a Customer table and an Order Table
The customer can place multiple orders
Create Table Customers
(Cust_id number(2),
cust_name varchar2(15),
constraint pk_custid PRIMARY KEY(Cust_id)
Create Table Orders
(Order_no number(2),
Cust_id number(2),
order_status varchar2(1),
constraint pk_orderno PRIMARY KEY(order_no),
constraint fk_custid FOREIGN KEY(cust_id)
REFERENCES Customers(cust_id)
)Now,the Customer table has a single record
whereas the Order Table has multiple records
for the same customer.
SQL> Select * from Orders
ORDER_NO CUST_ID ORDER_STATUS
1 1 P
2 1 PI'd like to view the different orders for that same customer
Using a simple Join DOES NOT give the right output:
SQL> Select C.cust_id,C.cust_name,
2 O.order_no,O.order_status
3 From Customers C,Orders O
4 where C.cust_id = O.order_no;
CUST_ID CUST_NAME ORDER_NO O
1 ABCD 1 PThere are 2 records in the Orders Table?
How to view both the records from Orders Table?
Do I need to use the EXISTS clause?
Can someone please help?Well, I would have thought that you would join C.cust_id with the O.cust_id (and not O.order_no)???
SQL> Select C.cust_id,C.cust_name,
2 O.order_no,O.order_status
3 From Customers C,Orders O
4 where C.cust_id = O.order_no; -
Hi all,
I am trying to figure out how to use the actor framework. Being new to LabVIEW, I am not very confident on how to use OOP properly either, but I do have a basic understanding. I have found many resources on actor framework, and I am trying to create a new project from scratch, as I found the template seems confusing to me before I can make all of that by myself. My goal is to make a VI that generates random number data, and 2 actors, one to gather the data and one to display the data. I don't have anything right now, but if anyone can get me started/help explain or give me some more resources to learn besides https://decibel.ni.com/content/docs/DOC-17193, it would be greatly appreciated.
Thanks!Your link was malformed and didn't work
https://decibel.ni.com/content/docs/DOC-17193
I personally avoid NI's implementation of Actor, so sorry I don't have more help for you.
Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously. -
OA Framework - Help Needed in highlighting one of the rows in Custom Page
Hi Oracle Gurus,
I am new to OAF.
I have a requirement like I have to highlight one of the rows in a Custom OA Page.
These rows exist in a table structure,they are basically Claim records of the employees.
All these rows are from only One View Object. I just need the total row alone to get highlighted in different color.
I tried updating the Custom.xss file in $OA_HTML/cabo/styles.
Below is my Custom.xss file
<styleSheet>
<!-- Please start your customizations here -->
<style selector="XX_BOLD">
<includeStyle name="DefaultFontFamily"/>
<property name="background-color">#FF0000</property>
</style>
<style selector="XX_NORMAL">
<property name="background-color">#0000FF</property>
</style>
The Query of the VO is
SELECT EMP_DEP,
CLINIC,
HOSPITAL,
DENTAL,
OPTICAL,
EXE_PROFILE,
MATERNITY,
DECODE(EMP_DEP,'Total','XX_BOLD','XX_NORMAL') XX_BOLD FROM apps.XXBEN_CB_MEDUTIL_TABLE;
The VO has decode operation that decides the CSS style which will be used via Controller.
I have applied the CSS file thorugh the Controller code that I have given below.
Controller Code :
OAPageLayoutBean plb = pageContext.getPageLayoutBean();
OAMessageStyledTextBean columnBean = (OAMessageStyledTextBean) plb.findChildRecursive("EmpDep");
OADataBoundValueViewObject css = new OADataBoundValueViewObject(columnBean, "XX_BOLD");
columnBean.setAttributeValue(oracle.cabo.ui.UIConstants.STYLE_CLASS_ATTR,css);
I did all the changes and bounced the Apache Server.
But this seems to be not working....I do not see any Colour change in the OAPage.
Can Anyone tell what could be wrong in this.???
Please Reply as this very urgent........Hi Anil,
I tried watever you had suggested,It is still throwing the same error.
I have pasted below the code that I am using.
Controller Code:
package EmployeeTest.oracle.apps.per.server.webui;
import oracle.apps.fnd.common.VersionInfo;
import oracle.apps.fnd.framework.webui.OAControllerImpl;
import oracle.apps.fnd.framework.webui.OAPageContext;
import oracle.apps.fnd.framework.webui.beans.OAWebBean;
import oracle.apps.fnd.framework.OAApplicationModule;
import oracle.apps.fnd.framework.webui.OAWebBeanConstants ;
import oracle.apps.fnd.framework.webui.beans.table.OATableBean ;
import oracle.apps.fnd.framework.webui.beans.message.OAMessageStyledTextBean;
import oracle.apps.fnd.framework.webui.OADataBoundValueViewObject;
import oracle.cabo.ui.beans.table.ColumnBean;
import oracle.apps.fnd.framework.webui.beans.form.OAChoiceBean;
import oracle.apps.fnd.framework.webui.beans.form.OASubmitButtonBean;
import oracle.apps.fnd.framework.webui.beans.layout.*;
import oracle.apps.fnd.framework.webui.beans.message.*;
import oracle.apps.fnd.framework.webui.beans.nav.OANavigationBarBean;
import oracle.apps.fnd.framework.webui.beans.nav.OAPageButtonBarBean;
import oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean;
import oracle.apps.fnd.framework.webui.beans.table.*;
import oracle.cabo.ui.*;
import oracle.cabo.ui.beans.*;
import oracle.cabo.ui.beans.form.*;
import oracle.cabo.ui.beans.layout.*;
import oracle.cabo.ui.beans.message.MessageStyledTextBean;
import oracle.cabo.ui.beans.message.MessageTextInputBean;
import oracle.cabo.ui.beans.nav.NavigationBarBean;
import oracle.cabo.ui.beans.table.ColumnBean;
import oracle.cabo.ui.beans.table.TableBean;
import oracle.apps.fnd.framework.OAViewObject;
import oracle.apps.fnd.framework.OARow;
import oracle.jbo.domain.Number;
import oracle.cabo.style.CSSStyle;
import java.io.Serializable;
* Controller for ...
public class EmployeeInfoCO extends OAControllerImpl
public static final String RCS_ID="$Header$";
public static final boolean RCS_ID_RECORDED =
VersionInfo.recordClassVersion(RCS_ID, "%packagename%");
* Layout and page setup logic for a region.
* @param pageContext the current OA page context
* @param webBean the web bean corresponding to the region
public void processRequest(OAPageContext pageContext, OAWebBean webBean)
super.processRequest(pageContext, webBean);
int intPersonId = pageContext.getEmployeeId();
//int intPersonId; // = pageContext.getEmployeeId();
//String strPersonId = Integer.toString(277980);
String strPersonId = Integer.toString(intPersonId);
// get the Application Module
OAApplicationModule oaAM = pageContext.getApplicationModule(webBean);
Serializable parameters[] = { strPersonId };
//pass parameters to Application Module
oaAM.invokeMethod("initQuery", parameters);
oaAM.invokeMethod("insertRow", parameters);
oaAM.invokeMethod("execQuery");
oaAM.invokeMethod("totexecQuery");
oaAM.invokeMethod("tohighQuery");
OAViewObject oaviewobject1 =(OAViewObject)oaAM.findViewObject("EmployeeUtilVO1");
oaviewobject1.reset();
if (oaviewobject1 != null)
do
if(!oaviewobject1.hasNext())
break;
oaviewobject1.next();
OARow row = (OARow)oaviewobject1.getCurrentRow();
String fullName = (String)row.getAttribute("EmpDep");
System.out.println("The Name is "+fullName);
row.setEmpDep("<html><H5>"+row.getEmpDep()+"</H5></html>"); (As it is a Plain Text this HTML tag is making the text row.getEmpDep() as H5)
} while(true);
* Procedure to handle form submissions for form elements in
* a region.
* @param pageContext the current OA page context
* @param webBean the web bean corresponding to the region
public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
super.processFormRequest(pageContext, webBean);
I am successful in Interating the rows of the table.
I am being able to print out the view attribute "EmpDep", But when I tried highlighting the row attribute using Row object,it is throwing me an error.
The error code is :
Error(88,40): method getEmpDep not found in interface oracle.apps.fnd.framework.OARow
Error(88,13): method setEmpDep(java.lang.String) not found in interface oracle.apps.fnd.framework.OARow
I have already give the Query for the VO in the Thread.
Could You Plz let me know what is wrong in this code?
Edited by: user1393742 on Sep 21, 2010 7:54 PM
Edited by: user1393742 on Sep 21, 2010 7:55 PM
Edited by: user1393742 on Sep 21, 2010 7:57 PM
Edited by: user1393742 on Sep 21, 2010 7:58 PM
Edited by: user1393742 on Sep 21, 2010 8:01 PM
Edited by: user1393742 on Sep 21, 2010 8:02 PM
Edited by: user1393742 on Sep 21, 2010 8:03 PM
Edited by: user1393742 on Sep 21, 2010 8:07 PM -
I am trying to connect an IPod Touch to my Verizon MiFi Hotspot. It has a password. I have set up a computer, a tablet, and 2 nooks to this MiFi but can't get the IPod to connect to any network that has a password. Please help!
There are other things to try.
Turn WiFi off on the iPad, restart it and then turn WiFi on again.
Reset the network settings on the iPad. Settings>General>Reset>Reset Network Settings, that makes you have to start all over again. -
Select distinct problem with muliple join tables, help needed
Hi,
I have two main tables. Each has its of sub joined tables.
guest_id_for_reservation connects two major tables. This has
to be that way
because my guest may change the room status from single to
double (and the
similar exceptional requests).
guests reservation
guest_id_for_reservation
countrytable hoteltable
delegationtable roomtype
I form a query. I want to select distinct those results. But
it does not
work.
If I do not include any table related to reservation table
and its sub
joined tables (disregarding guest_id_for_reservation), it
works.
Is there a specific syntax for select distinct of this type
or any
workaround.?
Thank you
HakanHi I'm still battling with this - have connected the AX to my Imac via ethernet and it shows up fine in Airport Utility. Status light is green and it says its set up to connect to my existing wireless network using wireless connection. Security in Network Preferences is the same for both: WPA2 Personal.
So I don't think there's a problem with the AX, and my current wireless network (BT Home Hub) is working fine.
And when I restore factory settings Airport Utility can see the AX before updating settings so the wireless side of AX must work too.
I'm figuring it must be something about the settings that mean AU can't see it anymore. But I can't work out what, since security is the same.
Any ideas would be great! -
Hi All,
I have a problem in writing the below query. The below query always shows an MERGE JOIN CARTESIAN in the explain plan due to which the query execution takes lot of time(close to 2 hour for 1000 records).
I'm using "Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi". Please advice if I need to provide more information on this.
Select to_char(a.amnt_date,'DD-MON-YYYY') amnt_date,
SUM(a.AMNT_CON) amount
from amount a,
(SELECT area_no
FROM (SELECT *
FROM area_usage
WHERE area_hier_no = '201064')
CONNECT BY area_par_no = PRIOR area_no
START WITH area_no in (SELECT area_no
FROM area
WHERE area_code in ('EQ'))) b,
(SELECT acc_no
FROM (SELECT *
FROM acc_usage
WHERE acc_hier_no = '1')
CONNECT BY acc_par_no = PRIOR acc_no
START WITH acc_no = 202917) c -- Account Hierarchy
where a.area_no = b.area_no
AND a.acc_no = c.acc_no
GROUP BY a.amnt_date-----
PLAN_TABLE_OUTPUT
PLAN_TABLE_OUTPUT
Plan hash value: 2492729134
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time | Pstart| Pstop |
| 0 | SELECT STATEMENT | | 692 | 22144 | 3327 (32)| 00:00:40 | | |
| 1 | HASH GROUP BY | | 692 | 22144 | 3327 (32)| 00:00:40 | | |
| 2 | TABLE ACCESS BY LOCAL INDEX ROWID | AMOUNT | 138 | 2898 | 3326 (32)| 00:00:40 | | |
| 3 | NESTED LOOPS | | 692 | 22144 | 3326 (32)| 00:00:40 | | |
| 4 | MERGE JOIN CARTESIAN | | 5 | 55 | 13 (0)| 00:00:01 | | |
| 5 | VIEW | | 1 | 5 | 5 (0)| 00:00:01 | | |
|* 6 | CONNECT BY WITH FILTERING | | | | | | | |
| 7 | TABLE ACCESS BY INDEX ROWID | ACC_USAGE | 1 | 24 | 2 (0)| 00:00:01 | | |
|* 8 | INDEX UNIQUE SCAN | ACU_PK | 1 | | 1 (0)| 00:00:01 | | |
| 9 | NESTED LOOPS | | | | | | | |
| 10 | CONNECT BY PUMP | | | | | | | |
|* 11 | TABLE ACCESS BY INDEX ROWID | ACC_USAGE | 1 | 14 | 5 (0)| 00:00:01 | | |
|* 12 | INDEX RANGE SCAN | ACU_AH_HAVE_AS_PARENT_FK_I | 4 | | 1 (0)| 00:00:01 | | |
| 13 | BUFFER SORT | | 5 | 30 | 13 (0)| 00:00:01 | | |
| 14 | VIEW | | 5 | 30 | 8 (0)| 00:00:01 | | |
|* 15 | CONNECT BY WITH FILTERING | | | | | | | |
|* 16 | TABLE ACCESS BY INDEX ROWID | AREA_USAGE | | | | | | |
| 17 | NESTED LOOPS | | 1 | 32 | 2 (0)| 00:00:01 | | |
| 18 | TABLE ACCESS BY INDEX ROWID| AREA | 1 | 21 | 2 (0)| 00:00:01 | | |
|* 19 | INDEX UNIQUE SCAN | AR_AR2_UK | 1 | | 1 (0)| 00:00:01 | | |
|* 20 | INDEX UNIQUE SCAN | AU_PK | 8608 | 94688 | 0 (0)| 00:00:01 | | |
| 21 | NESTED LOOPS | | | | | | | |
| 22 | CONNECT BY PUMP | | | | | | | |
|* 23 | TABLE ACCESS BY INDEX ROWID | AREA_USAGE | 5 | 85 | 8 (0)| 00:00:01 | | |
|* 24 | INDEX RANGE SCAN | ARU_APN_FKI | 8 | | 1 (0)| 00:00:01 | | |
| 25 | PARTITION RANGE ALL | | | | | | 1 | 60 |
| 26 | BITMAP CONVERSION TO ROWIDS | | | | | | | |
| 27 | BITMAP AND | | | | | | | |
| 28 | BITMAP CONVERSION FROM ROWIDS | | | | | | | |
|* 29 | INDEX RANGE SCAN | A_ARH_FK_I | 194K| | 134 (7)| 00:00:02 | 1 | 60 |
| 30 | BITMAP CONVERSION FROM ROWIDS | | | | | | | |
|* 31 | INDEX RANGE SCAN | A_AH_FK_I | 194K| | 488 (41)| 00:00:06 | 1 | 60 |
Predicate Information (identified by operation id):
6 - access("ACC_USAGE"."ACC_PAR_NO"=PRIOR "ACC_USAGE"."ACC_NO")
8 - access("ACC_USAGE"."ACC_NO"=202917 AND "ACC_HIER_NO"=1)
11 - filter("ACC_HIER_NO"=1)
12 - access("ACC_USAGE"."ACC_PAR_NO"=PRIOR "ACC_USAGE"."ACC_NO")
15 - access("AREA_USAGE"."AREA_PAR_NO"=PRIOR "AREA_USAGE"."AREA_NO")
16 - filter("AREA_HIER_NO"=201064)
19 - access("AREA_CODE"='EQ')
20 - access("AREA_HIER_NO"=201064 AND "AREA_USAGE"."AREA_NO"="AREA_NO")
23 - filter("AREA_HIER_NO"=201064)
24 - access("AREA_USAGE"."AREA_PAR_NO"=PRIOR "AREA_USAGE"."AREA_NO")
29 - access("A"."AREA_NO"="B"."AREA_NO")
31 - access("A"."ACC_NO"="C"."ACC_NO")
54 rows selected.
Edited by: Harinath Arasu on Oct 14, 2010 5:31 AMThat's a very small difference, and I wouldn't expect that to cause huge shifts in an execution plan. Either way to gather statistics you would use the DBMS_STATS package.
By the way, your "formatted" execution plan isn't exactly readable in your post.
Looking at your query a little more closely I do recommend you remove the SELECT * from the subqueries. Something like this may suffice:
Select to_char(a.amnt_date,'DD-MON-YYYY') amnt_date,
SUM(a.AMNT_CON) amount
from amount a,
(SELECT area_no
FROM (SELECT area_no
, area_par_no
FROM area_usage
WHERE area_hier_no = '201064')
CONNECT BY area_par_no = PRIOR area_no
START WITH area_no in (SELECT area_no
FROM area
WHERE area_code in ('EQ'))) b,
(SELECT acc_no
FROM (SELECT acc_no
, acc_par_no
FROM acc_usage
WHERE acc_hier_no = '1')
CONNECT BY acc_par_no = PRIOR acc_no
START WITH acc_no = 202917) c -- Account Hierarchy
where a.area_no = b.area_no
AND a.acc_no = c.acc_no
GROUP BY a.amnt_dateUsing a SELECT * and not subsequently using all the columns is hiding valuable information from Oracle. If you provide only the columns used Oracle may be able to find a better execution plan.
Granted I don't know the table structures so you could actually be using all the columns. I still recommend the change because I think it makes the code easier to understand. -
SAP HR new joining, plz help!!!
Hello Experts,
I'm new in SAP HR, have just shifted career from HR Dept. to SAP HR Consulting Dept (I work for ERP Services Comp.). Over the last 3 months, I've spent fulltime on self-research on SAP HR but it is such harsh work when I don't have any guidline or material. Could any of you give me some suggestion of the approach steps to get to know SAP HR?
Btw, I'm reading the SAP HR serial tutorials of appx. 30 pdf files (HR505, HR100...) but it is a little bit theorical and i can't figure out about the acctual job (the IMG invironment? real implementing steps?...)
Points are awarded for helpful guidline and thanks in advance.
Best regards,
Huynh ThanhHi Huynh,
As You worked domain, I hope you are good in Business Process in HR. First do configuration for Enterprise Structure and Personnel Structures. If possible get one bbp from some of your network, understand that and start configuration accordngly.
This would be good rather than reading all mentioned pdf files.
Regs,
Brahma
Maybe you are looking for
-
Can you get your storage upgraded on an iTouch?
I've recently run out of space on my 8GB iPod Touch because I've been expanding my music, and I was wondering if I could go to an Apple store to have my storage upgraded, or if I would have to buy a completely new Ipod.
-
Cannot Edit some files in Library
I have a library of images imported from a Nikon D70, Nikon D200, and Canon Powershot S400. For some reason, I am unable to Edit some of the files within my library. There does not seem to be any consistency of the problem with reference to the camer
-
What is best way to load USRACL table
I want some advice on loading the USRACL table with initial entries for mapping SNC names onto SAP user names. I know that SNC1 can be used, but I also wondered what functionality exists in SAP to load this table using table maintenance tools, e.g. l
-
How to handle the Notification Responsses
I have created a custom process for journal approval workflow for routing the notifications and handling them. My process has a function activity which creates a custom role and assigns users to that custom role which is working fine. The notificatio
-
Transporting Entire Folder Structures
There may be something wrong in the way we do transports, but this is the scenario Example, Folder 1 (contains iview1, iview2, iview3) transported entire Folder 1 to QA QA will have Folder 1 (contains iview1, iview2, iview3) Deleted iview3 and added