To delete sample data OEHR_EMPLOYEES
I am trying to remove Sample Data but I was unable to delete them.
delete FIRST_NAME, LAST_NAME, EMAIL from OEHR_EMPLOYEES
ORA-00933: SQL command not properly endeddelete from OEHR_EMPLOYEES
ORA-02292: integrity constraint (xxxxx.OEHR_DEPT_MGR_FK) violated - child record foundIf you have a chance, please share your experience.
Thanks in advance,
Sam
Hi,
delete from OEHR_EMPLOYEES
ORA-02292: integrity constraint (xxxxx.OEHR_DEPT_MGR_FK) violated - child record found
You can disable the constraint or you can change the constraint from "No Action" to(==>>) "Casade" under the "Delete Rule" of the Table Constrainsts section
than you can try under SQL Commands as:-
delete from OEHR_EMPLOYEES;
thxs
regards,
Kumar
Similar Messages
-
EPM 11.1.2.2: Load sample data
I have installed EPM 11.1.2.2 and now I'm trying to load the sample data. I could use help locating instructions that will help with this. While earlier versions of epm documentation seemed to have instructions for loading the sample data, I have yet to find it for 11.1.2.2. Perhaps the earlier versions' steps are supposed to work on this version as well. So I read it. It says to initialize the app then in EAS right click on a consol icon where yuo have the option to load data. Unfortunately, I am using EPMA and I saw no option to initialize when I created the app. In addition, EAS doesnt have the console icon and right clicking on the application doesnt do anything. In short, prior documentation hasnt helped so far. I did find the documentation for EPM 11.1.2.2 but I have yet to locate within it the the instructions for loading the sample application and data. Does anyone have any suggestions?
I considered your comment about the app already existing but if this were true, I think the database would exist in EAS but it doesn't.
I've also deleted all applications, even re-installed the essbase components including the database so it would all be fresh, and then tried to create a new one but still no initialization option is available. At this point, I'm assuming there is something wrong with my installation. Any suggestion on how to proceed would be appreciated.
I've noticed that I dont have the create classic application option in my menu, only the transform from classic to epma option. I also can't navigate to http://<machinename>:8300/HyperionPlanning/AppWizard.jsp. When I noticed these things, I did as John suggested in another post and reselected the web server. This didnt make a difference so I redeployed apps AND selected the web server. Still not seeing it in the menu.
Edited by: dirkp:) on Apr 8, 2013 5:45 PM -
DELETE HIERARCHY DATA,CONNECT BY SQL/PLSQ
Hi
Please help with the logic!
I am trying to delete the data from the hierarchy table data(TABLE1) based on another table(TABLE2),For this i am using 2 cursors (get_ssn and get_max),
problem is with deleting the hierarchy data, there are several levels (few of them upto 10 levels), i have to delete from top to bottom level of the hierarchy structure
the first cursor returns the hierarchy structure
level ssn report_to baid
1
2
3
1
2
1
2
3
4
my plan is to pull the max of the level and delete it, loop the max value and decrement it by 1 in every iteration and delete the rows, below is the rough logic,
please help me building up the logic
declare
lev eweb.level%TYPE;
i = number :=0;
cursor get_ssn is --> this cursor is getting ssn based on simple join between two tables
select level, ssn, report_to, baid
from TABLE1
where ssn not in ( select e.ssn
from TABLE1 e, TABLE2 s
where e.ssn = s.ssn)
start with ssn in (select e.ssn
from TABLE1 e)
connect by prior report_to=baid;
cursor get_max is --> pulling the max of level
select max(level)
from eweb
where ssn not in ( select e.ssn
from TABLE1 e, TABLE2 s
where e.ssn = s.ssn)
start with ssn in (select e.ssn
from TABLE1 e)
connect by prior report_to=baid;
BEGIN
for i in get_ssn
loop i := i+1;
Delete from eweb --> here im trying to delete rows by using max(level)-i, in 1st iteration it takes the max value, in next iteration it will be max -1..........
where level = get_max-i
END LOOP;
end for loop;
END;
Edited by: user8884944 on Jun 23, 2010 11:34 AMA few remarks
1 The subject line was shouted by using all caps. This must be considered rude
2 The introduction discusses 2 tables, yet the code deals with 3, and only from the third table data is deleted
3 no CREATE TABLE statements were posted, nor sample data
4 if you can put a constraint on the affected column, using on cascade delete, everything will be deleted automagically.
With this little information, no help is possible. We can not see what each statement does, the comments don't tell anything, and we can also not see what it is expected to do in terms of logics, as the statements are almost certainly wrong.
Sybrand Bakker
Senior Oracle DBA -
Delete the data based on last updated date
Hi ,
I have sample data like below.I want to delete the duplicate record but want to keep the latest record in the table.
Assumptions:-- There are milion of records so I do not know the last_updated_date for the duplicate record
EMP_NUMBER LAST_UPDATE_DATE
555954116 12/2/2008 9:28:54 PM
555954116 9/7/2008 5:16:27 AM
555954116 9/7/2008 5:16:27 AM
555954116 9/7/2008 5:16:27 AM
555954116 9/7/2008 5:16:27 AM
555954116 9/7/2008 5:16:27 AM
555954116 9/7/2008 5:16:27 AM
Please suggest some idea.
Regards
DasDelete can be performed in two ways:
1. Standard method to delete duplicates: Is good when number of duplicates are very small otherwise generates lot of UNDO/REDO logs.
DELETE FROM emp a
WHERE EXISTS ( SELECT NULL
FROM emp b
WHERE a.emp_number = b.emp_number
AND a.last_update_date < b.last_update_date
{code}
2. Copy-Paste : Is good when table is huge and a lot of duplicates as generate relatively less UNDO/REDO.
{code:sql}
-- Create table emp_temp having same structure/constraint/privilleges as original emp table
CREATE TABLE emp_temp....DDL
-- Copy latest employee record to temporary table
INSERT INTO emp_temp(emp_number, last_update_date)
SELECT emp_number, max(last_update_date) last_update_date
FROM emp
GROUP by emp_number;
-- Drop original employee table.
DROP TABLE emp CASCADE CONSTRAINT PURGE;
-- Rename emp_temp to emp
RENAME emp_temp to emp;
{code} -
Sample Data For Primavera Unifier
Hi all,
Are there sample data available for use with Primavera Unifier? I could not locate on edelivery.oracle.com or on My Oracle Support. Does anyone knows when that will be made available?
Sachin GuptaThere are packages of pre-defined BP's available on edelivery, but as another post mentions, there is no "sampe" data or setup because Unifier is a platform and it is expected that each client will have their own very customized needs for data setup and configuration. Where P6 and PCM provide sample projects based on some standard construction methodologies, Unifier provides more of an blank canvas to build exactly what the client wants rather than fit into a standard pre-existing methodology.
I'm sure this is the primary reason that you haven't seen them publish any sample configuration/setup of the Company Workspace/Shell.
The other consideration here is that there are areas in Unifier that cannot be simply "deleted" once things are set up--which would mean that you might be faced with seeing things in your environment that are no longer valid for your workspace. -
Deleting specific data points from a scatter graph
I cannot seem to figure out how to delete single points in a scatter plot to get rid of the outliers. Someone help me!
I have never used Numbers.
Can't you just delete the data on the source?
The PhD research scientist in me makes me ask you if you are justified in deleting any data points? Even apparent outliers may represent a true data sample. Likewise, how do you know one of the "good" points isn't an aberrant sample that really belongs at an extreme? I would take care of outliers by reanalyzing the sample many times until I averaged it into submission. The only outliers I would outright delete were ones where I could truly question the quality of the analysis based on other data, or it it was truly impossible (e.g., a negative number of apples growing on a tree).
One thing I would do would be make a scatter plot with one set of data and generate my line through it, then generate a second plot on the same page with the outlier data but not plot a line through it. The line would show the relationship I thought really applied but I was also up front about data I had rejected and still presented it for all to see.
Message was edited by: Limnos -
PRICE LIST LINE을 DELETE 하는 SAMPLE API
제품 : MFG_QP
작성날짜 : 2006-05-23
PRICE LIST LINE을 DELETE 하는 SAMPLE API
========================================
PURPOSE
Price List Lines을 delete 할 수 있는 API가 있는지 알아보고 그 사용방법
을 이해한다.
Explanation
아래 설명하는 script는 Price List Lines 만을 delete 하는 sample API
script 이므로 고객사의 business needs에 맞게 고객사에서 script를 수정하
여 사용하여야 한다.
Oracle은 QP_LIST_LINES table에 있는 created_by, creation_date 등을 이용
하여 관련된 records를 읽을 수 있는 cursor를 생성하영 사용할 것을 권장한
다.
QP_LIST_LINES table의 list_line_id를 읽어 delete를 위해
qpr_price_list_line_tbl에 전달한다.
참고로 각 1000이 반복될때 마다 commit 하는것을 권한다.
/*$Header: QPPLXMP3.sql 115.3 2001/11/19 18:15:32 pkm ship $*/
Sample script which deletes an existing Price List line and the product
information for the line (Product Information is stored in pricing
attributes table in product attribute columns).
This sample price list does not have any qualifiers or price breaks or
non product-information type of pricing attributes.
This script must be modified by the user such that the
qpr_pricing_attr_tbl(J).product_attr_value column is populated with a valid
inventory_item_id from the instance where this script is run. Also, other user variables are noted within arrows, <>.
Please read the Oracle Pricing User guide (Appendix A & B) to understand
the flexfields and seed data.
-- set environment variables
set serveroutput on size 1000000
set verify off
set feedback off
set echo off
set autoprint off
set arraysize 4
set pagesize 58
set term on
set underline =
set linesize 100
declare
gpr_return_status varchar2(1) := NULL;
gpr_msg_count number := 0;
gpr_msg_data varchar2(2000);
gpr_price_list_rec QP_PRICE_LIST_PUB.Price_List_Rec_Type;
gpr_price_list_val_rec QP_PRICE_LIST_PUB.Price_List_Val_Rec_Type;
gpr_price_list_line_tbl QP_PRICE_LIST_PUB.Price_List_Line_Tbl_Type;
gpr_price_list_line_val_tbl QP_PRICE_LIST_PUB.Price_List_Line_Val_Tbl_Type;
gpr_qualifiers_tbl QP_Qualifier_Rules_Pub.Qualifiers_Tbl_Type;
gpr_qualifiers_val_tbl QP_Qualifier_Rules_Pub.Qualifiers_Val_Tbl_Type;
gpr_pricing_attr_tbl QP_PRICE_LIST_PUB.Pricing_Attr_Tbl_Type;
gpr_pricing_attr_val_tbl QP_PRICE_LIST_PUB.Pricing_Attr_Val_Tbl_Type;
ppr_price_list_rec QP_PRICE_LIST_PUB.Price_List_Rec_Type;
ppr_price_list_val_rec QP_PRICE_LIST_PUB.Price_List_Val_Rec_Type;
ppr_price_list_line_tbl QP_PRICE_LIST_PUB.Price_List_Line_Tbl_Type;
ppr_price_list_line_val_tbl QP_PRICE_LIST_PUB.Price_List_Line_Val_Tbl_Type;
ppr_qualifiers_tbl QP_Qualifier_Rules_Pub.Qualifiers_Tbl_Type;
ppr_qualifiers_val_tbl QP_Qualifier_Rules_Pub.Qualifiers_Val_Tbl_Type;
ppr_pricing_attr_tbl QP_PRICE_LIST_PUB.Pricing_Attr_Tbl_Type;
ppr_pricing_attr_val_tbl QP_PRICE_LIST_PUB.Pricing_Attr_Val_Tbl_Type;
K number := 1;
j number := 1;
begin
oe_debug_pub.initialize;
oe_debug_pub.setdebuglevel(5);
Oe_Msg_Pub.initialize;
DBMS_OUTPUT.PUT_LINE('Debug File = ' || OE_DEBUG_PUB.G_DIR||'/'||
OE_DEBUG_PUB.G_FILE);
--dbms_output.put_line('after get price list ');
/* setup the list_header rec for update */
gpr_price_list_rec.list_header_id := <price_list_header_id>;
gpr_price_list_rec.name := <price_list_name>;
gpr_price_list_rec.list_type_code := 'PRL';
gpr_price_list_rec.description := '<price_list_description>;
gpr_price_list_rec.operation := QP_GLOBALS.G_OPR_UPDATE;
-- delete the price list line rec
gpr_price_list_line_tbl(K).list_header_id := <price_list_header_id>;
gpr_price_list_line_tbl(K).list_line_id := <price_list_line_id>;
gpr_price_list_line_tbl(K).list_line_type_code := 'PLL';
gpr_price_list_line_tbl(K).operation := QP_GLOBALS.G_OPR_DELETE;
--dbms_output.put_line('before process price list ');
QP_PRICE_LIST_PUB.Process_Price_List
( p_api_version_number => 1
, p_init_msg_list => FND_API.G_FALSE
, p_return_values => FND_API.G_FALSE
, p_commit => FND_API.G_FALSE
, x_return_status => gpr_return_status
, x_msg_count => gpr_msg_count
, x_msg_data => gpr_msg_data
, p_PRICE_LIST_rec => gpr_price_list_rec
, p_PRICE_LIST_LINE_tbl => gpr_price_list_line_tbl
, p_PRICING_ATTR_tbl => gpr_pricing_attr_tbl
, x_PRICE_LIST_rec => ppr_price_list_rec
, x_PRICE_LIST_val_rec => ppr_price_list_val_rec
, x_PRICE_LIST_LINE_tbl => ppr_price_list_line_tbl
, x_PRICE_LIST_LINE_val_tbl => ppr_price_list_line_val_tbl
, x_QUALIFIERS_tbl => ppr_qualifiers_tbl
, x_QUALIFIERS_val_tbl => ppr_qualifiers_val_tbl
, x_PRICING_ATTR_tbl => ppr_pricing_attr_tbl
, x_PRICING_ATTR_val_tbl => ppr_pricing_attr_val_tbl
IF ppr_price_list_line_tbl.count > 0 THEN
FOR k in 1 .. ppr_price_list_line_tbl.count LOOP
dbms_output.put_line('Record = '|| k ||
'Return Status = '|| ppr_price_list_line_tbl(k).
return_status);
END LOOP;
END IF;
IF gpr_return_status <> FND_API.G_RET_STS_SUCCESS THEN
RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
END IF;
dbms_output.put_line('after process price list ');
for k in 1 .. gpr_msg_count loop
gpr_msg_data := oe_msg_pub.get( p_msg_index => k,
p_encoded => 'F');
dbms_output.put_line('err msg ' || k ||' is: ' || gpr_msg_data);
null;
end loop;
EXCEPTION
WHEN FND_API.G_EXC_ERROR THEN
gpr_return_status := FND_API.G_RET_STS_ERROR;
-- Get message count and data
--dbms_output.put_line('err msg 1 is : ' || gpr_msg_data);
WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN
gpr_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
--dbms_output.put_line(' msg count 2 is : ' || gpr_msg_count);
for k in 1 .. gpr_msg_count loop
gpr_msg_data := oe_msg_pub.get( p_msg_index => k,
p_encoded => 'F');
-- Get message count and data
dbms_output.put_line('err msg ' || k ||' is: ' || gpr_msg_data)
null;
end loop;
WHEN OTHERS THEN
gpr_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
-- Get message count and data
--dbms_output.put_line('err msg 3 is : ' || gpr_msg_data);
end;
commit;
--- exit;
Reference Documents
Note 362667.1Name: Chris Mentch
Region: US/Americas
Contact E-mail: chris.mentch at mentchconsulting.com
Website: http://www.mentchconsulting.com
Time working with BC: 1.5+ years
Programming Languages: PHP, JSP, Javascript, Ruby/RoR, Jquery, .Net (if I have to), SOAP API
Custom BC Client Applications: Integrating custom external applications with Business Catalyst through eCommerce and CRM APIs.
Name: cindy radford
Region: Americas Canada
Contact E-mail: [email protected]
Website: http://.com
Logo: Link to your logo image (no larger than BC standard partner image, I will place this at the top of your listing)
Time working with BC: new
Programming Languages: Cobol and mainframe, starting web development
Third Party API Experience: Cobol
Custom BC Client Applications: None as of yet
Name: eBridgeConnections
Region: Americas, APAC, Europe, Africa
Contact E-mail: [email protected]
Website: http://www.ebridgeconnections.com
Logo: http://www.ebridgeconnections.com/images/ebhome/logo.png
Time working with BC: 1.5 years
Programming Languages: n/a - Back-office integration with 40+ accounting/ERP systems
Third Party API Experience: 20+ eCommerce platforms, CRM (SalesForce)
Custom BC Client Applications: B.C. API integration
Name: OneSaas (www.OneSaas.com) - Cloud Integrations Made Easy
Contact E-mail: [email protected]
Website: http://www.onesaas.com
Time working with BC: 2 yeras
Third Party API Experience: We integrate over 35 cloud platforms with BC. We know every API from almost every system. -
I already have sampled data of a input signal in time domain. the signals are sampled via ADC and stored in excel file(around 16K samples). I need to feed it to FFT VI to obtain the FFT plot. I tried multiple FFT VIs but no one accept samples data directly which is stored in 1D array. Any ideas? Thanks.
Solved!
Go to Solution.In the link below I have posted a FFT example. It is quite old made in Labview 6I but it does all you need. Please take a look at it.
http://forums.ni.com/ni/board/message?board.id=170&thread.id=163587&view=by_date_ascending&page=2
Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far) -
Hello All,
In the Issuer Tracker packaged application, I can remove sample data running
issue_tracker_remove_sample_data_0.9.
I would like to know how I can remove sample data in other application that did no have the remove sample data sql file.
Example:
When I run the following statement:
delete from OEHR_EMPLOYEESI got the following message:
ORA-02292: integrity constraint (workspace.OEHR_DEPT_MGR_FK) violated - child record foundThanks in advance,
Sam
Edited by: samNY on Mar 1, 2009 10:53 PMHello,
you can use CASCADE keyword, or you have to delete records from OEHR_DEPT table.
Regards, Kostya Proskudin -
I want some sample data on some fields
hi,
i want data how usually below these fields takes.....
SALES ORGANIZATION----
VKORG
DISTRIBUTION CHANAL----
VTWEG
DIVISION----
SPART
SALES OFFICE----
VKBUR
FOR EXAMPLE : KUNNR is used for customer no
sample data is -
1000(custmer no)....like give some sample data
if u have any theory about these words plz explain...what are these
thanks & regards,
kalyanYou can check the sample data as well as the documentation through the following
Goto transaction SPRO -> IMG
Expand
Enterprise Structure-> Definition-> Sales and Distribution-> (Define, Copy, delete, check sales organization) - FOR SALES ORG
(Define copy, delete, check distribution channel) - FOR DISTRIBUTION CHANNEL
(Maintain Sales Office) - FOR SALES OFFICE
Click the documentation button to get the documentation
Enterprise Structure-> Definition-> Logistic General -> (Define, Copy, Delete, check division) - FOR DIVISION
Click the documentation button to get the documentation
Sap has defined sample Org. structure which can be used to create your own org structure -
How to delete the data in a table using function
hi all,
i need to delete the data in a table using four parameters in a function,
the parameters are passed through shell script.
How to write the function
Thanks>
But the only thing is that such function cannot be used in SQL.
>
Perhaps you weren't including the use of autonomous transactions?
CREATE OR REPLACE FUNCTION remove_emp (employee_id NUMBER) RETURN NUMBER AS
PRAGMA AUTONOMOUS_TRANSACTION;
tot_emps NUMBER;
BEGIN
SELECT COUNT(*) INTO TOT_EMPS FROM EMP3;
DELETE FROM emp3
WHERE empno = employee_id;
COMMIT;
tot_emps := tot_emps - 1;
RETURN TOT_EMPS;
END;
SQL> SELECT REMOVE_EMP(7499) FROM DUAL;
REMOVE_EMP(7499)
12
SQL> SELECT REMOVE_EMP(7521) FROM DUAL;
REMOVE_EMP(7521)
11
SQL> SELECT REMOVE_EMP(7566) FROM DUAL;
REMOVE_EMP(7566)
10
SQL> -
Error while deleting master data (Message no. RSDMD118)
Dear all,
I am performing a test to create and delete new Company Codes in Consolidation Workbench.
Creation of new Company Codes went on successfully but deleting them give me the following error message upon saving:
Error while deleting master data
Message no. RSDMD118
Since they are new Company Codes, they have not been used and stored in any BW cubes. Any idea on why BCS prevents me from deleting them?
Appreciate assistance to troubleshoot and resolve this error.
Thank you.Thank you both for your replies.
I am sure those are not the case here as I deleted the Company immediately after creating it.
Just to make sure, I performed "Where-Used List" again and BCS confirmed that it is not being used anywhere:
Use of: Company UAT1 UAT Company 1
Number of Uses Found: 0
However, the same error message was displayed again after I tried to delete the Company and save the configuration. Still can't find any solid reason behind this. -
Error while deleting the Data Source
Hi gurus,
I am getting an error while deleting a Data Source - "Source system XXXXX not found RSAR205".
but that source system no more available.
Is there any way to delete the Data Source.
Thanks in advance.
CK.Hi,
That source system deleted.
Using RSDS also same error.
Thanks,
CK
Edited by: CK on Oct 3, 2008 11:37 AM -
After I reset my Ipod (deleted all data and settings) windows 7 doesn't recognize by ipod touch, and it doesn't appear in the itunes library or in the device menu, but it does charge. How can I get my computer to recognize it again?
Refer to this article:
iOS: Device not recognized in iTunes for Windows
http://support.apple.com/kb/TS1538 -
My iPad (version 1, IOS 5.1) has quit connecting with the store. I am unable to update or buy any app. I did a reboot and a reset with deleting the data. I can not find anything in support for this problem. Any help will be appreciated.
My iPad (version 1, IOS 5.1) has quit connecting with the store. I am unable to update or buy any app. I did a reboot and a reset with deleting the data. I can not find anything in support for this problem. Any help will be appreciated.
Maybe you are looking for
-
U300s wireless problems (multiple)
I have had my U300s just over a year now and am suddenly encountering wireless problems. Like others on this board with different IdeaPads (esp. U310), I experience a dramatic drop in speed when I move from the first floor (where the router is) to t
-
Putting video clips in template drop zone
I can't drag my video into the control video drop zone. the computer won't let me drag the video clip anywhere...what could be limiting my ability to do this?
-
Does anybody know where I can find the code of rank function in Oracle 8.1.6 Enterprise Edition Thanks
-
We have an application that requires more than 4 servo motors. We are trying to configure two 7344's in MAX. We've tried it in a PC (2 PCI-7344) and PXI (two PXI-7344). However, they cannot be configured independently in MAX. A change on one board is
-
DVD Map Buttons Order and DVD Player Titles Order Don't Match
I created a DVD with 9 movies, movie1.mov- movie9.mov, etc. consecutively, using the "Chapters" type screen of a template as the menu. The DVD Map shows the movie buttons arranged in numeric order. On the menu, they are left to right, top to bottom i