Copy content based on date

Hi,
How to copy from one file to another file based on particular date.
For Example:
We have alertlog file which is being filled every minutes.
I would like to copy content  based on date to another file.
Archived Log entry 21430 added for thread 1 sequence 21460 ID 0x8db3363 dest 1:
Thu Jul 12 16:46:21 2012
Buffer cache integrity check completed
Thu Jul 12 16:50:15 2012
Immediate Kill Session#: 7784, Serial#: 26524
Immediate Kill Session: sess: 700001a322f0ec8 OS pid: 39977326
Immediate Kill Session#: 6783, Serial#: 36329
Immediate Kill Session: sess: 7000019a217d8f8 OS pid: 25821530
Thu Jul 12 16:50:30 2012
Immediate Kill Session#: 2254, Serial#: 25693
Immediate Kill Session: sess: 700001961a1edf0 OS pid: 18481442
Thu Jul 12 16:50:44 2012
Immediate Kill Session#: 3826, Serial#: 43876
Immediate Kill Session: sess: 7000019a1cb7ac8 OS pid: 56492464
Thu Jul 12 16:50:55 2012
Immediate Kill Session#: 4, Serial#: 54119
Immediate Kill Session: sess: 70000197166b938 OS pid: 20447852
Immediate Kill Session#: 535, Serial#: 45799
Immediate Kill Session: sess: 700001991729d18 OS pid: 37815026
Thu Jul 12 16:51:08 2012
Immediate Kill Session#: 753, Serial#: 38479
Immediate Kill Session: sess: 700001981833a40 OS pid: 38469692
Immediate Kill Session#: 1149, Serial#: 63745
Immediate Kill Session: sess: 700001991829398 OS pid: 20971966
Thu Jul 12 16:51:19 2012
Immediate Kill Session#: 4474, Serial#: 51993
Immediate Kill Session: sess: 700001a31d8b688 OS pid: 35979938
Thu Jul 12 16:51:37 2012
Buffer cache integrity check completed
Thu Jul 12 16:53:59 2012
Thread 1 cannot allocate new log, sequence 21462
Private strand flush not complete
Thu Jul 13 16:53:59 2012
Thread 1 cannot allocate new log, sequence 21463
Private strand flush not complete
Thanks & Regards,
VN

I found the following in Google, which provides a script that seems to address what you are trying to accomplish:
http://www.databasejournal.com/features/oracle/article.php/3869076/Alert-Log-Scraping-with-Oracles-ADRCI-Utility.htm

