Help: Oracle data transition with enhancing business rules

The work referred here is sql load flat file to Oracle table. However, due to the possible data errors, the flat file may not be able to load to Oracle table totally. The type of errors involve like unique constraint, invalid characters etc. Instead of sql load direct to the destination table, I am planning to load to a temporary table. The temp table has flags to each potential field which needs to enhance the business rules. The diagram looks like:
Flat-File -> temp_table -> dest_table
Take an example:
temp_table with col_1, col_2, flg_1, flg_2
dest_table with col_1, col_2
temp_table will take all data from Flat-File with all varchar(x) fields.
What I plan to is to write stored procedure to move the correct data from temp_table to dest_table. If there are any errors, through a trigger to update the temp_table flags. If there are no errors, the record will move to dest_table and the corresponding records will be removed from temp_table. A serve package utilizing Oracle FORMS will take care of the error data.
I'd like to hear all suggestions before I implement this.
Any suggestions are greatly appreciated.
Thanks.
Jimmy

Hi Jimmy,
Another approach could be to move data from temp table to dest_table using [DML Error Logging|http://www.oracle.com/technology/oramag/oracle/06-mar/o26performance.html]
Or maybe even the [Badfile and External Tables|http://www.gennick.com/ETLandBad.html]
Regards
Peter

Similar Messages

  • Issue with executing Business Rules from Planning web

    Hi,
    We are using Hyperion Planning 9.3.0.1 and we keep getting an issue with the Business Rules. We get an error if we try to run the rules from Planning web. The same rules validates and executes fine if we run it from AAS. This issue gets resolved if we restart the Planning and RMI service. But this issue keeps happening randomly. Is there a permanent resolution to it? Is it a bug or I am missing something here?
    Thanks and Regards,
    Amol
    Edited by: user638718 on Apr 7, 2009 5:20 PM

    Hi,
    Have you installed any of the patches for 9.3.0.1, I think it goes up to 9.3.0.1.09
    One of the fixes was :-
    8-665086601 (6588823) – When the Business Rules connection to the relational database is lost, Business Rules does not reconnect to it. To solve this problem, an optional property, HBR_CONNECTION_VALIDATE_TIME, was added to HBRServer.properties. This property specifies a time interval for checking the connection between Business Rules and the relational database. If the connection is not valid, a new connection is established. The time interval is specified in milliseconds and defaults to 300,000 (five minutes).
    Though I know there has been more attention to fixing known issues on 9.3.1 than 9.3.0.1
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Interactive activity with multiple business rule transitions

    I use BPM standalone and studio 10g. I create two business rules.
    Business rule 1: amount greater than 100.
    Business rule 2: amount greater than 300.
    An interactive activity has two business rule transitions and an unconditional transition. This activity is set to auto complete.
    In an instance, I set the amount is 400. Then, the instance goes business rule 1 transition.
    If I set this interactive activity to user select transition, the workspace lists 2 business rule transitions and let me to select one.

    Hi Ye,
    Eduardo brings up a good point. When you have multiple Conditional transitions leaving an activity, you can specify the order in which you want them to be evaluated by right mouse clicking the originating activity -> "Conditional transitions order". This is helpful because, even though several conditional transitions can evaluate as true coming out of a single activity - you still only want the work item instance to flow out of the activity via one of them.
    It would be good if you could do the same thing when you have multiple business rule transitions leaving an activity, but unless this has been fixed on a patch that I'm not currently using - you cannot do this with business rule transitions. Unlike Conditional transitions, when you have multiple business rule transitions coming out of an activity and more than one evaluates as true, you have no control over the sequence you want them to be evaluated.
    Guessing you've already done this, but I believe your options are to:
    1) Avoid having multiple business rule transitions coming out of a single activity or
    2) Do what Eduardo suggests and to make sure that none of the rules overlap (e.g. "amount > 100 && amount < 300") or
    3) Do Eduardo's other suggestion and have a cascading list of Conditional activities. Each Conditional activity has one unconditional transition (going to another Conditional activity) and one business rule transition. If the business rule is true, you're done. If it's not true then you continue to the next Conditional activity which also has an unconditional transition (going to another Conditional activity if you have 3 business rule transitions you wanted to evaluate) and a second business rule transition.
    Dan

  • Oracle Data Access with Delphi - Please help

    Hello: We would like to access Oracle Applications data using a third party tool. I understand we can use Delphi development environment to access Oracle data. Can somebody help, how do we do this? Any online tutorial or White paper. Basically we want some simple UI screens to fetch Oracle Applications data. Thanks for your help, in advance.

    Google: "Delphi" and "Oracle" and "connection"

  • "Oracle Data Integrator" with "Total Recall"

    Hi all,
    We are planning to use Oracle Data Integrator 11g for performing ELT in Oracle 11g database. We are also planning to enable the "total recall" (flashback) technology and house all our tables on it.
    Question I have in my mind right now is, will ODI and Total Recall work well together?
    Background
    Say we have an interface defined with the target data store defined on a tablespace with flashback enabled. Say there are 100 rows in the source, of which 10 rows violated the check constraint . The "bad" data, violating the constraint, will be moved to the E$ table while the rest of the 90 rows are loaded into the target.
    Questions*
    1) If our business rule dictates zero tolerance for errors and a ROLLBACK is issued, what will happen to the data in the E$ table?
    2) Say we have committed* the 90 rows and want to use a flashback transaction query to undo the changes, how will it affect the E$ table?
    3) Will the rows be deleted from the E$ table also along with rolling back of the changes in the target?
    4) If the errors in E$ are recycled and this interface is restarted after the rollback is performed, will the I$ table contain 110 rows i.e. source data + data from E$?
    5) How does ODI handle recycling / reprocessing of the violations in E$ table?
    Please advice.
    Thank you.
    CC

    1.) The data in E$ will remain there
    2.) The data in E$ will remain there
    3.) The data in E$ will remain there
    4.) 90 rows. The recycled will still error out
    5.) To me the recycling feature is pretty lame. You need to fix the errors in the E$ table and then recycle will load the data.

  • Oracle EPM 11.1.1: Business Rules issue

    Hi All,
    I have installed Oracle EPM 11.1.1 and I have created a planning application. However when I logon to Analytical Administration console and try to create a business rule I am facing the following issue:
    1. When I try to select Planning Application out I get the following errors:
    Error connecting to Essbase server <Server name>/<Application Name>.
    Detail:Could not log in to Planning Server
    2. As a work around I have set the Essbase outline and the rule is getting validated from AAS. This rule has been attached to a form and should be executed when I do a submit. However the rule is not running from the form. I tried running the rule from Planning web and again I am getting an error.
    I checked the access rights for the Business Rule from shared services and the admin user (which I am using) has Provision and Administrator rights. Is it a configuration issue or is there something that I am missing here.
    Thanks in advance,
    Amol

    NewUser2 wrote:
    Try to add a description to the Business Rule. There is a bug associated with it and you can find out in the Planning Readme. We had the same issue and got resolved by adding a description to the BR. Hope this will work for you.But the problem is he can't even create a business rule so how can he add a description to something he can't create?
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Schema export via Oracle data pump with Database Vault enabled question

    Hi,
    I have installed and configured Database Vault on an Oracle 11g-r2-11.2.0.3 to protect a specific schema (SCHEMA_NAME) via a realm. I have followed the following doc:
    http://www.oracle.com/technetwork/database/security/twp-databasevault-dba-bestpractices-199882.pdf
    to ensure that the sys and the system user has sufficient rights to complete a schedule Oracle data pump export operation.
    I.e. I have granted to sys and system the following:
    execute dvsys.dbms_macadm.authorize_scheduler_user('sys','SCHEMA_NAME');
    execute dvsys.dbms_macadm.authorize_scheduler_user('system','SCHEMA_NAME');
    execute dvsys.dbms_macadm.authorize_datapump_user('sys','SCHEMA_NAME');
    execute dvsys.dbms_macadm.authorize_datapump_user('system','SCHEMA_NAME');
    I have also create a second realm on the same schema (SCHEMA_NAME) to allow sys and system to maintain indexes for real-protected tables, To allow a sys and system to maintain indexes for realm-protected tables. This separate realm was created for all their index types: Index, Index Partition, and Indextype, sys and system have been authorized as OWNER to this realm.
    However, when I try and complete an Oracle Data Pump export operation on the schema, I get two errors directly after the following line displayed in the export log:
    Processing object type SCHEMA_EXPORT/TABLE/INDEX/DOMAIN_INDEX/INDEX:
    ORA-39127: unexpected error from call to export_string :=SYS.DBMS_TRANSFORM_EXIMP.INSTANCE_INFO_EXP('AQ$_MGMT_NOTIFY_QTABLE_S','SYSMAN',1,1,'11.02.00.00.00',newblock)
    ORA-01031: insufficient privileges
    ORA-06512: at "SYS.DBMS_TRANSFORM_EXIMP", line 197
    ORA-06512: at line 1
    ORA-06512: at "SYS.DBMS_METADATA", line 9081
    ORA-39127: unexpected error from call to export_string :=SYS.DBMS_TRANSFORM_EXIMP.INSTANCE_INFO_EXP('AQ$_MGMT_LOADER_QTABLE_S','SYSMAN',1,1,'11.02.00.00.00',newblock)
    ORA-01031: insufficient privileges
    ORA-06512: at "SYS.DBMS_TRANSFORM_EXIMP", line 197
    ORA-06512: at line 1
    ORA-06512: at "SYS.DBMS_METADATA", line 9081
    The export is completed but with this errors.
    Any help, suggestions, pointers, etc actually anything will be very welcome at this stage.
    Thank you

    Hi Srini,
    Thank you very much for your help. Unfortunately after having followed the instructions of the DOC I am still getting the same errors ?
    none the less thank you for your input.
    I was also wondering if someone could tell me how to move this thread to the Database Security area of the forum, as I feel I may have posted the thread in the wrong place as it appears to be a Database Vault issue and not an imp/exp problem. ?
    Edited by: zooid on May 20, 2012 10:33 PM
    Edited by: zooid on May 20, 2012 10:36 PM

  • Integration with Corticon Business Rules Server

    Has anyone integrated the Corticon Business Rules Server into BEA WL ? The CBR Server can be deployed as a stateless session bean, but I am not really sure hwo to integrate a session bean into WL. Maybe sonmeone can point me to the proper docs. If someone has used Corticon, it would be even better!
    Thanks

    There are two ways you can do it.
    1. Oracle Business Rules can be exposed as standard soap based web-services that can be consumed in OSB through Business Services. Proxy Services in OSB can call these BS created out of the rules services in their message pipelines.
    2. Second option is to use DIRECT-BINDING to communicate between a Rule based Composite and OSB. Direct Binding optimizes the communication between OSB and SOA servers at the transport level.
    Here are some couple of blogs that u might find helpful
    http://beatechnologies.wordpress.com/2011/04/19/using-and-testing-complex-business-rules-in-oracle-soasuite-11g/
    http://biemond.blogspot.com/2009/11/calling-soa-suite-direct-binding.html

  • Can not run the Business rules with Hyperion Business Rules Desinger

    <p>I created  a business rules with Business Rules Designer,and validate is ok, but when I run it, pop a blank window withtitle "Run Error", how to solve it ?</p><p> </p><p>Thanks</p>

    I would export the rule to essbase and test it there. I should run and the log will tell you something. I would also look at the business rules log to see what it says. <BR><BR>

  • Help! PC Suite with Vista Business ...

    I'm user of N95 8GB.
    Was installing PC Suite on my XP and everything went alright. Just upgrade to Vista Business and the PC Suite can't work.
    PC Connectivity Software & Nokia Software Updater can't install (keep failing to install). And when I start the PC Suite, the window with "This application has failed to start because ConnAPI.DLL was not found. Re-installing the application may fix this problem".
    And I tried uninstalling and re-installing the whole of PC Suite, useless!
    Can anyone help me on this! Very tired trying ....
    thanks....
    tc

    Hi,
    Could you tell me more about you problem (e.g what you have currently installed? what kind of error message you got during installation? Does PC Suite applications working ok?)
    Anyway, check this link also:
    /discussions/board?board.id=swupdate

  • How to access two oracle data base with out DB link

    Hi,
    I have two data base schema
    one is held in oracle 10g and the other in 11g ,Currently i am using DB link to access both the database. i am accessing around 70 tables using DB link.
    As per new requirement i have to remove DB link ,is there any other way i can access both database with out DB link.
    Thanks,

    malarkandy wrote:
    I have two data base schema
    one is held in oracle 10g and the other in 11g ,Currently i am using DB link to access both the database. i am accessing around 70 tables using DB link.
    As per new requirement i have to remove DB link ,is there any other way i can access both database with out DB link.Yes. But that needs another network and application interface instead of a database link.
    The target database can implement PL/SQL web services. These can be called via HTTP.
    The local database can use UTL_HTTP to make a call to the target database's web service for accessing target database data.
    Both databases can use AQ (Advance Queues). This can be integrated with an application server's JMS queues.
    This enable one database to enqueue a request to the other database, and for that database to respond by sending data.
    There are numerous such type of interfaces that can be used. Some primitive. Some advanced. Some simple. Some complex.
    The easiest and most flexible mechanism is however a database link. And it does not make sense to disallow database links for security and management reasons, but allow JMS for example. The network infrastructure is the same for both methods. The network protocol is the same. The security issues and concerns are the same - except that JMS for example is significantly more moving parts and make configuration and security a lot more complex than using a database link.

  • Problem with a Business Rule

    Hi
    I am trying to set an account transformation BR.
    Account A goes to Account B. I set the the same flow. nothing fancy...
    When i have an amount in account B, and if account A is different than 0, then the amount is replicated to the account B. So far it seems normal...
    When I have an amount in account B, and if account A is 0, then the 0 is not replicated to the account B.
    Why is it doing that?
    Nic
    Edited by: Nicolas Argente on Apr 24, 2009 3:24 PM

    Hi Petar!
    Sorry, i forgot, but my version is 5
    And what you are saying is EXACTLY what is happening to me....
    BUT... i found out that
    seperately the 2 logics work ok.
    logic 1 erase an account.
    logic 2 transfert the account to another one (throught a BR).
    seperated they work. But when i put, thought the default logic, include logic 1, then include logic 2 , then It does not bring the amounts with a 0. Only the others!
    I am still working on that...
    Nic

  • How to submit the Data with Business rule auto executed with VBA in excel?

    Anyone knows how can I submit the data into planning with the business rule auto executed in planning?
    Currently, I am using HypExecuteCalcScriptEx () + HypSubmitData() in my program that auto executed the business rule prior saving the data into planning.
    However when it try to run HySubmitData(), the Business rule window pops up again and ask user to run the business rule again.
    Therefore, is there a way that I can submit the data with auto execute the business rule?
    many thanks, highly appreciate !!!!!!

    Hi Rafeek,
    One solution is to set the column width after manually or programmatically refresh the PivotTable, for example:
    Private Sub Worksheet_PivotTableUpdate(ByVal Target As PivotTable)
    Dim ws As Worksheet
    Set ws = Application.ActiveWorkbook.ActiveSheet
    ws.Columns("A").ColumnWidth = 10
    End Sub
    Another option is to set the column width, then protect the columns from been updated by the user, before refreshing the PivotTable, unprotect the worksheet. For example:
    Public Sub LockColumnA()
    Dim ws As Worksheet
    Set ws = Application.ActiveWorkbook.ActiveSheet
    ws.Columns("A").ColumnWidth = 10
    ws.Columns("A").Locked = True
    ws.Protect "123"
    End Sub
    Public Sub UnprotectWorksheet()
    Dim ws As Worksheet
    Set ws = Application.ActiveWorkbook.ActiveSheet
    ws.Unprotect ("123")
    End Sub
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Problem with business rule

    Hi all,
    I have a problem with a business rule (BR) deployed as a standalone Descision service.
    the BR consists on a simple decision table wich compare an input (bigInteger) with 50. It returns two facts (as output).
    the two conditions are confugured (i.e. <50 and >=50).
    the Decision service (stateless) is called in a simple BPEL process. in some cases the the assign activity in the bpel process rise this exception :
    <bpelFault><faultType>0</faultType><selectionFailure xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/"><part name="summary"><summary>empty variable/expression result. The XPath variable or expression /ns5:callFunctionStatelessDecision/ns5:resultList/ns6:processResponse/ns6:CodeRetour is empty at line 440. An attempt to read or copy data referenced or computed by the XPath expression either had invalid data, according to the XML schema, or did not contain certain optional data. Ensure that the variable or expression result named in the error message is not empty. Enable XML schema validation of related variables to ensure the run-time data is valid. </summary></part></selectionFailure></bpelFault>
    it seems like an output of the business rule used by the assign after the invoke activity is empty.
    But in the input payload for the decision service all elements are not empty. I can't inderstand how the OBR return an empty variable?
    Any help please?

    In the taskflow you should be capable to trace step by step what happens in the execution. Does this give any clue, e.g. why sometimes the assert does not work?
    cu
    Andreas

  • Business Rule Design Transformer fails with ORA-00001

    I'm stuck with the Business Rule Design Transformer Utility of Headstart. After running this utility over one BR it is impossible to run it over other BR's because of violation of the unique constraint HST65.QMS_MSP_PK (table QMS_MESSAGE_PROPERTIES). The problem is that the utility tries to insert a record (message, specified in the Notes property of Designer) into QMS_MESSAGE_PROPERTIES with the code "ABI-10000", that was already created by running the utility for the first time.
    Exact error message: "Activity aborted with ORACLE internal errors.
    -1 ORA-00001: unique constraint (HST65.QMS_MSP_PK) violated"
    I'm using Designer 6i (6.5.52.1.0) and Headstart 6.5.1.3
    If someone has any clue about this I would be very grateful
    Cheers,
    Dimce

    Jan,
    The name of the business rule is already in the CONSTRAINT_NAME of the QMS_MESSAGE_PROPERTIES table.
    I already tested by deleting the records in the two tables, QMS_MESSAGE_PROPERTIES and QMS_MESSAGE_TEXT, and ran the utility, but it didn't help either. I can run the utility for one rule, but when I want to run it again at some later point, it fails with this error.
    But, I managed to create rule definitions using the HSU Create Business Rule Design Definition, rule by rule. I only had to add references in the business rule to the used module.
    Dimce

Maybe you are looking for