Oracle dataguard - Redo apply












0















In a low bandwidth environment when a transaction commits that generates a large amount of redo data will cause other independent transactions to slow down. This is because the redo data of small transactions will be blocked until the large redo data of the previous transaction is transported to the DR site. Is there a way that we can control small redo data takes priority over the large one so the other independent transactions complete quicker.



Any suggestions?










share|improve this question














bumped to the homepage by Community 21 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
















  • If that was possible, you risk "starving" the large transactions, which isn't desired. If you really need SYNC dataguard, you should seriously consider getting a better network link.

    – Mat
    Sep 29 '14 at 15:15
















0















In a low bandwidth environment when a transaction commits that generates a large amount of redo data will cause other independent transactions to slow down. This is because the redo data of small transactions will be blocked until the large redo data of the previous transaction is transported to the DR site. Is there a way that we can control small redo data takes priority over the large one so the other independent transactions complete quicker.



Any suggestions?










share|improve this question














bumped to the homepage by Community 21 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
















  • If that was possible, you risk "starving" the large transactions, which isn't desired. If you really need SYNC dataguard, you should seriously consider getting a better network link.

    – Mat
    Sep 29 '14 at 15:15














0












0








0








In a low bandwidth environment when a transaction commits that generates a large amount of redo data will cause other independent transactions to slow down. This is because the redo data of small transactions will be blocked until the large redo data of the previous transaction is transported to the DR site. Is there a way that we can control small redo data takes priority over the large one so the other independent transactions complete quicker.



Any suggestions?










share|improve this question














In a low bandwidth environment when a transaction commits that generates a large amount of redo data will cause other independent transactions to slow down. This is because the redo data of small transactions will be blocked until the large redo data of the previous transaction is transported to the DR site. Is there a way that we can control small redo data takes priority over the large one so the other independent transactions complete quicker.



Any suggestions?







oracle-11g transaction rdbms dataguard






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Sep 29 '14 at 11:39









SashikaXPSashikaXP

1011




1011





bumped to the homepage by Community 21 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







bumped to the homepage by Community 21 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.















  • If that was possible, you risk "starving" the large transactions, which isn't desired. If you really need SYNC dataguard, you should seriously consider getting a better network link.

    – Mat
    Sep 29 '14 at 15:15



















  • If that was possible, you risk "starving" the large transactions, which isn't desired. If you really need SYNC dataguard, you should seriously consider getting a better network link.

    – Mat
    Sep 29 '14 at 15:15

















If that was possible, you risk "starving" the large transactions, which isn't desired. If you really need SYNC dataguard, you should seriously consider getting a better network link.

– Mat
Sep 29 '14 at 15:15





If that was possible, you risk "starving" the large transactions, which isn't desired. If you really need SYNC dataguard, you should seriously consider getting a better network link.

– Mat
Sep 29 '14 at 15:15










1 Answer
1






active

oldest

votes


















0














No. The operations go to DR site in exactly the same sequential order as they were performed on the primary site. You can only re-order operations at the level of your application code, the database engine cannot do this for you.



The database engine cannot reorder changes to data because it needs to ensure that DR database is bit-to-bit identical to the state of primary database at a very recent point-in-time.



Your impression that COMMIT transfers all the data is incorrect. Data is transferred all the time throughout the transaction, and COMMIT is quite a small transfer itself that ends it. The only special thing about the COMMIT is that it is the only transfer for which the primary database has to wait until the COMMIT mark is transferred to DR, written there to disk, and acknowledged back to primary.



Anyway, I would strongly suggest to change SYNC to ASYNC in your archive_log_dest_x, which would obviously solve your problem (problem of waiting for COMMIT), at a cost of potential loss of the unsynchronized data in a real DR situation. If your software controls real-time multimillion FOREX transactions, and you have a high-bandwidth high-available network connection, then SYNC is the way to go. If not, you should accept this small risk, as most other users do.