Similar Messages

  • How to Sort transported KM content based on the creation date

    Hi ,
         I transported KM content through ICE offline transfer.  all the files are copied. but the problem is all are copied with the todays date as modified date.
    but I need to sort these based on the creation date.
    all these files are with the xml templates.
    Can only help in this regard
    Thank you

    Hi,
    Enter the format that you have defined in the configuration of the property in the Additional Metadata parameter. Use the syntax customFormat=<pattern>.
    In this link, you have at the end screenshots where to navigate in KM to see the property metadatas of your property:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/645d4357-0701-0010-07bd-a2ea8c4d0aaf
    Here see the Defenitions of the KM Metadata Properties:
    https://wiki.sdn.sap.com/wiki/display/KMC/DefenitionsoftheKMMetadata+Properties
    Regards,
    Praveen Gudapati

  • Copy Business content cube, load data and activation.

    Hi BW gurus,
    I am new to SAP BW. Like to know if you guys have any document of your own or at some site which gives me step by step instructions to copy , load data and activate a cube of business content(ex: Purchasing data 0PUR_C01).
    I will assign points to the good answers.
    You can also send me any documents you have on my email id: [email protected]
    Thanks.
    Syed Arifuddin.

    1. Yes. Preparation - Connectivity between R/3 and BW and general setting is Basis team and Security or Authorization team work.
    2. Customizing the Extractors. Extractors are programs to extract data from SAP R/3. You may need to customized those to fit your requirement. This requires little ABAP skill. You can check more information here.. http://help.sap.com/saphelp_nw04/helpdata/en/7a/27bcf087c7464db8b95eaa717b6e6a/content.htm
    3. Set Application Active Indicator : This step is to be carried out in the R/3 system.This is not just a Purchasing related but it is a Cross-client application setting to link tow clients.
    Hope this helps.
    Laxmikant

  • Copy contents of one table to another

    Hi,
    Can anyone will give me the code copying the contents of one table to another...
    Need an urgetn help..
    Thanks

    Thanks for everyones reply...
    But here the problem
    I to copy the content based on the length of the content
    Eg:
    If the content key code has 3 characteristics then where ever the last 2 characters are similar i need to copy the rrest content
    EG:-
    234
    236
    278
    299
    288
    that means i need to take the last two characteristic and copy the rest data ...
    another option
    23411
    23412
    23413
    23414
    in this i need to check the last 4 characters and copy...
    Can any one help..
    Another important point is it need to copy in different fields ...
    Eg: from where i am copying is FIELD A which has all the data and it need to copy in Field1,2,3,4,5,6,7,8
    Thanks

  • Diplaying region content based on multiple selection lists

    Hi,
    I have 3 select list on submit(P1A, P1B, P1C). And i have 3 report regions.
    now this is the scenario. the 3 select lists are on submit.
    the P1C is a dynamic list which shows contents based on the selection from P1A and/or P1B. so this is how my P1C LOV looks like
    SELECT DISTINCT COLLECTION d, COLLECTION v
    FROM viewvs
    WHERE (YEAR =   :P1A  OR  :P1A= '-1' )
    AND   (SEASON =  :P1B  OR  :P1B= '-1' )
    ORDER BY d i also have a 3 report regions which display result based on P1C selection.
    now when i select P1C then i am able to see the 3 regions. and when i go back and change P1A and/or P1B, then P1C changes output. and the 3 regions should not show any data unless i again select one from P1C but, the 3 regions still hold on to the previous data.
    what i am trying to say is, when the regions should display data only when P1C is selected, and when any of P1A or P1B is changed the regions should disappear and should not display any data, but instead the 3 regions show the previous data unless a new selection is done.
    How can i clear the report region when everytime a new value is selected from P1A and/or P1B.
    also the below is part of what i have entered in the report regions
    IF :P1C != 'NULL' THEN
    --DISPLAY THESE VALUES
    END IF;---------
    this is what i found the latest. whats happeneing is
    when i select listA, listB-- listC gets populated and when i select from listC based on that value which gets stored in session state, report regions get displayed
    but when i go back and change selection in listA, listB
    by default listC session value should go to NULL, and only after i make a new selection, then with this new session value for listC, the report regions get displayed.
    but when i checked the session value for listC, it still remains the same old value from the previous selection, because i haven't nade new selection and thats why the report regions are still showing the old result.
    so how can i remove this session value for listC after displaying the report results.
    Thanks,
    Philip.
    Message was edited by:
    [email protected]

    There is nothing wrong with your code, so I'd look elsewhere for the problem. Is this a direct copy of what you have on your page?
    :P1_COMBO1 in ('Option 1', 'Option 2')
    And
    :P1_COMBO2 = 'Option Combo 2'And the page item values are exactly as you have in the quoted strings? You might run the page in debug and confirm the page item values are exact.
    Edited by: Bob37 on Dec 6, 2011 2:18 PM

  • How to get Header Column Content based on MIN or RANK

    Hey Everyone,
    I am trying to grab the header content based off of the lowest of three values.
    If I have:
    How do i get the column header of the lowest price?
    I tried VLOOKUP and MIN and RANK. And is its easier can I just rank the with the column header in each cell?
    Like:
    Company X - $1.00
    Company Y - $2.00
    Company Z - $3.00

    jjmancini wrote:
    What i would like to have ideally is for the right most column to rank in each column from lowest to highest.
    Example of last Column:
    1) $1.00 - Company X
    2) $2.00 - Company Y
    3) $3.00 - Company Z
    That would be the ideal solution.
    At least three, Yvan.
    I'm still not clear what this result is ranking, jj. That's partly due to the sample data in your table:
    The results shown are both the rankings of the prices in row 2 and the rankings of the lowest prices in each column. Which is it you are looking for? I've assumed you want to compare prices in each row.
    Second complication: In the column 1 header, the content is "Price Company X"; in the Example of last Column, the resulting text, which you want picked up from that header is "Company X".
    While that's not too difficult to pick off for the examples, where each 'company name' has exactly 9 characters, the simple solution won't work for 'real' companies. Placing the exact text you want copied into this row would simplify the task. See example below.
    Third complication: Although A2 on your sample shows "1.00", the actual content of the cell is "1", and the ".00" is added to the display by setting format for the cell. When picked off by a function, only the value is picked up, and it's that value that's available to the formula constructing the text string in the last column. I've avoided that by placing the company name and the price in separate cells.
    Formulas:
    Auxiliary table: A3: =SMALL(Main :: $B3:$D3,COLUMN())
    Fill right to column C. Fill Down to row 12 (to match Main table's data rows).
    Main Table: F3: =Auxiliary :: $A3
    Main Table: H3: =Auxiliary :: $B3
    Main Table: J3: =Auxiliary :: $C3
    Construct each of these three separately.
    Main Table: E3: =LOOKUP(F3,$B3:$D3,$B$2:$D$2)
    After clicking Accept, Copy cell E3, then select and Paste in G3 and I3.
    Pasted formulas will be the same except for the F3 reference.
    After placing these formulas, select cells E3:J3 and fill down to row 12.
    The Auxiliary table is used to sort the prices, and may be hidden. It may also be eliminated by replacing the formulas in F3, H3 and J3 with
    F3: =SMALL($B3:$D3,1)
    H3: =SMALL($B3:$D3,2)
    J3: =SMALL($B3:$D3,3)
    Formatting will need to be reset for these columns.
    Regards,
    Barry

  • How to get the most current file based on date and time stamp using SSIS?

    Hello,
    Let us assume that files get copied in a specific directory. We need to pick up a file and load data. Can you guys let me know how to get the most current file based on date and time stamp using SSIS?
    Thanks
    thx regards dinesh vv

    hi simon
    i excuted this script it is giving error..
       Microsoft SQL Server Integration Services Script Task
       Write scripts using Microsoft Visual C# 2008.
       The ScriptMain is the entry point class of the script.
    using System;
    using System.Data;
    using Microsoft.SqlServer.Dts.Runtime;
    using System.Windows.Forms;
    namespace ST_9a6d985a04b249c2addd766b58fee890.csproj
        [System.AddIn.AddIn("ScriptMain", Version = "1.0", Publisher = "", Description = "")]
        public partial class ScriptMain : Microsoft.SqlServer.Dts.Tasks.ScriptTask.VSTARTScriptObjectModelBase
            #region VSTA generated code
            enum ScriptResults
                Success = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Success,
                Failure = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Failure
            #endregion
            The execution engine calls this method when the task executes.
            To access the object model, use the Dts property. Connections, variables, events,
            and logging features are available as members of the Dts property as shown in the following examples.
            To reference a variable, call Dts.Variables["MyCaseSensitiveVariableName"].Value;
            To post a log entry, call Dts.Log("This is my log text", 999, null);
            To fire an event, call Dts.Events.FireInformation(99, "test", "hit the help message", "", 0, true);
            To use the connections collection use something like the following:
            ConnectionManager cm = Dts.Connections.Add("OLEDB");
            cm.ConnectionString = "Data Source=localhost;Initial Catalog=AdventureWorks;Provider=SQLNCLI10;Integrated Security=SSPI;Auto Translate=False;";
            Before returning from this method, set the value of Dts.TaskResult to indicate success or failure.
            To open Help, press F1.
            public void Main()
                string file = Dts.Variables["User::FolderName"].Value.ToString();
                string[] files = System.IO.Directory.GetFiles(Dts.Variables["User::FolderName"].Value.ToString());
                System.IO.FileInfo finf;
                DateTime currentDate = new DateTime();
                string lastFile = string.Empty;
                foreach (string f in files)
                    finf = new System.IO.FileInfo(f);
                    if (finf.CreationTime >= currentDate)
                        currentDate = finf.CreationTime;
                        lastFile = f;
                Dts.Variables["User::LastFile"].Value = lastFile;
                Dts.TaskResult = (int)ScriptResults.Success;
    thx regards dinesh vv

  • Error Copying pages based on a template

    I get the following error while copying pages based on a template. The template also contains a top horizontal navigation bar (portlet), a footer (portlet) and one item (portal smart text - Current Page). I'm using Portal 9iAs Rel 2 on win2000.
    Error while copying page. (WWC-44262)
    An unexpected error occurred: User-Defined Exception (WWC-44088)
    This region was not found. (WWC-44089)
    An unexpected error occurred: ORA-01403: no data found (WWC-44082)
    An unexpected error occurred: ORA-01403: no data found (WWC-44082)
    An unexpected error occurred: ORA-01403: no data found (WWC-44082)
    If I delete all the portlets and items from the template I'm able to make copies of the page.
    Has anyone else faced a similar problem? Please let me know if anyone has a solution.

    We've seen this problem on pages imported from another site. Please report this problem to Oracle Tech Support.
    Thanks,
    Portal PM

  • New-AzureDeployment - Error while copying content to a stream

    Hi All,
    I am trying to deploy a packages using the Azure Powershell Cmdlets.
    Each time I try to deploy a particular package, I get the following error message..
    New-AzureDeployment : Error while copying content to a stream.
    At line:1 char:1
    + New-AzureDeployment -DoNotStart -ServiceName $strStagingCCPDeploymentServiceName ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (:) [New-AzureDeployment], HttpRequestException
        + FullyQualifiedErrorId : System.Net.Http.HttpRequestException,Microsoft.WindowsAzure.Commands.ServiceManagement.HostedServices.NewAzureDeploymentCommand
    Looking at the inner exception I am getting
    Unable to read data from the transport connection: The connection was closed.
    The package itself is only 80mb and uploads to my blob storage successfully however when it tries to deploy using my config file the error occurs.  The same config file works fine if I use the Azure Website to deploy the package, rather than the cmdlets
    and I can deploy other packages successfully using PowerShell and using Visual Studio.
    Thank you for any help you can provide.

    Hi,
    This seems to be a network issue, but it's quite strange as you can deploy the package from Visual Studio. Could you please try it on another machine (in another network environment if possible)? Also, can you try
    to write a program and call the management API (http://msdn.microsoft.com/en-us/library/windowsazure/ee460813.aspx) to deploy it?
    Best Regards,
    Ming Xu
    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.

  • Performance impact of Content based message search in IE

    Hello Experts,
    I am working on implementing Content based message search in IE in PI 7.0 and PI 7.1 landscape.
    All the configurations are done and its working fine in Development scenario.
    I need help in identifying , how this actually works on technical level as in how the messages are getting searched based on the filter criteria, if there is any table getting created in background and values are getting stored etc.
    And also how could this impact the overall performance after implementing it in Production system.
    Thanks in advance!
    Warm Regards,
    Lisin

    Hi Lisin
    Not sure about 7.0/1 but for 7.4 these are the tables.(most probably tables should be same)
    When you configure a filter for UDMS search on ABAP stack(Tcod: sxms_lms_conf)
    Entries will be created in the following backed ABAP tables. (you can go to se16 and check the entries).
    SXMS_LMS_EXTR
    SXMS_EXT_FIL
    SXMS_NSPREFIX
    Data will be stored in this table
    SXMSPDATA
    When you configure a UDMS filter in RWB(java stack), entries will be created in the following backend tables
    XI_AF_LMS_EXTRACTR
    XI_AF_LMS_FILTER
    Data will be stored in the table (only the message id, direction, key field,value and position)
    XI_AF_LMS_DATA
    We have UDMS configured in our production system, and i never saw any performance issue.
    Regards
    Osman

  • Content Based Routing in ESB

    Hi All ,
    I needed some help on the content based routing feature in ESB .
    I have an ESB Process in which Data is extracted from a Database(using Select operation) and I have a column X based on whose content I want to invoke the next set of target services . I had assumed having 3 different routing rules with the Filter expression based on the content of X will do the work .This works only when I have one record for a batch of records it doesnot work .
    Wanted to know how does it evaluate for a scenario where we have multiple records in a payload with the value of the column on which we are doing content based routing varrying across the payload ?
    Thanks in advance.

    Hi,
    As James stated esb is processing the incomming recordset as one message so it applies your xpath expression to that message as a whole. Anyway, in your case, if you want to process records from a database table one record at the time i would go for the db polling mechanism and change my database model to include a logical delete column (eg a column processed which contains a Y or a N). You can not split a multiple record message in esb itself into separate messages for each record.
    Kind Regards,
    Andre

  • Receive file content based on file Id/fileName

    Hi,
    I want to configure a scenario in XI that I can call via HTTP, pass the filename and receive the file conetnt of XML document.
    Suppose I had created two structres, 1st is fileID, and 2nd is FileContent.
    If i send the FileID/Filename, I should get File content based on FileId/Filename as output.
    If I am doing HTTP to RFC, for BAPI-Company getdetail,  I can fetch the data, based on the company ID, and can get company details as result,
    I am doing Http to file, Now how shd i proceed with my case.
    I send fileid/filename as input parameter, i shd get filecontent as output
    Regards,
    varun

    Hi Varun,
    i don't know how to do it in .Net
    But procedure must be the same as that of java.
    in java to develope web service we create a standalone EJB and expose it as a web service.
    you will have a variable that will contain the path of the file.
    then as return type take a variable of string type that will return the content of file.
    Down load the WSDL of your webservice from WebserviceNevigator of your WAS,
    Import it as a external defination in XI
    Do the Required Mapping.
    Thanks
    Sunil Singh

  • Split messages while using content based routing

    Hi gurus,
    We are using content base routing by checking the value of field F1 in our scenario. If the value is V1, then route to system A; If the value is V2, then route to system B.
    There are two layer in the send message type: layer1 and layer2. Both layer1 and layer2 can occur many times.
    As you know,  The field maybe existed many times in the real messages. Sometimes with the value V1, sometimes with the value V2.
    If F1 is in the layer1, can we split into two messages by judging the value of F1?
    If F1 is in the layer2, can we split into two messages by judging the value of F1?
    Thanks in advance.

    Hi Grzegorz,
    Thanks for your reply.
    Actually my case is as follows:
    (send messge)
                   <DATA>
                        <F1>V1</F1>
                   </DATA>
                   <DATA>
                        <F1>V2</F1>
                   </DATA>
                   <DATA>
                        <F1>V1</F1>
                   </DATA>
    Then in system A, we should receive( suppose no mapping):
                   <DATA>
                        <F1>V1</F1>
                   </DATA>
                   <DATA>
                        <F1>V1</F1>
                   </DATA>
    While in system B, we should recieve:
                   <DATA>
                        <F1>V2</F1>
                   </DATA>
    If we only use content based routing, both A and B will receive all 3 DATA.
    Any ideas? Thanks in advance.

  • Does OpenESB support "Content-based Routing"?

    Hi,
    support OpenESB the "Content-based-Routing"? e.g is there JXPath SE or Groovy SE or any service engine for this issue? if yes which is please?
    thanks in advance
    Younes

    There's an Apache Camel service engine, and Camel's rather neat when it comes to routing
    edit: groan :-( I just noticed the date on this post
    Edited by: georgemc on Jul 7, 2010 1:59 PM

  • HT4098 Dear Itunes! I would like to have it deleted, my undermentioned order:Name of Subscription: LAOLA1 PREMIUM Name of Application: LAOLA1.tv Content Provider:      LAOLA1 Date of purchase: 02/03/14 Subscription Period: 1 month Price: 4,99 € Payment Me

    Dear Itunes!
    I would like to have it deleted, my undermentioned order:Name of Subscription: LAOLA1 PREMIUM
    Name of Application: LAOLA1.tv
    Content Provider:      LAOLA1
    Date of purchase: 02/03/14
    Subscription Period: 1 month
    Price: 4,99 €
    Payment Method: iTunes account
    <Personal Information Edited by Host>

    We are fellow users here on these user-to-user forums, you're not talking to iTunes Support nor Apple - I've asked the hosts to remove your email address and password from your post (it's not a good idea to post personal info on any public forum). You should change your account's password IMMEDIATELY.
    There are instructions on this page for managing and stopping auto-renewing subscriptions : http://support.apple.com/kb/HT4098
    If you are looking to get the subscription refunded then all purchases are considered final, but you can try the 'report a problem' link to contact iTunes Support and see if they will refund or credit you : http://reportaproblem.apple.com
    If the 'report a problem' link doesn't work then you can try contacting iTunes Support via this page : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption

Maybe you are looking for

  • How to change the table's for an existing report

    Hello, How can I change the table names for reports created with a different table name? for e.g If I created a report which included a table called "2009_10_example", How can I change that table to a different table "2010_10_example1". I am using Cr

  • Sales report period wise

    Hi Is there any report in SAP to know the customer wise Sales Organisation wise sales order peport. we need to konw customer wise sales orders report period wise. how many salea orders we booked for the customer wise. EX: Customer No | Customer Name|

  • How can I go to the folder "Library"? It doesn't exist in Lion.

    I need the folder "Libary". But in Lion it doesn't exist anymore. How can i go to this folder? Please answer

  • ITunes Downgrade - Help

    Can anyone tell me where I can download an older version of iTunes? I can't seem to find it anywhere. Thanks a lot.

  • Restrict Org details based on the User in Business partner creation..

    Hi Gurus,. I have to assign Sales Org , DIV, Distribution Channel to the Business Partner in Sales Area data.  When I try system shows entire Org structure. But I want the Org structure should be displayed based on the user log on. Assume that, I am