KM Task Scheduler , retrieve IPortalComponentRequest request

Hello,
I would like to use KM Task Scheduler :
public void run( String id, Properties properties ) {
     IPortalComponentRequest request;
     String location = request.getPublicResourcePath();
It's normal, it doesn't work ! How can I use IPortalComponentRequest for my schedule task ?
Thanks a lot
Best regards,
Aurélien

Aurelien,
ok then, place your xml file into any package of your project. For example:
In package called "my.package.files" place file "myfile.xml"
then wherever within your code (let's assume you have an class called MySchedullerTask) call next structure:
URL url = MySchedullerTask.getClass().getClassLoader().getResource("my/package/files/myfile.xml");
and then work with the file.
Just one more note: non Java files are not build always into application PAR acrhive.
To do so, you have to check in option:
"Yes, I want the non java sources includet into the portal components jars"
You will find this option in NWDS:
Window -> Preferences -> SAP Enterprise Portal -> Application Development Studio.
regards
mz

Similar Messages

  • Exchange 2013 mailbox auditing command with showdetails parameter in ps1 script is not working via task scheduler

     
    Hi All ,
    In my environment we are having exchange 2013 enterprise edition with SP1 which is installed in windows server 2012 standard edition.
    We have enabled mailbox auditing for few mailboxes and also we have made simple powershell script with only the below mentioned commands .when i run the  ps1 script  in exchange management shell ,i can able to get the relevant output.
    CMDLETS in powershell script :
    Search-MailboxAuditLog -StartDate ((Get-Date).AddHours(-24)) -EndDate (Get-Date) -showdetails | fl >e:\output.txt
    Note : we are having only the above commands in ps1 script , apart from that we don't have anything in it .
    Sametime i have scheduled the same powershell script via task scheduler .But i cannot able to get the valid output ,instead of that i was getting a blank output file with no data in it . 
    Steps handled on my side to run the powershell script in task scheduler: 
    1.when i remove the parameter showdetails in the ps1 script ,i can able to get the output in the txt file .But in my scenario showdetails is the only parameter which will brought me more and in depth details about mailbox auditing.
    The Difference what i have seen between exchange 2010 and exchange 2013 
    when in run the same powershell script via task scheduler in exchange 2010 enterprise environment installed in windows server 2008 r2 enterprise OS, i can able able to get the proper output without removing the showdetails parameter .
    I am using the below methods to run the ps1 file via task scheduler in exchange 2013 environment .
    program/script : C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
    Add arguments : -PSConsoleFile "E:\Program Files\Microsoft\Exchange Server\V15\Bin\exshell.psc1" -Command ". 'C:\scripts\MailboxAuditReport\test.ps1'"
    I have mentioned the error below and that is the one what i have faced, when i try to run the PS1 script directly in windows powershell and not in exchange management shell .
    Error message : "the requesting account does not have permission to access the audit log"
    Please help me out to resolve this case .
    Thanks 
    S.Nithyanandham

    Hi All ,
    In my environment we are having exchange 2013 enterprise edition with SP1 which is installed in windows server 2012 standard edition.
    We have enabled mailbox auditing for few mailboxes and also we have made simple powershell script with only the below mentioned commands .when i run the  ps1 script  in
    exchange management shell,i can able to get the relevant output.
    CMDLETS in powershell script :
    Search-MailboxAuditLog -StartDate ((Get-Date).AddHours(-24)) -EndDate (Get-Date) -showdetails | fl >e:\output.txt
    Note : we are having only the above commands in ps1
    script , apart from that we don't have anything in it .
    In case, if i have scheduled the same powershell script via task scheduler .But i cannot able to get the valid output ,instead of that i was getting a blank output file with no data in it . 
    Steps
    handled on my side to run the powershell script in task scheduler: 
    1.when i remove the parameter showdetails
    in the ps1 script ,i can able to get the output in the txt file .But in my scenario showdetails is the only parameter which will brought me more and in depth details about mailbox auditing.
    The
    Difference what i have seen between exchange 2010 and exchange 2013 
    when in run the same powershell script via task scheduler in exchange 2010 enterprise environment installed in windows server 2008 r2 enterprise OS, i can able able to get the proper output without removing the showdetails parameter .
    I
    am using the below methods to run the ps1 file via task scheduler in exchange 2013 environment .
    program/script : C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
    Add arguments : -PSConsoleFile "E:\Program
    Files\Microsoft\Exchange Server\V15\Bin\exshell.psc1" -Command ". 'C:\scripts\MailboxAuditReport\test.ps1'"
    I have mentioned the error below and that is the one what i have faced, when i try to run the PS1 script directly in windows powershell and not in exchange management shell .
    Error message : "the requesting account does
    not have permission to access the audit log"
    Please help me out to resolve this case .
    Thanks 
    S.Nithyanandham

  • Require script or a method to Run .exe files on target computers using task scheduler or any other Windows server intigrated tool

    Hi All,
    We are outsourcing services to our clients. One of our clients whom we manage the whole Active directory / Exchange 2010 infrastructure have a requirement.
    We would like to run a .exe file from one server to another server / servers remotely to generate a report. The challenge is that we do not have permissions on some servers to access so we cannot login manually and run the .exe file to generate that report.
    (All are in the same domain restricted or non restricted)
    The domain Administrator (Client) Has restricted us to login to those servers due to security reasons. And is not providing us permissions or not giving the username and password to login to those servers.
    Requirement is :
    To run a .exe file with some parameters in it on the restricted servers Via powershell script or task scheduler (As the task will be created by the domain admin in the server in which we have access by entering the domain account).
    As we have to run this .exe file on around 60 servers (restricted) so an option should popup asking the name of the agent in which you want to RUN the .exe file or a source input via CSV will also be fine.
    Can anyone tell me or can this be possible ? Is there any one who has made such a script.
    Can anyone please help.
    Gautam.75801

    Hi Justin,
    Thank you for the suggestion.
    Below is the script what i Executed.
    "C:\Windows\system32\PsExec.exe" @C:\HPS\Serverrlist.txt cmd /C "server name\C$\hps\hps.EXE"
    Pause
    I tried using PSExec. But in the LAB domain as well as in the production i tried this on servers in which i have full access. When i execute this i get the output as Access is denied. Below is the screenshot of the Error.
    I have installed Psexec on both machines.
    I have full admin rights to the shared folder or network location which i have scratched in the screenshot. Not sure why i am getting this error.
    Also analysed the event logs and found a failure event once i execute this script.
    A handle to an object was requested.
    Subject:
    Security ID:
    Domain name\My username
    Account Name:
    Lg167978
    Account Domain:
    My Domain
    Logon ID:
    0x234992
    Object:
    Object Server:
    Security
    Object Type:
    File
    Object Name:
    C:\Windows\System32\eventvwr.msc
    Handle ID:
    0x0
    Process Information:
    Process ID:
    0x17e0
    Process Name:
    C:\Windows\System32\mmc.exe
    Access Request Information:
    Transaction ID:
    {00000000-0000-0000-0000-000000000000}
    Accesses:
    READ_CONTROL
    SYNCHRONIZE
    WriteData (or AddFile)
    AppendData (or AddSubdirectory or CreatePipeInstance)
    WriteEA
    ReadAttributes
    WriteAttributes
    Access Reasons:
    READ_CONTROL: Granted by
    D:(A;;0x1200a9;;;BA)
    SYNCHRONIZE:
    Granted by D:(A;;0x1200a9;;;BA)
    WriteData (or AddFile):
    Not granted
    AppendData (or AddSubdirectory or CreatePipeInstance):
    Not granted
    WriteEA:
    Not granted
    ReadAttributes:
    Granted by ACE on parent folder D:(A;;0x1301bf;;;BA)
    WriteAttributes:
    Not granted
    Access Mask:
    0x120196
    Privileges Used for Access Check:
    Restricted SID Count:
    0
    Can you help in solving this.
    Gautam.75801

  • Task Scheduled Start Date with RAPI

    Task Scheduled Start Date with RAPI
    Is it possible to have a scheduled start date for a task in a service that is generated by RAPI, and, which does not have any authorizations/reviews? RAPI seems to throw the request into the service delivery moment without calculating the tasks even if I supply a date onload (in a field for the task start date to use). It works fine if there are authorizations or reviews, which is expected, but I can't get it to work without them. Thanks!

    Fascinating. As a workaround could you try throwing in a dummy authorization? For example, externalize it with ServiceLink dummy and autocomplete adapters, or keep it internal, but conditional with a condition that would always be false.

  • Trying to run Power shell Script on task schedule

    My case is i'm trying to run a power shell script through the task schedule.
    Note if i run the script locally it is working fine but from the task schedule it is not working.
    More information: 
    script function: Password Change Notification
    Task name : test3
    Time to do the task: 9:08 am every day
    the status : running 
    .ps1 file location: under C\windows\system32\
    some actions in the task history after the dated time to run:
    1 Task Scheduler launched "{3023b1eb-9b29-47b9-ace2-e6083e2f00cc}"  instance of task "\test3" due to a time trigger condition
    2 Task Engine "S-1-5-21-60622444-1628707926-2526327935-500: enviroment\Admin:S4U:LUA"  received a message from Task Scheduler service requesting to launch task "\test3" .
    3 Task Scheduler started "{3023b1eb-9b29-47b9-ace2-e6083e2f00cc}" instance of the "\test3" task for user "enviroment\admin
    4 Task Scheduler launched action ""C:\Windows\System32\Password Change Notification\Password Change Notification.ps1"" in instance "{3023b1eb-9b29-47b9-ace2-e6083e2f00cc}" of task "\test3
    5 Task Scheduler launch task "\test3" , instance "C:\Windows\System32\notepad.exe"  with process ID 5052

    Hi MeipoXu,
    First of all i would like to thank you for your answer, i followed the URL that you posted already in the previous comment and unfortunately it didn't work, and please find my ps1 file
    content as typed below and give me your feedback on that.
    #  # Version 1.1 May 2014
    # Robert Pearman (WSSMB MVP) # TitleRequired.com
    # Script to Automated Email Reminders when Users Passwords due to Expire.
    # # Requires: Windows PowerShell Module for Active Directory
    # # For assistance and ideas, visit the TechNet Gallery Q&A Page. http://gallery.technet.microsoft.com/Password-Expiry-Email-177c3e27/view/Discussions#content
    # Please Configure the following variables....
    $smtpServer="outlook. myDomain " $expireindays = 7
    $from = "الدعم الفني
    <ITHelpDesk@myDomain>"
    $logging = "Enabled" # Set to Disabled to Disable Logging
    $logFile = "PassExpireNotlog.csv" # ie. c:\mylog.csv
    $testing = "Enabled" ## "Enabled" # Set to Disabled to Email Users
    $testRecipient = "MyEmail@MyDomain"
    $encoding = [System.Text.Encoding]::Unicode $date = Get-Date -format ddMMyyyy
    # Check Logging Settings if (($logging) -eq "Enabled")
    {     # Test Log File Path
        $logfilePath = (Test-Path $logFile)     if (($logFilePath) -ne "True")
        {         # Create CSV File and Headers
            New-Item $logfile -ItemType File
            Add-Content $logfile "Date,Name,EmailAddress,DaystoExpire,ExpiresOn,MsgBody"
        } } # End Logging Check
    # Get Users From AD who are Enabled, Passwords Expire and are Not Currently Expired
    Import-Module ActiveDirectory $users = get-aduser -filter * -SearchScope Subtree -SearchBase "OU=UsersOU,DC=MyDomain,DC=MyrootDomain,DC=MYrootNS" -properties Name, PasswordNeverExpires, PasswordExpired, PasswordLastSet,
    EmailAddress |where {$_.Enabled -eq "True"} | where { $_.PasswordNeverExpires -eq $false } | where { $_.passwordexpired -eq $false }
    $maxPasswordAge = (Get-ADDefaultDomainPasswordPolicy).MaxPasswordAge
    # Process Each User for Password Expiry foreach ($user in $users)
    {     $Name = (Get-ADUser $user | foreach { $_.Name})
        $emailaddress = $user.emailaddress
        $passwordSetDate = (get-aduser $user -properties * | foreach { $_.PasswordLastSet })
        $PasswordPol = (Get-AduserResultantPasswordPolicy $user)
        # Check for Fine Grained Password
        if (($PasswordPol) -ne $null)     {
            $maxPasswordAge = ($PasswordPol).MaxPasswordAge
        $expireson = $passwordsetdate + $maxPasswordAge
        $today = (get-date)     $daystoexpire = (New-TimeSpan -Start $today -End $Expireson).Days
                 # Set Greeting based on Number of Days to Expiry.
        # Check Number of Days to Expiry
        $messageDays = $daystoexpire     if (($messageDays) -ge "2")
        {         $messageDays = "خلال
    " + "$daystoexpire" + " ايام"
        }     elseif (($messageDays) -eq "2")
        {         $messageDays = "خلال يومين
        }     else
        {         $messageDays = "اليوم."
        }     # Email Subject Set Here
        $subject="كلمة المرور الخاصة بك ستنتهي
    $messageDays"
           # Email Body Set Here, Note You can use HTML, including Images.
        $body =     "<P style='font-family: Arial; font-size: 16pt' />
        <center> الاستاذ/ $name
    </center> 
        <br>     <center>
    كلمة المرور الخاصة بك ستنتهي $messageDays </center>
        <br>     <center>
    نأمل تغييرها في أقرب فرصة حتي تتمكن من الدخول على النظام
    </center>
        <br>     <center>
    مع تحيات الادارة العامة لتقنية المعلومات
    </center> 
        <br>     </P>"
            # If Testing Is Enabled - Email Administrator
        if (($testing) -eq "Enabled")
        {         $emailaddress = $testRecipient
        } # End Testing     # If a user has no email address listed
        if (($emailaddress) -eq $null)
        {         $emailaddress = $testRecipient    
        }# End No Valid Email     # Send Email Message
        if (($daystoexpire -ge "0") -and ($daystoexpire -lt $expireindays))
        {          # If Logging is Enabled Log Details
            if (($logging) -eq "Enabled")
            {             Add-Content $logfile "$date,$Name,$emailaddress,$daystoExpire,$expireson,$body" 
            }         # Send Email Message
            Send-Mailmessage -smtpServer $smtpServer -from $from -to $emailaddress -subject $subject -body $body -bodyasHTML -priority High -Encoding $encoding
                    } # End Send Message
      } # End User Processing
    # End

  • Task Scheduler Success on 2008 R2 but failure on 2012 R2

    Hi
    I have currently got an issue with a Scheduled Task. It does not appear to run and returns a Last Run Result of (0x1).
    So I went back to basics and created a simple task and compared between 2008 R2 and 2012 R2. On 2008 R2 the task completes and returns (0x0), on 2012 R2 the task returns (0x1).
    The Service Account that runs the task is a member of the Administrators Group on both servers.
    The task is to run a batch file that outputs the content of C:\ to a file called list.txt.
    @ECHO OFF
    DIR C:\ > C:\Temp\list.txt
    Options that are selected are as follows:
    Service Account set to Domain Account (Password is correct);
    Run whether user is logged on or not;
    Run with highest privileges;
    No Trigger set (task is run by right clicking);
    Action is Start a program (Program/script = TestScheduleTest.cmd, Start in optional = C:\Temp);
    Start the task only if the computer is on AC power;
    Stop if the computer swtiches to battery power;
    Allow task to be run on demand;
    Stop the task if it runs longer than 3 days;
    If the running task does not end when requested, for it to stop.
    Any ideas why on a 2012 R2 this would fail?
    Regards

    I would recommend referring to that: https://social.technet.microsoft.com/Forums/windowsserver/en-US/57c65328-d8c8-4e13-9b51-e017ae6c298c/task-scheduler-returns-0x1-code-when-run-whehter-user-is-logged-on-or-not-options-selected?forum=winserverManagement
    Mainly check that the account you use to run the scheduled task has the required privileges to run it (You can running the script with
    runas option in CMD and check if you get errors). Also, it might be possible that the batch file requires a privilege elevation.
    This posting is provided AS IS with no warranties or guarantees , and confers no rights.
    Ahmed MALEK
    My Website Link
    My Linkedin Profile
    My MVP Profile

  • JFileChooser() not working with windows task scheduler

    I have a program that would send emails with attachments to users. The program should be ran according to the scheduled time, and because of that I use task scheduler to do it for me. I did all necessary steps to make this happen. (create .bat file to activate/run the jar file then task scheduler will trigger the .bat file if it hits the stated schedule.) The problem right now is that when the program is ran or is triggered by task scheduler, it gives off this error:
    java.lang.NullPointerException
    at sun.awt.shell.Win32ShellFolder2$1.call(Unknown Source)
    at sun.awt.shell.Win32ShellFolder2$1.call(Unknown Source)
    at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at sun.awt.shell.Win32ShellFolderManager2$ComInvoker$3.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)I tried running it manually by using the .bat file and it works fine with no errors or whatsoever. I'm suspecting it has something to do with jFileChooser() because It wont retrieve the attachments in the default directory, but I'm not sure, there might be other causes. Here's the function that retrieves the attachments in the default directory:
    public String getMyDocument(String filename)
         JFileChooser fr = new JFileChooser();
         FileSystemView fw = fr.getFileSystemView();
         return fw.getDefaultDirectory().toString()+"\\"+filename+".xls";
    }PS.
    All required attachments are present in the default directory, no misspelled words or misplaced characters. I also did some research but so far i haven't found any solutions yet.

    gimbal2 wrote:
    sabre150 wrote:{quoteStrange code anyway to use a filechooser to get a directory, especially when apparently no actual GUI is created. My immediate thought when I saw the code. I'm not even sure there is a default directory if the component is not realized but I have never checked. I would like to suggest to the OP that he uses the "user.home" directory but again I have never checked where that points when used with the task scheduler. It could be that it is not defined and that file chooser uses this as the default if not explicitly set. This is why I suggest that the OP writes out the value.

  • Coldfusion task scheduler

    I have been forced to migrate a coldfusion program to windows server for authentication security purposes.  I need to continue to use the task scheduler.  Security concerns also do not allow me to use IE to kick-off the coldfusion task scheduler.  If there any way to kick it off using a script without using a browser?

    I think I am beginning to see what you are trying to describe.
    Some things to make sure you clearly understand.
    A ColdFusion scheduled task is nothing more then a HTTP request to a CFML file done at a scheduled time.  If you have ColdFusion make this HTTP request, it will use a built in 'browser' internal to the ColdFusion engine to make the request.  There is nothing preventing you from using any other system you want to make that HTTP request to the CFML file in some scheduled manner.
    Secondly, you repeatedly talk about no browser (IE) allowed on the server.  The browser does not need to be on the server to configure a scheduled task.  Any browser on any system that can connect to the server can be used to configure the ColdFusion scheduled task.  But if you do configure the scheduled task through ColdFusion, then ColdFusion will be using it's internal system to make the HTTP request to the CFML file.
    Now we get to what I think you are talking about though.  It sounds like you have locked down the server with Microsoft Windows Integrated Security and ColdFusion can not make these HTTP requests, because surpise suprise ColdFusion is not a Microsoft product and it does not use NTLM autentication.
    What it can do is use is "Basic Security".  What usually happens now is that people say basic security is not good because it passes the user name and password in plain text in the request.  The idea here is that yes, the request is plain text, but it is expected that the entire request will then be encrypted with something like SSL.
    The other common solution is to configure one small section of the web server, a certain directory or even just the specific scheduled task files, are configured to not use Windows integrated security.  You can then configure your web server to only allow connections from the local ColdFusion applicaiton server IP address and no others so that there is no way for anybody else to access these so called 'unsecured' files.
    But, unfortunatly, there is no way to have ColdFusion make NTLM connections to Windows Integrated Security resources.
    To sumerize your three choices are:
    1) Use some other techenology to make the HTTP requests on a scheduled basis to the CFML files.
    2) Use basic security combined with SSL and not Windows Integrated Security
    3) Don't use user authentication security, but lock down the scheduled task resources to only accept requests form the specific ColdFuiosn server.
    P.S. I imagine one could combine the second and third options if one wanted to.

  • How To Schedule a Concurrent Request on completion of a Spawned Request

    As soon as the concurrent request submitted through Oracle Form(Consolidation Transfer)is completed we need to schedule another Concurrent Request which had to be kicked off automatically on completion of the First concurrent request. Since, the First concurrent request of Consolidation Transfer is a Spawned Program, the request set could not be created, to kick off the second concurrent program.
    I would Appreciate if anyone can advise any solution to achieve this objective.

    Hi Harish,
    Doesn't matter what you need to do all you need is the hook!
    a) Nice. Force the request to print and use print driver to call CONCSUB to submit your new "child" request
    -- Since the Consolidation Trasnfer concurrent request could only be submitted through Consolidation Trasnfer Form only, I am not sure how we can do Force Print for this request.
    GR: Set printer and style on concurrent program definition. Set profile option "Concurrent:Report Copies" to 1 (even by Forms Personalization if you want to). Sorted. Still think this is the best option.
    c) Abstraction. Replace the C executable with a shell script that takes arguments and calls the C program and then submits new "child" request via CONCSUB
    -- Appreciate, if you can elaborate this option. I think we can try this, with the help of your detailed input.
    GR: Change the executable on the concurrent program to a host shell script under your mods application. Initially just get the shell script to capture program call and arguments. Run the program to get arguments. Next iteration, change shell script to call the C program from your shell script with correct arguments. Verify okay. Next iteration do the same plus call CONCSUB to submit request / set.
    d) Nasty. Trigger on fnd_concurrent_requests to call new "child" request via fnd_request.submit_request - NB: very unsupported! Make sure trigger doesn't raise an exception.
    -- On completion of the Consolidation Transfer concurrent request, we tried to submit the request set using the Trigger on Consolidation History table and/or fnd_concurrent_requests table. But it is entering into infinite loop.
    GR: Need to use trigger condition to capture update of status_code to C (Completed) and other codes e.g. Warning. Personally I'd avoid this option because you have others! Although once I did use this method when I wanted absolute transparency :-)
    Update: Changed "Print: Copies" to "Concurrent:Report Copies"
    Regards,
    Gareth
    Edited by: gareth.roberts on Dec 8, 2008 4:55 PM

  • How to schedule a concurrent request to run at a specified time/day?

    Hi All,
    How to schedule a concurrent request to run at a specified time/day (ex: Sunday 12pm)?
    Thanks,
    Chiru
    Message was edited by:
    Megastar_Chiru

    Is this to run periodically ?
    During the request submission, click schedule, choose the specific days, and click on S = Sunday.
    Change the start date on the date of the sunday you want to run, eg : 15-JUL-07 14:00:00, change the end date as well.

  • Unable to receive an email by task scheduler on audit failure in windows server 2008 r2 security log

    Deal All,
    I am sorry in advance if i would be on wrong forum, i have created a task on Server 2008 r2 Domain controller that when an audit failure event triggered in windows security log then an email should reach on my email ID, but unfortunately, nothing happen
    on audit failure.i receive no email from task scheduler.
    kindly suggest me to resolve the issue. I have created Email task on  event ID 4771.
    Thanks.
    Zeeshan Ibrahim Network Administrator

    Hi Zeeshan,
    I have found a hotfix against the same error messages, though it applies to Windows Vista and Windows Server 2008, I am not sure if it will work on your machine.
    Please refer to this KB article below:
    Duplicate triggers are generated incorrectly in scheduled tasks in Windows Vista or in Windows Server 2008
    http://support.microsoft.com/kb/2617046
    Please feel free to let us know if this hotfix couldn’t help you fix this issue.
    Best Regards,
    Amy Wang

  • Creating Oracle Job with Task Scheduler

    Hi,
    Platform: Oracle10g R2, Windows 2003 Server
    I have the below script on my Linux server that backups up the database. It's run via crontab.
    --------------- script ---------------------
    -- Environment variables goes here
    cd $ORACLE_HOME/bin
    ./rman target / <<EOF
    startup mount;
    backup database plus archivelog delete input;
    delete noprompt obsolete;
    alter database open;
    I want something similar I can do on windows like .bat file that I can schedule to run via Task Scheduler.
    Any help please?
    Thnaks and regards,
    Creems

    Hi AG,
    I tried to do that but it's not working.
    But I did something similar for auto-delete of flashback logs and it works but the backup thing aint working.
    What can I do?
    Here is what I did for the auto-flashback delete
    =======
    RunSQL.bat
    =======
    -- content of RunSQL.bat
    @ECHO OFF
    TITLE Resetting Flashback Logs
    CLS
    ECHO Please be patient. This will take some time.
    ECHO.
    ECHO.
    SET ORACLE_SID=PROD
    sqlplus.exe /nolog @del_flashback.sql
    ECHO.
    ECHO.
    ECHO FLASHBACKs reset. Please continue with your other procedures.
    ECHO.
    ==========
    del_flashback.sql
    ==========
    -- content of del_flashback.sql
    connect /nolog
    conn sys/oracle as sysdba
    SHOW USER
    shutdown immediate
    startup mount
    alter database flashback off;
    alter database flashback on;
    alter database open;
    SHOW USER
    exit
    This works, but when I did the same with RMAN backup it doesn't.
    Any more help please?
    Thanks and regards,
    Creems

  • Use a "Write" Event on a Specific Drive or to a Specific Folder to Trigger a Task in Task Scheduler

    I first posted this question on the Microsoft Community forum. It was suggested that I repost it here.
    I have a question!
    (Pleas forgive the long post...)
    What I am trying to do: (This is what I have not yet figured out!)
    I am trying to figure out how to trigger a task, in Windows Task Scheduler (WTS), whenever a "Disk Write" event occurs on a specified drive on the machine. - Or, more specifically, whenever a new file or folder is written or
    saved to a specified Folder, or a specific Disk Partition, or a specific Hard Disk on the machine - whichever is more relevant for the end goal.
    The overall goal:
    When a "disk write" operation occurs and data is written to a specified location on a Hard Drive, start a Program at the beginning of the following hour, that will run a backup of the contents
    of that location, (after - of course - the new data has been written). After the backup is complete, disallow the program from being started again at the beginning of the next hour, unless more data is written to the specified location beforehand.
    Example:
    At 2:27pm, I save a new word document to "D:\My Folder\". When the new Word doc file is saved to "D:\My Folder\", my preferred Backup software application is then scheduled to run a backup at the beginning of
    the following hour - at 3:00pm - which will then create a new backup of "D:\My Folder\".
    The backup software will NOT be scheduled to run again at the next following hour - at 4:00pm - unless another file or additional data is written to "D:\My Folder\" - between 3:00pm and 4:00pm.
    Summary:
    The goal here is to only run a backup at the beginning of the next hour, following a “disk write” event to a specified location on the hard drive.
    Steps that I have, so far, on how to make this happen:
    Whenever data is written to a specified location on a hard drive (i.e. "D:\My Folder\"), "Task A," in Windows Task Scheduler, will be triggered to execute its action.
    The Action in "Task A" will run a script that changes the Status of "Task B" to ENABLED.
    The Action in "Task B" will, on a continuous hourly schedule, start a program that will perform work on the machine. (In this case, it will run a Backup Task in my preferred backup software.)
    Upon completion of work by that program (the Backup software), that program will run another script that will change the Status of "Task B" back to DISABLED; preventing "Task B" from continuing that program every hour
    according to its hourly schedule.
    How do I do this: ... ?
    The thing holding me back on making this work is figuring out how to identify the source that generates the “disk write” event and event ID I need, so I can use it to trigger a task in Windows Task Scheduler - in the way that I need. Furthermore,
    the “disk write” event needs to specific to a disk drive that I specify and if at all possible, specific to a location that I specify, i.e. “D:\My Folder\”.
    Any help on this as well as other suggestions on making this work is greatly appreciated!
    Ryan A Miller

    Hello Ryan A Miller,
    What is your current situation?
    Have you try the script as  Frederik Long mentioned?
    To receive better support, it is recommended to post in the TechNet Script forum.
    https://social.technet.microsoft.com/Forums/scriptcenter/en-US/home?forum=ITCG
    The professionals there will be glad to help you.
    Best regards,
    Fangzhou CHEN
    Fangzhou CHEN
    TechNet Community Support

  • SyncToy 2.1 Can't Find NAS Folder When Run From Task Scheduler

    I'm using SyncToy 2.1 to keep two WIN7 computers and a Synology DS414j NAS drive in sync. I have several folder pairs configured, some between the two PC's and three between one PC and the NAS drive. I have a task set up for automatic syncing. The problem
    is SyncToy can't find the destination folders on the NAS drive if it's run from Task Scheduler. If I run SyncToy manually, everything works fine. I've even tried opening the command prompt and running the exact same program Task Scheduler is running (SyncToyCmd.exe
    -R), and it works perfectly. But when Task Scheduler runs the task, it fails to find the NAS folders with the following error message:
    SYNC: 08/21/2014 14:12:26:140: *** Failed to execute folder pair Downloads to NAS. Could not locate folder \\DISKSTATION\Downloads\.
    I've been looking for days for a solution and have not found anyone with this problem. Any ideas?

    Hi Texxxas,
    Apparently the problem is not with SyncToy, it is with Task Scheduler. If you have had Task Scheduler work for you in the past, then I don't have an answer for that. I have never been able to get Task Scheduler to work correctly with SyncToy and a NAS drive.
    I have found that for some reason it works with USB external HDD's but will not work with a network connected hard drive. The same bug exists in Win8.1 as well. However, I have since found a third party task scheduler that works perfectly with SyncToy and
    my NAS drive. It is called System Scheduler by Splinterware. The free version only works when you are logged in but they have a paid version that runs as a service and will execute without being logged in. This has solved my problem.

  • Running a .cmd file at startup using Task Scheduler on Windows 2012 R2 server

    Hello,
    I've recently tried to get a simple .cmd file running at server startup on my Windows 2012 R2 server.
    The .cmd (test.cmd) file contains the following:
    C:
    cd C:\SomeFolder\
    call Some.exe file "Argument1" "Argument2"
    I've ensured that the local administrator user [someuser01] has full control of the C:\SomeFolder
    I've also ensured that someuser01 is part of Log on as Batch Job
    in Local Security Policy
    To try running it as startup, I tried using Task Scheduler.
    General Tab: I set the user (local administrator account [someuser01] ) and ticked the options
    Run whether logged on or not, Do not Store Password, Run with Highest Privileges
    Triggers: At System Startup, Ticked Enabled
    Actions: Start a Program. Program/Script: test.cmd, Add arguments: [Blank], Start in: C:\SomeFolder
    Conditions: Unticked all conditions
    Settings: Ticked only the following --> Allow task to be run on demand, If the running task does not end...force to stop
    Then I clicked OK and was prompted for someuser01's credentials.
    I then restarted the server.
    Upon logging in as administrator, I checked the task scheduler, and I found that the task did not run (Last Run Time: Never)
    I've been able to run it manually (click Run on the task in Task scheduler) without any problems.
    I just cannot get it to run at startup as I've instructed Task Scheduler to do.
    Any ideas on what might be causing this problem?
    Thanks.

    Hello Dave Patrick,
    I've also tried this approach and I came across this error after I try to enter someuser01's credentials:
    An error has occured for the task sometask01. Error message: The following error was reported: A specified logon session does not exist. It may already have been terminated..
    After doing some research, this new error is caused by a setting in Local Security:
    Local Security Policy --> Security Options --> Network Access: Do not allow storage of passwords and credentials for network authentication --> Enabled
    Unfortunately, I cannot disable this Security Policy due to our company's internal restrictions.
    Just to clarify, the reason that the task does not run at startup is because of a logon failure because the password was not stored for
    someuser01 ?
    However, I cannot allow storage of the password because of our our company's internal restrictions.
    Is there a possible workaround for this..?
    Thanks!

Maybe you are looking for

  • Recovery differences between standard edition and enterprise edition/datalo

    Enterprise     Standard Disaster recovery time (hours, minutes -)           Data loss (hours, minutes -)           Support cost savings (if any)

  • HR ABAP/BW/WEBDYNPRO

    Hi All, Now i've 2 years of experience in ABAP .Now i want to change my career . My organisation is going to train me on BW.Shall i accept BW or Shall i ask them to train me on HR ABAP,but it will take few months time or Shall i study WEB DYNPRO by m

  • Qosmio x300 and Win7 - FN buttons dont work

    I reinstalled Windows 7 and now the FN buttons dont work. I have installed the newest version of VAP, the flash card utility is running. So I have no idea. Did I forget to install something? Or is there a tool who installs all drivers for my Qosmio x

  • Im looking for photoshop cs5 extended link

    I am looking for a link to download photoshop cs5 extended.

  • Having issues with calendar on iPod touch

    I recently bought ipod Touch 4, but I am having problems with the calendar.  Many of the events that appear on my desktop don't appear on my ipod Touch. When I input an event directly on the ipod touch, within a few seconds it disappears.  I've tried