Restrict to particular IPaddress

Hi
I am using oracle 10g database on unix os.I want to not connect to a particular machine in database.i write a trigger.
CREATE OR REPLACE TRIGGER logontrig
AFTER logon ON DATABASE
BEGIN
IF ora_client_ip_address='192.168.0.30' AND ora_login_user='UPCLMAIN'
THEN
RAISE_APPLICATION_ERROR(-20001, 'You are not authorized to login into this machine UPCLDEV OR UPCLMAIN');
END IF;
END;
but it is not working.

hi Pankaj,
Try using this code
create or replace trigger ip_restrict
after logon on database
declare
v_user varchar2(30);
begin
select user into v_user from dual;
if v_user = 'USERNAME' then
if sys_context('USERENV','IP_ADDRESS') not in ('IPaddress 1 goes here ','IP address 2 goes here') then
raise_application_error (-20001,'Access restricted for this IP');
end if;
end if;
before that ensure that no DBA privilege exists for USERNAME
Thanks
SM
end;

Similar Messages

  • IS IT POSSIBLE TO RESTRICT A PARTICULAR MATERIAL GROUP FOR A USER

    Hi Gurus,
    I want to know whether it is possible to restrict a particular material group for a particular user.
    e.g Material Group : 101
    User : ADMIN
    Our requirement is that the user should not be able to select material group 101 in
    any stock related transactions. e.g MB5B, MB51, etc.
    Thanks
    Amol

    Hi Amol
    You ca try Tcode OMT3E where in u can maintain settings relatesd to Users.
    Regards

  • Authorization Relevant Infoobject restriction for particular value

    Hi All,
    We have infoobject - 0COMPCODE which is authorization relevant. In query designer authorization variable - ZAUTH1 has been created.
    Now users want to restrict one particular Company Code (Ex- RU10) globally, so that none of the users will view this particular company code.
    We can't restrict this in query designer. Users can select among the company codes in the input selection of the report.
    Authorisations have been mantained in BW3.5 version
    Need help on this urgently.

    Hi Asish,
    Two ways.
    1. You can exclude the company code in the default values section, so that they would be able to view it in the list they see.
    2. You can exclude it in the authorizations assigned to the roles of the users. Give all the company code values in the authorization, except this company code, so that since the auth variable is createed in the query, you woulld view only the company codes that are authorized.
    Hope this helps.
    Regards
    Snehith.

  • Reg restriction of particular order type

    Dear all,
    What is the procedure if we want to restrict a particular user from operating a particular process order type PI01,
    Please give me step by step, what are to be maintained in roles
    regards
    venkat

    Dear Venkat,
    1)Create a role and assign the tcode.(IW32)
    2) Go to Authourization tab (change mode)
    3) In the Object PM
    3) Select the Authourization objects
       I_AUART
        I_ILOA
        I_VORG_ORD
    4) Specify the ORDER TYPE:=PI01
    Apart from this steps you should specify the org values like Co.code, plant..etc...
    Generate the role and assign to that particular user.
    Thanks & Regards
    Gangadhar
    Edited by: gangadhar hm on Mar 5, 2010 12:17 PM

  • Select option restriction to particular rows

    Dear Gurus,
    I have searched the form for this but couldn't find the particular solution.
    my scenario is i need to enter only 5 plants in the select options it should not exceed  it, for this i have done  like
    select options :S_PLANT FOR  G_PLANT NO INTERVALS.
    CONSTANTS:   LC_OPT_LIST TYPE RSREST_OPL VALUE 'OPT_LIST',
                    LC_S        TYPE RSSCR_KIND VALUE 'S',
                    LC_MAT      TYPE BLOCKNAME  VALUE 'S_PLANT',
                    LC_INC      TYPE C          VALUE 'I'.
       DATA:  LW_OPT_LIST TYPE SSCR_OPT_LIST,
              LW_RESTRICT TYPE SSCR_RESTRICT,
              LW_***      TYPE SSCR_***.
       LW_OPT_LIST-NAME       = LC_OPT_LIST.
       LW_OPT_LIST-OPTIONS-BT = SPACE.
       LW_OPT_LIST-OPTIONS-EQ = 'X'.
       APPEND LW_OPT_LIST TO LW_RESTRICT-OPT_LIST_TAB.
       LW_***-KIND    = LC_S.
       LW_***-NAME    = LC_MAT.
       LW_***-SG_MAIN = LC_INC.
       LW_***-OP_MAIN = LC_OPT_LIST.
       APPEND LW_*** TO LW_RESTRICT-***_TAB.
       CALL FUNCTION 'SELECT_OPTIONS_RESTRICT'
         EXPORTING
           RESTRICTION            = LW_RESTRICT
         EXCEPTIONS
           TOO_LATE               = 1
           REPEATED               = 2
           SELOPT_WITHOUT_OPTIONS = 3
           SELOPT_WITHOUT_SIGNS   = 4
           INVALID_SIGN           = 5
           EMPTY_OPTION_LIST      = 6
           INVALID_KIND           = 7
           REPEATED_KIND_A        = 8
           OTHERS                 = 9.
    now when i click the extension button i will be getting the popup window with ' SELECT SINGLE VALUES' sub screen  now in this i need only 5 rows
    I don't know weather this is possible or not.
    If yes . can any one explain this ?
    Thanks in advance .
    Regards
    Rakesh S.

    I do not think it is possible without changing the SAP standard (program RSDBRUNT). That is not something you want to do.
    The only way I can think of is creating  a module pool program and define your own screen instead of the selection screen and place a tabcontrol where you can limit the amount of lines programmatically.

  • How to restrict the particular value in BEx?

    HI,
    I have added particular dimension in query prompt. While refreshing i got more value in particular dimension. How to restrict the the value in bobj or bex?
    Here i attached the screen shot. Please find the attachment.

    Hi Mani,
    Please make sure of your requirement. If you are using only one single query for multiple reports then i strongly recommend the below criteria or else it better to restrict the value in the BEx itself if you have no other reports on the same BEx query.
    If you are trying to restrict a report to a default prompt value then use equal to in query filter prompt or you can also restrict them to list of values i.e multiple values.Please follow as per the screens below. I am mentioning two ways.
    Method:1
    Step 1: Click on Prompt Options(Blue Questionmark Symbol)
    Step: 2 : Click on the Values after you check the prompt properties options as shown below.
    Step 3: Search for values if they are keys by checking the "Search in keys" or else not required.
    Method 2: Here is another Easy way is Just give the input in the value box as shown below.
    Let me know if you need any further help.
    Regards,
    Naveen

  • Authorization object to restrict a particular customer code in a sales org

    Hi,
    I have a requirement whereby a sap user who is assigned to Sales organization A needs to access a particular customer from sales organization B. However the sap user has no access to sales organization B. However the requirement is such that the sap user cannot be given access to all the customers in Sales organization B. He must only access one particular customer from Sales organization B and not all the customers in Sales organization B.
    The problem here is if we give the sap user access to Sales organization B, then the sap user can access all the customers in Sales organization B. So how can we give access only to a particular customer in the Sales organization B?
    Is there any authorization object which can accomplish this?

    Hi.
    You can use The Authorization object
    <b>V_KNA1_VKO</b>
    Tcode for Authorization objects: SU21
    Tcode for Authorization FIELDS: SU20
    Statement to perform Auth. Check  AUTHORITY-CHECK(See F1 HELP)
    <b>Reward if Helpful</b>

  • How do I restrict or allow a few client machines to connect to  Server ?

    In my setup I wanted to restrict the use of oracle Database.
    Database Version : 10.2.0.1.0
    OS : Linux
    Into the sqlnet.ora file,below These parameters enable to configure access control to the database,
    TCP.EXCLUDED_NODES=(finance.us.acme.com, mktg.us.acme.com, 144.25.5.25)
    TCP.INVITED_NODES=(sales.us.acme.com, hr.us.acme.com, 144.185.5.73)
    TCP.VALIDNODE_CHECKING=yes|no
    but hence this solution is not working at my end...Database is accessed easily by excluded_node.
    Can anyone suggest me what so reason behind that...
    Thanks....

    limiting access to a specific ip address
    Re: restrict to particular IPaddress
    links may be helpful to you.

  • In material master particular field should be restricted

    In material Master(MM02),a particular field is hide or gradeout to all the user ids but for particular user id system should allow to make the changes that field.

    Hi Sadashivan,
    Can you explain me step by step process that how to restrict a particular field in material master. (MMSTA)
    System should allow to edit this field for few user ids for a particular plant & for all other user ids system should not allow to edit the same field.(MMSTA)
    Regards,
    Surya

  • How to restrict / limit users NOT to view a particular type of costs !

    Hi,
    EBS - R12.1
    One of the requirements from our client is that, they want to cost employee salaries onto Projects (as overheads).
    Now, how to limit/restrict visibility (view) of these costs to all users (except PM).
    I mean, can we restrict a particular type of costs to everyone except PM.
    Please let me know.
    Thank you,
    Vish

    Hi
    Here is the explanation from Oracle Help:
    Project and Labor Cost Security in Oracle Projects
    Oracle Projects provides three levels of project-based security to protect data ownership and sensitivity in relation to a given project or project template. For each level of security, Oracle Projects enforces default business rules depending on an employee's relationship to a project, as illustrated below:
    Action Key Member Cross- Project Other Users
    Query project information YES YES YES
    Update project information and perform functions on a project YES YES
    View labor costs of detail expenditure items (@) YES YES
    (@) Only if the user's project role type is configured to view labor costs.
    You can override the default logic or add additional security criteria via the Project Security Client Extension. For a detailed description of the project security extension, see: Project Security Extension.
    Key members are responsible for the management and administration of the project to which they are assigned. Each key member is assigned a project role type, which describes the type of role that the employee has on the project. Project role types include Project Manager and Project Administrator. You define whether each role type can view labor costs online and in reports.
    Cross-project users can view expenditure details and update information for any project, even if they are not assigned as a key member to the project. Cross-project users log in to Oracle Projects under a cross-project responsibility. You define an Oracle Projects responsibility as a cross-project responsibility by setting the PA: Cross-Project Responsibility profile option value to Yes.
    View Labor Cost Allowed
    This level of security determines whether or not you can view labor costs (both raw and burdened). The default business rule in Oracle Projects is that you may view labor costs if you are:
    ### A key member for the project and your project role type allows you to view labor costs
    ### A cross-project user
    If you are not permitted to view labor costs, the amount is not shown in the form field; that is, the field will be blank.
    Dina

  • Restrict User to particular Documant Type

    Dear All,
                  Please read Carefully !  
                   I have 5 Document Type to create PO.
    now my problem is that how can i restrict a particular user only for 2 Doucument Type PO.
    Only Allowed Document Type i.e. 2 not all must be Found in Dropdown List not all document Type.
    Regards,
    Pardeep Malik

    Dear All,
                    Thnks for ur response !
    But i want to hide Document type in Dropdown List !
    Please help me
    Regards,
    Pardeep Malik

  • Restrict the badi for particular transaction code

    hi, i have implemented BADI_FDCB_SUBBAS01 and in the subscreen area 10 i attatched my own module pool program and screen number. my requirement is for FB60 only. and it is working for FB60 fine. the problem is also working for FV60.
    Is there any possibility to restrict for particular transaction code say for FB60.
    Please reply me soon....

    Hi Praveen,
    Since this is a single use badi you have the option to create a new filetr of your own. You can create a filter of type sy-tcode and in your implementation assign it a value of your transaction. Thus if someone else also wants to use it for some other transaction can have a implementation of his own for some other transaction.
    The other way which is though not the recommended way buy easy to use is to put a check before your code on SY_TCODE = your transaction.
    revert for more clarifications if required.
    <b>Always reward points to useful suggestions.</b>
    regards,
    Vikas
    Message was edited by:
            Vikas Taneja

  • Urgency Restrict No. of session for any particular user

    Hi All.
    Can we restrict any particular user no of session that if his nos. of session exceeded from 3 then all of his session should be killed.

    Thanks for reply.
    Currently I have a default profile for all users and resources of this profile are as follows:
    Resource Name Type Limit
    COMPOSITE_LIMIT     KERNEL     UNLIMITED
    FAILED_LOGIN_ATTEMPTS     PASSWORD     UNLIMITED
    SESSIONS_PER_USER     KERNEL     UNLIMITED
    PASSWORD_LIFE_TIME     PASSWORD     UNLIMITED
    CPU_PER_SESSION     KERNEL     UNLIMITED
    PASSWORD_REUSE_TIME     PASSWORD     UNLIMITED
    CPU_PER_CALL     KERNEL     UNLIMITED
    PASSWORD_REUSE_MAX     PASSWORD     UNLIMITED
    LOGICAL_READS_PER_SESSION KERNEL     UNLIMITED
    PASSWORD_VERIFY_FUNCTION PASSWORD     NULL
    LOGICAL_READS_PER_CALL     KERNEL     UNLIMITED
    PASSWORD_LOCK_TIME     PASSWORD     UNLIMITED
    IDLE_TIME     KERNEL     UNLIMITED
    PASSWORD_GRACE_TIME     PASSWORD     UNLIMITED
    CONNECT_TIME     KERNEL     UNLIMITED
    PRIVATE_SGA     KERNEL     UNLIMITED
    resource_limit parameter in initprod.ora file is set to FALSE.
    Now first of all I need to alter resource_limit paratmeter to TRUE with scope=both.
    Then need to create a new profile and define sessions_per_user 3.
    My question is that whether I have to define all default profile resources in the new profile or not?
    Do I need to grant create_session priviliges to every user after assigning new profile?
    Can I assign both profile to a single user?
    Brgs.
    Hassan

  • Restricted automatic creation of PO in sales order

    Hi Experts
    When we create a sales order (VA01), we had customized the automatic creation of a Production order (CO01); but our client is asking us to limit this automatic creation to a certain characteristics of the material.
    For example, we have to choose the colours (number and values), and for one colour, the production order donu2019t need to be created automatically.
    Please can anyone help me to find any solution for this matter?
    Thank you in advance
    Hachim EL ALAMI

    Dear Hachim,
    if there is only one material for which you don't want production order to be created you can restrict that particular material by using material exclusion from Logistics screen - Sales and Distribution - Master Data - Products - Listing/Exclusion
    and select condition type B001 for Exclusion  and now if you try to enter this material in the sales order system will give you an error
    OR
    you can use listing condition type A001 in order to include only those materials for which you want production order to be created for them
    Hope this will solve you purpose
    Regards,
    Sagar

  • How to restrict some users from viewing a screen of standard transaction

    Hi All,
    I need to restrict certain user ids from viewing the 'Payment Transactions' screen for the below mentioned transactions.
    FK01, FK02, FK03, MK01, MK02, MK03, XK01, XK02, XK03
    The Basis consultant has tried to configure it. However its not working. So need to find other solution.
    For all transactions other than FK01, MK01, XK01 (create vendor), the BAdi GOS_SRV_SELECT is called before the payment transaction screen appears. But for transactions FK01, MK01and XK0, no such BAdi is there.
    Also I'm not able to figure out how to restrict that particular screen using Badi GOS_SRV_SELECT. What will be the service name for this?
    Please help !!!
    Thanks in advance,
    Radhika

    hi,
    u can do this using user exits.
    identify the appropriate exit for ur transaction and thn put condition like
    if username = ...
    loop at screen.
    hide..
    endloop.
    i was just trying to give u some hint .make it to ur best.
    reward if hlpful.

