AWM Maintenance Task Script missing

Has anyone else experienced this? I'm in AWM, using the 'Maintain Analytic Workspace' function (to load and aggregate data). The final wizard screen allows us to save a script containing the sql code for the task. According to the help screen, this option "Creates a SQL script on your local computer or network drive. You can execute the script at any time."
So I select that check box, navigate to the desired directory, type in a file name, and click 'Finish' to start the load and aggregation. The load and agg work just fine, but there's no script file. I can choose an existing file or specify a new file name, but either way it doesn't work.
It's not a user rights issue, since I'm the administrator of this stand-alone development PC.
Using AWM 10.2.0.1.0A on Windows XP Professional.
Any suggestions?

Try to put authid clause while creating the procedure. Not sure if this resolve your issue but its worth trying it...
create procedure abc_xyz authid current_user
as
declare
xml_clob clob;
xml_str varchar2(4000);
isAW number;
begin
dbms_aw.aw_attach('MI_WS3_ENV2_OLAP_CORT_O.CORT_FACILITY');
DBMS_LOB.CREATETEMPORARY(xml_clob,TRUE);
dbms_lob.open(xml_clob, DBMS_LOB.LOB_READWRITE);
dbms_lob.writeappend(xml_clob, 200, ' <BuildDatabase Id="Action27" AWName="MI_WS3_ENV2_OLAP_CORT_O.CORT_FACILITY" BuildType="EXECUTE" RunSolve="true" CleanMeasures="false" CleanAttrs="true" CleanDim="true" TrackStatus="false" MaxJobQue');
dbms_lob.writeappend(xml_clob, 8, 'ues="0">');
dbms_lob.writeappend(xml_clob, 55, ' <BuildList XMLIDref="CF_CALENDAR_TEST.DIMENSION" />');
dbms_lob.writeappend(xml_clob, 18, ' </BuildDatabase>');
dbms_lob.close(xml_clob);
xml_str := sys.interactionExecute(xml_clob);
dbms_output.put_line(xml_str);
dbms_aw.aw_detach('MI_WS3_ENV2_OLAP_CORT_O.CORT_FACILITY');
end;
Thanks,
Brijesh

