User, Constraints and tablespaces

Hi all!
There is a "dispute" whether is correct or not to let the SYSTEM tablespace (oracle default) during the creation of a user and the constraints (pk) of his tables.
There's any contro-indications?
Thanks!
milena

If you mean, "Is it ever correct to let a user have the SYSTEM tablesapces as their default?" the answer is NO.
The SYSTEM tablespace is intended for use with the data dictionary. Allowing users to build any database objects - tables, indexes, whatever - on the SYSTEM tablespace is bad for performance.
Cheers, APC

Similar Messages

  • Export users , roles and tablespace definotion

    Hello,
    I would like to export (and after then import to another DB) users and roles from DB. How can I simply do this?
    And second question: how can I export tablespace definitions?
    Thanks
    SASA

    $ exp help=y
    Export: Release 8.1.7.4.0 - Production on Fri Oct 31 14:01:52 2003
    (c) Copyright 2000 Oracle Corporation. All rights reserved.
    You can let Export prompt you for parameters by entering the EXP
    command followed by your username/password:
    Example: EXP SCOTT/TIGER
    Or, you can control how Export runs by entering the EXP command followed
    by various arguments. To specify parameters, you use keywords:
    Format: EXP KEYWORD=value or KEYWORD=(value1,value2,...,valueN)
    Example: EXP SCOTT/TIGER GRANTS=Y TABLES=(EMP,DEPT,MGR)
    or TABLES=(T1:P1,T1:P2), if T1 is partitioned table
    USERID must be the first parameter on the command line.
    Keyword Description (Default) Keyword Description (Default)
    USERID username/password FULL export entire file (N)
    BUFFER size of data buffer OWNER list of owner usernames
    FILE output files (EXPDAT.DMP) TABLES list of table names
    COMPRESS import into one extent (Y) RECORDLENGTH length of IO record
    GRANTS export grants (Y) INCTYPE incremental export type
    INDEXES export indexes (Y) RECORD track incr. export (Y)
    ROWS export data rows (Y) PARFILE parameter filename
    CONSTRAINTS export constraints (Y) CONSISTENT cross-table consistency
    LOG log file of screen output STATISTICS analyze objects (ESTIMATE)
    DIRECT direct path (N) TRIGGERS export triggers (Y)
    FEEDBACK display progress every x rows (0)
    FILESIZE maximum size of each dump file
    QUERY select clause used to export a subset of a table
    VOLSIZE number of bytes to write to each tape volume
    The following keywords only apply to transportable tablespaces
    TRANSPORT_TABLESPACE export transportable tablespace metadata (N)
    TABLESPACES list of tablespaces to transport
    Export terminated successfully without warnings.

  • Finding out the source user and tablespace in a database export

    Hi folks,
    Lets say a customer gave us a export of their DB using expdp or exp, whats the best way to find out what users and tablespaces are in that export? With exp Ive used imp and created a index file but it seems a datapump export doesnt give up this information so easily. Short of going back to a customer and asking, whats the best technique?
    -Mark

    No this doesnt really give enough info. It give a hint toward the tablespace but not the user:
    $ grep "ORCH" test.sql
    sys.dbms_logrep_imp.instantiate_schema(schema_name=>SYS_CONTEXT('USERENV','CURRENT_SCHEMA'), export_db_name=>'ORCHTST.VODACOM.CORP', inst_scn=>'53131043');
    In the above example I know the user and tablespace will contain the charaters "ORCH" in part and this only shows the one entry.

  • In weblogic server when I Setting Up a User and Tablespace for the Server M

    In weblogic server when I Setting Up a User and Tablespace for the Server Migration Leasing Table in Sql Plus I got an error. ORA-00972: identifier is too long

    Refer: How to: Grant User Access to a Report Server (Report Manager), but this gives a step-by-step procedure for
    adding users who are a part of the Domain. In your case you are trying to add users who are not a part of the domain, meaning, you are trying to create users only specific to Reporting Services, am I right?
    But Reporting Services either relies on AD to authenticate the users, or you can create a custom-authentication extension to authenticate the users.
    In your case, you might need use a custom security extension, and use that to create/delete/modify users. Check the Forms authentication Sample here:
    http://msftrsprodsamples.codeplex.com/wikipage?title=SS2008%21Security%20Extension%20Sample&referringTitle=Home
    Other references:
    Implementing a Security Extension
    How to: Configure Custom or Forms Authentication in Reporting Services
    Hope this helps
    Chaitanya( Twitter |
    Blogs )
    Any documentation bug? Tell us about it at
    Connect. Please feel free to add any community comments in any of the MSDN/technet articles.
    This posting is provided "AS IS" with no warranties, and confers no rights.
    The next CTP for SQL Server Code Name "Denali" is coming soon.
    Sign up now to be notified of the next CTP release.

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

  • ADF security - prompt for user id and password again on page forward

    Hi,
    I am working with ADF using JDeveloper 10.1.3 with Business Components and ADF Faces.
    I have a Search page and a List page.
    Both pages are based on the same view within the same application module.
    The Search page is using the default Find and Execute Operations.
    The Execute button has an action that navigate to the List screen.
    faces-config.xml
    <navigation-rule>
    <from-view-id>/jspx/search.jspx</from-view-id>
    <navigation-case>
    <from-outcome>search</from-outcome>
    <to-view-id>/jspx/list.jspx</to-view-id>
    <redirect/>
    </navigation-case>
    </navigation-rule>
    <navigation-rule>
    <from-view-id>/jspx/list.jspx</from-view-id>
    <navigation-case>
    <from-outcome>find</from-outcome>
    <to-view-id>/jspx/search.jspx</to-view-id>
    <redirect/>
    </navigation-case>
    </navigation-rule>
    Security (Roles and Users) is based on the jazn-data.xml and web.xml
    URL Patterns for the pages have assigned to the role.
    Login Configuration is HTTP Digest Authentication
    <web-resource-collection>
    <web-resource-name>APP_SUPPORT</web-resource-name>
    <url-pattern>faces/jspx/search.jspx</url-pattern>
    <url-pattern>faces/jspx/list.jspx</url-pattern>
    </web-resource-collection>
    <auth-constraint>
    <role-name>APP_SUPPORT</role-name>
    </auth-constraint>
    <login-config>
    <auth-method>DIGEST</auth-method>
    </login-config>
    Everything is fine when running the application from JDeveloper,
    but when the application is deployed to the server (OC4J),
    After logging into the system, the Search page prompt for user id and password again
    on click of the Execute button.
    Have anyone experience this problem before?
    Thanks for any help.
    Jim

    Hi,
    does the same thing happen if you change your protected resource from:
    <web-resource-collection>
    <web-resource-name>APP_SUPPORT</web-resource-name>
    <url-pattern>faces/jspx/search.jspx</url-pattern>
    <url-pattern>faces/jspx/list.jspx</url-pattern>
    </web-resource-collection>to:
    <web-resource-collection>
    <web-resource-name>APP_SUPPORT</web-resource-name>
    <url-pattern>/faces/jspx/*</url-pattern>
    </web-resource-collection>Brenden

  • How to find username and tablespace name indatapump import

    I have a datapump export without the logfile .I would like to import it into a db.Before starting import I would like to know the schema and tablespace which it is exported so that I can remap the schema and tablespace to some other.Is there anyway I can do this

    You can run your import command but add this:
    include=tablespace,user sqlfile=look.sql
    The file look.sql will have the create tablespace commands and the create user commands.
    Edit look.sql to see what the tablespace and user names are.
    Dean

  • How we can define User Constraints in SAP APO SNP?

    Hi
    How we can  define flexible User Constraints in SAP APO SNP ? Meaning standard constraints can be configured in SAP APO SNP but how we can configured real time  customer constraints?
    Thanks
    Poorna

    Hi,
    You can use CIF user exit CIFMAT01 for this purpose. You can follow below path in SAP for more details
    SPRO---SAP refrenceIMG----Integration with other SAP components---Advanced Planning and Optimization---Application specific settingsand enhancements---Enhancement for materials---Influence data before transfer to APO on user specific basis.
    YOu can read help in above path about exit.
    YOu need ABAP person who need to code this. What you need is read custom field from table from MARC  and Populate in procurement cose field in this exit.
    Regards,
    Santosh,

  • Migrating a user to another tablespace!

    Dear All
    I need to migrate a user and all the tables associated with the user to a new tablespace and schema in other database.
    This is from Development to Production server.
    In Production Server i created a new schema and a tablespace associated with that say SCOTT.
    Now from Development server i want to export a user (PRO) and import this to the new schema SCOTT to the production server.
    Is it possible - if so would you please help me to follow up!
    Thanks in advance
    Ravi Prakash

    Hi ravi,
    if i understand correctly you want to move to new instance,
    if so you can not use the move tablespace and rebuild.
    you can use the exp/imp in case you are using oracle version less than 10g
    in case you are using 10g - you can use the data pump for the export/ import.
    in case you do not Have any long/ lob in tables import should recreate the tables in production server.
    how ever dew things should be think about, what about tables physical attributes?
    check
    http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14215/toc.htm
    for oracle export import and data pump documentation

  • Script for Users, Roles,Grant,Tablespace

    Hi,
    Please guide me on the following .
    I am moving database to new Unix server .
    so can I create the script which will check the existing Users, Roles, Grants, Tablespaces from current database and store that data.
    And using same soared data I want to create the same " Users, Roles, Grants, Tablespaces" using the script.
    Can i do this. Please guide me how to do this so I will help me to move database
    Thanks,
    Amol

    You should run ?\rdbms\admin\utlrp (note the ?, which is shorthand for ORACLE_HOME) from the database server. to make sure you have the correct script. You can call sqlplus from Toad easily.
    The script affects PL/SQL only. PL/SQL resides in the SYSTEM tablespace in the SYS schema. You don't have 400G of PL/SQL. It should take a few minutes only.
    The SYSTEM schema WILL be imported. SYS will not be imported, but automagically recreated. The only thing you will miss is Grants which have been made by SYS directly to end-users or roles, outside those defined in catalog.sql
    Sybrand Bakker
    Senior Oracle DBA

  • User quotas on tablespace

    Hi,
    I created a tablespace and made it default to a user. immediateley i issued a command to apply a quota 0m for that user to that tablespace.Now when i am trying to create a table by logging on that newley created user and inserting the table on that tablespace i am able to do that no error. can any one say why it is happening? if i repeated the inserting operation after some time i get the error message of quota full.remember that i have already inserted arround 10000 of rows on that table which has only 2 columns on it.
    thx
    pradeep

    This is entirely expected behaviour. Setting a quota of zero means 'you may not consume space... and if you already have consumed space before, you may not consume any extra space'. It does not mean 'you cannot insert data into objects which already have space assigned to them'.
    In other words, creating a table causes an extent to be allocated. The table thus acquires some space (say, 1MB). You can think of that as your user 'consuming' or using up 1MB of space in the tablespace. You THEN set quota to zero. That means that table still exists; it's still allowed to be its (say) 1MB; but it can never acquire any **extra** space.
    So now you start inserting rows into that table -of course you're not going to get any errors, because you aren't asking the table to grow. You're simply filling up the 1MB that your table had already acquired when it was legal for it to do so. Eventually, however, you will fill up the initial extent and your next insert will cause the table to want to acquire a new extent -which it is not allowed to do because of the Quota 0 setting. At that point, you'll get the error.
    I see you've had some not-very-helpful replies in this thread already. Well, Daljit of course won't be able to replicate the behaviour you see, because in his example, he is trying to create a new table: that immediately seeks to acquire an initial extent; it's thus immediately trying to consume fresh space in the tablespace; it therefore immediately fails. The thing he didn't test properly was doing INSERTs when quota is zero: those will work fine, until one insert causes the table to want to extend.
    Similarly, since nothing is going wrong, it's pointless you worrying about whether it's a role or privilege thing. It's doubly pointless because quota enforcement has never had anything whatsoever to do with roles or privileges, with the sole exception of having unlimited quota via a grant of a particular system privilege (which we know can't be an issue here, since eventually the quota is being enforced).
    And, just for once, the repeated calls from others for your Oracle version are irrelevant: quotas have behaved this way since at least version 8.0, and quite possibly version 7 before that (but I have trouble remembering that far back with any certainty).
    I think we see in some of the replies to this thread that you are not alone in not knowing properly how quotas actually work!

  • Web Application Security - User authentication and registration

    I am trying to develop a very simple web app with following feature
    1. Users should be able to register (sign-up) with the application, i.e backed code will create new user account when new users sign up.
    2. Once the user account is created, they should be able to log in.
    I was reading Java Security section in Java EE tutorial. To use any of Java EE security, the recommended way is to have security-constraint in web.xml specifying roles that have access to application. The roles are then mapped to the users that are created in the application server. The problem here is that the users cannot be created at deployment time. Users are created at run-time as new people sign up using the registration form. So, how can user be created with the application server before deploying the application?
    It seems very odd to be that application users are defined at the app-server level. Eg, Ebay/Amazon has millions of users. Are all those users defined at the application server where their app is deployed?
    If JavaEE security cannot support this simple usecase, what is the point of having security-constraint and all the other security features?

    As per your comment you want to use J2EE/JAAS security for existing user and want sign in feature. You can do it by providing link on log in screen. Please create sign up page and unprotected resource in web.xml. Once user fill sign in details you can store his detail in your authorization repository ( LDAP / Database ) and then either redirect request to login page or submit to your authorization scheme directly.

  • User requiremets and benfits

    hi friends
    please send me url for case study of single instance from oracle sites.(similar to below sites)
    http://www.oracle.com/technetwork/database/features/ha-casestudies-098033.html
    i just want to know what would be user requirement and user benfits for RAC SETUP
    thanks for help
    cheers

    >whereas user_lobs and user_part_indexes shows me different information regarding tablespace.
    do you see different results after starting a new session after the ALTER statements were issued?

  • What is difference process constraints and hold and defaulting rule.

    hi,
    what is difference process constraints and hold and defaulting rule.
    please give me a brief about all three.

    Your question is quite broad but I will try.
    1) Processing constraints are rules that you can define in OM that help you control the actions you can take on Order Headers, Order Lines, Invoices etc.
    e.g. you can setup a processing constraint that says if you have picked an order, then you cannot cancel it.
    Oracle comes with some seeded constraints but you can define your additional constraints as well.
    See http://www.oracleug.com/user-guide/order-management/holds for details
    2) Hold is a way of stopping progress on an order. e.g. If the customer's credit limit has been exceeded, you can have a hold applied to it. This will stop the order from getting shipped.
    See http://www.oracleug.com/user-guide/order-management/holds for details
    3) Defaulting rule is a mechanism to default values on sales order headers / lines etc. You can specifiy defaulting conditions and associate them with custom actions. e.g. you can say that if order type is INTERNAL then default the SUBINVENTORY on the order line to SPARES. Again, Oracle comes with some seeded ones. You can write your own. The defaulting rules also let you encapsulate complex logic in a pl/sql function and invoke it to default fields.
    see http://www.oracleug.com/user-guide/order-management/defaulting-rules for examples
    Hope this helps,
    Sandeep Gandhi

  • Sharing an iTunes Library across multiple user account and a network.

    Sharing an iTunes Music Library across multiple user accounts.
    Hello Everybody!
    Firstly, this was designed to be run in Mac OS X 10.4 Tiger. It will not work with earlier versions of Mac OS X! Sorry.
    Here's a handy tip for keeping your hard drive neat and tidy, it also saves space, what in effect will be done is an iTunes music library will be shared amongst multiple users on the same machine. There are advantages and disadvantages to using this method.
    • Firstly I think it might be worthwhile to state the advantages and disadvantages to using this approach.
    The advantages include:
    - Space will be saved, as no duplicate files will occur.
    - The administrator will be able to have complete control over the content of the iTunes library, this may be useful for restricting the content of the Library; particularly for example if computer is being used at and education institution, business or any other sort of institution where things such as explicit content would be less favorable.
    - The machine will not be slowed by the fact that every user has lots of files.
    The disadvantages to this system include.
    - The fact that the account storing the music will have to be logged in, and iTunes will have to be active in that account.
    - If the account housing the music is not active then nobody can use the iTunes library.
    - There is a certain degree of risk present when an administrator account must be continually active.
    - Fast User Switching must be enabled.
    Overview:
    A central account controls all music on the machine/network, this is achieved by storing iTunes files in a public location as opposed to in the user's directory. In effect the system will give all users across the machine/network access to the same music/files without the possibility of files 'doubling up' because two different users like the same types of music. This approach saves valuable disk space in this regard and may therefore prove to be useful in some situations.
    This is a hearty process to undertake, so only follow this tutorial if you're willing to go all the way to the end of it.
    Process:
    Step 1:
    Firstly, we need to organize the host library, I tidied mine up, removing excess playlists, random files, things like that. this will make thing a bit easier in the later stages of this process.
    Once the library is tidied up, move the entire "iTunes" folder from your Home directory to the "//localhost" directory (The Macintosh HD) and ensure that files are on the same level as the "Applications", "Users", "Library" and "System" directories; this will ensure that the files in the library are available to all users on the machine (this also works for networks)
    Optionally you can set the ownership of the folder to the 'administrator' account (the user who will be hosting the library.), you may also like to set the permissions of 'you can' to "Read & Write" (assuming that you are doing this through the user who will host the library); secondly you should set the "Owner" to the administrator who will be hosting the library and set their "access" to "Read & Write" (this will ensure that the administrator has full access to the folder). The final part of this step involves setting access for the "Others" tab to "Read Only" this will ensure that the other users can view but not modify the contents on the folder.
    Overview:
    So far we have done the following steps:
    1. Organized the host library.
    2. Placed the iTunes directory into a 'public' directory so that other users may use it. (this step is essential if you plan on sharing the library across multiple accounts on the same machine. NOTE: this step is only necessary if you are wanting to share you library across multiple accounts on the same machine, if you simply want to share the music across a network, use the iTunes sharing facility.
    3. set ownership and permissions for the iTunes music folder.
    Step 2:
    Currently the administrator is the only user who can use this library, however we will address this soon. In this step we will enable iTunes music sharing in the administrator's account, this will enable other users to access the files in the library.
    If you are not logged in as the administrator, do so; secondly, open iTunes and select "Preferences" from the "iTunes" menu, now click the "Sharing" tab, if "share my library on my local network" is not checked, the radio buttons below this will now become active, you may choose to share the entire libraries contents, or share only selected content.
    Sharing only selected content may be useful if their is explicit content in the library and minors use the network or machine that the library is connected to.
    If you have selected "share entire library" go to Step 3, if you have selected share "share selected playlists" read on.
    After clicking "share selected playlists" you must then select the playlists that you intend to share across your accounts and network. Once you have finished selecting the playlists, click "OK" to save the settings.
    Overview:
    In this step we:
    1. Enabled iTunes sharing in the administrator's account, now, users on the local network may access the iTunes library, however, users on the same machine may not.
    Step 3:
    Now we will enable users on the same machine to access the library on the machine. This is achieved by logging in as each user, opening iTunes, opening iTunes preferences, and clicking "look for shared music". now all users on the machine may also access the library that the administrator controls.
    This in effect will mean that the user will not need to use their user library, it will be provided to them via a pseudo network connection.
    As a secondary measure, I have chosen to write a generic login script that will move any content from the user's "Music/iTunes/iTunes Music" directory to the trash and then empties the user's trash.
    This is done through the use of an Automator Application: this application does the following actions.
    1. Uses the "Finder" action "Get Specified Finder Items"
    1a. The user's "~/Music/iTunes/iTunes Music" folder
    2. Uses the "Finder" action "Get Folder Contents"
    3. Uses the "Finder" action "Move to Trash"
    4. Uses the "Automator" action "Run AppleScript"
    4a. with the following:
    on run {input, parameters}
    tell application "Finder"
    empty trash
    end tell
    return input
    end run
    IMPORTANT: Once the script is adapted to the user account it must be set as a login item. in order to keep the script out of the way i have placed it in the user's "Library" directory, in "Application Support" under "iTunes".
    Overview:
    Here we:
    1. Enabled iTunes sharing in the user accounts on the host machine, in effect allowing all users of the machine to view a single iTunes library.
    2. (Optional) I have created a login application that will remove any content that has been added to user iTunes libraries, this in effect stops other users of the machine from adding music and files to iTunes.
    Step 4:
    If it is not already enabled, open system preferences and enable Fast User Switching in Accounts Options.
    Summary:
    We have shared a single iTunes library across multiple user account, while still allowing for network sharing. This method is designed to save space on machines, particularly those with smaller hard drives.
    I hope that this hint proves to be helpful and I hope everybody will give me feedback on my process.
    regards,
    Pete.
    iBook G4; 60GB Hard Drive, 512MB RAM, Airport Extreme   Mac OS X (10.4.6)   iWork & iLife '06, Adobe CS2, Final Cut Pro. Anything and Everything!!!

    how to share music between different accounts on a single computer

Maybe you are looking for

  • Error while trying to Open and Delete a BEx Query in Query Designer.

    Hi Experts, I have been facing this issue with BEx Query in Designer mode for a couple of days now in Development Environment in BI 7.0. I would like to Delete an unwanted BEx Query because I need to give it's name to another BEx Query. Whenever I tr

  • Hp Deskjet 5525

    It showed us to put paper in, so we did. Then it did some noise and wrote me to restart. Then when I restarted it, it did the same noise, like the small wheels got stuck. We inserted ink catridges and paper, once maybe 10 papers went trough it, but e

  • How to use "Adjustment Level " in automatic adjustments rule

    Now we are setting up BPC for legal consolidation. we use BPC 7.0MS SP4 Version. I want to use some result of automatic adjustment rules for source data, so I tried to use adjustment level in automatic adjustments rules. I was setting up A rule's (to

  • Oracle.jbo.ConfigException: JBO-33001

    In my application, there exists 3 Application modules, two of them are operating smoothly, but when trying to run a page that references the third one, I always get this error oracle.jbo.ConfigException: JBO-33001: Cannot find the configuration file

  • Unable to play 1080p HD videos smoothly? "Possible Solutions".

    Have you read many similar issues of people running into problems viewing 1080p HD or higher videos once they upgraded to OS X Lion, Mavericks or Yosemite? Have you read that once they reverted back to Snow Leopard everything played fine again? That