Full Export missing grants

Hi, I ran exp with full=yes. When I run imp in another (blank) database with full=yes, some of the grants do not get re-created, specifically some of the grants from sys (but not all -- most of them are re-created).
Using Oracle 9i.
Anyone heard of this happenning? I tried re-running imp a second time with full=yes rows=no to see if some of the DDL statements got skipped the first time, but the grants are still missing.
Any ideas?

We used following script to extract permissions granted by sys.
You can modify , according to your need.
select 'grant '||PRIVILEGE||' on '||TABLE_NAME||' to '||GRANTEE||' ;' , GRANTOR
from dba_tab_privs
where GRANTEE in ( select username from dba_users where username not in ('SYS','DBSNMP','OUTLN','PERFSTAT') ) and grantor='SYS'
order by GRANTOR
select 'grant '||PRIVILEGE||' to '||GRANTEE||' ;'
from dba_sys_privs
where GRANTEE in ( select username from dba_users where username not in ('SYS','SYSTEM','DBSNMP','OUTLN','PERFSTAT') )
order by GRANTOR
select 'grant '||GRANTED_ROLE||' to '||GRANTEE||' ;'
from dba_role_privs
where GRANTEE in ( select username from dba_users where username not in ('SYS','SYSTEM','DBSNMP','OUTLN','PERFSTAT') )
- Virag

