Please clear my doubt
Hi people...a piece of article from tom site
http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:29259877603106
<quote>
a before trigger can modify the :new values.
you can have many before triggers -- each modifying the :new values.
ONLY the after for each row can look at a "stable" value in the :new record. So, if you
doing data validation (eg: this column must be between 1 and 30 when this condition is
true), you should do that in an AFTER trigger because the *BEFORE triggers may change the*
*value* on you (and since BEFORE triggers fire in SOME RANDOM order -- you cannot be
assured that your BEFORE trigger fires before or after some other BEFORE trigger)
So, use *BEFORE FOR EACH row when you need to WRITE to the :new record*
use AFTER FOR EACH row triggers when you want to VALIDATE the final values
in the :new record
That entire referenced thread was the proof that you cannot be sure the trigger is fired
only once for each row! So, confused by your request there.
<quote>
"* BEFORE triggers can change the *.
"* value * on you"
Not clear on the "BOLD" one of
When to use before and after
Thanks for your time
>
"* BEFORE triggers can change the."
"* value * on you"Not clear on the "BOLD" one of
The most common before each row trigger used in oracle is to put a PK:
create or replace trigger "set_pk" on table before each row
v_id number;
begin
if :new.pk is null then
select some_sequence.nextval into v_id from dual;
:new.pk := v_id
end if;
end;
imagine another trigger, ensuring that the pk is in another table (without taking into account the fact that a simple constraint could do)
create or replace trigger "check_pk_ref" on table before each row
begin
for (select 1 from dual where :new.pk not in (select other_key from table2 )) loop
raise_application_error(-20000,'some error');
end loop;
end;
Because the order of execution is acidental, no one can say why the other threw the error: was the: new.pk not found in table2 or was he always NULL?
* [edit] * this article is missing (IMHO) is that, for data integrity checking, you should not use fire at all, use constraints...
Good bye
DPT
Published by: T.PD on 10.02.2012 10:30
Tags: Database
Similar Questions
-
Please someone clear my doubt.
I just bought Canon 1300 d. While set on auto focus, my lil brother tried forcefully fucus by turning the ring of development by around 200deg. It will damage anything? I'm new to this so here ask! Good answer. Thank you!
Hello! Thanks for the reply! I will consider your suggestions! It is the objective of the camera kit. Is there a way I can check if the lens is well? When on auto, he focuses well well
-
I've been troubleshooting 'error 49' updating issue when during the process, I am disconnected and could not reconnect, any help would be greatly appreciated. This is a business account.
see you soon
Hi notoriousruz,
It's that I have tracked down and made changes to your account of the work.
So please test it for me to allow us to check if it works.
Thank you.
-
BlackBerry Z10 need help to clear my doubts (problem)
of Hubli, karnataka, India
I had given my z10 to the service center on 13.09.2014
due to problems in the operating system.
the service center representative said he would send my phone in banglore,
now 18 days themselves are passed as well, he said, it would take more than 20-25 days
1. then they will give me an additional guarantee to keep my phone for more than a month
2 is there a customer service no (Indian) where I can file a complaint
I don't know of a customer service in India you can file a complaint.
Indian service centers are private under contract and not exploited by BlackBerry. It was a requirement of your Indian Government when BlackBerry began to do business in India.
It is a community of users support forum. We are not employees of BlackBerry, but volunteers who enjoy helping other users. BlackBerry staff rarely comment on queries posted here.
-
Essbase and EIS Installation - Please Help
Hello
I have a request which includes Essbase and environmental impact of the Version 6 x and 7 x. This request must be improved version 11 x.
Can someone explain the process, the upgrade from older versions to the current version of x 11. I went through so many messages, but I didn't know all the messages with two combinations, such as Essbase and environmental impact assessment.
Can you please clear my doubts here
(1) Upgradation Essbase:
I saw so many messages on this but not clear on that. Some messages saying that we can migrate directly from Version x 6 to x 11 install with all intermediate versions and some positions suggests to install the intermediate versions.
I would go to the last. Installation of intermediate versions, then Version 11 x. In this process, I need to install on the target server, first 7 X version, and then install version above 7 X 9 X and then install X 11 on top of 9 x Version, then perform the migration of application/cube. Please correct my my understandings here.
(2) as my app binded with EIS also, do I have to follow the method described above. Kindly guide me on this.
(3) what I do use displacement in this case configuration configure two software?
With these many doubts in my mind, I could not able to proceed further to improving the software. Please, give your valuable suggestions and help with that. It'll be really great if any document part exists for the installation process?
Future prospects for the advice...
Thank you very much
UB.Hello
I know that she has been taken several times and it's usually the same answer, short summary
Install and configure 11, then in the EE use the [migration Assistant | http://download.oracle.com/docs/cd/E12825_01/epm.111/eashelp/dbwzmigr.htm] to migrate the cubes and the objects, you will need to make the data separately, but it's just a case of export and import using EAS or Maxl.
SIE I would think it would be a case of export/import models and the metaoutlines.
See you soon
John
http://John-Goodwin.blogspot.com/ -
Satellite L755-M1E6 - cannot find this model on the UAE UNITED - Middle East site
Dear friends,
I bought a new model of Satellite (L755-M1E6) in Abu Dhabi.
But I could not see this particular model number in the United Arab Emirates UNITED - Middle East site.
Normally, we could see that the model number is in the format - "L755 - 000.
i.e. after L755 - only three digits.Here in my laptop it shows 4 digits, L755-M1E6.
support Web site shows as "PSK2YE-0E602UAR" model number against the serial number.Can you please clear my doubt that it is an original toshiba laptop? What is a model?
Or, please help me to know the correct model number.Please help me
Hmm, what is your serial number?
You said that PSK2YE-0E602UA model number.
The PSK2YE series definitely belongs to the EMEA region.
I could find the drivers for Satellite L755 PSK2YE series on the European driver Toshiba page. -
HP Pavilion laptop 14: hard drive replacement policy?
When I replace my old hdd (hard drive) again one on the support site... engineer on site will take my old hdd? is it necessary or any policy back from the old hdd can only get nine... or I have to keep my old hdd with myself...
Please clear my doubt. Here is all of us who have gone through this process and able to clear my doubt as soon as possible. ??
Yes, they will make you return the old drive to get a new, so HP can get any credit machine hard drive (as applicable). Otherwise how do they know that the old is really bad? This is true of every computer manufacturer.
-
Grab and the attribute configuration example VI
Hi all
I'm trying to get the attributes of a GigE camera. I use VI example in IMAQ "setup.vi grab and attributes. I have problem of understanding, can someone please clear my doubts below?
(1) in the diagram-block before and after the block "update attributr tree" property with David Panel updated node is used. Until the 'update attribute tree' block wa together true and after the block, he has been set to FALSE. What is the need to use it twice, especially after the attribute tree update"block".» What is the need of it affecting FALSE?
(2) what is the logic behind using block 'cancel the acquisition configuration' immediately after 'configure acquisition? Before grab frames, if we cancel acquisition block, how executives are acquired?
Concerning
Neo
NEO6 wrote:
If affecting true allows to get the updates to defer attributes in a short time, then this makes sense again it affecting false?
If you don't set it to false, you frontpanel does not refresh.
I found no application folder data, under the path you mentioned. I'm using LabVIEW 2011 SP1. My idea is to save your setup file with the settings changed each time when I hit the run button and reuse the file attributes if my results are satisfactory set of parameters withose
The location of the file is OS dependent. Under Win7 it's C:\user\All Users\Public Documents\National Instruments\NI-IMAQdx\Data
You can use IMAQdx Write Attributes.vi to register your attributes in a configuration file
Concerning
Neo
-
Can I use ' I read a Scan VI "daq and driver DAQmx Labview 7.1 with a new card?
I need to use old software in which the data is to use ' I read a Scan VI.
I think that with labview 7.1.
now, I work with Labview 8.5 and the new daq card that I want to use comes with NOR-DAQmx.
is there a compatibility problem between these two.
Please clear my doubts.
Thanks in advance
Renn
It is used with 8.5 cards and as long as you install the driver traditional. It should be on your LabVIEW CD or download it from here. New cards require DAQmx and you need to rewrite your code.
-
what you get when the sequence is used as output, tension or strain?
Mr President
I m using scxi1520 with watchkeeping configuration, by setting the entry like strain, what value I get is not strain that I calculated analytically. someone told me that what value you get by that is tension not strain, I calculate strain from here by the formula.
I don't get that this is strain or tension.
I have an extensometer of 120 ohms with two gage factor. Please clear my doubt I have with this as soon as possible.
Think about the data being represented in different ways. Your contribution is the strain. The strain gauge that converts resistance. The bridge becomes the resistance a tension. An amplifier multiplies by a constant tension and perhaps subtracts an offset. The analog digital converter changes the analog voltage to a sequence of tension with two possible values (0 to 5 V) at every moment in the (digital) sequence. The computer processes these digital tensions as numbers that have a strong correlation with the amplitude of the analog voltage.
But you try to measure the deformation, so you don't really care voltage analog or digital, except that need to know the relationship between them and the original strain.
Your tension measures data acquisition system. You must provide conversion from units of the strain through calibration.
Lynn
-
With regard to TextInput.
Hi all
can someone please clear my doubt.
Why the input text statement giving a screen empty for playbook, which is the bug with who and how should it be defined, if it works very well.
I checked for playbook of text it displays a screen of blak with textInput, and if I use textField his work well, but the Promt feature will not work with textfield...
Can someone help me please...
I thank in advance
Can you show us an example of code you are using? The TextInput should work fine as a lot of people have used in their applications so far.
Make sure that you have configured using the TextInput correctly.
Make sure that you import the TextInput QNX
Import qnx.ui.text.TextInput;Then, when you want to use
public var myInputBox:TextInput = new TextInput();
myInputBox.prompt = "Type of stuff here."
myInputBox.width = 300;
myInputBox.height = 40;
myInputBox.x = 100;
myInputBox.y = 50;
myInputBox.addEventListener (KeyboardEvent.KEY_UP, myInputHandler);
addChild (myInputBox);then, if necessary, manage the keyboard entry
private void myInputHandler(event:KeyboardEvent):KeyboardEvent {}
//...
} -
ASA easy vpn server and ios client both need public ip
Hello
If someone can define that cisco asa 5525-x and cisco 2800 router ios can be customer both parties have public ip or only side server.
Please clear my doubt
Hello
Then you can do with ezvpn himself. Take the below mentioned thing for example and configure accordingly for your scenario.
http://www.Cisco.com/c/en/us/products/collateral/iOS-NX-OS-software/iOS-...
Concerning
Knockaert
-
Hi experts,
It is a simple question, but I have no Internet information. This is the reason why I had to ask this question here.
Oracle publishes steps of installation only documentation for Linux, Hp - ux, ibm - ax, solaris and windows. Apply to all versions of Linux such as RHEL, OEL, SUSE, Centos or Red hat Linux?
It also means the same installation steps to be followed for all platforms Linux regardless of sellers?
Please clear my doubt.
Kind regards
Ravi
Delighted Kishan wrote:
Hi experts,
It is a simple question, but I have no Internet information. This is the reason why I had to ask this question here.
Oracle publishes steps of installation only documentation for Linux, Hp - ux, ibm - ax, solaris & windows. Apply to all versions of Linux such as RHEL, OEL, SUSE, Centos or Red hat Linux?
It also means the same installation steps to be followed for all platforms Linux regardless of sellers?
Please clear my doubt.
Kind regards
Ravi
If there is nothing on a Linux installation that would allow to distinguish between providers, it should be noted in the appropriate location. There is no specific RHEL vs OEL vs SUSE (etc.) docs. Than a simple Setup Guide of database for Linux. That in itself should tell you something.
Oracle does not have to certify their products to work on all the Linux distributions. But for these distributions for which it is certified, a single, generic, installation guide is provided because it is all that is necessary.
-
HelloI have a doubt about this analytical function to lead,
I have this table,
create table test3 (no number, name varchar2 (30));
Insert into TEST3 (NO, NAME) values (1, 'fen');
Insert into TEST3 (NO, NAME) Values (3, 'DEN');
Insert into TEST3 (NO, NAME) values (2, 'Sun');
Insert into TEST3 (NO, NAME) values (2, 'sen');
Insert into TEST3 (NO, NAME) values (1, 'end');
COMMIT;I put like that with this request.
Select lead don't (don't) over (partition by any order of name), name of test3.NO NAME
1 fen
end
2 Sun
Sen
DENBut I need as below output, I am unable to get the third 'NO' that has a value, I get null for that, even if I partitioned
by the 'NO '.NO NAME
1 fen
end
2 Sun
Sen
3 DENPlease clear my doubt.
Thanks in advance.
Like this
Select decode (NWR, 1, no, null) no
name
de)
Select row_number() over (partition by any order by name) rno
None
name
of test3
)
-
How to change the application apps and the sysadmin password
Hi expert,
I know not how to change the password application and sysadmin in the oracle application. but I have a doubt.
What is required at the bottom of the application when you go to change applications and the sysadmin password in the oracle application.
Please suggest me what is the proper way to change the apps and the sysadmin password.
to change the password for apps I followed the command below.
FNDCPASS apps/apps 0 System/Manager SYSTEM APPLSYS < new password for applications >
for sysadmin
FNDCPASS apps/apps 0 USER sysadmin < new passwd for sysadmin > System/Manager
Please clear my doubt.
Thanks and greetings
pritesh Rodriguez
I know not how to change the password application and sysadmin in the oracle application. but I have a doubt.
What is required at the bottom of the application when you go to change applications and the sysadmin password in the oracle application.
You must stop the services before you can change the password of user apps, and then run the automatic configuration after changing the password and eventually train services to the top.
Stop down services or the AutoConfig running is not required for SYSADMIN (and other users of the application).
Please suggest me what is the proper way to change the apps and the sysadmin password.
to change the password for apps I followed the command below.
FNDCPASS apps/apps 0 SYSTEM APPLSYS System/Manager
for sysadmin
FNDCPASS apps/apps 0 system/sysadmin USER Manager
Please clear my doubt.
What change Applications using the apps schema password change Utility (FNDCPASS or AFPASSWD) (Doc ID 437260.1)
Loss of password SYSADMIN. How to know the password of the user SYSADMIN (Doc ID 1066661.1)
Thank you
Hussein
Maybe you are looking for
-
DAQmx using with windows 8 metro app
Hello I wanted to create a simple application of metro style in windows 8, which reads the temperature nor usb tc01 Thermocouple.However im getting these errors: When adding: using NationalInstruments.DAQmx; as a reference in my project, I get this
-
How to cancel only print in black & white
I turned on the 'print in black and white' only awhile back and now don't remember how to "undo" that. I have a Dell Photo 966 printer
-
Restart the computer when changing the channel of live TV
I am running Windows Media Center 2002 Service pack 3 on my computer. The computer is connected directly to the cable (without box) line. The computer is a HP 873n. I ran the TV setup in windows Media Center, but when I try to change the channel, t
-
I put the e-mail shortcut key to open Gmail, but it turns into Hotmail whenever I start my computer. I go to options and it is on Gmail. I click on it but do not change it and it works fine until I restart. Everything else works fine. That is what i
-
Question about game bb8900 video blackBerry Smartphones
I used bb8900 to watch a video, great quality! but when I leave the media programme and return to open the video, it is always start from the beginning. Is it possible to leave the video where he was, so I can continue where I end the last time.