[HELP] How to records user who use SQLPlus or SQL editor?

Dear Gurus,
Is onyone know how to record user who use SQLplus or any SQL editor?
for instance...
user1 using SQLplus on monday august 9.30.21 PM...and I have table which record this for audit user.
Or..
Can I block user who connect to oracle using SQLPlus?
If anyone know how to do this..please inform me...
Thanks and Regards
Erie

You can enable Auditing (AUDIT_TRAIL) and audit at the Session Level to record Logon and Log off of a required user. This can be enabled to be recorded in the audit table or operation system file. You can also audit user statements etc.
For example, to enable auditing connect for user UGONIC
SQL>audit connect by UGONIC;
TO disable it
SQL>noaudit connect by UGONIC;
Check in the SQL Reference for the AUDIT statement and requirements.
If you do not want the user to connect at all via SQL*Plus, you can use PRODUCT_USER_PROFILE to disable a users access to SQL*Plus or at the lower level, disable specified SQL*Plus and SQL commands for the user. You need to run the PUPBLD.SQL script as system user (if not run yet) and add records to it as required.
Example: After running PUPBLD.SQL. This entry stops the user UGONIC from using the drop command at the backend in SQL*Plus.
INSERT into product_user_profile (product,userid,attribute,char_value,date_value)
values('SQL*Plus','UGONIC','DROP','DISABLED',NULL);
Note that if a user is already connected by the profile entry, it is not activated on that session, but on subsequent logons. Again read the requied security documentations for this.
For both auditing, you need to set the required database intialisation parameters and know where to get the audit records (in tables, views or OS file). For instance, when using tables, you maintain and query tables like audit$ to view the logs. When using OS type logging, it is recorded on the path specified in the AUDIT_FILE_DEST init parameter (In Windows, it is logged in the Windows Event and you can view it from the event viewer).