share|improve this answer
























  • Hmmm...this is one very good answer. A bit of background reading also confirmed this is how it happens. In fact during a large transaction the redo log buffer at SGA frequently writes redo records to the current active local redo log file as well as to the standby redo log file. So this means whats written to the local redo log is sync with the standby redo log. I was under the impression that the standby is synched through only by shipping a redo "log file" to the standby. But then the question comes how the redo wastage happens as there cant be any half filled redo log files.

    – SashikaXP
    Oct 8 '14 at 1:51











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "182"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdba.stackexchange.com%2fquestions%2f77930%2foracle-dataguard-redo-apply%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














No. The operations go to DR site in exactly the same sequential order as they were performed on the primary site. You can only re-order operations at the level of your application code, the database engine cannot do this for you.



The database engine cannot reorder changes to data because it needs to ensure that DR database is bit-to-bit identical to the state of primary database at a very recent point-in-time.



Your impression that COMMIT transfers all the data is incorrect. Data is transferred all the time throughout the transaction, and COMMIT is quite a small transfer itself that ends it. The only special thing about the COMMIT is that it is the only transfer for which the primary database has to wait until the COMMIT mark is transferred to DR, written there to disk, and acknowledged back to primary.



Anyway, I would strongly suggest to change SYNC to ASYNC in your archive_log_dest_x, which would obviously solve your problem (problem of waiting for COMMIT), at a cost of potential loss of the unsynchronized data in a real DR situation. If your software controls real-time multimillion FOREX transactions, and you have a high-bandwidth high-available network connection, then SYNC is the way to go. If not, you should accept this small risk, as most other users do.






share|improve this answer
























  • Hmmm...this is one very good answer. A bit of background reading also confirmed this is how it happens. In fact during a large transaction the redo log buffer at SGA frequently writes redo records to the current active local redo log file as well as to the standby redo log file. So this means whats written to the local redo log is sync with the standby redo log. I was under the impression that the standby is synched through only by shipping a redo "log file" to the standby. But then the question comes how the redo wastage happens as there cant be any half filled redo log files.

    – SashikaXP
    Oct 8 '14 at 1:51
















0














No. The operations go to DR site in exactly the same sequential order as they were performed on the primary site. You can only re-order operations at the level of your application code, the database engine cannot do this for you.



The database engine cannot reorder changes to data because it needs to ensure that DR database is bit-to-bit identical to the state of primary database at a very recent point-in-time.



Your impression that COMMIT transfers all the data is incorrect. Data is transferred all the time throughout the transaction, and COMMIT is quite a small transfer itself that ends it. The only special thing about the COMMIT is that it is the only transfer for which the primary database has to wait until the COMMIT mark is transferred to DR, written there to disk, and acknowledged back to primary.



Anyway, I would strongly suggest to change SYNC to ASYNC in your archive_log_dest_x, which would obviously solve your problem (problem of waiting for COMMIT), at a cost of potential loss of the unsynchronized data in a real DR situation. If your software controls real-time multimillion FOREX transactions, and you have a high-bandwidth high-available network connection, then SYNC is the way to go. If not, you should accept this small risk, as most other users do.






share|improve this answer
























  • Hmmm...this is one very good answer. A bit of background reading also confirmed this is how it happens. In fact during a large transaction the redo log buffer at SGA frequently writes redo records to the current active local redo log file as well as to the standby redo log file. So this means whats written to the local redo log is sync with the standby redo log. I was under the impression that the standby is synched through only by shipping a redo "log file" to the standby. But then the question comes how the redo wastage happens as there cant be any half filled redo log files.

    – SashikaXP
    Oct 8 '14 at 1:51














0












0








0







No. The operations go to DR site in exactly the same sequential order as they were performed on the primary site. You can only re-order operations at the level of your application code, the database engine cannot do this for you.



The database engine cannot reorder changes to data because it needs to ensure that DR database is bit-to-bit identical to the state of primary database at a very recent point-in-time.



Your impression that COMMIT transfers all the data is incorrect. Data is transferred all the time throughout the transaction, and COMMIT is quite a small transfer itself that ends it. The only special thing about the COMMIT is that it is the only transfer for which the primary database has to wait until the COMMIT mark is transferred to DR, written there to disk, and acknowledged back to primary.



