trace name stripchart

Hello

Is it possible to change the name of track of legend in a chart of the band?

If so, how?

Example: replace "Track 1" name "moisture sensor".

Thank you

Hello Gonçalo,

Yes, you can with the SetTraceAttribute function:

SetTraceAttribute (panelHandle, PANEL_STRIPCHART, 1, ATTR_TRACE_LG_TEXT, "Moisture sensor");

Tags: NI Software

Similar Questions

  • more same trace name

    I have table of waveform with plot more than Ditto and I want to assign the name of single Ditto before the start of the program... How can I missionattribue the name of simple concession Ditto?

    tanks for help

    You can use property nodes.

    How can I programmatically set the names of several plots in the plot legend?

  • Name for the DB file conversion

    Dear friends

    Here is my init .ora file

    I have an application working on a database called PRDSPRT, I cloned this server of database on a new server to install a custodian of data on this subject the db_name should be the same as his need for the application

    How can I install the DBfile _ name convert?

    & the log_file convert its pointing to the same path now

    * ._b_tree_bitmap_plans = FALSE # required 11i setting

    * ._fast_full_scan_enabled = FALSE

    * ._like_with_bind_as_equality = TRUE

    * ._sort_elimination_cost_ratio = 5

    * ._sqlexec_progression_cost = 2147483647

    * ._system_trig_enabled = true

    * ._trace_files_public = TRUE

    * .aq_tm_processes = 1

    *.background_dump_dest='/oracle/dev2/d01/db/tech_st/10.2.0/admin/PRDSPRT_srv-hq-on01/bdump'

    * full = '10.2.0'

    *.control_files='/oracle/dev2/d01/db/apps_st/data/cntrl01.dbf','/oracle/dev2/d01/db/apps_st/data/cntrl02.dbf','/oracle/dev2/d01/db/apps_st/data/cntrl03.dbf'

    *.core_dump_dest='/oracle/dev2/d01/db/tech_st/10.2.0/admin/PRDSPRT_srv-hq-on01/cdump'

    * .cursor_sharing = "TRUE" # required 11i settting

    * .db_block_checking = "FALSE".

    * .db_block_checksum = 'TRUE '.

    * .db_block_size = 8192

    * .db_file_multiblock_read_count = # required 8 put 11i

    * .db_files = 512 # Max database files lol

    * .db_name = "PRDSPRT".

    * .db_unique_name = "PROD".

    * .dml_locks = 10000

    * .job_queue_processes = 50

    * .event = "10298 trace name forever, context level 32.

    *. LOG_ARCHIVE_DEST_1 = ' LOCATION = / oracle/dev2/d01/db/archive.

    *. LOG_ARCHIVE_FORMAT='%t_%s_%r.dbf'

    * .log_buffer = 10485760

    * .log_checkpoint_interval = 100000

    * .log_checkpoint_timeout = 1200 # control point at least every 20 minutes.

    * .log_checkpoints_to_alert = TRUE

    * .max_dump_file_size = size of the trace file '20480' #.

    * .nls_comp = "binary" 11i parameter # required

    * .nls_date_format = "DD-MON-RR.

    * .nls_language = "to the American.

    * .nls_length_semantics = "BYTE" # required put 11i

    * .nls_numeric_characters ='.,'

    * .nls_sort = "binary" 11i parameter # required

    * .nls_territory = "america."

    * .olap_page_pool_size = 4194304

    * .open_cursors = process memory consumes 600 #, unless you use MTS.

    * .optimizer_secure_view_merging = false

    * .parallel_max_servers = 20

    * .parallel_min_servers = 0

    * .pga_aggregate_target = 1 G

    * .plsql_code_type 'INTERPRETED' = # 11i preset

    *.plsql_native_library_dir='/oracle/dev2/d01/db/tech_st/10.2.0/plsql/nativelib'

    * .plsql_native_library_subdir_count = 149

    * .plsql_optimize_level = 2 # required put 11i

    * runoff = # 500 max. lol x 2 users

    * .session_cached_cursors = 500

    * Once = process X 400 # 2

    * .sga_target = 2G

    * .shared_pool_reserved_size = 500 M

    * .shared_pool_size = 1 G

    * .timed_statistics = true

    * .undo_management = "AUTO" # required put 11i

    * .undo_tablespace = "APPS_UNDOTS1" # required put 11i

    *.user_dump_dest='/oracle/dev2/d01/db/tech_st/10.2.0/admin/PRDSPRT_srv-hq-on01/udump'

    *.utl_file_dir='/usr/tmp','/usr/tmp','/patch/ora_tmp/PROD','/Oracle/DEV2/D01/DB/tech_st/10.2.0/appsutil/outbound/PRDSPRT_srv-HQ-on01','/usr/tmp '

    * .workarea_size_policy = "AUTO" # required put 11i

    * .remote_login_passwordfile = "EXCLUSIVE."

    #standbydbsetup

    DB_UNIQUE_NAME = PROD

    SERVICE_NAME = PROD

    #Physical db ensures

    log_archive_config = "DG_CONFIG = (PROD, TEST)"

    log_archive_dest1 = "LOCATION = / oracle/dev2/d01/db/archive /"

    VALID_FOR = (ALL_LOGFILES, ALL_ROLES)

    DB_UNIQUE_NAME = PROD'

    log_archive_dest2 = "SERVICE = TEST LGWR ASYNC

    VALID_FOR = (ONLINE_LOGFILES, PRIMARY_ROLE)

    DB_UNIQUE_NAME = TEST'

    log_archive_dest_state_1 = enable

    LOG_ARCHIVE_DEST_STATE_2 = enable

    log_archive_max_processes = 15

    #failover settings

    * .fal_Server = TEST

    * .fal_client = PROD

    db_file_name_convert = ('/ oracle/dev2/d01/db/Archives / ',' / oracle/dev2/d01/db/Archives /',)

    Oracle/dev2/d01/db/apps_st/data / ',' / oracle/dev2/d01/db/apps_st/data / ")"

    log_file_name_convert =('/Oracle/DEV2/D01/DB/Archive/','/Oracle/DEV2/D01/DB/Archive/')

    standby_file _managemnt = auto

    data guard.jpg

    Hello

    If the new server or secondary server has the same directory as the primary structure or old, so you don't have to worry about these settings.

    (Edit)

    You can read about the settings in the following link:

    https://docs.Oracle.com/CD/E11882_01/server.112/e41134/create_ps.htm#i76119

    Concerning

    Juan M

  • SQL trace

    Hello

    I know how to generate sql trace of user session that follows.

    SQL > ALTER SESSION SET EVENTS 10046 trace name forever, context level 12';

    SQL > alter session set tracefile_identifier = "xyz";

    I want to know how to generate sql trace system (or any other account) from different machine when working some of the user databases with SQL and PLSQL on another computer and access the database.

    concerning

    EXEC DBMS_SYSTEM.set_sql_trace_in_session (211, 23084, TRUE);

    EXEC DBMS_SYSTEM.set_ev (211, 23084, 10046, 12, 'test');

    You do not use both.  Use set_sql_trace_in_session (preferred) or set_ev (not officially supported).

    But I want to find other user sessions.

    Yes, an account with EXECUTE on DBMS_SYSTEM (for example with the DBA role) can use dbms_system.set_sql_trace_in_session to enable tracing to another session.

    Note that the name of the trace file is by processID of BONES of the dedicated server process (i.e. the SPID in V$ PROCESS for this session)

    Hemant K Collette

  • How to find the trace file

    Hi all

    I generated a trace to help file:

    SQL > alter system set events "1940 trace name errorstack level 3";

    Modified system.

    SQL > drop user RHUNTER1;
    Drop user RHUNTER1
    *
    ERROR on line 1:
    ORA-01940: cannot delete a user who is currently logged on

    "SQL > alter system set ' 1940 trace name errorstack off events."

    Modified system.


    It's oracle database 10 g 2. Now, I checked for file trace udump. but there are a lot of generating a minute trace files. How can I find the exact trace file.

    Please help to find it.

    Thank you

    Here is the SQL that will tell you what will be your trace file name:

    MPOWEL01> l
      1   select i.value||'_ora_'||p.spid||'.trc'
      2    from v$process p, v$session s,
      3      (select value from v$parameter where name = 'instance_name') i
      4    where p.addr = s.paddr
      5*  and s.sid = userenv('sid')
    MPOWEL01> /
    
    I.VALUE||'_ORA_'||P.SPID||'.TRC'
    --------------------------------------------------------------------------------
    XXXX_ora_3014738.trc
    

    I built my own code to do this, but the above is leave a blog link, I save to the reading of the trace that you created in your session. See
    http://dioncho.WordPress.com/2009/03/19/

    HTH - Mark D Powell.

  • ORA-01438: how to find the name of the column?

    Hello

    I'm trying to find the column which is causing ORA-01438 when inserting into a table.

    The insertion is made by a C program that reads from a socket and written in an oracle 10 g database using Oracle Pro * C.

    I tried to identify the column by printing the values (about 250) just before the insert statement is executed, but check these values has been a task heavy and error prone and did not help to correct the mistake (I found a bunch of values which out of reach, but changing these values has not resolved the issue).

    Abandon this idea, I tried to track the session to help
    (1) DBMS_SYSTEM. SET_SQL_TRACE_IN_SESSION,
    (2) DBMS_MONITOR.session_trace_enable/disable and still
    (3) change the context name system set events 10046 trace forever, level 12' and;
    (4) alter system set sql_trace = true scope = mΘmoire;

    DBMS_MONITOR.session_trace_enable only gave me a few tips (the insert statement) in a trace file. But it worked for a simple example of a test database.

    When I try to turn on tracing on the database, where the error occurs, then I'm still not able to set SQL_TRACE in V$ SESSION true, even if no error is returned by the statement "DBMS_MONITOR.session_trace_enable". The value of SQL_TRACE in V$ SESSION does not change and I have no idea why. On the test database, it works fine and I can find the trace file in the user_dump_destination directory.

    Anyone have any suggestions on how to fix this?

    Any help is appreciated.
    Thanks in advance!

    Just check this:

    SQL > conn osama/osama ;
    SQL> create table test as select * from scott.dept ;
    
    SQL> select * from test ;
    
        DEPTNO DNAME          LOC
    ---------- -------------- -------------
            10 ACCOUNTING     NEW YORK
            20 RESEARCH       DALLAS
            30 SALES          CHICAGO
            40 OPERATIONS     BOSTON
    
    SQL> alter system set events='1438 trace name Errorstack forever,level 10';
    
    SQL> insert into test values (100000000000000000,'osama','JOR');
    insert into test values (100000000000000000,'osama','JOR')
                             *
    ERROR at line 1:
    ORA-01438: value larger than specified precision allowed for this column
    
    In Trace File :
    
    ORA-01438: value larger than specified precision allowed for this column
    Current SQL statement for this session:
    insert into test values (100000000000000000,'osama','JOR')
    
  • trace file not found

    using linux 5.7 (32 bit) and oracle 11 g relase 2

    SQL > select name, value from v$ diag_info;

    NAME
    ----------------------------------------------------------------
    VALUE
    --------------------------------------------------------------------------------
    Diag activated
    TRUE

    Basis of the ADR
    / Home/Oracle/u01/app/Oracle

    Home of the ADR
    / Home/Oracle/u01/app/Oracle/diag/RDBMS/looking4/looking4


    NAME
    ----------------------------------------------------------------
    VALUE
    --------------------------------------------------------------------------------
    Trace of Diag
    / Home/Oracle/u01/app/Oracle/diag/RDBMS/looking4/looking4/trace

    Diag warning
    / Home/Oracle/u01/app/Oracle/diag/RDBMS/looking4/looking4/Alert

    Diag incident
    / Home/Oracle/u01/app/Oracle/diag/RDBMS/looking4/looking4/incident


    NAME
    ----------------------------------------------------------------
    VALUE
    --------------------------------------------------------------------------------
    Diag Cdump
    / Home/Oracle/u01/app/Oracle/diag/RDBMS/looking4/looking4/cdump

    Health monitor
    / Home/Oracle/u01/app/Oracle/diag/RDBMS/looking4/looking4/HM

    Default Trace file
    / Home/Oracle/u01/app/Oracle/diag/RDBMS/looking4/looking4/trace/looking4_ora_4327
    .TRC

    NAME
    ----------------------------------------------------------------
    VALUE
    --------------------------------------------------------------------------------

    Count of active problem
    0

    Active County Incident
    0


    11 selected lines.

    now when I check
    ls - al looking4_ora_43 *.
    -rwxrwxr-x 1 oracle oinstall 2960 22 August at 09:59 looking4_ora_4300.trc
    -rwxrwxr-x 1 oracle oinstall 182 22 August at 09:59 looking4_ora_4300.trm
    -rwxrwxr-x 1 oracle oinstall 2957 17 Aug 10:29 looking4_ora_4306.trc
    -rwxrwxr-x 1 oracle oinstall 180 17 Aug 10:29 looking4_ora_4306.trm
    -rw - r - 1 oracle oinstall 2957 30 August at 10:38 looking4_ora_4325.trc
    -rw - r - 1 oracle oinstall 181 30 August at 10:38 looking4_ora_4325.trm
    -rw - r - 1 oracle oinstall 2956 24 August at 15:56 looking4_ora_4380.trc
    -rw - r - 1 oracle oinstall 181 24 August at 15:56 looking4_ora_4380.trm
    -rwxrwxr-x 1 oracle oinstall 2942 14 August at 10:18 looking4_ora_4394.trc
    -rwxrwxr-x 1 oracle oinstall 178 14 August at 10:18 looking4_ora_4394.trm
    [oracle@unknown485b39d0b515 path] $ pwd
    / Home/Oracle/u01/app/Oracle/diag/RDBMS/looking4/looking4/trace

    So where is
    looking4_ora_4327?
    Thanks in advance

    There is no trace file to your/home/oracle/u01/app/oracle/diag/rdbms/looking4/looking4/trace/looking4_ora_4327, because the current user's session is not under the tracing. See the example below:

    I have connected as a user scott and here is the result:

    SQL> column value for a50;
    SQL> /
    
    NAME                                                             VALUE
    ---------------------------------------------------------------- --------------------------------------------------
    Diag Enabled                                                     TRUE
    ADR Base                                                         e:\app\serverroom
    ADR Home                                                         e:\app\serverroom\diag\rdbms\orcl\orcl
    Diag Trace                                                       e:\app\serverroom\diag\rdbms\orcl\orcl\trace
    Diag Alert                                                       e:\app\serverroom\diag\rdbms\orcl\orcl\alert
    Diag Incident                                                    e:\app\serverroom\diag\rdbms\orcl\orcl\incident
    Diag Cdump                                                       e:\app\serverroom\diag\rdbms\orcl\orcl\cdump
    Health Monitor                                                   e:\app\serverroom\diag\rdbms\orcl\orcl\hm
    Default Trace File                                               e:\app\serverroom\diag\rdbms\orcl\orcl\trace\orcl_
                                                                     ora_8056.trc
    

    This means, if my session track, so I check the file e:\app\serverroom\diag\rdbms\orcl\orcl\trace\orcl_ora_8056.trc for this session right? OK, what happens if I disconnect and reconnect:

    NAME                                                             VALUE
    ---------------------------------------------------------------- --------------------------------------------------
    Diag Enabled                                                     TRUE
    ADR Base                                                         e:\app\serverroom
    ADR Home                                                         e:\app\serverroom\diag\rdbms\orcl\orcl
    Diag Trace                                                       e:\app\serverroom\diag\rdbms\orcl\orcl\trace
    Diag Alert                                                       e:\app\serverroom\diag\rdbms\orcl\orcl\alert
    Diag Incident                                                    e:\app\serverroom\diag\rdbms\orcl\orcl\incident
    Diag Cdump                                                       e:\app\serverroom\diag\rdbms\orcl\orcl\cdump
    Health Monitor                                                   e:\app\serverroom\diag\rdbms\orcl\orcl\hm
    Default Trace File                                               e:\app\serverroom\diag\rdbms\orcl\orcl\trace\orcl_
                                                                     ora_8752.trc
    

    This means, now I'll look in e:\app\serverroom\diag\rdbms\orcl\orcl\trace\orcl_ora_8752.trc for any information of tracing; only if it's to be see trace:

    SQL> host dir e:\app\serverroom\diag\rdbms\orcl\orcl\trace\orcl_ora_8752.trc;
     Volume in drive E is HCL_DISK3
     Volume Serial Number is A62A-F491
    
     Directory of e:\app\serverroom\diag\rdbms\orcl\orcl\trace
    
    File Not Found
    
    SQL> alter session set events '10046 trace name context forever,level 12';
    
    Session altered.
    
    SQL> host dir e:\app\serverroom\diag\rdbms\orcl\orcl\trace\orcl_ora_8752.trc;
     Volume in drive E is HCL_DISK3
     Volume Serial Number is A62A-F491
    
     Directory of e:\app\serverroom\diag\rdbms\orcl\orcl\trace
    
    30-08-2012  13:39                 0 orcl_ora_8752.trc
                   1 File(s)              0 bytes
                   0 Dir(s)  121,181,003,776 bytes free
    
    SQL> alter session set events '10046 trace name context off';
    
    Session altered.
    
    SQL> host dir e:\app\serverroom\diag\rdbms\orcl\orcl\trace\orcl_ora_8752.trc;
     Volume in drive E is HCL_DISK3
     Volume Serial Number is A62A-F491
    
     Directory of e:\app\serverroom\diag\rdbms\orcl\orcl\trace
    
    30-08-2012  13:39                 0 orcl_ora_8752.trc
                   1 File(s)              0 bytes
                   0 Dir(s)  121,181,003,776 bytes free
    
    SQL>
    

    So, in short, you get the trace file, if the current session is currently tracing.

    Concerning
    Girish Sharma

  • Trace another session in 9.2.0.6

    Hello
    I mainly use oradebug to framework 10046 trace event in the other session.
    It works without problem, until I hit 9.2.0.6 old DB on WINDOWS 2000.
    Whenever I use this approach
    ORADEBUG SETOSPID &OSPID ;
    ORADEBUG EVENT 10046 TRACE NAME CONTEXT FOREVER, LEVEL 12;
    ORADEBUG TRACEFILE_NAME;
    
    
    Traced process gives:
    ORA-03113: end-of-file on communication channel
    I tried exec dbms_system.set_ev(10,20,10046,12,''); unsuccessfully as well (same error).

    How to deal with this kind of old software on Windows 2000?
    Please advice with real life experience that I have read the doc :).
    Concerning
    GregG

    It should work. bug seems to me. you know what's going to happen if you connect to a call then try the package dbms_support if its installed. get the sid series of the session you want.

    You can install the pkg of rdbms/admin is it is not already.

    run dbms_support.start_trace_in_session (: sid: series, wait-online true, lie-online false);
    run dbms_support.stop_trace_in_session (: sid: series);

  • Is Oracle 9i - possible to trace the amount of rollback instructions?

    Hello

    We lack Oracle 9.2.0.5.0, and we need to monitor the amount of rollback statements executed on a specific table.
    Marketing of traces for "set Event 10046 trace name context forever, level 1' ' would be too intrusive in light of the current system load that I was wondering if there is no faster way to do.

    Thanks in advance!

    Mike

    Maybe you can use minor journal to search in the column the OPERATION of v $ LOGMNR_CONTENTS ROLLBACK?

  • trace event 10046 - missing privileges

    Hello

    Version 11201
    Please notice what privileges are missing:

    SQL > ALTER SESSION SET events 10046 trace name forever, context level 12';
    ERROR:
    ORA-01031: insufficient privileges

    Thank you

    AllYourDataBase wrote:
    I guess that the privilege of the "alter session".

    I would also say that, but I have the documentation to prove also good :)

    http://download.Oracle.com/docs/CD/B19306_01/network.102/b14266/AppendixA.htm#CHDIBAJE

    "
    Note that the ALTER SESSION privilege is required to set events. Very few users of database should require the alter session privilege.

    SQL > ALTER SESSION SET EVENTS...

    The alter session privilege is not required for other orders of alter session.

    SQL > ALTER SESSION SET NLS_TERRITORY = FRANCE;
    "

  • trace of the user with bind variables

    Hi all

    10.2.0.4 on solaris 10

    Followed a user session, once the connection to the database, using the below
    create or replace trigger login_trigger 
    after logon on database 
      begin 
         if (USER in ('MED','MEDT')) then 
    execute immediate 
        'ALTER SESSION SET EVENTS ''10046 TRACE NAME CONTEXT FOREVER, LEVEL 4'''; 
         end if; 
      end; 
    /  
    I understand that the level 4 will be the value of the variables bind inside... but isn't the generated trace file
    the value of the variable bind as you can see below

    PARSE ERROR #7:len=261 dep=0 uid=196 oct=3 lid=196 tim=12004802132819 err=907
    select :"SYS_B_0"  from ORM_RESTRICTED_CAT_BAL_ORD where (((CONTRACT_CAT=:b0 and ORDER_NO=:b1) and PREPOST_PAID in (:b2:b3,:"SYS_B_1")) and ((TRUNC(SYSDATE)>=
    TRUNC(FROM_DATE) and TO_DATE is null ) or TRUNC(SYSDATE) between TRUNC(FROM_DATE) and TRUNC(TO_DATE)))
    Am I missing something?

    KaiS wrote:
    =====================
    PARSE ERROR #7:len = 261 dep = 0 = 95 oct cover 3 = uid = 95 tim = 12005421332712 err = 907
    Select: 'SYS_B_0' from ORM_RESTRICTED_CAT_BAL_ORD where (((CONTRACT_CAT =: b0 et ORDER_NO =: b1) and PREPOST_PAID in (: b2:b3,: 'SYS_B_1')) and ((TRUNC (SYSDATE) > =)))
    TRUNC (from_date) and TO_DATE is null) or trunc (sysdate) between TRUNC (FROM_DATE) and TRUNC (TO_DATE)))

    Looks like you got a parse error. You got yet to the phase of binding of variables again so I don't expect to see in the trace file.

  • Need help return correct name of a created the code clip

    Hello. I'm a n00b AS3 with fortunately we a simple question I am designing a simple flash game. Copy the following code creates an array of video clips and the bsigns a photo for each of them. It is a map screen. What I need, it is when I click on one of the created movie clips, I need to return either the index of the item in the table or the name of the clip. Basically everything that I can use to differentiate them in the code. Here is the code:

    import flash.display.MovieClip;
    var MapLoader:Array = new Array();
    var strJPGext:String = ".jpg";
    var intContTileNumber:int;
    var strContTilePath:String;
    var intDistStartX:int = 63;
    var intDistStartY:int = 64;
    var intDistMultiplyY:int = 0;
    var intDistMultiplyX:int = 0;
    var intDistCount:int = 0;
    var MapSquare:Array = new Array();

    for (var i: int = 0; i < 729; i ++)
    {
    var MapSquare:MovieClip = new MovieClip();
    MapSquare.push (new MovieClip());
    MapSquare [i] .x = intDistStartX + (intDistMultiplyX * 30);
    MapSquare [i] there = intDistStartY + (intDistMultiplyY * 30);
    MapSquare [i] .name = "MapSquare" + i;
    addChild (MapSquare [i]);
    intContTileNumber = i;
    MapLoader.push (new Loader);
    strContTilePath = intContTileNumber + strJPGext;
    MapLoader [i] .load (new URLRequest (strContTilePath));
    MapSquare [i] .addChild (MapLoader [i]);

    intDistCount ++;
    intDistMultiplyX ++;

    If {(intDistCount > 26)
    intDistCount = 0;
    intDistMultiplyX = 0;
    intDistMultiplyY ++;
    }

    }

    stage.addEventListener (MouseEvent.CLICK, reportClick);
    function reportClick(event:MouseEvent):void
    {
    trace ("name of the movieClip Instance =" + event.target.name);
    }

    Now, it all works very well, it creates the plan and assigns the correct image and places them in the good X, position Y and this is the good 27 x 27 squares grid. The problem is with the name, when I click on the clip, it returns "Instance2" or "Instance5" or something else. It starts by 2 and then increases each number by 3 for each clip, so the first is 2, then 5, then 8 and so on. This is not good. I need to return the name I have given
    . If I put the code in trace(MapSquare[1]) it will return the name 'MapSquare1' so I know has been assigned the name, but it is not returning.

    Please help

    Thank you

    -Red

    Add event listeners just like anything else you set in the loop for...

    MapSquare [i] .addEventListener (MouseEvent.CLICK, reportClick);

    They can all use the same event handler function, so there is no problem.

  • Not recognized through e.target.name BTN.

    Hello!

    I had this publication in another post I had who replied and he also had a post lame name so I have it published here!

    I can't understand why my code here does not work... (I guess that's pretty obvious, or I wouldn't announce it!) ).

    Could you take a look at this and possible, you can identify what it is that I am wrong?

    I get the error message:

    TypeError: Error #2007: url parameter must be non-null.

    at flash.display::Loader/_load()

    at flash.display::Loader/load()

    at asFiles.reality::RealityScenarios/loadImage() [C: (networkpath) .as:226]

    Here is where is the line 226:

    
    public function loadImage(e:MouseEvent):void {
         imageHolder = new MovieClip;
         imageLoader = new Loader;
         imageLoader.load(new URLRequest (subImageArray[Number.e.target.name)]));  //THIS IS LINE 226
         imageHolder.addChild(imageLoader);
         imageHolder.x = 75;
         imageHolder.y = 75;
         addChild(imageHolder);
    }
    
    

    e.Target.Name then refers to this:

    
    public function addButtonEffects():void {
    bp.addEventListener(MouseEvent.CLICK,previousSubject);
    b1.addEventListener(MouseEvent.CLICK,loadImage);  //I CLICKED THIS BUTTON IN PARTICULAR BUT THE SAME ERROR OCCURS FOR  b2, b3, AND b4
    b2.addEventListener(MouseEvent.CLICK,loadImage);
    b3.addEventListener(MouseEvent.CLICK,loadImage);
    b4.addEventListener(MouseEvent.CLICK,loadImage);
    bn.addEventListener(MouseEvent.CLICK,nextSubject);
    }
    
    

    then, referring to this code:

    public function drawButtons():void { 
         var ba:Array = new Array();
         ba.push(bp,b1,b2,b3,b4,bn)
         for(var i:uint=0;i<ba.length;i++) {
              addChild(ba[i]);
              ba[i].x = 390 + i* 100;
              ba[i].y = 900;
         }
         for(var j:uint=0;j<1;j++) {
              trace(ba[j]);
              btnBack = new BtnBack();
              ba[j].addChild(btnBack)
              ba[j].buttonMode=true;
              
         }
         
         for(var k:uint=1; k<5; k++) {
              trace(name + ba[k]);
              ba[k].name = k; //HERE IS NAME
                        
              textfield = new TextField();
              textfield.text = realityArray.shift();
              textfield.setTextFormat(realityformat);
              textfield.autoSize = TextFieldAutoSize.LEFT;
              textfield.selectable = false;
              textfield.antiAliasType = AntiAliasType.ADVANCED;
              textfield.embedFonts = true;
              textfield.scaleX = .2;
              textfield.scaleY = .2;
                        
              ba[k].x = 640;
              ba[k].y = 900;
              ba[k].addChild(textfield);
              ba[k].buttonMode=true;
              addChild(ba[k]);
                                            
              TweenLite.to(ba[k], 1, {x:380 + k * 100, y:880, scaleX:4, scaleY:4});
         }
                   
         for(var l:uint=5;l<6;l++) {
              trace(ba[l]);
              btnNext = new BtnNext();
              ba[l].addChild(btnNext);
                             }
         
         addButtonEffects();
    }
    

    I hope that's not too complicated and makes sense!

    I appreciate the help!

    Number.e.target.name
    

    should be

    Number(e.target.name)
    

    but you probably want:

    Number(e.currentTarget.name)
    
  • Statistics 'Lines' of STAT in the trace event 10046, Oracle 11 g.

    Hi all!

    Why the statistical "Rows" in STAT are different for 10g and 11g?

    I have two database with version 10g and 11g, with the same data.
    I executed pl/sql code with 10046 trace level 8.
    And I get different results when get a raw trace.
    In 10g I get statistical lines for all executions - lines = 7.
    11 g I get statistics lines first executions - lines = 1. Why?


    See my example:
    declare
         type t_name_tbl is table of varchar2(30) index by binary_integer;
         v_name_tbl t_name_tbl;
         v_len      number := 10;
    begin
         execute immediate 'alter session set timed_statistics = true ';
         execute immediate 'alter session set statistics_level=all ';
         execute immediate 'alter session set max_dump_file_size = unlimited ';
         execute immediate 'alter session set events ''10046 trace name context forever,level 8'' ';
    
         loop
           select cour_name bulk collect
                into v_name_tbl
               from country t
              where length(t.cour_name) = v_len;
         
           exit when v_len = 0;
           v_len := v_len - 1;
           for i in 1 .. v_name_tbl.count loop
             dbms_output.put_line(v_name_tbl(i));
           end loop;
         end loop;
    
    end;
    Result Tkprof to Oracle 10g:
    SELECT COUR_NAME 
    FROM
     COUNTRY T WHERE LENGTH(T.COUR_NAME) = :B1 
    
    
    call     count       cpu    elapsed       disk      query    current        rows
    ------- ------  -------- ---------- ---------- ---------- ----------  ----------
    Parse        1      0.00       0.00          0          0          0           0
    Execute     11      0.00       0.00          0          0          0           0
    Fetch       11      0.01       0.00          0         44          0           7
    ------- ------  -------- ---------- ---------- ---------- ----------  ----------
    total       23      0.01       0.00          0         44          0           7
    
    Misses in library cache during parse: 0
    Optimizer mode: ALL_ROWS
    Parsing user id: 649     (recursive depth: 1)
    
    Rows     Row Source Operation
    -------  ---------------------------------------------------
          7  TABLE ACCESS FULL COUNTRY (cr=44 pr=0 pw=0 time=1576 us)
    Tkprof to Oracle 11g result:
    SQL ID: 3kqmkg8jp5nwk
    Plan Hash: 1371235632
    SELECT COUR_NAME 
    FROM
     COUNTRY T WHERE LENGTH(T.COUR_NAME) = :B1 
    
    
    call     count       cpu    elapsed       disk      query    current        rows
    ------- ------  -------- ---------- ---------- ---------- ----------  ----------
    Parse        1      0.01       0.00          0          0          0           0
    Execute     11      0.02       0.01          0          0          0           0
    Fetch       11      0.00       0.01          3         44          0           7
    ------- ------  -------- ---------- ---------- ---------- ----------  ----------
    total       23      0.03       0.02          3         44          0           7
    
    Misses in library cache during parse: 1
    Misses in library cache during execute: 1
    Optimizer mode: ALL_ROWS
    Parsing user id: 82     (recursive depth: 1)
    
    Rows     Row Source Operation
    -------  ---------------------------------------------------
          1  TABLE ACCESS FULL COUNTRY (cr=4 pr=3 pw=0 time=0 us cost=2 size=44 card=2)
    Can I read about it?

    Oracle 11g default written execution plan (lines in the raw trace STAT file) after the first execution of the SQL statement, while before 11 g, the execution plan is written when the slider is closed.

    The behavior in 11g can be controlled by changing the parameter PLAN_STAT of the call that allows the monitoring of the default value of FIRST_EXECUTION to ALL_EXECUTIONS:
    http://download.Oracle.com/docs/CD/B28359_01/AppDev.111/b28419/d_sessio.htm#i1010518

    Charles Hooper
    Co-author of "Expert Oracle practices: Oracle Database Administration of the Oak Table.
    http://hoopercharles.WordPress.com/
    IT Manager/Oracle DBA
    K & M-making Machine, Inc.

    Published by: Charles Hooper on August 9, 2010 15:33
    The default value on 11g is FIRST_EXECUTION, while the behavior before 11 g is ALL_EXECUTIONS - fixed the incomplete sentence.

  • How can I verify and change the system set trace events?

    Hi all:
    How can I check that the system set trace level events? I don't want the big alert_log.





    Concerning
    Terry

    To disable the use of the event

    ALTER SYSTEM SET EVENTS '20 trace name ERRORSTACK OFF';
    

    HTH
    Srini

Maybe you are looking for