Import data over the network link in oracle 11 g

We want to take the export of the NDO schema in database production and
import in the scheme of the NDO in UAT database on a network
link using data in Oracle 11 g pump. Kindly share the steps.

Scenario:
Directly import the schema of TEST01 in the production database (oraodrmu) to test the oraodrmt database, on
a network to help pump link and data from database in Oracle 11 g.

Note: When you perform an import via a database link, the import source is a database, not a dump file set, and the data is imported to the connected instance of database.
Because the link may identify a database remotely in a network, the database of terms link and the network link are used interchangeably.

=================================================================
STEP 1 (IN PRODUCTION DATABASE - oraodrmu)
=================================================================

[root@szoddb01] > su - oraodrmu

Enter the user name: virtue sysdba
Connected to:
Oracle Database 11 g Enterprise Edition Release 11.2.0.2.0 - 64 bit Production
With partitioning, OLAP, Data Mining and Real Application Testing options

SQL > grant resources to test01.

Grant succeeded.

SQL > grant imp_full_database to test01.

Grant succeeded.

SQL > select owner, object_type, status, count (*) in the dba_objects where owner = "TEST01" group by owner, object_type, status;

OWNER OBJECT_TYPE STATUS COUNT (*)
------------------------------ ------------------- ------- ----------
TEST01 PROCEDURE VALID 2
TEST01 TABLE 419 VALID
TEST01 SEQUENCE VALID 3
TEST01 FUNCTION VALID 8
TEST01 TRIGGER 3 VALID
TEST01 INDEX VALID 545
TEST01 LOB 18 VALID

7 selected lines.

SQL >
SQL > define pages 999
SQL > format 'size Mo' 999 999 999 col
SQL > col 'objects' format 999 999 999
SQL > select obj.owner 'owner '.
obj_cnt 2, 'objects '.
3, decode (seg_size, NULL, 0, seg_size) 'size MB.
4 of (select master, the obj_cnt of count (*) group by owner dba_objects) obj
5, (select master, ceil (sum (bytes) / 1024/1024) seg_size)
6 Group dba_segments by owner) seg
7 where obj.owner = seg.owner (+)
Order of 8 by 3 desc, desc 2, 1
9.

Size of the objects owner MB
------------------------------ ------------ ------------
NDO 8 097 284 011
9 601 1 912 SYS
998 1 164 TEST01

3 selected lines.

SQL > exit

=================================================================
STEP-2 (in TEST DATABASE - oraodrmt)
=================================================================

[root@szoddb01] > su - oraodrmt

[oraodrmt@szoddb01] > sqlplus

SQL * more: Production release 11.2.0.2.0 on Mon 3 dec 18:40:16 2012

Copyright (c) 1982, 2010, Oracle. All rights reserved.

Enter the user name: virtue sysdba

Connected to:
Oracle Database 11 g Enterprise Edition Release 11.2.0.2.0 - 64 bit Production
With partitioning, OLAP, Data Mining and Real Application Testing options

SQL > select name, open_mode from v$ database;

NAME OPEN_MODE
--------- --------------------
ODRMT READ WRITE

SQL > create tablespace test_test datafile ' / trn_u04/oradata/odrmt/test01.dbf' size 2048 m;

Created tablespace.

SQL > create user identified by test123, default tablespace test01 test_test;

Created by the user.

SQL > grant resources, create session to test01.

Grant succeeded.

SQL > grant permission to test01.

Grant succeeded.

SQL > grant imp_FULL_DATABASE to test01.

Grant succeeded.

Note: ODRMU is the name of hoste DNS. We can test the connection with: [oraodrmt@szoddb01] > sqlplus test01/test01@odrmu

SQL > create directory test_network_dump as ' / dbdump/test_exp ";

Created directory.

SQL > grant read, write on directory test_network_dump to test01.

Grant succeeded.

SQL > conn test01/test123
Connected.

SQL > DATABASE LINK remote_test CONNECT TO test01 identified by test01 to create with the HELP of "ODRMU";

Database link created.

To test the link of database, we can try the sql below:

SQL > select count (*) in OA_APVARIABLENAME@remote_test;

COUNT (*)
----------
59

SQL > exit

[oraodrmt@szoddb01] > impdp test01/test123 network_link = remote_test = test_network_dump remap_schema = test01:test01 logfile directory = impdp__networklink_grms.log;
[oraodrmt@szoddb01] >

Import: Release 11.2.0.2.0 - Production on Mon 3 19:42:47 dec 2012

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

