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

Thread: Help: exp MDSYS->EXP-00010: MDSYS is not a valid username

  1. #1
    Join Date
    Nov 2000
    Posts
    212
    I run:

    exp USERID=sys/<....>@avl owner=(avlsys,avlgeo, mdsys) FILE=avl.dmp ROWS=YES GRANTS=N 1>backup_avl.log 2>&1

    and get:

    Export: Release 8.1.6.0.0 - Production on Thu Dec 21 10:35:17 2000

    (c) Copyright 1999 Oracle Corporation. All rights reserved.


    Connected to: Oracle8i Enterprise Edition Release 8.1.6.1.0 - Production
    With the Partitioning option
    JServer Release 8.1.6.0.0 - Production
    Export done in WE8ISO8859P1 character set and WE8ISO8859P1 NCHAR character set
    Note: grants on tables/views/sequences/roles will not be exported

    About to export specified users ...
    EXP-00010: MDSYS is not a valid username

    Enyone can help/comment? (MDSYS is schema of spatial data objects, abbrev. SDO)

    Thank you

  2. #2
    Join Date
    Apr 2000
    Posts
    126

    Wink

    Are you sure that this user is in the export file?

  3. #3
    Join Date
    Nov 2000
    Location
    Potomac, Maryland
    Posts
    85
    try to export the user that owns the schema.

  4. #4
    Join Date
    Feb 2000
    Location
    Washington DC
    Posts
    1,843
    What LND saying is true. I went back and look at full export log which my co-worker did couple of weeks ago. It didn't export MDSYS user... even in full export. She Claims it doesn't need to export MDSYS still the database on which she imported works fine, as context catridges option also holds the objects that are owned by MDSYS. Not a posting that answers Q, thought it would be help full for further investigation of the isse.

  5. #5
    Join Date
    Feb 2000
    Location
    Washington DC
    Posts
    1,843
    Yep! Now it makes sence why its not exporting MDSYS. I did try to export user CTXSYS on v817, I got the same error. Other dba who works on Spatial objects says:

    MDSYS Doesn't own any users data except the metadata, prebuilt functions for geometrical/spatial objects. That means MDSYS data is static and never change from the installation time. When you install the dataabse by default MDSYS will be installed and it will always be there and exp utility discard that user for exports as there is no need. After the import MDSYS can manage user spatial objects the way it is managing on the prv database. Same case with CTXSYS too...

    Makes sence from what my dba saying now...

  6. #6
    Join Date
    Nov 2000
    Posts
    212
    Thanks sreddy. Here is what in export views:

    u$.name not in ('ORDSYS', 'MDSYS', 'CTXSYS', 'ORDPLUGINS')

    However if try to export with UID=MDSYS it does something, even writes DBM file but with warnings.
    (Of course OO stuff is not supported well by Oracle. To move SDO application from one DB to another is really a hedache if have no special scripts.)



  7. #7
    Join Date
    Feb 2000
    Location
    Washington DC
    Posts
    1,843
    LND,

    Yeah you have to deal with spatial data objects in the hard way with your scripts. Else spend some bucks for tools like

    SDE from Intergraph and
    FME from Safesoft

    Our shop used both, they say FME z much flexible to use
    SDE builds some internal relational structures out of your business logic, which most people will not be interested in...


    [Edited by sreddy on 12-22-2000 at 02:37 PM]

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