copy tables/views inside Oracle 10g

Posted on 2008-11-15
Last Modified: 2013-12-19
How I can copy tables/view from database to database inside Oracle 10g ?

Source database on server
Target database in client
Question by:interbus
    LVL 27

    Accepted Solution

    You can use any of the following methods
    1. import/export
    2. CREATE TABLE <table name> AS SELECT * FROM <table name>@<db link name>
    Here you need to have a db link between your client database and the server database.

    LVL 28

    Assisted Solution

    also you can use sql*plus copy ( NOT a sql command ) command in the target client database as shown below :

    sample example for the same is

    SQL> copy from scott/tiger@ORCL92 -
         to scott/tiger@ORCL92-
         create new_emp 
         using select * from emp;

    See the below links with detailed information on  the same :*Plus_FAQ#How_does_one_copy_data_from_one_database_to_another_in_SQL.2APlus.3F

    also from 10g, you can use expdp/impdp ( export dump/import dump utilities ) which offer a lot of new features when compared to traditional export and import.

    Author Comment

    If I want to copy whole database from source to target
    LVL 27

    Expert Comment

    with option full=Y

    Author Comment

    Hello sujith80

    This is a command or what ?
    with option full=Y

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Suggested Solutions

    Truncate is a DDL Command where as Delete is a DML Command. Both will delete data from table, but what is the difference between these below statements truncate table <table_name> ?? delete from <table_name> ?? The first command cannot be …
    Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
    This video shows syntax for various backup options while discussing how the different basic backup types work.  It explains how to take full backups, incremental level 0 backups, incremental level 1 backups in both differential and cumulative mode a…
    This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function

    758 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now