Similar Messages

  • How to change maintenance powershell script via GPO?

    Per suggestion reposted from here: http://social.technet.microsoft.com/Forums/windowsserver/en-US/6eece9d6-a524-48aa-8e64-7554f0ec9b31/how-to-change-maintenance-powershell-script-via-gpo?forum=winserverGP
    Posted at http://answers.microsoft.com/en-us/windows/forum/windows_7-desktop/desktop-shortcuts-to-items-on-network-drives/94eddb27-342b-40fc-9ad4-677ff4ee8ebe?page=9&tm=1403700614489 originally.
    There is a very annoying "feature" in Windows 7 called BrokenShortcuts.ps1 which is being called out weekly via maintenance task and if it finds more than 4 "broken" network shortcuts it removes them all. So it means if a user at this
    moment is disconnected from the network he will lose all links to shares, network applications sitting on his desktop. Funny that there was no such script on Vista and i don't see this on Win8. On the post i have attached one user suggested to edit this script
    and change 4 to 500 or whatever high number. That's fine for one time fix. But i need to do this for 200+ users. This file cannot be simply replaced by a script, so i'm wondering is there any way to do it via GPO?
    I have already tried various startup scripts, but i'm not sure which user to put into commands.
    I need to run this on startup:
    takeown /F C:\Windows\diagnostics\scheduled\Maintenance\TS_BrokenShortcuts.ps1
    icacls c:\windows\diagnostics\scheduled\maintenance\TS_BrokenShortcuts.ps1 /grant "some user":F
    copy \\share\folder$\TS_BrokenShortcuts.ps1 C:\Windows\diagnostics\scheduled\Maintenance\ /Y

    You need to take time to study how Windows does these things.  You can control them with GP which is what you asked.  The article shows you how to disable elements of the tasks.  Each task controls a script.  If you disable the task the
    script that deletes shortcuts will be stopped. Other maintenance tasks will continue to run.
    Most of your problem is that you seem to want someone to provide a magical solution.  In technology it is necessary to fully research your issues until you understand all aspects.  After fully studying the issue you should understand the possible
    solutions if they exist.
    You claim to have deployed the patch that Microsoft released to fix the issue.  You claim it didn't work.  If that is the case then you need to call MS and \p[en a support incident.  If  Microsoft determines that you are right about the
    patch not working you will not be charged for the call.
    I know that learning how to support technology is hard and frustrating for newcomers.  In time, by using these incidents to learn, you will become a seasoned technician and all of this will seem trivial.  Until then we can only suggest that you
    do things that most of us are familiar with.  We cannot fix your network for you.
    I think you haven't really posted in the GP forum but posted a question about GP in the server forum.  Try posting in the GP forum.
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/home?forum=winserverGP
    Here is one answer from the GP forum:
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/home?forum=winserverGP
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/600ca14f-8b1b-400c-b27f-a7f5733407ac/windows-scheduled-maintenance-task?forum=winserverGP
    ¯\_(ツ)_/¯

  • Recommended frequency for running Rebuild Indexes Maintenance task on CAS

    How frequently shall we run "Rebuild Index" maintenance task on CAS?

    You should also consider using an actual SQL index rebuild script instead of the built-in maintenance task as described at http://stevethompsonmvp.wordpress.com/2013/05/07/optimizing-configmgr-databases/
    Jason | http://blog.configmgrftw.com

  • Do I still have to run maintenance & cron scripts?

    Do I still have to run maintenance scripts or does Apple take care of them? If I do is there an inexpensive effective app. to do this automatically for me? Thanks.

    If you machine is asleep when the periodic maintenance tasks are scheduled (3:15AM for daily, weekly and 5:30AM for monthly) they will be run shorly after your machine is wakes up.  They are launchd LaunchDaemons now.  Cron is no longer used for these.  Still, as with cron, the tasks will not be performed if the machine was off at the scheduled time (reference).

  • Enable Re-Indexing Maintenance Task for SCCM 2012 R2 Database?

    If I use the
    MaintenanceSolution.sql script provided by Ola Hallengren here: 
    http://ola.hallengren.com/sql-server-index-and-statistics-maintenance.html
    and then use this SQL script weekly to rebuild the SCCM 2012 R2 indexes:
    EXECUTE dbo.IndexOptimize
    @Databases = 'USER_DATABASES',
    @FragmentationLow = NULL,
    @FragmentationMedium = 'INDEX_REORGANIZE,INDEX_REBUILD_ONLINE,INDEX_REBUILD_OFFLINE',
    @FragmentationHigh = 'INDEX_REBUILD_ONLINE,INDEX_REBUILD_OFFLINE',
    @FragmentationLevel1 = 5,
    @FragmentationLevel2 = 30,
    @UpdateStatistics = 'ALL',
    @OnlyModifiedStatistics = 'Y'
    Then do I still need to enable the built-in database re-indexing maintenance task in the SCCM 2012 R2 console?
    Thanks 

    In the Channel9 video, the statement is made that the  built in Rebuild Indexes "maintenance task does not always work and that it is kind of broken, but it works sometimes and not always." Can anyone provide further
    details regarding the state of the Rebuild Indexes
    maintenance task? Why does it only sometimes work? Should it be used at all? Has it been fixed with a CU since the video came out? Are there plans to fix it? 
    I need to defrag my database, and  I am trying to determine the best approach.
    Thanks!
    -Tony

  • Windows Scheduled Maintenance Task

    I want to disable or delete the Windows Scheduled Maintenance Task in windows 7 by GPO in my domain 2012, because it delete old shortcuts in desktop users, but this task isn't in the c:\windows\tasks path, and I can't found it in the registry. Any idea?

    > I want to disable or delete the Windows Scheduled Maintenance Task in
    > windows 7 by GPO in my domain 2012, because it delete old shortcuts in
    > desktop users, but this task isn't in the c:\windows\tasks path, and I
    > can't found it in the registry. Any idea?
    Run
    schtasks /change /tn microsoft\windows\diagnosis\scheduled /disable
    in a startup script.
    Martin
    Mal ein
    GUTES Buch über GPOs lesen?
    NO THEY ARE NOT EVIL, if you know what you are doing:
    Good or bad GPOs?
    And if IT bothers me - coke bottle design refreshment :))

  • Error while uploading the general maintenance task list with LSMW

    Hi friends,
    I am uploading the general maintenance task list with the help of Standard Batch/Direct input method in LSMW. I am using the internal number range for task list.
    First task list is getting created properly, but while creating second task list, system is giving the error as "external number range is not assigned for task list and task list with this group ID is already created in the system."
    This is because, on initial screen, system automatically takes the group ID of the task list that is created earlier.
    My question is
    1. How to get rid of the group number that is automatically gets populated in group field of initial screen, while creating the next task list?
    2. Is it possible to assign a common identifier in all structure (Header, Operation etc) for single task list, so that system can differentiate between two task lists?
    In Equipment task list, we can differentiate the task list with equipment id and group counter.
    Please note the following point before replying to my question.
    1. I don't want to upload the general maintenance task list with external number assignment.
    Thanks in advance for early reply.

    I have the same problem....
    Please can somebody help me?

  • Windows Server 2008 sp2 Task Scheduler missing next run time after restart

    Hi,
    I have the issue that there does not appear to be a fix for with a server 2008 sp2 (NOT R2) where after a restart all tasks are missing the next run time so I need to edit each task to add this time back in. I have tried  the hotfix in KB 950035
    but this when you run it is only for Vista and cannot be installed despite saying it's also for Server 2008.
    For some reason also this is Task Scheduler version 1 not 2 which I thought came with windows since Vista so SP2 should have it.
    Anyone got any ideas?
    Thanks,

    Hi Evans,
    Would you please let us know current situation of this issue?
    As Dave mentioned, Windows Server 2008 Service Pack 2 include all the previously released updates for Windows
    Server 2008.
    Based on your description, I understand that all scheduled tasks still miss the next run time on your Windows
    Server SP2 when the server restart. If anything I misunderstand, please don’t hesitate to let me know.
    On current situation, please open Properties of one problematic scheduled task, navigate to History tab, then
    check if find some relevant events or errors. Those may help us to go further analyze.
    If any update, please feel free to let us know.
    Hope this helps.
    Best regards,
    Justin Gu
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Global Object Services (GOS) Attachments Deleted from Maintenance Task List

    We use the Global Object Services (GOS) Attachments function to attach Word and Excel Documents to Maintenance Task Lists (transactions IA02, IA09). Recently we noted that more than 300+ Attachments had been deleted/removed from the GOS list visible via IA03/IA09. We are at a loss for explaining how this occurred- all Attachments appear to have been deleted at once/instantaneously. We can see the underlying tables (SGOSHIST and others) still contain entries, but we do not understand why the Attachments are no longer visible in the GOS list via Maintenance Task Lists, or how the ability to access these via GOS can be restored. This is not occurring with other PM Object Attachments - only Task Lists. Any help or suggestions appreciated.

    Is it possible that there was some authorisation change in a role associated with task lists? That would be consistent with the immediate loss - but only in the task list area. Another thought - has anyone been doing any programming in the Generic Object Services Business Add-Ins (perhaps for another module?) - They might have inadvertently clobbered your use?
    Do you use the GOS notes functionality? Does that still work?

  • Example of a source file for Creating general maintenance task list

    Hi SAP Gurus,
    I need to create general maintenance task list from a source file. Reading forums i found that it is possible by using LSMW, with object 0490 and method 0000.
    However, I don't know how to associate structure IBIPTLST, IBITLOP and IBIPMAT. When i assign individual source files for each structure, and I execute LSMW, a problem appears indicating that IBITLOP don't have all the required fields from the list header.
    This is the structure propose by SAP in standar programa IBIP.
    Structure - IBIPTLST     Task list header
    |-->>  IBIPTEXT  (see comment below)
       |-->>  IBIPTLOP   Operations
    |       |-->> IBIPTEXT  (see comment below)
       |       |-->> IBIPTMAT  Material for one operation
       |       |-->> IBIPPRTS  Production resources/tools (PRT
       |                   |-->> LONGTEXT  (see comment below)
       |       |-->  IBIPMPAC  Maintenance packages (up to 32)
       |--->> IBIPBDCD (see comment below) from operation overview
    In other forums, a possible solution is to define an unique source file, that is proposed by LSMW, but i don't know how to obtain this template.
    Can you send me an excel example of how to define de input file or the steps I have to follow in order to execute an LSMW or the standard transaction IBIP?.
    My e-mail is [email protected]
    I have read all the SAP documentation, what i really need is an example.
    Thanks a lot
    Andrés.

    solved

  • EXECUTE permission denied on sp_sqlagent_log_jobhistory when running a maintenance task or sql job

    Hi folks,
    I have a scheduled maintenance plan and associated jobs in SQL Server 2008 SP2 that have been working but stopped about two months ago. When I run a maintenance task or sql job using any account (sa, sysadmin-priveleged domain account, etc) I get the following
    entries in the SQL Server Agent log (see below). I've tried changing the SQL Server Agent account, applied the latest hotfixes (CU2 for 2008 SP2) and set permissions manually so that the service accounts have dbo access to the msdb database. Anyone got other
    ideas? I've avoided recreating the msdb database, but that may be my only option.
    Date  4/02/2011 3:42:40 PM
    Log  SQL Server Agent (Current - 4/02/2011 3:23:00 PM)
    Message
    [298] SQLServer Error: 229, The EXECUTE permission was denied on the object 'sp_sqlagent_log_jobhistory', database 'msdb', schema 'dbo'. [SQLSTATE 42000] (ConnExecuteCachableOp)
    Date  4/02/2011 3:42:40 PM
    Log  SQL Server Agent (Current - 4/02/2011 3:23:00 PM)
    Message
    [298] SQLServer Error: 229, The EXECUTE permission was denied on the object 'agent_datetime', database 'msdb', schema 'dbo'. [SQLSTATE 42000] (ConnExecuteCachableOp)
    Date  4/02/2011 3:42:40 PM
    Log  SQL Server Agent (Current - 4/02/2011 3:23:00 PM)
    Message
    [298] SQLServer Error: 229, The EXECUTE permission was denied on the object 'sp_sqlagent_log_jobhistory', database 'msdb', schema 'dbo'. [SQLSTATE 42000] (ConnExecuteCachableOp)

    And just to add to the confusion - I created a SQL login called sql-maintjobs and have it sysadmin priveleges. I then logged in to SQL using this account on the instance that is failing and ran the following:
    declare
    @backupjobid uniqueidentifier
    select
    @backupjobid=CONVERT(uniqueidentifier,
    '2C4974D4-53BE-4E38-8EC0-8F5398CADE88')
    exec
    sp_sqlagent_log_jobhistory
    @job_id = @backupjobid,
    @step_id
    =1,
    @sql_message_id
    = 0,
    @sql_severity
    = 0,
    @message
    =
    NULL,
    @run_status
    =1,
    -- SQLAGENT_EXEC_X code
    @run_date
    =19900101,
    @run_time
    =1,
    @run_duration
    =1,
    @operator_id_emailed
    = 0,
    @operator_id_netsent
    = 0,
    @operator_id_paged
    = 0,
    @retries_attempted
    =0,
    @server
    =
    NULL,
    @session_id
    = 0
    This sql worked fine - no permission errors at all. That would suggest the account does have permission to EXECUTE that stored procedure... very confusing!

  • Predefined tasks are missing for Workflow in ECC 6.0 ehp4

    Hello Team,
    I am trying to activate the WF for PR item level, but getting  error messages as shown in the screen shot. Looks likes some standard tasks are missing.  So, How can I activate or configure this? Please Advise.
    Thanks & Regards,
    Sushma

    delegation is how you enhance workflow object, you create a z sub object and delegate it back to the standard object, any new attributes methods and events created for the z object will be available for the standard object.
    Extending Object Types: Inheritance and Delegation (SAP Library - Business Task Management)
    As for the missing tasks, this is a bit strange since this is a standard workflow, check SE03 and see that no one deleted them by mistake (the type is PDTS) if so maybe do a client copy. I don't think that you can copy the standard tasks directly. but you have a few options:
    create new tasks based on the same methods and recreate the workflow (this is not a complex workflow)
    copy the tasks in the other systems to new ones and transfer the copied tasks to your system. copy the workflow as well.

  • Plant independent general maintenance task list

    Hi, All,
    Can it be possible to create a general maintenance task list without maintenance planning plant & which can be used for all plants in same client?
    This is required to reduce the common task list data per plant existing in the system.
    Regards,
    Sanjay

    Hi Sanjay,
    maintenance Planning plant & Work Centres may differ according to the Centralised & decentralised maintenance.
    Hence not only maintenance planning plant but alos work centres may also needs to changed.
    Logically each work centres planned activity cost may differ so if u create a common task list it will not serve the purpose too.
    Ref link
    http://help.sap.com/erp2005_ehp_03/helpdata/EN/5b/ae33e04b8611d182ba0000e829fbfe/frameset.htm
    Ramesh

  • Additional User Defined field in Maintenance Task List

    I wan to add an additional field user field in Maintenance Task List.
    I know It is possible in User Fields.
    But I an not able added user field to Operations that are already there in the maintenance plan.
    The system is allowing me to Add field in New Operations that I am adding the the Task List.
    Thanks
    Sabyasachi

    Hi,
    If I am correct, It is not possible to add user fileds to the operations in the maintenance plan which was copied from the tasklist which is there in the maintenance plan.
    if you required these user fileds goto to change mode in maintenance plan and remove the task list in plan and do necessary changes in the task list and add to plan again. After that you can get userfileds in the opeations as u required with was generated now onwards. It is not possible for the past ones.
    Regards
    Srinivas

  • How to run automated maintenance task on a logical standby database ?

    Hi
    I realize that i do not see any job runs for automated maintenance tasks on my logical standby database.
    Which are the conditions that must be fulfilled for automated maintenance tasks to run?
    Thanks
    Christoph

    Hi,
    In an Oracle Data Guard environment, the Scheduler includes additional support for two database roles: primary and logical standby. You can configure a job to run only when the database is in the primary role or only when the database is in the logical standby role. To do so, you set the database_role attribute. This example explains how to enable a job to run in both database roles. The method used is to create two copies of the job and assign a different database_role attribute to each.
    By default, a job runs when the database is in the role that it was in when the job was created. You can run the same job in both roles using the following steps:
    Copy the job
    Enable the new job
    Change the database_role attribute of the new job to the required role
    The example starts by creating a job called primary_job on the primary database. It then makes a copy of this job and sets its database_role attribute to 'LOGICAL STANDBY'. If the primary database then becomes a logical standby, the job continues to run according to its schedule.
    More Information please cheek below link:
    Examples of Using the Scheduler
    Thank you

Maybe you are looking for

  • Using a toString from an object in an arraylist

    Say I have a class called Fruit that has a field called String name, and a toString that prints out that field. I have a list of Fruit objects and I want to call the toString for every Fruit object. public Collection<Fruit> fruitList; fruitList = new

  • FPS in Captivate 5

    Hi, I am working on Captivate5 , I want to increase the speed of captivate movie FPS (frame per second).which is default is 30 in Edit > Preferences >Project>Publish Settings.I tried to increase the FPS but can't increase more then 50 FPS. Is there a

  • Why do pdf's imported into ibooks open in adobe reader?

    I imported a PDF file into iBooks, expecting it to behave as the other books in there. However, when I go to open the book, it is opened in adobe acrobat instead - why is that? I don't see anything in the preferences? If importing a PDF into iBooks d

  • How do i update iPad 2 to ios5

    How do I update iPad 2 with ios5?

  • Disable Email Alerts in Vibrate Mode?

    Hi. Is this possible? I've searched various forums and haven't come up with anything... I've disabled all my messages alerts: > Volume - Silent > LED - Off > Vibration - Off ... And I also tried Vibration - Custom, In Holster Only Everything works fi