Solved

Can I use copy command in PL/SQL?

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

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.

Join & Write a Comment

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.
From implementing a password expiration date, to datatype conversions and file export options, these are some useful settings I've found in Jasper Server.
Via a live example show how to connect to RMAN, make basic configuration settings changes and then take a backup of a demo database
This video shows how to Export data from an Oracle database using the Original Export Utility.  The corresponding Import utility, which works the same way is referenced, but not demonstrated.

760 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

19 Experts available now in Live!

Get 1:1 Help Now