User and Tablespace info

Hi,
I have to create some scripts to create a new and empty DB ready for a new install of our apps on a new server.
I am easily getting the tables, views etc info from SQL Developers Export facility (without the data of course), but I have a problem where I need to define the userid and the TableSpace.
I realise these are quite straight forward, but what I would like to know is how the original ones are defined on our current DB, as the original scripts (and info) are no longer available, and I need to make sure I create them correctly with the new scripts.
So how do I display all the required info for a userid and for a TableSpace so that I can use this info in the create commands in the scripts ?
It may be helpful for you to know this is my first attempt at scripting and only my 2nd attempt at and interfacing with Oracle, so I have limited knowledge in this field, hence the simple request. :)
Any help or advice would be most appreciated.
Cheers, George.

942589 wrote:
Hi,
I have to create some scripts to create a new and empty DB ready for a new install of our apps on a new server.
I am easily getting the tables, views etc info from SQL Developers Export facility (without the data of course), but I have a problem where I need to define the userid and the TableSpace.
I realise these are quite straight forward, but what I would like to know is how the original ones are defined on our current DB, as the original scripts (and info) are no longer available, and I need to make sure I create them correctly with the new scripts.
So how do I display all the required info for a userid and for a TableSpace so that I can use this info in the create commands in the scripts ?
It may be helpful for you to know this is my first attempt at scripting and only my 2nd attempt at and interfacing with Oracle, so I have limited knowledge in this field, hence the simple request. :)
Any help or advice would be most appreciated.
Cheers, George.DBMS_METADATA.GET_DDL
or just export (expdp) & import (impdp)
Read The Fine Manuals found at http://docs.oracle.com

