Trace by sql_id into specific file

Hi,
I would like to trace system by a sql_id, but to have results for that sql_id into a specific/given file.
Is it possible? I know how to trace sqlid on a system level, but don't want to search for it among hundreds of files when needed..
it's 11.2g database..
tnx

Dario Botkuljak wrote:
Hi,
I would like to trace system by a sql_id, but to have results for that sql_id into a specific/given file.
Is it possible? I know how to trace sqlid on a system level, but don't want to search for it among hundreds of files when needed..
it's 11.2g database..
tnx
might solution be OS dependent?
How do I ask a question on the forums?
https://forums.oracle.com/message/9362002#9362002

Similar Messages

  • How to write the errors into a specific file

    Hi all,
    How to handled the errors in the scenarios,By using fault messages we can informed about errors to sender.But in my case i have to gather all errors & write into a specific file.For this can i create another Communication Channel for File reciever.How can i gather error messages in the scenario.
    Early response is appreciate

    Hi,
    Bhavesh had already answered how to handle it. For saving it in a file yes you can use File Receiver adapter.
    Regards,
    Prakash

  • How can i save the output array of the invoke node "commands values" into a specific file

    I must save the setup of vi commands'. I use an invoke node called "command value" wich give me an array with the name of the specific command and his value. How can i save this array into a specific file to load it later if o need. Must i change the array format?
    Thank you

    Hi,
    I have attached two VIs.
    The first one "Ecriture fichier tableau" (writer) permits to collect all control's values in an array (dbl) and to save it as .bin file. You had to convert variant type into dbl type. (You can do the same with string type if you wish. You will save datas as .txt file for example)
    The second VI "Lecture tableau fichier" (reader) permits to retrieve all the datas you saved in the file.
    I think this responds to your question.
    Regards,
    Attachments:
    Control values.zip ‏26 KB

  • Updating a specific file into a .jar file

    Hi,
    I have got a .jar file, if I want to update the specific file org/abc/try.class, with a new try.class, what command should I use?
    thanks a lot.

    Something like that, but remember you have to rebuild the entire jar file from scratch. You can't just update one file in it.

  • Procedure to save the output of a query into excel file or flat file

    Procedure to save the output of a query into excel file or flat file
    I want to store the output of my query into a file and then export it from sql server management studio to a desired location using stored procedure.
    I have run the query --
    DECLARE @cmd VARCHAR(255)
    SET @cmd = 'bcp "select * from dbo.test1" queryout "D:\testing2.xlsx;" -U "user-PC\user" -P "" -c '
    Exec xp_cmdshell @cmd
    error message--
    SQLState = 28000, NativeError = 18456
    Error = [Microsoft][SQL Server Native Client 10.0][SQL Server]Login failed for user 'user-PC\user'.
    NULL
    Goel.Aman

    Hello,
    -T:
    Specifies that the bcp utility connects to SQL Server with a trusted connection using integrated security. The security credentials of the network user,
    login_id, and password are not required. If
    –T is not specified, you need to specify
    –U and –P to successfully log in.
    -U:
    Specifies the login ID used to connect to SQL Server.
    Note: When the bcp utility is connecting to SQL Server with a trusted connection using integrated security, use the
    -T option (trusted connection) instead of the
    user name and password combination
    I would suggest you take a look at the following article:
    bcp Utility: http://technet.microsoft.com/en-us/library/ms162802.aspx
    A similar thread regarding this issue:
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/b450937f-0ef5-427a-ae3b-115335c0d83c/bcp-connection-error-sqlstate-28000-nativeerror-18456?forum=sqldataaccess
    Regards,
    Elvis Long
    TechNet Community Support

  • BCP data into a file using Runtime class

    Hi,
         I have a problem in using the Runtime class.
    I am trying to bcp a table's data into a file.I am working on a Unix environment.
    My bcp is not getting completed fully.The total records to be bcped is 1 million,but only one lakh records is getting bcped and then it hangs up..But if i issue the bcp command from my telnet session it is bcping it to the file without any problem.Can anyone help me out on how to overcome this..
    Is there anything specific with Runtime class..I am pasting the code that i tried out below.
    String l_s_bcpQuery="bcp mubstage.dbo.HousingUnitSampleMarket out /dun/d3nmb0/mariaps/subracheckprototype -c -t~ -Umariaps -Prykwz5ba -SD3NMB_MUB";
    try{
    Runtime time=Runtime.getRuntime();
    Process p=time.exec(l_s_bcpQuery);
    p.waitFor();
    System.out.println("The exit value is:"+p.exitValue());
    }catch(Exception ioe){
         ioe.printStackTrace();
         System.out.println("IOException"+ioe.getMessage());

    you might need to capture the stout & sterr from the process. see http://java.sun.com/j2se/1.4.1/docs/api/java/lang/Process.html, or many other similar questions on this forum.
    try this:
    try{
    Runtime time=Runtime.getRuntime();
    Process p=time.exec(l_s_bcpQuery);
    BufferedReader stout = new BufferedReader(new InputStreamReader(p.getInputStream()));
    BufferedReader sterr = new BufferedReader(new InputStreamReader(p.getErrorStream()));
    String out = stout.readLine();
    String err = sterr.readLine();
    while((out != null)||(err != null))
    if(out != null)
    System.out.println(out);
    if(err != null)
    System.err.println(err);
    out = stout.readLine();
    err = sterr.readLine();
    int exit_value = p.waitFor();
    System.out.println("The exit value is:"+ exit_value);
    }catch(Exception ioe){
    ioe.printStackTrace();
    System.out.println("IOException"+ioe.getMessage());
    }

  • Win 8.1 / Server 2012R2: Setting User specific File Associating through GPO

    I have some issues associating the default application for specific users for specific file extentions.
    I've used registry imports in the times before GPO Preferences and have been using GPO Preferences for Vista/7/2008/2008R2 environments.
    With Win 8.1/2012R2 (and in some extend Win8/2012) I have read I should use the "Default Associations Configuration File" GPO option together with DISM. So, I followed these steps:
    Export current settings using: DISM /online /export-defaultappassociations:C:\Windows\System32\CustomAppAssoc.xml
    I've updated the file and imported it back: DISM /online /import-defaultappassociations:C:\Windows\System32\CustomAppAssoc.xml (*)
    Seeing this didn't work yet, I've also setup the GPO and pointed it to my C:\Windows\System32\CustomAppAssoc.xml
    I've removed the profile of my test-account and logged in
    (*) (To my knowledge this these steps only update the OEMDefaultAssociations.xml-file)Unfortunatly the changes I made, that should have assigned .xml to Microsoft Excel did not work.
    My file looks like this:
    <?xml version="1.0" encoding="UTF-8"?>
    <DefaultAssociations>
    <Association Identifier=".xml" ProgId="Applications\EXCEL.EXE" ApplicationName="Excel (desktop)" />
    </DefaultAssociations>
    A few issues I have:
    This method does not allow seem to enforce a default app; only add it to the list of available/suggested apps.
    This method does not allow me to associate different apps for different users
    Any tips would be more than appriciated.
    Kind regards,
    Peter

    You can use the Deployment Image Servicing and Management (DISM) tool to change the default programs associated with a file name extension.
    1.Deploy your Windows image to a test computer.
    2 Log into Windows and use Control Panel to configure your default application associations.
    3.You can export the default application associations that you have configured to an XML file on a network share or USB drive. For example, at a command prompt type the following command:
    Dism /Online /Export-DefaultAppAssociations:\\Server\Share\AppAssoc.xml
    4.Use GP server to enable the following group policy to modify the default Associations on the client machine.
    Computer Configuration>Administrative Templates>Windows Components>File explorer>Set a default associations configuration file.
    Regarding how to export or Import Default Application Associations,please refer to the following article:
    http://technet.microsoft.com/en-us/library/hh825038.aspx

  • Is it possible to link to specific files on a server from within a pdf?

    Hi all,
    Is it possible to create hyperlinks to a specific file on a Windows server from within a pdf?
    Let me explain further, I am working on a Mac trying to create hyperlinks from within InDesign to specific files on a Windows server. I am exporting the file to pdf, along with the hyperlinks, which look correct when I click on them from within Acrobat.
    On Windows, the links will read as \\servername\directoryname\filename so this is exactly how I enter it as the hyperlink. When I view the hyperlink information in the resulting pdf from within Acrobat, it still looks correct as \\servername\directoryname\filename but when I try to click on it from the Windows side OR the Mac side, the link doesn't work and gets changed....the slashes revert to the opposite direction and the whole link gets messed up. I am trying to figure out if the cause is InDesign, Acrobat or whether this can even be done? Of corse, I never have issues with normal URLS.
    What we are trying to do is set up an internal catalogue for the company of all our materials. (Everyone works on Windows)
    Should I try to create the links from within a Windows version of Acrobat... do you think that will make any difference?
    Thanks in advance for your help:)
    Very much appreciated!
    Christine

    Thank you for your help...very much appreciated!
    Basically, what we needed were for the links to be static and not relative, and they were mainly for Windows users. What finally worked was creating the links from within a Windows version of Acrobat. We plan to email the final pdf to several employees around the word (we are an international company) with all the links intact. Once they were logged into our network (vpn'd in) the links would still be valid no matter where the document was located. The trick is to change the start of the link to a specific IP address (the server address) when you are setting it up in Acrobat. I hope this makes sense and is helpful for everyone else out there:)
    (P.S. This works for Windows users only though and cannot be done via the Mac version of Acrobat. I can set things up within the Mac version of Acrobat so that the links will work as long as the document resides in the same location on the server... the advantage to doing it THIS way is that it will work for BOTH Mac and Windows users.)
    Thanks again,
    Christine

  • Does anyone know how to use pages so you can export pdfs from the internet and automatically drag words from the document into the file name of the pdf (i.e., author, title of a scientific paper)

    Does anyone know how to use pages so you can export pdfs from the internet and automatically drag words from the document into the file name of the pdf (i.e., author, title of a scientific paper). For example, if I am downloading a paper by smith called "Surgery" that was published in 2002, it will automatically set the file name in the download to smith- surgery 2002. I have heard pages is smart enough to do this.
    thank you

    Pages can export only its own documents. They may be exported as PDF, MS Word, RTF or Text files.
    Pages can import (ie. Open a file as, or Insert a file into, a Pages document) documents in several formats, but won't rename the document as you describe. Documents that can be Opened (eg. Text, AppleWorks 6 WP, MS Word files) are converted to Pages documents, and retain their original names, with .pages replacing the original file extension. Files that can be Inserted (generally .jpg, .pdf and other image files) become part of the existing Pages file and lose their names.
    It may be possible, using AppleScript, to extract the text you want and to Save a Pages file using that text as the filename, but that would depend in part on being able to identify which text is wanted and which is not.
    How will the script determine where the author's name begins and where it ends?
    How will the script recognize the beginning and of the title, an decide how much of the title to use in the filename?
    How will the script recognize the year of publication?
    For papers published in a specific journal, with a strict format for placing each of these pieces on information, or containing the needed information as searchable meta data in the file, this might be possible. But it would require knowledge of the structure of these files, and would probably handle only papers published in a specific journal or set of journals.
    Outside my field of knowledge, but there are some talented scripters around here who might want to take a closer look.
    Best of luck.
    Regards,
    Barry

  • Ksld not breaking into source file

    Hi guys,
    I installed ksld and started debugging my driver using a tip connection... all works fine.. i inserted a breakpoint on one of my functions in the driver.. and in the tip console once i have reached the breakpoint.. i use ::remote to enter remote mode and start the ksld with all those options on the host and it get connected to the ksld agent.. but the host is not able to show the source code of my driver... ie it always breaks into the asm dump of the driver code.. how do i switch to source display.. but at the same time i am able to edit the source file and all.. ie by using edit command.. but no idea why the asm code is dumped while a break point is reached..
    any idea how we can switch to source level code for debugging..
    thanks all

    The simple answer here is that machine specific files do not need to be checked in. This includes .PSS and .CPD files. The .HHP and .XPJ files are not machine specific, they are project specific and therefore must be checked in. The confusion over the HHP file may come down to whether CHM output is being produced. If you are not, you could safely say that this file need not be source controlled. However it doesn't cost anything to include it under source control so why make life more difficult by excluding it.
      The RoboColum(n)
      @robocolumn
      Colum McAndrew

  • Split XSLT Output into Multiple Files

    I have an XML-to-File scenario working, but now I need to split my XSLT map output into multiple files based on the data.  I have been reading the Jin Shin blog on message splitting, but don't know that it pertains to my situation.
    XML data getting mapped with XSLT map creates output formatted like this.
    <?xml version="1.0" encoding="utf-8"?>
    <ns1:ColdInvoiceData xmlns:ns1="http://graybar.com/cold/invoice">
    <Header>
      <RecordID>HDR</RecordID>
      <InvoiceNumber>15</InvoiceNumber>
    </Header>
    <Details>
      <RecordID>DTL</RecordID>
      <LineItemNumber>001</LineItemNumber>
      <UnitPrice>1.25</UnitPrice>
    </Details>
    <Details>
      <RecordID>DTL</RecordID>
      <LineItemNumber>002</LineItemNumber>
      <UnitPrice>2.22</UnitPrice>
    </Details>
    <Header>
      <RecordID>HDR</RecordID>
      <InvoiceNumber>16</InvoiceNumber>
    </Header>
    <Details>
      <RecordID>DTL</RecordID>
      <LineItemNumber>001</LineItemNumber>
      <UnitPrice>3.33</UnitPrice>
    </Details>
    </ns1:ColdInvoiceData>
    I currently have this output writing to a file (FTP, File Conversion).  A single file is no issue, but I need to send multiple files for every set of HDR/DTL(s).  I also need to put the invoice number in the filename (which is working fine as a parameter in my single FTP File CC now).
    Can I make this happen with message splitting and maybe a second map (GUI map)?  Do I need to adjust the XSLT output XML format to have an invoice level?  Is there a better way to go?
    Thanks!

    I made a change to the namespace used on the Messages/Message1 nodes (since the system-assigned ns0 was already being used in my xml data) and now I am getting output. 
    The problem is that the output matches my input.  As aforementioned, I started with just a one-to-one mapping on every node and field. 
    When I change the mapping to try to force multiple ColdInvoiceData nodes, I get the following error (when my source has two Invoice nodes):
    <Trace level="1" type="T">com.sap.aii.utilxi.misc.api.BaseRuntimeException: RuntimeException in Message-Mapping transformation: Cannot produce target element /ns0:Messages/ns0:Message1/ns1:ColdInvoiceData[2]/Invoice. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd at
    When my source has one invoice node, it works ok.
    Here is a screenshot of my mapping structure.
    http://webpages.charter.net/kpwendel2/ib.jpg

  • Launch a specific file on startup

    Hello everyone,
    Is there a way to automatically launch a specific file on startup?
    I would like to have an image pop up on my wife's computer when she logs in in the morning. Is this possible? Is there an app to automate this sort of thing? I've looked into the Login Items, but as far as I know it only allows one to launch apps, not specific files.
    Thank you so much for your help
    Best,
    Rui

    Hi there,
    Thank you for your help. I just found the answer in another post, and you can actually fo it from the Login Items section. Simply click the + sign, select the file to open and voilá
    Cheers!

  • How can I insert C structures that have character pointers into DBD file

    Hello~
    I am changing from a file system I made into DBD.
    And I had no choice to convert structures that have character point members
    to insert them into the DBD file
    for examble,
    If there is a structure as below
    typedef struct
    int IndexKey;
    int groupID;
    char* name;
    char* pNum;
    char* pAddr;
    char* pMemo;
    } TsomeRec;
    I made a structure to convert as below
    typedef struct
    int IndexKey;
    int groupID;
    char name[MAX_NAME_LEN];
    char pNum[MAX_NUM_LEN];
    char pAddr[MAX_ADDR_LEN];
    char pMemo[MAX_MEMO_LEN];
    } TsomeRec2;
    But, there are too many structures to convert.
    So, I am seeking for the most efficient way to insert these structures into DBD files, considering Performance.
    Frankly speaking, I'am not proficient.
    please describe as specific as possible.
    Thank you~

    Hi,
    Review the documentation section title Using C Structures with DB, in particular the subsection called C Structures with Pointers. It will explain the way to store structures that have pointers.
    Regards,
    Andrei

  • Searching for a specific file size

    Hello,
    It's been a while but it seems like XP let me search for specific file sizes - e.g. if I wanted to search for files that were greater than 10GB or if I wanted to search for files less than 20GB.
    I can't figure it out in Windows 8.1.
    If the answer is possible through standard search and not powershell, I'd prefer the GUI way.
    Thanks

    In File Explorer (was Windows Explorer), type the search criteria into the box in the top right of the screen and press Enter.
    Example searches are:
    A minimum file size, simply type size:>30,000KB into the Search box and press Enter.
    type:=.pdf or type:=.doc will display specific file types.
    filename:x will display files using a partial filename. x represents the partial filename you want to search for.
    kind:video, kind:music or kind:pictures will find all the videos, music or pictures.
    If you just click or tap in the Search box, Search Tools will appear which allows the choosing of a Kind, a Size, Date Modified, Other Properties and Advanced search. In Folder Options > Search Tab, the search options can be changed, e.g. Find partial
    matches.
    Providing the location is indexed, you can search in File Explorer for a specific word or phrase by typing content:
    followed by your phrase enclosed in double quotes. This will produce a list of files matching the criterion.
    Speed up the search by opening File Explorer (was Windows Explorer) at the folder you want to search, rather than at the root folder. Also, pressing F3 will show Search options like Date Modified and Size.
    Ninety-nine per cent of politicians give the rest a bad name.

  • About download file into unix file

    Hi expert,
    i use the openset to write file into unix file server.
    but why there are some space at the end of every line.
    by the way, i works very well in windows server
       DATA: DATA_TRANSFER(70).
        Data: DATA_TRANSFER type string.
        data: fine_riga1(1) TYPE X VALUE '0D0A'.
        DATA: gt_data TYPE STANDARD TABLE OF ty_data.
        Constants: ascii_tab type x value ','.
        field-symbols: <f> type any, <delim> type any.
        "Assign delimiter field such as tab or comma.
        assign ASCII_tab to <delim>.
        CLEAR VN_CNT.
        concatenate DSNU 'employee' PN-BEGDA SY-UZEIT into P_UNIX.
        OPEN DATASET P_UNIX in legacy text MODE FOR OUTPUT. " IN TEXT MODE encoding UTF-8.
        IF SY-SUBRC <> 0.
          WRITE: / 'Error on file open:', P_UNIX.
        ELSE.
          LOOP AT TI_DATA .
            CLEAR DATA_TRANSFER.
            concatenate TI_DATA-TYPE
                              TI_DATA-PERNR
                              TI_DATA-ZAUSW
                              TI_DATA-ENAME
                              TI_DATA-TERID
                              INTO DATA_TRANSFER separated by cl_abap_char_utilities=>HORIZONTAL_TAB.
            CONDENSE DATA_TRANSFER NO-GAPS.
            TRANSFER DATA_TRANSFER TO P_UNIX.
            ADD 1 TO VN_CNT.
            CLEAR DATA_TRANSFER.
          ENDLOOP.
          CLOSE DATASET P_UNIX.
        ENDIF.
        WRITE: / P_UNIX,
               / 'Transfered', VN_CNT, 'records'.
    Best Regards,
    Kevin

    Hi,
    Try this way...
    TRANSFER dobj TO dset [LENGTH len]
                                          [NO END OF LINE].
    Addition 1
    ... LENGTH len
    Effect
    This addition determines how many characters or how many bytes of data object dobj are written to the file. len is expected to be a data object of type i that contains the number of characters or bytes. In text files, the content of len specifies the number of characters that are written from the storage. For binary files, legacy text file, and legacy binary files, len specifies the number of bytes that are written to the file. The first len characters or bytes are transferred and alignment gaps are included in the structures. If the addition LENGTH is not specified, all characters or bytes are transferred.
    If the value of len is less than or equal to 0, no characters or bytes are transferred. If the file is opened as a (legacy) text file, however, a line end marker is inserted into the file by default. If the value of len is greater than the number of characters or bytes in dobj, hexadecimal 0 or blank characters are transferred to the file instead of the missing bytes or characters, depending on whether the file was opened as a (legacy) text file or a (legacy) binary file.

