Grant previleges on tablespace to user.

Hai,
I have created one tablespace calles detail. I created one user student and set default tablespace of detail.
But while creating table in student user, it says 'no privileges on tablespace 'detail'.
How to grant that privilege to user student. Reply ASAP.
Thanks & Regards,
Kannan.

I have created one tablespace calles detail. I created one user student and set default tablespace of detail.
But while creating table in student user, it says 'no privileges on tablespace 'detail'.
How to grant that privilege to user student. Reply ASAP.
Grant user student access to use all space in the detail tablespace:
ALTER USER student QUOTA UNLIMITED ON detail;
Prevent user student from using space in the system tablespace:
ALTER USER student QUOTA 0 ON system;

Similar Messages

  • How can we see previleges assigned to all users using database query

    I am using the follwoing query to see previleges assigned to all users , but the suprising thing is that it shows GP_APP_ID as null for a large number of user , even though in discoverer administrator I can see the previleges assigned to those users. I do not understand why it does that. Can someone please help so that I can see the previleges of all users
    select unique EU_USERNAME, decode (GP_APP_ID ,1000, 'Desktop / Plus Privilege (U)',
    1001, 'Create / Edit Query (U)',
    1002, 'Item Drill (U)',
    1003, 'Drill Out (U)',
    1004, 'Grant Workbook (aka Sharing) (U)',
    1005, 'Collect Query Statistics (U)',
    1006 ,'Admin Privilege (A)',
    1007, 'Set Privilege (A)',
    1008, 'Create / Edit Business Area (A)',
    1009, 'Format Business Area (A)',
    1010, 'Create / Edit Summaries (A)',
    1011, 'Not used as far as can be determined',
    1012, 'Schedule (U)',
    1013, 'User is never required to schedule workbooks (U)',
    1014, 'Save workbooks to database (U)',
    1015, 'Managed scheduled workbooks (A)',
    1016, 'to 1017 Not used as far as can be determined',
    1018, 'Change Password',
    1019, 'to 1023 Not used as far as can be determined',
    1024, 'Create Link (U))') from
    EUL5_ACCESS_PRIVS A,
    EUL5_EUL_USERS U
    where A.AP_EU_ID=U.EU_ID
    order by EU_USERNAME
    thanks

    Hi,
    This is probably because the business area security is stored in the same table. So you will probably find that where GP_APP_ID is null then GBA_BA_ID holds the value of the business area. You should change your query to just select where GP_APP_ID IS NOT NULL.
    Rod West

  • Unable to create a tablespace under user scott despite of many privileges

    Hi,
    I use user scott to test a rdf database using oracle 11.2.0.2 contained in oracle developer days in my oracle linux enterprise guest system. However, I am unable to create a tablespace under scott. The error message says insufficient privilege. Actually, I granted all privilege in Roles, System Privileges, Object Privileges to scott in the OEM panel. I also granted resource, create session, create table, unlimited tablespace to scott in sqlplus as well. However, I am still unable to create the tablespace. The command I used for creating tablespace is below:
    create tablespace rdf_tblspace
    datafile '\home\oracle\app\oracle\oradata\rdf_tblspace.dat' size 14m reuse
    autoextend on next 10m maxsize unlimited
    segment space management auto;
    Error at Command Line:1 Column:1
    Error report:
    SQL Error: ORA-01031: insufficient privileges
    01031. 00000 - "insufficient privileges"
    Any suggestions will be much appreciated. Thanks a lot in advance.

    user571093 wrote:
    Hi,
    Thanks for the helpful info. Can you pls show me how to grant REATE TABLESPACE system privilege to scott? The System Priveleges in OEM is not enough for scott? Thanks a lot.You should first go through [url http://docs.oracle.com/cd/B19306_01/server.102/b14200/statements_9013.htm] this  This link contains details of GRANT command.
    create tablespace is a system privilage granted to a user by the DBA in below way:
    grant create tablespace to scott;

  • Grant tables/views to other user

    i have 3 user (a,b,c)
    i want to grant select previlege of all the tables/views of user a,b to c
    please help me out which one is the shortest method to doing this

    sukhijank wrote:
    grant select any table to a,b,c;
    select 'grant select on '|| OWNER || '.' ||view_name || ' to ' || '<USERNAME>;' from dba_views;
    This is considered lazy and bad practice. A better practice would be to create a role, make individual grants on the tables and views owned by a and b to the role and then grant the role to c.
    This is assuming c will be just querying the objects and not referencing the objects in its own objects (ie views packages etc). If this is the case then direct grants from a and b to c are needed. Once again, you should only grant the minimum necessary and resist the temptation to do a quick fix and grant system privs to ordinary users.
    Andre

  • How can I grant Application access to a user via API ) programattically

    how do I grant access to a portal user from API
    I want to grant access to a user from an API, ie I need a
    command to grant "SCOTT" access to "EXAMPLE_APP" APPLICATION as
    an end user?

    Hi,
    I am assuming that you have already updated the EUL in the Administrator Edition, correct? If not, open Discoverer Administrator and login to the database you want to connect to. You must use your EUL user name which I assume has already been created and assigned the correct privileges in the database. You will be asked to update your EUL. Follow the prompts.
    Once logged into the EUL, go to Tools \ Privileges and find the user that you want to give administrator access to.
    Hopefully, this answers your question.
    Regards,
    Nancy

  • Grant debug connect session to user

    I understand that if DBA hasn't granted following option to "user" following way:
    grant debug connect session to user;, then "user" wil lget following error when she tries to debug:
    ORA-0131:Insufficient Priviledges
    Debugging requires Debug connect session system priviledgesIs there any explanation why DBA decides to not grant such privilege? Maybe such privilege slows down something? Maybe it can create security "hole"? Maybe there is another good explanation?
    The "user" in this example was Schema/Account ment for Development personell who developes functionality, but it doesn't matter i think what kind the "user" is.
    so why you think i don't have such privilege, what bad could such privilege when granted give?

    Its just that You have not been Granted that Privilege. Mostly in what ever shop i have worked Such grants are given on request Base.
    Debugging is a Developers Right and no one can denie it.
    But i never use any debugging tool. I only relay on my Instrumented Code.

  • Can't grant privilege on column to user via role?

    Hi:
    From what I read in the docs I should be able to create a role that has UPDATE privs on a column of a table, and then grant that role to a user, who should be able to update the column of the table. I get "insufficient privileges" when I try that, although it works as advertised if I grant directly to the user. Am I mis-reading the docs?
    Session GAFF:
    CREATE TABLE "GAFF"."FOO2"
       (    "F1" NUMBER,
        "F2" NUMBER,
        "F3" VARCHAR2(50),
        "F4" NUMBER,
         CONSTRAINT "FOO2_PK" PRIMARY KEY ("F1")
    create role foo2_u_f2;
    grant update (f2) on foo2 to foo2_u_f2 ;
    grant select on gaff.foo2 to play ;
    grant foo2_u_f2 to play ;session PLAY:
    update gaff.foo2 set f2 = 1 where f1 = 1ORA-01031: insufficient privileges

    Most likely role foo2_u_f2 is not a default role for user play. Initially, when user is created default role is set to ALL. Later it can be changed to NONE or a set of roles. Login as play and issue:
    select * from session_roles
    /I bet you will not see foo2_u_f2. Then issue:
    select granted_role,default_role from user_role_privs
    /That will give you a list of user play default roles. You can either issue:
    set role foo2_u_f2
    /This will enable foo2_u_f2 role in current session. Or you can login as privileged user and issue ALTER USER DEFUALT ROLE ...,foo2_u_f2.
    SY.

  • Get an error when grant execute on dbms_lock to user?

    Hi all,
    i have to grant several privileges/roles to user X, it works fine if only one privilege/role is granted one time, but an error raised when i put them together in one grant command, does anyone have any ideas regarding this? thanks in advance.
    sqlplus sys/*****@*** as sysdba
    SQL> grant execute on dbms_lock to X;
    Grant succeeded.
    SQL> grant resource to X;
    Grant succeeded.
    SQL> grant execute on dbms_lock,resource to X;
    grant execute on dbms_lock,resource to X
    ERROR at line 1:
    ORA-00905: missing keyword
    SQL> grant resource,execute on dbms_lock to X;
    grant resource,execute on dbms_lock to X
    ERROR at line 1:
    ORA-01953: command no longer valid, see ALTER USER

    >
    SQL> grant execute on dbms_lock,resource to X;
    grant execute on dbms_lock,resource to X
    ERROR at line 1:
    ORA-00905: missing keyword
    SQL> grant resource,execute on dbms_lock to X;
    grant resource,execute on dbms_lock to X
    ERROR at line 1:
    ORA-01953: command no longer valid, see ALTER USER
    >
    It will help to read the documentation on grant statement.
    You can't grant privileges on two different objects or roles in one statement. However you can grant two or more privileges on same object in one statement.
    SQL> grant select,update on emp to X;

  • TABLESPACE - single user mode

    Is it possible take a single tablespace in "single-user mode" ? In this way, only a single user ( a dba ) could apply transactions to the table in the tablespace, other user could not. This would be very useful for recovery. In case of a dropped table, I could take the tablespace unavailable to users, restore a table with the "IMP" oracle utility, use the logminer utility to identify all transaction applied to the table between the last exp and the drop of the table, apply transactions and take the tablespace available to users.
    Thanks a lot for answers.

    You can take the tablespace offline but then you can't import the table. In 10g to recover from accidentaly dropped table simple use flashback option no need to do any kind of recovery. Other option would be to imp the table from last export the rename it to something else and then apply all the transactions taken from logminer (a very tedious process) and then rename the table back to original one. If you using archivelog mode then you can also consider TSPITR.
    Daljit Singh

  • Which view I can query to get the granted objects privilege to a user?

    Hi all,
    which view I can query to get the granted objects privilege to a user?
    for example:
    grant execute on accounting.get_name to scott;
    Which view has above object granted information?
    Thanks

    SQL> select * FROM all_tab_privs where grantor = upper('accounting');
    no rows selected

  • Grant RDP access to ONE user on multiple computers !

    I want to Grant RDP access to ONE user on multiple computers using PowerShell.
    List of computer names are stored in an excel sheet.
    Can this be done easily ?
    Thanks, Yeleshwar

    Hi, this script add users to remote desktop users group.
    $InputServers = Import-Csv "c:\servers.csv"
    $InputUsers = Import-Csv "c:\users.csv"
    $Servercount = 1
    $ServerCountTotal = $InputServers.Count
    $InputServers | ForEach-Object {
    $ServerTemp=$_.ComputerName
    "Starting " + $Servercount + " of " + $Servercounttotal + " : " + $ServerTemp
    $InputUsers | ForEach-Object {
    $objUser = [ADSI]("WinNT://" + $_.Username )
    $objGroup = [ADSI]("WinNT://" + $ServerTemp +"/Remote Desktop Users")
    $objGroup.PSBase.Invoke("Add",$objUser.PSBase.Path)
    "Complete " + $Servercount + " of " + $Servercounttotal + " : " + $ServerTemp
    $Servercount++
    Servers.csv has a header of “ComputerName” and then a list of servers you want to affect one per line.
    Users.csv has a header of “UserName” and then a list of user names Domain/User one per line.
    check this blog > http://www.blackops.ca/cms/blog/?p=215

  • Drop and create tablespace for users

    I am using Oracle 8i. I have created some users and, assigned the default & temporary tablespace to them.
    I would like to drop and re-create the temporary tablespace, should I assign the tablespace to users again?
    my script for creation of users:
    CREATE USER USER01 IDENTIFIED BY ABC
    DEFAULT TABLESPACE WEB_DATA
    TEMPORARY TABLESPACE TEMPORARY_DATA
    PROFILE DEFAULT;

    Hi,
    I would like to drop and re-create the temporary tablespace, should I assign the
    tablespace to users again?If temp tbs is not in usage, you can drop and recreate it without reassign. Users keep this one.
    Nicolas.

  • Should Default Tablespace for User DIP be "SYSTEM" or "USERS"?

    Oracle Enterprise Manager is giving me a warning about some non-system users who have a default tablespace of SYSTEM. One of the users is DIP. Is it OK for me to change the default tablespace for DIP to USERS, or should it remain SYSTEM?
    Thank you,
    Bill

    To the best of my knowledge user DIP was created automatically by Oracle software when I upgraded my database from 8i to 10gR2. In my mind that means it is needed for managing some system function in the database. That is why I hesitate to change the default tablespace from SYSTEM to USERS.
    If user DIP is tied to use of Oracle Directory Integration and Provisioning then I am not knowingly using the DIP account. I do not know what Directory Integration and Provisioning is and read about it only when researching this tablespace question. That being said, I expect that Oracle software does a lot of things internally that I am not aware of.
    I was hoping someone familiar with user DIP could tell me that changing the default tablespace to USERS for this Oracle supplied account would do no harm.
    Thank you,
    Bill

  • Reasons to use separate temp tablespace for user tablespace

    Hi,
    I know that guideline says is not use system tablespace for user tables. But need i create for user tablespace separate TEMP teblespace or i can use same TEMP tablespace for all tablespaces?

    Hi,
    >>But need i create for user tablespace separate TEMP tablespace or i can use same TEMP tablespace for all tablespaces?
    You can use one temp tablespace for a database , Temp tablespace usage are for sorting the data.
    for more detail you can go with  :Creating Tablespaces
    HTH

  • Tablespace vs user login

    Hi, I am a java developer trying to understand Oracle. Here is my simple question:
    In oracle each login/user is associated with a tablespace (default) after login. My understanding is that this tablespace serves as the schema name for the db access. So after login, the java code doesn't need to (can't) specify the schema name, only the table name.
    What if my login(connection) need to use multiple tablespaces, how can I switch it without use a new connection? Or can a user be associated with multiple tablespaces?
    Thanks, please give me some hints.

    A schema and a user are very closely related things. Barring some corner cases (like enterprise users), you're probably safe in considering them the same thing. When you created the user "User1", you created a schema "User1".
    If you want User2 to be able to access objects in User1's schema, User1 would need to
    GRANT SELECT ON t1 TO User2User2 could then do
    SELECT * FROM User1.t1You could also create a synonym for User1.t1 so that User2 didn't have to prefix the schema name. Or User2 could do
    ALTER SESSION SET current_schema = User1and then
    SELECT * FROM t1would select from the T1 table in the User1 schema.
    A tablespace is just a logical collection of objects that simplifies a DBA's job of managing physical allocation. It is entirely possible for one user to have different objects in different tablespaces and for one tablespace to have objects owned by multiple users. A DBA can move objects between tablespaces essentially transparently to the application or the application owner.
    Justin

Maybe you are looking for