Solved

Can I use copy command in PL/SQL?

Posted on 1999-01-29
4
1,632 Views
Last Modified: 2008-02-26
Can I use copy(SQL Plus command, not the OS copy command) command in PL/SQL?
If I can't why?
0
Comment
Question by:srikumar_p
  • 2
4 Comments
 
LVL 35

Expert Comment

by:Mark Geerlings
ID: 1083907
What are you trying to copy? Data from one Oracle table to another?  An operating system file? Something else?
0
 

Author Comment

by:srikumar_p
ID: 1083908
Data from one table to another.
Another question is
Will copy command create redo while copying?
0
 
LVL 2

Accepted Solution

by:
avico earned 50 total points
ID: 1083909
Absolutely No !

The copy command is a part of the product SQL*Plus, and it's neither an SQL command nor a Pl/Sql command.
You can find enforcements in Oracle's documentation, in the SQL*Plus book.

Regarding your second question, SQL*Plus copy command does generate redo data. In fact, everything you do in Oracle generates a redo data, except whenever you (can) use the 'UNRECOVERABLE' predict. For instance, the following command will not generate redeo data :
Alter index idx rebuild tablespace indexes unrecoverable;Create table a as select * from b;

The copy command simply does smart inserts.
0
 

Author Comment

by:srikumar_p
ID: 1083910
Looks perfect. How can I check whether it generates redo or not?
0

Featured Post

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Note: this article covers simple compression. Oracle introduced in version 11g release 2 a new feature called Advanced Compression which is not covered here. General principle of Oracle compression Oracle compression is a way of reducing the d…
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
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…

830 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