1. how do you delete duplicate rows in a table?
2. can you disable and enable primary key?
3. how do you move tables from one tablespace to another
tablespace?????

Answer Posted / mohapatra.gouranga@gmail.com

1. DELETE FROM table_name A WHERE ROWID > (SELECT min
(rowid) FROM table_name B WHERE A.key_values =
B.key_values);

2. can you disable and enable primary key?
Yes,
e.g., alter table EHIS.HIPARTRANSACTIONDETAILS DISABLE
constraint FK_HIPAR_TRANS

3. how do you move tables/indexes from one tablespace to
another tablespace?

ALTER TABLE <schemaname.tablename> MOVE TABLESPACE
<tablespace_name>;

alter index <owner.indexname> rebuild online tablespace
<target_tablespace_name>;

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Database is hung. Old and new user connections alike hang on impact. What do you do? Your SYS SQLPLUS session IS able to connect.

1548


what functionality does oracle provide to secure sensitive information?

554


which background process invoke at the time of upgradation tell me???

2229


Which autogrowth database setting is good? : sql server DBA

581


how can you connect from 10g user to 11g user??

1681






What are the different types of database compression introduced in sql server 2008? : sql server DBA

565


What are the different types of upgrades that can be performed in sql server? : sql server DBA

681


What are the different ways you can create databases in sql server? : sql server DBA

599


List out some of the requirements to setup a sql server failover cluster.? : sql server DBA

709


Claims and Drains are the locks used to control the concurrency between SQL processes and utilities. Referring to the above statement, what is the maximum number of concurrent Claimers for a Subsystem? Choice 1 32 Choice 2 64 Choice 3 128 Choice 4 256 Choice 5 No limit

1837


when we login sql editor using username and password then it says this error "could not resolve service name" then what can we do at client side.( here thing is tnsnames.ora file is ok till yesterday and worked well, but now it giving error.

1236


how can you record information about current session?

495


what are the performance views in an oracle rac environment?

559


how can you get actual data change values from previous transactions in oracle?

614


What is the difference between the 2 operating modes of database mirroring? : sql server DBA

517