Similar Messages

  • Error on Full Export - missing SYS.DBMS_REPUTIL

    Hi,
    I´m trying to make a full export of my database (8.1.7.0) and I´m getting the folowwing error when it´s almost finishing:
    . exporting posttables actions
    EXP-00008: ORACLE error 6550 encountered
    ORA-06550: line 1, column 18:
    PLS-00201: identifier 'SYS.DBMS_REPUTIL' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    ORA-06512: at "SYS.DBMS_SYS_SQL", line 1118
    ORA-06512: at "SYS.DBMS_SQL", line 316
    ORA-06512: at "SYS.DBMS_EXPORT_EXTENSION", line 84
    ORA-06512: at "SYS.DBMS_EXPORT_EXTENSION", line 135
    ORA-06512: at line 1
    EXP-00000: Export terminated unsuccessfully
    What can be wrong ?
    Thanks in advance.

    i think the error is in the pl/sql block
    i mean its a compilation error

  • Missing grant with full export/full import.

    We have the following problem which is unexplained:
    Using Oracle 9.0.1.4 we full export a database and we import it in full mode in another database which is also running Oracle 9.0.1.4. The database has 1 application schema which owns a lot of PL/SQL object packages and triggers.
    In the source database, all objects are valid and schema owner has SELECT privileges on V$SESSION and execute permission on DBMS_ALERT and DBMS_PIPE.
    I cannot tell you if these privileges have been granted directly or with a role.
    In the target database, package bodys and triggers using V$SESSION and DBMS_ALERT/DBMS_PIPE are invalid because schema owner has not the corresponding privileges.
    Schema owner already existed in the target database. Is it normal than the corresponding privileges have not been imported ?
    I cannot give you the exp/imp command lines but I'm sure full export/full import have been run (I've checked the import log).
    Thanks.
    Message was edited by:
    Pierre Forstmann

    See MetaLink Note:97902.1
    When performing a full export of a database, both objects belonging to SYS and object privileges on SYS's objects (e.g. admin views such as DBA_SEGMENTS, etc.) are not exported.
    To generate the missing privileges you can use the follwing script
    Connect to the original database (the one full export was done from) as SYSTEM using sqlplus and run this script:
    set hea off
    set pagesize 0
    set feedback off
    spool objs_upg.sql
    select 'grant '||privilege||' on '||owner||'.'||
    table_name||' to '||grantee||' '||
    decode(grantable,'YES','WITH Grant option')||';'
    from dba_tab_privs
    where owner = 'SYS'
    select 'grant '||privilege||' ('||column_name||') '||
    ' on '||owner||'.'||table_name||' to '||grantee||' '||
    decode(grantable,'YES','WITH Grant option')||';'
    from dba_col_privs
    where owner = 'SYS'
    spool off

  • Full Export/Import Errors with Queue tables and ApEx

    I'm trying to take a full export of an existing database in order to build an identical copy in another database instance, but the import is failing each time and causing problems with queue tables and Apex tables.
    I have used both the export utility and Data Pump (both with partial and full exports) and the same problems are occurring.
    After import, queue tables in my schema are unstable. They cannot be dropped using the queue admin packages as they throw ORA-24002: QUEUE_TABLE <table> does not exist exceptions. Trying to drop the tables causes the ORA-24005: must use DBMS_AQADM.DROP_QUEUE_TABLE to drop queue tables error
    As a result, the schema cannot be dropped at all unless manual data dictionary clean up steps (as per metalink) are done.
    The Apex import fails when creating foreign keys to WWV_FLOW_FILE_OBJECTS$PART. It creates the table ok, but for some reason the characters after the $ are missing so the referencing tables try to refer to WWV_FLOW_FILE_OBJECTS$ only.
    I am exporting from Enterprise Edition 10.2.0.1 and importing into Standard edition 10.2.0.1, but we are not using any of the features not available in standard, and I doubt this would cause the issues I'm getting.
    Can anyone offer any advice on how I can resolve these problems so a full import will work reliably?

    Thanks for the lead!
    After digging around MetaLink some more, it sounds like I'm running into Bug 5875568 (MetaLink Note:5875568.8) which is in fact related to the multibyte character set. The bug is fixed in the server patch set 10.2.0.4 or release 11.1.0.6.

  • Export Missing table on 11GR2  ?

    I'm observing this mystery on our 11.2.0.1.0 system running under Solaris about mysterious missing tables that really exist on the database.
    Here is the log of my session trying to export an existing table and export cant seem to find it .
    -bash-3.00$ . oraenv
    ORACLE_SID = [oracle] ? HR90
    The Oracle base for ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome01 is /u01/app/oracle
    -bash-3.00$ sqlplus system
    SQL*Plus: Release 11.2.0.1.0 Production on Thu Sep 9 11:35:43 2010
    Copyright (c) 1982, 2009, Oracle. All rights reserved.
    Enter password:
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    With the Partitioning, Automatic Storage Management, OLAP, Data Mining
    and Real Application Testing options
    SQL> set lines 200
    SQL> column object_name format a30
    SQL> select object_name,owner,object_type
    2 from dba_objects
    3 where object_name = 'PSCLASSDEL' ;
    OBJECT_NAME OWNER OBJECT_TYPE
    PSCLASSDEL PUBLIC SYNONYM
    PSCLASSDEL SYSADM TABLE
    SQL> exit
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    With the Partitioning, Automatic Storage Management, OLAP, Data Mining
    and Real Application Testing options
    -bash-3.00$
    exp sysadm tables=PSCLASSDEL file=PSCLASSDEL.dmp
    Export: Release 11.2.0.1.0 - Production on Thu Sep 9 11:41:51 2010
    Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
    Password:
    Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    With the Partitioning, Automatic Storage Management, OLAP, Data Mining
    and Real Application Testing options
    Export done in US7ASCII character set and AL16UTF16 NCHAR character set
    server uses WE8ISO8859P1 character set (possible charset conversion)
    About to export specified tables via Conventional Path ...
    EXP-00011: SYSADM.PSCLASSDEL does not exist
    Export terminated successfully with warnings.
    Even a full export of the schema does not include these "missing" table at all.
    Has anyone encounteed this on 11gR2
    Thanks.

    Thanks . This seems to be a new parameter in 11gR2 . It just got me by surprise that Oracle set it to true by default changing the old behaviour . Inserting records is really not an option but there are modules in the system that does check these table's existence after an import restore. I'm going to be using expdp to get these tabs back. Anyway all seems well . Thanks to all who responded.Have a great day .
    Edited by: jodsum on Sep 9, 2010 12:36 PM

  • Restore Designer from a FULL EXPORT

    Hi to all ....
    I have a FULL EXPORT of a database (9.2) where there was my Designer Repository my server crash and now I need to restore it in a new Oracle instance
    I try to import the repos_manager user and the user DES that we use for designer
    But not work ......
    Any Idea Help ???
    Thank's in advance

    The user DES (I assume the schema owner) has to be created with the correct privileges (in my script the user is D2K and you may also have to change the tablespaces):
    create user D2K
      default tablespace D2K_RAPID_GROW_D
      temporary tablespace TEMP
      profile DEFAULT
      quota unlimited on d2k_constant_grow_d
      quota unlimited on d2k_constant_grow_i
      quota unlimited on d2k_dependency_d
      quota unlimited on d2k_dependency_i
      quota unlimited on d2k_diagram_d
      quota unlimited on d2k_diagram_i
      quota unlimited on d2k_lob_d
      quota unlimited on d2k_rapid_grow_d
      quota unlimited on d2k_rapid_grow_i
      quota unlimited on d2k_system_meta_d
      quota unlimited on d2k_system_meta_i
      quota unlimited on d2k_temporary_d
      quota unlimited on d2k_temporary_i
      quota unlimited on d2k_version_d
      quota unlimited on d2k_version_i;
    -- Grant/Revoke role privileges
    grant ckr_d2k to D2K with admin option;
    grant ck_oracle_repos_owner to D2K;
    grant connect to D2K;
    grant dba to D2K;
    grant resource to D2K;
    -- Grant/Revoke system privileges
    grant create any synonym to D2K;
    grant drop any synonym to D2K;
    grant unlimited tablespace to D2K;

  • How to do a full export and exclude user specific tables

    Hi all,
    Is it possible to export all objects but one (or more) tables with expdp when doing a full export?
    This is what I've to in mind: (parfile)
    directory=expdp
    dumpfile=full.dmp
    logfile=full.elog
    full=y
    exclude=table:"IN('userA.table_A')"
    This par-file does not encounter any error messages but it doesn't exclude table_A in schema userA either.
    I guess that's because the the term userA is not interpreted as an owner.
    It's not a big deal to filter out a table when doing a schema export.
    I wonder whether it is at all possible do except a table from a full export. If so, I'd value your suggestions.
    Regards,
    Louis

    Louis,
    The exclude parameter in DataPump takes only the object name, not the schema name. So, if you only have one table called 'TableA', then you can just use:
    exclude=table:"IN('table_A')"
    If you have more than one table called 'table_A', then the exclude will exclude all of them. There is no way to specify user_1.table_a with an exclude parameter.
    Dean

  • Import of Table data only from Full export Dump

    I want to import data inot specified tables of a databse only. Is it possible to do this from a dump file which is the full export of the another database. The database i want to import into is the mirror of the database whose export dump i want to use. Let me know if this is possible and if yes then how i could do this.
    Thanking in advance.

    Please check the following link for full instructions:
    http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96652/part1.htm#435787
    If on another release, the same documentation is available for it on OTN as well.
    Thanks!

  • Oracle 8i full export fails (ORA-00904)

    Hello Guru's.
    I encounter this problem when i try a full export.
    Database version is 8.1.7.4 and the export utility is also 8.1.7.4
    When i try exporting it generates a ORA-00904 error. I traced on this error and see the following:
    *** SESSION ID:(8.57) 2007-03-21 10:33:53.738
    *** 2007-03-21 10:33:53.738
    ksedmp: internal or fatal error
    ORA-00904: invalid column name
    Current SQL statement for this session:
    SELECT GRANTOR, GRANTORID, GRANTEE, PRIV, WGO, ISDIR, TYPE FROM SYS.EXU8GRN WHERE OBJID = :1 ORDER BY WGO DESC, SEQUENCE
    I checked the compatible parameter:
    (compatible string 8.1.7)
    Any reply greatly appreciated.

    Yeah, well, maybe running catexp.sql will solve that .....
    And it did.
    But more stuff is coming up, proberly when i try to import this thingie into Oracle 10g.
    Thanks, and reply!

  • Essbase Full Export generating erroneously large data files

    On 9.2.1. using BSO
    I have a 1 GB page file that routinely is exported for backups. generates 1 text file about 1.2 GB. using buffered i/o and rle compression.
    recently, the backup occurred as normal but generated 6 text files totaling 10GB.
    I did a maxl force restructure and the .ind and .pag files remained about the same as they were prior to the restructure.
    The restructure did seem to take much longer than normal..
    Any ideas?
    Thanks
    Jeff

    Is this an automated export, or do you go through the user prompts in EAS to create a backup. The size you provided (1.2G off a 1G page file) sounds like a lev0 export. Exports are always going to come out much larger due to the binary and compressed nature of the page files.
    This "feels" like it may have just been an extra/different option checked. The difference between Lev0/Input/Full exports and Columnar/Essbase can easily make jumps in storage space like that...especially changing to Columnar ("Export in column format") can cause a big bump in export sizes. If your member names are long, it causes an even bigger impact on the size of columnar export files.
    Also, I usually encourage Level0 exports, which is smaller and faster than "All Data". However, the default method is "All Data" which would also grow the resultant files, especially with many upper levels.
    On a different note, I would test out your choice of RLE compression. I've personally found very few cases where bitmap wasn't far and away the best choice.

  • Issue Migrating Character Data Using a Full Export and Import

    Hi There;
    I have a database in my local machine that doesn't support Turkish characters. My NLS_CHARACTERSET is WE8ISO8859P1, It must be changed to WE8ISO8859P9 , since it supports full Turkish characters. I would like to migrate character data using a full export and import and my strategy is as follows:
    1- create a full export to a location in network,
    2- create a new database in local machine that it's NLS_CHARACTERSET is WE8ISO8859P9 (I would like to change NLS_LANGUAGE and NLS_TERRITORY by the way)
    3- and implement full import to newly created database.
    I 've implemented first step, but I couldn't implement the second step. I 've created the second step by using toad editor by clicking Create -> New Database but I can not connect the new database. I must connect new database in order to perform full import. How can I do this?
    Thanks in advance.
    Technical Details
    NLS_LANGUAGE.....................AMERICAN
    NLS_TERRITORY.....................AMERICA
    NLS_CURRENCY.....................$
    NLS_ISO_CURRENCY..............AMERICA
    NLS_NUMERIC_CHARACTERS    .,
    NLS_CHARACTERSET.............WE8ISO8859P1
    NLS_CALENDAR.....................GREGORIAN
    NLS_DATE_FORMAT................DD-MON-RR
    NLS_DATE_LANGUAGE...........AMERICAN
    NLS_SORT...............................BINARY
    NLS_TIME_FORMAT.................HH.MI.SSXFF AM
    NLS_TIMESTAMP_FORMAT......DD-MON-RR HH.MI.SSXFF AM
    NLS_TIME_TZ_FORMAT............HH.MI.SSXFF AM TZR
    NLS_TIMESTAMP_TZ_FORMAT..DD-MON-RR HH.MI.SSXFF AM TZR
    NLS_DUAL_CURRENCY............ $
    NLS_COMP...............................BINARY
    NLS_LENGTH_SEMANTICS.......BYTE
    NLS_NCHAR_CONV_EXCP........FALSE
    NLS_NCHAR_CHARACTERSET...AL16UTF16
    NLS_RDBMS_VERSION............10.2.0.1.0

    First, if your applications run on Windows, do not use WE8ISO8859P9. Use TR8MSWIN1254.
    Second, if you create a new database, the database is not necessarily immediately accessible to outer world. I do not know Toad and I have no idea if it performs all necessary steps required for the new database to be visible.  For example, in the Toad itself, I assume you should create a new connection that references the new SID of the newly created database and use this new connection to connect. However, connections without a connection string use the ORACLE_SID setting in Registry to tell connecting applications which instance (database) to use.  To change the database accessed with an empty connection string you need to modify Registry (unless Toad has an option to do this for you). If you want to connect without changing Registry, you need a connect string. This requires setting up Oracle Listener to serve the new database (unless default configuration is used and the database registers itself with the default listener). It also requires changing tnsnames.ora file to create an alias for the new database. Net Manager and/or Net Configuration Assistant can help you with this.
    I wonder if Database Configuration Assistant would not be a better tool to create new Oracle databases.
    Thanks,
    Sergiusz

  • PDF Export: Missing Graphics

    PDF Export: Missing Graphics<br /><br />Below is a section of code we are using to export a document as a PDF. The code will work 99% of the time, but occasionally we are getting the resulting PDF with some of the linked PDF components completely missing!<br /><br />The only way we have been able to reproduce this is (strangely) by continually opening and closing 'Windows Explorer' windows (We are using CS2 on XP), just as the process begins, until the final PDF is created.<br /><br />Our customer (who has hilighted the problem) would clearly not be doing this but we feel there is an issue here. (If the keyboard and mouse are left completely alone, the process is successful... 100% OF THE TIME!).<br /><br />The problem occurs both on site and at base, the linked PDF's are located on the LAN.<br /><br />The code snippet (with error checking taken out for brevity) is below:<br /><br />     UIDRef pageUIDRef = PCSImageUtils::GetFirstPageUIDRef();<br />     UIDList temp = ((UIDList)(pageUIDRef));     <br /><br />     ErrorCode status = kFailure;<br />     do<br />     {<br />          // obtain command boss<br />                InterfacePtr<ICommand> pdfExportCmd(CmdUtils::CreateCommand(kPDFExportCmdBoss));<br />          <br />          // set export prefs<br />          InterfacePtr<IPDFExportPrefs> pdfExportPrefs(pdfExportCmd, UseDefaultIID());<br />          InterfacePtr<IPDFExportPrefs> appExportPrefs((IPDFExportPrefs*)::QuerySessionPreferences(IID_IPDFEXPORTPREFS));<br />          pdfExportPrefs->CopyPrefs(appExportPrefs);<br /><br />          // set SysFileData<br />          PMString pmFilePath("C:\\Outputfile.PDF");<br />          IDFile sysFilePath(pmFilePath);<br />          InterfacePtr<ISysFileData> trgSysFileData(pdfExportCmd, IID_ISYSFILEDATA);<br />          trgSysFileData->Set(sysFilePath);<br />          <br />          // set UI flags<br />          InterfacePtr<IUIFlagData> uiFlagData(pdfExportCmd, IID_IUIFLAGDATA);<br />          uiFlagData->Set(kSuppressUI);<br />          <br />          // set UIDList containing pages to output (item list of command)<br />          UIDList theList(temp);<br />          pdfExportCmd->SetItemList(theList);<br />          <br />          // set UIDRefs containing pages to output (IOutputPages)<br />          InterfacePtr<IOutputPages> outputPages(pdfExportCmd, UseDefaultIID());<br />          outputPages->Clear();<br />          IDataBase* db = theList.GetDataBase();<br />          outputPages->SetMasterDataBase(db);<br />          int32 nProgressItems = theList.Length(); <br />          for (int32 index = 0 ; index < nProgressItems ; index++) <br />          {<br />                  outputPages->AppendUIDRef(theList.GetRef(index));<br />          }<br /><br />          // set PDF document name (get name from IDocument)<br />          InterfacePtr<IDocument> doc ((IDocument*)db->QueryInstance(db->GetRootUID(), IID_IDOCUMENT));<br />          PMString documentName; <br />          doc->GetName(documentName);<br />          outputPages->SetName(documentName);<br />          <br />          // finally process command<br />          status = CmdUtils::ProcessCommand(pdfExportCmd);<br />     } while(false);<br /><br />Thanks in advance.<br /><br />Dave Wilson.

    Hi Dave,
    It looks like a problem with unsafe threads inside command ...
    Did you tried set some preferences from next ?
    SetPDFExOmitPDF( kExportOmitPDFOFF )
    SetPDFExOmitBitmapImages ( kExportOmitBitmapImagesOFF )
    may be help you stabilize export process ...
    Pavol Nachaj
    www.exec.cz
    Prague

  • Full export - BU and workbooks

    Hi!
    How can I do a full export of the EUL which includes the business areas as well as the workbooks? We are migrating to a new box and I created the EUL with Disc Admin on the new box. But an export through the wizard (on the old box) only takes the BU metadata and not the workbooks. I know you can do it from the command line, but then you have to specify the workbook and we have 60! Any ideas?
    Kind Regards
    Marlene

    Hi Marlene
    You must be working on either 3.1 or 4.1 from where you cannot automatically export the workbooks. I do have a white paper though that might help a little.
    Email me on [email protected] and I will send it to you.
    Best wishes
    Michael

  • Full export and import

    Hi All,
    Kindly give me the document id or links for fully datbase export and import procedure, by the by I am doing full export and import in V 7.1 and the OS is OpenVMS.
    Satya.

    Hi sybrandb,
    For your information - I never asked him to CUT and PAST the steps, from my first post I was asking for the procedure for full exp and imp, and he gave me the 7.1 system administration pdf, which dosent talk anything about full export, you please read that PDF once.
    I was looking for the procedure and below are the metalink docs which give good information about the full export and import. Please go through this aswell.
    Note:15096.1
    Note:10767.1
    Note:61949.1
    Thanks,
    Satya.

  • 9i full export for a large database

    Hi Dear All,
    My organization is going to make one database read only. so requested to take a full export backup of the same which grew upto 600GB. I want to take it into splits of 2gb. what parameters shall I use.
    Prepared the parfile like:
    FILE=/exp/prod/exp01.dmp,/exp/prod/exp02.dmp,/exp/prod/exp03.dmp
    FILESIZE=2G
    Pls suggest me can I proceed with above parameters and what should be the parameter file for importing+* the same.
    Thanks in Advance
    Phani Kumar

    Hello,
    can I proceed with above parameters and what should be the parameter file for importing the same.With the Original Export/Import you may use the FILE and FILESIZE parameters so as to split the Dump into several dump files, and also to Import from several dump files:
    http://download.oracle.com/docs/cd/B10501_01/server.920/a96652/ch02.htm#1005411
    For instance, you may use something like this:
    FILE=<dumpfile1>.dmp,<dumpfile2>.dmp,<dumpfile3>.dmp
    FILESIZE=2GIn this example the Size of each Dump Files is limited to 2 GB.
    NB: Use the same setting for FILE and FILESIZE for the Export and the Import.
    how can I user mknod option in aix box with oracle9i for taking 600gb of databaseAbout mknod you may read the following Note of My Oracle Support:
    Large File Issues (2Gb+) when Using Export (EXP-2 EXP-15), Import (IMP-2 IMP-21), or SQL*Loader [ID 30528.1]See the chapter *3. Export and Import with a compressed dump file* and chapter *4. Export and Import to multiple files*.
    Hope this help.
    Best regards,
    Jean-Valentin
    Edited by: Lubiez Jean-Valentin on Jun 2, 2011 10:06 AM

Maybe you are looking for