Difference Between Database Schema and Database User Account ??

First i would like to know what an Oracle Database schema exactly is ?
And what is it for and also What is it's use ?
Later the exact "Difference Between Database Schema and Database User Account".
I googled about it but i'm unable to find out it's The difference,
Please try to explain in a simple manner........
Thank you very Much in Advance..........

user13655582 wrote:
Greate example. but i would like add one more point..
a user is a schema and schema is a user. but when this applies to the user that he become a schema, only if he has got some objects. so we can say while creating the user which dosent contain any objects called simple user account but afterwords when he has got an objects then we can say its a schema as the above user has shown you through the exampleIt is just word-play. There is nothing in like a 'status' indicator to say "USER_A is just a user but USER_B has become a schema". Many people use the terms "user" and "schema" interchangeably, and some very good DBAs will insist this is correct. I don't disagree with them even though I usually try to make the distinction.
In a typical application, all of the objects (tables, procedures, etc) that implement the app will be owned by a "application schema owner" - a user which exists for the sole purpose of owning the schema. Said user will have no privileges at all .. especially not CREATE SESSION. Except for possible maintenance activity no one ever actually connects as this user. User accounts are then given to actual humans who connect with their own accounts. The accounts have the necessary system and object privileges granted to them - via a role. One could also create a special account (let's call it APP_ADMIN) that is used for maintenance and batch operations within the application.

Similar Messages

  • Difference between target schema and target user

    hi,
    Can anyone explain to me what is the difference between target schema and target user? examples will be more welcome then theoratical explanation.
    thanks so much

    In Oracle database schema and user is the same things (if you use general authentication by database).
    When used external authentication (for example with Windows domains/active directory) schema is a owner of database objects group and you should specify mapping between external usernames and schema to which this user has access when connects to database.
    For example:
    - windows domain user CORPDOMAIN\USER1 can connect to oracle database schema SCOTT;
    - windows domain user CORPDOMAIN\USER2 can connect to oracle database schema SCOTT;
    - windows domain user CORPDOMAIN\ADMIN can connect to oracle database schema SYSTEM;
    Oleg
    Message was edited by:
    tsiboleg

  • Re: what is difference between sap locking and database locking

    hi,
        what is difference between sap locking and database locking. Iam locked the table mara by using lock objects.
    But iam unable to unlock the mara table. I give u the coding. Please check it.
    REPORT zlock .
    CALL FUNCTION 'ENQUEUE_EZTEST3'
    EXPORTING
       MODE_MARA            = 'S'
       MANDT                = SY-MANDT
       MATNR                = 'SOU-1'.
    call transaction 'MM02'.
    CALL FUNCTION 'DEQUEUE_EZTEST3'
         EXPORTING
              mode_mara = 'E'
              mandt     = sy-mandt
              matnr     = 'SOU-1'.
    IF sy-subrc = 0.
      WRITE: 'IT IS unlocked'.
    ENDIF.

    Hi Paluri
    Here is the difference between SAP locks and Database locks, i will try to find the solution to your code.
    Regards
    Ashish
    Database Locks: The database system automatically sets database locks when it receives change statements (INSERT, UPDATE, MODIFY, DELETE) from a program. Database locks are physical locks on the database entries affected by these statements. You can only set a lock for an existing database entry, since the lock mechanism uses a lock flag in the entry. These flags are automatically deleted in each database commit. This means that database locks can never be set for longer than a single database LUW; in other words, a single dialog step in an R/3 application program.
    Physical locks in the database system are therefore insufficient for the requirements of an R/3 transaction. Locks in the R/3 System must remain set for the duration of a whole SAP LUW, that is, over several dialog steps. They must also be capable of being handled by different work processes and even different application servers. Consequently, each lock must apply on all servers in that R/3 System.
    SAP Locks:
    To complement the SAP LUW concept, in which bundled database changes are made in a single database LUW, the R/3 System also contains a lock mechanism, fully independent of database locks, that allows you to set a lock that spans several dialog steps. These locks are known as SAP locks.
    The SAP lock concept is based on lock objects. Lock objects allow you to set an SAP lock for an entire application object. An application object consists of one or more entries in a database table, or entries from more than one database table that are linked using foreign key relationships.
    Before you can set an SAP lock in an ABAP program, you must first create a lock object in the ABAP Dictionary.

  • Difference between Instance Crash and Database Crash in Standalone and RAC?

    I am new to Oracle Environment. I would appreiciate if i get clarified on the "_+Difference between Instance Crash and Database Crash in Standalone and
    RAC_".+
    Oracle Version: 11.1.0.7.0
    O.S Version: HP-UX B.11.31 U

    Sivaprasad S wrote:
    I am new to Oracle Environment. I would appreiciate if i get clarified on the "_+Difference between Instance Crash and Database Crash in Standalone and
    RAC_".+That depends on your definitions of database crash versus instance crash.
    Literally, database crash means that the database itself is damaged in some way. A disk is no more. Data files are corrupted. Etc. The database itself thus causes the crash - and a database crash will also cause all database instances (RAC or single) for that database to crash too.
    An instance crash will therefore mean that the crash occurs in the instance due to an Oracle bug or similar. In other words a s/w error and not a database error. The database is still "fine", but the instance not. Instance crashes. However, any other instance on that same (RAC) database will still be fine as the database itself is unaffected by that s/w error in the crashed instance.
    If you mean something different, please enlighten us. Not all crashes are equal. {noformat};-){noformat}

  • Difference between Business area and profit center accounting

    Hi Frnds,
    Can any body explain about difference between business area and profit center accounting .

    Hi
    Business area will have many profit centers. For example Vehicle is a business area in a company. Vehicle can be cars and Bikes etc. Here Vehicle is business area and Cars and Bike are profit centers. In broad Vehicle is a profit center. But as it has sub areas those are profit centers. So profit centers cannot be replaced with business area and vice versa. We can replace business area by Profit centre, only condition is that it should be in same controlling area. The business area is more like a business unit of a company. You can have multiple profit centers within a business area.
    Main distinguish factor is that distribution and assessment in possible in profit center but not in business area.
    One more distinction is that Business area need not be attached to any organisation structure. But profit centres can be created only under the controlling area. Business area can be across controlling area.
    Business area concept is used for making stragic decisions by the management whereas the primary purpose of profit centre accounting is responsibility accounting.
    http://help.sap.com/saphelp_erp2005/helpdata/en/ff/277203deea11d3b5b4006094b9b0a5/frameset.htm

  • Exact difference between System status and the user status

    Hi,
    Please tell me the exact difference between System status and the user status .
    how we customize the both in the system
    Thanks & Regards
    Prajith P
    Moderation: Locked. Please, try to find an answer first. See rules of engagement
    Edited by: Joaquin Fornas on Feb 23, 2012 11:14 AM

    Hi,
    As you mentioned there are 2 status can be maintained for documents like Equipment Master, Notification, Maintenance Order & other important business documents.
    In case, client feels that system status is not enough to capture the details of the object, then user status can be used.
    System statuses will be updated automatically based on business transactions which will be done on SAP.
    For example, once the equipment is created, System status would CRTD (Created). If you install the same to some superior equipment or FL, then status would be INST (Installed).
    If you keeping that equipment in Spare, then for that, you have to maintain separate User Status like AVLB (Available in Stock / Spare) so that through IH08, by using User status, you can the report which is available as spare.
    These user status as per the name, should be updated by the user manually.
    Regards,
    Maheswaran.

  • Difference between emergency state and single user mode ?

    Hi,
    I want to know the difference between emergency state which we normally use in suspect mode database and single user mode.
    Navakanth

    Emergency/suspect mode is tells you the state of the database and database is not available for user action but where as single user mode tells the user action preference. Database is active and available for the user action.
    You can refer 
    http://msdn.microsoft.com/en-us/library/bb522682.aspx
    EMERGENCY
    The database is marked READ_ONLY, logging is disabled, and access is limited to members of the sysadmin fixed server role. EMERGENCY is primarily used for troubleshooting purposes. For example, a database marked as suspect due to a corrupted log file can be
    set to the EMERGENCY state. This could enable the system administrator read-only access to the database. Only members of the sysadmin fixed server role can set a database to the EMERGENCY state.
    SINGLE_USER
    Specifies that only one user at a time can access the database. If SINGLE_USER is specified and there are other users connected to the database the ALTER DATABASE statement will be blocked until all users disconnect from the specified database. To override
    this behavior, see the WITH <termination> clause.
    The database remains in SINGLE_USER mode even if the user that set the option logs off. At that point, a different user, but only one, can connect to the database.
    Before you set the database to SINGLE_USER, verify the AUTO_UPDATE_STATISTICS_ASYNC option is set to OFF. When set to ON, the background thread used to update statistics takes a connection against the database, and you will be unable to access the database
    in single-user mode. To view the status of this option, query the is_auto_update_stats_async_on column in the sys.databases catalog view.
    If the option is set to ON, perform the following tasks:
    Set AUTO_UPDATE_STATISTICS_ASYNC to OFF.
    Check for active asynchronous statistics jobs by querying the sys.dm_exec_background_job_queue dynamic management view.
    If there are active jobs, either allow the jobs to complete or manually terminate them by using KILL STATS JOB.
    --Prashanth

  • UNIX / LINUX: difference between the oracle and dba user on the filesystem

    I have always logged into the server with the oracle user to perform impdp/expdp, as well as alter the tnsnames.ora file, and to run tkprof.
    We're possibly going to start up a server in our datacenter where we're only going to be able to log into the server as dba. I'm being asked if that's going to be a problem for me to fulfill my duties.
    Could someone give a description of the difference between the 2 accounts at the filesystem level? Or link me to a document? It's been 6+ years since we made this decision to log in as oracle, and so I am admittedly rusty on the topic.
    --=cf

    It is becoming more common to not allow a direct login to the server as oracle. Instead the DBAs each have their own account (and be members of the dba group). These DBAs have SUDO permission to SUDO SU (switch user) to the oracle account so that there is a log of who was operating as oracle on the server at the time. This could be what you are hearing about. Check with your sysadmins and see if this is what they intend - it should satisfy their security (and audit) requirements.

  • Difference between RFC, SYSTEM and AUDIT users?

    Hi All,
    Can you highlight the main differences between the following users:
    RFC
    SYSTEM
    AUDIT
    how do their functions differenciate them ?
    Thanks in advance,
    Diwakar

    RFC User
    RFC user is basicly used to receive status messages. An RFC user has to be created in all the system clients where messages needs to be recieved. An RFC user can also be used for receiving messages using SMTP plug-in.
    The RFC User is an sap user of type System and that's why no person can logon with this user on SAP System.
    Following is thr procedure to create RFC User, remember the purpose is to recieve messages including status messages as well.
    Creation of RFC User
    Go to  Tools > Administration > User Maintenance > Users.
    Enter a name, for example MAIL_ADMIN.
    Select "New"
    On the Logon data tab page, select the user type System.
    Enter a password.
    On the Profiles tab page, enter the authorization profile S_A.SCON. This profile minimizes the risk of misuse, even if the communication system does not store the password is encoded form.
    Select "Save"
    Both RFC user and a System user are of type System only. Now the difference, depends upon the profile and authorization of the user.
    Audit users are of type dialog, and can be used by a person to logon to system. There might be many roles assigned to this user. My understanding is that an Audit User is not a standard sap type user but just a dialog user and can be created with a conventional method of creating any other dialog users with a specific profile and authorizations.
    Still to confirm, Can you please tell us, how many types of users does it shown in 4.6c at the time of user creation?
    Best Regards,
    Amol Bharti

  • What are the differences between Oracle AS and Database Server?

    Hi
    I have quesstions:
    1- what are the main differnces between Oracle Application Server 10g and Oracle Database Server 10g ?
    2- does the oracle J developer 10g come with Oracle application server or comes standalone?
    3- is there any integration between the three above application , and how it are working together?
    thanks
    Suhaib

    1) At its simplest level a Database Server is a database so for storing data and an application server is for running the applications (which will probably access the data in the database server).
    2) JDeveloper comes stand alone or as part of the Oracle Developer Suite which is a collection of tools for building applications.
    3) Yes they are integrated. More details on otn.oracle.com/products/ias
    Regards
    Grant

  • Difference between capture schema and import/register schema

    As far as versioning control, what are the differences, if any, between 1.) capturing a schema's objects thru design editor and 2.) importing and registering a schema?

    Capturing a schema will create instances of the TABLE type in the Designer model.
    Registration creates a new model with new types in the Repository.
    DAvid

  • Difference between DB Export and Offline Database Backup

    Hi all,
           This is a conceptual Question.
    I want more information on what is the difference between DB Export and Database Backup? Also, it would be helpful if you can provide me with some links to them where I can increase my knowledge regarding DB Export, why it is done and tell me some scenarios.
    Thanks.
    Anil

    Hi Anil,
    I have no link for DB export for you, because you don't ask for a specific database. But if you like, you can read the export part of the System copy guide you can download from http://service.sap.com/instguides.
    But may be a short description is enough:
    DB Export:
    A DB export exports only the structure and data from the database, but no index pages. Therefore you have to build the indexes during the import. This could be very CPU intensive if your tables are big.
    DB Backup:
    A backup is a copy of all used blocks/pages inside a database (in Oracle also unused blocks). This includes structures, data and indexes. When you restore it, only the blocks/pages were moved, no additional operations are necessary.
    If you want to keep a small copy which is less release dependent than a backup, you should use a DB export (if you  use R3load, you are also DB independent). If you want to have a copy of your database which could be restored quickly , you should use a DB backup.
    Regards
    Ralph Ganszky

  • Differences between Roles, Schemas, Users and Logins.

    I need differences between Roles, Schemas, Users and Logins. Can anyone help me. Thanks in advance

    Roles:
    I think of creating roles in the database to group users of like
    function.  Roles are granted certain permissions in the database.  You
    should become familiar with the fixed database roles since these will be
    utilized once you start creating users within the database.  Also, once
    you see the type of permissions that are granted to each role, is makes
    more sense.
    Schema: there can be several schemas in a database,
    which will house different types of objects such as tables, indexes,
    stored procedures, functions,  etc.  Users own schemas.  Looking into
    the AdventureWorks database illustrates this concept, with several
    schemas like HR, Production, etc.
    Login: Think about login as
    gaining access to the SQL Server instance.  If a user account is not
    granted any permissions within the instance, you basically just were
    able to unlock the door and enter the room, by creating a user you then
    grant access to the database objects or principals, and can begin to
    work with them. 
    Users:  Users own schemas, and as such will be
    able to manipulate the objects they own.  Some of the manunipulations
    are very permissive, such as creating tables, indexes, stored
    procedures, functions, etc.  These are developers and administrators.
    Users
    are created and granted permissions for application use, which will
    have select, update, insert, and delete and execute permissions  to a
    finite set of objects in the schema, for which the application will need
    to function properly.
    In a client server database, as an
    example, of the structure.  Roles were defined which provides the
    permissions to the database objects in the database, which only has one
    schema 'dbo'. One SQL server login was created with the same username,
    and dbo is the assigned default schema, and the roles assigned to that
    username. 
    In the application, each specific user is given there own
    "application" login which is mapped to the one defined sql server
    login.
    Ahsan Kabir Please remember to click Mark as Answer and Vote as Helpful on posts that help you. This can be beneficial to other community members reading the thread. http://www.aktechforum.blogspot.com/

  • New User Database schema and table name

    When i create a new user in Oracle Webcenter Spaces 11g, I am not able to get the name of the database schema and table, where it is stored. Any insight on this will be very helpful.

    WebCenter (and WebCenter spaces) uses an 'identity store' instead of database schema for storing user information - in an 'out of the box' installation, users are maintained through an embedded WebLogic LDAP store.
    See the Oracle Fusion Middleware Administrator's Guide for Oracle WebCenter, p. 34-2.
    At the end of section 34.4.1:
    WebCenter Spaces supports self-registration. When new WebCenter users
    self-register, they create their own login and password and a new user account is
    created in the identity store. See also, Section 34.4, "Allowing Self-Registration".
    user9097357 wrote:
    When i create a new user in Oracle Webcenter Spaces 11g, I am not able to get the name of the database schema and table, where it is stored. Any insight on this will be very helpful.

  • Difference between ACS Administrator account and ACS user account?

    Does an ACS administrator by default have full rights to every device it manages?
    I thought ACS administator accounts and user accounts were different.
    I have an acs admin account called admin_1. then i created another user account called admin_1 (for switch/router access)
    when i set the password for admin_1(user accounts), when i tried to login into the switch it wouldn't take. It would only take the password set for the ACS admin account.
    Is this by design?

    My understanding was that this is not the case, Ive just tested my installation again to make double sure and the user accounts and the admin accounts are clearly seperated
    The RADIUS server does not make use of the Admin user database.

Maybe you are looking for