Stop automated stats coll

Hello all,
I initiated a script in my database (_Oracle 9i_) to collect stats once in 30 mins. Below is the script i used for the same:
variable jobno number;
variable instno number;
BEGIN
SELECT instance_number INTO :instno FROM v$instance;
DBMS_JOB.SUBMIT(:jobno, 'statspack.snap;', trunc(sysdate,'HH24')+((floor(to_number(to_char(sysdate,'MI'))/30)+1)*30)/(24*60), 'trunc(sysdate,''HH24'')+((floor(to_number(to_char(sysdate,''MI''))/30)+1)*30)/(24*60)', TRUE, :instno);
COMMIT;
END;
This has been running from over 2 weeks now, and i want to stop this job.
I tried using @ $ORACLE_HOME/rdbms/admin/spauto.sql to get the JOB NO and the stop it using exec dbms_job.remove(job no)
the output was fine, but the job has not stopped and in the alert log, i find the below message:
ORA-12012: error on auto execute of job 2
ORA-00001: unique constraint PERFSTAT.STATS$UNDOSTAT_PK voilated
ORA-06512: at "PERFSTAT.STATSPACK", line 2257
ORA-06512: at "PERFSTAT.STATSPACK", line 91
ORA-06512: at line 1
Please suggest how to proceed and stop this automated collection of stats.
Thank you,
Praveen

Hello Sarish,
Thank you for the response, it worked after i COMMITted the transaction.
Also there were 2 jobs running each under SYS and PERFSTAT. I had tried once to stop perfstat user's job from SYS and got that error.
Now, it is fine :)
Thank you,
Praveen