Similar Messages

  • How to find out the Transactions used per month & the USER who used that

    Hi,
    1)How to find out the Transactions used per month & the USER who used that?
    2)and can i get the above same for minimum 20 month?
    System : SAP- Enterprise Core Component.

    You can use my program...
    *& Report  Z_ABAP_TCODE_MONITOR
    *****&  Program Type          : Report                                 *
    *****&  Title                 : Z_ABAP_TCODE_MONITOR                   *
    *****&  Transaction code      : ZTCODE_USAGE                           *
    *****&  Developer name        : Shailendra Kolakaluri                  *
    *****&  Deveopment start date : 26 th Dec 2011                         *
    *****&  Development Package   : ZDEV                                   *
    *****&  Transport No          : DEVK906086                                       *
    *****&  Program Description   : This program is to display
    *List all tcodes executed during previous day.
    *& Show the number of users executing tcodes
    *& Modification history
    REPORT  Z_ABAP_TCODE_MONITOR.
    *& List all tcodes executed during previous day.
    *& Show the number of users executing tcodes
    TYPE-POOLS : slis.
    DATA: ind TYPE i,
          fcat TYPE slis_t_fieldcat_alv WITH HEADER LINE,
          layout TYPE slis_layout_alv,
          variant TYPE disvariant,
          events  TYPE slis_t_event WITH HEADER LINE,
          heading TYPE slis_t_listheader WITH HEADER LINE.
    *REPORT  z_report_usage.
    TYPES: BEGIN OF zusertcode,
      date   TYPE swncdatum,
      user   TYPE swncuname,
      mandt     TYPE swncmandt,
      tcode     TYPE swnctcode,
      report TYPE swncreportname,
      count     TYPE swncshcnt,
    END OF zusertcode.
    *data   : date type n.
    DATA: t_usertcode  TYPE swnc_t_aggusertcode,
          wa_usertcode TYPE swncaggusertcode,
          wa           TYPE zusertcode,
          t_ut         TYPE STANDARD TABLE OF zusertcode,
          wa_result    TYPE zusertcode,
          t_result     TYPE STANDARD TABLE OF zusertcode.
    PARAMETER: month TYPE dats DEFAULT sy-datum.
    *PARAMETER: date TYPE dats.
    *select-options : username for wa_usertcode-account.
    START-OF-SELECTION.
    PERFORM get_data.
    PERFORM get_fieldcatalog.
      PERFORM set_layout.
    PERFORM get_event.
    PERFORM get_comment.
      PERFORM display_data.
    FORM get_data .
    *date = sy-datum - 2 .
    After start-of-selection add this line (parameter Month required 01 as day).
      concatenate month+0(6) '01' into month.
      CALL FUNCTION 'SWNC_COLLECTOR_GET_AGGREGATES'
        EXPORTING
          component     = 'TOTAL'
          ASSIGNDSYS    = 'DEV'
          periodtype    = 'M'
          periodstrt    = month
        TABLES
          usertcode     = t_usertcode
        EXCEPTIONS
          no_data_found = 1
          OTHERS        = 2.
      wa-date  = month.
    *wa-date  = date.
      wa-mandt = sy-mandt.
    wa_usertcode-account = username.
      LOOP AT t_usertcode INTO wa_usertcode.
        wa-user = wa_usertcode-account.
        IF wa_usertcode-entry_id+72 = 'T'.
          wa-tcode  = wa_usertcode-entry_id.
          wa-report = space.
        ELSE.
          wa-tcode  = space.
          wa-report = wa_usertcode-entry_id.
        ENDIF.
        COLLECT wa INTO t_ut.
      ENDLOOP.
      SORT t_ut BY report ASCENDING.
      CLEAR: wa, wa_result.
    endform.
    FORM get_fieldcatalog .
    fcat-tabname     = 't_ut'.
    fcat-fieldname   = 'DATE'.
    fcat-seltext_l   = 'Date'.
    fcat-key         = 'X'.
    APPEND fcat.
      CLEAR fcat.
      fcat-tabname     = 't_ut'.
      fcat-fieldname   = 'MANDT'.
      fcat-seltext_l   = 'Client'.
      fcat-key         = 'X'.
      APPEND fcat.
      CLEAR fcat.
      fcat-tabname     = 't_ut'.
      fcat-fieldname   = 'USER'.
      fcat-seltext_l   = 'User Name'.
      fcat-key         = 'X'.
      APPEND fcat.
      CLEAR fcat.
      fcat-tabname     = 't_ut'.
      fcat-fieldname   = 'TCODE'.
      fcat-seltext_l   = 'Transaction Code'.
      fcat-key         = 'X'.
      APPEND fcat.
    ENDFORM.
    *&      Form  SET_LAYOUT
          text
    -->  p1        text
    <--  p2        text
    FORM set_layout .
      layout-colwidth_optimize = 'X'.
    ENDFORM.                    " SET_LAYOUT
    *&      Form  GET_EVENT
          text
    -->  p1        text
    <--  p2        text
    *FORM get_event .
    events-name = slis_ev_top_of_page.
    events-form = 'TOP_OF_PAGE'.
    APPEND events.
    *ENDFORM.                    " GET_EVENT
    **&      Form  GET_COMMENT
          text
    -->  p1        text
    <--  p2        text
    *FORM get_comment .
    DATA: text(30).
    text = 'Billing Report'.
    heading-typ = 'H'.
    heading-info = text.
    APPEND heading.
    *ENDFORM.                    " GET_COMMENT
    **&      Form  top_of_page
          text
    -->  p1        text
    <--  p2        text
    *FORM top_of_page .
    CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
       EXPORTING
         it_list_commentary       = heading[]
      I_LOGO                   =
      I_END_OF_LIST_GRID       =
    *ENDFORM.                    " top_of_page
    *&      Form  DISPLAY_DATA
          text
    -->  p1        text
    <--  p2        text
    FORM display_data .
      sort t_ut[].
    DELETE ADJACENT DUPLICATES FROM t_ut[] COMPARING ALL FIELDS.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_callback_program = sy-cprog
          is_layout          = layout
          it_fieldcat        = fcat[]
          i_save             = 'A'
          is_variant         = variant
          it_events          = events[]
        TABLES
          t_outtab           = t_ut
        EXCEPTIONS
          program_error      = 1
          OTHERS             = 2.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    ENDFORM.                    " DISPLAY_DATA

  • How to find users who are running IE with different credentials ?

    How to find users who are running IE with different credentials ? 
    Is there any tool or a solution in the market will help or a i can use GPO or even Power Shell ?
    thnx & Regards ,,

    Hi Salman,
    Based on your description, we can use Windows Credential Manager to check this. Windows Credential Manager stores credentials, such as user names and passwords  that we use to log on to websites or other computers on a network.
    Regarding Credential Manager, the following article can be referred to for more information.
    Credential Manager
    http://windows.microsoft.com/en-in/windows7/what-is-credential-manager
    Manage passwords in Internet Explorer using Credential Manager
    http://www.thewindowsclub.com/manage-passwords-internet-explorer-10
    Please Note: Since the above website is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.
    Best regards,
    Frank Shen

  • How to find user who loaded the procs in DB

    Hi guys how to find user who loaded procs in database ..and the date...
    is there anyway..
    i tried to look at all_objects..but it didnot workout..
    thanks

    That is correct. You will only have audit rows for item that you are auditing. I am suggesting you audit all DDL in a production database since production jobs should not perform DDL with the probable exception of truncate. This will provide this type of information going forward. It will not help you answer the question of who created the procedure last week?
    Auditing is explained in the Security manual and the full comand syntax is available in the SQL manual.
    You can easily write a purge the audit data to remove data once it is no longer of interest based on the date the audit row was created.
    HTH -- Mark D Powell --

  • Can't Use Video with other Mac users who use AIM

    I know that ichat is compatible for video chats with other pc users who use aim, but does it work with other mac users who use aim?
    Everytime I try to chat with my friend, I get an error message when trying to start of a video chat.
    BTW, I use a iMac G5 with an isight camera.

    Hi Staci,
    For a Bit of Clarity.
    AOL have their Instant Message App. referred to as AIM.
    Apple decided and did a deal with AOL that iChat could join their service Buddy Lists.
    On these Discussions we tend to refer iChat as Logging into AIM, as they are the servers that the Buddy Lists are held on.
    As iChat can also use Bonjour and Jabber, both of which have their own Buddy list window on your Mac. The Jabber side needs you to have a Jabber screen name - so again people differentiate between this and the AIM side.
    I would guess you friend is trying to make it clear that she is using the AIM side of iChat as opposed to the Jabber side.
    As has been said already, the Application side of things also tend to get referred to generically as "AIM" as well.
    The Mac version has stopped and 4.7 and will only Text chat.
    The PC side needs 5.9 to clearly Video or Audio chat with a Mac using iChat. (AIM 6.0 is not stable enough to A/V chat to iChat).
    1:13 PM Saturday; January 27, 2007

  • SharePoint 2013 - Server Error in '/' Application - This operation can be performed only on a computer that is joined to a server farm by users who have permissions in SQL Server to read from the configuration database

    Hi
    After I ran SharePoint configuration wizard successfully to upgrade to SharePoint 2013 / SP1.
    I can open Central Administration site just fine.
    but now when I open any Site collection,  I got this error.
    Server Error in '/' Application
    This operation can be performed only on a computer that is joined to a server farm by users who have permissions in SQL Server to read from the configuration database. To connect this server to the server farm, use the SharePoint Products Configuration
    Wizard, located on the Start menu in Microsoft SharePoint 2010 Products
    I have restarted all the servers:  SQL server, WFE and APP servers but still cann't get this resolve.
    Services on all servers are running,  IIS - application pools are running.
    Can someone help with where that could be a problem or if there is a solution.
    Thanks in advance for your comments or advices.
    Swanl

    Please verify the followings:
    Make sure that from the SharePoint front end and application servers that you can ping your SQL server.
    Make sure that your Farm account has permission to the configuration database.
    Lastly verify that your database didn't for some reasons go into recovery mode.
    once everything is fine and you are still having issues, restart the SQL host service on the SQL server.
    Once the service is restarted you will need to reboot Central Admin and then your front end servers.
    In addition, as you built your farm inside the firewall, please disable the firwall, or create rules for SQL Server service in the firwall on SQL server.
    More information about creating rules in firewall, please refer to the following posts: http://social.technet.microsoft.com/Forums/en-US/c5d4d0d0-9a3b-4431-8150-17ccfbc6fb82/can-not-create-data-source-to-an-sql-server http://www.mssqltips.com/sqlservertip/1929/configure-windows-firewall-to-work-with-sql-server/
    Here is a similar post for you to take a look at: http://social.technet.microsoft.com/Forums/en-US/ea54e26c-1728-48d4-b2c5-2a3376a1082c/this-operation-can-be-performed-only-on-a-computer-that-is-joined-to-a-server-farm-by-users-who-have?forum=sharepointgeneral 
    Please 'propose as answer' if it helped you, also 'vote helpful' if you like this reply.

  • How to write a file using mod pl/sql

    hi,
    i am having a submit button in my procedure. which should inturn create .sql file in a file path.
    is there any way to create a fileusing htp and htf methods.
    Thanks in advance
    Hari

    >
    i am having a submit button in my procedure. which should in turn create .sql file in a file path.
    is there any way to create a file using htp and htf methods.
    >
    Why are you wasting your time coding from scratch using the PL/SQL Web Toolkit instead of the APEX framework?
    From Re: how to write a file using mod pl/sql it appears that you are not using APEX, so a number of the approaches APEX offers are not relevant. You appear to be looking for a file download solution using the <tt>wpg_docload.download_file</tt> method, such as:
    create or replace procedure download_file (
        p_filename  in     varchar2
      , p_mimetype  in     varchar2
      , p_content   in out nocopy blob)
    is
    begin
      -- Set up HTTP header.
      -- Use "application/octet" as default MIME type.
      owa_util.mime_header(nvl(p_mimetype, 'application/octet'), false);
      -- Set the size so the browser knows how much to download.
      htp.p('Content-length: ' || dbms_lob.getlength(p_content));
      -- Filename will be used as default by the browser in "Save as..."
      htp.p('Content-Disposition: attachment; filename="' || p_filename || '"');
      -- Close header.
      owa_util.http_header_close();
      -- Stream the file content to the browser.
      wpg_docload.download_file(p_content);
    end download_file;

  • How to find out the list of users who used Discoverer

    Dear All,
    We have Oracle E-Business Suite 11.5.10.2 with Disco. 4i.
    We need to know how we can find out the Employee ID, Responsibility, Org... who used discoverer during a specific period in the past ? For example the last year.
    Any help plz.
    Regards,
    Mohammad Muhtadi

    I'm not sure You can get the responsibilities or the org that was used in that specific run but as for getting when it was run and by whom...
    Try that SQL:
    select distinct
    qs.qs_doc_name workbook,
    --qs.qs_doc_details worksheet,
    case when instr(qs.qs_doc_owner,'#')=1 then substr(qs.qs_doc_owner,2,10) else qs.qs_doc_owner end workbook_owner,
    qs.qs_created_date run_date,
    case when instr(qs.qs_created_by,'#')=1 then substr(qs.qs_created_by,2,10) else qs.qs_created_by end apps_user_id,
    fu.user_name apps_user_name,
    ppf.FULL_NAME user_full_name,
    ppf.EMPLOYEE_NUMBER user_employee_number
    from
    eul_us.eul4_qpp_stats qs,
    fnd_user fu,
    per_people_f ppf
    where to_number(substr(qs.qs_created_by,2,10))=fu.user_id(+)
    and fu.employee_id=ppf.PERSON_ID
    and sysdate between ppf.EFFECTIVE_START_DATE and ppf.EFFECTIVE_END_DATE
    change the "eul_us" to the discoverer schema.
    Basically the primary data you are looking for lies in the qpp_stats table...

  • How to get users, who can use special T-code?

    Hi.
    I want to know users, who has authorization for FBV0.
    How can I get this information?
    Thank you in advance..

    Hi
    Use SUIM and find the users have this authorization.
    Here the first tab user--list of users with critical authorization select that and u can find the users list.
    Regards
    Bhaskar
    Edited by: bhaskar1818 on Jul 22, 2008 2:32 PM

  • How to edit contacts in Unified Contact Store in outlook or owa for users who use Attendand Console?

    Hi all,
    We have Lync server 2013 with Exchange server 2013 and "Unified Contact Store" configured and working. unfortunately our reception staff who use the Attendant Console are unable to edit their contact list (this is normal as 2010 clients do not
    support UCS).
    According to Microsoft notes that I have read we should be able to edit the UCS contact lists in OWA, Outlook, or Lync 2013. I can get reception staff who normally use Attendant Console (AC) log in to Lync 2013, arrange their contacts then go back to AC
    - this works fine. 
    However as reception staff already have outlook, I would like to enable these users to be able to edit their contact lists in outlook or OWA. Does anyone know how to do this? I can't find any contact list in outlook that relates to the contact lists
    in Lync.
    Simon.

    Hi,
    For deploying Unified Contact Store, the users must log in with Lync 2013 at least once.
    More details:
    http://technet.microsoft.com/en-us/library/jj204963.aspx
    Kent Huang
    TechNet Community Support

  • How to restrict users who can use a submit button.

    I have a submit button which I would like to limit the names of the users who can use it. Is there any way I can limit who can use it.
    Thanks

    Hi
    Use SUIM and find the users have this authorization.
    Here the first tab user--list of users with critical authorization select that and u can find the users list.
    Regards
    Bhaskar
    Edited by: bhaskar1818 on Jul 22, 2008 2:32 PM

  • How to record user action?

    Dear All,
    I am trying to build a performance testing tool like jmeter. I want to know how jmeter or any HTTP performance tool records user action. I don't know how to write the action recording code. If anybody knows please help me out.
    The following are the logic behind the jmeter action recording
    1. Turn on the proxy (HTTP in this case). Jmeter starts listening to HTTP traffic to/from the specified URL. It basically acts like a sniffer for the traffic between your client (the browser) and the server IP address.
    2. User starts performing his business process (the activities/requests to the server).
    3. When a request is sniffed/captured by the tool, it immediately creates a code to send the same request (basically an HTTP GET/POST method created).
    4. At the same time it monitors the response from the server and creates a checking code for verifying that the response obtained is correct (This is used further by the tool when we run the test). The response includes the complete HTML data including the Header and Body sections.
    5. All the requests and corresponding responses are captured by the tool and the corresponding code generated automatically.
    6. Once the recording ends, it puts together these snippets to create a complete code which could be further modified by the users so that they can run it in a multi-threaded environment.
    7. Users run the code specifying the number of users (basically threads) to perform a load test on the server. (The code generated would be thread-safe so that there are no overlaps)
    Thanks & regards

    So why not using Jmeter and make you own modification when required
    This is the great benefit of open source community
    Regards,
    Alan Mehio
    London,UK

  • How get the user that use CRM in my web site

    Hi all,
    I have a web app that connect to my CRM. I use C#.
    I connect to CRM with my credential because I'm admin in CRM.
    But my app is used from others CRM user and I need to know who is systemuser CRM that use app.
    I need the same of Xrm.Page.context used in js or the same context used in plugin, but I have the problem that I connect  to CRM with my user. So If I use WhoAmIRequest class I have my userid and not the userid of the user that use my web app.
    Is it possible know this? Do I change my login with user login in CRM?
    Thanks

    Hi,
         As you use system admin to connect to CRM, WhoAmIRequest does not return the user from website. You are correct. Change that so that it uses logged in user however be aware that means each user needs to be a valid CRM user else they
    will get not a valid user error.
    Hope this helps.
    Minal Dahiya
    blog : http://minaldahiya.blogspot.com.au/
    If this post answers your question, please click "Mark As Answer" on the post and "Vote as Helpful"

  • List of users who used particular tcode

    Dear All,
            Plz help me in this issue, I want the list of all the users who had accessed particular t_code in last three months, i had checked in suim, usr tables and in su01, i just want the screen where i can select t_code and the date to access the user names who had used that t_code in these days, thanks in advance.

    Hi,
    From my knowledge there is no standard screen answering your requirement.
    You can get dig out this information from ST03, but it is by month and it will give all transactions.
    If you really need it, it 's up to you to fire SE38 and write your own abap report !
    Regards,
    Olivier

  • How to force user to use program?

    I have designed a java app that starts as soon as you log on to a Windows NT client. The application asks the user for a project number. After the user types in a valid project number, the application hides. When the user logs off, or does a shutdown, the application writes info to a file about about how long this user used the PC, and for which project number he or she did that. When a user does not enter a project number and tries to close the application, the system will automatically shutdown. I can hide the windows taskbar by using a big size for the application frame.
    My question is, how can I make sure that the user does not simply ignores the program by using the windows key, or ctrl-Esc to launch the windows start menu? Someone out there who has an idea? Thanks in advance!

    To disable all Windows keyboard shortcut keys, save the following text in a REGINI script called Disable_wins.ini. Run
    the script from the Windows NT command prompt. For example, from the C:\users\default> prompt, type regini
    disable_wins.ini. Restart the computer to make the changes take effect.
    [REGINI SCRIPT STARTS HERE:]
    ; This mapping is used to turn both Windows keys off
    \Registry\Machine\SYSTEM\CurrentControlSet\Control\Keyboard Layout
    Scancode Map = REG_BINARY 24 \
    0x00000000 0x00000000 3 \
    0xE05B0000 0xE05C0000 \
    0x0
    ; Here is an explanation of all the values:
    ; 24 Size of the scancode map including header, in bytes
    ; 0x00000000 Header : Version
    ; 0x00000000 : Flags
    ; 3 : Number of entries (includes null terminator)
    ; 0xE05B0000 left Windows -> nul (0xE0 0x5b -> 0x00)
    ; 0xE05C0000 right Windows -> nul (0xE0 0x5c -> 0x00)
    ; 0x00000000 null terminator
    [REGINI SCRIPT ENDS HERE]

Maybe you are looking for