Similar Messages

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

  • Users and Tablespaces

    Specs:
    OS: Win 2003 Sp1
    Oracle 9i - rel2 (9.2.0.5.0)
    I had something like 200 users and dedicated tablespaces associated to them. Eventually, I ran into a usual very natural and obvious problem of -running low on disk space. So I took a task to free some space off by deleting some tablespaces - not realising that there will be users who will have these tablespaces assigned to them as their default tablespace.
    Now, having deleted these tablespaces - I need to clear these users off - so whats the best way to do it?
    What will happen to these users?

    Eric,
    The objects owned by those users were dropped with the tablespaces.Not all objects, but all segments. If users are owners of procedures/functions..., these ones still exists.
    Paul,
    cascade is probably redundant,That depend, for the same reason (if functions/proc exists) :
    SQL> create user testuser identified by testuser;
    User created.
    SQL> grant create session, create procedure to testuser;
    Grant succeeded.
    SQL> conn testuser/testuser;
    Connected.
    SQL> create or replace procedure test_proc is begin null; end;
    SQL> /
    Procedure created.
    SQL> conn / as sysdba
    Connected.
    SQL> select default_tablespace from dba_users where username='TESTUSER';
    DEFAULT_TABLESPACE
    USERS
    SQL> select segment_name from dba_segments where tablespace_name='USERS' and owner='TESTUSER';
    no rows selected
    SQL> drop user testuser;
    drop user testuser
    ERROR at line 1:
    ORA-01922: CASCADE must be specified to drop 'TESTUSER'
    SQL> drop user testuser cascade;
    User dropped.
    SQL> @OP,
    You probably need to take care with a script which drop users, in case of some users are users without being schema (not owner of any objects), and for users which aren't the owner of any segments, and which you want to keep.
    Nicolas.
    Message was edited by:
    N. Gasparotto

  • User and System Info

    Hi All,
    How can I find the following information for a SRM System?
    Number of Users and Types
    Average online response time
    Thanks,
    Gamad

    Hi All,
    Thanks for the information.
    What transaction can help me find the number of Shopping Cart and other transactions in SRM for a particular period.
    Thanks,
    Nikhil
    Edited by: Gamad on Aug 21, 2008 6:01 AM

  • Info about user and tablespace

    i have created a tablespaces with names TS1 and TS2
    then created a user ts1 with the default tablespace as TS1
    is there anyway by which the user can create tables in tablespace TS2.?
    ts1 user is created in tablespace TS1.....
    will he be able to create tables in TS2 even if he has admin privileges.?
    thnq

    alter user <user_name> quota unlimited on <tablespace_name>;
    alter user <user_name> quota 1M on <tablespace_name>;
    Once you define a quota either unlimited or not, the user will be able to create objects as long as it has enough privileges, you are supposed to grant at least the create table privilege to the user, otherwise, even if it has enough quota, it won't be able to create segments.
    ~ Madrid

  • Total number of Users and Tablespaces in EBS

    Hi,
    I want to know how many total number of Oracle database users are there inn Oracle EBS R12, and how many number of tablespaces are there in EBS. what docx should I consult for this sort of information. Kindly send me the links of such info.
    Regards,
    Abbasi

    Hi,
    Please see these links/docs.
    Connected users
    http://forums.oracle.com/forums/search.jspa?threadID=&q=Connected+users&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Note: 131704.1 - Database Scripts Library Index
    Thanks,
    Hussein

  • New RMAN catalog in existing EMREP database - new user and tablespace?

    Hi all,
    I am FINALLY getting "with the times" and trying to get my databases to back up with RMAN. I already have a dedicated server that is running Oracle Enterprise Manager 10g Grid Control, so it already has the OMS database on it, called EMREP. I was hoping to just use this database as my RMAN catalog, is that considered good practice or not?
    So assuming this practice is considered OK, I know that I need to create a new user (which I'll just call RMAN) in this database. Would it be best to also create a separate tablespace for this user? I have no idea how big I should expect this RMAN schema to get. I'm sure it all depends on the number of databases I'm backing up, but can anyone give me some realistic size expectations that I could start with?
    Any advice/info is greatly appreciated!

    I think that the catalog is only applicable if you will have several databases to manage.
    If you he will have only one, I dont see necessity to use the catalog, therefore with backups of controlfiles only, you can to execute the tasks of backup/restore/recovery.
    But, for catalog creation information, see
    RMAN CATALOG CREATION STEP BY STEP by Joel Pérez
    RMAN ( CATALOG CREATION ) STEP BY STEP by Joel Pérez
    Message was edited by:
    ARF

  • Hiding Logged User and Password Info in Reports

    Hi!
    I want to hide the logged user name ,Password and connect string info while calling a report using Web.Show_Document.
    Is there any work around available.
    I will be grateful.......
    Regards
    Imran

    Hi ,
    See the following link...
    http://www.oracle.com/technology/products/forms/pdf/10g/frmwebshowdoc_rep.pdf
    Simon

  • Server 10.5.7 upgrade deleted all user and group Info -- Receiving error -1

    After upgrading our Dual 2.0 G5 server that was running 10.5.6 to 10.5.7 all groups and user information lost access. In addition when starting the workgroup manager error -14008 appears. Also when we look into the console log the following shows up
    ------------com.apple.launchd[1] (edu.mit.kadmind) Throttling respawn: Will start in 10 seconds
    over and over
    Any help would be greatly appreciated.

    I looked into A&I more, maybe it's not as nuclear as I thought. I presumed it meant I needed to reinstall all non-apple Apps, which means digging up disks and codes, none of which I have here. I'm away from home for another 4 weeks, which means doing that is difficult.
    Being away is also why my back-up is a little out of date, I didn't bring the time machine drive for that MBP with me. I had it shipped to me as soon as I had problems, but the back-up I'd have to roll back to is now 1-2 weeks old and might still have the funky user:group problems since my timezone problems began before the 10.5.7 update.
    I think DiskWarrior may of finally repaired the user:group issues. Not 100% sure but it's looking better. I just noticed that the primary user is admin but User is 502 and Group is 502. Whereas my secondary user account (also Admin) on that MBP User is 501 and Group is 20. My recollection is 20 is staff and both users groups should be 20.
    I'll look into A&I more, probably do it when I get home.
    Thanks.
    Message was edited by: jb510

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

  • How can I list all users and their DEFAULT tablespace?

    How can I list all users and their DEFAULT tablespace?
    Peter

    Peter, the following short article that lists the most heavily used Oracle rdbms dictionay views might be of interest based on your question:
    How do I find information about a database object: table, index, constraint, view, etc… in Oracle ? http://www.jlcomp.demon.co.uk/faq/object_info.html
    HTH -- Mark D Powell --

  • 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

  • Alter user default tablespace and temporary tablespace

    Hi guru,
    target : to ensure that users don't have the SYSTEM tablespace as their TEMPORARY or DEFAULT tablespace
    scenario :
    user default tablespace temporary tablespace
    xxyym system system
    Question: How to alter user ?
    tq

    In a scenario, let's say you want to make USERS the default tablespace for existing users and TEMP the default temporary tablespace, you can also create the alter statements as below into one script based on the output and run it.
    select 'ALTER USER '||username||' DEFAULT TABLESPACE USERS;'  FROM DBA_USERS WHERE DEFAULT_TABLESPACE IN('SYSTEM')
    and username not in('SYS','SYSTEM');
    select 'ALTER USER '||username||' TEMPORARY TABLESPACE TEMP;'  FROM DBA_USERS WHERE TEMPORARY_TABLESPACE IN('SYSTEM');As magnus mentioned, don't forget to do this(if USERS and TEMP is what you want to go with) :
    ALTER DATABASE DEFAULT TABLESPACE USERS;
    ALTER DATABASE DEFAULT TEMPORARY TABLESPACE TEMP;

  • Palm User and Potential BlackBerry User Looking for Info

    I have long been a Palm PDA user and combined that with a 'regular' cell phone.  For a variety of reasons, I am considering a Blackberry Pearl.  I have found it surprisingly difficult to find good information to help me make the decision and I am hoping for some feedback here.
    1 - How difficult is it to transfer my Palm data to the BlackBerry?  In particular, will my extensive collection of Memos on my Palm transfer and be usable in the BlackBerry? Will all notes, included in my Palm address book, transfer to my BlackBerry contacts?
    2 - Does the BlackBerry desktop software function like the Palm Desktop?  Am I able to view and enter information at a desktop PC via the BlackBerry desktop software?
    3 - Can I use the BlackBerry data in other applications?  For instance, can my BlackBerry contacts be used to create mailing lists in Word or Excel?
    4 - What does the BlackBerry allow me to do with data?  Can I customize calendar entries with colors or categories? Do I have the ability to format text using color, bolding, underlining, etc.?
    5 - Can I download and substitute third party apps for the BlackBerry apps, the way I can in Palm?
    6 - My email client is Outlook, but my email service is provided by Google Apps.  Any glitches there?
    7 - Will BlackBerry sync to Outlook on my desktop or to Google Apps?  Or is it my choice?
    8 - What frustrations may I encounter? In other words, what does the Palm do (or do better) that the BlackBerry does not (or does not do well)?
    9 - How will my expectations be exceeded?  What does BlackBerrry do (or do better) that Palm does not (or does not do well)?
    Thanks so much for any assistance and advice.
    Mitch

    1: Not difficult, there is a Device Switch Wizard availible in the Dektop Program for BlackBerrys. 
    2: No, the BlackBerry Desktop Software does not function like the Palm Desktop. You can sync it with Outlook or Lotus. 
    3: I am not sure what you mean by that. But you can sync the contacts to your desktop also in a .csv file and create mailing lists through that. 
    4: The BlackBerry calendar is different then the Palm's. It does not allow you to customize calendar entries with colors. But there are 3rd Party Calendars availible. The well known Palm-Calendar called Agendus will apparently soon be availible for BlackBerry.
    5: Yes, 3rd party apps are on the rise at the moment; not yet as many as for Palm but there are many utilities and applications availible that improve the OS.
    6: Google Mail also works with BlackBerry.
    7: Choice
    8: Palm has a better built in calendar; no doubt about that. Some functions are missing in the BlackBerry OS but for most of them there are utilities availible for download (for $). Overall I would definitely recommend the BlackBerry devices. I changed from a Treo 680 in December and did not regret it at all! You always have to get used to new devices but with the BlackBerry it is very easy to get used to!
    9: Push eMail, better Browser, faster System, more Filespace, newer OS, nicer UI, easier to handle with the navigation Ball, no Touchscreen that can break, better built, newer hardware... there are many things, buy one try it!
    Hope it helps. 
    If your question was answered, please accept it as a sollution and / or give Kudos ;-)
    Use the Search Field first! Maybe the question you want to ask already exists!

