Resource rights on multiple tablespaces

Hi,
I am trying to do a full import of a database. Prior to that I am creating all the user accounts. One user has resource rights on multiple tablespaces. How do I assign multiple tablespaces to a user? I have already assigned a temp and default tablespace.
Product info:
Oracle Database 10g Enterprise Edition Release 10.1.0.5.0 - Prod
PL/SQL Release 10.1.0.5.0 - Production
Thanks.

Anurag,
The command provided by Krystian is what I was looking for.
As to why I need to assign multiple tablespaces to a single user, its the way the data is setup.
I am trying to create a test database from production database sized at 150GB having about 40-50 tablespaces.
There are several users that are assigned quotas on multiple tablespaces. I found this by querying the DBA_TS_QUOTAS view.
I split the test DB creation into two parts. I created a template of the production database using DBCA, used the template to create a DB on the test machine. I am now in the process of creating users. Following which I will import the data using IMP utility.
Thanks.

Similar Messages

  • One db and user for multiple tablespaces or schemas per server?

    Hello again.
    I installed Oracle 11g on server_1 and created one database db_1.
    Using Enterprise Manager, I did the following:
    Created a tablespace myname_1.
    Created a user myname_1.
    Logged in as myname_1 and created a table into the default tablespace myname_1.
    When creating this table, the schema field defaulted to myname_1.
    Created another tablespace myname_2.
    My confusion about the relationship between tablespaces, users, and schemas starts here:
    When I try to create a new table for tablespace myname_2, I get an error:
    "user myname_2 does not exist"
    I am seeking some clarification on these levels of organization in Oracle.
    My goal is to setup my server with one database each and one user each per database.
    Then, I think I want to create multiple tablespaces and organize objects per tablespace.
    Or should it be per schema?
    Eventually each tablespace will be moved to a separate server.
    Any comments and suggestions are greatly appreciated.
    Thank you for helping.

    Hello,
    This error means user MYNAME_2 doesn't exists and you have to create one.
    Example 1:
    CREATE USER MYNAME_2
      IDENTIFIED BY "my_password"
      DEFAULT TABLESPACE MYNAME_1
      TEMPORARY TABLESPACE TEMP
      PROFILE DEFAULT
      ACCOUNT UNLOCK;
      -- 4 Roles for KLONDIKE
       GRANT RESOURCE TO MYNAME_2; ---> This privs give unlimited quota on all the tablespaces
      GRANT CONNECT TO MYNAME_2;
      ALTER USER MYNAME_2 DEFAULT ROLE NONE;
    Then create your table (you were missing "AS" )
    create table myname_2.mytable_1 as
    select * from source_table@dblink_2;Example 2: If you want to create table mytable_1 in tablespace myname_2 then you have to create tablespace myname_2 first. To create table in different tablespace than user default tablespace
    create table mytable_1 tablespace myname_2 as select * from source_table@dblink;Regards
    OrionNet

  • Command to add multiple datafiles in multiple tablespace in one time.

    Send me command to
    command to add multiple datafiles in multiple tablespace in one time.

    Just list the files separated by a comma.
    SQL> alter tablespace example
    2 add datafile 'e:\oradata\scratch\example02.dbf' size 100m,
    3 'e:\oradata\scratch\example02.dbf' size 100m;
    Tablespace altered.
    SQL>
    You will have to use more then one command to add datafiles to multiple tablespaces.

  • Enable Usage Rights to Multiple Documents at the same time

    I was wondering if there is a way to add Enable Usage Rights to Multiple Documents at the Same Time?

    Not with Acrobat. Adobe's LiveCycle Reader Extensions application is
    used for high volumes.
    Aandi Inston

  • Right-click multiple JTable rows at once?

    Hi everyone,
    Haven't posted for a while but I've been trawling through Google and these forums looking for anyone who has implemented a JTable that allows the user to right-click multiple rows after selecting the multiple rows with a left-click. Currently the JTable allows multiple rows to be selected (MULTIPLE_SELECTION policy enabled) yet when you right-click on any of the highlighted rows it only right-clicks on the one out of the group you happened to click on and deselects all the other previously selected rows. Does anyone know of a way of enabling the right-click of multiple items (new listener or just a simple parameter change?)
    Any help would be much appreciated.

    I just have a mouse listener which, on a right-click, selects the row if it's not currently selected and does nothing if the row is already selected; then pops up the menu.

  • Left pane and right pane(Multiple Panes/Multiple Views) in single FACET

    Hi All,
      Please suggest how can we add left pane and right pane(Multiple Panes/Multiple Views) in single FACET , Do we need to create mutiple custom BO's or single custom BO is enough.    Is it feasible requirement to place mutilple panes/views in a single FACET.   Please suggest. 
    Thanks in advance.
    Tim

    Hi,
       Use Back Satement for that.
    ex.
    DATA:  TOWN(10)      VALUE 'New York',
           CUSTOMER1(10) VALUE 'Charly',
           CUSTOMER2(10) VALUE 'Sam',
           SALES1 TYPE I VALUE 1100,
           SALES2 TYPE I VALUE 2200.
    RESERVE 2 LINES.
    WRITE:  TOWN, CUSTOMER1,
          /       CUSTOMER2 UNDER CUSTOMER1.
    BACK.
    WRITE: 50 SALES1,
           /  SALES2 UNDER SALES1.
    Reagrds,
    prashant

  • Having one single tablespace versus multiple tablespace?

    My database version is
    Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
    PL/SQL Release 11.1.0.7.0 - Production
    CORE 11.1.0.7.0 Production
    TNS for Linux: Version 11.1.0.7.0 - Production
    NLSRTL Version 11.1.0.7.0 - Production
    My os version is
    Linux damdat01 2.6.18-128.7.1.el5 #1 SMP Wed Aug 19 04:00:49 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux
    My database is OLP system.
    My question is what are the advantages and disadvantages having one single tablespace versus multiple tablespace?
    Easy to maintain when you have single tablespace. but hard to track the IO issues.
    Any other input from any one? Please let me know.

    Billy  Verreynne  wrote:
    EdStevens wrote:
    Does the term "keeping all your eggs in one basket" mean anything ....Well, in the majority of cases, even when using multiple tablespaces they will be on the same storage array or same file system. So the "+all eggs in one basket+" goes a lot a deeper down the storage layer than just the top part where you deal with logical tablespace storage containers.
    Absolutely. Except for the bazillion microscopic solid-state switches and a layer of rust on a spinning platter, everything else is just layers of abstraction. One's thinking and frame of reference depends on what layer of abstraction one is dealing with.
    The major problem with multiple tablespace for a single application And here is where there was some 'fuzz' in the OPs question. I don't recall him specifying one TS per application. Maybe he assumed that, but I read it as one (user) TS per database.
    a) deciding the space allocation of each tablespace
    b) managing what is created in which tablespace
    This comes down do an issue of micro-managing space versus simply chucking everything into a single container and let god ASM/Oracle/LUN/driver/whatever sort them out.
    Issues like transportable tablespaces... separating your logical data into different containers... and the like? That is not really sufficient justification to me for having to micro-manage space for a 101 tablespaces. This simply creates a huge workload on the space management part of the database - that is complex and difficult to deal with. Free space from an underutilised (incorrectly sized) tabelspace cannot simply be moved and reallocated to a tablespace stressed for more space. Everything but...
    Which is why I prefer having fewer tablespaces as this means not having to micro-manage space and continually having to wave a threatening lead pipe around to make sure that applications and developers play rigidly within the large set of strict rules of how these many tablespaces are to be used.Agreed. One can go way overboard, and a lot of this discussion hinges on the OP's intent, as I mentioned above -- one TS per ... what? My default position is one TS per application schema. Normal human users all default to one USERS ts, but don't have any quota because they don't have any reason to create objects.

  • ERP application and multiple tablespaces

    Hi All,
    I am trying to build a ERP style application in my company...modules are Accounting, Purchase, Sales, Export, Payroll & HR.
    So far I have finished Accounting..What I did is.
    1. Created one table space called ERPShared and created tables in it which are shared among all the applications.
    script is as follows.
    CREATE TABLESPACE "ERPSHARED_DATA"
    LOGGING
    DATAFILE 'D:\XP\oracle\product\HGDB\oradata\ERPShared\SHARED_DATA01.DBF' SIZE 100M
    AUTOEXTEND ON
    EXTENT MANAGEMENT LOCAL UNIFORM SIZE 3M
    SEGMENT SPACE MANAGEMENT  AUTO ;
    CREATE USER "ERPADMIN"  PROFILE "DEFAULT" IDENTIFIED BY "erpadmin"
    DEFAULT TABLESPACE "ERPSHARED_DATA"
    TEMPORARY TABLESPACE "TEMP" 
        QUOTA UNLIMITED ON "ERPSHARED_DATA"
        QUOTA UNLIMITED ON "ERPSHARED_DATA_INDX"
        QUOTA 0         ON "SYSTEM"
        ACCOUNT UNLOCK;
    GRANT CREATE SESSION TO "ERPADMIN";
    GRANT CREATE TYPE TO "ERPADMIN";
    GRANT CONNECT, RESOURCE TO "ERPADMIN";
    GRANT CREATE ANY TRIGGER TO ERPADMIN;
    GRANT ALTER ANY TRIGGER TO ERPADMIN;
    GRANT DROP ANY TRIGGER TO ERPADMIN;
    GRANT CREATE ANY PROCEDURE TO ERPADMIN;
    GRANT ALTER ANY PROCEDURE TO ERPADMIN;
    GRANT DROP ANY PROCEDURE TO ERPADMIN;
    GRANT CREATE VIEW TO ERPADMIN;First of all plz tell me is this the right way of creating tablespace?
    Second I want guidance from you guys that I have another user "Purchase" and other users too and HOW to assign this ERPShared tablespace to other users or shoud I keep all the tables in one ERPShared tablespace with one user? what is the correct method performance wise and concept wise.
    Thanks

    You should create seperate Users for different modules of the applications.
    This will keep the system neat and clean.
    Modularization is the key, and that is why you are creating seperate modules rather than creating 1 big application :)
    HOW to assign this ERPShared tablespace to other users or shoud I keep all >>the tables in one ERPShared tablespace with one userRefer to the script for creating user (in your post)
    CREATE USER "ERPADMIN" PROFILE "DEFAULT" IDENTIFIED BY "erpadmin"
    DEFAULT TABLESPACE "ERPSHARED_DATA"DEFAULT TABLESPACE clause will assign this user objects onto the given tablespace name ("ERPSHARED_DATA" in your case). So to assign the same tablespace to other users, you must mention this tablespace while creating other USERS.
    Generally, it is advisable to keep seperate tablespaces for different Users.
    Example:
    TABLESPACE USER
    ERPSHARED_DATA ERPADMIN
    ERP_PURCHASE_DATA PURCHASE
    ERP_SALES_DATA SALES
    In many cases, more than 1 tablespace for 1 user. For instance, if all the Large tables will be created in 1 common tablespace which will have big datafile.
    You can find more:
    http://72.14.235.104/search?q=cache:Z3DayME5gSEJ:proligence.com/noug_dw.doc+advantages+of+creating+separate+tablespaces&hl=en&ct=clnk&cd=2&gl=in
    Search for keyword "Tablespaces"
    Cheers,
    Aalap Sharma :)

  • Resource assignment to multiple activities

    Sir,
    I am trying to assigning single resource "resource name : XYZ" to multiple activities using the option right click, .
    After assigning using this option i had a problem with the resource.
    Problem is for some activities the resource "XYZ" is getting assigned multiple times.
    Any solution to this.
    Thanks,
    Imad

    I think the problem is that the resource was already assigned to some of the activities. Which, incidentally, is a nice feature of P6 that you can do that.

  • How to deal with resource bundle in multiple applications system

    Hi all,
    I'm building new system depend on the method of
    one common model with multiple applications for the view objects
    my JDeveloper version 11.1.2.3
    my Question
    How can i merge the resource bundle for these applications
    as in the common model exists file for resouce bundle
    and each other applications contains resource bundle files how can i merge all these file in one Resource bundle file ?
    Edited by: 985756 on Apr 2, 2013 12:39 AM

    Hi,
    Please check anerjusb blog for your answer
    Hoping this will help you.
    http://andrejusb.blogspot.in/2009/12/reusing-resource-bundles-from-different.html
    Thanks & Regards,
    Vikas

  • Left table data Right table multiple returns

    Hello all and thank you for taking the time to help.
    I have a left table and right table I am querying from 2 remote hosts. The information in the left table is unique and has everything I need except for 2 fields; the information in the right table can have multiple rows for the same identifier. I am trying to get the latest rows information on the right. This is a snapshot of the tables:
    Employee Table
      Emp_num       Emp_Name   Emp_Store     Emp_Category     Emp_Location
      W561789        Chris           R79                Sales     98-778-77
      W571779        Charles           R81                Sales     87-988-98
      W561874        Sam           R79                Management     76-977-97
    W561875        Tod           R79                Sales     98-778-77
    Customers Table
      Emp_num    Wait_Time  Shipment_Status      Shipment_Date
      W561789     1
      W561789                          Shipped               2/28/2011
      W561789                          On_Order             2/27/2011
      W561875                          On_Order             2/27/2011What I am trying to pull is specific information from the Employee table, and only the most recent matching record from the Customer table. My query looks something like this (it doesn't work, or it takes a really long time to run)
    SELECT
        D.EMP_NUM, D.EMP_NAME,D.EMP_STORE, D.EMP_CATEGORY, D.EMP_LOCATION, M.SHIPMENT_STATUS, M.WAIT_TIME
    FROM
        DB1.TABLE1@HOST_A_LINK  D,
           (SELECT EMP_NU, SHIPMENT_STATUS, WAIT_TIME,
                             ROW_NUMBER() OVER(PARTITION BY EMP_NUM ORDER BY SHIPMENT_DATE) rownumber
                 FROM DB1.TABLE10@HOST_B_LINK) M
    WHERE D.EMP_NUM=M.EMP_NUM
    AND rownumber=1
    AND D.EMP_STORE='R79'
    AND D.EMP_CATEGORY IN ( 'Sales',
         'Management',
         'Supervisor')
    AND D.EMP_LOCATION IN ( '98-778-77', '87-988-98')thanks

    Just to close the loop on this question, I figured it out. I had to move the ROW_NUMBER() alias outside the scope of the WHERE clause. The query looks like this:
    SELECT
             D.EMP_NUM,
             D.EMP_NAME,
             D.EMP_STORE,
             D.EMP_CATEGORY,
             D.EMP_LOCATION,
             M.SHIPMENT_STATUS,
             M.WAIT_TIME
    FROM
        DB1.TABLE1@HOST_A_LINK  D,
           (SELECT
            FROM
                    (SELECT
                                EMP_NU,
                                SHIPMENT_STATUS,
                                WAIT_TIME,
                                ROW_NUMBER() OVER(PARTITION BY EMP_NUM ORDER BY SHIPMENT_DATE) AS rownumber
                     FROM
                               DB1.TABLE10@HOST_B_LINK
            WHERE rownumber=1) M
    WHERE
          D.EMP_NUM(+)=M.EMP_NUM
          AND rownumber=1
          AND D.EMP_STORE='R79'
          AND D.EMP_CATEGORY IN ( 'Sales',
                                       'Management',
                                       'Supervisor')
          AND D.EMP_LOCATION IN ( '98-778-77', '87-988-98')

  • OSB: Resource sharing among multiple configuration project

    Hi,
    Is there any way to share the resources among multiple configuration project in OSB 11g? Please provide any solution for this.
    Regards,
    Rakesh Ranjan

    Sharing resource across projects in OSB11g
    Regards,
    Anuj

  • Multiple tablespace maxsize value question

    Hi,
    I am seeing multiple value on same tablespace after this query.
    select tablespace_name, MAXBYTES from dba_data_files;
    TABLESPACE_NAME MAXBYTES
    tbs1                    8589934592
    tbs1                    2.2549E+10
    tbs1                1.2885E+10
    tbs1                1.2885E+10
    Which one is the value specify where our tablespace can grow to?
    Thanks

    one is the value specify where our tablespace can grow to?Technically the size limit is defined per datafile. There is no definition of size limit at the tablespace level. A Tablespace is a logical grouping of datafiles. Size is a physical limit so it is applied at the physical datafiles.
    Therefore, you need to sum across DBA_DATA_FILES entries for the limit for a Tablespace.
    Something like
    select tablespace_name, sum(bytes)/1048576 Total_Size_MB, sum(maxbytes)/1048576 Total_MaxSize_MB
    from dba_data_files
    group by tablespace_name
    order by tablespace_name
    /This is assuming that AUTOEXTEND is set to ON for each datafile and that MAXBYTES is equal to or greater than BYTES for each datafile.
    Hemant K Chitale
    Edited by: Hemant K Chitale on Oct 31, 2011 11:58 AM

  • Performance for multiple tablespaces

    Hi,
    I have 8 oracle instances with an only user for every instance.
    My customer asked me to create an only instance with 8 tablespaces and 8 different users.
    These instances could also further increase.
    I think that avoiding creating all these tablespaces on an only instance, because I think that it would be possible to have a reduction of the performances.
    According to you what problem would it be possible to verify afterwards doing an operation of the kind?
    What are the advantages and disadvantages of putting multiple schemas on one database instead of on seperate databases? (SGA, I/O, MEMORY..........)
    Thanks
    Raf

    Look at it this way, with your avail memory split between 8 instances, each of these sgas is of no use to the other 7 instances when that user is idle. If you used all the available memory for one instance, then all the memory will be available when required.
    Provided you create the tablespaces for a single instance the way the individual instances are layed out then i/o will not change (an i/o wait is an i/o wait no matter who generates it). In fact, you will have more storage space available as you will have only one each of system, rollback and temp tablespaces instead of 8.
    I hope this helps.

  • One user for multiple tablespaces

    Hello.
    Oracle 11g enterprise.
    Whenever I setup a new tablespace on my server, I create a user for each tablespace on the server.
    Is is possible to create only one user for all tablespaces on a server?
    What is the easiest way to create this one user to have all roles and privileges across all tablespaces?
    Any suggestions are greatly appreciated.

    I would seriously question a design with 'N' databases (whether they are on 1 or more or 'N' servers is not the issue) and DBLink from each of the databases to every other database.
    Not only is it going to be hell to manage (how and when can you decide to shutdown a database for maintenance / patching / server/hardware maintenance when you have N-1 others connecting to it online), but it indicates a possibly high level of data duplication.
    So we still revert to why you think you need that many databases and that many users and that many database links.
    As has been pointed out, there is no relation between tablespaces and DBLinks. NONE whatsoever.
    As for tablespaces and users, I can have
    a. One Tablespace and 10 database accounts with any 1 to 10 of the accounts storing data objects in the tablespace
    b. Ten Tablespaces and 1 database account storing data objects across all 10 tablespaces
    c. 100 database accounts but only 1 to N of them having any data objects, the others only doing SELECT/INSERT/UPDATE/DELETE on objects owned by 1 to N schemas. (This one schemas all being in 1 tablespace or M tablespaces).
    There is no one-to-one correspondence between users and tablespaces necessary. Tablespaces are for logical grouping of data objects.
    I keep referring to data objects as these (Tables, Indexes, LOBs, IOTs, Clusters etc) require storage. Objects like Sequences do not require separate tablepaces although they have persistent values. Objects like DBLinks and Views are only definitions and require no storage (other than in the data dictionary !). Objects like Procedures and Packages and Triggers are code objects and require no storage (other than in the data dictionary).
    So :
    1. Such a design needs to be questioned.
    2. Even if you need such a design, do not tie DBLinks to Tablespaces.
    3. Even if you need DBLinks, do not tie Users to Tablespaces.

Maybe you are looking for

  • How do I transfer info. from my old Imac G3 hard drive to the macbook pro?

    Hello, My imac g3 died last year and I finally upgraded to the macbook pro. Well, the G3 fizzed out on me and no longer turns on so I finally pulled the hard drive out. Now the next problem: can i access the information on this hard drive on my curre

  • Typing not shown in web forms

    All of a sudden, the keys I type on web forms on some sites are not displayed in the text boxes. Some sites (like this one, and Google) work fine - others (such as the BBC and my favourite bulletin board) do not. The characters themselves are transmi

  • IPad and iPhone runtime errors after ios 6 update at one site I use

    I use an I pad and iPhone 4S.  Did iOS 6 updates and have no problems.  However today I went to one site, the NGC collectors society ( registery section requiring sign in) that I use and get the following error below.  I have cleared the cookies on m

  • TS1702 I pad apps.

    I broke my I pad2 and it has been replaced with an I pad 3. I cannot get all my games back without having to pay again. Some games I purchased gold bars for 1 game, bingo chips for another and so on, how do I get all those extras back ? I will be out

  • Data Modeling for controls using XML views(SAPUI5)

    Hello , I am trying to create Table control using XML view and binding data to it through controller onInit method. XML View Code is as follows : <core:View xmlns="sap.m" xmlns:l="sap.ui.layout" xmlns:core="sap.ui.core">     <l:VerticalLayout width="