Multi Schema to single schema.

Hi,
I am new to streams.
Can it be possible to push the changes from multi schemas to a single schema? Structure for the consolidated schema will be same as other source schemas. Juast an additional column in target tables. I would like populate a unique id for each schema.
Any example is much appreciated.
Thanks.

It is possible. But you have to change the schema name in the changes by using a dml-handler or a transformation rule. For a dml handler I have an example:
CREATE OR REPLACE PROCEDURE emp_dml_handler(in_any IN SYS.AnyData) IS
lcr SYS.LCR$_ROW_RECORD;
rc PLS_INTEGER;
command VARCHAR2(10);
old_values SYS.LCR$_ROW_LIST;
BEGIN
-- Access the LCR
rc := in_any.GETOBJECT(lcr);
-- Get the object command type
command := lcr.GET_COMMAND_TYPE();
-- Check for DELETE command on the employees table
IF command = 'DELETE33' THEN
-- Set the command_type in the row LCR to INSERT
lcr.SET_COMMAND_TYPE('INSERT');
-- Set the object_name in the row LCR to EMP_DEL
lcr.SET_OBJECT_NAME('DESTINATION.EMPLOYEES');
-- Get the old values in the row LCR
old_values := lcr.GET_VALUES('old');
-- Set the old values in the row LCR to the new values in the row LCR
lcr.SET_VALUES('new', old_values);
-- Set the old values in the row LCR to NULL
lcr.SET_VALUES('old', NULL);
-- Add a SYSDATE value for the timestamp column
-- lcr.ADD_COLUMN('new', 'TIMESTAMP', SYS.AnyData.ConvertDate(SYSDATE));
-- Apply the row LCR as an INSERT into the emp_del table
lcr.EXECUTE(true);
END IF;
END;
BEGIN
DBMS_APPLY_ADM.SET_DML_HANDLER(
object_name => 'source.employees',
object_type => 'TABLE',
operation_name => 'INSERT',
error_handler => false,
user_procedure => 'strm_emp_admin.emp_dml_handler',
apply_database_link => NULL,
apply_name => NULL);
END;
Regards,
Martien

