How to add operation system user in atable

oracle 10g and Oracle Enterprise Linux 5.4
i wouil like to add operation system user name in a oracle table so that i can monitor data in the particular table

Your question is unclear.
Check also v$session dynamic performance view may be you can get information from this view which you can pull into your custom table.
And your query is about finding who is connected then,
To know about the list of users that is now connected and the time when they connect to database issue the following query.
SQL> SELECT s.username, s.program, s.logon_time
FROM v$session s, v$process p, sys.v_$sess_io si
WHERE s.paddr = p.addr(+)
AND si.sid(+) = s.sid
AND s.type = 'USER';
USERNAME PROGRAM LOGON_TIM
SAMI sqlplus@testerp (TNS V1-V3) 26-NOV-10
oracle@testerp (J000) 26-NOV-10
To know only the current session user name you can issue the following query,
SQL> SELECT USERNAME from v$session where audsid = sys_context('userenv','sessionid');
USERNAME
SAMI
To know about on which schema you are connecting issue following query.
SQL> SELECT sys_context('USERENV', 'CURRENT_SCHEMA') FROM dual;
SYS_CONTEXT('USERENV','CURRENT_SCHEMA')
SAMI
To know about the connected user user for the current session issue,
SQL> SELECT sys_context('USERENV', 'SESSION_USER') FROM dual;
SYS_CONTEXT('USERENV','SESSION_USER')
SAMI
If you use SQL*plus then simply issue,
SQL> SHOW USER;
USER is "SAMI"

