Parsing each time during execution
Hi All,
I am just wondering why my sqls are parsed each time upon execution.
DB version :
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 - ProductionI could see from TKPROF report that for each execution, i have one parse. This is for all sqls/dmls under this tkprof.
I have cursor_sharing set to EXACT and session_cached_cursors=50 (may be this is too low).
shared_pool_size=512 MB
cursor_space_for_time=FALSE
I have java application.
Is there any way i can have 1 time parse across multiple execution ?
SQL ID: cc5qh5gvfysby Plan Hash: 1237311609
SELECT BALANCE_CONTROL_VERSION,MATCH_SET_CLOSED_DATE,MATCH_KEY_ID,
MATCH_SET_TYPE_ID,OPEN_BALANCE_UNIT,OPEN_BALANCE_VALUE,
MATCH_SET_OPENED_DATE,RECORD_VERSION_NUMBER,MATCH_SET_STATE,
TOTAL_BALANCE_UNIT,TOTAL_BALANCE_VALUE
FROM
MATCH_SETS WHERE MATCH_SET_ID=:1
call count cpu elapsed disk query current rows
Parse 1555 0.08 0.06 0 0 0 0
Execute 1555 0.11 0.10 0 0 0 0
Fetch 1555 0.07 0.07 0 4710 0 1555
total 4665 0.28 0.24 0 4710 0 1555
Misses in library cache during parse: 1
Misses in library cache during execute: 1
Optimizer mode: ALL_ROWS
Parsing user id: 81
Number of plan statistics captured: 3
SQL ID: gdy8k5wksn2zd Plan Hash: 0
INSERT INTO MATCH_SETS ( MATCH_SET_ID,BALANCE_CONTROL_VERSION,
MATCH_SET_CLOSED_DATE,MATCH_KEY_ID,MATCH_SET_TYPE_ID,OPEN_BALANCE_UNIT,
OPEN_BALANCE_VALUE,MATCH_SET_OPENED_DATE,MATCH_SET_STATE,TOTAL_BALANCE_UNIT,
TOTAL_BALANCE_VALUE )
VALUES
(:1,:2,:3,:4,:5,:6,:7,:8,:9,:10,:11)
call count cpu elapsed disk query current rows
Parse 523 0.01 0.02 0 0 0 0
Execute 523 0.38 0.50 58 920 6764 523
Fetch 0 0.00 0.00 0 0 0 0
total 1046 0.40 0.52 58 920 6764 523
Misses in library cache during parse: 1
Misses in library cache during execute: 1
Optimizer mode: ALL_ROWS
Parsing user id: 81
Number of plan statistics captured: 3
Hi,
I don't see parsing problem in your post.
The select statement has 1555 parses out of which 1 missed in library cache.
The insert statement has 523 parses with 1 library cache miss.
What you really want to check is the "soft parse" and "hard parse" statistics for your session.
An idea to check that is to enable AUTOTRACE in SQL*Plus and execute the select statement over there and check the statistics.
Good luck.
Similar Messages
-
I'm trying to install the new version, but each time during the installation, "Error writing to file: C:/Program Files (x86)/Common Files/Apple/Mobile Device/Support/AppleMobileDeviceHelper.resources/Info.plist." Keeps popping up. What am I doing wrong?
That one's consistent with disk/file damage. The first thing I'd try with that is running a disk check (chkdsk) over your C drive.
Windows 7 instructions in the following document: How to use CHKDSK (Check Disk)
Select both Automatically fix file system errors and Scan for and attempt recovery of bad sectors, or use chkdsk /r (depending on which way you decide to go about doing this). You'll almost certainly have to schedule the chkdsk to run on startup. The scan should take quite a while ... if it quits after a few minutes or seconds, something's interfering with the scan.
Does the chkdsk find/repair any damage? If so, can you get an install to go through properly afterwards? -
How to generate random numbers of the same at each time of execution of thm
dear friends
i am facing a problem that the random numbers generated at time of each exectuion of the program are not the same, i want to generate the same random numbers every time time i run the program. i need your help. i am giving the code in c++ if anybody can help in providing the solution so that i get the same random numbers at every run of the program. waiting for your help
wit regards
jaya shankar
#include<iostream.h>
#include<stdio.h>
#include<stdlib.h>
#include<time.h>
#include<math.h>
class density
int s[150][150],parent[150][150],i,j,l,n,loop;
public:
void bd(void);
void css(void);
void density :: bd(void)
cout<<"ENTER THE POPULATION SIZE = ";
cin>>n;
cout<<"\nENTER THE NO.OF LOOPS = ";
cin>>loop;
for(i=0;i<n;i++)
for(j=0;j<80;j++)
s[j]=rand()%2;
cout<<"s:"<<s[j];
void density :: css(void)
int a,b;
float c;
for(i=0;i<n;i=i+2)
b=rand()%100;
cout<<"random b="<<b;
main()
density d;
d.bd();
d.css();Do not randomize the random number interface when you start your application. When the random number interface is not randomized when starting you get the same sequence of numbers each and every time you use it.
-
Query on batch jobs with overlapping time during execution time
Dear experts,
This post is related to a task in SAP SCM EM module and currently I am working on an archival activity that comprises of two tasks to be done through 2 different programs (scheduled through batch jobs)
Job 1 is created to deactivate particular Event Handler records (changing a status field on the EH record)
Job 2 (archival job) runs daily and writes deactivated EHs to a local file and subsequently deletes this from SAP server.
Archival job takes an average of 30 hrs to complete .
Therefore my query is on how to schedule Job1, as these seem to be dependent and might impact each other in unexpected manner.
Please advise.
Thanks & regards,
MohanHi Mohan,
You can try as Daniel suggested. Delay Archieving job or can run after deactivating Event Handler records job is finished. Check any parallel processing is available or not.
It can stop your overlapping issue and can increase your performance.
Thanks,
Bala. -
Taking lot of time during execution
hi... friends..
i write a driver programe for a smartforms.. but it takes lot of time when its execute..... am sending the part of my code which taking the time (dat i *** to know at d time of debuging.)
SELECT * FROM KONV INTO CORRESPONDING FIELDS OF TABLE IT_KONV FOR ALL ENTRIES IN IT_VBRK
WHERE KNUMV = IT_VBRK-KNUMV
AND KSCHL IN ('JECS','JEXP','JA1X','ZPR0','ZPKG','ZMQD',
'ZTRD','ZDSD','ZMOU','ZPDT','ZIN1','R100',
'JEXQ','JEAP','JEAQ','JESP','JESQ','JCEP',
'JCEQ','ZNRK','ZB00','ZKF0','JCST','JCSR',
'JLST','JIVP','JIVC','JLSR','DIFF','ZEX1','ZPR1').
LOOP AT IT_KONV.
IF IT_KONV-KSTAT NE 'X'.
CASE IT_KONV-KSCHL.
WHEN 'JECS'.
TOT_JECS = TOT_JECS + IT_KONV-KWERT.
WHEN 'JEXP'.
TOT_JEXP = TOT_JEXP + IT_KONV-KWERT.
WHEN 'JA1X'.
TOT_JA1X = TOT_JA1X + IT_KONV-KWERT.
WHEN 'ZPR0'.
TOT_ZPR0 = TOT_ZPR0 + IT_KONV-KWERT.
WHEN 'ZPKG'.
TOT_ZPKG = TOT_ZPKG + IT_KONV-KWERT.
WHEN 'ZMQD'.
TOT_ZMQD = TOT_ZMQD + IT_KONV-KWERT.
WHEN 'ZTRD'.
TOT_ZTRD = TOT_ZTRD + IT_KONV-KWERT.
WHEN 'ZDSD'.
TOT_ZDSD = TOT_ZDSD + IT_KONV-KWERT.
WHEN 'ZMOU'.
TOT_ZMOU = TOT_ZMOU + IT_KONV-KWERT.
WHEN 'ZPDT'.
TOT_ZPDT = TOT_ZPDT + IT_KONV-KWERT.
WHEN 'ZIN1'.
TOT_ZIN1 = TOT_ZIN1 + IT_KONV-KWERT.
WHEN 'R100'.
TOT_R100 = TOT_R100 + IT_KONV-KWERT.
WHEN 'JEXQ'.
TOT_JEXQ = TOT_JEXQ + IT_KONV-KWERT.
WHEN 'JEAP'.
TOT_JEAP = TOT_JEAP + IT_KONV-KWERT.
WHEN 'JEAQ'.
TOT_JEAQ = TOT_JEAQ + IT_KONV-KWERT.
WHEN 'JESP'.
TOT_JESP = TOT_JESP + IT_KONV-KWERT.
WHEN 'JESQ'.
TOT_JESQ = TOT_JESQ + IT_KONV-KWERT.
WHEN 'JCEP'.
TOT_JCEP = TOT_JCEP + IT_KONV-KWERT.
WHEN 'JCEQ'.
TOT_JCEQ = TOT_JCEQ + IT_KONV-KWERT.
WHEN 'ZNRK'.
TOT_ZNRK = TOT_ZNRK + IT_KONV-KWERT.
WHEN 'ZB00'.
TOT_ZB00 = TOT_ZB00 + IT_KONV-KWERT.
WHEN 'ZKF0'.
TOT_ZKF0 = TOT_ZKF0 + IT_KONV-KWERT.
WHEN 'JCST'.
TOT_JCST = TOT_JCST + IT_KONV-KWERT.
WHEN 'JCSR'.
TOT_JCSR = TOT_JCSR + IT_KONV-KWERT.
WHEN 'JLST'.
TOT_JLST = TOT_JLST + IT_KONV-KWERT.
WHEN 'JIVP'.
TOT_JIVP = TOT_JIVP + IT_KONV-KWERT.
WHEN 'JIVC'.
TOT_JIVC = TOT_JIVC + IT_KONV-KWERT.
WHEN 'JLSR'.
TOT_JLSR = TOT_JLSR + IT_KONV-KWERT.
WHEN 'DIFF'.
TOT_DIFF = TOT_DIFF + IT_KONV-KWERT.
WHEN 'ZEX1'.
TOT_ZEX1 = TOT_ZEX1 + IT_KONV-KWERT.
WHEN 'ZPR1'.
TOT_ZPR1 = TOT_ZPR1 + IT_KONV-KWERT.
WHEN OTHERS.
ENDCASE.
ENDIF.
CASE IT_KONV-KSCHL.
WHEN 'JEXP'.
TOT_JEXP_DISP = TOT_JEXP_DISP + IT_KONV-KWERT.
WHEN 'JECS'.
TOT_JECS_DISP = TOT_JECS_DISP + IT_KONV-KWERT.
WHEN 'JA1X'.
TOT_JA1X_DISP = TOT_JA1X_DISP + IT_KONV-KWERT.
ENDCASE.
IF IT_KONV-KSCHL = 'JEXP'.
DUTY_RATE1 = IT_KONV-KBETR .
ENDIF.
ENDLOOP.
Moderator Message: Post your questions in the relevant forum. Do not use sms-speak.
Edited by: kishan P on Sep 18, 2010 4:08 PMModerator message - Please see Please Read before Posting in the Performance and Tuning Forum before posting - post locked
Rob -
Purchased a new Apple TV and the remote double clicks each time I press the button. It worked fine during set up and for the first two days. I have since moved it and this problem started. Restarted,reset,unplugged,changed remotes, no change. Latest software update. This is really annoying. iPhone remote app works just fine. Any suggestions?
That's one of the weird things.. it recognizes it maybe 10% of the time. And usually, only after I do the two-button reset. Problem is.. since it won't charge above 2%, anytime I try to do a restore or anything like that using iTunes, my device shuts off and I lose whatever progress I'd made.
So, an update... after reading through a bunch of similar complaints (there are literally 1000's of them so there's NO WAY this isn't somehow ios7 related, thanks a lot APPLE ) I decided to try a restore in recovery mode. After 3 hours and several disconnections... I ended up having to just set it up as a new iPad, as the restore did nothing. Weirdly though... as I was doing the restore in recovery mode.. I noticed I'd gotten up to a 10% charge.. higher than it's been since September, so after setting it up as a new device, I turned it off and plugged it in using the wall charger. 2 hours later and I was up to 38%. Still not great, as my iPad, before ios7 could've fully charged twice in the amount of time it took for me to now get 28% more of a charge. And that's with a fully cleaned out device.. so that really ***** and I'm now more confused than ever.
But I'm gonna leave it overnight charging and see what I come up with tomorrow. Sadly, when I paid $600 for it in February, I never expected to have to play "wait and see" with it... -
Does anyone know how to display (in LabVIEW) the memory use during execution of an image and data acquisition VI to predict when it is time to cease the acquisition to prevent the program crashing?
I am acquiring images and data to a buffer on the edge of the while loop, and am finding that the crashing of the program is unpredictable, but almost always due to a memory saturation when the buffers gets too big.
I have attached the VI.
Thanks for the help
Attachments:
new_control_and_acquisition_program.vi 946 KBTake a look at this document that discusses how to monitor IMAQ memory usage:
http://digital.ni.com/public.nsf/websearch/8C6E405861C60DE786256DB400755957
Hope this helps -
Julie -
Does anyone know how to display (in LabVIEW) the memory use during execution of an image and data acquisition VI to predict when it is time to cease the acquisition to prevent the program crashing?
I am acquiring images and data to a buffer on the edge of the while loop, and am finding that the crashing of the program is unpredictable, but almost always due to a memory saturation when the buffers gets too big.
I have attached the VI.
Thanks for the help
Attachments:
new_control_and_acquisition_program.vi 946 KBgot these vi's off ni site a while ago - see if they help
Attachments:
Memory_Monitor.zip 132 KB -
I just received a gift card from someone during these holidays, each time am trying ot redeem the code, I always found a message let me know that this card was not properly activated. How please you can help me about that ?
You don't go to the drop down "Actions" menu to reply to a post. You find the post to which you would like to reply and you hit the "Reply" button. You then type your message and then hit the "Add Reply" button to post your reply.
-
ORA-04088: error during execution of trigger
Error Description :
We have more than 100 of records in a csv file which we are processing through a script. At the first execution let
say it generates trigger exception for five records ... when I execute the script second time those five records
are not throwing any exception but may be some other records. But consecutive trigger exception is not happening for any record . If a particular record is throwing exception at first attempt then in the second attempts it's not throwing the trigger exception.
Input file
PROPRTY_ID,NAME,OLD STREET,CITY,STATE,ZIP,NEW STREET,NEW CITY,NEW STATE,NEW ZIP
88527091,SAM PAUL SUMMU ,1061 XYZ,CITY1,ST,95626,5512 XX YY ZZ,TOWN,PA,12345-9812
Error :
88527091,SAM PAUL SUMMU ,1061 XYZ,CITY1,ST,95626,5512 XX YY ZZ,TOWN,PA,12345-9812 - PROPERTY Update Error : ORA-00001: unique constraint (PROD.PK_AUDIT_LOG) violated
ORA-06512: at "PROD.PROPERTY_AUD", line 159
ORA-04088: error during execution of trigger 'PROD.PROPERTY_AUD'
Connected to:
Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> desc property
Name Null? Type
PROPERTY_ID NOT NULL NUMBER(20)
TYPE_CODE VARCHAR2(10)
TYPE_PREFIX VARCHAR2(10)
DWELLING_TYPE_CODE NOT NULL VARCHAR2(10)
DWELLING_TYPE_PREFIX NOT NULL VARCHAR2(10)
STREET_NUMBER VARCHAR2(25)
STREET_DIRECTION CHAR(2)
STREET_NAME NOT NULL VARCHAR2(45)
UNIT_NUMBER VARCHAR2(15)
CITY_CODE VARCHAR2(10)
STATE NOT NULL CHAR(2)
ZIP_CODE VARCHAR2(10)
UNIT_TYPE VARCHAR2(10)
UNIT_PREFIX VARCHAR2(10)
COUNTY_CODE VARCHAR2(10)
COUNTRY_CODE NOT NULL VARCHAR2(10)
SQUARE_FEET NUMBER(6)
NUMBER_MOTHER_LAW_UNITS NUMBER(6)
YEAR_BUILT DATE
PROPERTY_VALUE NUMBER(12)
ZIP_PLUS_4 VARCHAR2(4)
SFI_REQ_FLAG CHAR(1)
LAST_MODIFIED NOT NULL DATE
LAST_MODIFIED_BY VARCHAR2(31)
STANDARDIZED_STATUS VARCHAR2(10)
STANDARDIZED_DESC VARCHAR2(200)
SQL> desc audit_log
Name Null? Type
SEQ_NO NOT NULL NUMBER(20)
TABLE_NAME VARCHAR2(31)
USER_STAMP VARCHAR2(31)
TIME_STAMP DATE
TRAN_CODE CHAR(2)
RECORD1 VARCHAR2(2000)
RECORD2 VARCHAR2(2000)
FLAG_FLD CHAR(1)
SFI_FLAG_FLD CHAR(1)
ERROR_NUMBER NUMBER
Update Query which is getting executed :
UPDATE PROPERTY
SET DWELLING_TYPE_CODE = 'SFR',
DWELLING_TYPE_PREFIX = 'DWELLING',
STREET_NUMBER = NULL,
STREET_DIRECTION = NULL,
STREET_NAME = ln_new_street_name, -- <From input file>
UNIT_NUMBER = NULL,
CITY_CODE = ln_city_code, -- <From other Table>
STATE = ln_new_state, -- <From input file>
ZIP_CODE = ln_new_zip_code,
UNIT_TYPE = NULL,
UNIT_PREFIX = NULL,
COUNTY_CODE = ln_county_code, -- <From Other table>
COUNTRY_CODE = 1,
ZIP_PLUS_4 = ln_zip_plus_4 -- <From Input file>
WHERE PROPERTY_ID = ln_property_id; -- <From Other table>
*NOTE :* Property.LAST_MODIFIED field is auto populate through other trigger. It does not causing any problem.
This might be helpful :
SQL> select OWNER, CONSTRAINT_NAME, TABLE_NAME,COLUMN_NAME from dba_cons_columns where CONSTRAINT_NAME='PK_AUDIT_LOG';
OWNER CONSTRAINT_NAME TABLE_NAME COLUMN_NAME
PROD PK_AUDIT_LOG AUDIT_LOG SEQ_NO
PROD_ARCH PK_AUDIT_LOG AUDIT_LOG SEQ_NO
SQL> select SEQ_NO, trim(RECORD1), trim(RECORD2),TIME_STAMP
from audit_log where RECORD1 like '%BUTTE%' order by TIME_STAMP;
SEQ_NO
1675677212
TRIM(RECORD1)
00000000000031814095...SFR .DWELLING ...5512 BUTTE VIEW CT ..15532
.CA.95765 ...1377 .1 .....5000..20100922.SUSMSAHA ..
TRIM(RECORD2)
00000000000031814095...SFR .DWELLING ...5512 BUTTE VIEW CT ..15532
.CA.95765 ...1377 .1 .....5000..20100922.SUSMSAHA ..
TIME_STAMP
22-sep-2010
Trigger Body which is fired and throwing the exception :
create or replace trigger PROPERTY_AUD
before insert or update on PROPERTY
for each row
declare
rec1 varchar2(2000);
rec2 varchar2(2000);
tcode char(1);
ln_seq_id NUMBER:=Null;
ls_sql VARCHAR2(2000):=Null;
begin
select temp_audit_seq.nextval into ln_seq_id from dual;
rec1 := null;
rec2 := null;
if user = 'NONREP_USER' then
return;
end if;
if (dbms_reputil.from_remote = FALSE) then
:NEW.last_modified := sysdate;
if (user = 'SALESFORCE_SYNC') then
:new.last_modified_by := NVL(:new.last_modified_by,USER);
else
:new.last_modified_by := user;
end if;
end if;
if inserting then
rec1 :=
LPAD(:new.PROPERTY_ID, 20, '0' ) || '.' ||
RPAD(:new.TYPE_CODE, 10, ' ' ) || '.' ||
RPAD(:new.TYPE_PREFIX, 10, ' ' ) || '.' ||
RPAD(:new.DWELLING_TYPE_CODE, 10, ' ' ) || '.' ||
RPAD(:new.DWELLING_TYPE_PREFIX, 10, ' ' ) || '.' ||
RPAD(:new.STREET_NUMBER, 25, ' ' ) || '.' ||
RPAD(:new.STREET_DIRECTION, 2, ' ' ) || '.' ||
RPAD(:new.STREET_NAME, 45, ' ' ) || '.' ||
RPAD(:new.UNIT_NUMBER, 15, ' ' ) || '.' ||
RPAD(:new.CITY_CODE, 10, ' ' ) || '.' ||
RPAD(:new.STATE, 2, ' ' ) || '.' ||
RPAD(:new.ZIP_CODE, 10, ' ' ) || '.' ||
RPAD(:new.UNIT_TYPE, 10, ' ' ) || '.' ||
RPAD(:new.UNIT_PREFIX, 10, ' ' ) || '.' ||
RPAD(:new.COUNTY_CODE, 10, ' ' ) || '.' ||
RPAD(:new.COUNTRY_CODE, 10, ' ' ) || '.' ||
LPAD(:new.SQUARE_FEET, 6, '0' ) || '.' ||
LPAD(:new.NUMBER_MOTHER_LAW_UNITS, 6, '0' ) || '.' ||
TO_CHAR(:new.YEAR_BUILT, 'YYYYMMDD') || '.' ||
LPAD(:new.PROPERTY_VALUE, 12, '0' ) || '.' ||
RPAD(:new.ZIP_PLUS_4, 4, ' ' ) || '.' ||
RPAD(:new.SFI_REQ_FLAG, 1, ' ' ) || '.' ||
TO_CHAR(:new.LAST_MODIFIED, 'YYYYMMDD') || '.' ||
RPAD(:new.LAST_MODIFIED_BY, 31, ' ' ) || '.' ||
RPAD(:new.STANDARDIZED_STATUS, 10, ' ' ) || '.' ||
RPAD(:new.STANDARDIZED_DESC, 200, ' ' );
tcode := 'I';
elsif deleting then
rec1 :=
LPAD(:new.PROPERTY_ID, 20, '0' ) || '.' ||
RPAD(:new.TYPE_CODE, 10, ' ' ) || '.' ||
RPAD(:new.TYPE_PREFIX, 10, ' ' ) || '.' ||
RPAD(:new.DWELLING_TYPE_CODE, 10, ' ' ) || '.' ||
RPAD(:new.DWELLING_TYPE_PREFIX, 10, ' ' ) || '.' ||
RPAD(:new.STREET_NUMBER, 25, ' ' ) || '.' ||
RPAD(:new.STREET_DIRECTION, 2, ' ' ) || '.' ||
RPAD(:new.STREET_NAME, 45, ' ' ) || '.' ||
RPAD(:new.UNIT_NUMBER, 15, ' ' ) || '.' ||
RPAD(:new.CITY_CODE, 10, ' ' ) || '.' ||
RPAD(:new.STATE, 2, ' ' ) || '.' ||
RPAD(:new.ZIP_CODE, 10, ' ' ) || '.' ||
RPAD(:new.UNIT_TYPE, 10, ' ' ) || '.' ||
RPAD(:new.UNIT_PREFIX, 10, ' ' ) || '.' ||
RPAD(:new.COUNTY_CODE, 10, ' ' ) || '.' ||
RPAD(:new.COUNTRY_CODE, 10, ' ' ) || '.' ||
LPAD(:new.SQUARE_FEET, 6, '0' ) || '.' ||
LPAD(:new.NUMBER_MOTHER_LAW_UNITS, 6, '0' ) || '.' ||
TO_CHAR(:new.YEAR_BUILT, 'YYYYMMDD') || '.' ||
LPAD(:new.PROPERTY_VALUE, 12, '0' ) || '.' ||
RPAD(:new.ZIP_PLUS_4, 4, ' ' ) || '.' ||
RPAD(:new.SFI_REQ_FLAG, 1, ' ' ) || '.' ||
TO_CHAR(:new.LAST_MODIFIED, 'YYYYMMDD') || '.' ||
RPAD(:new.LAST_MODIFIED_BY, 31, ' ' ) || '.' ||
RPAD(:new.STANDARDIZED_STATUS, 10, ' ' ) || '.' ||
RPAD(:new.STANDARDIZED_DESC, 200, ' ' );
tcode := 'D';
else
rec1 :=
LPAD(:old.PROPERTY_ID, 20, '0' ) || '.' ||
RPAD(:old.TYPE_CODE, 10, ' ' ) || '.' ||
RPAD(:old.TYPE_PREFIX, 10, ' ' ) || '.' ||
RPAD(:old.DWELLING_TYPE_CODE, 10, ' ' ) || '.' ||
RPAD(:old.DWELLING_TYPE_PREFIX, 10, ' ' ) || '.' ||
RPAD(:old.STREET_NUMBER, 25, ' ' ) || '.' ||
RPAD(:old.STREET_DIRECTION, 2, ' ' ) || '.' ||
RPAD(:old.STREET_NAME, 45, ' ' ) || '.' ||
RPAD(:old.UNIT_NUMBER, 15, ' ' ) || '.' ||
RPAD(:old.CITY_CODE, 10, ' ' ) || '.' ||
RPAD(:old.STATE, 2, ' ' ) || '.' ||
RPAD(:old.ZIP_CODE, 10, ' ' ) || '.' ||
RPAD(:old.UNIT_TYPE, 10, ' ' ) || '.' ||
RPAD(:old.UNIT_PREFIX, 10, ' ' ) || '.' ||
RPAD(:old.COUNTY_CODE, 10, ' ' ) || '.' ||
RPAD(:old.COUNTRY_CODE, 10, ' ' ) || '.' ||
LPAD(:old.SQUARE_FEET, 6, '0' ) || '.' ||
LPAD(:old.NUMBER_MOTHER_LAW_UNITS, 6, '0' ) || '.' ||
TO_CHAR(:new.YEAR_BUILT, 'YYYYMMDD') || '.' ||
LPAD(:old.PROPERTY_VALUE, 12, '0' ) || '.' ||
RPAD(:old.ZIP_PLUS_4, 4, ' ' ) || '.' ||
RPAD(:old.SFI_REQ_FLAG, 1, ' ' ) || '.' ||
TO_CHAR(:new.LAST_MODIFIED, 'YYYYMMDD') || '.' ||
RPAD(:old.LAST_MODIFIED_BY, 31, ' ' ) || '.' ||
RPAD(:old.STANDARDIZED_STATUS, 10, ' ' ) || '.' ||
RPAD(:old.STANDARDIZED_DESC, 200, ' ' );
rec2 :=
LPAD(:new.PROPERTY_ID, 20, '0' ) || '.' ||
RPAD(:new.TYPE_CODE, 10, ' ' ) || '.' ||
RPAD(:new.TYPE_PREFIX, 10, ' ' ) || '.' ||
RPAD(:new.DWELLING_TYPE_CODE, 10, ' ' ) || '.' ||
RPAD(:new.DWELLING_TYPE_PREFIX, 10, ' ' ) || '.' ||
RPAD(:new.STREET_NUMBER, 25, ' ' ) || '.' ||
RPAD(:new.STREET_DIRECTION, 2, ' ' ) || '.' ||
RPAD(:new.STREET_NAME, 45, ' ' ) || '.' ||
RPAD(:new.UNIT_NUMBER, 15, ' ' ) || '.' ||
RPAD(:new.CITY_CODE, 10, ' ' ) || '.' ||
RPAD(:new.STATE, 2, ' ' ) || '.' ||
RPAD(:new.ZIP_CODE, 10, ' ' ) || '.' ||
RPAD(:new.UNIT_TYPE, 10, ' ' ) || '.' ||
RPAD(:new.UNIT_PREFIX, 10, ' ' ) || '.' ||
RPAD(:new.COUNTY_CODE, 10, ' ' ) || '.' ||
RPAD(:new.COUNTRY_CODE, 10, ' ' ) || '.' ||
LPAD(:new.SQUARE_FEET, 6, '0' ) || '.' ||
LPAD(:new.NUMBER_MOTHER_LAW_UNITS, 6, '0' ) || '.' ||
TO_CHAR(:new.YEAR_BUILT, 'YYYYMMDD') || '.' ||
LPAD(:new.PROPERTY_VALUE, 12, '0' ) || '.' ||
RPAD(:new.ZIP_PLUS_4, 4, ' ' ) || '.' ||
RPAD(:new.SFI_REQ_FLAG, 1, ' ' ) || '.' ||
TO_CHAR(:new.LAST_MODIFIED, 'YYYYMMDD') || '.' ||
RPAD(:new.LAST_MODIFIED_BY, 31, ' ' ) || '.' ||
RPAD(:new.STANDARDIZED_STATUS, 10, ' ' ) || '.' ||
RPAD(:new.STANDARDIZED_DESC, 200, ' ' );
tcode := 'U';
end if;
ls_sql :='
INSERT INTO AUDIT_LOG
( seq_no,
table_name,
user_stamp,
time_stamp,
tran_code,
record1,
record2)
VALUES
( :id,
:s_table_name,
:s_user_name,
:d_sysdate,
:s_tcode,
:s_rec1,
:s_rec2
EXECUTE IMMEDIATE ls_sql
USING ln_seq_id,
'PROPERTY',
user,
sysdate,
tcode,
rec1,
rec2;
end;
Your suggestion is highly appreciated ..
Edited by: Bipul on Sep 23, 2010 12:40 AMTEMP_AUDIT_SEQ generates number with the increment of +1
Although there seems other sequence populating the AUDIT_LOG table through a different sequence with the increment of +10. So till now there are already 1179 different numbers residing in audit_log.seq_no and yet to be generated by the TEMP_AUDIT_SEQ sequence. I will look into more details.
SQL> select max(seq_no) from audit_log;
MAX(SEQ_NO)
1675689121
SQL> select TEMP_AUDIT_SEQ.nextval from dual;
NEXTVAL
1675677285
SQL> select count(*) From audit_log where seq_no>1675677285;
COUNT(*)
1179
SQL> select count(*) from audit_log where seq_no>1675677283 and mod(seq_no,2)=1;
COUNT(*)
1179
SQL> select seq_no from audit_log where seq_no>1675677283 and mod(seq_no,2)=1 and rownum<12;
SEQ_NO
1675677291
1675677301
1675677311
1675677321
1675677331
1675677341
1675677351
1675677361
1675677371
1675677381
1675677391
11 rows selected.
Thank you Lee and Herald ten Dam ... -
Loading test steps during execution
Hello,
I am using the operator interface from the example. I have modified to suit my application. I run the test using the Single Pass entry point. I have 46 steps in my main sequence. When I press the Single pass execution, Initially it takes a lot of time (I think it compiles all the steps) to start the actual execution.
Why does it take long time to start execution? Is it possible to configure test stand such that it compiles each step as and when it reaches it?
Regards
GopalHey Gopal,
As Ray said, TestStand does not actually compile your modules. That being said, most likely this load time that you're seeing at the beginning of execution is due to your load options set to load the module when execution begins. If you go to the step properties, notice under "Run Options" there's a "Load Option" drop-down. You can look at the help for a description of this property, but in general this setting refers to when the module is loaded into memory. For time-critical tests, you would want to load either at the beginning of execution or when the sequence file is loaded (as this would extract the load time from the step so that the step could be executed quickly); this is especially important if you are looping on a particular step. There is an option to "Load dynamically" as well. With this option, you would see a slight delay before each step during which its module is loaded - rather than a longer delay at the beginning (in which all step modules are loaded).
Note that the default is "Preload when execution begins"; that is why I'm guessing that this is responsible for the delay that you're seeing.
Thanks,
Andy McRorie
NI R&D -
VI Metric.Dat​aSize Property Error 1000 during execution
OK, maybe this will be an easy one for someone. Today I'm attempting to detect an apparent memory leak in a Windows executable on 8.6.1 that, despite my best efforts, is still causing the painfully ambiguous "Not enough memory to complete this operation" dialog to appear.
This is within an executable, so I thought the best way to tackle this would be to read the "Metric.DataSize" property off of suspect VIs during execution. I'm getting error 1000, which leads me to believe that I can't read the property while the VI in question is running. Is there some way around this? Is there an easier way that I've forgotten?
I saw a rather old post of a similar nature relating to 7.1, but the recommendation was to use the memory monitor example. I took a look at that example's code, but they're calling the same property without error handling.
Thanks a lot,
JimHello Marti,
First of all, thanks for getting back to me. I did manage to track down the memory leak -- more on that soon enough -- but here are some answers to your questions:
First, I'd recommend trying to tackle this issue in the original VI. When you run the VI, do you get the same error?
If you're asking whether I see the error in the development environment, I haven't, unfortunately. However, I haven't run the VI for any extended period of time, either. Also, I don't know if I was clear on this: it's not really an error message in the traditional sense of a code and description. It's just a plain dialog that appears to be thrown by the runtime engine.
If not, can you monitor LabVIEW's usage in the Windows Task Manager, and see if it creeps up continuously?
I hadn't resorted to trying that just yet because I was hoping there was an easier (and more specific) way. The dialog I had seen was the plain one that the runtime engine seemed to have launched, so I figured it was a pretty safe bet that it was a memory leak. I could confirm this with task manager, though, if it's helpful.
If it does not, then you may not have a memory leak but be performing operations or copying large data arrays inadvertently. What is your VI doing? Are you ensuring to close all references at the end of your code?
In this case it's a "web viewer" application that receives data from a parent VI via a notifier and displays it for connected browsers. I'm also scanning some status strings and parsing out relevant information. I know it's within the web viewer VI because the parent VI hasn't changed and has run for weeks without any issue. (I only recently added the web viewer) I am downright paranoid about memory! I close every reference every time and even use the "in place" structure every time I can.
Does the VI run for a bit or error out with the memory issue immediately?
It takes a while; usually an hour or two.
Please investigate into the original VI so we can continue troubleshooting. If this is isolated to the executable, it will be a little tougher to debug. Additionally, if you don't have the original VI, you will need to get it either way so that we can investigate the source of this issue.
Okay, as I said earlier, I think I've figured it out. I have a VI that writes to a string indicator by reference. I had a circular buffer for messages (it used the in place structure, too!) and I was updating the string indicator with the buffer contents. I'm almost certain that the circular buffer works properly because I've used it before without any issue. However, I think it had something to do with the manner in which I was updating that string by reference over and over again. I know, it sounds crazy because I've updated indicators by reference continuously before and had never had an issue. It's possible that I was also using my circular buffer in a different way than I was before. I could explain what I did differently to fix the issue, but it would be a couple more paragraphs. (I will if you want!) For the record, I was definitely closing the reference every time, too. In any case, I think the issue is solved, but if you're interested in additional information I'll try my best.
By the way, here's my circular buffer VI.
Again, Marti, thanks very much for your assistance.
Regards,
Jim
Attachments:
Circular Buffer (Strings).vi 14 KB -
Each time iTunes(v 11.0.2.26) launches, it requires password for my AppleID
If I were you I would try to troubleshoot your connection with itunes ON the system. But for starters it is very unlikely one program like itunes blocks your connection, so I would try to disable your antivirus/firewall during download and reinstall of itunes. May be your firewalll kicks in some panic mode. Judging by your name you have very strong firewall
-
I have a 6th generation iPod Nano.
I almost exclusively use it as an FM radio and as a pedometer -- so far I have not loaded any songs onto it for listening, nor do I intend to in the future.
Here's my problem:
When my Nano runs out of juice, I have to use the charging cord to plug it into to my iMac's USB port to recharge the Nano. However, whenever I do so, two different (unwanted) actions happened:
First, the act of plugging in the iPod auto-launched iTunes, for syncing. I solved this problem by finding the preference check box for launching iTunes when connecting an iPid, and UNchecking the box. That worked, problem solved.
However, the second automatic action is that the iPod appears as a connected drive on the iMac desktop, as any external device with a drive would appear when connected to any Mac. But I have no need for this to be happening -- I don't intend to upload anything to the iPod, nor to sync it, or whatever -- the only reason I ever connect the iPod to the iMac is to RECHARGE the iPod, not to tinker with the contents of what's on it.
The problem is, every time I then want to disconnect the charging cord, I have to manually "unmount" the iPod drive by dragging its desktop icon to the Trash, when then allows the "it is now safe to disconnect your external drive" state to obtain, allowing me to then unplug it without getting a warning message telling me I shouldn't have just disconnected a connected drive without first unmounting it.
This wouldn't be such a bother, except that the 6th generation iPod Nano has a new "feature" which makes it impossible to see how far along the charging is progressing while it is still in the act of charging. Thus, the only way to know if it is has become fully charged is to unplug it, and look at the battery monitor. While is it still connected and charging, all that displays on the iPod is the "charging now" battery icon, which does not reveal just how the charging is progressing, or if it is fully charged yet. (My iPhone, by way of contrast, displays during charging a battery icon which reveals how far charged it is by that point.)
As a result of this Nano "feature," I often find myself having to connect and disconnect the Nano two or three or more times each time I'm charging it, so I can simply check how far along the charging has gotten, since I want to disconnect it as soon as it has finished charging and get back to using it.
But so far, I have not been able to find any kind of setting or preference which allow me to identify this device as one which I DON'T want to "mount" each time it is plugged in.
All I want to do is just plug in the iPod, and be able to unplug it, without having to to ANY shenanigans on the computer itself. Just plug in = recharging, unplug = not charging any more. Simple.
Question: is there any way to achieve this? Or is it simply not possible, and must I manually unmount the iPod's drive (more than once, usually) each time I plug it in for recharging?I should also point out that when I connect my iPhone, it DOESN'T appear as a connected drive on the desktop. Not sure how this can be so, since the iPhone also has a drive and also functions as an iPod if I want it to. I must have changed some setting to achieve this non-appearance, but don't remember what I must have done.
What's the secret? -
I went to Tools>Options>Tabs and entered a check mark next to the first entry, "Open New Windows in a New Tab Instead" but it still does not open a new tab each time I click on a link or one of my favorites. It used to way back in earlier versions of Firefox but hasn't for the past few iterations...am I doing something wrong or do I need to activate something else within Firefox?
'''''"I went to Tools>Options>Tabs and entered a check mark next to the first entry, "Open New Windows in a New Tab Instead" but it still does not open a new tab each time I click on a link or one of my favorites."'''''
That option only controls pages that would open in a new window based on the code on the website page you are visiting.
Firefox's default is to open a link or a Bookmark in the currently selected tab.
You have some options to have links and/or Bookmarks open in a new tab:
*middle-click the link or Bookmark (middle-click = press the mouse scroll wheel)
*CTRL+left-click the link or Bookmark
*right-click the link or Bookmark and choose "Open in New Tab"
*install one of the following and set the options to automatically open links or Bookmarks in a new tab:
**'''''Tab Utilities Lite''''': https://addons.mozilla.org/en-US/firefox/addon/tab-utilities-lite/
**'''''Tab Utilities''''' (a few more options than the "Lite" version): https://addons.mozilla.org/en-US/firefox/addon/tab-utilities/
**'''''Tab Mix Plus''''' (a heavyweight tab utility extension): https://addons.mozilla.org/en-US/firefox/addon/tab-mix-plus/
<br />
<br />
'''You need to update the following.''' The Plugin version(s) shown below was/were submitted with your question and is/are out of date. You should update to avoid known security issues with the version(s) you have installed. Click on "More system info..." to the right of your question to see what was included with your question.
*Adobe PDF Plug-In For Firefox and Netscape 10.0.1
*Next Generation Java Plug-in 1.6.0_24 for Mozilla browsers
#'''''Check your plugin versions''''' on either of the following links':
#*http://www.mozilla.com/en-US/plugincheck/
#*https://www-trunk.stage.mozilla.com/en-US/plugincheck/
#*'''Note: plugin check page does not have information on all plugin versions'''
#*There are plugin specific testing links available from this page:
#**http://kb.mozillazine.org/Testing_plugins
#'''Update Adobe Reader (PDF plugin):'''
#*From within your existing Adobe Reader ('''<u>if you have it already installed</u>'''):
#**Open the Adobe Reader program from your Programs list
#**Click Help > Check for Updates
#**Follow the prompts for updating
#**If this method works for you, skip the "Download complete installer" section below and proceed to "After the installation" below
#*Download complete installer ('''if you do <u>NOT</u> have Adobe Reader installed'''):
#**SAVE the installer to your hard drive (save to your Desktop so that you can find it after the download). Exit/Close Firefox. Run the installer you just downloaded.
#**Use either of the links below:
#***https://support.mozilla.com/en-US/kb/Using+the+Adobe+Reader+plugin+with+Firefox ''(click on "Installing and updating Adobe Reader")''
#***''<u>Also see Download link</u>''': http://get.adobe.com/reader/otherversions/
#*After the installation, start Firefox and check your version again.
#'''Update the [[Java]] plugin''' to the latest version.
#*Download site: http://www.oracle.com/technetwork/java/javase/downloads/index.html (Java Platform: Download JRE)
#**'''''Be sure to <u>un-check the Yahoo Toolbar</u> option during the install if you do not want it installed.
#*Also see "Manual Update" in this article to update from the Java Control Panel in Windows Control Panel: http://support.mozilla.com/en-US/kb/Using+the+Java+plugin+with+Firefox#Updates
#* Removing old versions (if needed): http://www.java.com/en/download/faq/remove_olderversions.xml
#* Remove multiple Java Console extensions (if needed): http://kb.mozillazine.org/Firefox_:_FAQs_:_Install_Java#Multiple_Java_Console_extensions
#*Java Test: http://www.java.com/en/download/help/testvm.xml
Maybe you are looking for
-
C8180 not working in windows 7
Printer will not fully power up. Button is green, but nothing works. Can't get computer to get out of paper jam message if I work from PC. Cannot fix message as one has to use touchpad,(showing black and no power to keypad) which is not working no
-
Lion starts in 'set up' mode after installing Parallelsn safe mode
Big problem. I couldn't get on with VMWare Fusion as it was piling up huge files (106 Gb) and using up half of my hard drive. I had always had problems with it since installation so i decided to take up the transfer offer from Parallels and installed
-
Perl SAP::Rfc: how sets the export parameters correctly?
Hi, we use SAP::RFC with Perl to read out some user details. We have a problem of reading the export parameter structure "address". Here is an example: #!/usr/bin/perl use strict; use SAP::Rfc; use Data::Dumper; my $rfc = new SAP::Rfc( AS
-
Qosmio G35-AV600 ---- Drivers & tools in german language?
+++++ Happy new year to all of you +++++ I'm interested to buy the Qosmio G35-AV600 in the US. I like to change the keyboard into a german one. Where can I find all the drivers and software utility tools in german language or which german Qosmio note
-
COPA Report-Actual and Standard.
Hi Guru, We need to generate ther report in COPA actual and standard. Standard derived from our cost estimate. Actual are derived actual GI/gr and Billing. We need to compare variance. Kindly adivse me . Thanks and regards. Ramesh.