Forum Discussion
charlie_14972
Nimbostratus
Jun 22, 2011How to loadblance Oracle DB by use irules to differentiate read and write request?
I want to use irules to differentiate oracle read and write request.
Who can tell me how to do it?
rule:
If request include "select" ,then use db_read_pool
else then use db_write_pool
I can not know what is the right syntax.pls help me,thanks.
Charlie
4 Replies
- The_Bhattman
Nimbostratus
Hi Charlie,
There is a post similar to your request made in the Oracle Forum
http://devcentral.f5.com/Community/GroupDetails/tabid/1082223/asg/63/aft/2929/showtab/groupforums/Default.aspx
I hope this helps
Bhattman - hoolio
Cirrostratus
I don't think the logic is quite that easy though, as you could have a DDL command with a select statement:
SELECT *
INTO new_table
FROM old_table
If this is something you'd like to see built into LTM, you could open a case with F5 Support with details on your use case.
Aaron - charlie_14972
Nimbostratus
Hi Bhattman,
That irule cause can not connect to the database
Hi Hoolio,
Thank you for your suggestions
Charlie - The_Bhattman
Nimbostratus
hi Charlie,
The iRule won't know how to connect to the database - simply because the irule is looking into the TCP packet. However, that would lead into a more sophisticated version of the Irule to account for the DDL command.
Bhattman
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
