Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6111349
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T14:37:14+00:00 2026-05-23T14:37:14+00:00

I’m new to Oracle, and I am working on moving specific data from a

  • 0

I’m new to Oracle, and I am working on moving specific data from a DB on one server to the DB on another server.

The two DBs have the same schema, but I want to pull specific columns referenced by their keys and move the data into other server. I’m trying to figure out what the best plan of attack on this would be.

A method that allows a command line just so I can type in the key of the data I want moved is preferred. Is it perhaps possible to accomplish with a PLSQL script?

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T14:37:14+00:00Added an answer on May 23, 2026 at 2:37 pm

    Assuming that you can create network connections between the two databases, the simplest option would be to create a database link between them, i.e.

    CREATE DATABASE LINK to_b
      CONNECT TO username_on_b
      IDENTIFIED BY password
      USING 'tns_alias_for_b'
    

    You could then use that database link to query data from database B, i.e.

    INSERT INTO table_name( list_of_columns )
      SELECT list_of_columns
        FROM table_name@to_b
       WHERE primary_key_value = <<some value>>;
    

    That can be either a straight SQL statement, part of a PL/SQL procedure, or part of a SQL*Plus script. A PL/SQL procedure

    CREATE OR REPLACE PROCEDURE move_row_from_b( 
      p_key_value IN table_name.primary_key%type 
    )
    AS
    BEGIN
      INSERT INTO table_name( list_of_columns )
        SELECT list_of_columns
          FROM table_name@to_b
         WHERE primary_key_value = p_key_value;
    END move_row_from_b;
    

    which can be invoked either via EXEC from SQL*Plus or via an anonymous PL/SQL block

    SQL> exec move_row_from_b( 23 );
    
    BEGIN
      move_row_from_b( 23 );
    END;
    

    Or you could write a SQL*Plus script

    variable key_value number;
    accept key_value prompt 'Enter key: '
    INSERT INTO table_name( list_of_columns )
      SELECT list_of_columns
        FROM table_name@to_b
       WHERE primary_key_value = :key_value;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I have a text area in my form which accepts all possible characters from
I have a bunch of posts stored in text files formatted in yaml/textile (from
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
I have a jquery bug and I've been looking for hours now, I can't
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
For some reason, after submitting a string like this Jack’s Spindle from a text
this is what i have right now Drawing an RSS feed into the php,
I am reading a book about Javascript and jQuery and using one of the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.