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

Similar Messages

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

  • How to manage one wsp and dll for multiple clients in farm environment

    1. There is a product which is developed using C sharp , jquery,CSS and sharepoint object models which have been packaged into .wsp file. Whenever we introduce new functionality to the product we used to branch the
    previous code as a version , say Version 1.0 and new functionality of the product will in another solution. This is how we are managing the code in TFS as versions. Each newer version will have new functionalities. We do not give latest functionality for all
    the clients. Each client is having its own version of functionality. Technically in order to access the functionality, the wsp solution should be present in the solution repository which is available in SharePoint central administrator site. This solution
    will be deployed on the client’s site. We are following the above process in SharePoint standalone installation where we used to purchase dedicated server per client and installed sql, SharePoint foundation 2010 as standalone installation and adding the client
    related version of the code to the solution repository. Later host on the site which is created for that client purpose. This process is same for all the clients where we purchase individual server for each client .
        Now we want to host our product in farm environment of sharepoint foundation 2010 where we are going to try 3 level architecture. 
    • SQL Server-In this sever we are going to install sql server 2008R2 standard edition. Which should serve the database service for all the web applications/sitecollections which we are going to create in Web front end server.
    • Application server- In this server we are going to install the sharepoint as farm and will install search server express for serving search functionality for our product
    • Web front end server- In this server we are going to add this server to Sharepoint farm which we have created in application server. Here we are going to create web applications and site collections for all the clients.
    In this scenario how to manage multiple versions of same wsp solution?
    Another major issue w.r.t the architecture of the product and new approach for client deployment as follow.We have CSS, jquery files for serving the functionality.These files have been mapped to 14 hive folder.If any changes we do one of the jquery file or
    css file which is meant for latest version and not for old version, then how to manage this new functionality for that particular css or jquery file in 14 hive folder, since there is only one 14 hive folder. What is the best practice to make this happen? Another
    thing is, how to manage dll files for individual client?

    It sounds like you have a farm scoped solution at work. In that case you can only have a single instance of it per farm, you'd have to branch each version so they appear to be seperate solutions entirely (thus ruining your clients upgrade process).
    Bluntly i don't think a single farm can manage all your user environments.

  • Powershell script for security groups and users for multiple share folders

    Hi scripting team,
    I need your help with powershell script for the below queries 
    1. List out the security groups for more than one server share path and output it to a file ( csv ) 
    For eg.
    If the are are two share paths 
    \\servername\foldermain\folder1
    \\servername\foldermain\folder2
    So I needs the list of security groups for each share path
    And the output needs to be under each any every path.
    2. Grab the users belongs to main security groups and it nested groups for more than one security group and listed the users under each and every group. No need to display nested groups. Just users belongs to main group and users under nested.
    Your teams help is much appreciated 
    Thank you.
    Thilochana kumararatne

    Hi Braham,
    Thanks for your quick reply.
    Are we able to do this on two stage method
    1. grab the security groups from the share paths
    if can grab the share path from a separate txt file than copying it to the <your path> location
    so i can modify the txt file
    once run the script
    if can the output like below to a CSV file
    \\servername\foldermain\folder1group 1group 2group 3\\servername\foldermain\folder2group 1group 2group 3then i know which groups belongs to which share paththen i can remove the duplicate groups and keep the common groups to grab the users belongs to itso with the second script same as the first copy the security groups to a txt file and the out put as below.what I needs is the users full name and the samaccount name ( user id )group 1user1user2user3
    group 2user1user2user3looking forward your help on thisThank you.Thilo

  • How to maintain One product cost collector for multiple materials and configuration setting

    Hi experts,
    my requirement is that i want to maintain one product cost collector for multiple materials ans also i want to know the configuration setting for the same.
    I have used KKF6N but it is not working in my case. I went through KKF6M also but there i found multiple cost collectors.
    please guide me in the same.
    Thanks in advance.

    Hi Shripad,
    you cannot assign same  Product cost collector to different material.
    Because you creating cost collector for material combination of material /production version,material /Bom Routing.
    so please create individual cost collector for every material.
    if you have any query kindly revert back.
    Please mark the answer as helpful if it is helpful to you.
    Because march 5 onwards scn has stopped awarding points to liked content.
    Starting now: No more points for likes on comments/replies
    Thanks & Regards
    Sandeep Kumar Praharaj

  • Ever since I got the new update 5.1 my iPod's been dying faster. It used to last for at least 3 hours, now it won't even last one hour and dies for no reason(even when it's in sleep mode, and not in use) What's wrong with it? Is it the update? lagging too

    Ever since I got the new update 5.1 my iPod's been dying faster, even after I charge it. It used to last for at least 3 hours, now it won't even last one hour and dies for no reason (even when it's in sleep mode, and not in use) What's wrong with it? Is it the update? It's lagging as well..

    Some Users have Reported that a  Restore as New  has helped Resolve issues...
    Backup and Set Up as New Device
    http://support.apple.com/kb/HT4137

  • Can a workflow steps and users for the steps be controlled by contributors?

    Is it possible to have a workflow that allows contributors to select list of steps and users in the steps? The universal set of steps and users for steps can be defined in the designer mode. But the contributors can decide for a particular content item what steps need to be skipped and the users for the step. But atleast one approver step is mandatory. This is some strange requirement that our client is expecting. Is this possible?
    Regards,
    Pratap

    Hi Pratap,
    Short answer: Yes. This has been possible since the Stellent 5.x days (and possibly earlier). We can help you with this if you need services - see our Workflow offerings here: http://bit.ly/b2Ydv6
    Or you can do it yourself. For the details you should see "Setting Up Ad Hoc Step Users" in the workflow admin guide (pp 147, section 9-13) http://download.oracle.com/docs/cd/E10316_01/cs/cs_doc_10/documentation/admin/workflow_guide_10gr3en.pdf
    Remember that a "step" is just a container for a certain group of users to take action on certain kinds of content. So you can have one step but if you loop over it 3 times with a different set of users each time you have a defacto 3 step workflow.
    You need 2 things:
    1) the workflow plumbing for the selection of the next "step" (and/or group of users) in the workflow (tokens and subworkflows typically)
    2) a UI for the end users / contributors to actually make the selections.
    For 1) you use tokens that will ultimately resolve to a list of user names who should take action. You might use names (e.g. bcripe) or aliases (e.g. The Legal Team) or other concepts that make sense to the end users who will be participating (e.g. capital expenditure review). Whatever you do the tokens will ultimately yield one or more user ids which become the step users.
    For 2) you can use anything that will make those plumbing values available to the UCM workflow engine. Most common is using metadata fields. They're easy, can be displayed only during workflows (using rules and profiles), and fairly intuitive for most UCM users (if there are not too many!!!). However, you can just as easily write web services, BPEL tasks, or CIS integrations that take form or other triggered input from the user and pass those parameters back to the workflow engine. For more complex workflows this is often a good idea especially if you are dealing with people who are only casual users of UCM or who are interacting with content through another primary UI.
    Either way, let us know what we can do to help. Workflows are a special passion to us here at Fishbowl and we've got supported software to prove it. http://bit.ly/95Rocu
    Warmly,
    Billy Cripe
    Fishbowl Solutions

  • One instance of FCKeditor for multiple fields in a page

    How to implement only one instance of FCKeditor (one set of buttons) for multiple textareas in a page?

    Hello,
    Is that possible with the normal FCK Editor?
    I've never seen something like that on any website, but if you find such an example, I can have a look how it's done. If you see it somewhere working, we should be able to make it work in APEX as well.
    Regards,
    Dimitri
    -- http://dgielis.blogspot.com/
    -- http://www.apex-evangelists.com/
    -- http://www.apexblogs.info/

  • Why do we need to define RFC destination and user for material replication

    Dear Experts,
    why do we need to define RFC destination and user for material replication? Here we use crm middleware only for material replication. Could you please help me to understand it?
    regards,
    Ranjan

    Hello,
    As far as I know, you can use the same RFC destination already available in ECC to SRM to replicate materials.
    You can refer to note 720819.
    Regards,
    Ricardo

  • One address book library for multiple users on notebook

    Good morning! I have been searching the forums but only find solutions if you are running OS X Server. I just bought a MacBook Pro running Leopard and my wife and I have separate accounts so we can keep our iTunes libraries, etc separate. I was able to successfully share an iPhoto library and now want to do that with Address Book. Any tips on how?

    I am new to the Mac and looking for the same solution of sharing the address book without using a mobile me account nor any other type of server. I have been searching the forums and have not found a solution for a very simple problem.
    Can anyone tell me how to share the address book so my wife and I see the same exact address book and both have permission to make changes?
    iPhoto was easy to share by moving my iPhoto library to the "Shared" users folder. I allowed read and write access to the iPhoto Library for both users, but my wife's account does get an error when it tries to save. It mentions that some recent changes may be lost. I double checked and my wife's account does have read and write privileges.
    Perhaps this is what eeperman meant by limited function.

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

  • Advice needed: many lines terminating to same user for multiple numbers...

    In our situation, there are many numbers that can terminate into one user for many different reasons. I.E. A help line for product A, and a sales line for product B. Some users have up to 14 different numbers that they will be responsible for. It is a CCM 4.2 envorionment, with unity unified msg. The user needs to be able to differentiate between the called numbers. Aside from using multiple lines on a sidecar 7914, is there an alternate solution for changing the appearance of the called number? Would forwarded route points be able to pass calling and called line information via the 7960 screen?
    Thank you.

    Yes, that will work. Take a look at the following post for the required steps.
    http://forum.cisco.com/eforum/servlet/NetProf?page=netprof&forum=IP%20Communications%20and%20Video&topic=IP%20Telephony&CommCmd=MB%3Fcmd%3Dpass_through%26location%3Doutline%40%5E1%40%40.1ddb5957/0#selected_message
    Hope this helps. If so, please rate the post.
    Brandon

  • Using more than one PU and PC for the same database

    I have a scenario described here: [http://www.seamframework.org/Community/UsingTwoParallelNestedConversationsWithParentAtomicConversation|http://www.seamframework.org/Community/UsingTwoParallelNestedConversationsWithParentAtomicConversation]
    which uses Seam, EJB3, JPA, Hibernate, Richfaces (modalPanel) and JSF.
    The question I have is the following:
    is there any negative consequence (memory consumption, performance hit, etc.) of using more than one persistence unit in the persistence.xml that points to the same EntityManagerFactory? I was thinking of having one PersistenceContext (Seam-managed PC - an extended PC which is conversation-scoped) which uses one PU and reserving the other PC for the modalPanel forms and backing beans (SFSBs).
    The reason I needed to use this solution/approach is so that when using Hibernate MANUAL flush with SMPC, I can achieve isolated synchronization of the PersistenceContext without updating values in the modalPanel forms and vice versa.
    Any tips on best practices or alternative solutions? thx.
    persistence.xml snippet:
       <persistence-unit name="boBETS">
          <provider>org.hibernate.ejb.HibernatePersistence</provider>
          <jta-data-source>java:/boBETSDatasource</jta-data-source>
          <properties>
             <property name="hibernate.dialect" value="org.hibernate.dialect.SQLServerDialect"/>
             <!-- <property name="hibernate.hbm2ddl.auto" value="validate"/>   -->
             <property name="hibernate.show_sql" value="true"/>
             <property name="hibernate.format_sql" value="true"/>
             <property name="hibernate.generate_statistics" value="true"/>
             <property name="jboss.entity.manager.factory.jndi.name" value="java:/boBETSEntityManagerFactory"/>
             <property name="hibernate.default_catalog" value="boBETS"/>
             <property name="hibernate.default_schema" value="dbo"/>
          </properties>
       </persistence-unit>
       <!-- using boBETS2 for ListValueParamAction for now! trying to isolate the em.flush() such that we can achieve atomic conversations for the
       base form as well as the popup form! -->   
       <persistence-unit name="boBETS2">
          <provider>org.hibernate.ejb.HibernatePersistence</provider>
          <jta-data-source>java:/boBETSDatasource</jta-data-source>
          <properties>
             <property name="hibernate.dialect" value="org.hibernate.dialect.SQLServerDialect"/>
             <!-- <property name="hibernate.hbm2ddl.auto" value="validate"/>   -->
             <property name="hibernate.show_sql" value="true"/>
             <property name="hibernate.format_sql" value="true"/>
             <property name="hibernate.generate_statistics" value="true"/>
             <property name="jboss.entity.manager.factory.jndi.name" value="java:/boBETS2EntityManagerFactory"/>
             <property name="hibernate.default_catalog" value="boBETS"/>
             <property name="hibernate.default_schema" value="dbo"/>
          </properties>
       </persistence-unit>What happens if I were to have 10 PUs and 10 PCs in the same app? Whether they're all pointing to same DB or not. What's the consequence of using "too many"?

    Yes, you can use multiple iCloud accounts in multiple User Accounts on one computer, but, as you know not multiple iTunes Match accounts. Keep in mind that the two services are not the same.
    Since you've posted your question to the iTunes Match forum, which it really doesn't pertain to, you might want to also post it to the iCloud on my Mac forum.

  • Javascript code to enable an ADD button to create duplicate tables and pages for multiple entries

    I am using Adobe XI Pro. I have created a multi-page fillable pdf questionnaire that I want to make interactive to the user. Within each page, I have multiple tables that can have ADD buttons to duplicate the table if the client wants more than one test. I would like this table to insert directly below the previous table and they may be able to add upto 5 of these table.
    I also have a couple pages in the questionnaire that require duplication for multiple samples. Eg. One page per sample, and I may have upto 10 samples. I would like the javascript to have an ADD button and then add each page behind the previous related sheet (Original and duplicates together)
    I am not a javascript coder so I would need some examples and a walk through. I did take some developer courses in engineering but it has been almost two decades
    I have search on several forums and cannot find a good resource so I appreciate the help.
    Sincerely
    Tara

    Some of what you want to do can be done using template features and a bit of JavaScript, but if your users will be using Reader, version 11 will be required. You can dynamically add new pages, but adding new tables to existing pages with reflow of content that comes after is not possible with a form created in Acrobat. If you have access to Adobe's LiveCycle Designer form creation software, you can create what's known as a dynamic XFA form that can do all of what you want. You can ask in the LiveCycle Designer forum for more information: http://forums.adobe.com/community/livecycle/livecycle_modules_and_development_tools/livecy cle_designer_es?view=discussions

  • One punch-out URL for multiple PO submissions

    Hi,
    One of our punch-out vendor has only 1 URL for multiple countries, where end-users have to choose the country from a drop-down list and they will have different PO submission address based on country.
    The problem will be I can only have 1 Vendor number when I define OCI parameters. Considering one vendor can only have 1 PO submission address, I am worried how I can deal with other countries ?
    Did any body got this issue before?
    Thanks.

    No body knows ??

Maybe you are looking for

  • Error while Creating a PO using BAPI_PO_CREATE1

    Hi Friends,      The following issue that I have observed and as explained below is one of the weirdest scenarios that I have seen while working with SAP. Hence, kindly help me with possible errors from my end. I am working on ECC 6.0. Requirement: T

  • Attachment Stripping

    Hi We strip attachments using the "Strip Attachment by File Info" filter and use the Replace message field to add in the details of the file using the $dropped_filename variable. The issue I have is that this doesnt insert this text into the body of

  • Oracle 8.0.5 installation on linux RH6.0 kernel 2.2.5-15

    Good evening. I'm trying to install Oracle 8.0.5 on a machine running Linux RH 6.0 kernel 2.2.5-15. I wish to obtain some information about how and where can I set the following parameters: SHMMAX SHMMIN SHMMNI SHMSEG SEMMNS SEMMNI SEMMSL PROCESSES T

  • String data right truncation error

    Hi, what does this message mean? Thread id: 14 : Fail to load bulk into DB ERROR in TTCommand.cpp, line 329: Error in TTCmd::Execute() while executing statement [TimesTen][TimesTen 7.0.5.6.0 ODBC Driver]String data right truncation *** ODBC Error/War

  • Inter active report objects

    i want a beautiful inter active report  object based on SD module help me one.