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

Similar Messages

  • 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

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

  • Questions on full export and import

    I have a 9.2.0.5 database on Unix.
    The database have over 400 schemas. I am planning to migrate to 10g.
    This is the steps are am planning to take:
    1. create a 10g database.
    2. full export the database from my 9i database to exp.dmp.
    3. full import the exp.emp to 10g database.
    My question is if I use full import, does this impact the existing sys, system and other existing objects that already in the 10g database? What's the import parameter list should I use? Does my full import will import everything? Is there anything that I need to pre-create before do the full import?
    Thanks a lot!

    I did a full import as many of you suggested. I got many errors like this. Do you think those errors matters?
    What should I do to avoid those errors.
    Thanks a lot!
    IMP-00003: ORACLE error 23327 encountered
    ORA-23327: imported deferred rpc data does not match GLOBAL NAME of importing db
    ORA-06512: at "SYS.DBMS_SYS_ERROR", line 86
    ORA-06512: at "SYS.DBMS_DEFER_IMPORT_INTERNAL", line 30
    ORA-06512: at line 1
    . . importing table "DEF$_AQCALL" 0 rows imported
    IMP-00017: following statement failed with ORACLE error 23327:
    "BEGIN SYS.DBMS_DEFER_IMPORT_INTERNAL.QUEUE_IMPORT_CHECK('APST.APS.ANL.GOV"
    "','SVR4-be-64bit-8.1.0'); END;"
    IMP-00003: ORACLE error 23327 encountered
    ORA-23327: imported deferred rpc data does not match GLOBAL NAME of importing db
    ORA-06512: at "SYS.DBMS_SYS_ERROR", line 86
    ORA-06512: at "SYS.DBMS_DEFER_IMPORT_INTERNAL", line 30
    ORA-06512: at line 1
    . . importing table "DEF$_AQERROR" 0 rows imported
    . . importing table "DEF$_CALL" 0 rows imported
    IMP-00019: row rejected due to ORACLE error 1
    IMP-00003: ORACLE error 1 encountered
    ORA-00001: unique constraint (SYSTEM.REPCAT$_AUDIT_ATTRIBUTE_PK) violated
    Column 1 TIMESTAMP
    Column 2 3
    Column 3
    Column 4 SYSDATE
    IMP-00019: row rejected due to ORACLE error 1
    IMP-00003: ORACLE error 1 encountered
    ORA-00001: unique constraint (SYSTEM.REPCAT$_AUDIT_ATTRIBUTE_PK) violated
    IMP-00019: row rejected due to ORACLE error 1
    IMP-00003: ORACLE error 1 encountered
    ORA-00001: unique constraint (OLAPSYS.CWM$CLASSIFICATION_PK) violated
    Column 1 36
    Column 2 Descending
    ORA-02291: integrity constraint (SYSMAN.ESM_COLLECTION0) violated - parent key not found
    Column 1 262B6785DA5C56ADE04400144F2498E0
    Column 2 port
    Column 3 3816

  • Savepoints don't get migrated with dbms_wm.export dbms_wm.import

    It there a way to migrate all the save points from one database to another with dbms_wm.export and dbms_wm.import?

    Hi,
    dbms_wm.export and dbms_wm.import were only intended to be used to allow the latest rows as viewed from a workspace, savepoint, or point in time to be imported into another workspace. They do not support recreating the savepoint hierarchy that existed on the export database.
    The only way to maintain all of the savepoints, is to use the full database import/export.
    Regards,
    Ben

  • Why is my Mozilla Version 6.0.1 having problems with Bookmark Export and Import (html) ?

    I have used this feature numerous times with no problems. Starting yesterday, when I export html bookmark file, I get a delay - and then the html file is extraordinarily large (16,400 KB versus 782 KB normal file size).
    Also, when I attempt to import a saved html file, the new file will not save. Again, when I hit the "Export" or "Import"button, there is a prolonged delay.
    Should I delete Mozilla and reinstall ?

    Hi mrpetesix,
    Thanks for the insight. I seem to have solved the problem and can now sync iCal with my phone's calander as I used to without using iCloud. I am running the same setup as you (iTunes 11.0.1, osx 10.6.8, iOS 6.0.1) so, if you want, I'm sure you can do this too (although it seems you now hae found a good solution yourself). Anyway, here it is for the archives:
    When my phone was connected to iTunes, iTunes was showing that my Calander was being updated over the air by iCloud. It was not giving me any other options to choose which calanders to sync etc. So...
    On your iPhone, go to settings>>iCloud and turn calandars OFF.
    Now when you connect it to iTunes you can see all the old options under calandars and syncing between the two devices is back to 'normal'.
    I don't know when this iCloud setting got switched on my phone (I didn't even know it existed before this episode), probably when I updated iOS/iTunes recently.
    Hope that's useful to somebody. Cheers.

  • Export and import of 3 Gb table

    Dear ,
    I have table with more than 3 million records, i need to export this table and import into a different database . can you please help me with the export and import options options so that i can speed up the process...
    for you information
    this table hase 3 Fk, 2 Indexs
    i would appreciate your help in this regard
    thanks

    One way to speed up the exp/imp process is to use DIRECT=Y option. Also increase the size of BUFFER parameter.
    While importing large amount of data it is better to drop relational constraints and indexes and recreate them after import.

  • Unable to export or import custom request dataset

    Hi,
    I am a newbie to OIM, please let me know where I am going wrong with either export or importing the custom request dataset.
    Following are the steps which I followed:
    1. Modified the weblogic.properties file with required values such as
    wls_servername = xxx
    application_name=OIMMetadata
    metadata_from_loc=D://Oracle//Middleware//Oracle_IDM1//server//metadata//custom
    metadata_to_loc=D://Oracle//Middleware//Oracle_IDM1//server//metadata//custom
    metadata_files=/**
    2. Created the request dataset to provision a user to a resource.
    <?xml version="1.0" encoding="UTF-8"?>
    <request-data-set xmlns="http://www.oracle.com/schema/oim/request"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.oracle.com/schema/oim/request"
    name="Provision ABC Interface" entity="ABC Interface" operation="PROVISION">
    <AttributeReference name="User ID"
    attr-ref="User ID"
    available-in-bulk="false"
    type="String"
    length="50"
    widget="text"
    required="true" />
    <AttributeReference name="Last Name"
    attr-ref="Last Name"
    available-in-bulk="false"
    type="String"
    length="50"
    widget="text"
    required="true"
    mls="false" />
    <AttributeReference name="First Name"
    attr-ref="First Name"
    available-in-bulk="false"
    type="String"
    length="50"
    widget="text"
    required="true"
    mls="false" />
    <AttributeReference name="Email"
    attr-ref="Email"
    available-in-bulk="false"
    type="String"
    length="50"
    widget="text"
    required="true"
    mls="false" />
    <AttributeReference name="Type"
    attr-ref="Type"
    available-in-bulk="false"
    type="String"
    length="50"
    widget="dropdown"
    lookup-code="Type"
    required="true" />
    </request-data-set>
    3. Placed the request dataset in D://Oracle//Middleware//Oracle_IDM1//server//metadata//custom/ABC
    4. OIMMetadata is in Active State.
    5. Tried to import the dataset with credentials but failed with the following error:
    UserWarning: MDS-91002: MDS Application runtime MBean for "OIMMetadata" is not available. "importMetadata" operation failure.
    while importing request datasets
    There is no error while starting the OIM server with MBean too.
    Could anyone suggest me to resolve this error.
    Appreciate your help
    Thanks
    SG.

    Import issue got resolved. Thank you.
    Problem is with the case sensitivity of server name in weblogic.properties.
    Now am facing other issue. I am not able to see the attributes which i have defined in request dataaset when am creating request template, but, I am able to get the xml file (request dataset) when I am exporting.
    Any clue?
    Thanks
    SG

  • 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 full DB/Import full DB privilege

    Hii,
    How to grant export full database and import full database privilege to a user in 920720 DB.
    SQL> grant export full database to almasar;
    ORA-00990: missing or invalid privilege
    But its working in 10.1.0.2.0
    Thankx

    Hi
    What does catexp do? It "Creates internal views for Export/Import utility", says the script
    Also, if I need to export import
    just a few tables from another schema, do I still
    need EXP_FULL_DATABASE and IMP_FULL_DATABASE role?Yes you need to have EXP_FULL_DATABASE and IMP_FULL_DATABASE role

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

  • Is it possible to export full PCD object list along with their PCD ID?

    Hi
    Is it possible to export full PCD object list along with their PCD ID to an excel sheet or txt file?
    Any help will be appreciated.
    Regards
    Vineet

    Hi,
    I have provided a simple method below to Get all the PCD objects PCD  ID.
    1. Create a transport package.
    2. Add all the PCD objects for which ever you need the PCD ID.
    3. Now release the Transport package as the "File system" mode.
    4. Once it is done successfully, it will display all the transported object and its corresponding PCD ID in a table format.
    You can simply copy and paste it in a excel to get the PCD ID for the PCD objects.
    Hope this is helpful.
    Thanks,
    Mahendran B.

  • 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

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

  • Exporting full size Jpegs from DNG converted files

    Hi there
    I imported some RAW files into Lightroom 4, which I then copied/converted to DNG, then edited them. I now want to export them as full size, high-quality jpegs but I only seem to be able to export them at a maximum of about 800kb, which is far lower than full-size. Is this to do with first the conversion to DNG from RAW on the import? Am I best copying them from raw and not converting them to DNG at all? Next question is, will I have to import the original RAWs again and re-edit them to be able to export as full-size high quality jpegs or is there some way to not have to do them again? Many thanks, Sophie

    The curious thing is that when I try to export full size jpegs through the email function,
    Do you mean exporting through the e-mail the EXACT SAME photos that you were discussing above?
    Have you done any cropping of the photos? What is the size, in pixels, of one of these photos according to Lightroom? What is the size, in pixels, of the corresponding exported photo, according to your operating system?
    Can you show us screen captures of the export dialog box?
    At this time, I am not going to deal with the print at A4 size being pixelated, as printing introduces a lot of other places where something can go wrong. To see if the problem is in the export, I want to know if you look at the exported photo outside of Lightroom, does it appear pixelated or not?

Maybe you are looking for

  • Skip the Creation of Maintenance Notification

    I would like to know the effect if i will skip or remove the process of creation of Maintenance notification in SAP PM. The process will start with the creation of Order, if there's an external service required the Maintenance Order will be converted

  • Music app crashes with IOS 8.3 after playing two songs

    I just submitted this bug report to Apple: I have a auto update smart playlist based on zero rated tracks with an album rating of 3 stars or higher.  I play this playlist on random and rate the tracks as I listen to them.  Since updating to iOS 8.3 t

  • Why my device not read pdf-files in mail messages?

    Qq why my Nokia device not read pdf-file on mail message?

  • Delete Template in Word for Mac

    How do I delete a template in Word for Mac 2011?

  • Tutorials

    Hi, is there any good tutorials out there on how to integrate JUnit with Hibernate so that I can unit test Data Access Objects etc... Thanks for any help..