Connected to: Oracle Database 11 g Enterprise Edition Release 11.2.0.2.0 - 64 bit Production
With partitioning, OLAP, Data Mining and Real Application Testing options
Departure "TEST01". "' SYS_IMPORT_SCHEMA_01 ': test01 / * network_link = remote_test = test_network_dump remap_schema = test01:test01 impdp_grms_networklink.log = logfile directory
Current estimation using BLOCKS method...
Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
Total estimation using BLOCKS method: 318,5 MB
Processing object type SCHEMA_EXPORT/USER
ORA-31684: USER object Type: "TEST01" already exists
Processing object type SCHEMA_EXPORT/SYSTEM_GRANT
Processing object type SCHEMA_EXPORT/ROLE_GRANT
Processing object type SCHEMA_EXPORT/DEFAULT_ROLE
Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA
Object type SCHEMA_EXPORT/SEQUENCE/SEQUENCE of treatment
Object type SCHEMA_EXPORT/TABLE/TABLE processing
. . imported "TEST01". "' SY_TASK_HISTORY ' 779914 lines
. . imported "TEST01". "' JCR_JNL_JOURNAL ' 603 lines
. . imported "TEST01". "" 1229 GX_GROUP_SHELL lines.
. . . .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .
. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..
. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..
. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..

Work "TEST01". "" SYS_IMPORT_SCHEMA_01 "completed with error (s 1) at 19:45:19

[oraodrmt@szoddb01] > sqlplus

SQL * more: Production release 11.2.0.2.0 on Mon 3 dec 19:46:04 2012

Copyright (c) 1982, 2010, Oracle. All rights reserved.

Enter the user name: virtue sysdba

Connected to:
Oracle Database 11 g Enterprise Edition Release 11.2.0.2.0 - 64 bit Production
With partitioning, OLAP, Data Mining and Real Application Testing options

SQL > select owner, object_type, status, count (*) in the dba_objects where owner = "TEST01" group by owner, object_type, status;

OWNER OBJECT_TYPE STATUS COUNT (*)
------------------------------ ------------------- ------- ----------
TEST01 PROCEDURE VALID 2
TEST01 TABLE 419 VALID
TEST01 SEQUENCE VALID 3
TEST01 FUNCTION VALID 8
TEST01 TRIGGER 3 VALID
TEST01 INDEX VALID 545
TEST01 LOB 18 VALID
TEST01 DATABASE LINK VALID 1

8 selected lines.

SQL >
SQL > define pages 999
SQL > format 'size Mo' 999 999 999 col
SQL > col 'objects' format 999 999 999
SQL > select obj.owner 'owner '.
obj_cnt 2, 'objects '.
3, decode (seg_size, NULL, 0, seg_size) 'size MB.
4 of (select master, the obj_cnt of count (*) group by owner dba_objects) obj
5, (select master, ceil (sum (bytes) / 1024/1024) seg_size)
6 Group dba_segments by owner) seg
7 where obj.owner = seg.owner (+)
Order of 8 by 3 desc, desc 2, 1
9.

Size of the objects owner MB
------------------------------ ------------ ------------
NDO 8 065 247 529
9 554 6 507 SYS
999 1 164 TEST01

13 selected lines.

=================================================================
STEP 3 TO REMOVE THE LINK OF DATABASE
=================================================================

[oraodrmt@szoddb01] > sqlplus

SQL * more: Production release 11.2.0.2.0 on Mon 3 dec 19:16:01, 2012

Copyright (c) 1982, 2010, Oracle. All rights reserved.

Enter the user name: virtue sysdba

Connected to:
Oracle Database 11 g Enterprise Edition Release 11.2.0.2.0 - 64 bit Production
With partitioning, OLAP, Data Mining and Real Application Testing options

SQL > drop database link remote_test;

Database link dropped.

Tags: Database

