Procedure for the validation of the records in the table tha and change of status
I want to write the procedure.I have two tables
1. sample intermediate table that has records with itemno and storeid and some associates of columns. A column is added to provide the STATUS. Initially, which is NULL.
2 table validation that only has itemno and storeid.
Now my logic is that
If both itemno and storeid in the staging table sample with table of validation (itemno and storeid) then update the status of ' 0 'othewise ' 1'.
Is it possible to use two tables in conditional statements in the ODI procedures?
Please help me in this.
Edited by: Chhatar on Sep 13, 2012 12:11
See if it helps
updated staging set status = (case when (itemno, storeid) in)
(select s.itemno, s s.storeid staged, validation v
where v.itemno = s.itemno and v.storeid = s.storeid) then 0
If 1 end)
Tags: Business Intelligence
Similar Questions
-
Iterator for the table and form is a problem during the cleaning of the records
Hello
I use JDev 12.1.2.
I have an object of the detail view. I represent a part of its fields in a table and the rest in a form. I use the same iterator. Basically, I dragged and dropped the object even from the view of the data control and created a table and form layout with the fields I wanted in each provision. I put in place a clear feature for the rows in the table with a clear"" key. -on click I delete the line of the iterator in the managed bean. When I do this the selected record is deleted and the next record is displayed. But fields entered in the form layout also gets deleted. (the form should also be showing the record currently selected - it shows but entrable fields in the form are deleted because of claire that I did on the previous line.) If anyone can help get this resolved?
Not use the same iterator for the tables and forms here? The links are in the row (row.bindings...) for the table, but for the form it is (links...). The Delete on the current row operation is causing the iterator delete all fields of links instead of from the line? Please shed some light.
Thank you
UMA
How do you rank on the iterator compensation?
use resetActionListener in your clear button and let us know what is happening?
Ashish
-
Procedure for the number of working days per month when the user enters to and from everyday
Hi all
Can provide you a solution to this - procedure for the number of working days per month when the user enters and days.
Suppose that the user enters November 18, 2014 start date and date as November 23, 2014.
The output should display
Count: 4
November 18, 2014 Mar
Sea 19 November 2014
November 20, 2014 game
Fri November 21, 2014
It will exclude Saturday and Sunday.
Hello
Here is an example of removing dates Saturday and Sunday:
with days as( select (trunc(sysdate, 'YEAR') + level) as col from dual connect by level < 365 ) select * from days where trim(to_char(col, 'DAY', 'NLS_DATE_LANGUAGE=ENGLISH')) not in ('SATURDAY', 'SUNDAY') and col between to_date('18.11.2014', 'DD.MM.YYYY') and to_date('30.11.2014', 'DD.MM.YYYY') order by col;
Cheerz,
Stako
-
What is the procedure for the use of two monitors?
What is the procedure for the use of two monitors?
-
run a procedure for the period
Hi all
my need is to perform the procedure with an input parameter (date), for example
(1) this procedure accepts only 1 date, but I need to period, for exampleexec ZOO.PKG_Z60over.prepare(date '2012-01-27')
(2) my dates are stored in the table calendar1, I would choose table instead of typing datesexec ZOO.PKG_Z60over.prepare(date '2012-01-27'); exec ZOO.PKG_Z60over.prepare(date '2012-01-28'); exec ZOO.PKG_Z60over.prepare(date '2012-01-29');
(3) how can I run without 'exec '?
Thanks in advance.Marco wrote:
Hi allmy need is to perform the procedure with an input parameter (date), for example
exec ZOO.PKG_Z60over.prepare(date '2012-01-27')
(1) this procedure accepts only 1 date, but I need to period, for example
exec ZOO.PKG_Z60over.prepare(date '2012-01-27'); exec ZOO.PKG_Z60over.prepare(date '2012-01-28'); exec ZOO.PKG_Z60over.prepare(date '2012-01-29');
(2) my dates are stored in the table calendar1, I would choose table instead of typing dates
(3) how can I run without 'exec '?
Thanks in advance.
You can write a PL/SQL block like this where you query the table calendar and loop through it and call the procedure for each line.
begin for i in (select
from calender1) loop ZOO.PKG_Z60over.prepare(i. ); end loop; end; / -
Call data of Variable in a stored procedure for the name of the Partition
Hello
Here is an excerpt of a Proc Srored I wrote.
The objective here is to copy data from a partition of a table.
I have first query the name of the partition of the table ALL_TAB_PARTITIONS and even store in a VARCHAR2 variable named partition_name_low.
I then try to select the data in that partition of the table using the name of the variable.
PROCEDURE purge AS
partition_name_low VARCHAR2 (25);
BEGIN
--+
-Request for the highest value of the timestamp in the 1st partition in the current table.
--+
SELECT NOM_PARTITION
IN partition_name_low
OF ALL_TAB_PARTITIONS
WHERE TABLE_NAME = 'TABLE1' AND PARTITION_POSITION IN
+(+
SELECT MIN (PARTITION_POSITION)
OF ALL_TAB_PARTITIONS
WHERE TABLE_NAME = 'TABLE1 '.
+);+
COMMIT;
COMMIT;
DBMS_OUTPUT. Put_line (partition_name_low: ' * ' |) TO_char (sysdate, ' ' the HH24: MI: SS DD/MM/YYYY) | ("From scrub data *');
--+
-Copy data from a partition 1 to Table Archive
--+
INSERT / * ADD * / IN TABLE1_ARCHIVE +.
SELECT * FROM TABLE1 PARTITION (partition_name_low).
However, I am facing a problem here because now I get an error that "ORA-02149: specified Partition does not exist.
As I understand it, is that the Oracle query contains the literal string "partition_name_low", instead of the data in it.
I tried with
& partition_name_low
AND
: partition_name_low
with no luck.
In the 2nd case, I get the obvious exception 'bad bind' variable
Please can anyone suggest how I can handle this situation where I can use a variable see the partition name in a select query?
Thanks in advance!
Abhishek.Hello, try:
EXECUTE IMMEDIATE 'INSERT /*+ APPEND */ INTO TABLE1_ARCHIVE SELECT * FROM TABLE1 PARTITION(' || partition_name_low ||')';
-
Hello
I am trying to install OSB in a different domain. I already have a suite of soa running.
This is the directory structure
Middleware/user_projects/domains
(a) soa_domain
(b) osb_domain
Who, from the administration server for the BSO, I get error below.
Error: -.
< server failed. Reason: Last forest resource [JTAExceptions:119002] failed during initialization. The server cannot start unless all configured logging last resource (LLRs) initialize. Fault reason:
javax.transaction.SystemException: weblogic.transaction.loggingresource.LoggingResourceException: java.sql.SQLException: check table JDBC LLR, failed for the table "WL_LLR_ADMINSERVER", line ' JDBC LLR field / / server ' record had an unexpected value ' soa_domain / / AdminServer' expected ' osb_domain / / AdminServer'* ONLY the domain and the server that creates a table original LLR can access *.
I see the solution in https://blogs.oracle.com/epc/entry/technical_table_verify_failed_for but I have no doubt here.
When I run
Select RECORDSTR in the WL_LLR_ADMINSERVER where
XIDSTR = "field of LLR JDBC / / server ';"
I get the result like-> soa_domain / / AdminServer
If I change it to osb_domain / / this AdminServer, will affect my soa_domain server... ? Please advice
Published by: user10720442 on December 11, 2012 11:54Hello
There are two possible solutions to this problem:
Solution 1:
To solve this problem reconfigures the basic information database of Point differently for each domain, if you have more than one domain. That, to change the port of the database and the name below two files in the field
In the setDomainEnv.cmd (or .sh) file inside directory change DOMAIN_HOME/bin Point base port number and the name of the comic.
Set POINTBASE_PORT = 9094
Set POINTBASE_DBNAME = weblogic_eval2JDBC:PointBase:server://localhost:9094 / weblogic_eval2
In the file wlsbjmsrpDataSource - jdbc.xml inside change DOMAIN_HOME/config/jdbc directory under entries with port of pointbase database updated and the name (this will be in two places in the file).
Solution 2:
If the domain name has been changed and do not want to change the database properties, then an update to the WL_LLR_ADMINSERVER table is possible:
that is to say:
Update SCHEMA_SAMPLE. Set RECORDSTR = WL_LLR_ADMINSERVER ' base_domain / / AdminServer' where XIDSTR = "JDBC LLR field / / server ';"Kind regards
Kal -
I have a Gr_order table that was settled long ago, and now he needs to be filled
with some more search data.
"Orderid" is a primary key for the table, but the question is how can I insert "orderid" in the insert statement in the procedure. I couldn't find any name sequence. There are 1230
documents that must be inserted.
Desc Gr_order Orderid Number Primary key Desc Varchar2
Thank youINSERT INTO gr_order (orderid,desc) VALUES (???, upper(each_pom.desc);
SandyYou can find the code that inserts into the table and see if it uses the sequence ;-). A sequence is not 'attached' to a particular table - this is the insert statement to determine whether a sequence should be used.
You can check if the table has a trigger - some developers like to emulate the behavior of MS - sql server by having a trigger on the table that selects in a sequence. If it has such a release, then you just do your insertions without specifying order_id. But if the table does not have such a release, then you cannot know if the table was originally filled using a sequence or not (unless you can find the instructions for inserting somewhere).
-
A SCN for the entire database and the different SNA for the data files?
DB Version: 11 g
I always thought that there is a unique SCN for the database as a whole.
A quote from the link below as
When a control point is completed, Oracle stores the RCS individually in the control for each data file file
http://www.dbapool.com/articles/1029200701.html
What does that mean? There is a SNA for the entire database, and there are individual SCN for each data files?Well, unfortunately, the article says more bad than good things. Or if I can't call them wrong, they are rather confusing and rather than clear things for the reader, its making them appear to look more confused.
First things, YVERT is used for read consistency (CR) mechanism and the backbone of the notion of Multiversioning. The control point is the mechanism to help that recovery is decided. Contrary to what said article, not any kind of checkpoints update both the data file and the control file, and also, there is not a type of them as well. In addition, the article says that the LAST_CHECKPOOINT is set to NULL, while its actually set to the infinity since it is not possible to detect the moment when the database is opened, that the last issue of control over the file would be. In the case of complete control point, this number is saved and is also associated with the toa Controlfile own database leader at the next startup. If this is not the case, there is an inconsistency in the stop_checkpoint of the data file and the stop_checkpoint reocrded in the control file, leading to a recovery of the instance.
There are several types of control points. Similarly, there are several types of SNA as well. Without going into the details of these, IMO, the article simply means that when the control point write over a file passes, oracle updates the file checkpoint on it and this is recorded in the Controlifle. as well.
HTH
Aman... -
Call stored procedures in the object module and application of entity
Hello
I've implemented a helper methods that contains the EntiyImpl base class to call stored procedures.
Now, I need to call procedures stored from the module of the application.
Apart from the creation of a module base class asks and the programme of assistance of duplication of code in the method is possible
to share methods of assistance for calling stored procedures between the entity impl and application module impl?
Concerning
PaulSupport code depends on characteristics of an object instance given entity beyond its database transaction?
If so, I'm not sure I see how it could be used with a class of application module.
Otherwise, here's what you do:
Step 1:
Set up the database transaction - you can even choose to. So instead of
{myHelperMethod (Object someParam) protected
DBTransaction trans = getDBTransaction();
...
}This is for change
protected myHelperMethod (DBTransaction trans, someParam Object) {}
...
}Step 2: make the method public and static - once you set DBTransaction, you should be able to do.
public static myHelperMethod (DBTransaction trans, someParam Object) {}
...
}Step 3: Remove your EntityImpl base class method in a utility class:
Public MustInherit class PlSqlUtils {}
private PlSqlUtils() {}public static myHelperMethod (DBTransaction trans, someParam Object) {}
...
}
}When you call the method of application module, object entity or class of same view object, call
PlSqlUtils.myHelperMethod (getDBTransaction (), paramValue);
Unlike Transaction.executeCommand (), allows you to provide features like the setting procedure of parameter values, recovery of the values of the parameters, etc.
Hope this helps,
Avrom -
variable binding can be used for the table in an explicit cursor
I have an application that accesses a table on several different servers. I created a ref for the slider cursor variable and a varchar2 variable to define my query. variable I_server is a parameter to my procedure. Is it possible to rewrite the v_query using bind variable for the table/Server? I have included below v_query.
v_query: = "SELECT rp.usr_id, rp.sun_sft_cat, rp.sun_start, rp.sun_hrs," |
"rp.mon_sft_cat, rp.mon_start, rp.mon_hrs, |
"rp.tue_sft_cat, rp.tue_start, rp.tue_hrs, |
"rp.wed_sft_cat, rp.wed_start, rp.wed_hrs, |
"rp.thu_sft_cat, rp.thu_start, rp.thu_hrs, |
"rp.fri_sft_cat, rp.fri_start, rp.fri_hrs, |
"rp.sat_sft_cat, rp.sat_start, rp.sat_hrs, |
"rp.sun_sft, rp.mon_sft, rp.tue_sft, rp.wed_sft, |
"rp.thu_sft, rp.fri_sft, rp.sat_sft, nvl (ei.wip_permanent_sched_seq, 0) ' |
'FROM ' | I_server | "rp, wip_emp_information ei, |
'wes, wip_emp_status_type West wip_emp_status' |
"WHERE rp.usr_id = ei.employee_id' |"
"AND wes.employee_id = ei.employee_id' |"
"AND wes.status_type = west.status_type' |"
"AND west.description =" STOREKEEPER "' |"
"AND wes.effective_date = (SELECT MAX (wes2.effective_date)' |)"
"OF wip_emp_status EMTE.2 |
"WHERE wes2.status_type = wes.status_type' |"
"AND wes2.employee_id = wes.employee_id' |"
(' AND wes2.effective_date < = trunc (SYSDATE))' |
"AND wes.status = rp.wk AND"Y"= 1'; -wk = 1 is the schedule for next week
Rp_sched_cursor OPEN FOR v_query;If your intention is to do this:
v_query := 'SELECT rp.usr_id, rp.sun_sft_cat, rp.sun_start, rp.sun_hrs,' || ' rp.mon_sft_cat, rp.mon_start, rp.mon_hrs,' || ' rp.tue_sft_cat, rp.tue_start, rp.tue_hrs,' || ' rp.wed_sft_cat, rp.wed_start, rp.wed_hrs,' || ' rp.thu_sft_cat, rp.thu_start, rp.thu_hrs,' || ' rp.fri_sft_cat, rp.fri_start, rp.fri_hrs,' || ' rp.sat_sft_cat, rp.sat_start, rp.sat_hrs,' || ' rp.sun_sft, rp.mon_sft, rp.tue_sft, rp.wed_sft,' || ' rp.thu_sft, rp.fri_sft, rp.sat_sft, nvl(ei.wip_permanent_sched_seq, 0)' || ' FROM ' || :b0 || ' rp, wip_emp_information ei,' || --- Note the bindvariable... ' wip_emp_status wes, wip_emp_status_type west ' || ' WHERE rp.usr_id = ei.employee_id' || ' AND wes.employee_id = ei.employee_id' || ' AND wes.status_type = west.status_type' || ' AND west.description = ''WAREHOUSE EMPLOYEE''' || ' AND wes.effective_date = (SELECT MAX(wes2.effective_date)' || ' FROM wip_emp_status wes2' || ' WHERE wes2.status_type = wes.status_type' || ' AND wes2.employee_id = wes.employee_id' || ' AND wes2.effective_date <= trunc(SYSDATE))' || ' AND wes.status = ''Y'' AND rp.wk = 1'; -- wk = 1 is next week's schedule OPEN rp_sched_cursor FOR v_query USING i_server;
So the answer is: no, you can do that.
But then, my question would be: why would you do that?
I guess that you have many "different servers. A cursor on the server will not hurt you. -
comes to connect in iCloud for the first time and to synchronize my calendars etc I noticed it all disappeared. How can I restore them?
They run iCloud.com? You have them on a computer?
-
When I installed Windows Developer Preview two days ago, I hastily added an email that was not common. They said I could change later. I went to windows live Essentials/Director and enacted a replacement acct win/live/hotmail and changed the address of electronic mail by default, but my computer continues to insist that I have connect and wants me to use the original yet? Please, I can't change the email address of systems... I tried to go to the user acct and change the credentials, but it does not solve >?
Now, whenever I try to
it is said I forgot to sign in. and fills in the wrong address and wants to give me the password but I sure can't find a code to go with this ACCT... wants the past for this account? sign in? IDK... Please help = | Thank you both... I had to reinstall the drive, also I have re-installed the vista I have to files, Shell said, it must use to install on a system. It works now. I was in contact with the forum Dev =.) see you soon
-
Y at - it an easy way to have a version number that the code VI has access to, and which is used as the version number for the executable file and the installer builds? Now whenever I update my software I need to change the global variable where I store the version number, and then when I build I have in hand, open the properties and change the version number for the executable file and the installer. Is there an easy way to make these as all corresponding automatically?
Have you tried a search? This question comes up a LOT. Here are the results of a search: http://forums.ni.com/t5/forums/searchpage/tab/message?location=Node%3A170&q=application+version#mess...
-
I want to collect rain for the day, month and year; Can what formula I use?
I want to collect rain for the day, month and year; What formula or expression that I can use.
I use a Rain Wise product that converts impulses to an analog value. The rain wise device can be
"the value measure up to 1", 5", or 10". I will be setting the unit at 10 inches in increments of 0.01 inch.
What I would do is at each time increments of signal I would consider it as 0.01 then after reaching
a period of time a day or a month, back to zero.
Need some advice on this problem.
How about you, using a counter to count the number of times where the signal is less than 0.01?
For example,.
Counter.Count = signal<=>=>
The total number of rain is
Counter * 10 + signal
Use TimeOfDay or TimeOfWeek to reset the counter.
Maybe you are looking for
-
What happens if a download of El Capitan does not work?
I tried to download El Capitan. After looking in my download folder and do not see anything, I found a 125KO file in my Applications folder. I double-clicked it and it "hidden", but nothing else happened. After a few hours of research, peering, of re
-
iMac 5 k end of 2014 for the first time enable FileVault stuck Reboot
Hi all I just got the FileVault on my iMac 5 k end of 2014 with fusion drive for the first time. It is said that a restart is required. He could not restart and stuck on the black screen. No apple logo, nothing. Here are the steps I've tried 1 resta
-
On OSx 10.11.4 but incoming messages can no longer send
Hello I tried this search for a few weeks now, but I am at my whits end. I used to use Messages religiously on my Mac Mini at the office (worked flawlessly). Mini Mac running OS X 10.11.4 El Capitan and the iPhone (iOS 9.3.1). 6Plus My iMessage is re
-
Pavilion 17-f079nf: driver download problem
Hello, since yesterday I try to download the drivers 17-f079nf Pavilion but it gets stuck at the loading screen just: "HP is compile your results.» It could take up to 3 minutes, depending on the speed of your computer and connection. Thank you for y
-
BSOD - Server 2008 R2 - ntoskrnl.exe
I had a problem recently with a BSOD that passes several times during the day. I newspapers DMP and used BlueScreenView to obtain some basic information (I know that it is also useful that it doesn't help) which seems to show that ntoskrnl.exe is at