Similar Messages

  • Multi schema versus single schema set up

    Hi,
    I have a question regarding the environment set up of an Oracle datawarehouse regarding multischema versus single schema set up. My database has several schemas on it representing the functional areas of the warehouse. I have installed the Runtime Repository on the Database and registered each target schema with it. Now that I have started developing, I have noticed the way in which OWB builds database links for mappings which have source and target objects residing in different schemas. I therefore have a major concern regarding the performance of such a set up as opposed to one with a single schema. If anyone has had any experience of working with both environments please could they advise me.
    Your comments will be most appropriate.
    Take care
    Mitesh

    The requirement of sigle or multi schema is driven by the business requirement and it is a policy descion than a techical one.
    Depending upon requirement you can have not only multiple schemas but also multiple instances or databses or server for OLTP , Staging and Star
    Normally for good performance staging and star (which means one for each layer) a schema is created as it offers good performance over single schema set up.

  • How should implement multi-thread in single-threaded Operating system using

    How should implement multi-thread in single-threaded Operating system using java?
    Java supports "Multi-threading".Is there is any way run the multiple threads (Implementing multi threading) using java in a Single-threaded Operating system (That is the operating system does not support for multi-threading).

    Previous questions from OP suggest they are using J2ME, so the question might be possible.
    806437 wrote:
    How should implement multi-thread in single-threaded Operating system using java?
    What is the actual question/problem?
    A java app doesn't do threads or not do threads. It uses classes. The VM does threads.
    So if you have a platform that does not have threads and you want to support the thread class then the VM, not a java app, must provide some pseudo mechanism, such as green threads, to support that.
    If your question is about java code and not the VM then you must build a task engine and insure that the tasks are of short enough duration that it is an effective use for your system.

  • VPD vs Multi Schema vs Partitioning

    Hi Oracle Gurus,
    We will develope a web based ERP application for a company with multi branch (about 20), with the following requirement :
    - a normal user can only see and update data for his branch
    - some users from head quarters can see ALL data from ALL branch
    - reporting will be per branch, but there should be Consolidation reports
    Total user will be 200, but maximum concurrent is 60 users.
    We will use JSF(ADF Faces) + BC4J, one database server and one apps server.
    The question is :
    To meet the requirement above about which user can see which data, what Oracle feature should I use :
    is it VPD ?
    or should I just use different schema for each branch ?
    or use Partitioning ?
    Thank you for your recommendation,
    xtanto

    Xtanto
    1) Using partitioning won't in itself help with the security question.
    - It may help with performance (or it may well not).
    2) A different schema for each branch
    - is simple and scalable for branch applications,
    - but is a total pain in the neck for consolidation (you will create lots of reporting UNION ALL views)
    - and it makes it harder to deal with session pooling in the Java application tier if that ever becomes necessary (because you need a separate session pool for each branch, and one for the head office).
    - and it works the database harder (every distinct SQL statement in the SGA is multiplied by the number of branches
    - and it makes datamodel maintenance 20 times more tedious
    - and you have to decide which data is 'shared' (eg employees? cost codes? customers?) and which are owned by the branch. Some data may be visible to everyone, but 'owned' by a particular branch (or equally likely, by a particular function like HR, Buying, whatever)
    3) I have no personal experience of VPD itself. But I'd go for VPD or failing that for old-fashioned 'roll your own' application security (which is often implemented more or less the same as VPD, but at a higher cost to the developer). This gives you the most flexibility; it makes it possible for different users to have overlapping views of the data (eg if you add a regional structure between branches and head office, they may need to see several but not all branches).
    Because you have a small app (only 60 users, only 20 branches) some of the downsides of using separate schemas are not such a big thing - but even at 20 branches, the union views will get very unwieldy... And for sure, all organisations change shape over time - don't assume that today's structure will still be in place in 12 months time!
    My 2d, HTH
    Regards Nigel

  • Multi-Schema Query

    Hello,
    Please forgive me if this is an elementary question...I'm trying to run a query against multiple schema's but it does not work. I've Associated both schema's with my workspace and I tried running it in the SQL Workshop and it runs fine there. When I create a report page and specify the query there it tells me that table/view does not exist. I also tried building it using the query builder utility, the second schema name does not appear on the drop down list at the top right of the page.
    Can anyone help out with this?
    Thanks!!!

    Hello:
    Generally, if a query runs from SQL Workshop you should be able to use the query in an APEX report.
    Check if making an explicit grant on the table in the other schema to the default schema of your application makes a difference.
    Example: If SchemaA and SchemaB are the two schemas allowed for your workspace and if TableA exists in SchemaA and TableB exists in SchemaB
    Grant select on SchemaA.TableA to SchemaB
    Grant select on SchemaB.TableB to SchemaAVarad

  • Question about using Sun Multi-Schema XML Validator

    Hi all,
    I tried to use sun MSV to validate xml against my schema file, the result turns strange. To simply test the validator, I use the following xml file and xsd file:
    ------- test.xml -------------------------------------------------
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <persons xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:noNamespaceSchemaLocation="test.xsd">
    <person>1</person>
    <person>2</person>
    <person>3</person>
    </persons>
    --------test.xsd ---------------------------------------------------
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
    elementFormDefault="qualified">
    <xs:element name="persons">
    <xs:complexType>
    <xs:sequence>
    <xs:element name="person" maxOccurs="unbounded"/>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    </xs:schema>
    In my knowledge of xml schema, the above xml file should be validated "ok" against the xsd files.
    But in sun msv validator, it reports the following error:
    ------------ error message ---------------------------------------------------
    Error of test.xml
    element "person" was found where no element may occur
    Why does this happen? I have defined the occurrence of "person" element under "persons" to unbounded. What is the possible wrong?
    Thanks in advance!

    Problem sovled by updating the msv lib files. Thx for noticing!

  • Multi schema same table structure

    I have about 90 schemas with the same tables structures.
    I need to create on folder for one table in Disco. admin that loops for these schemas. I dont want to use view of schemas.
    Note schemas are created every period of time.
    how I can do that?

    I have about 90 schemas with the same tables structures.
    I need to create on folder for one table in Disco. admin that loops for these schemas. I dont want to use view of schemas.
    Note schemas are created every period of time.
    how I can do that?

  • Set Database Back to Multi User from Single User

    I am using SharePoint Services 3.0 (SP1) with default configuration options, which installs the Microsoft##SSEE instance of SQL to my local C:\ drive.
    While attempting to relocate the files to another drive, I set one of the databases (as recommended) to Single User by using the SQL Server Management Express tool.
    I cannot now reset that database to Multi User, even by executing the query
    exec sp_dboption 'database_name', 'single user', ''FALSE'
    again by using the Management Express Tool.
    Can someone please help, in plain english???? Thanks

    I have similar issue.
    I have took backup of WSUS (Windows Server 2002 R2) Windows internal database using SQL Server 2008 Management Studio and restored on Windows Server 2012 R2 Server.
    Now SUSDB database was in Single User mode. I have tried ALTER  DATABASE <<Database Name>>   SET MULTI_USER  WITH NO_WAIT and i'm getting blow error.
    Msg 5069, Level 16, State 1, Line 1
    ALTER DATABASE statement failed.
    How i can change it Multi User?
    Thanks 
    Uma

  • Multi GR's Single CENVAT Credit

    Hai Friends,
    I have one issue.I have raised one PO with 2 line item with same material.. delivery dates different. I have received multi Deliveries, So i have done 2 GRs.. How can i do single CENVAT Credit avail.
    Please help it out

    Hi,
    During GR, select "Only Part1" under "Excise Invoice" Tab Page.
    And then go to J1IEX and Capture Excise Invoice > Goods Receipt

  • [JS] [CS2] Change all from multi line to single line composer

    Hi
    Does anyone know how to change all paragraphs, on all pages, in all textframes, from multi line composer to single line composer...
    Thanx
    Tim

    This should work:
    app.documents[0].stories.everyItem().composer = "Adobe Single-line Composer"
    Dave

  • Regarding multi sources to single target

    Hi all,
    In which case( business need) we will go for multi messages to a single one(n:1) mapping.
    so far I have encountered 1:n but not vice versa.
    Please explain business need and give some blogs to practice.
    Thanks

    Hi,
    Imagine you receive an order, call an RFC to do a lookup for a partner number and send the order to a receiver system with the partner number obtained from the RFC.
    You will create an integration process that first receives the order. It then calls the RFC and the output from the RFC is stored in the container.
    In order to create the output order, data from the first order is needed, as well as the output from the RFC. In order to do this, you call a mapping that takes two input documents (the original order and the response from the RFC) and map those to the output order.
    This blog gives an example of another multi-mapping scenario: <a href="/people/pooja.pandey/blog/2005/07/27/idocs-multiple-types-collection-in-bpm">IDOCs (Multiple Types) Collection in BPM</a>
    Kind regards,
    Koen

  • Multi tier to single tier

    Hi,
    I am planning to clone from a multi tier( db+car==>1 and web+forms==>2 ) to single tier.
    Which application folders (appl_top,comn_top etc) should I copy?
    Shall I copy both or only one will do?

    Hi;
    What is your EBS and OS?
    Please check clone docs:
    Cloning Oracle Applications Release 12 with Rapid Clone [ID 406982.1]
    Cloning Oracle Applications Release 11i with Rapid Clone [ID 230672.1]
    Also see:
    FAQ: Cloning Oracle Applications Release 11i http://ID 216664.1
    Troubleshooting RapidClone issues with Oracle Applications R12 [ID 603104.1]
    Regard
    Helios

  • How i use multi panel in single applet

    hi master
    sir i need three panel in single applet
    i use this code but not set the panel
    pnl.setBounds(20, 10, 10, 20);
    and
    pnl.setLocation(12, 12);
    and
    pnl.setSize(12, 20);
    this is my class code
    JTable table = new JTable(rdata, columnNames);
    getContentPane().add(table.getTableHeader(),BorderLayout.NORTH);
    getContentPane().add(table);
    JPanel pnl = new JPanel();
    //pnl.setBounds(20, 10, 10, 20);
    //pnl.setLocation(12, 12);
    pnl.setSize(12, 20);
    pnl.add(new JScrollPane(table));
    getContentPane().add(pnl);
    //pnl.setBounds(10, 10, 10, 20);
    please sir give me idea how i use multi panel and how i set panel boundry
    thanking you
    aamir

    http://forum.java.sun.com/thread.jspa?threadID=5118094&tstart=0

  • Oracle Multi-Bytes vs Single-Byte

    Hi,
    We have to add japanese to our application, i had succesfully add japanese data in our single-byte database,
    so why should we use a Multi-byte DB?
    what is the gain to use a Multi byte DB vs a Single Byte?
    does intermedia work with japanese in Single Bytes?
    Is utf8 the best way to have an international DB?
    We will have to add a lot of other char-set in the future.
    Thanks

    so why should we use a Multi-byte DB?
    what is the gain to use a Multi byte DB vs a Single Byte? What you are doing is storing invalid multibyte characters into a single byte database. So each double byte Japanese characters are being treated as 2 separate single byte characters. You are using an unsupported but common garbage in garbage out approach, so in that sense you are using Oracle as a garbage container. :)
    Let's look at some of the issues that you are going to have :-
    All SQL Functions are based on the property of the single byte database character set WE8ISO8859P1. So LENGTH(), SUBSTR (), INSTR (), UPPER(), NLS_UPPER etc .. will yield incorrect results . For example a column with one Japanese character and one ASCII character will return a length of 3 characters rather than 2 characters. And if you want to locate a specific character in a mix ASCII and Japanese string using the SUBSTR() it will be very difficult, because to Oracle the string consists of all single byte characters, it will not skip 2 bytes for a Japanese character. Even if you don't have mix strings, you will need to write one routine for handling ASCII only and another for Japanese strings.
    Invalid Data conversion , if your need to talk to another db using dblink say ,all the character conversion will be based on the single byte character set to the target database character set mapping, so the receiver will lose all the source Japanses characters and will get 2 single byte characters for each Japanese char instead .
    Export and Import will have identical problems, character set conversion are performed during these operations, so all Japanese characters will be lost. This also means that you can not load correctly encoded Japanese data into your current single byte DB using IMPORT or SQLLOADER without data corruption ...
    does intermedia work with japanese in Single Bytes?No
    Is utf8 the best way to have an international DB?Yes
    null

  • Diff bet multi user and single user installation

    Hi,
    what is the diff betweeen single user and multi user installation,please let me know advantages and disadvantages also .
    Regards

    Hi,
    what is the diff betweeen single user and multi user installationSingle user installation is having one user who owns all the application/database tier files. When you do an installation, you run RapidWiz as this user.
    Multi-user installation is having two different users (applmgr user who owns the application tier files, and oracle user who owns the database tier files). When you do the installation, you run RapidWiz as root user.
    On Windows, you cannot have multi-user installation. So, the above is valid on Unix/Linux.
    More details can be found in the Concept manual --> http://www.oracle.com/technology/documentation/applications.html
    please let me know advantages and disadvantages also .I always prefer multi-user installation as you just source the application/env file in the user's profile (in the applmgr/oracle profile) and the file is sourced once you login as that user. For single user installation, you will have to be sure that you source the proper env file manually each time you want to switch between the application and the database (just imagine if you try to shutdown/startup the database after sourcing the application env file, or trying to use any database executable file like export/import/sqlplus ..etc, you will end up using the application tier executable files).
    Regards,
    Hussein

Maybe you are looking for

  • ISE 1.2 Patch 2 External RADIUS Server Sequence Broken?

    Hi community, We have upgraded our proof of concept ISE 1.2 lab to Patch level 2. Our lab design includes the use of external RADIUS servers which we off-load certain authentication rules to. To ensure resiliency of the external RADIUS service, we ha

  • How to replace Nexus5596 with dual-homing N2K

    What is the correct process to replace a FEX parent switch with dual-homing fex? Traffic should not be interrupted.        

  • I can't rent movies on itv??

    I purchased 2 apple itvs.. One for myself and one for my folks. I purchased these because there are no video rental outlets close to our areas. I installed the unit and everything works netflix, utube, radio. All updates have been done and unit was s

  • I get a message "missing up-link" when going to videos

    This condition just started. The only changes to my mac is addition of "Lion" and 2011 microsoft works.

  • Retiming with same number of frames

    Hi (couldn't find this) - If I want to convert my source video to a new frame rate -- but keep exactly the same number of frames -- what is the best way to do that? Do I just set my desired frame rate in the Encoder tab and then set duration to 100%