Maybe you are looking for

  • Where can i get a Top Case for 15 inch MacBookPRo 2.16MHz, Late 2006 model replacement?

    hello i am looking for a replacement of the top case for my macbook pro, 15 inch 2.16 MHZ it is the late 2006 model. all the ones i can find are for the 1 - 1.5MHZ and none for the later model. thank you! patrick

  • Itunes 10.3.1.55 update on Windows XP install freeze

    Itunes 10.3.1.55 update on Windows XP install freeze. I've tried to remove everything, restart PC and try a new install. It fails at the same point, while copying files.

  • My Mac did not restart after changing permissions of "everyone".

    The reason of my question is because somehow and for a reason I now regret, yesterday I did a very foolish thing: I decided to change the permissions of my hard drive. I have been in Mac just 2 months. I am the only User and Administrator of this Mac

  • Upgrading oracle 9i

    hi, what i learned from previous discussions is that Oracle 9i can directly be upgraded to more recent versions. My question is: If we upgrade the database, do we have to upgrade the application as well (I have Oracle 9ias) or does 9ias work with mor

  • Question about CCR

    Hi We have a scenario where the SDP relevance of  certain products keep changing frequently. A product that is APO relevant can become non-relevant to APO at any point of time. We are facing an issue because of this functionality. The PO's get CIF'ed