Creating the Oracle user... !

Hi all

I have a small doubt in the creation of the user.

Consider that we have 5 users A, B, C, D, E

that are created manually by the user SYS and DBA privilege is granted to all users of five.

These 5 users can now create other users according to the user request.

Consider the user XYZ is created by the user.

My doubt is how can we know that XYZ user is created by the user, but not by other users?

Could you please help...

Thanks in advance.

Hello Raymond vinay

You can use the view of the DBA_AUDIT_TRAIL dictionary.

THE USER SYS

========

create a user identified by one;

Connect to A grant;

grant DBA to a.;

THE USER HAS

======

create user B identified by b;

Grant connect to B;

grant DBA to B;

THE USER SYS

========

Connected to:

Oracle Database 11 g Enterprise Edition Release 11.2.0.4.0 - 64 bit Production

With partitioning, OLAP, Data Mining and Real Application Testing options

SELECT the username, userhost, timestamp, obj_name, os_username, action_name

OF DBA_AUDIT_TRAIL

WHERE username = "A".

;

OS_USERNAME USERNAME USERHOST TIMESTAMP OBJ_NAME ACTION_NAME

------------ ---------- ----------------- -------------------- -------- -------------

bergerd A RTC_PROD\PCC0564 27 May 14 LOGON

bergerd A RTC_PROD\PCC0564 27 May 14 B CREATE USER

bergerd A RTC_PROD\PCC0564 27 May 14 CONNECT ROLE GRANT

bergerd A RTC_PROD\PCC0564 may 27, 14 GRANT SYSTEM

bergerd A RTC_PROD\PCC0564 27 May 14 DBA GRANT ROLE

bergerd A RTC_PROD\PCC0564 27 May 14 closure of SESSION

bergerd A RTC_PROD\PCC0564 27 May 14 LOGON

bergerd A RTC_PROD\PCC0564 27 May 14 LOGON

8 selected lines.

SQL >

So, user created user B as you can see in the view.

The AUDIT_TRAIL parameter must be set at least at DB. (you can check this in the parameter$ v)

I hope that helps!

Kind regards

David

Tags: Database

