How to trace tcl variable incvi

now,I have some problems in labwindows\cvi.I use the cvi to make a UI. It was used to invoke a Tcl script which execute independent in a tcl file,and in cvi ,I want to trace the variable in tcl script.There is a C function called Tcl_Tracevar(interp,varName,flags,proc,clientData)​,can i use it in cvi to trace variable in tcl ?if not ,how can i trace the variable? 
                                                                                                                    thanks a lot

when i export my movies Im so worried  to see if it work that  i clicked the button that trigger the function exportxml before the actual my_variableXML is created , so is normal that the code above didnt work... so all is normal and it work... sorry i will think 10 time before posting next time. promess .

Similar Messages

  • How  to trace() a variable nested inside another clip that is created at run time by the user ???

    Hi again Now i have another problem
    i explain :  on my stage i have 24 instance MC Page created at runtime (when cliked the button execute 24 instance MC Page from the library). Each of those MC Page create an xml  with infos (not important), this variable_XML created is nested inside each MC Page.. From my stage i want to call each XML from each MC Page  for make 1 unic  big xml, then send it to the server.
    So from the main stage i created a button that call each xml of each MC Page (there is a definit number of Page only 24, no more, no less). So
    when the 24 instances of the MC Page are created I push there instance name inside an Array "Page_Array". Now in my function exportxml
    i use get ChildByName(Page_array[number]) for find them then i can apply my method to the according MCPage.. Until here no problem, trace(dispObject.name) work. but when i try to get my variable inside the MC Page : trace(dispObject.my_variableXML), it doesnt work...Why ??
    here is my function (only 1 page for this example ):
    function exportxml(evt:MouseEvent):void {
        dispObject=getChildByName(Page_Array[0]);
        trace(dispObject.name); //trace  Page1
         trace(dispObject.my_variableXML);// here it dont trace the variableXML
    normally if i trace(Page1.my_variableXML); , it should trace "my_varableXML"  no ??

    when i export my movies Im so worried  to see if it work that  i clicked the button that trigger the function exportxml before the actual my_variableXML is created , so is normal that the code above didnt work... so all is normal and it work... sorry i will think 10 time before posting next time. promess .

  • How to trace Very Long SQL and PLSQL?

    Hi,
    i need an advice on how to trace very long PLSQL as iam new to my company and the business is very new to me , i am a very good developer using Developer suite , but my weak point is tracing very long packages and undestand them ,
    i want to trace a Procedure that have a LOT of lines of code and it calls many other packages, i really need to be quick in undestading what this procedre is doing as i should solve my problem in appropriate time
    i am using dbms_output.put_line for tracing, to know what is the path that is taken and the variable values but i think i need a totaly different approach
    also there are some sqls in this system that is very long, some of them is joining more than 10 tables at the same time, any hint to understand what this sql is doing?
    any help is appreciated.

    There is a trace facility for PL/SQL, but if you use it find a GUI interface. Trying to get it to work in SQL*PLUS standalone was painful. I think its supported by the major GUI tools like TOAD and PL/SQL developer but have not used it myself.
    Other tools you can work with to help you debug and tune PL/SQL include Oracle trace (which analyzes SQL for efficiency, with an interpreter called tkprof) and DBMS_PROFILER. DBMS_PROFILER requires some initial set-up but can analyze PL/SQL code line by line and if used carefully function as a sort of limited trace.
    Good luck!

  • Dataloss in network... How to trace it..?

    Hi,
    Though this question is related to SAP XI and SMICM trace, I feel this question can also be answered by people in WebAs General, so i am posting this in this forum.
    In my current scenario where SAP XI system pushes data to another system(ABC system) using HTTPS connection. I have set up an RFC destination of Type G to connect to the external system.
    When i do a Test connection, i see in SMICM log file, i found that connection established, request message written into ABC system.When response is being written i could find BINDUMP of content denied in the SMICM log file. What does that exactly mean..?
    Also When i contacted the other party--ABC, they have told that they could not see any messages in their system.
    XI shows successfully processed and ABC system did not receive the message... So where did the data go?? I have no clue :-(( Need your inputs in this regard. How to trace if the message has been successfully posted by XI. Below is the SMICM log file.
    [Thr 5880] IcmConnConnect: direct connect to www2.ABC.com:443
    [Thr 5880] nihsl-getHostAddr: found hostname '.www2.ABC.com' in cache
    [Thr 5880] nihsi-getHostAddr: hostname '.www2.ABC.com' = addr 16.256.48.91
    [Thr 5880] nihsi-getServNo: servicename '443' = port 01.BB/0443
    [Thr 5880] NiCreateHandle: state hdl 23 / socket -1 NI_INITIAL
    [Thr 5880] NiIBlockMode: switch off block-mode for hdl 23 / socket -1
    [Thr 5880] NiLowLevCon: connect to: host 16.256.48.91, port 01.BB/0443, fam 2 (low adr..high adr)
    [Thr 4532] [Thr 4532] NiISelect: fds in write-mask: [Thr 5880] NiIInitSocket: set default settings for socket 65268
    [Thr 5880] NiISocket: hdl 23 got socket 65268
    [Thr 5880] NiPBlockMode: set socket 65268 to NONBLOCK mode
    [Thr 4532]
    [Thr 5880] NiPConnect: connect in progress
    [Thr 5880] SiPeekPendConn: connection of socket 65268 established
    [Thr 5880] NiLowLevCon: took local port 10.1B/4123
    [Thr 5880] nilh-localCheck: using local address list
    [Thr 5880] NiSetStat: state hdl 23 NI_CONNECTED
    [Thr 5880] ->> SapSSLSessionInit(&sssl_hdl=015BC3DC, role=1 (CLIENT), auth_type=3 (USE_CLIENT_CERT))
    [Thr 5880] <<- SapSSLSessionInit()==SAP_O_K
    [Thr 5880] in: args = "role=1 (CLIENT), auth_type=3 (USE_CLIENT_CERT)"
    [Thr 5880] out: sssl_hdl = 19193D20
    [Thr 5880] ->> SapSSLSetNiHdl(sssl_hdl=19193D20, ni_hdl=23)
    [Thr 5880] IcmPlCheckRetVal: Next status: WRITE_REQUEST(3)
    [Thr 5880] IcmConnRollInWP: no need to roll in WP status: ROLLED IN
    [Thr 5880] MPI<12ee>0#7 GetInbuf 5 1489e0 2179 (1) -> 6
    [Thr 5880] NiPBlockMode: set socket 65268 to NONBLOCK mode
    [Thr 5880] NiPSockGetStatus: socket 65268 ok, no data pending
    [Thr 5880] NiPBlockMode: set socket 65268 to BLOCK mode
    [Thr 5880] IcmReadFromPartner(id=0/4693): fe-nihdl timeout
    [Thr 5880] PlugInHandleServData: role: 2, status: 3, content-length: 0/0
    buf_len: 2127, buf_offset: 0, buf_status: 6
    [Thr 5880] HttpParseRequestHeader: content length: 1805
    [Thr 5880] HttpParseRequestHeader: no transfer-encoding set
    [Thr 5880] HttpParseRequestHeader: Version: 1000
    [Thr 5880] HttpParseRequestHeader: Keep-Alive: 0
    [Thr 5880] IcmPlCheckRetVal: Next status: READ_RESPONSE(2)
    [Thr 5880] IcmHandleNetWrite(id=0/4693): HandleServData returned: 2
    [Thr 5880] BINDUMP of content denied
    [Thr 5880] IcmWriteToConn(id=0/4693): prepared to write data to partner (len = 2127)
    [Thr 5880] ->> SapSSLWrite(sssl_hdl=19193D20, buf=061F8A74, len=2127, timeout=2000, &writelen=123EFF24)
    [Thr 5880] <<- SapSSLWrite(sssl_hdl=19193D20)==SAP_O_K
    [Thr 5880] result = "written= 2127 of 2127 (all)"
    [Thr 5880] IcmWriteToConn(id=0/4693): wrote data to partner (len = 2127)
    [Thr 5880] MPI<12ee>0#8 FreeInbuf#1 0 1489e0 0 -> 0
    [Thr 5880] IcmConnRollInWP: no need to roll in WP status: ROLLED IN
    [Thr 5880] IcmReadFromConn(id=0/4693): request new MPI (0/0)
    [Thr 5880] MPI<12ed>1#4 GetOutbuf -1 1489e0 65536 (0) -> 061F8A40 0
    [Thr 5880] ->> SapSSLRead(sssl_hdl=19193D20, buf=061F8A74, maxlen=65483, timeout=500, &readlen=123EFEE8)
    [Thr 5880] Fri Dec 02 08:59:10 2005
    [Thr 5880] <<- SapSSLRead(sssl_hdl=19193D20)==SAP_O_K
    [Thr 5880] result = "max=65483, received=8036"
    [Thr 5880] IcmReadFromConn(id=0/4693): read 8036 bytes(timeout 500)
    [Thr 5880] BINDUMP of content denied
    [Thr 5880] PlugInHandleNetData: role: 2, status: 1, content-length: 0/-1
    buf_len: 8036, buf_offset: 0, buf_status: 0
    [Thr 5880] PlugInHandleNetData: read response header
    [Thr 5880] HttpParseResponseHeader: no transfer-encoding set
    [Thr 5880] HttpParseResponseHeader: Version: 1000
    [Thr 5880] HttpParseResponseHeader: Keep-Alive: 0
    [Thr 5880] PlugInHandleNetData: more data to read
    [Thr 5880] PlugInHandleNetData: need more data (7936/12484)
    [Thr 5880] IcmPlCheckRetVal: Next status: READ_RESPONSE(2)
    [Thr 5880] IcmHandleNetRead(id=0/4693): read_len: 8036, HandleNetData returned: 2
    [Thr 5880] IcmHandleNetRead(id=0/4693): status 2 -> 2
    [Thr 5880] ->> SapSSLReadPending(sssl_hdl=19193D20, &pendlen=123EFF1C)
    [Thr 5880] <<- SapSSLReadPending(sssl_hdl=19193D20)==SAP_O_K
    [Thr 5880] out: pendlen = 0
    [Thr 5880] IcmHandleNetRead(id=0/4693): pending SSL data: 0, rollout=1
    [Thr 5880] nihsl-getHostAddr: found hostname 'localhost' in cache
    [Thr 5880] nihsi-getHostAddr: hostname 'localhost' = addr 127.0.0.1
    [Thr 5880] NiIDgSend: re-connect dgram to: host 127.0.0.1, port FD.E6/64998, fam 2 (low adr..high adr)
    [Thr 5880] IcmConnRollOut: connection (id=0/4693) rolled out:
    [Thr 5880] CONNECTION (id=0/4693):
    used: 1, role: 2, stateful: 0
    NI_HDL: 23, protocol: 2
    host: www2.ABC.com:443
    status: READ_RESPONSE
    connect time: 02.12.2005 08:59:08
    WP-status: ROLLED IN (Context: 0, Role: 2)
    tid: 15, mode: 0, uid: 746, roll-reason: ICM_ROLL_NONE
    MPI request: <12ee> MPI response: <12ed>
    request_buf_size: 2127 response_buf_size: 65484
    request_buf_used: 2127 response_buf_used: 8036
    request_buf_offset: 0 response_buf_offset: 0
    [Thr 4852] NiBufSelect: Postprocessing...
    [Thr 4852] NiBufSelect: returning 1 clients
    [Thr 4852] NiSelNext: returning hdl 5, r--, 00000000, rest 0 entries (0164FEF0)
    [Thr 5880] IcmWorkerThread: Thread 6: Waiting for event
    [Thr 4852] NiIPeek: peek successful for hdl -1 / socket 65588 (r)
    [Thr 4852] NiIDgReceive - WAKEUP DGRAM received from:
    host 127.0.0.1, port 07.B0/1968, fam 2 (low adr..high adr)
    [Thr 4852] NiIPeek: peek for hdl -1 / socket 65588 timed out (r; 0)
    [Thr 4852] IcmWatchDogThread: dg received
    [Thr 4852] IcmWatchDogUpdateRollQueue(id=0/4693): insert fe-nihdl 23, flags=1
    [Thr 4852] NiSelSet: hdl 23, r-, 01679D50
    [Thr 4852] IcmWatchDogThread: check ni handles (timeout=10000)
    [Thr 4852] NiBufSelect: Preprocessing...
    [Thr 4852] NiISelect: timeout 10000 ms
    [Thr 4852] NiISelect: maximum fd=65757
    [Thr 4852] NiISelect: fds in read-mask: [Thr 4852]
    [Thr 4852] NiISelect: fds in write-mask: [Thr 4852]
    [Thr 4852] NiBufSelect: Postprocessing...
    [Thr 4852] NiBufSelect: returning 1 clients
    [Thr 4852] NiSelNext: returning hdl 23, r--, 01679D50, rest 0 entries (0164FF00)
    [Thr 4852] IcmWatchDogThread(id=0/4693): nihdl 23 - data received(read)
    [Thr 4852] NiSelClear: removed hdl 23 from selectset
    [Thr 4852] IcmQueueAppend: Queuelen: 1
    [Thr 4852] IcmCreateRequest: Appended request 8369
    [Thr 4852] IcmConnRollIn: connection (id=0/4693) rolled back to status: READ_RESPONSE
    [Thr 4852] IcmWatchDogThread: check ni handles (timeout=10000)
    [Thr 4852] NiBufSelect: Preprocessing...
    [Thr 4852] NiISelect: timeout 10000 ms
    [Thr 4852] NiISelect: maximum fd=65757
    [Thr 4852] NiISelect: fds in read-mask: [Thr 4152] IcmWorkerThread: worker 3 got the semaphore
    [Thr 4152] REQUEST:
    Type: READ_RESPONSE Index = 8368
    [Thr 4152] CONNECTION (id=0/4693):
    used: 1, role: 2, stateful: 0
    NI_HDL: 23, protocol: 2
    host: www2.ABC.com:443
    status: READ_RESPONSE
    connect time: 02.12.2005 08:59:08
    WP-status: ROLLED IN (Context: 0, Role: 2)
    tid: 15, mode: 0, uid: 746, roll-reason: ICM_ROLL_NONE
    MPI request: <12ee> MPI response: <12ed>
    request_buf_size: 2127 response_buf_size: 65484
    request_buf_used: 2127 response_buf_used: 8036
    request_buf_offset: 0 response_buf_offset: 0
    [Thr 4152] ->> SapSSLRead(sssl_hdl=19193D20, buf=061FA9D8, maxlen=57447, timeout=500, &readlen=10BEFEE8)
    [Thr 4852]
    [Thr 4852] NiISelect: fds in write-mask: [Thr 4852]
    [Thr 4152] <<- SapSSLRead(sssl_hdl=19193D20)==SAP_O_K
    [Thr 4152] result = "max=57447, received=4548"
    [Thr 4152] IcmReadFromConn(id=0/4693): read 12584 bytes(timeout 500)
    [Thr 4152] BINDUMP of content denied
    [Thr 4152] PlugInHandleNetData: role: 2, status: 2, content-length: 7936/12484
    buf_len: 12584, buf_offset: 8036, buf_status: 0
    [Thr 4152] PlugInHandleNetData: read response body (len=12484/12484)
    [Thr 4152] PlugInHandleNetData: response completely read(EOS=0)
    [Thr 4152] IcmFlushBuf: Flushing 12584 Bytes, buf_status: 6
    [Thr 4152] flush buffer with mpi buffer id 1
    [Thr 4152] MPI<12ed>1#5 FlushOutbuf l1 1 1 1489e0 12636 6 -> 061F8A20 0
    [Thr 4152] IcmConnRollInWP: no need to roll in WP status: ROLLED IN
    [Thr 4152] PlugInHandleNetData: close connection
    [Thr 4152] IcmPlCheckRetVal: Plugin retval: PLUGIN_RET_CLOSE (-702)
    [Thr 4152] IcmHandleNetRead(id=0/4693): read_len: 4548, HandleNetData returned: -702
    [Thr 4152] IcmConnRollInWP: no need to roll in WP status: ROLLED IN
    [Thr 4152] PlugInStopConn: role: 2, error: 0, write_err: 1
    [Thr 4152] ->> SapSSLSessionDone(&sssl_hdl=015BC3DC)
    [Thr 4152] <<- SapSSLSessionDone(sssl_hdl=19193D20)==SAP_O_K
    [Thr 4152] NiICloseHandle: shutdown and close hdl 23 / socket 65268
    [Thr 4152] IcmConnClose: Connection 0/4693 closed
    [Thr 4152] IcmConnFreeContext: context 0 released
    [Thr 4152] IcmServDecrRefCount: intersrv.afdb.local:443 - serv_ref_count: 1
    [Thr 4152] IcmWorkerThread: Thread 3: Waiting for event
    Cheers,
    Siva Maranani

    SMICM with trave level3 is the only way(i know) to trace whether the message has left XI server or not.

  • How to trace an error

    Dear all,
    How to trace a purticular error ?
    from metalink
    Diagnose the issue by running the following trace
    alter system set events '1775 trace name ERRORSTACK level 3';
    Redo the import and reproduce the error. The trace file should be in the
    USER_DUMP_DEST directory.
    alter system set events '1775 trace name errorstack off';
    Trace file will show something like the following:
    ksedmp: internal or fatal error
    ORA-01775: looping chain of synonyms
    Current SQL statement for this session:
    SELECT COUNT(*) FROM SYS_IMPORT_TABLE_01
    I am getting the same ora 01775 error. But when I am tracing, I am not getting any result in my udump. Is there any other setting do I have to make to get the trace file?
    Thanks

    Your question can not be answered.
    Not only you don't include a version (this seems to be too difficult for most posters here), but you also include ambiguous sentences like 'When I am tracing'.
    This results in the question 'did you issue the alter system command and was it successful?'
    As far as I am aware the syntax is
    alter system set events='<errornum> trace name errorstack level 3';
    There are no other 'settings'
    The only other solution is to set up an afterserver error trigger.
    Works like a charm, 8i onwards.
    You uncover way too many things you don't even want to know!
    Sybrand Bakker
    Senior Oracle DBA

  • How to trace an Inbound R3 IDoc by seeing application document

    Hi all,
    How to trace an Inbound IDoc number by seeing application document in R3.
    sometimes 'Services from object' also we could'nt able to trace out the IDoc.
    'Services from object'  option sometimes appears in blank status with no IDoc.
    Any possible tracing options?

    HI Chitra,
    You can findout the Idoc number in R/3 System by using the  tr.code WE05 or WE02.
    Go throgh the following blog for message monitoring.
    /people/alessandro.guarneri/blog/2006/02/14/super-message-monitor-for-sap-xi
    Regards
    Goli Sridhar

  • How to trace purchase order number with respect to Purchase requestion numb

    Hi friends,
    Can u please help me how to Trace purchase order number with respect to purchase Requetuion  number. Is there any standard report  available in R/3

    Hi Vamsi,
    Thats what!!!
    Goto SE16 - EBAN - Give PR number in the iput screen.
    In the output screen you will have to do field selection from Menu - Settings - formatlist - choose fields.
    There you choose Purchase Order.
    So the output will display for you POs for the PR that you entered.
    Regards,
    Vishal

  • How to trace production order history

    Hi,
      how to trace production order history, with all information like some addtion and deletion of components in production order.
       I need the history like how we are doing ECM in master data history.
    Regards,
    S.Suresh.
    Edited by: suresh subramanian on Jul 16, 2008 7:31 AM

    Dear Suresh,
    Please refer the link,[http://help.sap.com/saphelp_46c/helpdata/en/35/ce8d378d0302cae10000009b38f9b7/frameset.htm]
    Regards,
    R.Brahmankar

  • How to pass session variable value with GO URL to override session value

    Hi Gurus,
    We have below requirement.Please help us at the earliest.
    How to pass session variable value with GO URL to override session value. ( It is not working after making changes to authentication xml file session init block creation as explained by oracle (Bug No14372679 : which they claim it is fixed in 1.7 version  Ref No :Bug 14372679 : REQUEST VARIABLE NOT OVERRIDING SESSION VARIABLE RUNNING THRU A GO URL )
    Please provide step by step solution.No vague answers.
    I followed below steps mentioned.
    RPD:
    ****-> Created a session variable called STATUS
    -> Create Session Init block called Init_Status with SQL
        select 'ACTIVE' from dual;
    -> Assigned the session variable STATUS to Init block Init_Status
    authenticationschemas.xml:
    Added
    <RequestVariable source="url" type="informational"
    nameInSource="RE_CODE" biVariableName="NQ_SESSION.STATUS"/>
    Report
    Edit column "Contract Status" and added session variable as
    VALUEOF(NQ_SESSION.STATUS)
    URL:
    http://localhost:9704/analytics/saw.dll?PortalGo&Action=prompt&path=%2Fshared%2FQAV%2FTest_Report_By%20Contract%20Status&RE_CODE='EXPIRED'
    Issue:
    When  I run the URL above with parameter EXPIRED, the report still shows for  ACTIVE only. The URL is not making any difference with report.
    Report is picking the default value from RPD session variable init query.
    could you please let me know if I am missing something.

    Hi,
    Check those links might help you.
    Integrating Oracle OBIEE Content using GO URL
    How to set session variables using url variables | OBIEE Blog
    OBIEE 10G - How to set a request/session variable using the Saw Url (Go/Dashboard) | GerardNico.com (BI, OBIEE, O…
    Thanks,
    Satya

  • How to set a variable value on the BPC Data Manager

    Hello BPC Experts,
    I'm creating a BPC10 NW version demo environment for our prospect customer.
    I made a data manager to import  BW data into BPC model from BW cube.
    I need to import just one month data into BPC from the BW cube that has more than one month data.
    When I run the data package manually, I can select a member of the time dimension prompt and I can import specific month data I want.
    But, in a case where the program (data manager) runs by JOB monthly,
    I can't select a member of the time dimension prompt manually.
    So I want to know how to set a  variable value to the time dimension prompt from a system date etc. automatically.
    Are there any way to set a variable value to the time dimension prompt on the data manager automatically from a system date?
    Or, do you have any other solution to import just one month data into BPC from the BW cube that has more than one month data  by the data manager running on JOB ?
    (without selecting a member of the time dimension prompt of the data package manually)
    Thanks in advance,
    Keisuke

    Hi Gersh
    Sorry for my late reply and thanks for your helpful information.
    I tried the second way of your information and I could configure it.  
    And I 'll try first way of your information.
    Regards,
    Keisuke

  • How to use the variables used in the message mapping

    Hi ,
    In the message mapping we can declare variables in the JAVA section , these variables could be used across the mapping .
    I have tried using it but I am unable to retrieve the values assigned to the variables in one UDF into the another UDF .
    Please guide me how to use the variables declared in the JAVA section in the message mapping .
    Thanks
    Anita Yadav

    Anita,
    I have worked on the Global variables and i found no issues. Make sure that the variable is declared in the Declaration Section and then initlaized in the Initialization section.
    If you declare a variable in the Declaration Section ,
    int i;
    then in any udf you can use if directly. No need to re declare  the variable in the UDF. If you do this, then it becomes a local variable.
    Regards,
    Bhavesh

  • How to specify a variable in the script logic

    I want to pass a variable from the process chain using the prompt statement.
    I  want to refer to the variable name in the script. When I used the following statement in the script file, I got an error when validating the statement below:
    //Increase Wage and Salary & Personnel Exp. by entered percentage
    [P_ACCT].[#CE0004020] = [P_ACCT].[CE0004020] * ( 1 + $WS_PERCT$ / 100)
    Syntax error:Reference Error: $WS_PERCT$  is not defined
    One of the how-to guides indicated that I should use the dollar sign before and after the variable name.
    Can someone explain how to specify a variable name in the script.
    Thanks.

    Thanks, Pravin.
    I tried using the syntax with the # sign (as shown below) but when I validate the code I get an error. The message indicates there is an issue with $WS_PERCT$.
    Syntax error:Reference Error: $WS_PERCT$ is not defined
    P_ACCT].[#CE0004020] = [P_ACCT].[CE0004020] * ( 1 + $WS_PERCT$ / 100)
    Can you please advise if am missing something here in the code.
    Edited by: Sanjay Kumar on Sep 24, 2009 10:06 PM
    Edited by: Sanjay Kumar on Sep 24, 2009 10:08 PM

  • How to trace a USER in oracle?

    Hi Sir,
    I have a rquirement that I need to Trace a session created through the Application. The only data I have is that I know the application will connect to a Database schema and nothing else. How is it possilbe that I can create a trace file for it.
    Also is it possilble, that i can trace complete user. how to find all the trace as it create number of process inturn number of trace, how do I find it and combine. I read the documentation but can't understand it clearly?
    Any help will be great.

    sanora600 wrote:
    Aman, thanks for replying. This is the problem, they have not implemented dbms_application_info.
    That is the reason I want to know how to trace user(all session of a schema) and combine all the session generated trace(something like trcsess) and then generate tkprof. I am on Oracle 10g.Well, first off, users connect to databases, they don't connect to schemas. And as a follow on, users have sessions, schemas don't.
    That said, you might investigate a logon trigger that initiates a 1046 trace. Something like this:
    -- create a logon trigger for capturing extended trace data
    -- NOTE: must be run as SYS
    -- NOTE: Be sure to change both occurances of the target username
    -- ('user = xxx' and 'TRACEFILE_IDENTIFIER=') to the
    -- correct value for the session you want to trace.
    create or replace trigger logon_trigger
    after logon on database
    begin
    if (user = 'SCOTT' ) then
    execute immediate 'ALTER SESSION SET TRACEFILE_IDENTIFIER=''SCOTT_APP''';
    execute immediate 'alter session set timed_statistics=true';
    execute immediate 'ALTER SESSION SET EVENTS ''10046 TRACE NAME CONTEXT FOREVER, LEVEL 12''';
    end if;
    exception
    when others then
    null;
    end;
    end;
    Of course, you can play around with the 'if' condition, and delete or disable the trigger when it is no longer needed. The resulting trace file can be run through tkprof.
    Edited by: EdStevens on Dec 19, 2008 9:03 AM

  • HOW TO CREATE A VARIABLE IN SAP SCRIPT

    HI ALL,
    CAN ANYONE TELL ME HOW TO CREATE A VARIABLE IN SAP SCRIPT.
    THANK YOU,
    BYE
    TAKE CARE.

    Hi Ravi,
    You can use like this
    A text in the editor contains the following DEFINE commands:
    /: DEFINE &mysymbol& = 'xxx xxx xxxxx xxxx'
    &mysymbol&
    /: DEFINE &mysymbol& = 'yyyyy yyy yyyy'
    / &mysymbol&
    The printed text appears

  • How to create a variable in BEx 7.0

    Hi,
    Can anyone please tell me how to create a variable in BEx 7.0
    In 3.5, when we right click on a characteristic, we used to get an option for restrict.
    I cant find any such option in 7.0

    Hi,
    Right click on the characteristic 0CALMONTH in the default values or drag it to char. restriction section and say restrict.Pull the drop down menu in that to select variables. There u will get a create icon.Click on that...then in details tab u can specify whether mandatory,interval and all..
    Regards,
    Rathy

Maybe you are looking for

  • Backing up itunes library to a hard drive

    I want to back up my entire itunes library to my hard drive but can only find instructons on backing up to cds, i have a very large library and dont want to lose any of my songs, please help thanks

  • SQL Express 2008 R2 Error:15209 - An error occurred during encryption

    I am trying to install SQL Server Express 2008 R2 but it keeps failing . The computer is Windows 7 x64, all the latest service packs and updates installed.  The application is by Greatland, called Yearli (formerly called WinFiler).  Last year's WinFi

  • Procedue to release blocked invoices

    Dear All, Due to Qty variance invoice is blocked.I can see in MIR4 the reason for Invoice block. What is the procedure to release this block in MIR4(check box against Qty) When I release invoice in MRBR still I can see the check box against Qty in MI

  • Can't play music or see artwork after iTunes redirect

    I've just finished moving my iTunes folder from one external drive to another.  I then deleted the library on the first drive, but I was not able to delete the Library.itl, Extras.itdb or Genius.itdb.  I recovered them from the trash and saved them. 

  • Movie replay stops because of download pause

    When downloading a movie on my Mac Mini the download gets stuck every few minutes and then moves forward without any interaction from my end. When viewing the movie while downloading (no matter how far the download is) the movie freezes while the dow