Automate OEM partition Maintenance

Hi All,
I was wondering if anyone out there had already automated their routine partition maintenance on the OEM repository and if there was any recommended standard, automated procedure for this from Oracle or the OEM community at large.
I've put something sloppy together that works, but would like to see what you all have out there for UNIX platforms.
Below is what I'm doing currently. I know this is not the best scripting, but I put it together quickly and as of yet have not gotten around to attempting to handle errors or recompile down the entire submit_em_dbms_jobs pkg chain which gets invalidated after the part_maint call.
Let me know if anyone out there knows of a recommended automated procedure for this, or if anyone wants to work on creating a nice one that could be shared as a standard.
Thanks,
Tony
Oracle Cron Entry
# Perform OEM Partition Maintenance, 11PM Fridays
00 23 * * 5 /groups/tapestry/devsupport/se/DBA_Utilities/dba/oem_maint.ksh 2>/dev/null
oem_maint.ksh----------------------------------------------------------------------------------------------------
#!/bin/ksh
# OEM Maintenance - stops OEM, runs partition maint, starts OEM
PATH=.:/usr/sbin:/usr/bin:/sbin
ORA_HOME=/opt/oracle/product/EM102020
export ORA_HOME
export PATH
# OEM Must be stopped to run partition maintenance
$ORA_HOME/oms10g/bin/emctl stop oms
$ORA_HOME/oms10g/bin/emctl stop em
$ORA_HOME/oms10g/opmn/bin/opmnctl stopall
ORAENV_ASK=NO
export ORAENV_ASK
ORACLE_SID=emrep
. oraenv
unset TWO_TASK
/usr/bin/read SYSMANPWD < /homes/oracle/.sysman_pwd
#Connect as sysman and run partition maintenance, then submit jobs
echo "connect sysman/$SYSMANPWD;
spool /tmp/oemmaint.log;
PROMPT Running emd_maintenance.partition_maintenance;
exec emd_maintenance.partition_maintenance;
PROMPT First Run will Fail due to part maint
exec emd_maintenance.submit_em_dbms_jobs;
PROMPT Second Run should succeed
exec emd_maintenance.submit_em_dbms_jobs;
spool off
" | sqlplus -s /nolog
#Email spooled sqlplus session for SAs to check results
cat /tmp/oemmaint.log | mailx -s "OEM Partition Maintenance Results" [email protected]
#Remove the spool file
/usr/bin/rm /tmp/oemmaint.log
#Restart OEM
$ORA_HOME/oms10g/opmn/bin/opmnctl startall
-------------------------------------------------------------------------------------------------------------------------

Thanks for the tips Ugonic,
That's a good point about the log removal, as it overwrites and is very small it's better to just leave the log.
As for the password read from file, it's sloppy but we are a dev shop and have other scripts designed the same way so I'm going to keep the auto-login for now so I can run this via cron in the middle of the night (it takes 30-60 mins to complete). That way we have OEM up when everyone is in the office.
Bazzza -
Our Repository grows like crazy, if I don't run this we get up to 20GB in a matter of months. And the really pathetic part about it is that if I run it too late, everything is loaded at the end of the datafile and I can't shrink it down without playing all sorts of games (like the last time when you all helped me with he sysman schema exp/imp). Really hope this is fixed in the next releases ;)
Thanks for the feedback guys,
Tony