Maybe you are looking for

  • Role Menu for ESS (WDA) in SAP NWBC

    Dear experts, I am implementing ESS&MSS using SAP NWBC. For this use the following documentation: Configuration of the Role Menu for ESS (WDA) in SAP NWBC - SAP Documentation SAP delivers the composite role SAP_EMPLOYEE_ESS_WDA_2. 1. Call up transact

  • Using struts-faces : can't find "forward".

    using struts-faces : can't find "forward". I download the struts-faces lib and want to make a integration with struts && JSF. The action's one method is executed, but after that, it can't find the forward page. The console display: // Here is the ini

  • LMS4 user tracking dynamic update switch configuration

    So there is a tool that is supposed to configure switches to send mac notification traps: Admin => Collection Settings => User Tracking => Device Trap Configuration When I try this on a 3560, 3560X, 2960S or 2960X stack I receive the following messag

  • Illustrator CS4 opens but won't create a new document

    Hi, I've got an Illustrator CS4 problem. I can launch Illustrator CS4 and it launches quite happily. However, when i create a new document nothing happens. When I open a document nothing happens. I'm a local admin on my PC. It's running Windows XP SP

  • Text selection (copy/paste) of text messages

    Why is there no color highlight or flash or indicator of success at all when copying text from a text message? Steps: 1. Copy a text message 2. Paste text message into text entry field Problems: 1. There is no visual indicator of what text will be co