Import the database link

I try to import tables from one database to another via a database link. But faced with a weird error. Help, please.

Operating system:  Server Linux Oracle release 6.4

Database of the source: Oracle 12.1.0.2

Target databases: Oracle 12.1.0.2


Measures

  1. Created a TNS entry for the source on the target server database.
  2. Create a link from public database to the schema of the source by using the tns name.
  3. Created a database in the target database directory and the permissions granted to the user target.

Run the command below

Impdp directory with name of user and password = dirname tables = network_link = linkname schema.tablename

Get the below output

Import: Release 12.1.0.2.0 - Production on Fri 9 Oct 14:51:32 2015

Copyright (c) 1982, 2014, Oracle and/or its affiliates.  All rights reserved.

Connected to: Oracle 12 c Enterprise Edition Release 12.1.0.2.0 - 64 bit Production database

With the options of partitioning, OLAP, advanced analytics and Real Application Testing

ORA-39004: invalid state

ORA-39091: unable to determine the State of standby and logical flow

ORA-06550: line 1, column 47:

PLS-00103: encountered the symbol "IN" when the expected in the following way:

< an ID > < a between double quote delimited identifiers of >


Hello

Run the command below

Impdp directory with name of user and password = dirname tables = network_link = linkname schema.tablename

can you show real impdp statement executed...

I guss here is the problem network_link 'name '.

Rajesh

Tags: Database

