Database owner and database user with db_owner permission

we deployed a java hibernate application which creates the database tables on deployment. A login is created and mapped for the database as the user. For that login the db_owner role is given. On the deployment we received an error mentioning execute permission
issue.
the same process is done and this time the login is created but not mapped as the user. the login is assigned as the database owner from the database property. this time the deployment worked fine.
what is the difference between setting the login as database owner and setting as a user with db_owner role.

The error i received was "the execute permission was denied on the object 'sp_tables'........".
I solved this issue by giving db_owner permission to master database for the relevant user.
In my local computer i didn't give permission to master database. I have only assign the user as the owner of the database and deployment was success.
But this error comes in another place where I implement the system.
if your application is not only a desktop application without anything critical on it, then I strongly advise to stay away from making anybody db_owner in the
master-database. That's THE system database. It's easy to take over that system for such an account then.
I am a bit surprised you are getting this error in that context. Originally the public role should have execute permission on it. So it seems someone has changed the defaults permissions (for hardening purposes?) Then reverting to original state is much
less harmful than the db_owner role.
Andreas Wolter (Blog |
Twitter)
MCSM: Microsoft Certified Solutions Master Data Platform, MCM, MVP
www.SarpedonQualityLab.com |
www.SQL-Server-Master-Class.com

Similar Messages

  • 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.

  • What is the difference between owb repository owner and repository user?

    what is the difference between owb repository owner and repository user?

    Hi,
    the repository owner has full rights to do every thing in the repository. There is only one repository owner.
    There may be multiple repository user for one of the following two purposes:
    1. When working in a team, each team member can be added as a different repository user and can have different grants assigned. That way you can also see who has deployed what objects or who has run a mapping.
    2. To be able to deploy into a database schema, that db user user has to be added as repository user as well. Make sure the "user is target schema" checkbox is checked.
    Regards,
    Carsten.

  • Workspace owner and repository user

    I am little confused the difference between workspace owner and repository user?
    I think, workspace owner is repository owner. What is the use of repository user? What is the role of repository user in OWB? We are using
    OWB tool and i don't see anywhere we use repository user. I am trying to understand the difference between these two user.
    Any one please help me on this...

    The difference that I know is :
    Repository Owner has permission of repository assistant manage both workspace owner or user,
    and manage design center of a workspace :
    setup a granular security policy (setup such roles, system privileges for each registered user,
    objects (eg. design center->project explorer->choose an object(eg.table)->properties->security[full control,edit,compile,read]
    to give which user you want to give rights))
    while with repository user, we can't do all above.
    Simple Analogy is rep owner is "Administrator" of a workspace.
    Each workspace has a rep owner with few rep user (Workspace1, eg. rep owner is Oracle, rep user are John, Steven, Fina, etc)
    (Workspace2, eg. rep owner is Sigma, rep user are Lina, Nila, Fanny, ect).
    while it comes to design center all things is same except security modul in Global Explorer.
    Regards,
    SigCle

  • How to find if a user with fullaccess permission used a mailbox ?

    Hi,
    We used Exchange 2010 in my organisation
    We defined a lot of generic mailboxes and some of them have a lot of users with fullaccess permission
    We think that some of them don't really used this mailbox
    Is it possible to find, with powershell, information of usage of a mailbox by users which have this fullaccess permission ?
    Thanks

    Hi,
    Get-MailboxPermission <Identity>
    or
    Get-Mailbox | Get-MailboxPermission | ?{($_.AccessRight
    s -eq "FullAccess") -and ($_.User -like 'DOMAIN\user') -and ($_.IsInherited -eq $false)} | ft Id*

  • What is the exact difference between Database Cloning and Database Refresh?

    Hi,
    Can anybody tel me the exact difference between Database Cloning and Database Refresh?
    I Have some conflicts in these topics.
    Thanks
    Rajesh

    Refresh is what it says, "refresh" . You have a main site which would always have the data being inserted into it. There would be another site which would remain some where else . This site needs to be refreshed with the primary site. So you need to do export from the primary, push it to the secondary site and done!
    HTH
    Aman....

  • What is Database Commit and Database Rollback.

    What is Database Commit and Database Rollback.

    Hi Sir ,
    Please have a look below .Hope it is suitable and simpler solution for your question.
    Please do reward if useful.
    Thankx.
    In database level this will be used..
    Commit is nothing but SAVE the current record..
    If u rol back before commit means whatever u proceeded for the SAVING will be roll back and the data will not be stored..
    This will be used,When some times u r filling a register form..after filling 20 fields,In the 21st field u will not to registrer means it will be rollbacked using the Rollbeck command.
    In detail--->
    ROLLBACK->
    In a ROLLBACK, all the changes made by a transaction or a subtransaction on the database instance are reversed.
    · Changes closed with a COMMIT can no longer be reversed with a ROLLBACK.
    · As a result of a ROLLBACK, a new transaction is implicitly opened.
    In normal database operation, the database system performs the required ROLLBACK actions independently. However, ROLLBACK can also be explicitly requested using appropriate SQL statements.
    In a restart, the system checks which transactions were canceled or closed with a ROLLBACK. The actions are these transactions are undone.
    COMMIT->
    In a COMMIT, all the changes made by a transaction or a subtransaction on the database instance are recorded.
    · Changes closed with a COMMIT can no longer be reversed with a ROLLBACK.
    · As a result of a COMMIT, a new transaction is implicitly opened.
    In normal database operation, the database system performs the required COMMIT actions independently. However, COMMIT can also be explicitly requested using appropriate SQL statements.
    In a restart, the system checks which transactions were closed with a COMMIT. These actions are redone. Transactions not yet closed with a COMMIT are undone.
    From the point of view of database programming, a database LUW is an inseparable sequence of database operations that ends with a database commit. The database LUW is either fully executed by the database system or not at all. Once a database LUW has been successfully executed, the database will be in a consistent state. If an error occurs within a database LUW, all of the database changes since the beginning of the database LUW are reversed. This leaves the database in the state it was in before the transaction started.
    the statements
    COMMIT WORK.
    and
    ROLLBACK WORK.
    for confirming or undoing database updates. COMMIT WORK always concludes a database LUW and starts a new one. ROLLBACK WORK always undoes all changes back to the start of the database LUW.

  • Error in Oracle Database Backup and Recovery User's Guide 12c Release 1 (12.1) E17630-13

    on page 88 of the "Backup and Recovery User's Guide 12c Release 1 (12.1) E17630-13", the example 5-1 SHOW ALL Command is the same of the "Backup and Recovery User's Guide 11g Release 2 (11.2) E10642-06" on page 82 and that output is related to a Oracle Database 11g version (the 10g doesn't print the first line "RMAN configuration parameters for database with db_unique_name PROD1 are:").

    My test cases here:
    Database administrator workshop: Differences in default RMAN configuration settings between 12c and 11g
    {code}[oracle@vsi08devpom ~]$ export ORACLE_SID=CDB001
    [oracle@vsi08devpom admin]$ sqlplus system/oracle@CDB001
    SQL*Plus: Release 12.1.0.1.0 Production on Thu Sep 26 09:10:50 2013
    Copyright (c) 1982, 2013, Oracle.  All rights reserved.
    Last Successful login time: Tue Jul 16 2013 13:43:48 +02:00
    Connected to:
    Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 - 64bit Production
    With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options
    SQL> show con_name
    CON_NAME
    CDB$ROOT
    [oracle@vsi08devpom ~]$ rman target /
    Recovery Manager: Release 12.1.0.1.0 - Production on Thu Sep 26 09:12:42 2013
    Copyright (c) 1982, 2013, Oracle and/or its affiliates.  All rights reserved.
    connected to target database: CDB001 (DBID=4134963396)
    RMAN> show all;
    using target database control file instead of recovery catalog
    RMAN configuration parameters for database with db_unique_name CDB001 are:
    CONFIGURE RETENTION POLICY TO REDUNDANCY 1; # default
    CONFIGURE BACKUP OPTIMIZATION OFF; # default
    CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
    CONFIGURE CONTROLFILE AUTOBACKUP ON; # default
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default
    CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO BACKUPSET; # default
    CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
    CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
    CONFIGURE MAXSETSIZE TO UNLIMITED; # default
    CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
    CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
    CONFIGURE COMPRESSION ALGORITHM 'BASIC' AS OF RELEASE 'DEFAULT' OPTIMIZE FOR LOAD TRUE ; # default
    CONFIGURE RMAN OUTPUT TO KEEP FOR 7 DAYS; # default
    CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
    CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/opt/app/oracle/product/12.1.0/db_1/dbs/snapcf_CDB001.f'; # default{code}
    {code}
    [oracle@localhost orcl]$ rman target /
    Recovery Manager: Release 11.2.0.2.0 - Production on Wed Sep 25 08:12:17 2013
    Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.
    connected to target database: ORCL (DBID=1229390655)
    RMAN> show all;
    using target database control file instead of recovery catalog
    RMAN configuration parameters for database with db_unique_name ORCL are:
    CONFIGURE RETENTION POLICY TO REDUNDANCY 1; # default
    CONFIGURE BACKUP OPTIMIZATION OFF; # default
    CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
    CONFIGURE CONTROLFILE AUTOBACKUP OFF; # default
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE SBT_TAPE TO '%F'; # default
    CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO BACKUPSET; # default
    CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
    CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE SBT_TAPE TO 1; # default
    CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
    CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE SBT_TAPE TO 1; # default
    CONFIGURE MAXSETSIZE TO UNLIMITED; # default
    CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
    CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
    CONFIGURE COMPRESSION ALGORITHM 'BASIC' AS OF RELEASE 'DEFAULT' OPTIMIZE FOR LOAD TRUE ; # default
    CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
    CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/home/oracle/app/oracle/product/11.2.0/dbhome_2/dbs/snapcf_orcl.f'; # default
    {code}

  • Powershell Script to Remove and Add the user with same permission

    Hi,
    I need to remove all users within all site collection of a web application and add them back with same permission level. We have a siteminder based custom trusted identity token issuer configured in our farm. The name of the issuer will be changed
    due to some architectural decissions , hence all users which are there before will be unidentified, hence need to be removed and added again.
    Currently each user looks like :                       c:0ǹ.t|Identity Token Issuer1|user1
    Post the change the user will look like:          c:0ǹ.t|Identity Token Issuer New|user1
    I am looking for a powershell script which can handle this operation.
    Thanks, Bivsworld

    Bivsworld,
    Below link should give you a start.
    http://www.sptechlearn.com/2014/10/delete-users-from-user-information-list.html

  • Two computers and two users with the same name. Can't copy files anymore...

    Hi all, after a user migration to my new iMac I had to make a change of the shortname. I knew it was not a good idea but had no choice otherwise I had to wait other 3 hours to migrate data again...
    Anyway, I managed to change my shortname with success, but one strange thing happened afterwards... I have two macs networked, both have an admin user with the same shortname/real name, 'gillo' (I followed the procedure in one of these two, the Intel iMac. The other, a Powerbook, was not modified).
    While previously I had no problems in copying files from the user 'gillo' on the Powerbook TO the user 'gillo' on the iMac, after the shortname change I'm not anymore able to do it. The error I get is:
    "The operation cannot be completed because you do not have sufficient privileges for some of the items"
    Doesn't matter where I put the files, Desktop, Documents, even the Drop Box, I always get the same error.
    I went through some checks and this is the 'log':
    - The files/folders in the iMac 'gillo' directory are not locked.
    - The files can be copied without troubles to the dirs of another admin user
    - Permissions are the same as the other admin user and owner/group are the correct ones.
    - Both Macs have 10.4.6
    - The 'gillo' user on the iMac can copy files FROM the user 'gillo' on the Powerbook.
    - I repaired permissions and the hard disk booting from the install DVD.
    - I tried to change permissions of the directories (such as Desktop) on the iMac 'gillo' user allowing everybody to read/write. Also a no go.
    Anybody went through this already? Or maybe something similar not directly related to the short name change?

    Actually, everyone missed one point, when a device is priced, the cost of icloud storage space for that device is also included in it that is why they are able to give you 5gb each for each user ID, in nutshell there is nothing free coming with apple device purchase, it is paid for.  What they are trying by giving only 5gb per user ID irrespective of the number of devices used is pure broadlight looting, they take money from you when you buy each device and give you nothing, This is a case of goods and services bought but not fully deliverd ie apple can be suied for discreminatory treatment towards it's users. I wonder why no one tried this yet in America where everyone sue everyone for petty things..... there is no one to take up this issue? . if tim got any love for the guys who shell out money for the devices his company makes, he should be implimenting this as priority before someone wake up from sleep and sue him.

  • How to List view web part to display document library for only users with access permission

    Hi
    I am trying to accomplish this requirement but I don't know if that is possible or how to get there.  Any suggestion or advice are helpful.
    On a site collection, I have several document libraries,  with each library have unique permission to a few user or SharePoint group.
    I want to create a web part page and make that the site home page.  On this web part page, I want to create a Content Search Web Part to list the content of the document library that the logged on users have permission to see. 
    Is this possible with CSWP or is there anything easier or if it is not possible at all,  please advise.
    Thanks
    Swanl

    Hi ,
    Based on your description, my understanding is that you want to create a Content Search Web Part to list the documents that the logged on users have access permission.
    It is feasible with CSWP, you can follow the below step:
    Edit Content Search Web Part->Change query-> Select a query: Items matching a content type (System); Restrict by app: Current site collection; Restrict by content type: Document.
    Best Regards,
    Lisa Chen
    Forum Support
    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
    Subscriber Support, contact [email protected]

  • Problem in Execute query on non-database block and database block together

    Hi All,
    In my form,i have
    1. First block is Non-database block with one non-database item.
    2. Second and third blocks are database blocks.
    Now the problem is that i want to perform execute-query for all the blocks.
    If the cursor is on the non-database item of 1st block and i clicks on the "Enter-query" then i am getting message " This function can not be performed here".
    If i click on the item of the database block and then clicks on the "Enter-query" and then "execute-query" it's working fine.
    But i don't want to do in this way.
    My cursor will be on the First block only and then it should perform execute-query.
    I am using this non-database item to copy value of this item to the item of the database block item.
    I think i make you understand about my problem.
    I am using forms 10g on Window xp.
    Please help me.

    Hi!
    Simply create a enter-query trigger on the non-database-block:
    begin
    go_block ( 'database_block' );
    enter_query;
    end;If your search criteria is in the non-database-item in the first block,
    you actually do not need the enter_query build-in.
    Just create a execute-query trigger on the first block like:
    begin
    go_block ( 'database_block' );
    execute_query;
    go_item ( :System.trigger_item );
    end;And in a pre-query trigger on the database-block copy the
    value of your seach item into the item you want to search for.
    Regards

  • Powershell to find users with SendAs permission on Public folders

    I have been having great difficulty getting this to work and I am baffled as to what it is I am missing!
    We have a lot of public folders and some users have SendAs permissions - we want to find them.
    I have found various suggestions on line like these two lines -
    Get-PublicFolder -Recurse -ResultSize 10 | Get-PublicFolderClientPermission | Select Identity, User, AccessRights
    this works and lists the folders and all user permissions but my attempts to filter it fail
    Get-PublicFolder -Recurse -ResultSize 10 | Get-PublicFolderClientPermission | Select Identity, User, AccessRights | Export-CSV "PublicFolderPermissions.csv" -NoTypeInformation
    this I is claimed to work (and I would expect it to) but instead fills my CSV with folder and user information but the AccessRights value (clearly displayed in the first example) is replaced by this
    "Microsoft.Exchange.Data.MultiValuedProperty`1[Microsoft.Exchange.Management.MapiTasks.PublicFolderAccessRight]"
    So I tried this
    get-publicFolder -recurse -ResultSize 10 | Get-PublicFolderClientPermission | foreach-object  {write-host $_.Identity, $_.User, $_.AccessRights}
    which works but any attempt to redirect to a file, export to csv or add-content to a file either outputs nothing or outputs everything but gives the accessrights as "Microsoft.Exchange.Data.MultiValuedProperty`1[Microsoft.Exchange.Management.MapiTasks.PublicFolderAccessRight]"
    does anyone have any idea how I get the information I want into a CSV (where I can then filter it) or filter the results by SendAs and save to CSV?
    Obviously the -ResultSize 10 if for testing and will be replaced with Unlimited.
    I assume  my filters on SendAs always failed because rather than passing along $_.AccessRights as the string I see on screen I get the string I see in the CSV so nothing matches SendAs.
    I am clearly missing something obvious so any help would be appreciated.

    That has got me close to it I think but identity returns something like "******.net/Microsoft Exchange System Objects/Info" where "Info" is a public folder under a folder called "Postroom"
    This does at least restricts the results to users having SendAs permission so that is a lot of progress
    Get-publicfolder does translate the returned identity to a path so that should help
    Unfortunately piping to export-csv does not return the desired results
    redirect to file does save the information though so that should be helpful
    Many thanks
    Yes, took all night but I now have enough information to work on

  • Javascript: Query all users with read permission to specific list

    Is it possible to use javascript to retrieve all users with read permissions to specific list? This (http://www.c-sharpcorner.com/UploadFile/anavijai/how-to-get-all-the-users-from-site-group-in-sharepoint-2013/) shows how to get users from group but what
    about list. All users in list may not exist in spgoups.

    Hi,
    If with Server Object Model which is executed in server side, in the
    SPList object, there is a
    RoleAssignments property can help to get what you want without looping through all the users in site:
    public static void getPermissionsOfList()
    using (SPSite site = new SPSite("http://sp"))
    using (SPWeb web = site.RootWeb)
    SPList list = web.GetList("/Lists/List1");
    SPRoleAssignmentCollection roles = list.RoleAssignments;
    foreach (SPRoleAssignment role in roles)
    Console.WriteLine("~");
    Console.WriteLine("Name: " + role.Member.Name);
    SPRoleDefinitionBindingCollection bindings = role.RoleDefinitionBindings;
    XmlDocument doc = new XmlDocument();
    doc.LoadXml(bindings.Xml);
    //Console.WriteLine(doc.InnerXml);
    XmlNodeList itemList = doc.DocumentElement.SelectNodes("Role");
    foreach (XmlNode currNode in itemList)
    string s = currNode.Attributes["Name"].Value.ToString();
    Console.WriteLine("Permission Level: " + s);
    However, when comes to JavaScript Client Object Model, as there is no such property provided, I suggest you take the solution provided in my previous post for a try.
    Thanks 
    Patrick Liang
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Database Prunning and database cloning?

    Hi,
    I would like to get help from someone about the database cloning and pruning can i get it?
    thx
    pradeep

    Hi, plase review the next thread into this forum
    Re: cloning using rman backups?
    cloning
    Good luck.
    Regards.

Maybe you are looking for

  • Mandatory fields With reference to Material types

    Dear Gurus, I need to make few fields as mandatory with reference to material types while creation of the material master data. For example: For Semi finished and Finished Schedule margin key is required(mandatory) For Raw Materials Schedule margin k

  • Member formula IF statement syntax

    Hi guys Can someone assist me with the syntax of the IF statement on a member formula. On the measure "Total Cost", i would like to apply a formula which calls value loaded to a series of other measures (m1, m2, m3, etc) such that if the Number of ba

  • How to read XL file from FTP server

    Hi all, I have a requirement like to read file from FTP server using path ftp: 10.212......\DTR\DTR_ Accounted_Out and again save  other file in same location , to doing this RFC connection is required? give a  procedure or program to do this require

  • Can't install Lion (Windows XP and Parallells 6 being used)

    Hi, This is my first post here, so please forgive me if I'm not too used to the forum habits. I've been checking the discussions before, but haven't been able to find anything that matched my case... Let me explain it to you, so that hopefully somebo

  • Key frames effect controls and Fast color correction

    I just learned about keyframes and gradual transistion of effects and i like that a lot. Putting it in practice using the Fast color correction feature ; I seemed to miss the key navigation bar (I hoped to find it on the right side of the Fast Color