Expdp / impdp - Private synonyms using DB link not imported

Hi
I'd appreciate any help with this.
We are taking an export (expdp) of a database on Oracle EE 10.2.0.3 in Prod and then importing it into an identical DB on 10.2.0.5 in Dev.
I doubt the minor version difference is an issues, but I mention it for completeness.
Our expdp in prod used to look like this:
expdp agdba/x directory=DATA_PUMP_DIR dumpfile=X.DMP logfile=X.LOG schemas=A,B,C,D
We have changed it to:
expdp agdba/x directory=DATA_PUMP_DIR dumpfile=X.DMP logfile=X.LOG full=y EXCLUDE=SCHEMA:"IN ('E', 'F')"
( so basically do a full export, but exclude schemas E & F )
The impdp in dev has not changed (we import one schema at a time):
impdp agdba/x DUMPFILE=X.DMP LOGFILE=imp_X.LOG SCHEMAS=A DIRECTORY=DATA_PUMP_DIR TABLE_EXISTS_ACTION=SKIP
DB user AGDBA has been granted the DBA role...
The Issue:_
Private synonyms that use a DB link are NOT imported, but private synonyms that do NOT use a DB link ARE imported.
I can fix the issue by simply recreating the private synonyms using the DB link - e.g.:
CREATE SYNONYM EVENTLOGTBL FOR EVENTLOGTBL@FCISTOSMS;
Things were working fine until we change the expdp to use FULL. I see a few posts about synonyms and FULL=Y issues, but nothing quite like our problem.
Any ideas?
Thanks,
Andreas

