DBAsupport.com Forums - Powered by vBulletin
Results 1 to 5 of 5

Thread: Export Users

  1. #1
    Join Date
    Mar 2001
    Posts
    54
    Hi Gurus,

    How to take export/import user's information.I would like to create some users in a new database which are available in old database.

    Thankx
    Jeyaseelan.M

  2. #2
    Join Date
    Jan 2001
    Posts
    2,828

    Talking

    Hi

    Try this

    exp system/manager parfile=params.dat


    The params.dat file contains the following information:

    FILE=expdat.dmp
    TABLES=(scott.emp,blake.dept)
    GRANTS=y
    INDEXES=y

    regards
    Hrishy

    then use the import utility.


  3. #3
    Join Date
    Oct 2000
    Location
    Saskatoon, SK, Canada
    Posts
    3,925
    Since you want to do a logical move on the user schema, you would want to take a USER level export


    exp system/passwd@servicename parfile=parms.dat


    Where parms dat would contain:

    FILE=user_export.dmp
    OWNER=(scott, henry, peter,...)
    GRANTS=Y
    INDEXES=Y
    DIRECT=Y
    LOG=user_export.log



    To import you would use

    imp system/passwd@servicename parfile=parms.dat

    where the parms.dat would contain


    FILE=user_export.dmp
    GRANTS=Y
    ROWS=Y
    FROMUSER=(scott,henry, peter, ...)
    TOUSER=(scott, henry, peter, ...)
    RECALCULATE_STATISTICS=Y
    LOG=scott_imp.log


    Note: On the case of the import, you would have to create the user and assign the tablespaces in advance, before the import


    Sam
    Thanx
    Sam



    Life is a journey, not a destination!


  4. #4
    Join Date
    Mar 2001
    Posts
    54
    Thankx for your suggestion.But still my problem is not solved.

    I want to create the users as it is in old database,Not tables.

    I need to create a script using the following tables
    dba_users
    dba_sys_privs
    dba_role_privs
    dba_tab_privs

    any other option is there?

    Kindly suggest me

    --
    Jeyaseelan.M

  5. #5
    Join Date
    Feb 2001
    Location
    Paris, France
    Posts
    809
    create your own script.
    what you need is to :
    which roles and privs are granted to your user
    which tab privs are granted to the user
    which are his default and temporary tablespaces
    which quotas he has on these tablespaces
    which profile, password, etc ... your user has

    you can generate a script which will then create your user and grant everything he needs ...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width