Similar Questions

  • Why convert? What is the advantage? Why convert it before you send the data over the network?

    Hello everyone.

    I have a question quite simple and intuitive. Yet Google does not seam to get the answer.

    Basically, I'm curious why should we catalogued something? It seems to me that it's just a little like a "band-aid" for editing data in conversion to a new data type, when it is not properly declared with an appropriate data type. What would be the advantage of this?

    Furthermore, I see a lot of data type casting to U8 programs before sending it over the network. Various reviews say it's for speed, but I can't understand how it improves speed. The same amount of data is still sent, just in a different type of data. This is overcoming a limitation of the network. The network somehow send smaller data types faster?

    I've been curious about this for a while and have yet to find an answer. Any help is appreciated.

    Thank you
    Taylor S. Amarel

    tsa256 wrote:

    Basically, I'm curious why should we catalogued something? It seems to me that it's just a little like a "band-aid" for editing data in conversion to a new data type, when it is not properly declared with an appropriate data type. What would be the advantage of this?

    It really depends on the specific situations.

    For example, some functions explicitly require certain types of data as inputs if they are not polymorphic.

    This means that if you do not convert the data yourself and you will see a red dot forced LabVIEW will do it for you.

    As to why the data was not the correct data type in the first place, it is sometimes inevitable.

    A few examples

    -What happens if you just read a text file as a long string.

    If there is digital data in this file, you need to analyze, and then convert it to a usable type (int, sgl, dbl, etc.)

    -you are given a 3rd part VI, dll, etc. that returns a numeric value as a double, but you need the value to I8.

    You cannot change the output of the function given to you, so what you can do to remedy this situation is cataloged data.

    tsa256 wrote:

    Furthermore, I see a lot of data type casting to U8 programs before sending it over the network. Various reviews say it's for speed, but I can't understand how it improves speed. The same amount of data is still sent, just in a different type of data. This is overcoming a limitation of the network. The network somehow send smaller data types faster?

    Somehow, this is my first response, but in a more general sense.

    Many functions down to the level of the OS run in binary.

    If your data are not already in binary, the sending computer must convert it to binary, and then send it, have the receiving computer convert in return.

    Two conversions on each side of the transmission add unnecessary delays.

  • How does a datapump decide exactly the RCS over a network link?

    I have a question. I use flashback_scn on one of my scripts and I was wondering if I have not specufy the flashback_scn?

    How does the data pump without flashback_scn on network_link? How does he decide to what YVERT must export?

    I am importing about 40 gigabytes of data which easily takes 2-3 hours on the network link.
    He decides on the SNA at the start of the work?

    What new data coming in 2-3 hours after I started the import job?

    Looked around in the documentation, but could not find any useful information on this.

    If you do not specify flashback_scn or flashback_time then only data that matches data in partitioned tables. It could also include nested tables, but it does include all the tables.

    Let's say your network work includes these objects table_data and they are exported in this order and say that you add enough data to add 1000 to the RCS every 1/2 hour:

    time object Yvert
    11:30 table0 - unpartitioned 1000
    12:00 table1:partition1 2000
    12:30 table2 - non-partitioned 3000
    01:00 table1:partition2 2000
    01:30 table3 - non-partitioned 5000
    02:00 table1.partition3 2000

    If you do not specify a parameter of flashback, then only compatible data for table1. All 3 partitions will be exported with the SNA even. The CPN is the RCS at the first partition is exported. In the case precedent, if the first to export data of SNA 1000 the first partition of table 1 is exported from SNA 2000, then all partitions table 1 will be exported from SNA 2000. No other data is forced to be exported to the SNA 2000.

    In exp/imp, you could say in line = y, but is not available in expdp/impdp. If you want all the data, you must specify a parameter of blowback. One of the easiest ways is to use:

    flashback_time = sysdate

    There was a problem with it in version 10 and I know it's fixed, but I do not know more what version it is attached to.

    Dean

  • HP ENVY 4520: HP Envy 4520 - refusing to Scan over the network

    Hello

    We currently have a HP Envy 4520, which print, however don't scan or copy over the network.

    I have downloaded and run the HP doctor tool, but it crashes to Windows Image Acquisition (WIA). This article has been read a few topics here, I restarted the following three services:

    1. Remote procedure call (RPC)
    2. Shell Hardwarew
    3. Windows Image Acquisition (WIA)

    Once I finished at the outset what precedes, the scanner worked as expected. However after a reboot - the problem is more severe. The doctor program crashes at the same section and restart services fail to achieve something.

    All software and drivers are up-to-date by using what has been provided on the HP website.

    The error messages vary as well, for example Adobe, I see "fatal error. Commissioning stopped. "

    Hi @DocCottle

    Thanks for your response!

    I managed to solve the problem. After you reset the windows service, you must then make sure that the printer restarts too! I didn't do that. Once done all is well!

  • import data into the different tablespace

    Hello

    I had exported a my schema of production data now I want to import data in the schema of the trial, I had mentioned the tablespace default for the trial scheme, but when I import data is not taking default tablespace of schema of its database taking default tablespace. How to import data into the different tablespace. In remap_tablespace where I can specify the touser.

    my version of oracle database:

    BANNER
    ----------------------------------------------------------------
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
    PL/SQL Release 10.2.0.1.0 - Production
    CORE 10.2.0.1.0 Production
    AMT for 32-bit Windows: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production

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

    Raj wrote:
    Hello

    I had exported a my schema of production data now I want to import data in the schema of the trial, I had mentioned the tablespace default for the trial scheme, but when I import data is not taking default tablespace of schema of its database taking default tablespace. How to import data into the different tablespace. In remap_tablespace where I can specify the touser.

    my version of oracle database:

    BANNER
    ----------------------------------------------------------------
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
    PL/SQL Release 10.2.0.1.0 - Production
    CORE 10.2.0.1.0 Production
    AMT for 32-bit Windows: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production

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

    If your storage source and destination areas are different, you must use the remap_tablespace option.
    example:

    System $impdp / * directory = data_pump_dir dumpfile = logfile = schema_refresh.log remap_schema = Prd_schema:Tst_schema remap_tablespace = prd_TBS:tst:TBS schema_refresh.dmp

  • LaserJet P2055DN - do not print over the network

    Configure the printer last night as a network printer (which replaces a former 2300dn LJ). It would not print a test page. To verify that the printer was good, I have loaded the drivers on my laptop and connected via usb.  Was able to print a page of test via USB.  Disconnected usb and reconnected power cable. Released and reset the ip address.  Verified the ip address in scathing of the host.   When I ping the printer I usually lose half of the packages.  There are two other HP printers on the network, a P2015dn and a color 2605dn LJ. Ping their IP back to 100% with a ttl = 255. Ping the p2055 produced 4 packets sent, 2 packets received, 2 lost packets, ttl = 64 2 returns.  I changed the printer cables and exchanged the network switch ports (verified the network switch ports by printing to the LJ 2605) with the same result. I can't get the internal web server to mount, or it partially displays or combinations of these.  If this was the old style removable print server as in my lj2300, I could swap out, but it's not like I can do with this model.  When I send a test page to the printer, it displays "printing", the green light on top flashes, the activity on the network card light flashes, but nothing happens. Finally, I get a «this document failed to print "notification on the host, but the printer still says 'printing' and the lights are still flashing.»  Anyone have any ideas?  I think I'm looking at a bad network/print the server maps in the P2055.

    I also had problems printing over the network to the hp p2055dn. There was no problem via USB printing. All the network settings were ok. Can ping, etc...

    Number of days of bickering, finally found that the Config.Security Network should be reset on the physical control of the printer Panel.

    Press Ok on the Control Panel printer--> press down arrow, you get to Setup Menu Network Config--> press Ok--> a number of arrows down you get to Config network. Security--> press Ok--> you have two options - keep or reset--> choose Reset... Network printing should work fine.

  • I can restore the backup made by WHS v1. PP3 the WHS 2011? Or do I need to copy the files over the network of old serevr again?

    WHS backup

    You just bought a new WHS 2011. Question, can I restore the backup made by WHS v1. PP3 the WHS 2011?  Or do I need to copy the files over the network of old serevr again?

    Hello

    Because the problem is with Windows Home Server, I recommend you post this question in the Forums Windows Home Server.

  • HP 2520HC: install the software of the printer over the network

    Hello

    I use the HP 2520HC series at the office. I use a network connection.

    Printing works fine, however I want to be able to scan as well. I downloaded the printing software, but the only option I choose, connect via USB? The printer is connected to another PC, so this isn't an option.

    Please help me.

    Hello

    such a USB printer allow only all features on a directly connected USB computer.

    Sharing a printer over the network allows sharing of a printer, Windows don't offer any scanner, the sharing feature.

    You can print from another PC to a shared printer, you will not be able to analyze such, to analyze the use of the computer connected directly to your printer via a USB port.

    Kind regards

    Shlomi

  • try to print from my Win7 x 64 laptop over the network (homegroup or workgroup) to an enslaved Dell Photo AIO Printer 926

    I'm trying to print from my Win7 x 64 laptop over the network (homegroup or workgroup) to an enslaved Dell Photo AIO Printer 926.  When I look for the computer on the laptop, I find, it seems to be fine, but when I print a job, the print job is in the queue on the laptop and does not send the job to the desktop printer.  I had it once before but a relocation removed.  I'm not sure why I see the desktop of my laptop printer but cannot get it working again.

    Any advice?  Thank you

    You need the Windows7 x 64 drivers for the printer (and perhaps software and fimware) installed on your laptop to be able to print using the printer on another computer if he uses another operating system...  Maybe when you reinstalled you forgot to install these things.  Try this and see if you can then print.

    If this does not help, please post in the Forums Windows7; http://social.answers.Microsoft.com/forums/en-us/category/Windows7 where Windows7 experts will be happy to help you.

    I hope this helps.

    Good luck!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • printer cannot be contacted over the network

    I have a HP deskjet 656 printer that I added as a network printer. I installed it on my computer laptop windows 7, which went well. However it does not print. The touble shooter printer tells me to 'the printer cannot be contacted over the network. It works from another laptop I have but not my laptop Windows 7.

    I had a similar problem with my new Windows 7 laptop. After a power failure, the laptop would not recognize my HP printer and the error was that "the printer cannot be contacted over the network" so I spent a lot of time to solve the problem. Finally helped the simplest thing was that I removed this printer in my list of printers and added again using the "Add a printer" Wizard and it worked perfectly!

  • RICOH Aficio 1045 Pcl 6 cannot be contacted over the network

    I am running Windows 7 Pro 64-bit and I try to install a printer multifunction Ricoh Aficio 1045 on a network. I was able to do a typical "add a printer" and everything seemed fine, but I can't print. When I run the troubleshooting printer I get the following error 'printer RICOH Aficio 1045 Pcl 6 cannot be contacted over the network. He said to contact my system administrator. I don't have a system administrator. I'm open to any ideas on this one.

    Printer driver from the site Web RICOH (PLC 6 pilot - worm. 3.1.0.0 r31047en)

    Intel i7 - 3770 k @3. 5 GHz (8cpu)

    16384 MB of ram

    AMD (ATI) V over-pants 725 MB graphics card

    I actually solved myself yesterday.  I installed the printer using its ip address and the PL5e driver and it worked fine.  Thank you. .

  • I can't get my printer to connect to my laptop. It is said repeatedly 'cannot be contacted over the network, the network administrator.

    No matter what I try, I can't have my printer to connect to my laptop.  Continually, he said "cannot be contacted over the network, the network administrator.  I made this and conducted many helps out.

    What can I do now?

    Thank you.

    Pamela

    Hi Pamela,.

    This must be different. Rest assured that we would do our best to help you.

    Please answer the following questions that would help us to understand the issue.
    1. What is the brand and model of the printer?
    2. What are the troubleshooting steps you have tried so far?
    3. were there any changes made to the computer before the question?
    4. how you try to install the printer?
     
    Read the following article that helps you identify and fix common printer problems in Windows.
    Printer in Windows problems
     
    If you have any questions do not hesitate to answer, we would be happy to help.
  • hp 8600 printer cannot be contacted over the network and the printer is not enabled.

    hp 8600 printer cannot be contacted over the network and the printer is not enabled.

    the HP software installed on the PC on the floor. Print wireless from PC upstairs and the PC in the basement on the network for the last month up to yesterday

    Now to receive above - two error messages cannot be contacted ove RL network and the printer is turned off.

    Reality - the printer IS on and the PC on the floor can print to the printer.  Network on the printer symbol says it is connected to the network.

    a reason any PC in the basement all the cant suddenly find the network and the printer?

    Hello

    The first thing I would do is follow step 6 in this document to set a static IP address: http://support.hp.com/us-en/document/c02817031
    When it askes for the DNS information, enter in Google DNS. Preferred DNS = DNS Alt = 8.8.4.4 8.8.8.8

    This could increase the stability of the network connection to the printer downstairs.  If this does not help, let me know what OS is on the computer causing problem, because that could cause a problem?  Other than that, you can check the quality of the signal you get form the network and see if this can be a problem.

  • importing data from the old system to the new system, key to the raw16 column

    Hi, experts,

    now I have a new system, the design of the system is to use raw (16) column as the key column in all tables of database.
    of course, when the new system goes live (in production), new records of transactions are written to the new database system.
    When the new system inserts new records, it manages itself to avoid any conflict of the raw key column value (16)


    Now, I'm dealing with this problem:

    I need to import data from the old system to the new system, I use sys_guid() to fill the column raw (16) into the new database system.
    How can I avoid conflicts of raw column value (16) between the old system data and the new data of database system?

    the sql code I write is very simple:

    insert into new_sys_table_a (key_column_raw_16,...,...)
    Select sys_guid(), old_sys_col_a, old_sys_col_b
    of old_sys_table_a;
    insert into new_sys_table_a (key_column_raw_16, col1, col2 )
    select key_column_raw_16, col1, col2
    from old_sys_table_a;
    
  • Import data from the text file to open the Document

    This should seem simple, but I can't find a way to import a text file delimited to tab automatically on opening the document.  I can open my form fill pdf document, select Forms > more form Options > data management > Import Data > change the bottom right "Text (*.txt) files" file type, select the file, then import with no problems.  I can't find a way to do this automatically when the document opens.  I know a *.fdf file will do, but my data are in a tab delimited text file.  If this is not possible, is there a program or a script that will convert *.txt to import *.fdf?  Thanks for your time.  Steve

    Have you looked at using custom JavaScript?

    importTextData

    You will need to work on how the data file select the line form.

Maybe you are looking for