Execution time issues with SU01 demo script

Having worked with Scripting in a Box for a while now I wanted to try out the examples there. I read FM: SO_USER_LIST_READ or another one explaining why my attempt to narrow the returned users failed (Craig, did you find out why the functionality was removed?) and Re: Issue with "Scripting in a Box" seeing that  Harry had the same problems with only ~200 users in his system. However, Craig's original post states he successfully managed with over 400 users. I'm a bit confused...
I included some simple timing stuff and found out that processing of one user in the loop takes about 1.7 seconds - little surprise then that every script times out. This seems to be due to the additional calls to GetStatus() and GetValid() - by commenting them out I get the whole list rather quickly.
Unfortunately commenting them out also means no nice icons for 'Status' and 'Valid', which is not desired. I probably could create a Z FM to deliver me the userlist with these two fields already added (which would save on rfc-calls, assuming the operation is much quicker on the server directly), but I hoped to get a solution based purely on PHP, not own ABAP coding (being aware that Craig also used a Z FM anyway, but still...)
I'm a bit unsure now how easy it is to actually create useful frontends in PHP, with such long execution times. I assume this will happen in other occasions as well, not only for user lists. Is there an alternative? Or a general way to do those things quicker?
:Frederic:

Craig: you say it's easy to go from 1.7 seconds per user lookup down to a small fraction of it? Then apparently I'm lacking these skills. Could you please give me a hint what should be done there?
I though about creating a Z function, but having to write custom wrappers - possibly for about any transaction in this style - I wanted to avoid.
Bala: the two functions only take one user as input, not a list. So w/o modifying the ABAP side I can't feed the whole list in there. I wonder how much it would improve the result time anyway, so perhaps I'm trying it. It's just not a solution I'd prefer.
Paging is a good idea, the actual call to get the whole userlist is quite quick. Having like 20 users displayed at a time is manageable - still slow, but the script won't timeout anymore. I think I'll implement this today.
About AJAX: yes, I want to play around a bit with AJAX, however having the two columns valid and status removed and the information only displayed on mouseover etc is a bit like cheating. And 1.7+ seconds waiting for a hoover info is too long. So I'd like to optimize on the rfc-calling side primarily.
Craig: surely it was just a demo, and I'm just trying to get it to work for understanding it
:Frederic:

Similar Messages

  • Execution Time Issue

    Help Please!!!
    I've been searching for an execution time issue in our application for a while now. Here is some background on the application:
    Collects analog data from a cDAQ chassis with a 9205 at 5kHz
    Data is collected in 100ms chunks
    Some of the data is saved directly to a TDMS file while the rest is averaged for a single data point. That single data point is saved to disk in a text file every 200ms.
    Problem: During operation, the VI that writes the data to the text file will periodically take many hundreds of milliseconds to execute. Normal operation execution times are on the order of 1ms or less. This issue will happen randomly during operation. It's usually many seconds between times that this occurs and it doesn't seem to have any pattern to when the event happens.
    Attached is a screenshot of the VI in question. The timing check labeled "A" is the one that will show the troubling execution time. All the other timing checks show 0ms every time this issue occurs. I simply can't see what else is holding this thing up. The only unchecked subVI is the "append error call chain" call. I've gone through the heirarchy of that VI and ensured that everything is set for reentrant execution. I will check that too soon, but I really don't expect to find anything.
    Where else can I look for where the time went? It doesn't seem to make sense.
    Thanks for reading!
    Tim
    Attachments:
    Screen Shot 2013-09-06 at 9.32.46 AM.png ‏87 KB

    You should probably increase how much data you write with a single Write to Text File.  Move the Write to Text File out of the FOR loop.  Just have the data to be written autoindex to create an array of strings.  The Write to Text File will accept the array of strings directly, writing a single line for each element in the arry.
    Another idea I am having is to use another loop (yes another queue as well) for the writing of the file.  But you put the Dequeue Element inside of another WHILE loop.  On the first iteration of this inside loop, set the timeout to something normal or -1 for wait forever.  Any further iteration should have a timeout of 0.  You do this with a shift register.  Autoindex the read strings out of the loop.  This array goes straight into the Write to Text File.  This way you can quickly catch up when your file write takes a long time.
    NOTE:  This is just a very quick example I put together. It is far from a complete idea, but it shows the general idea I was having with reading the queue.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines
    Attachments:
    Write all data on queue.png ‏16 KB

  • Issue with Generate Create Script in new ODT 11.1.0.6.10 beta

    I've tried this on several tables in my database. I choose Generate Script to ... a file, for a given table it gives me the error message "An error occurred while writing to fil: \nValue was either too large or too smal for an Int32."
    (It doesn't matter if I'm in a Oracle database project or some other project.)
    Trying to Generate Script To Project... when I'm in a Oracle Database Project, Visual Studio (2005) crashes. It appears to be some overflow exception according to crashinfo:
    EventType : clr20r3 P1 : devenv.exe P2 : 8.0.50727.762 P3 : 45716759
    P4 : mscorlib P5 : 2.0.0.0 P6 : 461eee3d P7 : 407b P8 : a3
    P9 : system.overflowexception
    (With ODT 11.1.0.5.10 beta it worked fine dispite the issue discussed in thread: Re: Issue with Generate Create Script in new ODT 11.1.0.5.10 beta
    /Tomas

    Tried to debug this error and got these exception details. Hope it helps!
    /Tomas
    System.OverflowException was unhandled
    Message="Value was either too large or too small for an Int32."
    Source="mscorlib"
    StackTrace:
    Server stack trace:
    at System.Decimal.ToInt32(Decimal d)
    at System.Decimal.op_Explicit(Decimal value)
    at Oracle.Management.Omo.TableSpaceQuotaDetails.FillTableSpaceQuota(OracleDataReader reader)
    at Oracle.Management.Omo.User.FillTableSpaceQuotas(OracleDataReader reader)
    at Oracle.Management.Omo.Connection.GetUserCollection(Boolean refresh)
    at Oracle.Management.Omo.Connection.GetUsers(Boolean refresh)
    at Oracle.Management.Omo.TableSQLGenerator.GetCreateSQLs(OmoObject obj, ArrayList& typeAndNames, Boolean checkRequired, Boolean appendSchemaName)
    at Oracle.Management.Omo.TableViewBase.GetCreateSQLs(Boolean appendSchemaName)
    at Oracle.VsDevTools.OracleUILDBProjectServices.GenerateCreateScript(OracleUILConnCtx connCtx, String[] objectNames, String objectOwner, OracleUILObjectType objectType)
    at Oracle.VsDevTools.OracleUILDBProjectServices.GenerateCreateScriptAsyncMethod(IntPtr ppvObj, OracleUILConnCtx connCtx, String[] objectNames, String objectOwner, OracleUILObjectType objectType, ICollection& scriptText)
    at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
    at System.Runtime.Remoting.Messaging.StackBuilderSink.PrivateProcessMessage(RuntimeMethodHandle md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
    at System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(IMessage msg, IMessageSink replySink)
    Exception rethrown at [0]:
    at System.Runtime.Remoting.Proxies.RealProxy.EndInvokeHelper(Message reqMsg, Boolean bProxyCase)
    at System.Runtime.Remoting.Proxies.RemotingProxy.Invoke(Object NotUsed, MessageData& msgData)
    at Oracle.VsDevTools.OracleUILDBProjectServices.GenerateScriptAsyncMethodDelegate.EndInvoke(ICollection& scriptText, IAsyncResult result)
    at Oracle.VsDevTools.OracleUILDBProjectServices.OnGenerateScriptAsyncCompletion(IAsyncResult ar)
    at System.Runtime.Remoting.Messaging.AsyncResult.SyncProcessMessage(IMessage msg)
    at System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(IMessage msg, IMessageSink replySink)
    at System.Runtime.Remoting.Proxies.AgileAsyncWorkerItem.ThreadPoolCallBack(Object o)
    at System.Threading._ThreadPoolWaitCallback.WaitCallback_Context(Object state)
    at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
    at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback(Object state)

  • Issue with Generate Create Script in new ODT 11.1.0.5.10 beta

    So I'm trying to determine if there's an issue with the Generate Create Script option in the new ODT 11.1.0.5.10 beta (when you right click on a table in Server Explorer).
    The SQL create script that it generates lacks the slash between lines. For example I generated the create script for my User table and this is what was generated:
    CREATE TABLE "DEV"."SYSTEM_USER_TB" ("RID" NUMBER(10,0),"USER_NAME" VARCHAR2(256 CHAR),"APPLICATION_RID" NUMBER(10,0),"FIRST_NAME" VARCHAR2(256 CHAR),"LAST_NAME" VARCHAR2(256 CHAR),"PW" VARCHAR2(128 CHAR),"PW_FORMAT" NUMBER,"PW_SALT" VARCHAR2(128 CHAR),"LAST_ACTIVITY_DT" DATE,"EXPIRATION_DT" DATE,"EMAIL" VARCHAR2(256 CHAR),"PW_QUESTION" VARCHAR2(256 CHAR),"PW_ANSWER" VARCHAR2(256 CHAR),"APPROVED_FLG" NUMBER(1,0),"LOCKED_OUT_FLG" NUMBER(1,0),"LAST_LOGIN_DT" DATE,"LAST_PW_CHANGED_DT" DATE,"LAST_LOCKOUT_DT" DATE,"FAILED_PW_ATTEMPT_CNT" NUMBER(6,0),"FAILED_PW_ATTEMPT_WINSTART" DATE,"FAILED_PW_ANSW_ATTEMPT_CNT" NUMBER(8,0),"FAILED_PW_ANSW_ATTEMPT_WINSTRT" DATE,"CREATED_BY_RID" NUMBER(10,0),"CREATED_DT" DATE,"MODIFIED_BY_RID" NUMBER(10,0),"MODIFIED_DT" DATE) TABLESPACE "USERS" PCTFREE 10 INITRANS 1 MAXTRANS 255 STORAGE ( INITIAL 131072 MAXEXTENTS 2147483645 MINEXTENTS 1 )
    CREATE UNIQUE INDEX "DEV"."XPKSTAFF" ON "DEV"."SYSTEM_USER_TB" ("RID" ) TABLESPACE "USERS"
    ALTER TABLE "DEV"."SYSTEM_USER_TB" ADD ( CONSTRAINT "SYS_C0033033" PRIMARY KEY ("RID") USING INDEX "DEV"."XPKSTAFF" ENABLE VALIDATE )
    ALTER TABLE "DEV"."SYSTEM_USER_TB" ADD ( CONSTRAINT "SYS_C0033032" CHECK ("RID" IS NOT NULL) ENABLE VALIDATE )
    CREATE TRIGGER "DEV"."SYSTEM_USER_TRG1"
    BEFORE
    INSERT
    ON "DEV"."SYSTEM_USER_TB"
    FOR EACH ROW
    begin
         select SYSTEM_USER_SEQ.nextval into :new.RID from dual;
    end;
    In my new Oracle Database Project, if I right click on the script and select "Run" or "Run On", the script fails saying:
    Connected.
    CREATE UNIQUE INDEX "DEV"."XPKSTAFF" ON "DEV"."SYSTEM_USER_TB" ("RID" ) TABLESPACE "USERS"
    ERROR at line 2:
    ORA-00922: missing or invalid option
    If I then add, a slash between lines, the script runs successfully and creates the table/trigger and whatever else just fine. For example, I changed the above generated code to look as follows:
    CREATE TABLE "DEV"."SYSTEM_USER_TB" ("RID" NUMBER(10,0),"USER_NAME" VARCHAR2(256 CHAR),"APPLICATION_RID" NUMBER(10,0),"FIRST_NAME" VARCHAR2(256 CHAR),"LAST_NAME" VARCHAR2(256 CHAR),"PW" VARCHAR2(128 CHAR),"PW_FORMAT" NUMBER,"PW_SALT" VARCHAR2(128 CHAR),"LAST_ACTIVITY_DT" DATE,"EXPIRATION_DT" DATE,"EMAIL" VARCHAR2(256 CHAR),"PW_QUESTION" VARCHAR2(256 CHAR),"PW_ANSWER" VARCHAR2(256 CHAR),"APPROVED_FLG" NUMBER(1,0),"LOCKED_OUT_FLG" NUMBER(1,0),"LAST_LOGIN_DT" DATE,"LAST_PW_CHANGED_DT" DATE,"LAST_LOCKOUT_DT" DATE,"FAILED_PW_ATTEMPT_CNT" NUMBER(6,0),"FAILED_PW_ATTEMPT_WINSTART" DATE,"FAILED_PW_ANSW_ATTEMPT_CNT" NUMBER(8,0),"FAILED_PW_ANSW_ATTEMPT_WINSTRT" DATE,"CREATED_BY_RID" NUMBER(10,0),"CREATED_DT" DATE,"MODIFIED_BY_RID" NUMBER(10,0),"MODIFIED_DT" DATE) TABLESPACE "USERS" PCTFREE 10 INITRANS 1 MAXTRANS 255 STORAGE ( INITIAL 131072 MAXEXTENTS 2147483645 MINEXTENTS 1 )
    CREATE UNIQUE INDEX "DEV"."XPKSTAFF" ON "DEV"."SYSTEM_USER_TB" ("RID" ) TABLESPACE "USERS"
    ALTER TABLE "DEV"."SYSTEM_USER_TB" ADD ( CONSTRAINT "SYS_C0033033" PRIMARY KEY ("RID") USING INDEX "DEV"."XPKSTAFF" ENABLE VALIDATE )
    ALTER TABLE "DEV"."SYSTEM_USER_TB" ADD ( CONSTRAINT "SYS_C0033032" CHECK ("RID" IS NOT NULL) ENABLE VALIDATE )
    CREATE TRIGGER "DEV"."SYSTEM_USER_TRG1"
    BEFORE
    INSERT
    ON "DEV"."SYSTEM_USER_TB"
    FOR EACH ROW
    begin
         select SYSTEM_USER_SEQ.nextval into :new.RID from dual;
    end;
    So, does anyone know if this is a bug? Could I be missing an option to add in the slashes to the generated code? Is there an option to not require the slashes? Could there be another way to execute these scripts?
    Seriously, I think I'm having deja vu from the last release of the Dev Tools: Generate Create Script creates scripts that won't run: ORA-00922: missing..
    ...except this time the documentation says I should be able to use the "Run" and "Run On" commands in the Oracle Database Project (see page 8): http://www.oracle.com/technology/tech/dotnet/pdf/ODT11_whatsnew.pdf
    null

    There are 2 issues in the generated script :
    1. Missing semicolons at the end of the create stmts
    2. Missing slashes
    Both of these fixes will be available in the ODT 11.1 release.

  • Reponse time issue with a simple qurey .

    hi all,
    i started facing a strange issue with the below query form the biging of the month. we have a DW system for a banking domain and in that our accounts table from the first of this month is taking a huge amount of time to retive the data. if i query a back dated data say 31st of may that would be '310509' it give the result in less that 5 seconds. this is a very simple query which i am joing with a transaction table.
    i assume the reason for the change in query reponce time is may be tha data from the beging of this month had a datablock extantion and this block is corrupted . kindly let me know what i am thinking is correct or there is another reaosn for this.
    Also let me know what resolution should i take to resolve this issue.
    my database version is Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
    Thanks in advance
    SELECT * FROM
    (select * from gtxn_dtl_v1 where batch_id='070609') a,
    (select * from gacc_dtl_v1 where batch_id='070609') b
    WHERE a.account_number = b.id
    SELECT * FROM
    (select * from gtxn_dtl_v1 where batch_id='310509') a,
    (select * from gacc_dtl_v1 where batch_id='310509') b
    WHERE a.account_number = b.id

    Hemant K Chitale wrote:
    I don't think that it is a simple query.
    The two objects "gtxn_dtl_v1" and "gacc_dtl_v1" seem to be Views. So, the queries are probably involving joins of other tables.
    Without an Execution Plan and information about table and index definitions and statistics on the tables and indexes, any attempt to answer your question would be meaningless.Both are tables. Explain plan is shown below:
    SQL> explain plan for
      2  SELECT * FROM
      3  (select * from gtxn_dtl_v1 where batch_id='070609') a,
      4  (select * from gacc_dtl_v1 where batch_id='070609') b
      5   WHERE a.account_number = b.id;
    Explained.
    SQL> select * from table(dbms_xplan.display);
    PLAN_TABLE_OUTPUT
    Plan hash value: 4236620027
    | Id  | Operation                    | Name        | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT             |             |     1 |   601 |    38   (0)| 00:00:01 |
    |   1 |  NESTED LOOPS                |             |     1 |   601 |    38   (0)| 00:00:01 |
    |*  2 |   TABLE ACCESS BY INDEX ROWID| GACC_DTL_V1 |     1 |   313 |     4   (0)| 00:00:01 |
    |*  3 |    INDEX RANGE SCAN          | IDX_ACC2_V1 |     1 |       |     3   (0)| 00:00:01 |
    |*  4 |   TABLE ACCESS BY INDEX ROWID| GTXN_DTL_V1 |     1 |   288 |    34   (0)| 00:00:01 |
    |*  5 |    INDEX RANGE SCAN          | IDX_TXN2_V1 |    55 |       |     8   (0)| 00:00:01 |
    Predicate Information (identified by operation id):
       2 - filter("BATCH_ID"='070609')
       3 - access(SUBSTR("BATCH_ID",1,6)='070609')
       4 - filter("BATCH_ID"='070609' AND SUBSTR("GTXN_DTL_V1"."BATCH_ID",1,6)='070609')
       5 - access("GTXN_DTL_V1"."ACCOUNT_NUMBER"="GACC_DTL_V1"."ID")
           filter(SUBSTR("GTXN_DTL_V1"."ACCOUNT_NUMBER",1,3)=SUBSTR("GACC_DTL_V1"."ID",1
                  ,3))
    22 rows selected.
    SQL> explain plan for
      2  SELECT * FROM
      3  (select * from gtxn_dtl_v1 where batch_id='310509') a,
      4  (select * from gacc_dtl_v1 where batch_id='310509') b
      5  WHERE a.account_number = b.id;
    Explained.
    SQL>  select * from table(dbms_xplan.display);
    PLAN_TABLE_OUTPUT
    Plan hash value: 1249675553
    | Id  | Operation                     | Name            | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT              |                 |     1 |   601 |   785   (1)| 00:00:10 |
    |   1 |  TABLE ACCESS BY INDEX ROWID  | GACC_DTL_V1     |     1 |   313 |     4   (0)| 00:00:01 |
    |   2 |   NESTED LOOPS                |                 |     1 |   601 |   785   (1)| 00:00:10 |
    |   3 |    TABLE ACCESS BY INDEX ROWID| GTXN_DTL_V1     |   104 | 29952 |   368   (2)| 00:00:05 |
    |*  4 |     INDEX RANGE SCAN          | IDX_TXN1        |   104 |       |   340   (2)| 00:00:05 |
    |*  5 |    INDEX RANGE SCAN           | GACC_DTL_V1_IDX |     1 |       |     3   (0)| 00:00:01 |
    Predicate Information (identified by operation id):
       4 - access("BATCH_ID"='310509')
           filter(SUBSTR("GTXN_DTL_V1"."BATCH_ID",1,6)='310509')
       5 - access("GTXN_DTL_V1"."ACCOUNT_NUMBER"="GACC_DTL_V1"."ID" AND "BATCH_ID"='310509')
           filter(SUBSTR("GACC_DTL_V1"."BATCH_ID",1,6)='310509' AND
                  SUBSTR("GTXN_DTL_V1"."ACCOUNT_NUMBER",1,3)=SUBSTR("GACC_DTL_V1"."ID",1,3))
    21 rows selected.
    Indexes:
    select i.index_name,index_type,i.table_name,num_rows,column_name,COLUMN_EXPRESSION
    from all_indexes i,all_ind_columns c,ALL_IND_EXPRESSIONS e
    where i.table_name in ('GACC_DTL_V1','GTXN_DTL_V')
    and i.index_name = c.index_name
    and e.index_name(+) = i.index_name;
    INDEX_NAME     INDEX_TYPE          TABLE_NAME     NUM_ROWS     COLUMN_NAME     COLUMN_EXPRESSION
    GACC_DTL_V1_IDX     NORMAL               GACC_DTL_V1     57190895     ID     
    GACC_DTL_V1_IDX     NORMAL               GACC_DTL_V1     57190895     BATCH_ID     
    IDX_ACC5_V1     NORMAL               GACC_DTL_V1     34524304     POSTING_RESTRICT     
    IDX_ACC1_V1     NORMAL               GACC_DTL_V1     55919578     CATEGORY     
    IDX_CUS5_V1     NORMAL               GACC_DTL_V1     54461378     CUSTOMER_NUMBER     
    IDX_CUS6_V1     NORMAL               GACC_DTL_V1     3272052     LIMIT_REF     
    IDX_ACC3_V1     FUNCTION-BASED NORMAL     GACC_DTL_V1     52940894     SYS_NC00099$     "CUSTOMER_NUMBER"||'.'||"LIMIT_REF"
    IDX_ACC4_V1     FUNCTION-BASED NORMAL     GACC_DTL_V1     57238600     SYS_NC00100$     "CUSTOMER_NUMBER"||'.000'||"LIMIT_REF"
    GACC_DTL_V1_IX2     FUNCTION-BASED NORMAL     GACC_DTL_V1     54448627     SYS_NC00101$     SUBSTR("ID",1,3)
    IDX_ACC2_V1     FUNCTION-BASED NORMAL     GACC_DTL_V1     55566106     SYS_NC00102$     SUBSTR("BATCH_ID",1,6)Edited by: user577300 on Jun 10, 2009 11:41 PM
    So many strange things here:
    1.Query showing cost 38 is taking a long time  (hours). Other quey takes 5 sec
    2. Plans are different.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Why the execution time increases with a while loop, but not with "Run continuously" ?

    Hi all,
    I have a serious time problem that I don't know how to solve because I don't know exactly where it comes from.
    I command two RF switches via a DAQ card (NI USB-6008). Only one position at the same time can be selected on each switch. Basically, the VI created for this functionnality (by a co-worker) resets all the DAQ outputs, and then activates the desired ones. It has three inputs, two simp0le string controls, and an array of cluster, which contains the list of all the outputs and some informations to know what is connected (specific to my application).
    I use this VI in a complex application, and I get some problems with the execution time, which increased each time I callled the VI, so I made a test VI (TimeTesting.vi) to figure out where the problem came from. In this special VI I record the execution time in a csv file to analyse then with excel.
    After several tests, I found that if I run this test VI with the while loop, the execution time increases at each cycle, but if I remove the while loop and use the "Run continuously" funtionnality, the execution time remains the same. In my top level application I have while loops and events, and so the execution time increases too.
    Could someone explain me why the execution time increases, and how can I avoid that? I attached my test VI and the necessary subVIs, as well as a picture of a graph which shows the execution time with a while loop and with the "run continuously".
    Thanks a lot for your help!
    Solved!
    Go to Solution.
    Attachments:
    TimeTesting.zip ‏70 KB
    Graph.PNG ‏20 KB

    jul7290 wrote:
    Thank you very much for your help! I added the "Clear task" vi and now it works properly.
    If you are still using the RUn Continuously you should stop. That is meant strictly for debugging. In fact, I can't even tell you the last time I ever used it. If you want your code to repeat you should use loops and control the behavior of the code.
    Mark Yedinak
    "Does anyone know where the love of God goes when the waves turn the minutes to hours?"
    Wreck of the Edmund Fitzgerald - Gordon Lightfoot

  • CFWDDX Time Issue with CF7

    We're upgrading a bunch of apps from CF5 to CF7. We've run
    into an issue with cfwddx that results in times coming across with
    one hour subtracted - this didn't happen with CF5. Basically I'm
    packetizing query results with an action CFML2JS. If I just dump
    that packet via something like alert(mypacket.value) I can see that
    the date is intact. However, if I break it down via WDDX2CFML then
    run a cfquery against it, the datetime fields are all coming back
    one hour short, i.e. 10 PM instead of 11 PM. I'm suspecting I need
    to manipulate the usetimezoneinfo property of the serializer
    object, but I'm not sure how to do that - at any rate, is this a
    known problem with CF7? Any suggestions at all on how to get around
    this would be greatly appreciated!
    Regards,
    Al
    P.S. I'll be happy to post code if that's required.

    Very same thing here. Iphone 5C on 7.0.2 from tmobile in NC.
    time is frozen when auto lock is engage. Both manual and automatic settings failed to help.
    Tried the LTE trick, tried the reset network trick...

  • Issue with a AA Script

    Dear All,
    I have a problem with auto attendant script. I have a customer who has a greeting saying Welcome to XXXX company.Please enter the desire extension at any time. or else please wait for the operator. Now they want to add an option for the user to press 1 so that the call wil be transfereed to techincal supportteam. The flow wil be like this. WElcome to XXXX company. Please enter the desire extension at any time.For techincal relted queries please press 1 or else please wait for operator. So if the user press 1 the call will go to tehnical department.
    The problem is in the script once the call lands in we have configured in such a way that the system will accept the 4 digit extension and if the user dont press the 4 digit extension it will go to operator. Now if i add the option of 1 in that system is waiting for another 4 digits then it is timing out and going to operator. Is there any way to accomplish the above task. I am adding the script for your reference.

    Hi,
    If you're using CUE, there is a step called "Dial By Extension Menu", this should solve your problem.
    If you're using UCCX (or CUE and don't have this step) you can do the following:
    In the Get Digit String branch Timeout, use an If statement that check if the Number entered was "1" then Call Redirect to Technical Departement Number, else Call Redirect to Operator Extension.
    It should appear like this:
    Extension = Get Digit String
    Timeout
        if (Extension == "1")
            True
                Call Redirect to Technical
            False
                Call Redirect to Operator
    Hope This Helps,

  • Issue with running a script in Oracle test manager

    Tool - Open Script 9.0.1 , OTM
    Hi All
    I am facing issue while executing a open script with Oracle Test Manager , I have a script which was made with open script 9.0.1 and which is running very fine with the Open Script UI ,
    problem occurs once I am trying to run this with OTM.Issue looks that playback was so fast in OTM so that script was not able to recognize some of the objects.
    Is there anyway so that I can control the speed of playback at any particular step when I am using OTM
    Thanks

    Hi Kumar,
    Regarding your query below is the suggestion:
    You have to configure the job server with the repository. While configuring the adapter, you have to configure the job server in management console also..
    Still if you are facing issue then please share Job Server logs available in BODS Job Server Folder and error screenshot to debug the issue.
    Thanks,
    Daya

  • Issue with executing diff scripts.

    Hi,
    I have an sql file which we run thru sqlplus. The file has list of scripts to be compiled. Now based on environment i wanna choose which script to be compiled. How should i achieve that?
    schema_changes.sql file
    def dw_user =&1
    def env =&2
    alter session set current_schema=&dw_user._staging;
    @EDW/dbscripts/DW/SCHEMA/BUILD_DW_SCHEMA.SQL
    @EDW/dbscripts/DW/SCHEMA/BUILD_DW_SCHEMA_QA.SQL
    @EDW/dbscripts/DW/SCHEMA/STAGING_TRG.SQL
    /If the user inputs env as QA, it should compile BUILD_DW_SCHEMA_QA.SQL or else it should compile BUILD_DW_SCHEMA.SQL. I'm not sure SQL block IF END IF will do as we have to have to execute scripts kept on server. Please advice.
    Will the below work:
    def dw_user =&1
    def env =&2
    alter session set current_schema=&dw_user._staging;
    BEGIN
    IF (env = 'QA') then
    @EDW/dbscripts/DW/SCHEMA/BUILD_DW_SCHEMA_QA.SQL
    ELSE
    @EDW/dbscripts/DW/SCHEMA/BUILD_DW_SCHEMA_QA.SQL
    END IF;
    END;
    @EDW/dbscripts/DW/SCHEMA/STAGING_TRG.SQL
    /

    GR wrote:
    Hi,
    I have an sql file which we run thru sqlplus. The file has list of scripts to be compiled. Now based on environment i wanna choose which script to be compiled. How should i achieve that?
    schema_changes.sql file
    def dw_user =&1
    def env =&2
    alter session set current_schema=&dw_user._staging;
    @EDW/dbscripts/DW/SCHEMA/BUILD_DW_SCHEMA.SQL
    @EDW/dbscripts/DW/SCHEMA/BUILD_DW_SCHEMA_QA.SQL
    @EDW/dbscripts/DW/SCHEMA/STAGING_TRG.SQL
    /If the user inputs env as QA, it should compile BUILD_DW_SCHEMA_QA.SQL or else it should compile BUILD_DW_SCHEMA.SQL. I'm not sure SQL block IF END IF will do as we have to have to execute scripts kept on server. Please advice.
    Will the below work:
    def dw_user =&1
    def env =&2
    alter session set current_schema=&dw_user._staging;
    BEGIN
    IF (env = 'QA') then
    @EDW/dbscripts/DW/SCHEMA/BUILD_DW_SCHEMA_QA.SQL
    ELSE
    @EDW/dbscripts/DW/SCHEMA/BUILD_DW_SCHEMA_QA.SQL
    END IF;
    END;
    @EDW/dbscripts/DW/SCHEMA/STAGING_TRG.SQL
    No, that won't work, as you cannot embed SQL*Plus commands into the PL/SQL language, they are two seperate languages. PL/SQL does not support SQL*Plus commands.
    What you are trying to achieve would be more easily implemented using operating system scripting languages, though the exact script would depend on whether you are using a Windows based o/s or Unix based o/s. The o/s script would be able to prompt for input from the user and has the ability to do conditional processing, thus you can get it to call SQL*Plus with the relevant scripts as the input.

  • Issue with calling Shell Script using DBMS_SCHEDULER

    Hi All,
    I am executing a shell script using DBMS_SCHEDULER from APEX web page. Execution part is working fine without any issues.
    In my shell script file (abc.sh) I have few oracle sql procedure calls which connects back to same database and that SQL call is not executing some reason, it not giving any errors.
    Inside my shell script code looks like this.
    sqlplus -silent $USER/$PASSCODE@$SCONNECT > /dev/null <<END
    set pagesize 0 feedback off verify off heading off serveroutput on
    echo off linesize 1000
    WHENEVER SQLERROR EXIT 9
    BEGIN     
    dbms_output.enable(1000000);
    do_enable_cons();
    dbms_output.disable;
    END;
    spool off;
    exit;
    END
    When I run this shell script file from backend it works fine now issues.
    Is there any restrictions in executing sql code using DBMS_SCHEDULER? Any ones help is much appreciated.
    -Regards

    james. wrote:
    Thanks you sb and Sybrand . It is problem with environment variables. After running .bash_profile in the beginning of the shell script, it is working fine.
    One issue is when I check the process it is showing two entries with two different process id's.
    The command I used
    ps -ef | grep <my script> is COPY & PASTE broken for you?
    any reason why you did not show us EXACTLY was produced by OS command above?
    >
    Is it something wrong with my code or is it normal? Is it really executing two times ?
    -Regards
    bcm@bcm-laptop:~$ sqlplus user1/user1
    SQL*Plus: Release 11.2.0.1.0 Production on Fri Jul 20 15:14:15 2012
    Copyright (c) 1982, 2009, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    15:14:15 SQL> !ps -ef | grep sqlplus
    bcm      24577  1903  1 15:14 pts/0    00:00:00 sqlplus           
    bcm      24579 24577  0 15:14 pts/0    00:00:00 /bin/bash -c ps -ef | grep sqlplus
    bcm      24581 24579  0 15:14 pts/0    00:00:00 grep sqlplus
    15:14:23 SQL> how many different copies of "sqlplus" running on my laptop based upon actual output above?

  • Issues with running permission scripts on Hoted desktop via Citrix and when deploying via SCCM

    I am running a permissioning VBScript which runs when I do a standalone insallation manually running the power shell commands to add and publish the application.
    This only runs vis SCCM when a machine installation is acrried out but not a per user installation. Any ideas?
    The same script seems to run sometimes & sometimes does not on a hosted desktop with aps publish via citrix from the appv server. Any ideas?. A coppy of my Deploymentconfig.xml file userscript section that calls the script is below
    <UserScripts>
          <StartProcess RunInVirtualEnvironment="true">
            <ApplicationId>[{AppVPackageRoot}]\Adobe Photoshop CS6 (64 Bit)\Photoshop.exe</ApplicationId>
            <Path>[{AppVPackageRoot}]\..\Scripts\AdobeSerialization.exe</Path>
            <Arguments>adobe_prtk --tool=VolumeSerialize --provfile=[{AppVPackageRoot}]\..\Scripts\prov.xml</Arguments>
            <Wait RollbackOnError="false" />
          </StartProcess>
          <StartVirtualEnvironment>
            <Path>WSCRIPT.EXE</Path>
            <Arguments>[{AppVPackageRoot}]\..\Scripts\VFSCACLS.vbs -guid 6d0756af-b755-493b-8cee-4299e8666978 -error -name "Adobe Photoshop CS6"</Arguments>
            <Wait RollbackOnError="false" />
          </StartVirtualEnvironment>
        </UserScripts>
    The guys in the build team reckon this is an application issues but I can't see how it can be if the applications runs when manually calling the powersehell commands. Also like I said on the Hosted desktop one minutes the script runs and one minute it does
    not.
    Can someone help please?

    Hello,
    If deploying the application to the user, and the configuration file is updated as part of the content and distributed to the DPs, and then downloaded to the client and the client is enabled to run scripts - no I never had that issue.
    If I had something which didn't work I would usually verify what is on the Distribution Point?
    You can download the SCCM 2012 R2 toolkit to verify what is on the DPs;
    http://www.microsoft.com/en-us/download/details.aspx?id=36213
    If it is deployed to the client - it means you can read the client log-file from SCCM. See the AppEnforce.log as a potential candidate;
    http://technet.microsoft.com/en-us/library/hh427342.aspx#BKMK_AppManageLog
    If it gets properly parsed by the App-V Client you can check the App-V event logs, see Tim Mangans blog post about enabling further debug-logs;
    http://www.tmurgent.com/TMBlog/?p=1247
    As I can't see what is happening within your Environment I would redo all the steps and verify what the results were of each step. If one step fails, I would then post what step I had performed up until that point, what the result were of each step and what
    was happening within the final step that I would consider a failure.
    Nicke Källén | The Knack| Twitter:
    @Znackattack

  • Issues with Lab Manager script ldap.ps1

    Hello all,
    We are going to use a new LDAP server and so we have to run the ldap.ps1 scipt because doing it manully is not an option. We have over 800 users. I believe I enter the correct information. I do get the following error when I run it.
    Has anybody been successful with this script? VMware provides the script but doesn't support it :-(.

    Hi,
    Base on my test, it uses the lab agent service account to deploy the script, so the reason of your issue is that that account haven’t the enough permission to run the script.
    Please check the account of lab agent service in the test agent machine and specify another account to run that service (local service)
    Regards
    Starain
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Issues with integrating Java script functions in OBIEE 11G

    Hello experts..
    I am trying to integrate some Javascript functions in my OBIEE 11G Dashboard..
    I have modified the original common.js file and renamed it as insight_common.js in the following directory (backed up the original file of course)
    OBIEE 11G Folder/user_projects/domains/bifoundation_domain/servers/bi_server1/tmp/_WL_user/analytics_11.1.1/7dezjl/war/res/b_mozilla/insight_common.js
    In my dashboard, I have a dashboard object as text component where I have checked 'Contains HTML Markup'. I have written the following code:
    hello
    <script src="/res/b_mozilla/insight_common.js" type="text/javascript"></script>
    <script type="text/javascript">
    sayHi();
    </script>
    However, when I launch the dashboard, it is not working.
    In the Google Chrome browser as I inspected the element to investigate the reason, I am getting the following error under 'console'
    Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost/res/b_mozilla/insight_common.js
    Uncaught ReferenceError: sayHi is not defined saw.dll:611
    It seems that OBIEE is not recognizing the new file that I made..
    Is there a way around this?
    Thanks

    Srini
    I don't have backgrounds in coding, so a lot of what I wrote came from my own researching...
    Now I have tried your latest suggestions again as the below:
    1.<script type="text/javascript" src="res/b_mozilla/insight_common.js">
    sayHi();
    </script>
    and
    2.
    <script type="text/javascript" src="res/test.js"></script> ----- in my case: <script type="text/javascript" src="res/b_mozilla/is_common,js"></script>
    Now both codes this time do not yield any outputs when launching the dashboard. The section is blank and the preview of the Text section in the dashboard is blank as well..
    So, are you sure these are all the steps I need to take to call javascript function in OBIEE?
    Do I need to define anything in weblogic or other places?
    I hope I am not missing any steps..
    Thanks and let me know..

  • Issue with Proportional Spreading Script. Please help !

    Hello,
    I have a requirement where I need to write a spreading script for a data form. On this form user will enter data at a parent level and what the script needs to do is spread the parent level input value to the 0 level members proportinally based on the values already existing in the 0 level members.
    Say the account member is “X”. All the other members on the data form in the POV/Page/Rows and Columns are 0 level members except for one that is Product which is in the Page
    Product
    - A
    - B
    I came up with this basic logic for the proportinal spread. Ofcourse I will need to include some logic with IF statement or something else to check if the cell belongs to product A or product B. For now, assuming the value is being input for A so now we need to spread that value at A to 0 level members proportionally.
    “X” = ((“X” -> (@CURRMBR(“Product”)*100)/(Previous Parent Value *100))*”X”->”A”
    Example with numbers:
    Current member cell value = 100 (0 level member for Product A)
    Previous Parent Value = 200 (Value for A)
    New Parent Value = 400 (User inputs this new value by overwriting the previous value 200)
    So, X = ((100*100)/(200*100))*400 = 200
    Now, the logic of the formula makes sense to me and would spread proportionally, but my question is how would we get the “Previous Parent Value to calculate the % as the user will overrite it with a new value = 400 before running the rule. So, we would not have 200 anymore and unless we have it we wont be able to know the % to do a proportional spread.
    I apologize if this is confusing, but please help me with your ideas on how can I achieve this proportional spreading script. I would really appreciate your inputs.
    Thanks!
    ~ Adella

    Hi,
    Have you not asked this earlier?
    Business Rule - Allocation Script Logic - Not working ! Please help.
    But in hindsight, I think there's a little problem with the script I had posted. This was what I suggested:
    SET UPDATECALC ON;
    FIX(“AccountMember”,”FY11”,”EntityMember”,”Local”,”Working”,”BU”,@LEVMBRS(“Product A”,0),@LEVMBRS(“Product B”,0),”Current”,@LEVMBRS(“Dept”,0),LEVMBRS(“Customer”,0))
    &Currmonth
    &Currmonth = @PARENT(Product)*(&Currmonth/@SUMRANGE(&Currmonth,@RELATIVE(@PARENT(@Currmbr(Product)),0)));
    ENDFIX;The problem I see here, every time the script calculates a product, the total of the siblings of the product changes and when it calculates the next product, allocation is done based on a different different total. To overcome this, you can try it this way:
    SET UPDATECALC ON;
    FIX(”FY11”,”EntityMember”,”Local”,”Working”,”BU”,@LEVMBRS(“Product A”,0),@LEVMBRS(“Product B”,0),”Current”,@LEVMBRS(“Dept”,0),LEVMBRS(“Customer”,0))
    &currmonth(
    @calcmode(bottomup);
    /*copy original values to somewhere else to make sure allocation base doesn't change*/
    "AccountMemberAllocBase"="AccountMember";
    Endfix
    FIX("AccountMember",”FY11”,”EntityMember”,”Local”,”Working”,”BU”,@LEVMBRS(“Product A”,0),@LEVMBRS(“Product B”,0),”Current”,@LEVMBRS(“Dept”,0),LEVMBRS(“Customer”,0))
    &Currmonth
    @calcmode(bottomup);
    &Currmonth = @PARENT(Product)*(&Currmonth->"AccountMemberAllocBase"/@SUMRANGE(&Currmonth->"AccountMemberAllocBase",@RELATIVE(@PARENT(@Currmbr(Product)),0)));
    ENDFIX;
    Cheers,
    Alp

Maybe you are looking for