Similar Questions

  • Cannot access SQL more from other than the Oracle users

    Hello

    I installed Oracle 11 g R2 on Red Hat 6. My problem is that I can't access sqlplus from other than the oracle users.

    I put the PATH, the ORACLE_HOME and ORACLE_SID to the correct values.

    Session1

    Connect as: oracle

    [email protected] password:

    Last login: Sun Aug 24 01:24:46 192.168.202.1 2014

    [oracle@localhost ~] $ echo $PATH

    /usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/Home/Oracle/bin:/Home/Oracle/app/Oracle/product/11.2.0/dbhome_1/bin

    [oracle@localhost ~] $ echo $ORACLE_HOME

    /Home/Oracle/app/Oracle/product/11.2.0/dbhome_1

    [oracle@localhost ~] $ echo $ORACLE_SID

    ORCL

    [oracle@localhost ~] $ sqlplus

    SQL * more: Production release 11.2.0.1.0 Sun Aug 24 03:17:32 2014

    Copyright (c) 1982, 2009, Oracle.  All rights reserved.

    Enter the user name:

    Session2

    Connect as: nada

    [email protected] password:

    Last login: Sun Aug 24 02:31:49 192.168.202.1 2014

    [prithwish@localhost ~] $ export PATH=$PATH:/home/oracle/app/oracle/product/11.2.0/dbhome_1/bin

    [prithwish@localhost ~] $ export ORACLE_HOME=/home/oracle/app/oracle/product/11.2.0/dbhome_1

    [prithwish@localhost ~] $ export ORACLE_SID = orcl

    [prithwish@localhost ~] $ echo $ORACLE_HOME

    /Home/Oracle/app/Oracle/product/11.2.0/dbhome_1

    [prithwish@localhost ~] $ echo $ORACLE_SID

    ORCL

    [prithwish@localhost ~] $ echo $PATH

    /usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/Home/Prithwish/bin:/Home/Oracle/app/Oracle/product/11.2.0/dbhome_1/bin

    [prithwish@localhost ~] $ sqlplus

    -bash: sqlplus: command not found

    I guess that I could not access sqlplus as the Nada the user has no access to X11R6

    [prithwish@localhost ~] $ cd...

    [Host prithwish@localhost] $ ls - ltr

    Total 8

    drwx-. 30 oracle oinstall 4096 23 August 23:51 oracle

    drwx-. Nada Nada 4096 24 August to 02:33 27 Mathieu

    [Host prithwish@localhost] $

    My question is, although quite stupid, that double

    (1) I have to change the permissions of the directory oracle of 755 for any other user to access the sqlplus?

    (2) why is the user directory under the folder created with permissions of 700, even when the umask is set to 002? Change the permissions of the directory under/Home oracle will cause security problems?

    My apologies for being naïve. It's the first time I installed Oracle under UNIX

    Kind regards

    Prithwsh

    Actually, the default procedure is NOT to install oracle to X11R6, but in/opt/oracle. or maybe/usr/local/oracle.

    This is what you're going to be recommended in the installation documentation, and in doing so, don't forget to run rootpre.sh and root.sh, I never had security problems and could run Oracle from any account.

    Sybrand Bakker

    Senior Oracle DBA

  • DIAGNOSTIC_DEST directory is created in oracle user accout $HOME

    DB version: 11.1.0.7
    OPERATING SYSTEM: AIX


    I have a base 11.1.0.7 and 10 gr 2 in a machine. When creating the Database 11 g, I explicitly the DIAGNOSTIC_DEST parameter in $ORACLE_BASE. Few days back I noticed a directory named oradiag_oracle in the $HOME(not $ORACLE_HOME) of the oracle user account. Yesterday, I removed it. But soon this directory has been created automatically.

    No idea why Oracle creates this directory in $HOME. I checked the alert log, but this directory is not mentioned here.
    $ ls -R oradiag_oracle/
    diag/
    oradiag_oracle/diag:
    clients/
    
    oradiag_oracle/diag/clients:
    user_oracle/
    
    oradiag_oracle/diag/clients/user_oracle:
    host_2263549305_22/
    
    oradiag_oracle/diag/clients/user_oracle/host_2263549305_22:
    alert/     cdump/     incident/  incpkg/    lck/       metadata/  stage/     sweep/     trace/
    
    oradiag_oracle/diag/clients/user_oracle/host_2263549305_22/alert:
    log.xml
    
    oradiag_oracle/diag/clients/user_oracle/host_2263549305_22/cdump:
    
    oradiag_oracle/diag/clients/user_oracle/host_2263549305_22/incident:
    
    oradiag_oracle/diag/clients/user_oracle/host_2263549305_22/incpkg:
    
    oradiag_oracle/diag/clients/user_oracle/host_2263549305_22/lck:
    AM_4096102193_3466045376.lck   AM_4096102262_3454619329.lck   AM_9744645641_3661997533.lck   AM_3216666543_3129272966.lck
    
    oradiag_oracle/diag/clients/user_oracle/host_2263549305_22/metadata:
    ADR_CONTROL.ams          ADR_INVALIDATION.ams     INC_METER_IMPT_DEF.ams   INC_METER_PK_IMPTS.ams
    
    oradiag_oracle/diag/clients/user_oracle/host_2263549305_22/stage:
    
    oradiag_oracle/diag/clients/user_oracle/host_2263549305_22/sweep:
    
    oradiag_oracle/diag/clients/user_oracle/host_2263549305_22/trace:
    sqlnet.log

    It seems that it is for the customer to tracing. I do not see it in 11.1.0.7.0, but see it in 11.2.0.1.0. The directory is created in your home directory when you perform a client connection.

    logged in as oracle I get

    / oracle/oradiag_oracle

    When logged in as myself I get

    / Home/jwalker/oradiag_jwalker.

    There is a note that explains how you can restore the return behavior, but he must make changes to several config files (not sure what it's worth). DOC - ID: 454927.1-> it references 11.1.0.6.0 but my 11.1 has been 11.1.0.7.0 and I don't have that happen there, only on 11.2.

  • When I create the domain user, I used option user must change when you first connect, but am unble to get this

    When I create the domain user, I used option user must change at the first logon, but am unble to get it.

    Hi RadhamAravind,

    Thanks for posting in the Microsoft Community.

    As you create a domain user, the question you posted would be better suited for the IT Pro TechNet public. I would recommend posting your query in the TechNet Forums to get help:

    Windows 7 security TechNet Forums

  • ASM and SCAN listener running of the Oracle user not user network

    Hi all

    Greetings for the day!

    In one of my new customer environment, I see that ASM and SCAN are running oracle user not user network, although the ORACLE_HOME is on the grid software. I read somewhere that we should run ASM and SCAN from grid not Oracle. Please let me know if I'm right and if there are consequences of the performer of the Oracle user.

    OS: Red Hat Enterprise Linux Server 6.5 (Santiago) 64-bit release

    Oracle RDBMS: 11204

    Oracle GI: 11204

    CAR Info: 2 node cluster.

    Thank you very much.

    AbbDBA

    The important word is expected here. It is suggested that 11.2, that the separation of roles, a non-oracle account must be used for the GI. But this is not essential, and certainly not wrong to use Oracle db and IM account as long as you do not use ASM according to security features. So nothing to worry about. You're good.

    Aman...

  • After changing the orainventory place im unable to connect using the oracle user

    Hello

    IM using oracle 12 c on rhel 6 after correctly installing the software, I changed the location of oravinventory in/data/houses

    / u01/app/Oracle

    After making these changes im is no longer able to connect using the oracle user...

    also I back return changes I had made to the orainventory folder still unable to connect using the oracle user...

    any help on this would be greatly appreciated

    Sadia. wrote:

    Hello

    IM using oracle 12 c on rhel 6 after correctly installing the software, I changed the location of oravinventory in/data/houses

    / u01/app/Oracle

    After making these changes im is no longer able to connect using the oracle user...

    also I back return changes I had made to the orainventory folder still unable to connect using the oracle user...

    any help on this would be greatly appreciated

    Newer versions of oracle have implemented a great new technology to help solve problems, called "error messages."  Unfortunately, I can't find any reference to an error message named 'is no longer able to connect.

    And why you are moving your site from inventory?  When you have installed oracle, he put the inventory where he wanted.  There is no reason to try to change or replace.

  • No access to the oracle user to disk HARD drives

    Aloha!

    I installed Oracle 11 g R2 64 bit on Oracle Linux 5 update 7. To create an instance, assigning components of database on 3 hard disks allocated, I was invited with an error saying "cannot create the directory said. It seems that oracle (user) does not have access or sufficient permissions to run the creation of such directory. The problem is of course oracle user had no permission. How can I give an oracle as a license to the user?

    Thanks in advance.

    Hades

    Salvation;

    What is owner of these courses? What ls - lrt return on the exsiting path? Have you tried to use chmod or chown command to can give rights w/r to your oracle user?

    Use chmod and chown command man man chmod and chown man on your screen of telnet.

    You can also google for can see the use of these two commands

    Respect of
    HELIOS

  • Create the EBS user exactly like an existing backend user

    Hi all

    I want to create a new EBS user which is exactly like an existing user of EBS backend (such as responsibilities, end_date and start_date etc.)

    EBS 12.0.6
    Database 11.2.0.2.0.

    Thanks in advance,

    PP

    You can use:

    FND_USER_PKG API - HTTPS://FORUMS.ORACLE.COM/FORUMS/SEARCH.JSPA?THREADID=&Q=FND_USER_PKG&OBJID=C3&DATERANGE=ALL&USERID=&NUMRESULTS=15&RANKBY=10001

    FNDLOAD (download the user data you want to clone, edit the file with the new user info/details ldt and download using FNDLOAD)-https://forums.oracle.com/forums/search.jspa?threadID=&q=FNDLOAD+AND+User&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001

    Thank you
    Hussein

  • 10g - hide, the report contains the oracle user-defined function

    Hi, experts,

    of http://obiee101.blogspot.com/2008/07/obiee-cache-management.html

    Reasons why a request is not added to the Cache:



    •The-cacheable SQL element. If a SQL query contains Current_Timestamp, Current_Time, Rand, Populate, or a parameter marker, then it is not added to the cache.

    •The-cacheable table. Physical in the Oracle BI Server repository tables can be marked "cacheable". If a query refers to any non-cacheable table then the results of the query will not be added to the cache.

    •Cache hit. In general, if the query gets a cache hit on a previously cached query, then the results of the current query are not added to the cache. The exception is query that is aggregated at winding hits hits.

    Result set is too large.
    Query is canceled. This can happen by explicit cancellation of Oracle BI Presentation Services or Administration, or implicitly through timeout tool.

    •Oracle BI Server is clustered. Queries coming into family "seeding cache" spread in the whole of the cluster. Other queries continue to be stored locally. Therefore, even if a query may be cached on the Server BI Oracle 1 node, it can not be on the node Server BI Oracle 2.




    I would like to know
    If the application (report on the dashboard) calls a function defined by the user to oracle, the cache can be created and saved for this report?

    Thank you very much!

    Hello stephen,.

    If the application (report on the dashboard) calls a function defined by the user to oracle, the cache can be created and saved for this report?

    Yes, it is cached... function defined in the database is called OBIEE is cached and saved.

    More information and example can be found here http://oraclebizint.wordpress.com/2007/09/10/oracle-bi-ee-10133-support-for-native-database-functions-and-aggregates/

    Hope this helps you. Check answers to any other questions you have posted?

    By,.
    KK

  • Question: How to create the new user and schema in 11g?

    Who can give me the answer how to create a new user and a schedule?

    I had installed oracle 11g DB and oracle in my OS windows client. I found in the 11g than there is no console management business with the new version. It is no different with oracle 10g. So I don't know how to create this new user.

    I had created a new DB instance, but I did not how to create a user on it. Who can give me a helping hand for who? I hope a give oracle experenice expert answers.

    Thank you very much!

    Published by: user774630 on October 27, 2008 22:01

    Published by: user774630 on October 27, 2008 22:09

    Hello
    I'm not sure which option you are talking about? [Do you use the EMCA, http://download.oracle.com/docs/cd/B28359_01/server.111/b28319/emca.htm#SUTIL800] to create the new repository for the EM? If this isn't the case, the command line that the other is using DBCA (Database Configuration Wizard). I think you're talking about that. Yes, if the message comes from creating the repository that soon after, you can connect to the EM. You would get the port no port HTTP of EM comes from the $OH/install/portlist.ini file.
    HTH
    Aman...

    Published by: Aman... on October 28, 2008 11:36
    Waived, insertion of link does not work.

  • Create the new user and remote access

    Hello, I create a new user from the admin panel. Now, I want to ask how my friend will have access to my nas also. He tries to connect from https://readycloud.netgear.com/ but it does not connect!

    I want to create some users and they can have access to my files from ther House. How can I do?

    I sin ready 102.

    Thank you

    Hi h_tsopelas,

    Please check this articleReadyCLOUD.

    I hope this helps!

    Kind regards

    BrianL
    NETGEAR community

  • SRV Win2k3 creating the new user at startup profile

    My Win2K3 Server creates a new user profile when starting, rather than use the existing account.
    For example, the account is called "USER"
    It creates a new profile named "USER. DOMAIN ".

    The "new USER. The DOMAIN profile"seems to have migrated all the parameters of the 'USER' profile, so that it is almost impossible to tell them apart.

    My problem is that this profile does not seem to be able to access the DHCP and DNS server (and other services) and the other server Win2K3, which is of the BDC.

    I tried to remove the disk from the machine and on another windows machine, remove the directory "USER. DOMAIN"and place it on a USB key. Then, turn the player on and start again. It just creates another "USER. The DOMAIN profile"again but this time that all parameters were also lost as if it created a whole new USER profile from scratch.

    I need to get her back to the original profile 'USER' to make everything functional again.

    I would also like to know how this happened and why, if someone wants to be good enough to explain it to me.

    Your help would be greatly appreciated.

    This issue is beyond the scope of this site (for consumers) and to be sure, you get the best (and fastest) reply, we have to ask either on Technet (for IT Pro) or MSDN (for developers)
    *
  • My first computer user when I created the second user... Help! :(

    Hello, I really ned a quick response... :/

    So I created a second user yestarday, so I had them 2, after some time I switched user and then turned my pc of. Later when I went to loggn in my user to fir trees, I couldn't, because it was just possible to loggn into second account... it does not show that there first user, I had...

    The second user that I created was a Director? would it be posible that my first user is deleted somehow? :((

    I don't know what's heppening, but I really need the other user, because its so much important things for me! :(

    But I still do not see him... It's like gone...:(quand j'ai voulu loggin àle premier utilisateur, il ne m'a donné choix trop choisi premier utilisateur ou en second lieu, c'est juste me demanda pasword à deuxième utilisateur j'ai créé:(()

    Please help me, I need a lot of treatment

    If I read your post correctly, I guess the account you were using was the original administrator account which can be renamed.  When you create a 2nd account, it is normal that Windows hide the original at this point administrator account.  Rename the user administrator does not rename the profile, so you will probably find your files in 'Administrator' in the folder c:\documents and settings\.  This may be the reason why your account is hidden.

    If this is the case, to log in to your original account, when you get to the opening of session "Welcome" with only the 2nd account, press Ctrl-Alt-Del twice.  This should bring up a login screen 'classic '.  Try typing your user name and password in the boxes and see if you can connect.

    If you can connect and want two accounts to display, you need to create another profile and transfer your files/data in this additional profile and leave the original hidden administrator account.  To do this, pretend that your hidden account profile is corrupt and follow one of the following procedures:

    "How to recover damaged Windows XP user profile"
      <>http://support.Microsoft.com/kb/555473 >

    "How to copy data from a corrupted to a new profile in Windows XP user profile"
      <>http://support.Microsoft.com/kb/811151 >

    HTH,
    JW

  • Created the new user account, and now the settings are gone.

    Accidentally, I created a new user in my previous account admin account, and now all of my settings are gone, as well as all the files on the first account. Is there a way I can return to my old account, or restore the files and settings? Either way, I run Windows XP. Help, please.

    You might be able to try a system restore to before you created the user account.
    Track information to restore the system in the KB article below:

    Article number: 2534454 - how to restore Windows XP to a previous state
     
    I hope this helps.
  • Restart the system created the new user profile

    When trying to connect to my laptop (before leaving), I have a blank screen with only a cursor before I could log on to the computer. I got tired of hitting CTRL alt del to get into the Task Manager, but he did not do anything.

    Then, I held the power button for five seconds to turn off the computer and restart it.  When he started upward, it showed an error that says the computer is not stopped correctly and on this screen, there are several options to reboot windows, I chose the option "restart windows normally" I could connect with my fine existing password, but when the windows actually open, my experience had changed and all my files are gone.  After some research, I found that all the old information of my were still there, but a separate user profile had been created and everything has been re-pathed to the new user.  The new user profile name was my existing profile name, then my name with a .pc at the end (ie. user name - username.pc).

    My questions are twofold: one) what the hell happened? and (b) what is the simplest to make everything re-pathed to my existing user profile.

    Thank you

    You have been put in a temporary user profile because the original was damaged. You can try the techniques below. If this does not work, let me know and I'll give you another path.

    Critical files are under % systemdrive%\users\user-account\ntuser. The ntuser.dat file is actually a registry hive. Run regedit high and select HKEY_USERS and "load hive" in the menu. Now, go to:

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList

    There is a line for each profile. If a profile is bad, check:

    (a) that the name of the key does not stop in ".bak" (remove .bak If it)
    (b) that the RefCount value is 0 (change it if it is different)
    (c) that the State value is 0 (change if different)

    If this is not the case, make the changes and try to connect as this user.

    More details of MVP Aaron Tiensivu - assume in this example that the user name is "atiensivu", field is "personal" and the user profile is located in % systemdrive%\users\atiensivu. Letter is usually C: on standard Vista installs. Replace each instance of "atiensivu" by the username of the corrupted profile.

    1. If you can log in profile, take note of the variable value environment % USERPROFILE. It will probably be "C:\Users\atiensivu" or "C:\Users\atiensivu.staff". Logoff.

    2. If you have opened a session with the profile at any time since your last reboot or you think that there are files in use in the profile, reboot. The important part is to ensure that there are no open files in the directory of the profile broke.

    3. log in as administrator or another account that has local administrator rights.

    4. run "takeown /r /a /d y/f % systemdrive%\users\atiensivu.

    5. starting at % systemdrive%\users, rename "atiensivu" to "atiensivu.old".

    6. in % systemdrive%\users, create a directory named "atiensivu".

    7 run "takeown/r/u staff\atiensivu/f % systemdrive%\users\atiensivu".

    8. run regedit and go to HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList and remove the SID key to the corrupted profile. Best way to find the correct SID is looking for the 'ProfileList' key to the directory mentioned in %UserProfile% in #1 step.

    9. closure of the session.

    10 log on the account "atiensivu". A new profile must be created. Copy all the files you can of the old profile directory.

    Orders "takeown" might be overkill, but I don't like permission errors.

    MS - MVP - Elephant Boy computers - don't panic!

Maybe you are looking for

  • Sony NAB... amazing ads

    The F5 can be upgraded to F55 The F55 can be implemented with a new plate shoulder ENG new controls offers forward for immediate changes at the World Bank and I think that audio. Difficult to see on the livestream.

  • Extension of wireless network for Apple - TV (4)

    Hello My family has really wants to watch movies on Netflix and watch on Hulu.   We have Direct TV.   I have a network in place as shown in the image below: iMac 5 k, El Capitan 10.11.2 running The Airport Extreme.  (802.11ac) Extended Extreme (802.1

  • Printing things out of my HP printer problems

    My HP printer has a green/white check on the printer.  It will not print photos from Facebook.  This isn't print e-mail messages that I want to keep. How can I get rid of the Green and white check on my printer?

  • Problems after installing updates in Windows 7

    After you install the updates that have been downloaded automatically, I was commissioned to do a reboot. Yes, I did. Now I have all the icons on my desktop, just the words. Even on Windows Explorer and my computer seems to run slower. I tried to res

  • This operation has been cancelled due to restrictions on your computer. Please contact your system administrator.

    Title: original operation canceledWhen I start right click then properties, this happens "this operation has been cancelled due to restrictions on your computer. Please contact your system administrator. "Same thing happens when I click on the taskba