Anyway, I would strongly suggest to change SYNC to ASYNC in your archive_log_dest_x, which would obviously solve your problem (problem of waiting for COMMIT), at a cost of potential loss of the unsynchronized data in a real DR situation. If your software controls real-time multimillion FOREX transactions, and you have a high-bandwidth high-available network connection, then SYNC is the way to go. If not, you should accept this small risk, as most other users do.






share|improve this answer













No. The operations go to DR site in exactly the same sequential order as they were performed on the primary site. You can only re-order operations at the level of your application code, the database engine cannot do this for you.



The database engine cannot reorder changes to data because it needs to ensure that DR database is bit-to-bit identical to the state of primary database at a very recent point-in-time.



Your impression that COMMIT transfers all the data is incorrect. Data is transferred all the time throughout the transaction, and COMMIT is quite a small transfer itself that ends it. The only special thing about the COMMIT is that it is the only transfer for which the primary database has to wait until the COMMIT mark is transferred to DR, written there to disk, and acknowledged back to primary.



Anyway, I would strongly suggest to change SYNC to ASYNC in your archive_log_dest_x, which would obviously solve your problem (problem of waiting for COMMIT), at a cost of potential loss of the unsynchronized data in a real DR situation. If your software controls real-time multimillion FOREX transactions, and you have a high-bandwidth high-available network connection, then SYNC is the way to go. If not, you should accept this small risk, as most other users do.







share|improve this answer












share|improve this answer



share|improve this answer










answered Oct 7 '14 at 18:09









kubanczykkubanczyk

1,642712




1,642712













  • Hmmm...this is one very good answer. A bit of background reading also confirmed this is how it happens. In fact during a large transaction the redo log buffer at SGA frequently writes redo records to the current active local redo log file as well as to the standby redo log file. So this means whats written to the local redo log is sync with the standby redo log. I was under the impression that the standby is synched through only by shipping a redo "log file" to the standby. But then the question comes how the redo wastage happens as there cant be any half filled redo log files.

    – SashikaXP
    Oct 8 '14 at 1:51



















  • Hmmm...this is one very good answer. A bit of background reading also confirmed this is how it happens. In fact during a large transaction the redo log buffer at SGA frequently writes redo records to the current active local redo log file as well as to the standby redo log file. So this means whats written to the local redo log is sync with the standby redo log. I was under the impression that the standby is synched through only by shipping a redo "log file" to the standby. But then the question comes how the redo wastage happens as there cant be any half filled redo log files.

    – SashikaXP
    Oct 8 '14 at 1:51

















Hmmm...this is one very good answer. A bit of background reading also confirmed this is how it happens. In fact during a large transaction the redo log buffer at SGA frequently writes redo records to the current active local redo log file as well as to the standby redo log file. So this means whats written to the local redo log is sync with the standby redo log. I was under the impression that the standby is synched through only by shipping a redo "log file" to the standby. But then the question comes how the redo wastage happens as there cant be any half filled redo log files.

– SashikaXP
Oct 8 '14 at 1:51





Hmmm...this is one very good answer. A bit of background reading also confirmed this is how it happens. In fact during a large transaction the redo log buffer at SGA frequently writes redo records to the current active local redo log file as well as to the standby redo log file. So this means whats written to the local redo log is sync with the standby redo log. I was under the impression that the standby is synched through only by shipping a redo "log file" to the standby. But then the question comes how the redo wastage happens as there cant be any half filled redo log files.

– SashikaXP
Oct 8 '14 at 1:51


















draft saved

draft discarded




















































Thanks for contributing an answer to Database Administrators Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdba.stackexchange.com%2fquestions%2f77930%2foracle-dataguard-redo-apply%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

SQL Server 17 - Attemping to backup to remote NAS but Access is denied

Always On Availability groups resolving state after failover - Remote harden of transaction...

Restoring from pg_dump with foreign key constraints