Similar Messages

  • Tool for table partitioning maintenance?

    Hi,
    Anyone knows a tool for table partitioning maintenance?
    I have tested Oracle ILM and it gives me the scripts but are not executed automatically.
    I'm looking for something that helps me with creating new partitions automatically.
    Thanks.
    Carlos

    Which version?
    This is solved in 11g you need not search for outside tool. Oracle has Interval partitioning for tables available which creates automatic partitions based on time, partitions by date, month,.....
    you can script the partitions creation based on date, month in older versions.

  • Automatic Creation of Maintenance Plan, Measurement plan

    Hi Pal
    Business : The equipments are procuring for the purpose of supplying into customers.It is installed (via sales delevery) at customer location as requirement. From  the installation date rental will start and periodic visit is applicable after every 3 months. The technician will capture  some reading In initail installation time, periodic maintenance time.
    Requirement : The equipment will be created automatically thro serial no when doing the GR(Its possible) . Automatic creation of Maintenance Plan for the equipment  for 3 month frequency, 70% call horizon, early and late completion of 100%. Additionally the scedhule start date need to pick it from the notification end date of its respective equipment.Also measurement points should be generated in automatic way (Its fixed& common for all equipments).
    Is there any possiblity to complete this requirement? Please help me and suggest.
    Regards
    Thenna

    There is no suitable BAPI available to create Maintenance plan.
    Try for BDC.

  • Automatic table partitioning in Oracle 11g

    Hi All,
    I need to implement automatic table partitioning in Oracle 11g version, but partitioning interval should be on daily basis(For every day).
    I was able to perform this for Monthly and Yearly but not on daily basis.
    create table part
    (a date)PARTITION BY RANGE (a)
    INTERVAL (NUMTOYMINTERVAL(1,'*MONTH*'))
    (partition p1 values less than (TO_DATE('01-NOV-2007','DD-MON-YYYY'))
    Table created
    create table part
    (a date)PARTITION BY RANGE (a)
    INTERVAL (NUMTOYMINTERVAL(1,'*YEAR*'))
    (partition p1 values less than (TO_DATE('01-NOV-2007','DD-MON-YYYY'))
    Table createdBut if i use DD or DAY instead of YEAR or MONTH it fails......Please suggest me how to perform this on daily basis.
    SQL>
      1  create table part
      2  (a date)PARTITION BY RANGE (a)
      3  INTERVAL (NUMTOYMINTERVAL(1,'*DAY*'))
      4  (partition p1 values less than (TO_DATE('01-NOV-2007','DD-MON-YYYY'))
      5* )
    SQL> /
    INTERVAL (NUMTOYMINTERVAL(1,'DAY'))
    ERROR at line 3:
    ORA-14752: Interval expression is not a constant of the correct type
    SQL> create table part
    (a date)PARTITION BY RANGE (a)
    INTERVAL (NUMTOYMINTERVAL(1,'*DD*'))
    (partition p1 values less than (TO_DATE('01-NOV-2007','DD-MON-YYYY'))
    );  2    3    4    5
    INTERVAL (NUMTOYMINTERVAL(1,'DD'))
    ERROR at line 3:
    ORA-14752: Interval expression is not a constant of the correct typePlease suggest me to resolve this ORA-14752 error for using DAY or DD or HH24
    -Yasser

    Yes, for differenct partitions for different months.
    interval (numtoyminterval(1,'MONTH'))
    store in (TS1,TS2,TS3)
    This code will store data in partitions in tablespaces TS1, TS2, and TS3 in a round robin manner.
    for Day wise day yes you can store
    INTERVAL (NUMTODSINTERVAL(1,'day')) or
    INTERVAL (NUMTODSINTERVAL(2,'day')) or
    INTERVAL (NUMTODSINTERVAL(3,'day')) or
    INTERVAL (NUMTODSINTERVAL(4,'day')) or
    INTERVAL (NUMTODSINTERVAL(5,'day')) or
    INTERVAL (NUMTODSINTERVAL(n,'day'))

  • G710 The OEM partition was half the size of the hdd – 465,76 GB

    Lenovo G710 without OS (only DOS).
    I installed Windows 7 (64 bit)  on it. The OEM partition was half the size of the hdd 465,76 GB. Everything is good it is a small OEM partition, but there is already too much . Can i delete it without consequences? And there does not store any important hiden files?
    Moderator Note; subject edited

    Hi Devidas, 
        I would suggest not deleting the OEM partition, as it contains system hidden files
    Lets make 2015 the year of the #DO
    Did I or someone help you today? Press the star on the left to thank them with a Kudo!

  • Automatic Master Data Maintenance  in SAP Solution manager

    Hello!
    I am doing the settings from the "Configuration of Service Desk for VAR".
    I find it difficulty "4.1 Automatic Master Data Maintenance (Standard)".
    My questions:
    1.     Tcode SM30 -> V_AIINSNRS
    http://imglink.ru/show-image.php?id=c095122ec4b0119d32ffab4675b174e7
    How to insert data into a table "V_AIINSNRS"?
    table V_AISAPCUSTNOS:
    http://imglink.ru/show-image.php?id=f45703bd65e714ba309ecc3010fc7271
    I Used report AI_SC_GET_SAP_CUSTOMER_NUMBERS.
    2. I tried to run the report AI_SC_REFRESH_READ_ONLY_DATA.
    http://imglink.ru/show-image.php?id=598159ed85a780096de8e5afead42095
    What does this message?
    Transaction SMSY_SETUP -> Expert Settings: performed
    Thanks!

    Hi Dmitriy,
    1.
    These tables are maintained by the report AI_SC_GET_SAP_CUSTOMER_NUMBERS.
    Also, the report uses the S user is stored in the RFC SAP-OSS to determine all the SAP customer numbers that you support.
    So, an S user from the Service Provider, with a password that has authorization to
    display all customer information for the VAR customer numbers, must be available in the
    RFC SAP-OSS.
    For further information you can check note 1151450.
    2.
    To run the report AI_SC_REFRESH_READ_ONLY_DATA, you should be able to perform the above activitie first and flag customer numbers or installations for generating the data.
    Best Regards,
    Fernando Rocha

  • Can't access personal data on OEM partition

    My laptop comes with a SSD and a normal HDD. One fine day I switch on my computer and it says 'Insert bootable device' I thought that my SSD had crashed and since it assumed it had the OS I wasn't able to boot into Windows. So I removed the normal HDD put it into an enclosure to retreive my personal data. The HDD (750 GB) has three partitions, one is a Lenovo partition (29.30 GB) with applications and drivers and there are two OEM partitions (14.75 GB and 655 GB). I presume all my data is in the 655 GB OEM partition and I can't seem to access it. How can I access the data on OEM partition and recover my personal files ? Any advice/suggestion would be welcome. 

    Hi
    I think that the os might be on the hdd(655gb) partition and as it has been marked as a oem partition, bios is not able to access the boot files on the c drive. Since data comes first, use ptedit32.exe to change the partition type of 655gb partition to 07 from 12 and then assign it c you might have to reboot and then you could copy the data from the hdd and keeping the partition unhidden, try to boot from it in laptop.
    Link for ptedit32.exe
    http://www.2shared.com/file/TbV75uyo/PTEDIT32.html
    Ishaan Ideapad Y560(i3 330m), Hp Elitebook 8460p!(i5-2520M) Hp Pavilion n208tx(i5-4200u)
    If you think a post helped you, then you can give Kudos to the post by pressing the Star on the left of the post. If you think a post solved your problem, then mark it as a solution so that others having the same problem can refer to it.

  • How to delete OEM partition

    I'm wondering if it's possible to delete the OEM partition that are present on new Dell machines with ZCM before applying my image?
    Best regards
    Jonas

    Originally Posted by jonhol
    I'm wondering if it's possible to delete the OEM partition that are present on new Dell machines with ZCM before applying my image?
    Best regards
    Jonas
    Take a look here: http://www.novell.com/documentation/...r.html#bx7yll8
    Thomas

  • What is an "OEM Partition"

    I replaced a failing HD in my laptop with a new larger HD and everything seems to be working fine with the laptop.
    the question I have is about the old drive.  I took a look at it with the disk management tools and noticed that it had a partition labled "OEM Partition".  when I right clicked on it, no information or options would come up.
    I was just wondering what it was for since it does not appear on my new HD.

    Hi,
    The only other thing I can think of is this partition contains the End User License Agreement ( EULA ) that is sometimes placed on the drive by the OEM.  I had this on a Dell PC - if it is this, it will have no drive letter and is usually around 100Mb.
    Regards,
    DP-K
    ****Click the White thumb to say thanks****
    ****Please mark Accept As Solution if it solves your problem****
    ****I don't work for HP****
    Microsoft MVP - Windows Experience

  • Partition Maintenance and Stats gathering running together

    Hi All,
    I have a scenario in my production database wherein Partition Maintenance and Stats Gathering jobs begin at the same time (both are run weekly on Sundays only).
    Partition Maintenance is a job which basically rebuilds indexes and creates new partitions on tables in the database. While Stats Gathering job gathers stats on database tables.
    My question was based on the scenario if we consider - Maintenance job is rebuilding indexes on a table and at the same time Stats gathering job is trying to gather stats for that same table. So will there be any issue caused due to this scenario ??
    I would like to know whether there is any issue with their running at the same time ?
    Database version: Oracle 10 R2
    Environment: Unix AIX version 5.3
    Thanks in advance.

    Sandyboy036 wrote:
    Thanks for the reply.
    Could you elaborate what effect could it have on the table or some issues if I were to run both at the same time please ?
    Thanks.I would be concerned that statistics would not reflect reality.
    A partition could be created and populated & the statistics would not reflect this recent activity.
    why are you regularly rebuilding indexes?

  • G500 change MBR to GPT for win8 Install without deleting the oem partition

    Hi, I just bought Lenovo g500 and it came with Free DOS. Now I want to install windows 8 64-bit.
    My HDD came with:
    1 system partition of 1000 MB (maybe Free DOS partition?)
    959 518 MB Unallocated space
    1000 MB OEM - reserved partition
    It has MBR partition table. To install windows 8 64-bit I need to use UEFI boot with GPT partition table, so I need to convert the MBR table to GPT. Microsoft suggest to delete all partitions and convert to GPT using Diskart command, but if I delete all partitions I will lose the 1000 MB OEM partition (and oneKey recovery)
    Is there any solution on how to convert to GPT without losing the OEM partition? or I have to choose between win8 and OEM partition.

    Hi Gicevgoran,
    Welcome to Lenovo Community Forums
    I’m sorry to inform you that installing the Windows 8 is not possible without making changes in the default partition created in the computer while the pre-installed OS (Operating System) was installed, I suggest you to create a Recovery discs in your computer and then make changes so that you can revert back anytime if you require, below is the link to download the User Guide for G500 Laptop and refer page no. 21 for the steps to create the Recovery Discs for the computer.
    User Guide for Lenovo G500
    Do post us back for further queries.
    Best Regards
    Shiva Kumar
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"! This will help the rest of the Community with similar issues identify the verified solution and benefit from it.
    Follow @LenovoForums on Twitter!

  • Automatic Creation of Maintenance Order from Notification

    Hello Eperts,
    I need an opinion. I have a scenario where i am required to create a maintenance order automatically from a notification. I want to know the best way of doing it. Can it be done by configuration in the node> Notification processing>Define follow up actions for tasks, where based on a open status of task an order can be automatically created.
    Please let me know the best way to do it.
    Regards,
    Boby Mathew

    Hi Pete,
    Thanks a lot for the reply. Based on your experience can you tell me which function module can be used to create an order if an open task exists in the notifictaion. What I am trying to do is,
    in Customization >Plant Maintenance & Customer service>Maint & Ser Processing>Maintenance & Service Notifications>Notification Processing>Additional function>Define follow-up actions for tasks;
    Here I am creating a follow-up action for a task as create order and thought of assigning an order create function module ALM_ME_ORDER_CREATE with modifying the subrc parameters with some return values. Can it be done this way? I am asking because I am not very sure as to what is the best way to acieve it. I want to achieve this min minimum development.
    Please explain in detail.
    Thanks & Regards,
    Boby Mathew

  • Automatic creation of Maintenance Order

    Hi,
         I have created the maintenance plan. I have scheduled the plan. How can the maintenance order get created automatically as it is not possible for the users to check on daily basis.
    Thanks in advance.
    Regards,
    Maheswaran

    Maheswaran,
    In IP30,
    Go to menu path Program -> Execute in background
    Make the necessary printer settings in the Background Print Parameters popup screen and t press the green tick (or hit ENTER)
    Do the following in the Start Time screen: (1)Click the Date/Time button and enter the start date and start time for the job. (2)
    Click the Period Values button (bottom of the screen) and click the Weekly setting then save to exit popup. (3) Click the save button in the Start Time screen
    Go to TCode SM37 and check that the system has created a job called RISTRA20. Also check the frequency by double-clicking the job name.
    Have you done up to this step?
    Babu

  • Automatic creation of maintenance order before expiry of  warranty

    Hi All,
    I have a requirement to generate maintenance order automatically when a particular assets warranty is soon to expire.
    I am aware of the option to get pop-up box while creating maintenance order if the equipment is under, but this wll not meet my requirement. 
    Could you please provide your comments.
    -Vasanth

    Hi,
    you can go for general preventive maintenance plan creation. whatever your requirement is, you can create relevent task list, assign your strategy of maintenance for that asset after its warranty is over and so on up to a particular period, say 365 days.
    Then create strategy plan (IP42) and schedule it in such a way that it generate its first call object by the end of warranty and keep on generating as per your requiremnts. schedule it (IP 10), and you will get call objects (notification or order) as per your requirements.
    It is an standard SAP practice, hopw it will work for you, without any enhancements.
    Regards,
    Lucky.

  • Automatic Reservation from Maintenance Order

    Hi,
    I have a problem. Generally from Maintenance Order type PM01 under Order Category 30, when we give some materials requirement, SAP automatically generate reservation for those materials and take the GL as Consumable Item.
    But in my case, that GL has to be changed depending on what perpose we are using the material. But Manual reservation is not allowed for the order category 30 and no GL can be changed for automatic reservation.
    Can anybody suggest any way-out so that we can give our desired GL No. for the reservation for Maintenance order (say Order type PM01 under category 30 which is SAP internal).
    Thanks in advance,
    Satadal

    Thanks for your answer. Actually I found that place, it is determined from OBYC transaction with a combination of GBB (A/c Key) and VBR (A/c Modifier).
    But for same movement type261, I need manual G/L allocation at runtime. i.e. depending upon case to case, the G/Ls will be different. So, different movement type perhaps would not serve the purpose.
    Basically I need to over-write the G/L for automatic reservation created from PM in the PM01 order type with category 30 where manual reservation is not allowed.
    Can you suggest any way out so that I can actually over-write the G/L for automatic reservation- through SPRO or some kind of development...
    Thanks
    Satadal

Maybe you are looking for

  • Workspace  page in not loading in EPM 11.1.1.3  on windows 2003 server

    Workspace page is not loading , means i'm not able to see the admin, password and log on tab on page i'm able to open planning through url , EAS console and shared services consol working fine i'm installed EPM 11.1.1.3 on Windows server and configur

  • Process Chain Red 'X', Exec Infopckg Yellow, Infopckg monitor/data correct

    Dear and respectable colleagues of the forum, I am experiencing a problem in a process chain when executing infopackages. The process chain has 6 "Execute infopackage" processes. Sometimes (1 of 4 attempts average) my process chain ended with red col

  • USB 8451 - SMbus with labview: help please

    Dear all, I just purchased an USB 8451 and I need to interact with a smart battery using a labview interface. I really need a departure point to build up a VI read/write and finally interact with the battery, and the tutorial on NI website  ( http://

  • Multiple keyword page number display, help me please!

    Hi! I've been trying to solve this problem by checking other theads on this forum as well as other forums, but I can't seem to find a suitable solution and now im pretty desperate. I'm working on a book where we've had to change the numbes on each pa

  • Using IIS 5.0 as web server to App Server 8.0 PE

    I am developing a site for a company which has IIS 5.0 as the web server. The sysad there would like to allow only IIS to receive request and hide the App Server internally. I read that one can configure IIS 5.0 to forward request to App Server 7.0.