Andreas Hess wrote:
So the problem is expdp FULL=Y for some reason does not export synonyms that refer to objects via DB links. I doubt that ... More than few times a week I refresh non-prod databases from a prod db, (it is schema level export not FULL=Y), and two of the schema own db links, and others have synonyms pointing to them. I have never encountered synonym problem (except that if db_links are invalid then impdp takes extremely long time to timeout while compiling pl/sql code.). We normally change db_links after the impdp is done, or (while it is importing table via another session).
I just re-ran sqlfile option with include=db_link,synonym option and i can see statements that create synonyms and create db links.
However i think the order in which impdp runs might be the source of your problem ... see this
Starting "ME"."SYS_SQL_FILE_SCHEMA_01":  ME/******** dumpfile=xxxx.%u.dmp directory=xxxx_exp schemas=schema1,schema2,schema3 sqlfile=schema.sql include=db_link,synonym
Processing object type SCHEMA_EXPORT/SYNONYM/SYNONYM       <<<< Synonyms are created first
Processing object type SCHEMA_EXPORT/DB_LINK               <<<< db_links come later
Job "ME"."SYS_SQL_FILE_SCHEMA_01" successfully completed at 08:32:02So, it is conceivable that if you drop synonyms/db_links from your schemas before impdp, some synonyms will fail to create properly. This could be a version specific issue, mine is 11.2 and I don't see failures for synonym creation, i.e. no error messages while impdp. Next time you could try to drop objects except db_links and see if you still have the same issue.
Raj

Similar Messages

  • Private synonym created on  table not working in function

    hi,
    I have created a private synonym on a table.
    now i am trying to create a function below is the code of the same.
    FUNCTION party_name(p_cntr_id NUMBER)
    RETURN VARCHAR2 AS
    v_cust_name VARCHAR2(100);
    v_cust_no varchar2(100);
    BEGIN
    select occ.cust_no
    into v_cust_no
    from ops_cust_cntr occ
    where occ.ID = p_cntr_id;
    SELECT party_name
    INTO v_cust_name
    FROM hz_parties -- this is the table on which synonym is created .
    WHERE party_id = v_cust_no;
    RETURN (v_cust_name);
    EXCEPTION
    WHEN OTHERS THEN
    RETURN NULL;
    END party_name;
    it is giving the message
    SQL> sho errors;
    Errors for FUNCTION PARTY_TEST:
    LINE/COL ERROR
    12/1 PL/SQL: SQL Statement ignored
    14/6 PL/SQL: ORA-00942: table or view does not exist
    but when i run
    SELECT party_name
    FROM hz_parties;
    it is giving me the data.
    Please advice.
    Regards
    Sudhir.

    This has nothing to do with the synonym.
    Look at this:
    SQL> create table t1 (c1 number);
    Table created.
    SQL> create synonym test_tab for t1;
    Synonym created.
    SQL> create or replace procedure p1 as
      2    l_count pls_integer;
      3  begin
      4    select count(*)
      5    into   l_count
      6    from   test_tab;
      7    dbms_output.put_line(l_count || ' records found.');
      8  end;
      9  /
    Procedure created.
    SQL> exec p1
    0 records found.
    PL/SQL procedure successfully completed.
    SQL> I guess, you don't have the select privilege on this table.
    Remember: The privileg must be granted directly to the user who is the owner of the procedure/function/package. Privilege through a role are not valid inside the procedure/function/package.

  • Used Dynamic Link to import a sequence, Can't do anything with it

    I have used Dynamic Link in Encore CS5 to bring in a sequence from Premiere Pro CS5.  The sequence shows up in the Encore "project" panel.  When I try to bring the sequence into a timeline Encore does not let me.  I drag it to the timeline and I see a + sign in the timeline.  When I let go nothing appears in the timeline.  What am I doing wrong?

    Figured out what I was doing wrong.
    Thanks,

  • How to pass parameter between two jsp pages using web link (not form)

    Hi Friends,
    I have two jsp pages and would like to pass a parameter from one JSP page (one.jsp) to another JPS page (two.jsp)
    in one.jsp
    <a href="two.jsp?ant="<%=ant%">"> <%=antName%> </a><br>
    I don't know how to pass value of parameter "ant" to two.jsp from one.jsp.
    Can anyone help this? Thank you in advance</a>

    Looks like you've got it almost right - just an extra unneeded "
    <a href="two.jsp"?ant=<%= ant %>"><%=antName%></a>
    which should render on the page as something like
    My Ant Task
    When you click the link, it should pass that parameter, and you can get it via request.getParameter().

  • How does one use Storeit Link to import bulk data on an ipod and how can I use the browser on my PC to connect to the ipod

    I have purchased StoreIt (and also SQLite Console) for my iPod but it is not clear to me how to import a CSV file into a StoreIt "category", after reading and rereading the documentation at http://www.database4iphone.com/faq/import-text-file-into-storeit/. Can anyone explain this, please?

    I figured it out: According to the message I got when pressing the circular arrow icon, I should use the URL http://192.168.1.6:54726 in the browser and import (or use other functions) while the screen is displayed on the iPod.

  • Photos edited using iOS 8 not importing as edited...

    I am editing photos using the native photos app on my 5s, running iOS 8.3. I am importing from an iPhone 5s (iOS 8.3) via USB cable to a MBP running Yosemite 10.10.3.
    The edited photos are not retaining their edits. They import as the original (unedited) imports.
    Anyone else experiencing this?

    After having the same problem with my 2013 Chevy Equinox, I did a factory reset of my iPhone 5s and re-installed IOS 8 from scratch.
    I used my iTunes backup to restore my apps, contacts, photo ..etc
    Since I did that, I was able to connect my phone via bluetooth to my Chevy Equinox, make phone calls, listen to music ..etc
    So far so good. I made about 10 calls, stopped the car, restarted the car and reconnected the phone and it worked.
    I wonder if the upgrade from IOS 7 to IOS 8 is not working properly and causing problems with Bluetooth. It seems that a full install after a factory reset fixed my problem.
    Hopefully, it is the end of the nightmare. Good luck.

  • Complex use of private synonyms

    I need to write a create user script that sets up our database. for production this is easy, but for development and test it gest complicated.
    We have 1 user that contains all of our data tables.
    another user that has all our code and our logging data.
    In development I need to create sets so developers can have their own environment.
    So how do I make code_user_a only see code_user_b's data without changing code? I think can do this with private synonyms, but I am not sure how to do it.

    First off. Synonyms have not changed over the last few version, but we are in 10.2
    Second off the point of the question is that I do not want to put them each in their own schema, I want it to mirror production. This is where the complexity comes from. I also don't want to change code.
    In production we will have two schemas
    Schema 1: All the tables that contain application data that users will see
    Schema 2: All the code and the logging tables
    This is a fairly standard deploy and not that uncommon. However, it gets complicated in development because I can have multiple "sets" of
    Schema 1
    Schema 2
    For example, a Developer named Jim and a Developer named Bob need to have their own set of schemas to do testing. So I need
    Schema1_Jim
    Schema2_Jim
    Schema1_Bob
    Schema2_Bob
    I only want Bob's Schema2(which has code that uses data in schema 1) to see schema1_Bob and not Schema1_Jim.
    It is not uncommon to deploy with multiple schemas for security reasons. I have seen it required by SOX auditors because the group that deploys the code is different than the group that deploys the data and the auditors say they are not allowed to share passwords.
    This is my requirement and I have to deal with it. The question is what is the best way to handle it in development. Productoin is easy becuase there is only one set of privileges.
    DBMS_WM is a good suggestion for a simple system. However, we have code that adds and drops partitions that need to act on the other schema so it won't work/.

  • Using Link to import Calendar & Contacts to Z10

    How to import Outlook contacts and calendar appointments using BlackBerry Link 1.0.1 for Windows
    (Taken from, and further details at: http://helpblog.blackberry.com/2013/03/blackberry-link-import-outlook/#more-6968)
     User Guide - BlackBerry Link 1.0.1 for Windows
    How to install or upgrade BlackBerry Link for Windows
    If you have not installed BlackBerry Link yet, visit http://blackberry.com/blackberrylink and follow the instructions to download and install BlackBerry Link for Windows. If you have already installed BlackBerry Link, you will be automatically prompted to install BlackBerry Link for Windows v1.0.1.
    Note: For those that use a Mac, stay tuned for more information in the near future.
    Importing contacts and calendar data during device migration or during the new device setup wizard
    If you are upgrading to a BlackBerry 10 smartphone, after installing BlackBerry Link you’ll be able to import your Outlook contacts and calendar appointments during the device migration process. If you are connecting a BlackBerry 10 smartphone to BlackBerry Link for the first time, you will also be able to import your contacts and appointments during the new device setup wizard.
    When prompted, complete the following steps to import your Outlook contacts and calendar details to your new BlackBerry 10 smartphone:
    1. On the Import Contacts and Calendar Appointments from Microsoft Outlook screen, click the Transfer Data button.
    2. Select the Microsoft Outlook profile containing the data to be imported.
    3. Use the checkboxes to select the data to be imported.
    Calendar appointments occurring in the last 30 days or in the future will be imported to the BlackBerry 10 smartphone
    4. Click Next.
    Once you have imported your Outlook contacts and appointments, you can update your contacts at any time by following the instructions in the next section.
    Importing Outlook Contacts and Calendar data from BlackBerry Link device settings
    If you have already set up your BlackBerry 10 smartphone, complete the following steps to import your Outlook contacts and calendar details:
    1. Open BlackBerry Link for Windows.
    2. Connect your BlackBerry smartphone to the PC using a USB cable.
    3. In BlackBerry Link, click on the name of your BlackBerry smartphone followed by clicking the gear icon in the top right corner to open the settings menu.
    4. Click Import From Outlook.
    Note: An upcoming release of BlackBerry Link will support full two-way synchronization.
    Caution: A pop-up message may appear if you have previously imported data from Microsoft Outlook to your BlackBerry 10 smartphone using BlackBerry Link. Importing the data again will add new contacts and calendar appointments, but will not update any existing records that have been modified on the device.
    5. On the Import Your Contacts and Calendar Appointments screen, select the data to import by clicking the Contacts and/or Calendar appointments checkboxes. Click Next followed by Ok to transfer your data.
    6. On the Data Transfer Complete screen, click Finish.
    7. Click Close Settings to return to the normal media and document view.
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

    Note: An upcoming release of BlackBerry Link will support full two-way synchronization.
    please to way sync  now

  • Export Database Link & Public Synonyms using Expdp

    Dear All,
    We are using expdp to do schema level exports:
    expdp dumpfile=<Directory>:expdp.dmp SCHEMAS=S1,S2,S3
    We also want to export the Public/Private Synonyms (created for the objects owned by above users), Public/Private Database Links as part of above command.
    How we can achieve this? We are using 11gR2.
    regards,
    Riaz

    HI,
    Public synonym can not be exported and never exported even at FULL Export also. . You can get them from "dba_synonyms". I suggest that you create so customer script .
    select      'create public synonym ' || table_name || ' for ' || table_owner || '.' || table_name || ';'
    from      dba_synonyms
    where
         owner='PUBLIC' and table_owner not in ('SYS', 'SYSTEM')
    order by
         table_owner;
    More: Information:
    https://forums.oracle.com/thread/855639?start=0&tstart=0
    Oracle Data Pump Schema Export and Public Synonyms
    Thank you

  • EXP/IMP..of table having LOB column to export and import using expdp/impdp

    we have one table in that having colum LOB now this table LOB size is approx 550GB.
    as per our knowldge LOB space can not be resused.so we have alrady rasied SR on that
    we are come to clusion that we need to take backup of this table then truncate this table and then start import
    we need help on bekow ponts.
    1)we are taking backup with expdp using parellal parameter=4 this backup will complete sussessfully? any other parameter need to keep in expdp while takig backup.
    2)once truncate done,does import will complete successfully..?
    any SGA PGA or undo tablespace size or undo retention we need to increase.. to completer susecfully import? because its production Critical database?
    current SGA 2GB
    PGA 398MB
    undo retention 1800
    undo tbs 6GB
    please any one give suggestion to perform activity without error...also suggest parameter need to keep during expdp/impdp
    thanks an advance.

    Hi,
    From my experience be prepared for a long outage to do this - expdp is pretty quick at getting lobs out but very slow at getting them back in again - a lot of the speed optimizations that may datapump so excellent for normal objects are not available for lobs. You really need to test this somewhere first - can you not expdp from live and load into some test area - you don't need the whole database just the table/lob in question. You don;t want to find out after you truncate the table that its going to take 3 days to import back in....
    You might want to consider DBMS_REDEFINITION instead?
    Here you precreate a temporary table (with same definitiion as the existing one), load the data into it from the existing table and then do a dictionary switch to swap them over - giving you minimal downtime. I think this should work fine with LOBS at 10g but you should do some research and see if it works fine. You'll need a lot of extra tablespace (temporarily) for this approach though.
    Regards,
    Harry

  • Use of non-migratable database link not allowed ERROR

    Hello,
    We have a notification process (on disabled user) in OIM that needs to connect to a schema in another instance to check some information before the notification is sent out.
    We have OIM in an instance A and the other schema lives in the instance B. We created a database link from A to B, some synonyms, and grant the right permissions for OIM to select the tables in the schema on instance B.
    We can login to OIM using SQL Developer and execute the query without any problems.
    However, when the query is executed in the Disable User process task, we got the error:
    java.sql.SQLException: ORA-24777: use of non-migratable database link not allowed
    We tried to create a view in OIM that is similar to the one that lives in the schema in instance B. However, the same error exists.
    How can we work around this error?
    Thanks

    with all the info you have put here all I can say is : (with some help from google ;-) )
    ORA-24777: use of non-migratable database link not allowed
    Cause: The transaction, which needs to be migratable between sessions, tried to access a remote database from a non-multi threaded server process.
    Action: Perform the work in the local database or open a connection to the remote database from the client. If multi threaded server option is installed, connect to the Oracle instance through the dispatcher.

  • In an eMail message, when I attempt to save two photos by clicking the 'Save 2 Images' link, not the 'Save Image' link, the images are not saved. (I use I I apologize for the late notice, butOS7 on IPhone5). Is this feature broken?

    In an eMail message, when I attempt to save two photos by clicking the 'Save 2 Images' link, not the 'Save Image' link, the images are not saved. (I use I I apologize for the late notice, butOS7 on IPhone5). Is this feature broken?

    Please don't post the same question multiple times!

  • Web links not working in iPhone calendar notes. Used to work. Ideas?

    Web links not working in iPhone calendar notes. Used to work. Ideas?

    Basic troubleshooting from the User's Guide is reset, restart, restore (first from backup then as new).  Has any of this been tried?

  • Not able to use db link if i reference its name from value of item in apex

    Hello
    I am trying to use following but not working
    :P16_db_link = 'link2home'
    link2home is database link already created by me.
    I am running one report which is using PL/sql function as source returning one sql
    SOURCE of Report
    ==============
    declare
    com varchar2(4000);
    dbln varchar2(100);
    begin
    dbln:=':P16_DB_LINK';
    select 'select * from v$instance@'||dbln into com from dual;
    return com;
    end;
    It is giving me error while report is loaded that 'db link name expeceted'
    any help is appreciated

    Hi user629322 ,
    Just try modifiying it
    declare
    com varchar2(4000);
    dbln varchar2(100);
    begin
    dbln := :P16_DB_LINK;
    com := 'select * from v$instance@'||dbln ||'from dual';
    return com;
    end;
    Good Luck
    bye
    Srikavi
    Message was edited by:
    srikavi

  • Use of non-migratable database link not allowed in OSB

    Hi All,
    I have a procedure in which tables are invoked using Database links.
    Now I have created a business service which uses this procedure. However I am getting below error
    The invocation resulted in an error: Invoke JCA outbound service failed with application error, exception: com.bea.wli.sb.transports.jca.JCATransportException: oracle.tip.adapter.sa.api.JCABindingException: oracle.tip.adapter.sa.impl.fw.ext.org.collaxa.thirdparty.apache.wsif.WSIFException: servicebus:/WSDL/E2xInterface_V1/WSDL/GetEWOStatus [ GetEWOStatus_ptt::GetEWOStatus(InputParameters,OutputParameters) ] - WSIF JCA Execute of operation 'GetEWOStatus' failed due to: Stored procedure invocation error.
    Error while trying to prepare and execute the SP_GETEWOSTATUS API.
    An error occurred while preparing and executing the SP_GETEWOSTATUS API. Cause: java.sql.SQLException: ORA-00604: error occurred at recursive SQL level 1
    ORA-24777: use of non-migratable database link not allowed
    can we use dblink in procedure while accessing through business service. Please let me know.
    Thanks
    Chandana

    hello gurus . i have same problem on my stored procedure what is a non xa datasource. how can i create on my weblogic server

Maybe you are looking for

  • HELP itunes won't update ALL tracks

    I imported tracks onto itunes & they were skipping so i re-imported & replaced the existing files. now the tracks in itunes are perfect, except i can not get them to upload onto my ipod as no matter what preferences i select it will only ever upload

  • Out put vat/ input vat adjustment

    HI All, I want small clarification on out put vat/ input vat adjustment in SAP.  can anyone tell me any standard reports are avialable to see this report.  If not how to see this report in SAP thanks & regards Kiran

  • Deleting a dimension in PAS

    Hi, I have created a dimension in PAS and I mistakenely included a space in the dimension name. As a result, I cannot delete the dimension on IDQL tab or by right clicking on it to delete. It keeps throwing an "end of line"error. This error propagate

  • Software update to 8.1 on my iPhone 6 est 16 hours??? Should I cancel or go through with it?

    does it really take 16 hours to upgrade to 8.1? Should I even do this?

  • Arrangement of photos

    i realised, firstly the photos are stored according to dates and not my albume name. is there a way to change tis ? and also i set up several albumes, does it mean i can delete them from the library ?