- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Rollback disabling
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2003 07:17 PM
10-30-2003 07:17 PM
Rollback disabling
Does anyone knows how to prevent session or statement form rollback? Some way to disabling?
We are planning to delete a 25 million register table and don´t want to have trouble with filled rollback segments.
I guess deleting speed would be improved too.
Thank
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2003 07:47 PM
10-30-2003 07:47 PM
Re: Rollback disabling
insert always use rollback segment.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2003 08:02 PM
10-30-2003 08:02 PM
Re: Rollback disabling
Regardless of which RDMS(sybase,oracle, ms sql server etc) you use, I guess that you can use minimally logged Transact Sql commands or some trace flags defined by your RDMS such as truncate table command, appropriate taceflags in sybase ASE to avoid filling up the logsegment.
HTH
ALPER Ã NEY
SYBASE DBA & REPLICATION ADMIN
I.S.E TAKASBANK I
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2003 08:15 PM
10-30-2003 08:15 PM
Re: Rollback disabling
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2003 09:26 PM
10-30-2003 09:26 PM
Re: Rollback disabling
-
if you are deleting all the records, you would just do:
truncate table
-
If not and if hopefully you are using partitioning. You can do a mass delete in parallel using parallel DML (see the server concepts guide)
-
Otherwise, if 25 millions is a large percentage of the table, it is sometimes better to:
-
create table temp nologging as select * from t where id not in ( select id from a );
-
(keep the rows you want)
-
index temp (unrecoverable, in parrallel )
grant on temp (as you had for t)
drop table t;
rename temp to t;
-
If you need any further clarifications, please let us know.
-
regards
Yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2003 10:11 PM
10-30-2003 10:11 PM
Re: Rollback disabling
We have similar problems here with 600m row tables, and our approach is (similar as per Yogeeraj) to create a temporary table containing just the rows we want, then truncate the original, and copy back the rows, using either exp/imp or "select * from" - we're still testing.
Later we will be partitioning by date - these are date ordered records, 1 day = 1 partition, so in future we can just drop the partitions containing old data, and avoid rollback that way.
GOod luck
-- Graham
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2003 10:18 PM
10-30-2003 10:18 PM
Re: Rollback disabling
Our target was disabling rollback because we have a great disk space lack, therefore we can´t operate as you suggested (creating temporary tables, etc.).
We´ll create a PL/SQL for deleting small pieces of information each time.
Tha
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2003 10:29 PM
10-30-2003 10:29 PM
Re: Rollback disabling
You can create a table with NOLOGGING, so it doesn't generate rollback. The NOLOGGING applies only to the table creation, but it will hold for create as select.
ie
CREATE TABLE mycopy
STORAGE (etc)
NOLOGGING
AS SELECT * FROM bigtable where ....
TRUNCATE bigtable ;
exp myycopy
imp into bigtable.
TRUNCATE doesn't create rollback, and insert generates little rollback (because there's no 'before' data to save), so you should get away with it.
-- Graham
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2003 12:57 AM
10-31-2003 12:57 AM
Re: Rollback disabling
but the deleting speed isn't good.
Keep an eye on the archive logs if you DB is in ARCHIVELOG mode.
hth,
Claudio
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2003 07:39 AM
10-31-2003 07:39 AM
Re: Rollback disabling
of course you can do it using BULK COLLECT, however beware that if you have a table with more some number of indexes, deleting just does alot of work. Maintaining the index structures for xxx,xxx deletes
can be "cumbersome". Additionally there is lots of UNDO and REDO generated.
good luck
regards
Yogeeraj