How do I limit the user creat new connect when CPU idle 5%?

my oracle database is 9.2.0.7,
I want to limited the new connection by created when the server (sun solars 5.9) cpu idle <5 % ?

> I want to limited the new connection by created when the server (sun solars 5.9) cpu idle <5 % ?
This makes absolutely no sense at all. Not even borderline idiotic - it has invaded the land of idiots looking to conquer and become the biggest one of them all. :-)
But there is actually a very easy way to do it. Outside the database in a script, run uptime. It provides the system load averages for the past 1, 5, and 15 minutes. Use awk to extract these load numbers and use that to make the decision whether connectivity can be allowed or must be denied.
Next check if the Oracle Listener is up. If up and connectivity must be denied, shut it down. If down and connectivity must be allowed, start it. Else, leave it as is.
Then sleep for a few minutes and repeat.
To make this into a proper daemon, you can simply add it to /etc/inittab and have the kernel running it for you and respawning it when it runs into a problem and dies.

Similar Messages

  • How to check if the user has log in when he log in again?

    Hi all,
    I was wondering how to track if the user has already log in?
    When this user using browser A to log in then he try to log in using a new browser, then hw I am I going to know that, and terminate his session?

    Hello!
    You can try this code if you want that if a user is login at a machine and tries to login from the other, then he can continue his processing at second machine ('cos it will get the high priority) but can not process from the first machine. This code allows to login but only second one will be active.
    <jsp:useBean id="monitor1" scope="application" class="java.util.HashMap"/>
    if(monitor1.containsKey(num)){
    HttpSession oldSession = (HttpSession) monitor1.get(num);
    oldSession.invalidate();
    monitor1.remove(num);
    monitor1.put(num , session);
    But if you want to restrict it at the time of second login then u can use any of the techniques discussed above.
    aNTUMNIHA

  • How can I limit the User not to create OPPT for a given BP grouping

    Hi ,
    We did create a Business Partner grouping (BUT000-BU_GROUP) and wish to block the user to create an Opportunity ( Transaction Type OPPT ) for this Business Partner grouping ?
    How can we do that ?

    Hi,
    You can do this with the help of BADI
    Customer Relationship Management  Transactions  Settings for Opportunities  Business Add-Ins  Business Add-In for Opportunity: Header Data
    You will have to do enhancements for opportunity header data.
    Please use the BADI : CRM_OPPORT_H_BADI:
    In this BADI use the method : CRM_OPPORT_H_CHECK
    With this you can carry out additional checks - the results of these checks can be copied as error messages. Here you can check the grouping of the business partner you are entering in the transaction and if e.g. grouping of the BP is u201CXu201D the error message can be triggered u201COpportunity can not be created for this BPu201D.
    Please let me know if this helped in resolving your problem
    Regards
    Dinesh

  • How can i limit the user to enter only A to Z and space in JFormattedText

    dear
    i want to use JFormatedTextField in two manners
    1.Limit the no of charecters.means in a text field only 20 charecters r allowed.
    2.and also check the enterd charecter must be a to z and space not other chareters r allowed.
    3.same for numbers means 0 to 9 and decimal.
    how can i do by using the JFormated TextFilef.

    Probably lacks in some cases but what the hell.
    * Filename:           JSMaskedTextField.java
    * Creation date:      22-mei-2004
    * Author:                Kevin Pors
    package jsupport.swingext;
    import java.awt.event.KeyEvent;
    import java.util.Arrays;
    import javax.swing.JTextField;
    * A masked textfield is a textfield which allows only a specific mask of
    * characters to be typed. If characters typed do not occur in the mask
    * provided, the typed character will not be 'written' at all. The default mask
    * for this <code>JSMaskedTextField</code> is <code>MASK_ALPHA_NUMERIC</code>
    * @author Kevin Pors
    * @version 1.32
    public class JSMaskedTextField extends JTextField {
        /** Masking for alphabetical lowercase characters only. */
        public static final String MASK_ALPHA_LCASE = "abcdefghijklmnopqrstuvwxyz ";
        /** Masking for alpha-numeric characters (lcase/ucase) only. */
        public static final String MASK_ALPHA_NUMERIC = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ ";
        /** Masking for alphabetical uppercase characters only. */
        public static final String MASK_ALPHA_UCASE = "ABCDEFGHIJKLMNOPQRSTUVWXYZ ";
        /** Masking for numbers only. */
        public static final String MASK_NUMERIC = "0123456789";
        /** Masking for hexadecimals. */
        public static final String MASK_HEXADECIMAL = "0123456789ABCDEF";
         * An array of keyevent constants defining which keys are always to be
         * allowed, no matter what.
        private final int[] ALWAYS_ALLOWED = new int[] { KeyEvent.VK_BACK_SPACE,
                KeyEvent.VK_DELETE, KeyEvent.VK_UP, KeyEvent.VK_DOWN,
                KeyEvent.VK_LEFT, KeyEvent.VK_RIGHT, KeyEvent.VK_SHIFT,
                KeyEvent.VK_HOME, KeyEvent.VK_END};
        /** Boolean specifying whether casing should be ignored. */
        private boolean ignoringCase = true;
        /** Specifying whether the maskin is enabled */
        private boolean isMaskingEnabled = true;
        /** The mask for the textfield. */
        private String mask = MASK_ALPHA_NUMERIC;
         * Creates a default number field.
        public JSMaskedTextField() {
            super(null, null, 0);
            Arrays.sort(ALWAYS_ALLOWED);
         * Creates a number field, with a specified number of columns.
         * @param columns The columnnumber.
        public JSMaskedTextField(int columns) {
            super(null, null, columns);
            Arrays.sort(ALWAYS_ALLOWED);
         * Creates a JSMaskedTextField with a masking.
         * @param mask The masking to be used.
        public JSMaskedTextField(String mask) {
            super(null, null, 0);
            Arrays.sort(ALWAYS_ALLOWED);
            setMask(mask);
         * Gets the masking for this masked textfield.
         * @return Returns the mask.
        public String getMask() {
            return this.mask;
         * Gets whether this JSMaskedTextField should be ignoring casing.
         * @return Returns if the component should be ignoring casing.
        public boolean isIgnoringCase() {
            return this.ignoringCase;
         * Checks whether masking is enabled. Default should be true.
         * @return Returns true if masking is enabled, false if not.
        public boolean isMaskingEnabled() {
            return this.isMaskingEnabled;
         * Sets whether it should be ignoring casing when checking for alpha-chars.
         * @param ignoringCase The ignoringCase to set.
        public void setIgnoringCase(boolean ignoringCase) {
            this.ignoringCase = ignoringCase;
         * Sets the masking for this textfield. The masking will determine which
         * characters can be typed. If the characters in de <code>mask</code> do
         * not occur in the typed character, it won't be typed.
         * @param mask The mask to set.
        public void setMask(String mask) {
            this.mask = mask;
         * Sets the masking enabled. If <code>false</code> this component will
         * behave just like a normal textfield.
         * @param isMaskingEnabled true if masking should be enabled.
        public void setMaskingEnabled(boolean isMaskingEnabled) {
            this.isMaskingEnabled = isMaskingEnabled;
         * Sets text of this textfield. If the blah blah.
         * @see javax.swing.text.JTextComponent#setText(java.lang.String)
        public void setText(String text) {
            for (int i = 0; i < text.length(); i++) {
                if (getMask().indexOf(text.charAt(i)) < 0) { // does not occur
                    return;
            super.setText(text);
         * @see javax.swing.JComponent#processKeyEvent(java.awt.event.KeyEvent)
        protected void processKeyEvent(KeyEvent e) {
            if (!isMaskingEnabled()) {
                return;
            char typed = e.getKeyChar();
            int code = e.getKeyCode();
            for (int i = 0; i < ALWAYS_ALLOWED.length; i++) {
                if (ALWAYS_ALLOWED[i] == code) {
                    super.processKeyEvent(e);
                    return;
            if (typed == KeyEvent.VK_BACK_SPACE) {
                super.processKeyEvent(e);
            if (isIgnoringCase()) {
                String tString = new String(typed + "");
                String ucase = tString.toUpperCase();
                String lcase = tString.toLowerCase();
                if (getMask().indexOf(ucase) < 0 || getMask().indexOf(lcase) < 0) {
                    e.consume();
                } else {
                    super.processKeyEvent(e);
                    return;
            } else { // not ignoring casing
                if (getMask().indexOf(typed) < 0) {
                    e.consume();
                } else {
                    super.processKeyEvent(e);
    }

  • How to sync changes in user-created distributions lists when used by multiple Outlook users

    Hi all,
    Thanks for looking at my post. We are using Outlook exchange and Outlook 2010.
    I have created a distribution list that is comprised of 20 members (students) with email addresses outside our organisation. I have sent this list to others in my workteam (Lecturers) and they have added the list to their own contacts group - we
    share this list as we all email the same students for different reasons.
    My issue arises when a student needs to be deleted from the distribution list and I am the first person to find out about it. Ideally, I would like to take the student off and have this distribution list automatically update for the other lecturers instead
    of having to re-send the list to them after it has been edited. As it stands at the moment, each lecturer has to go into the distribution list I originally sent to them to delete the student.
    There has to be an easier way to sync the changes that each lecturer makes to this list.
    Any ideas?
    Thanks in advance
    Sharyn

    You can place the group in a shared Contacts folder so everyone will see the same group.
    Depending on your Exchange infrastructure and working habits, this could be a folder in your mailbox, a Public Folder, Shared Mailbox or even a SharePoint List.
    Robert Sparnaaij
    [MVP-Outlook]
    Outlook guides and more: HowTo-Outlook.com
    Outlook Quick Tips: MSOutlook.info

  • Create new versions when making adjustments?

    Hi,
    What does anyone suggest this setting should be set to? It's on the Advanced Tab in Preferences.
    I think it was un checked when I installed the Trial Version.
    The help file stated the following:-
    +Create new versions when making adjustments” checkbox: Select this checkbox to have Aperture automatically create a new version when you adjust a selected image. The adjustment is applied to the original version and the new one is left untouched.+
    So when I edit an image the the software makes a copy and the original is altered? What happens if it's left un checked?
    Any help on the whole editing thing would be gratefully received.

    This is just a way to automatically create a new version when you make an adjustment. The new version is stacked with an unaltered version, allowing you to quickly see them side by side. What you have to remember is that the *original file is never altered*. This is all virtual. What is called original in this case is in fact an original version, not the actual file. The actual file is called the Master. Very important to understand the distinction.
    I personally leave this off. I never use RAW files without adjustments so there's no point in keeping an unaltered version around, plus it tends to quickly multiply versions and just creates clutter. If I want to see the original file I just hit M (this is the default command key for Show Master). Hit M again and I'm back to my version. If I've created a version and want to do a new different looking one starting from scratch, I can select New Version From Master: presto a new "original"!
    If I've worked on a picture and want to create a BW version, chances are I want to keep the work I've already done as a starting point. In that case I select Duplicate Version and do my BW on the new version. Again, I'm never actually duplicating files and I'm never actually altering pixels, original or otherwise. This is all a set of xml instructions that Aperture applies when it displays the files.
    Helping?
    Message was edited by: Jade Leary

  • How to find out the user who has created  a new field in the custom table.

    How to find out the user details who has created  a new field in the custom table.
    Thanks,
    Joan

    Hi Jesudasan ,
    You can know the user details with version management.Please find the
    below procedure to know.
    Go to table->Utilities tab->version->Version management->Compare the previous one .
    Hope this solves the issue,Let me know if you have any issues.
    Thanks,
    Rajani

  • How to view/edit/delete the user created profile in oracle 9i? Very Urgent

    Friends,
    I logged in as system in oracle 9i.
    SQL> create profile testpro limit
    2 idle_time 1;
    Profile created.
    SQL> alter user scott profile testpro;
    User altered.
    Then i logged in to sqlplusw as a scott user.
    and i waited for 10 mins after that.
    sql> select * from cat;
    its working......
    how come? i have already set a idle time to 1 minute.
    Please correct me if im wrong.
    Also, how can i view/edit/delete the user created profile.
    Thanks & Regards
    Sathyguy
    Message was edited by:
    sathyguy

    The resource limits set for a profile are enforced only when you enable resource limitation for the database.
    Enabling and Disabling Resource Limits While the Database is Open
    ALTER SYSTEM SET RESOURCE_LIMIT = TRUE;
    http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96521/users.htm#15451
    Manu

  • How do i change the user on the new health app?

    How do I change the user on the new health app?

    alsastud wrote:
    How do I delete the old User and create my own name and settings?
    Really, the best way is to "fool" the system into thinking this is a first run system.  To do this, you need to do the following
    First, boot into single-user mode by powering the system while holding the cmd-S key combination down.  This should bring you eventually to a black screen with a Unix terminal display.  Type the following three commands (that period before AppleSetupDone is very important):
    /sbin/mount -uw / <cr>
    rm /var/db/.AppleSetupDone <cr>
    shutdown -r now <cr>
    What should happen is that when the machine reboots after the last command, you should get a "Welcome to MacOS" routine which will ask you for user information and set up your new account using that information.
    After you get that done, you should, one way or another, be able to delete the folder of the old user in the Users folder, though you may need some help with that as well.

  • How to get the user created at and modified at properties for a site collection using powershell

    Hi guys, I Know how to get the list of users of a site collection by Get-SPUser cmdlet but hte problem is that this cmdlet doesnt give me the user Created at and modifed at properties 
    can any one tell me how to get these values via powershell???? 
    ps: ignore the 2013 screenshot.. i just want a way to get those values .. if you provide me solution in either 2010 or 2013 , i will crack the other..
    plz guys help me ...

    Get the User Information list and then get the user from that list
    $web = Get-SPWeb "siteUrl"
    $userInfoList = $web.SiteUserInfoList
    $userItem = $userInfoList.Items[0]; #0 here is just for demonstration. You take the user you want here or loop through all users.
    $created = $userItem["Created"]
    $modified = $userItem["Modified"]

  • HT2729 I have limited space on my new ipad. How can I limit the number of songs from my itunes on my imac from going to my ipad when I connect the two?

    I have limited space on my new ipad. How can I limit the number of songs from my itunes on my imac from going to my ipad when I connect the two?

    you can do this by keeping the external hard drive connected and doing the following
    -hold shift key down on computer while opening iTunes and a prompt will appear to choose a library
    -select choose library, iTunes should bring up your explorer windows where you can search for the external HD
    -after you find the external HD find the iTunes folder you just copied to it
    -after opening the iTunes folder look for the file that says iTunes library.itl or if you can't see that extenstion just look for a document looking thing in the iTunes folder that shows up as a database file
    -double click the database file and boom iTunes should load your library without having to copy it to the computer
    PS: do make sure that if you are going to do it this way, make sure that the external HD is connected at all times, because if you don't then you will get exclamation marks next to your iTunes songs
    double PS: if you are unsure how to find out if the iTunes library file is a database file just right click it and choose properties and under the type it should say database file
    hope this helps:)

  • How to get the user created tables.

    hi,
    i'm new to oracle 10g xe. i created 3 tables and inserted data successfully. i want to show the list of all tables which are created by the user.
    in the previous versions i used the syntax, "select * from tab;".
    it retreives all the tables created by user and oracle.
    i need any syntax to get only the user created tables.
    i need ur suggestions.
    regards,
    pavan.

    Hi,
    connect as scott/tiger
    Issue the command
    select table_name from user_tables
    Simon

  • I    have a new name and I can not verify my account.  How do I validate the user name?

    I have a new name and I can not verify my account.
    How do I validate the user name?

    Hello lirom12,
    Check out the article below to get your Apple ID verified so you can use it. You would need to send an email to get it verified. 
    If you didn't receive your Apple ID verification or reset email
    http://support.apple.com/kb/TS5404
    Regards,
    -Norm G. 

  • Don't want user create new item via VA02

    Hi experts:
    If I don't want user create new item in sales order via VA02,
    how can I do it ??
    Thanks
    Shwan

    This can be done by Roles and authorisation.
    Basis can be able to do the settings in such a way that once the user save the sales order at VA01, he can' t change anything in that.
    THat can only be modified by the authorised person.
    Reward if useful.
    Regards,
    Kaleeswaran B

  • How can I populate the users in the Directory Server?

    Hi all,
    I'm a new of Sun ONE Directory Server 5.2, I've just install a copy of it on Win2000 server and I have a small question to ask.
    How can I populate the users (This user can be use to login in to Sun ONE install messenger) in the Directory Server using the Directory server's admin console?
    Thanks in advance,
    Tuan Anh,

    Thanks Ramnath,
    I've read your suggest, but actually, I really wanted to know how to populate user and password. I've read some thing below in Sun ONE Directory 5.2 Getting Started Guide.pdf
    � o=userRoot
    During installation, a user database is created by default. The default name of
    the user database is o=userRoot. You can choose to populate this database at
    installation, or to populate it later.
    But I don�t know the related document, I have create successful user and pass by using admin console. But can not user this user to login in to Instant messenger.
    I'm looking forward to receive your help
    Tuan Anh

Maybe you are looking for