Maybe you are looking for

  • Will a Lumia 810 never been update in future???

    I'm using lumia 810, and it's a great phone. However, I heard that Lu 810 had EOL form T-mobile and it hasn't been get new FW since 1/2013. While lumia 820 & 822 have be update, why you forget lumia 810. That makes the users disappoint so much!!!  

  • ReferenceError: Error #1056:

    Getting this error when instantiating this class. It's set up in my FLA as the document class: ReferenceError: Error #1056: Cannot create property tab0 on classes.tagwidget.TagWidget. at classes.tagwidget::TagWidget/::addTabs() at classes.tagwidget::

  • When click 'write EPC' button, HTTP code:501 message occur.

    HTTP listener got response with response code: 501(Not Implemented) Message no. /AIN/IF020 How can i solve this problem? Thank you, Nutida

  • How to change the IDOC Status from 30 to 03

    Hi Friends, In the Partner Profiles Collect IDOCS option is Selected and the Output mode is 4. In my Custom Program i am Using the Function Module MASTER_IDOC_DISTRIBUTE to generate the IDOCs I am getting the IDOCs of Status 30. then in my Custom Pro

  • PSE 6 disk mounting failure -

    I'm having problems with downloads of the trial PSE6 - after downloading, on attempting to open i get an error message 4960 - disk image failed to mount. I've redownloaded but same issue occured . Any ideas please?