Similar Questions

  • Could not import the database using impdp via network_link

    Dear all,

    I'm trying to import the database from the remote location to my local database dump after you have created the dblink to local db db remotely.


    On a remote server:


    -Directory created and granted privileges. Name dir: PREMLIVE_EXPDP


    To the Local Server:


    User name: expuser with database privileges full dba, imp and exp.


    Name of the DB link: to_premiatest14


    I faced an error of no valid directory when I run the command on the local server to import the schema of remote database below.


    C:\ > impdp expuser/expuser network_link = rΘpertoire to_premiatest14 = PREMLIVE_EXPDP remap_schema = PREMIATEST:PREMIATEST15 logfile = 2013-09 - 02_premiatest15.log

    Connected to: Oracle Database 10 g Enterprise Edition Release 10.2.0.5.0 - 64 bit

    Production

    With partitioning, OLAP, Data Mining and Real Application Testing options

    ORA-39002: invalid operation

    ORA-39070: unable to open the log file.

    ORA-39087: directory PREMLIVE_EXPDP name is invalid

    Help or advice would be really appreciated.

    Kind regards

    Syed

    Hi Syed,

    I think you do the opposite on the directory stuff.

    The directory parameter is just to hold the log file. There is no file dumpfile required in IMPDP via dblink operations it's all cross-network.

    Basically, what is lacking is the DIRECTORY on the local server.

    Don't forget not also create the associated tablespace and remap if necessary.

    Kind regards

    Rodrigo

  • How s/n know when and what account perform a function using the database link?

    Dear,

    My application of the CIM team asked DBA to create new function and run it. Function must use the database link for remote database data. So I need to create a new database to their licensing link. Cause we guess we'll experience the performance issue after the user performs this function, or another question and errors may occur. So we want to know when and who use this feature that connects to a remote database through the new database connection in advance. And I also need to know when and which connect to the remote database using this new database link. We have no idea to get this information?  Can anyone recommend how do? Thank you very much.

    Best reqards, Otis.

    Check what business purpose, it will solve.  If the function is so safe, why everyone will use. Only admin people should access.

    All of these additional controls of this kind must be avoided as much as possible to improve the overall performance of the application.

    Still if you need, see the database audit mechanism, specifically designed for this type of activity.

    Kind regards

    Harman

  • Using the database links in a process of page plsql

    I try to use a database link in a process of pl/sql page.

    It works fine when I use the link name in the plsql like this:

    BEGIN 
    SELECT  
    CARD_ID 
    into   
     :P12_HDR_CARD_NUMBER  
    from     [email protected]; 
    

    But the name of the link will come an element of page (P12_DBLINK) filled as follows:

    select db_link d, db_link r from user_db_links;  
    

    I tried the following and it doesn't work:

    DECLARE 
    l_link VARCHAR2(30); 
    BEGIN 
    l_link :=  :P12_DBLINK; 
    SELECT  
    CARD_ID 
    into   
     :P12_HDR_CARD_NUMBER  
    from     fusion.EXM_CC_COMPANY_ACCOUNTS@l_link; 
    

    It gives me:

    • ORA-04052: error occurred when searching to the top of the remote object MERGER. EXM_CC_COMPANY_ACCOUNTS@L_LINK. WORLD ORA-00604: error occurred at recursive SQL level 3 ORA-02019: description of the connection to the remote database not found

    I thought that perhaps the name of the link was joined with. WORLD automatically but already has the name of the link. WORLD at the end I tried stripping first but the error is the same.

    Is there some synatx for what will work? Can I use dynamic sql statements?

    Any suggestions are most appreciated.

    Thank you

    John

    Hi John,.

    see the following example to use the execute immediate for your purpose

    SQL - Variable for the name of the database link - Stack Overflow

    Let me know if that answers your query in the active thread

  • Authentication of database through the database link

    Is it posible to use database authentication in the APEX by link of database and how?

    Also is it posible to reading user roles through the database link?

    Database links to establish the connection, so you lose the context regarding which is recorded in a single user.

    Custom authentication can do some PL/SQL you need, but I would say that replicate your tables locally through something as materialized views.

    You could also potentially be used dba_role_privs, but do not forget roles can be turned on/off.

  • strange problem with the database link

    Hello world

    I have a strange problem with the link of database in Oracle 11 g Express Edition;
    There are two computers: computer-server and the client computer. Tnsnames.ora are the same on both computers IE.

    CT =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = krzysztof) (PORT = 1521))
    )
    (CONNECT_DATA = (SERVICE_NAME = XE)
    )
    )

    I created the database link:

    Create database link zdalny
    Connect to < user_id > identified by < password >
    using "CT".

    Customer cannot connect with server when I do not use above the command. But when I change 'use' for using "krzysztof:1521" or by using "krzysztof" or "server IP:1521" - everything is ok.

    Why I ask. Because in all the materials that I read about Oracle command with the help of "CT" should work correct. But there is no. Do you know why?

    Thanks in advance and apologize me for my English.

    Rgds
    Krzysztof

    Here's the tnsnames of your server, but to connect to the oracle server db (any client or to another instance of db oracle), you must install oracle client.
    However, in your condition, you want to connect the DB1 Oracle OracleDB2 using a link db, I'm right? In this case you should always set the entry in the tnsnames.ora
    To verify that you can connect to Oracle DB2 from DB1 Oracle, you can use tnsping in the command line.
    In your case

    c:\tnsping CT
    

    Krzysztof Szymaniak wrote: CT =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = krzysztof) (PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = XE)
    )
    )

    Check your tnsnames entry in the machine, you are trying to connect to. And check if the tnsping is successful.
    Sometimes the error message says not everything, which means that you need to troubleshoot yourself and learn from the experience.
    Always in the opposite case, refer to the documentation.

    See you soon.

    Published by: Spongebob December 14, 2011 09:30

  • What I need to import the database - impdp.

    Hello
    I question as what I need if I want to create the database form DMP fiir copy made by expdp full = y.
    Now I want to cretae this database by impdp full = y BUT I have an other paths (Windows system).
    Once a week I can finally cretae instance, instance of startup and now I struggle with this oracle 'user friendlY' to create the database.
    But what I need to import the database by impdp? I think that I need software Oracle - installed instance (oradim) and after (startup nomount) and what next cretae database? and adter import DMP file form?
    How can I create thid BD if I want the same, as it is in the dmp file?

    Thanks for the replies.

    Hi all

    As the paths are different and you did export using utility datapump

    During the import, you want your data files on different paths...

    Thus, you should use Remap_datafile for sure and (if necessary) Remap_tablespace

  • a doubt on the database link

    Hi all

    I use 10.2.0.1.0 oracle.

    I had 2 databases named ( ora1, ora2 ).
    in fact, I have to connect to ora1 and to use tables, procedures exist in ora2.

    So, I've created database ora2 as database link:

    CREATE DATABASE LINK ora2_test
    CONNECT to ora1_user
    IDENTIFIED BY ora1_password
    Using of "ora1";

    Here is ora2_test name of the database link.

    Am I wrong?

    I am connected to ora1 as
    connect ora1_user/ora1_password@ora1;
    Select * from redg@ora2_test;

    but I get the error message.

    Any help please.
    Thank you

    Please post the answer as correct/useful.

    Asif kabir

  • try to reduce the database links

    Hello. Thank you for helping.


    I think my basic question is this:


    I can connect and create database links that can be used by all other users (and tablespaces?) on the server?


    I have a bad understanding of how the areas of storage, dblinks and users go together, so I'll briefly describe my setup process so you can see how I have things that can be part of the cause of my confusion, possibly in a subtle way.


    For this example, I have 2 servers with Oracle 11 g Enterprise.


    After you create a database, I then create tablespaces, users and links like this:


    On server 1:


    create storage my_app1
    create the user my_app1
    create storage my_app2
    create the user my_app2


    and so on for all areas of storage and users on the server.


    Then log in as my_app1 and create a link of database on server2:


    link_to_s2 fixed my_app3 user


    Then log in as my_app2 and create a link of database on server2:


    link_to_s2 fixed my_app3 user


    Same process on server2:


    create storage my_app3
    create the user my_app3
    create storage my_app4
    create the user my_app4


    and so on to server2.


    Then log in as my_app3 and create a database link to server1:


    link_to_s1 fixed my_app1 user


    Then log in as my_app4 and create a database link to server1:


    link_to_s1 fixed my_app1 user


    It operates well for me, except that I have to create four dblinks.


    Is everything I see how this can be simplified to create dblinks less?


    Any suggestions are greatly appreciated.

    Hello..

    Why not create a public database link.

    Documents: -.

    Specify the PUBLIC to create a public database link available to all users. If you omit this clause, the database link is private and is only available to you.
    [http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_5005.htm#sthref6315]

    Anand

  • image uploaded to the database link

    Hello

    I downloaded the images in my server so now I want to show on different pages using php and mysql, so can someone tell me how I can do this in dreamweaver php codes or manual?

    Please begin your answer of the way to start step I have to do after the download of the image, I also know a database table also be require for images should this complete tutorial please. Therefore, please answer thank you.

    tanveerh86603130 wrote:

    I mean if I have uploaed images manually on the server and now when I create a new page in php with the mysql database and want to inlucde one of these uploaded image dynamcally, so how I can do, how can I create table for these images and then use this table for u place links to this image?

    If youre doing this manually - you should now have all your images in a folder on your server.

    To get dynamically on a page, you must include the name of the image in the database table.

    Create another field in your database table called - model_image

    Then insert the name of the image in this area, associated with the mobile _name - nokia_1100.jpg, samsung_2300.jpg etc.

    Back in your page model_details.php use a query as I pointed out in the other thread:

    $model_details = mysql_query ("" SELECT * FROM mobile_phones WHERE model_id = ' $model_id ' ' ") or die (mysql_error ());

    $model_details = mysql_fetch_array ($model_details);

    Then echo the image of the page according to the model_id adopted in the link to the model_details.php page. (replace "folder_name' by the name of the folder in which images are stored)

    as well as its other fields:

    All this can be done through server Dreamweavers behaviors if you do want to write your own code. Don't forget the code that Dreamweaver now uses dynamic development is outdated.

  • is there an Adobe very good tool to import the database of Apple Aperture?

    Hello

    I'm looking for the best way to import Aperture any database an Apple project library (with different raws format - Canon 5 d Mark II and MDG-5 Olympus) with corrections applied or not to the work of the copies of the photos? And of course with the photos they were photographed? Opening creates a working copy with adjustments and "holds" the original photo. But I'm not sure that there are as many photos and copies. I know best are the original photos with settings settings? I'm not on that, but if someone has an answer, it is welcome!

    And with an import, it is possible to maintain the "inverse" of corrections too? It is possible in the opening to do. I can change many settings and then cancel one or more of them. If I import the library of my opening with many projects, I wonder if this compatibility is possible?

    Best,

    Pascal (Paris)

    You may want to read ready to spend the opening or iPhoto? Lightroom Queen

    Of course, not import all that is in the opening, some concepts in Aperture simply exist not in Lightroom, and other features of Aperture are approximated by similar tools in Lightroom, rather than be an exact match.

    I can change many settings and then cancel one or more of them. If I import the library of my opening with many projects, I wonder if this compatibility is possible?

    This has nothing to do with the importation of Aperture. Yes, in Lightroom, if you set the exposure to 0.5, and then you want to cancel it, you just set the exposure back to zero.

  • ONLY INSERT OR DELETE THE PRIVILEGE TO THE DATABASE LINK

    Hi all

    Version of DB 11.2.0.1

    RedHat 5.5 operating system

    I created a link to private database by following the path

    create database link test_link

    connect to Scott identified by tiger

    using

    '(DESCRIPTION =)

    (ADDRESS = (PROTOCOL = TCP) (HOST = 10.194.180.45)(PORT = 1521))

    (CONNECT_DATA =

    (SERVER = DEDICATED)

    (SERVICE_NAME = prod)

    )

    )'

    The link is created successfully and I am able to perform all the DML operations on it.

    The Question is there a way by which we can give only insert or delete or privilege is not to remove from the table at this link.

    For operations select only, I know that by creating a view I can restrict the remote user, but is there a way by which I can give only insert or remove remove link of database.

    You can not grant any privilege to a link. Can you and your team identify a location in the documentation, if required?

    By default, a remote session will get the same privilege as the user to which it connects.

    BTW:

    • do not use a database link tnsnames.ora makes your hard to maintain link
    • using addresses IP hard in a database link makes your link even more difficult to maintain
    • by specifying a hardcoded password in a database link is a breach of security.

    -------------

    Sybrand Bakker

    Senior Oracle DBA

  • ORA-03113 while using the database link

    From our database, we use a database link to query on a different database tables: they are the two 10.2.0.4
    It is not always occur, but often. You have an idea? Thank you

    Take a look at this note:
    ORA-03113 UNIX - what information collect [ID 17613.1]

  • Create the database link

    Hi guys!

    I'm having problems creating a data link...
    I enter something like < IP >: < PORT > / < SID > in the SERVICE NAME field and the Assistant returns me error message.
    This structure for THE SERVICE NAME is correct?

    Thank you.

    Hello

    I think the nomenclature might be a little better. During create/edit the entry box is marked but the Service name in outdoor, HOMEtab, and in fact both are misleading.

    Looks like you want to use the format EZConnect [host: port / service name].
    http://www.orafaq.com/wiki/EZCONNECT

    Service_name is generally SID.domain, but you can get away with only SID since many products add the local domain name. It can work if you leave off of the area, but local and remote domain names are the same.

    It's really much easier to use a TNS alias if you have a local listener running with the appropriate entry in the tnsnames.ora file. Thus, for example, in my environment my sqlnet.ora file contains this line:

    NAMES. DIRECTORY_PATH = (TNSNAMES, EZCONNECT)

    My remote database THAT SID is ora1122 on, say, xyz1234567 to the remote computer and I have a TNS alias entry of the xyz1122 in my local tnsnames.ora file. Given these parameters, I am able to create the database to help link

    xyz1122

    or

    xyz1234567:1521/ora1122.us.Oracle.com

    Thus the first case depends on all: the local listener running, the tnsnames.ora and sqlnet.ora parameters. The second case only on rethinking the host, port, and service. And, in my environment, I actually couldn't give up the domain name. us.Oracle.com.

    I hope that this more detailed example is aid,
    Gary

  • v ('APP_USER') on the database link

    We have an APEX appliocation that updates the tables via 2 database llinks VIEWS

    the views were created in select * from Employee@DBLINK for example

    on each of the remote databases, we have implemented a package of verification which has been copied from another application and is called from the triggers

    the following INSERT statement works very well when demand and the DB tables are not using the links

    INSERT INTO AUDIT_TBL (TIMESTAMP, WHO, TNOM, CNAME, OLD, NEW, GCI)
    VALUES
    (sysdate, v ('app_user'), upper (l_tname), upper (l_cname),)
    l_old, l_new, l_GCI);

    but when the table is updated via the points of view on data base linking the value of v('app_user') is null

    no idea how I can fill this value on the links

    Thanks in advance

    Chris

    Hello

    If you set the client_info context when the user connects so yes it will happen. Apex sessions are pooled are reused by different users. That's why when a database of apex session creates a session on the remote database so that remote session is reused until the closing of the database session and therefore will be used by different users of the Apex. The client_info context is a session context and will be set for the duration of the session.

    Therefore, you must set the context when the page is processed before we do each remote update. You can also issue an ALTER SESSION CLOSE DATABASE LINK to ensure that the remote session is closed and cannot be reused, but this should not be necessary.

    Rod West

Maybe you are looking for

  • Right click menu items of modules have changed

    For some reason, I'll only have this problem on my work computer, not at home, even though I know I am running the same version of Firefox and most of the same extensions (both computers running Windows 7, too). I have at least three different add-on

  • Satellite L300-15V - how to restore BIOS & DMI?

    Hello! Please help restore the default settings of the BIOS and its content very.DMI is necessary to restore the data, and the value of SN, UUID and others, this utility is not found.Laptop: Toshiba Satellite L300-15VModel: PSLBCE-00L008RU Does not w

  • Faxing from El Capitan

    I discovered that fax by OS - X is no longer supported in OS - X (El Capitan). Why Apple without this ability? Why Apple to take the choice to print in black with a color printer? It is very disappointing find new features in an update to find other

  • M91p 32-bit Ram question

    Hi all I've recently updated my i7 m91p of ram from 4 to 16 gigs, the max allowed on my machine. However only 2.8 are usable, I said that it is because I am on 32-bit os and need to clean install a 64-bit. How would I know if I can install 64, techni

  • spittoon

    Very well. Had to buy for my H470 spittoon. Received today. Why is there no instructions accompanying the replacement part? Where they would be?