Solved

Can I use copy command in PL/SQL?

Posted on 1999-01-29
4
1,626 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
levels for reporting 5 65
data lookup in Oracle - need suggestions 55 104
Oracle Pivot Question 8 45
Oracle SQL syntax check  without executing 6 38
Background In several of the companies I have worked for, I noticed that corporate reporting is off loaded from the production database and done mainly on a clone database which needs to be kept up to date daily by various means, be it a logical…
How to Unravel a Tricky Query Introduction If you browse through the Oracle zones or any of the other database-related zones you'll come across some complicated solutions and sometimes you'll just have to wonder how anyone came up with them.  â€¦
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
This video explains what a user managed backup is and shows how to take one, providing a couple of simple example scripts.

863 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

24 Experts available now in Live!

Get 1:1 Help Now