Similar Messages

  • How to generate Operating system user list from windows server

    Hi,
    is it possible to extract the following report from windows server, if yes how to do it,
    1) Operating system User list from the server along with following details User Name, User Permission, Last Login date, User Status, 
    2) is it possible to include staff id, and staff name while creating any Operating system user

    Hi FBMUIIa,
    Would you please let us know current situation of this issue? Please refer to Mr X’s suggestion and check if
    can help you.
    Please also refer to following article and check if this script can help you.
    List Local
    User Accounts Using WMI
    In addition, regarding your current requirement, it seems that scripts will help you to achieve the target better.
    I suggest that you would post the question in
    Official Scripting Guys Forum or
    PowerShell Forum. I believe we will get a better assistance there.
    Hope this helps.
    Best regards,
    Justin Gu
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Different Oracle Operating system user

    Hi
    I must install in a Solaris system an Oracle Management System (9i) with an Operating system user different that Oracle. (oramaster)
    When I begin the installation, the Universal Installer, require the oracle user.
    How to avoid this required oracle user?
    Thank you

    I have to install Oracle Enterprise manager (OEM)
    (9i) with a o.s. user different than OracleYou can install oracle/OEM with OS user different than Oracle. Add that user to dba group or dba and oinstall group.

  • How to call Operating System commands / external programs from within APEX

    Hi,
    Can someone please suggest how to call Operating Systems commands / external programs from within APEX?
    E.g. say I need to run a SQL script on a particular database. SQL script, database name, userid & password everything is available in a table in Oracle. I want to build a utility in APEX where by when I click a button APEX should run the following
    c:\oracle\bin\sqlplusw.exe userud/password@database @script_name.sql
    Any pointers will be greatly appreciated.
    Thanks & Regards,

    Hi Guys,
    I have reviewed the option of using scheduler and javascript and they do satisfy my requirements PARTIALLY. Any calls to operating system commands through these features will be made on the server where APEX is installed.
    However, here what I am looking at is to call operating systems programs on client machine. For example in my APEX application I have constructed the following strings of commands that needs to be run to execute a change request.
    sqlplusw.exe user/password@database @script1.sql
    sqlplusw.exe user/password@database @script2.sql
    sqlplusw.exe user/password@database @script3.sql
    sqlplusw.exe user/password@database @script4.sql
    What I want is to have a button/link on the APEX screen along with these lines so that when I click that link/button this entire line of command gets executed in the same way it would get executed if I copy and paste this command in the command window of windows.
    Believe me, if I am able to achieve what I intend to do, it is going to save a lot of our DBAs time and effort.
    Any help will be greatly appreciated.
    Thanks & Regards,

  • How to add these system in the system ID list?

    Hello:
        Now I have a another problem in Setting Up Central Auto-Reaction Methods.I have created in solution manager,  In the system ID list,I want to have development system ,production system,and other system,because I want to alert these system,but I don't know how to add these system in the system ID list?Dose it need RFC?
        Please someone tell me.
         lexian
         Thanks a lot!

    Lexian,
    You need to some of these things for the SAP systems to show up in Solution Manager
    1. Install the Monitoring Agents (SAPCCM4X for ABAP instance and SAPCCMSR for J2EE instance etc)
    2. Configure RFCs from Solution Manager to the Satellite (SAP) systems.
    3. Create CSMREG user.
    4. Create Monitoring jobs.
    These are just some of the things that you will have to do. Refer this link on how to do this
    http://help.sap.com/saphelp_nw04/helpdata/en/c4/3a7da1505211d189550000e829fbbd/frameset.htm.
    This is for the broader view of the entire thing
    http://help.sap.com/saphelp_nw04/helpdata/en/c4/3a7da1505211d189550000e829fbbd/frameset.htm
    I would suggest starting with the second link.
    Let us know if you have any questions
    Kunal

  • How to add managed system in Wily introscope system

    Hi All,
    Can anyone provide the document on how to add managed system in Wily Introscope?
    With Regards
    Ashutosh

    Hello,
    The documentation for WilyIntroscope is located at
    http://service.sap.com/diagnostics
    > Media Library
    Here you can find user guides and installation guides for WilyIntroscope.
    But the overview is you install Enterprise Manager on a server that becomes the EM Server and then IS Agents on the managed system. There is an installation guide for EM and this ISAGENT setup is part of managed system setup in Solman_setup.
    Your tools to manage are Webview and Workstation, and there is documentation for these at the above mentioned link as well.
    Regards,
    Paul

  • How to add coordinate system SVY21(SRID: 3414) to Oracle Spatial 11g/12c

    Can any one please help me for "How to add coordinate system SVY21(SRID: 3414, for Singapore) to Oracle Spatial 11g/12c'?

    Why don't you start with the documentation: Coordinate Systems (Spatial Reference Systems)
    Especially paragraph 6.9 (6.9 Creating a User-Defined Coordinate Reference System ) should be helpful for you.
    HTH,
    Stefan

  • Oracle installed under which operating system user?

    How can I know, under whıch operating system user does the oracle installed?
    Oracle 10gXE and windowsxp

    You can find it ..following the next steps:
    1) Control Panel
    2) Administrative Tools
    3) Computer management
    4) Click on 'groups' sub-folder of the 'Local users and groups' folder
    5) on the right pane .. search for the 'ora_dba' group... This group is automatically created by Oracle and puts in the O/S user you have logged on the system at the time of the db installation....
    6) Dbl-click on this group to find out the O/S username....
    I'm not sure for the above steps if you have installed OracleXE...
    Greetings...
    Sim

  • How to add buisness system in Integration directory -objects

    Hi All,
    I created the technical systems and buisness systems. then in the integration directory, i want to check whether my business system exixts are not.
    so in the integration directory,
    objects--->service without party >buisness system>
    in the buisness system , whatever buisness system i created the  is not found.
    how to add buisness system into integration directory -- objects.
    Regards,
    vinoth.

    Hi,
    go to integration directory,
    objects--->service without party >buisness system>
    select the BS -> Right click the BS -> it show the number of BS select your business system and assign them next save.
    If the your business system if it's not appear go to Environment menu -> Clear SLD Data cahce.
      and do the same process again..
    Regards,
    Venu.

  • File Permissions on Oracle Directories for other Operating System Users

    Hi,
    I am trying to export the table data to flat file using a pl/sql function using UTL_FILE package and directories created using 'CREATE DIRECTORY' command. The function is called from a stored procedure which in-turn is called from a Java program using JDBC and the Java process runs as different operating system user. The problem for me is the file exported is being written as 'ORACLE' user with 'OINSTALL' group and '-rw-r--r--' linux file permissions. When I try to read this exported file from the java program it throws me a file access error.
    I would like to know if we can specify any additional parameters either in
    1) Database parameter file
    2) UTIL_FILE.FOPEN function
    3) CREATE DIRECTORY command
    so that the files written to the DIRECTORY have a read write access.

    Since you attempting to read the file from Java, you are constrained by the OS.
    Write a stored proc to read the file, since PL/SQL does have the correct permissions to read/write to files.
    P;

  • How to get Operating System Space Info from Oracle database using SQL

    Our oracle databases are installed on Unix operating system. Currently our DBA wrote a view to get space info of table spaces and He is requesting me to add Operating system level(file system) drive space info to the same report.
    Can you please let me know the easiest way to get this information to sql table so that it can be used for reporting purposes?

    You should be able to create a shell script with the OS commands to generate the information for the mount points that you want to access in Oracle, then read it in as an external table using the preprocessor feature of external tables:
    http://download.oracle.com/otndocs/products/database/enterprise_edition/utilities/pdf/xtables_preproc11g_1009.pdf

  • How to add a system into Solution Manager directory.

    Hi!
    Can anybody tell me how to add a system into Solution Manager directory before generating license key for ECC installation .
    Also,
    How to connect the XI in same box with SolMan and ECC in defferent server to SolMan 3.2 .
    I am going to install SolMan and than XI in and box and after that ECC in a seperate box.
    AM I right?
    regards,
    Pratip Bhattacharyya

    Hi Bratip Bhattacharyya,
    SolMan 3.2 needs SLD only for automatic data gathering of the sap landscape; you can choose between SLD and LIS in transaction SMSY_SETUP (which simply uses the TMS-domain controllers for information gathering).
    XI needs SLD, but XI needs also a netweaver04 (s) system (Abap WAS 6.40). SolMan 3.2 isn't a netweaver04 system (Abap WAS 6.20). So you have to install XI as an own central instance (Abap + Java) on the same windows server, if you like. In this case you have to install for XI an own SLD. Different SLDs can create bridges between themselves. Please look at the SLD configuration guide (quicklink /netweaver -> installation guides).
    But don't ask me how to install two sap systems on one server on windows (on Linux it's easy I have done so); basically it will have an own SID and own "service" numbers (which means own tcp port numbers).
    If you can't dedicate to XI an own server, it's only a question of hardware sizing. For the different combinations of netweaver components you should study the master guide for netweawer.
    Bye
    Message was edited by: Riccardo Escher

  • How to Add Active Directory user to Admin Role

    Hi All,
    I am trying to figure out how to add a AD user to the Admin Role..
    I am connected to AD and can see the user (myself), however, when I try to add myself to the admin role, it says user not found.
    I go to Security Realms > myreals > Roles and Policies > Global Roles > Roles > Admin > View Role Condition.
    I see that the Administrators Group is already added. Now I click "add Conditions" and select "User" from the Predicate List and type in the user " Doe' John".
    On the next screen I get "user: John or Dow" does not exist.
    Another option could be to add the user to the Administrator group, but I couldnt figure out how to do that as well. When I navigate to the user under Users or Groups, I dont see an option to add that user to the Administrator group.
    Is it that you can only add users created in Weblogic to the Admin group?
    Any help on this will be very appreciated.
    Thanks in advance.

    I think I got it. I had to add the AD group the user is part of to the Admin role.

  • How to use Operating System Commands while using define in sqlplus

    How to use Operating System Commands while using define in sqlplus . The Host OS is Linux
    define report_name=PROD_${host date "+%b"}.html
    The above is not working.
    The output should be 
    define report_name=PROD_JAN.html
    Regards,
    DB

    of course I was talking nonsense: the problem here is the mixing of bind variables and DEFINE variables.
    With the following changes the script should work (the conditions for begin_interval_time are perhaps not what you want):
    variable snap1 number
    variable snap2 number
    variable rptname varchar2(20)
    begin
    SELECT min(snap_id) into :snap1 FROM dba_hist_snapshot WHERE CAST(begin_interval_time AS DATE) >= SYSDATE-1;
    SELECT max(snap_id) into :snap2 FROM dba_hist_snapshot WHERE CAST(begin_interval_time AS DATE) >= SYSDATE-1;
    end;
    col file_name_value new_value report_name noprint
    select 'PROD_'|| to_char(sysdate,'MON') || '_' ||  to_char(sysdate,'DD') file_name_value  from dual;
    define  report_type  = 'html'
    define num_days=2
    define begin_snap=:snap1
    define end_snap=:snap2
    @@?/rdbms/admin/awrrpt.sql

  • How to get window system user?

    Hi,
    How to get window system user use PL/SQL(form develope6i)?

    If you don't use Oracle database then you will have to do one of two things:
    (1) Now I'm back in the office I can check D2KWUTIL. The version I have comes with Forms6.0, so it is somewhat out of date, but it has a method called WIN_API_ENVIRONMENT.Get_Windows_Username - which works for NT/95 only, although I'm sure a later version will support more recent OS.
    (2) If that's no good then you'll have to use whatever facilities your database offers: I only know Oracle.
    I also repeat my suggestion that you try the Forms forum for additional help. This is the Database forum and so is focused on serverside Oracle PL/SQL. For your needs the Developer Suite forums are better.
    Cheers, APC

Maybe you are looking for

  • Stop doesn't appear on the menu bar on Version 29.0.1. How do I install it?

    Stop doesn't appear on the menu bar on Version 29.0.1 and I can't find the icon in the customize menu. It just seems to have disappeared. I would also like words under the menu icons. Also the reload icon can't be moved or customized. I JUST HATE IT

  • I recently reinstalled vista on my laptop and now i can't install itunes

    I have been trying to install itunes in my newly reinstalled vista laptop but haven't been able to. I was wondering if it was a device driver problem. Can anyone help?

  • String manipulation

    I am trying to read in a CSV file and then use the data contained in the CSV file to insert data into a database. I am programming in C# in order to do this I set up a StringReader object, open the file and read the file to the end into a string. To

  • In-between joins between 2 dimension levels in AWM

    Hi, I have a many-to-many relationship between products and category, as these tables: PRODUCTS(product_key, name) CATEGORIES(category_key, name) PROD_CAT(product_key, category_key, catalog) I'd need to create a Product dimension with 2 levels, Categ

  • Best way to keep track of family members, etc

    Hi- I am a hobby photographer, and have been playing around with the trial version Aperture to replace iPhoto, and I have some questions. 1. What is the best way to keep track of family members? For example, I like to basically keep track by setting