Problem with the timestamp in compound triggers columns
Hello
Information on the database:
select * from v$version; BANNER -------------------------------------------------------------------------------- Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production PL/SQL Release 11.2.0.2.0 - Production CORE 11.2.0.2.0 Production TNS for Linux: Version 11.2.0.2.0 - Production NLSRTL Version 11.2.0.2.0 - Production
Question:
I created a trigger on the table t1 (with a timestamp column) to insert its data changes in table t2 (with another column of timestamp).
For some reason any if t1 table has a column whose data type is timestamp, the trigger returns null for: NEW. Value of col1.
create table t1( col1 timestamp(6) ); / create table t2( col1 timestamp(6) ); / create or replace trigger trg_on_t1 for insert on t1 compound trigger after each row is begin insert into t2(col1) values(:NEW.col1); end after each row; end trg_on_t1; / insert into t1(col1) values(systimestamp); / select * from t2; / COL1 ------------------------------- (null) select * from t1; / COL1 ------------------------------- 27-MAY-14 10.57.29.123779000 PM
As you see on the two latest select statements, given in table t2 appears with the value null, even if the current timestamp value is present in the t1 table.
I have a feeling that this is a bug and want to see if there is no work around.
Thanks for your help.
Hello
Ravikumar.SV wrote:
Hello
... I have a feeling that this is a bug and want to see if there is no work around.
I agree.
I got the same results (or lack thereof) like you. Then I added a call to dbms_output.put_line, just to make sure that the trigger is pulled, and then he started to do the INSERTION in t2.
create or replace trigger trg_on_t1 to insert on t1
trigger composed
After that each row is
Start
dbms_output.put_line (: NEW.col1 | =: NEW.col1 in trg_on_t1');
insert into t2 (col1) values(:NEW.col1);
After each line.
end trg_on_t1;
/
A workaround is to use a simple trigger.
Tags: Database
Similar Questions
-
Problem with the function 'length' for table column in a table (fn)
Hello
I have a piece of javascript code that sets all the values of a column in a table:
function exemptAll (flag)
{
Alert (document.wwv_flow. F42. Length);
for (var i = 0; i < document.wwv_flow.f42.length; i ++)
{
var curr_id = document.wwv_flow.f42user.user;
If (flag == 'Y')
{
document.getElementById ("curr_id") .value = "Y";
}
on the other
{
document.getElementById (curr_id) .value = 'n';
}
}
}
It works very well to provide in the form of tables, there are multiple lines, if only one line is the "document.wwv_flow.f42.length" function returns false values - we had '2' and '3' returned to a form of the tab that contains a single row and subsequently code fails with an error "invalid argument".
Is this a recognized bug because we cannot find similar reports of what is happening on the forums. Any help would be appreciated as we have to fake a work around using an element of the page containing the number of lines in the tabular presentation.Hello
I think that "bug" is caused by the dynamic nature of Javascript.
If there is more than one field called f42, any reference to it will return an array of fields. However, if there is only one instance of it, any reference to it will return the field itself! In the latter case, probably the length function returns the number of characters in the field.
Therefore, you must check whether what you have is an array or not. Unfortunately, there is no such function only as "isArray" in JS! If you are looking on the net for "isArray" you will find a number of alternatives well...
I hope this helps.
Luis -
Problem with the length of locking in the strategy of password in the OAM
Hello
We are facing a problem with the configuration of length of locking in password policies in Identity Manager interface for our OAM configuration.
Oracle 10 g version 10.1.4 Access Manager
The user/policy store: ADAM Ldap [Microsoft ADAM 2003]
After that block us a user in our LDAP after 5 attempts wrong, the values of both attributes in ADAM set updated to 5:
oblogintrycount
badPwdCount
Also, I see that "oblockouttime" is updated with a unix timestamp.
Now, we put the "lock duration" in the strategy of password as an hour. Thus, after 1 hour, the user must be unlocked in ADAM.
However, after 1 hour when the user tries to connect, it gets the error an incorrect password has been entered for the user ID.
When we check in ADAM, we find the value of "oblogintrycount" has indeed been reset. However, the value of "badPwdCount" will not reset and is always stuck at 5.
If we set the two values of these attributes to 0, the user can connect again.
Now, OAM should return two values of these attributes to 0, or is it only resets the oblix attributes?
If it is the latter, is there a way to work around for this problem? Or we are doing something wrong here?
Please let us know your comments.
Thank you!
Abhishek.OAM works only with the ob attributes * and not with the announcement badPwdCount attribute (ADAM). I think that for some reason, the strategies account and password of the ad is to be triggerred. Disable the password AD strategy and it will be Ok.
I hope this helps. Let us know.
-
Satellite C660D - a problem with the cooling system has been detected
My laptop is a * Toshiba Satellite C660D-11th * and I have a message that keeps coming up every once in a while 'alert system' head and reads as follows: "WARNING: a problem with the cooling system has been detected." (Next line) Please, turn off computer immediately and return it for service. »
I had this warning for the coming weeks and it tolerated, but it worsened and annoyed me for the last time. I can hear the fan and the computer is not over heating (the CPUCool freeware tool detects a 51º CPU temprature C). No further questions arise as the computer slows down, it is right in the path of what I do, like typing right now.
I tried to solve the problem by changing the "Power Options" in the control panel of Windows 7 'High Performance', and then selected under the 'battery' both 'Sector' columns, 'Never' for the parameter "put the computer to sleep. It seems to work, and no error message has occurred since then. However, this is not a solution...
Please help quickly, this prevents me from working and even other things now.
Thank you
Hello
Usually, this message would appear if something is not wrong with the cooling system. But I read here in the forum that maybe it's a bug of software and after new system recovery this message should no longer appear.
But if you notice some upper temperature or abnormal noises, then I recommend to check this with a service technician
-
Problem with the change in value of listbox event
Hello
I have a problem with the help of Listbox value change event. The code that I have attached is a simplified version of the largest program, but the problem is the same. One of the loops of Nonna is responsible for handlig occurring events ant the other is responsible for the execution of the program. In the project of oryginal I use a listbox control to determine which plots graphic display of a waveform is visible (first position of the listbox-> only plot first visible etc.). In the attached vi, I just show the current value of the listbox control. The problem is the event runs only once and then the program crashes. I want to be able to change the value of the listbox work both at idle and in State of a program, but when I put the structure of the event in both States, he does not. I'd be very grateful if someone smarter than me could tell me where I made my mistake. I want my program to be able to manage the keys and listbox events in States (slow down and knit) program.
You have two structures of event in two cases different from the structure of the case, and both are tuned to listbox events has changed. Because only once can be triggered at any time, the VI crashes (lock events the front panel (default) until the event can complement).
You must use a unique event structure managing all events.
The overall program architecture looks like inside-out for me.
For the buttosn, you must use action lock (switch not release!) and use the value changed events.
-
problem with the installation of window package
Impossible to install, i-tunes, quick time and I downloaded Security software. Error message indicates a problem with the windows package install. On Vista, this is a fairly new problem
Thanks in advance
JackHi Jack8053,
Thank you for visiting Microsoft Answers.
· The error message you get when you try to install a software, what exactly?
· Remember to make changes on the computer before this problem?
It seems to be that some of the files windows install is corrupt. I have a few steps that might help you to solve the problem:
Method 1
Make sure that the Windows Installer service is running.
1 open run and type services.msc, and then press ENTER.2. in the services window, locate the Windows Installer service in the services list.
3. check that the status is "started". If the condition column is empty,
Right-click Windows Installer, and then select start.
4. change the Startup Type to automatic (default is Manual), then
Restart the computer.Method 2
Run a scan of the file system [SFC] checker on the computer that will replace missing or corrupt files.
To do this, follow the steps below:
1. click on the Start button.
2. on the Start Menu, click all programs followed by accessories.
3. in the menu accessories, right-click on command line option.
4. in the drop-down menu that appears, click the "Run as Administrator" option.
5. If you have the User Account Control (UAC) enabled, you will be asked permission before the opening of the command line. You simply press the button continue if you are the administrator or insert password etc.
6. in the command prompt window, type: sfc/scannow then press ENTER.
7. a message is displayed indicating that "the system scan will start.
8. be patient because the analysis may take some time.
9. If all the files need replace SFC will replace them. You may be asked to insert your Vista DVD for this process to continue.
10. If all goes although you should, after the analysis, see the following message "Windows resource protection not found any breach of integrity.
11. once the scan is finished, close the command prompt window, restart the computer and check.
For more information, see the link below:
How to repair the operating system and how to restore the configuration of the operating system to an earlier point in time in Windows Vista
http://support.Microsoft.com/kb/936212
Method 3
1. If it does not help, try to uninstall Windows install using the Windows Installer Cleanup utility:Description of the Windows Installer Cleanup utility
http://support.Microsoft.com/kb/290301
2 restart the computer.
3. download and install the latest version of Windows Installer by downloading from the link given below:
Windows install 4.5 Redistributable
4. try to install the program and check that it works.
Hope the helps of information. Please post back and we do know.
Concerning
Joel S
Microsoft Answers Support Engineer. -
Problems with the Windows 7 updates
I have problems with the updates of Windows 7.
The show just download but stay at 0%, even after a number of hours of updates.
Looks like I have had the problem for a while as I click on the button to download when he says that they are available, but they were not the installation. Since April - the highest numbered download was KBS3149090.
I tried a couple things from these forums, but they do not work or do not install it.
I downloaded wu10.diagcab but it does not return an error of 0 x 80070002
You are looking for takes this mistake me https://support.microsoft.com/en-us/kb/910336 that says stop the update, remove a certain number of files and turn it back to the.
He says then try the System Update Readiness tool so I download and install this KB947821 , which seems to settle.
I try to install the updates but nothings happening - don't know what else to try.
Peter
Windows Update process: July 2016
I've seen this many lately. This is what works for me and I did it on a large number of computers in the last 2 weeks.
Change Windows Update settings to NEVER.
Type services in the text box that appears when you click on the globe to start
Select and open the services window
Find and right-click on Windows Update (service), choose stop
Close the Windows Update window. If she will not close, start the Task Manager (right click on the taskbar) and end of the task.
Now go to: http://wu.krelay.de/en/2016-07.htm
Download 5 all updates are listed in a folder on your desktop. Choose the correct column for your computer.
Double-click on and start each one, one at a time. Don't be surprised if one or more respond with already installed. It may take a while to process. This is probably one or more of them will install.
You should not restart after each one ends, if there is more than one installed.
Restart and wait for the Windows Update process to complete and automatically reboot your computer.
Open Manager tasks again and wait until you see the percentage within the reach of the bottom and stay below 10%
Now start Windows Update
The Windows Update process happens much faster that it would otherwise have.
-
I notice that I need to solve problems for my computer. The message said: there is a problem with the Microsoft Teredo Tunneling adapter driver. The driver must be installed. One of the options is to reinstall the driver. I tried, but it did not. What is this adapter, and how should I do if the error message goes away?
There is a problem with the Microsoft Teredo Tunneling adapter driver. The driver must be reinstalled.The device informationName: Microsoft Teredo Tunneling adapter ID: ROOT\ * TEREDO\0000 Error code: 10 Reinstall the device driver CompletedThere is a problem with the Microsoft Teredo Tunneling adapter driver. Reinstall the driver may resolve this issue.Problem with the PnP devices DetectedThere are problems with some devices PnP. Windows will take additional steps to continue troubleshooting these devices.It is a known problem if you have Zone alarm installed. If you have installed remove it at least to checkTo disable Teredo tunneling 6to4 interface open an elevated command prompt and type
netsh interface set terredo disabled state.To re - install- Click on start.
- Type Device Manager in the start search box, and then open it.
- Click the Action tab on top and click Add legacy hardware
then click next and next again, he will then scan and find nothing then click on the screen after that.
Wait a minute and you will see a list of devices appear, scroll and select network adapters and click Next, then in the left column choose Microsoft then in the right hand column scroll down and choose Microsoft Teredo Tunneling adapter, and then click Next and it will install it.
To check simply do as it is set to show hidden devices right click on the Device Manager right click view, then show hidden devices.
-
Hello
I had problems with the export feature in Photoshop 2015 CC. I think that the problems started some time around the most recent update, but it is possible it all started when I used the photo frame Script (filter > render > photo frame). I'm not sure. But as you'll see below, it is almost that the software attempts to create a setting when I try to export an image.
In any case, when I try to use the export function, the image that appears in the dialog box is stretched and distorted.
I can resize the box and the image will then appear normal, but then when I click on "Export all", the screen looks like this:
The box save never actually appears. It's just a white box with a black column. It's almost as if the screen is not complete the drawing.
And it seems that this problem starts even before I got to export in the form box. The beginning of Photoshop screen looks like this:
The file names (which I have gray here) are not complete. They end up just with a white line that reaches out to the right of the screen.
This has happened for at least a few weeks now. Stop smoking out and restarting does not help. I tried to reset my preferences and that did not help. I tried to delete the preferences file and it still happens.
BTW, the Save for Web feature works very well.
I work on a Mac with the following attributes:
My Mac software is up to date, as well as Photoshop.
Can someone help me understand what is happening and how to fix it?
Thank you-
Mary
If you see a picture frame in the preview, but not in the exported file, I think that you have driver video card problems.
If you go into Photoshop preferences > Performance and uncheck 'Use Graphics Processor', the problem goes away?
-
Problem with the simple query.
Hi all
I am facing problem with the query below
Select A.COL1, A.COL2
B.COL1, B.COL2
FROM TABLE1 A
TABLE 1 B
WHERE A.header = '123'
AND B.header = '123'
AND nvl (A.COL6, 'ABC') = 'ABC '.
AND NVL (B.COL6, 'DEF') = 'DEF '.
Basically, my requiremenyt is: I have only one table, TABLE1 here, which has a line two lines (for the same header) as "ABC" and another is "DEF". Table 1 has two columns (col1, col2) that should be displayed for both lines.
When the header has two records in table1 top query works. and but if I do not have a record for any header example there are a record for "abc" in col6 only. so my query above does not work because there is no record for 'DEF' in col6. But I want to again request to fecth the output (for b.col1 and b.col2 should have null values)
could you pls suggest me how to get the 4 columns.
Thanks in advance
Kind regards
UVA.
Try to place the status of outer join on column: analytical_criterion_code as
and nvl (AUDIT.analytical_criterion_code, 'AUDIT2') = 'verification2. '
.
.
and nvl (TRANS.analytical_criterion_code, 'TRANS2') = 'TRANS2.
In the sub query based on the opinions that you have given in post # 1, although there is no value "DEF * ' for col6 due to the condition of outer join on b.col6 (+) line is extracted with b.col [1,2,3] as NULL values. Try to remove the (+) sign b.col6 and test.
with t as)
Select 111 col1, col2 'aaa', 'ABC' col6 123 header of all the double union
Select 222 'bbb', 'DEF' col6, 123 double header
)
q as (select 123 double header)
Select A.COL1, A.COL2, A.COL6
B.COL1, B.COL2, b.COL6
q.header
T a
t b
q
where a.col6 (+) = 'ABC '.
and b.col6 (+) = "DEF."
and q.header = a.header (+)
and q.header = b.header (+)
-
problem with the help of the conditional formatting on a cell that is defined as the percentage
Hi all
I am facing a problem with the help of the conditional formatting on a cell that is defined as the percentage.
I am using beaches for example:
is equal to or greater than 10% - green color
5%-10%-yellow
less than or equal to 5%-color red
the problem is that keeps the value 10% get yellow color when it should get green.
i thought that is a rounding issue but when I change the definitions of the cell to learn more decimal places I see this part of the percentage 9.65% and some of them are 10.00% and they are both colored in yellow.
I also tried to change the way range of 6 to 9%, but values between 9.65% or 5.5% are not colored.
I really enjoy your help!
You know the reason and the solution.
change the format of the column and go or add a column more with decimal and opt for conditional and hide report.
Thank you
-
Problems with the Panel tabs with CS5, CC2014, CC2015?
I created a script with TabbedPanel in ESTK CC, works very well in afx CC 2014, but it seems that there are some problems with the other versions (CS5 and CC2015).
Can someone help how to generalize the limits and the tabs?
Here is my Code briefly for the tabs.
//
//
//
function buildUI (thisObj) {}
var myPanel = (thisObj instanceof Panel)? thisObj: new window ('pallet', 'Gear of Stress', undefined, {resizable: true});
myPanel.timeSavers = myPanel.add ('tabbedpanel', [0,0,400,300], "Reducing Stress V1'");
myPanel.timeSavers.cProject_tab = myPanel.timeSavers.add ("tab", undefined, 'Project');
myPanel.timeSavers.MyTools_tab = myPanel.timeSavers.add ('tab', undefined, 'MyTools');
myPanel.timeSavers.Explorer = myPanel.timeSavers.add ("tab", undefined, 'Explore');
myPanel.timeSavers.Others_tab = myPanel.timeSavers.add ("tab", undefined, "Install");
Return myPanel;
}
var myToolsPanel = buildUI (this);
//
//
//
Below the results to remain CS5, CC2014, CC2015. How to promote the universalization of the buttons, tabs, alignments etc as in CC2014 in other versions. Someone please help?
Don't you think that the resource string could solve this problem?
You can certainly try a resource string. I used only once I understood how they worked, I find it much easier to build a UI in this way.
myPanel.layout.layout (true); Tried it, but all child elements arranged in a line or column that's it, do not respect the limits specified.
To a resource string, make sure that every single container element specified margins or spacing info. If they do not have this set the automatic layout manager will just default to each calibration of control internal specifications, which vary with each version of AE.
How can I universalize the user interface for all versions of EI? While I'll change once and for all.
There is no miracle solution for all versions of AE to play nice with your construction. You to beta-test your code in each version of the EA you want your script to run on and then unique questions individually. Your script should contain a checker version AE, so you can know what patches, you need to implement when the user runs the script. It is not ideal and is one of the many oddities of software development based on the API of someone else.
-
problem with the CURSOR and WITH clause
Hi guys,.
I have never created a package before. I try to run it, but I get:
ORA-06550: line 8, column 16:
PLS-00382: expression is of the wrong type
ORA-06550: line 8, column 3:
PL/SQL: Statement ignored
I know that my problem is in the next section
OPEN FOR V_io_cursor
with GOT_R_NUM like)
Is the above correct?
When I copy paste the "heart" of the query, it works very well. I really have a problem with the CURSOR and the declaration.
Here's the code in its entirety. I know that the code is much more then he returned, but ignore this overload that was to do some tests to make sure that I can achieve any query request.
CREATE OR REPLACE
PKG_SPF_NATIONALREPORTS PACKAGE BODY IS
PROCEDURE GET_NATIONAL_TOTAL_RESULTS (P_SelectFields IN varchar2, P_SUMFields IN varchar2, io_cursor IN OUT C_RESULTS)
IS
v_io_cursor C_RESULTS;
BEGIN
OPEN FOR V_io_cursor
with GOT_R_NUM like)
SELECT
-START P_SelectFields
r.cli_served,
r.EIER,
-END P_SelectFields
r.RC,
r.Year_ID,
r.period_id,
r.agreement_type_ind,
CONTRACT_NUMBER. CONTRACT_NUMBER_TEXT,
YEARS.year_desc,
RC_CODE.rc_code_id,
RC_CODE.rc_code,
AHRDA HOLDERS. AHRDA_ID,
AHRDA HOLDERS. REGION_ID,
AHRDA HOLDERS. PROVINCE_ID,
AGREEMENT_TYPE. AGREEMENT_TYPE_ID,
AGREEMENT_TYPE. AGREEMENT_TYPE_DESC_EN,
ROW_NUMBER() over (partition R.YEAR_ID, R.CONTRACT_Number_Text
order by
P.PERIOD_desc
(/ / DESC NULLS LAST) AS r_num
RESULT r
JOIN period p ON r.period_id = p.period_id
JOIN CONTRACT_NUMBER ON r.contract_number_text = CONTRACT_NUMBER. CONTRACT_NUMBER_TEXT
JOIN RC_CODE ON contract_number.rc_code_id = rc_code.rc_code_id
JOIN AHRDA holders ON ahrda.ahrda_id = rc_code.ahrda_id
JOIN AGREEMENT_TYPE WE AHRDAS. AGREEMENT_TYPE_ID = AGREEMENT_TYPE. AGREEMENT_TYPE_id
JOIN the YEARS WE r.year_id = YEARS.year_id
)
SELECT year_desc
-START P_SUMFields
SUM (cli_served) AS sum_cli_served
The SUM (eier) AS sum_eier
-END P_SUMFields
OF got_r_num
GROUP BY year_desc
ORDER BY year_desc
;
io_cursor: = v_io_cursor;
END GET_NATIONAL_TOTAL_RESULTS;Agree - all this talk of loops FOR is completely irrelvant.
A refcursor is usually the exact mechanism to return a result set.What is C_RESULTS?
Just use SYS_REFCURSOR.
No need for local variable.
OUT why? Not just walk OUT?
PROCEDURE GET_NATIONAL_TOTAL_RESULTS (P_SelectFields IN varchar2, P_SUMFields IN varchar2, io_cursor OUT SYS_REFCURSOR) IS BEGIN OPEN io_cursor FOR ... END;
-
Problems with the dash invite you - 11.1.1.6 on Win 2008 64 bit
Hi, I'm just curious to know if anyone who is using the / tests 11.1.1.6 on a 64-bit environment Windows 2008 is problems with the dashboard of the guests.
I see the questions where the guests of dashboard are appearing with a NULL option - i.e. If a dimension has values A, B and C, I see the prompt appears as:
NULL VALUE
A
B
C
There are NO NULL values in the data, and I see that the related query returns only 3 rows. It feels like something is broken with 11.1.1.6, but just curious to know if other people see it.
BTW, this happens with all types of guests - check boxes, radio buttons, pick lists, etc. But strangely, it does not occur with the data of 'sound' - don't know if it's because it's from XML instead of the database?
THX,
ScottJust because I'm also curious.
In the physical column from the physical layer, the NULL checkbox is checked?
See you soon
Nico -
Problem with the font size, appears as expected.
I've been struggling with this for a few weeks now, but surely must is close to solved it. It's just a problem with the size of the police to just that one page.
http://www.kgngroup.NET/logos_and_packaging.html
I want the body of the text to be 10px, but after two weeks, played with all conceivable means, change the font size of the body in CSS and the document itself. I have the consultation in Safari, but others on Windows machines tell me it is out of whack.
My main problem is that I can change the size of the font in the extreme, but he always appears as the same size in the browser (about 12px.) I don't know can be changed because I can change the wording and change online. It's just a problem with the font size. Oh, and in the third column, the one on the right in Dreamweaver, the font looks like it of tiny, can't even read, but in the browser, as the style11 is applied, all three columns search size equal.
Don't know where to go from here. I want to just that the police of the up to 10 pixels.
TIA,
Ken
I guess this is a follow-up of your thread earlier
http://forums.Adobe.com/message/3627681
What would really help in the diagnosis of the subjects such as this is to install the Firebug add-on for Firefox (as suggested in the previous thread).
Firebug shows you visually what CSS rules apply to any element you click on the screen.
In this case, you have a confusion of the CSS cascading over each other font sizes and who is confused by the mix of units without real reason. .style11 is unnecessarily applied to many people
Tags. Remove these classes and to remove the rule.
for example
The tiny font in the RHS column is the first affected by
{.style8}
font size: 0.5em;
}affecting the
then by .style11 {size are: 75 %}}
affecting the
tag.
Result = tiny text (about 2px).
In these cases of mass confusion, my approach is to remove all the sizing of fonts in the CSS and start over.
Avoid %. Use px.
Apply font sizing rules logically from the
label facing downwards.That gives you a solid basis without strange effects.
Maybe you are looking for
-
changed to 8.0 and now my keyboard shortcuts cut paste don't work
Yesterday, I downloaded the new version of Firefox (8,0) and now my copy / paste keyboard shortcuts do not work, i.e. Ctrl C and Ctrl V. I searched the help section and found that someone had this problem with an earlier version. They mentioned that
-
How can I delete a partition on a Mac Mini (end of 2012)
Hello I would like to know how I could erase a partition I did by mistake. My Mac is very low in memory and, of course, I as soon as I open some applications Mac starts to bug... I just did an installation fee and it's still going slowly... When I tr
-
Driver Windows 8.1 Installation Questions
Hi all I use T420s and Windows 8.1 I had installed the Dependence of the Lenovo settings package As I see it supports 8.1 But I see a call name Package dependencies of Lenovo for Windows Need to install this too? This made on my T420s what? Why I'm n
-
Windows 7 upgrade & have no original oem disk (1) if the upgrade to windows 7 (retail disc) is placed on a machine with functioning earlier OEM version of windows XP (2) windows OEM version is not available (3) windows 7 crashes (4) what is 7 reinsta
-
How can I get them back because I do not have the XP installation CD?