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.
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.
You could then use that database link to query data from database B, i.e.
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
which can be invoked either via EXEC from SQL*Plus or via an anonymous PL/SQL block
Or you could write a SQL*Plus script