Similar Messages

  • Itunes match stops into state "sending info to apple"

    IMac mini OSX 10.9.3. Itunes 11.2.2
    purchased itunes match today and have been trying to load my playlists to apple for like 6...8h
    it seemed to stop at state "sending info to apple"
    have been trying to reboot mac but samething happens.
    ansver/ solution would be much appreciated.
    pasi

    I have the same problem. I have found that stopping the transfer then clicking Store - Turn Off iTunes Match, quitting iTunes, reopening iTunes and then Store - Turn On iTunes Match fixes the issue temporarily. When I add a new album later on, same thing all over again.

  • How to create services start and stop automation script for diff servers

    Hi All,
    i want to create a bat file for automation purpose to start and stop services
    i have some services in 1st server aand some in 2nd server and some in 3rd servers.
    has you all know i have to follow sequences to start and stop services can any help me in creating .bat by linking 3 servers fo starting and stoping services.
    Thanks in advance
    Regards
    SM

    Hi,
    this is the list of start oder for services in 11.1.2.1 from the Installation and Configuration Guide
    1. Databases for repositories.
    2. Any corporate user directories that you plan to configure for use with Shared Services.
    3. Foundation Services Managed Server application server, which includes Shared Services,
    and EPM Workspace.
    4. Reporting and Analysis Framework — Agent Service (if required for your environment)
    5. Reporting and Analysis Framework Application Server (if required for your environment)
    6. Web server
    The remaining services and processes can be started in any order:
    1. Performance Management Architect Services
    2. Performance Management Architect application server
    3. Performance Management Architect Data Synchronizer application server
    4. Essbase Server
    5. Administration Services application server
    284 Starting and Stopping EPM System Products
    6. Integration Services Server
    7. Essbase Studio Server
    8. Provider Services application server
    9. Financial Reporting Services
    10. Financial Reporting application server
    11. Web Analysis application server
    12. Calculation Manager application server
    13. Planning application server and the Hyperion RMI Registry
    14. Financial Management service
    15. Financial Management Web application server
    16. Strategic Finance service
    17. Performance Scorecard application server
    18. Performance Scorecard Alerter application server
    19. Profitability and Cost Management application server
    to start services on different servers you can use the sc command in your batch file
    for eg
    sc \\10.121.201.21 start HypS9FrameworkAgent

  • Stopping Automator "Run Applescript" if file not found.

    Hi all,
    I'm creating a folder action that, when a file is added to the folder, will search the folder to see if the file is of a certain type (by the extension) and then run an Applescript that will open the file in the appropriate program. The problem is that not all files that go into the folder are of the correct type. Is there any way to tell Automator or Applescript to stop if no file is found (essentially "input" should be empty)?
    Thanks,
    Stuart

    Thank you for a helpful answer. I recently wrote an Automator application that opens several web pages in tabs and checks my email. It is set to run at login. Using a modification of your code and a line I pick up elsewhere I was able to make the Automator application end when I press command+. keys.
    Perhaps you can answer a different question for me. I am new to Automator but catching on quickly. I am not very good at AppleScript however. I have three automator-based workflows saved as applications. One needs to run every day and then trigger one of the other two depending upon the day or date.
    The branching seems to work OK but once the appropriate workflow starts to run I get an error. I think it is -1708. Any help you can provide would be appreciated.
    2 Gig G5   Mac OS X (10.4.7)  

  • How do you stop automated CRD package schedules!!!

    I have set up automated scheduled packages to deliver themselves to selected recipients from Microsoft Outlook.
    However, now that these schedules are no longer required, I u2018disabledu2019 the schedule, but it still continues to send and clog the outbox.
    I have also deleted the schedule, but again it continues to send and clog the outbox.
    I have realised that one of the recipients is no longer with the business hence it if failing upon processing the email with that particular email ad
    Is there any way I can stop this happening!!! As it is clogging up the outbox as well as crashing outlook every day and preventing other shcdeules to send out!!! pls help!

    I use BOE XI R2, so I'm not 100% sure this would apply to you, but there is a "LaunchPad" web page at <install dir>/WebTools/adminlaunch/default.aspx where you can launch all of the admin apps...
    HTH,
    Carl

  • Itunes stopped working - states not installed correctly please reinstall itunes. I have done this 3 times now and still no joy. Gives Error 7 (windows error998) - any suggestions?

    itunes has stopped working
    Error 7 (windows error 998)
    this happened after attaching my old ipod, however I have since uninstalled and reinstalled several times and each time on opening via shortcut or main icon it gives the following message again
    Itunes was not installed correctly. Please reinstall iTunes
    Error 7 (windows error 998)
    any suggetions ?

    Hi animalsintheark,
    Thanks for visiting Apple Support Communities.
    You may want to try the steps in the "Additional Troubleshooting" section of this article, before trying to reinstall again using the steps in "General installation troubleshooting:"
    Trouble installing iTunes or QuickTime for Windows
    http://support.apple.com/kb/HT1926
    Best,
    Jeremy

  • How do I stop Automator from reordering photos when renaming them?

    I'm attempting to use Automator to rename picture files. I select "Make Sequential" and put the name in that I want. However, once everything is completed my pictures are not in the same order they were out of the camera. I like how my camera imports the photos in the order that I took them. Now when I look through my pictures my vacation is completely out of chronological order. How do can I set Automator so that this does not happen in the future?

    Add 'Sort Finder Items' before the Rename Finder Items.

  • How to stop automated Black & White RAW to colour?

    When I import black and white RAW photos from my LX3 into Aperture it 'processes' them into washed out colour versions!
    How do I stop this from happening?
    Thanks

    The RAW file isn't actually B&W - the camera has just 'tagged' it as B&W and will display it as such or create a B&W JPEG if set to do so. Aperture doesn't understand these tags, so just displays the RAW file with no processing.
    What I do with my LX3 is when I take a B&W, I get the camera to also write a small JPEG. The JPEG will be B&W and on import, I set the JPEG as the master. If I like the B&W that I see in Aperture, I then make the RAW the master, create a new version from the master, and set about making the new version look like the JPEG version.

  • 10.6.2 stop automator

    right after 10.6.2 installed,
    all the automator shortcuts in the keyboard system preference went missing.
    even creating a new service from automator also doesn't work anymore.
    I can open automator just fine, but the service or workflow I created just doesn't work anymore.
    anyone else having this problem?

    This topic is covered quite extensively in this thread:
    http://discussions.apple.com/thread.jspa?threadID=2382555&tstart=0
    Make sure you update to 10.6.3, make sure you are pointing clients to the correct URL (for Snow Leopard Server, you can't just point people to http://machinename.domain.com:8088 - there's different specific URL's for Tiger, Leopard, and Snow Leopard). Manually run the swupd_syncd command, and see what errors/issues show up in the log, and if your server has actually downloaded the updates and is just not presenting them in the catalog/not serving them.

  • How to stop automated linkification of "@ string " to twitter? (solved, please close)

    My firefox autmatically linkifies "@<string>" to twitter with a layered Twitter popup. This is called Twitter Anywhere.
    However, my site does not use any Twitter Anywhere javascript, but still it calls the Twitter website when I reload my page. I disabled all plugins, but still this happens. Is this a virus? It's extremely anoying. How can I stop this?

    Hi,
    You can get the job name in SM37. Else goto the manage tab of the ODS, click on the 'matchstick' button at the bottom and then another window will pop up. At the bottom of the window you'll get the job name BI_ODSA.....Take that job name and paste it in the SM37 screen.
    In SM66 you'll not get the job name. For you to know what process the job is connected with, you'll have to goto SM37 and once you execute with the job name in the selection screen(also make sure that the date range is also correct as it defaults to current day and also the correct user name).Double click on the job name and then hit job details once the window opens up. In there you'll find a field called id which you can see in the SM66 screen called as PID. You want to cancel the process with that id.
    Cheers,
    Kedar

  • Applescript .app stopping Automator workflow

    Hi. I'm still a novice at Applescript, but getting better with Automator, and trying to combine the two to get the result I need, and I'm almost there except this one little glitch:
    I've got an Automator workflow that involves an Applescript application (.app) which for some unknown reason halts the rest of the workflow despite it seemingly working right. The Applescript does little more than quit a specific application, which it does. But when I run the workflow from Automator I get the error: "Connection is Invalid"
    Any help here would be greatly appreciated - is there something I should do differently with the script? Or should I handle this differently in Automator?
    Thanks!
    Below is the text of the script:
    tell application "OmniOutliner"
    tell every document
    try
    save
    on error errormessage number errornumber
    display dialog errormessage buttons {"OK"} default button 1
    end try
    end tell
    end tell
    quit application "OmniOutliner"

    First,
    '... is there something I should do differently with the script? ...' - Based only on the material provided - the AppleScript code (the 'save' line) assumes no 'Untitled' 'OmniOutliner' windows, otherwise the drop down 'Save' sheet will result with a 'Script Editor' error message of -> 'AppleScript Error. OmniOutliner Professional got an error: AppleEvent timed out.'. This error, or something similar, may be what is generating the 'Automator' 'Connection is Invalid' error message.
    Try the code below, in place of your AppleScript source code - with any needed modifications (such as 'OmniOutliner' in place of 'OmniOutliner Professional').
    -- Code starts here --
    tell application "OmniOutliner Professional"
    close (every document whose (name begins with "Untitled" and canUndo is false)) saving no -- Close any newly created documents, which have not been modified.
    set {tDocuments, dNames} to {documents, name of documents} -- Create lists of opened documents and the documents titles (names).
    repeat with i from 1 to (count tDocuments) -- Cycle through the tDocuments list.
    if ((item i of dNames) contains "Untitled") then -- If a newly created document, and recently modified - then, save it with a date stamped name, to the 'Desktop'..
    save (item i of tDocuments) in ((((path to desktop folder from user domain) as string) & (do shell script "date +%Y%m%d%H%M%SOmniOutliner.oo3")))
    else if ((canUndo of (item i of tDocuments)) is true) then
    save (item i of tDocuments) -- If a previously created document, and recently modified.
    end if
    end repeat
    end tell
    quit application "OmniOutliner Professional" -- Any opened but not modified documents, or any recently saved documents - will be closed here.
    -- Code ends here --
    Note: No detailed checking is provided, above, for files that contained 'Untitled' within the filenames, and were then opened in 'OmniOutliner Professional'; as opposed to, any newly created document - which will contain 'Untitled' as its name or the beginning of its name. Such is left as an exercise for the student.
    Second,
    '... should I handle this differently in Automator?' - Please provide the 'Automator' workflow Actions.

  • Code compiled with licensed FB Premium stops automation with error.

    My setup:
    Windows 7
    Flash Builder 4 Premium, Version 4.0 (build 272416), volume license
    SDK 4.5.1, Flex 3 compatibility mode
    RIATest 4.3, RIATestAgent3.swc
    See the existing thread on this in the RIATest forum. I'm "nekobasu" there:
    http://www.riatest.com/forums.html?func=view&catid=9&id=4136#4136
    Here's what I do:
    I compile our application code in Flash Builder, including the RIATest and Flex automation SWCs. Here are the compiler flags:
    -include-libraries  "C:\Program Files (x86)\RIATest 4\agent\RIATestAgent3.swc" "C:\Program  Files (x86)\Adobe\Adobe Flash Builder  4\sdks\4.5.1\frameworks\libs\automation\automation.swc" "C:\Program  Files (x86)\Adobe\Adobe Flash Builder  4\sdks\4.5.1\frameworks\libs\automation\automation_dmv.swc" "C:\Program  Files (x86)\Adobe\Adobe Flash Builder  4\sdks\4.5.1\frameworks\libs\automation\automation_agent.swc"
    Everything compiles fine. So, I launch RIATest, then run my automated test against the freshly compiled application. My test automatically launches our application in a browser.
    The automated tests proceed normally, but after a while, a dialog/alert/message appears in our application stating, "License not present. With the trial version only limited replays are allowed." I'm using only legitimate, legal, valid licenses for Flash Builder, RIATest, and Windows. I'm not using the trial or limited version of anything. According to the folks at Cogitek, and from what I've found by searching, it is an error thrown by Flash/Flex; not by RIATest.
    This problem is preventing me from doing my job.

    Hello,
    It may be bcz of flex automation API
    Please see this link:
    http://www.gorillalogic.com/forumpost/1388
    Thanks and Regards,
    Kanchan Ladwani | [email protected] | www.infocepts.com

  • Why has my MacBook Pro stopped saving state to disk when battery runs out?

    In the past, when my battery was running low, I could carry on working safe in the knowledge that the system state would be saved just before the power completely failed. When power was restored, the saved state was restored and I could carry on.
    Now it seems to just die and then I'm left to the mercy of any app-based autosave.
    What's changed?!!

    Doubt your cpu needs any thermal grease... Upgraded my MBP (early 2010) to ML when it first came out, prior to this everything was working flawlessly and I mean one couldn't ask for anything more... After the upgrade it was total garbage with big time overheating, program crashes and a problem where it refused to come out of a deep sleep without a forced shutdown. One thing I never really looked into was how it affected the battery life but one can only assume it took a toll on it as well.
    Needles to say I downgraded back to the originally installed OS X ASAP, thankfully we regained our original stability and sanity to boot with no ill affects on the battery. Have read countless posts about these problems and as of yet have not found a resolve to my issues, too gun shy after the experience to even think of giving it another whirl... Lost confident's in Apples ability to get it right as this was downright deplorable in my opinion.
    Sorry if this wasn't much help but from reading your post you say "after upgrading" which sounds to me like all was fine prior to switching to ML, no point in tearing apart anything if that is not need.

  • How to stop automative events in my calendar on IPhone5

    Could someone help me with this please.  My son borrowed my MacBook Pro and now I am getting automatic events added to my Iphone5 calendar for every new European football fixture.  I'm not sure how to disable this but would appreciate some advice.

    Hi there Millie1004,
    It sounds like you are getting new eventst that are being created on your computer to your phone becuase they both have the same Apple ID signed in. If you want you can hide that calendar so it doesn't show the new events by tapping Calendars at the bottom of the calendar screen:
    Calendar at a glance - iPhone
    If that is a calendar you use, or you just don't want to hide it, your son can create a calendar for him to use on your computer, and you can hide that one on your phone when it syncs:
    Add a calendar
    Choose File > New Calendar, then choose an account for the calendar.
    Name the calendar and press Return.
    Add or delete calendars - Calendar Help
    Thank you for using Apple Support Communities.
    Cheers,
    Sterling

  • Collect statspack report failed

    Database version : 9204
    OS: AIX 5.2
    BEGIN STATSPACK.SNAP(i_snap_level=>10); END;
    ERROR at line 1:
    ORA-00001: unique constraint (PERFSTAT.STATS$UNDOSTAT_PK) violated
    ORA-06512: at "PERFSTAT.STATSPACK", line 2228
    ORA-06512: at "PERFSTAT.STATSPACK", line 91
    ORA-06512: at line 1
    what could be the issue? I already referred 279602.1, but doesnot apply to my situation since this is a single instance database.

    Hi;
    In note it says:
    on each instance (or if single instance, ensure two snaps are not running at the same time).
    Also Similar error mention at below link:
    stop automated stats coll
    Regard
    Helios

Maybe you are looking for

  • CS3 will not open on my 64 bit Vista.  Please Help

    Hello   I just picked up Phot Shop CS3 installed it on my Lap Top  with Vista Ultimate 64 bit.  It installed fine,  but when I try and open it a windows error message comes up in encountered and error and closes the program.   I have another laptop w

  • Sorely needed

    iCal sorely needs journaling capability. The iCalendar standard allows it (i.e., VJOURNAL), but iCal does not seem to support it. Or am I missing something? I'm not trying to keep a daily diary or blog, but how I long to record miscellaneous once-in-

  • Excel to Tab delimited .text

    At work i have to deal with a lot of excels in which i have to save the file as .txt and then .xls, I will then upload the .txt file to SAP In the txt files, the numbers are being saved with "." (dot) and not with a ","(Comma) in the decimals, even t

  • SOA Management - setting up logical port for WS

    Hi I'm trying to use the RepositoryFrameworkWS from abap. During this i am setting up a logical pot for the webservice. This is done through the SOA Management. I find the consumer proxy CO_KMCWS_REPOSITORY_FRAMEWORK I then try to create the logical

  • PS 7.1u2: Error deploying portlet in console

    Hi, I'm having a problem deploying a portlet through the web console in my PS 7.1 update 2. The portal is deployed on Sun App server 9.1. When I deploy it through the wizard, the error says "Error in getting portal instances for portal id myPortal".