Lookup on source side

Newbie to goldengate, so please excuse
I need to replicate some columns from table emp on database A to table emp on database B
Assume Table emp structure:
empid,ename,deptid
On the same database I have dept table
deptid, deptname
On target emp structure
ename,deptname
Now i need define to extract process for table emp, It has to lookup for deptname from dept table. And the replicat process should be able to populate emp structure on target.

This is what i have tried:
EMP1.SQL is the name of the file generated using defgen utility as there is difference in structure in source and target. Naming convention of the sql does it matter?
replicat process is abending with table or view does not exist.
extract extemp
userid ggsowner,password ggsowner
TRANLOGOPTIONS ASMUSER sys@ASM, ASMPASSWORD test EXCLUDEUSER ggsowner
targetdefs ./dirsql/emp1.sql
rmthost test,mgrport 7809
rmttrail /oracle/gg/dirdat/er
table scott.emp;
table scott.dept;
replicat erp1
userid ggsowner, password ggsowner
sourcedefs ./dirsql/emp1.sql
map scott.emp, scott. webpos.emp_tar, &
sqlexec (ID d1, &
QUERY " select deptname from dept where deptid = :v_dept_id",&
PARAMS (v_dept_id = deptid)),&
COLMAP (USEDEFAULTS,ename=ename,deptid=deptid,deptname = @GETVAL(d1.deptname));
reperror (DEFAULT, EXCEPTION)
INSERTALLRECORDS
map scott.emp , target ggsowner.exceptions,
exceptionsonly,
colmap (rep_name = "RTARGET1"
,table_name = @GETENV ("GGHEADER", "TABLENAME")
,errno = @GETENV ("LASTERR", "DBERRNUM")
, dberrmsg = @GETENV ("LASTERR", "DBERRMSG")
, optype = @GETENV ("LASTERR", "OPTYPE")
, errtype = @GETENV ("LASTERR", "ERRTYPE")
, logrba = @GETENV ("GGHEADER", "LOGRBA")
, logposition = @GETENV ("GGHEADER", "LOGPOSITION")
, committimestamp = @GETENV ("GGHEADER", "COMMITTIMESTAMP")
, beforeafter = @GETENV ("GGHEADER", "BEFOREAFTERINDICATOR"));

Similar Messages

  • I am on Source side and DDL replication is enabled.

    I am on Source side and DDL replication is enabled.
    I would be providing initial dump of TABLE and VIEW objects to target using Export DP to Target.
    And start Golden Gate Extract, Pump on Source.
    Source PRM file has Table list.
    EXTRACT ex1test
    DDL INCLUDE MAPPED
    EXTTRAIL ./trails/l1
    TABLE ABCD.T100;
    TABLE ABCD.T200;
    TABLE ABCD.T300;
    Objective is ---- If I change VIEW definition at Source, it should be reflected to Target
    Question is --- In my PRM file, how I can include VIEWs???
    If the source has 10 views , only 5 are replicated to target ..
    DDL changes for only the ones in the target should be considered other must be excluded
    Thanks and Regards,
    Kurian

    Hi Kurian,
    Oracle GoldenGate supports VIEW replication in both Classic and Integrated Modes. But we do have some limitations on it.,
    1. Capture from a view is supported when Extract is in initial-load mode. The data is captured from the Source View and not the Redologs.
    2. Changes made to the data of the view will not be captured.
    3. View replication is only supported for inherently updateable views in which case the source table and target view structures must be identical.
    You can exclude DDL Objects using the ddl_filter.sql
    To know more about ddl_filter.sql, follow the below link.,
    http://docs.oracle.com/goldengate/1212/gg-winux/GIORA/ddl.htm#GIORA316
    Under this,
    13.8.1 Filtering with PL/SQL Code
    Regards,
    Veera

  • Message mapping source side

    Hi Experts,
    Is it possible to copy the message in source side in message mapping using src tab?
    Regards
    Sara

    You cant get the required target xml structure with values untill u complete the mapping
    Why because if you have any transformation in mapping means you have to generate the target values according to that
    So better to complete the mapping and take the xml file
    Regards
    Seshagiri
    Edited by: N V Seshagiri on Dec 2, 2008 7:05 AM

  • After R12 clone, Source SID appears in users' personal homepage

    Hi, After cloning an R12.1.3 instance, users logging into the Target instance see the name of the Source instance in the banner of their personal homepage. How can this be rectified? Apps dba's have run all standard cloning processes (in Cloning Oracle Applications Release 12 with Rapid Clone [ID 406982.1]). Verified Source SID does not appear in Target context files, additional autoconfig run in Target - still getting Source instance name.
    Thanks for any thoughts

    user1083814 wrote:
    Hi Helios, I should have mentioned, that the profile option "Site Name" was already set to the Target environment name. That sets the name correctly in the Forms headers. But it does not affect the name in the banner of the users' personal home page (a html page, not forms). So the problem is still there.What page you are referring to? Could you upload a screenshot?
    Thanks,
    Hussein

  • Cross Site Collection lookup using client side object model

    I have to do Cross Site Collection lookup using client side object model or Odata ,
    no servier side.. any ideas experts?

    Did you read about cross site publishing feature in SP 2013?
    Check this out
    http://sharepoint.microsoft.com/blog/Pages/BlogPost.aspx?pID=1038
    http://blogs.technet.com/b/sharepoint_quick_reads/archive/2012/09/18/sharepoint-2013-cross-site-publishing.aspx
    http://blog.helloitsliam.com/Lists/Posts/Post.aspx?ID=89
    http://blogs.msdn.com/b/ritazh/archive/2012/09/26/sharepoint-2013-how-to-setup-cross-site-publishing-enable-catalog-use-managed-navigation.aspx
    http://stackoverflow.com/questions/1151036/sharepoint-lookup-column-across-site-collection-boundary
    You will need custom code for this, but since the amount is minimal and this is Stack Overflow I assume that won't be a problem. You will want to make your own listview web part that queries the list using ListViewByQuery. An example can be found here:
    http://blogs.msdn.com/b/ramg/archive/2009/04/21/implementing-a-simple-cross-site-collection-list-view-webpart.aspx

  • JNDI failure. Unable to lookup Data Source

    Dear all
    I'm running my ADF application from the jdeveloper integrated web logic server and every thing is ok.
    My project contains BC and a bounded tasklflow that contains two views.
    the problem happened when I changed the connection type of the application module from "JDBC Datasource" to "JDBC URL".
    The name of the jdbc url is "jdbc/pmsDS"
    I made this because I want to deploy my application to weblogic server and I created a datasource with the same name "jdbc/pmsDS" in weblogic server.
    I tried to test and run the application on my local jdeveloper , it fails and this error occurs
    oracle.jbo.DMLException: JBO-27200: JNDI failure. Unable to lookup Data Source at context jdbc/pmsDS
    Can any one plese tell me what is the problem. Whay my application can not identify the JNDI.
    Thanks

    user answer here,
    What does this message mean?
    No credential mapper entry found for password indirection user =hr Issue:-
    http://madnanhashmi.blogspot.com/2010/05/weblogiccommonresourceexception.html
    Edited by: Erp on Oct 20, 2011 4:50 AM

  • JNDI failure. Unable to lookup Data Source at context jdbc/AppsDatasource

    I'm not able to run my Application locally due to issue "JNDI failure. Unable to lookup Data Source at context jdbc/APPSnonXA", I did the following under debugging.
    1. Finding SPACE in DataSource, I verified
    1a. The data source for spaces and could not find any spaces. Also the "Test Connection" was successful.
    1b. The PATH, CLASSPATH variables for SPACES. Removed other Tool paths. But no Use.
    1c. Jdeveloper Installation Location Path. none of the folder names have spaces.
    1d. Application Location path. Doesn't have spaces.
    I'm attaching the log file that has the PATH,Classpath variable info.
    Please help me out.
    I did all the above by taking help of oracle forums.(https://forums.oracle.com/forums/search.jspa?threadID=&q=Re%3Aoracle.jbo.DMLException%3A+JBO-27200%3A+JNDI+failure.+Unable+to+lookup+Data+Source+at+context+&objID=f83&dateRange=all&userID=&numResults=30&rankBy=10001)

    After doing the following two things, The issue is resolved.
    #1:
    Configure Default Server for Datasource (Web logic console --> Data Sources --> jdbc/AppsDataSource --> Targets --> select, if not default server not selected --> Save --> restart the server.)
    Note:
    If we don't deploy while JNDI creation then below is correct. "You can select one or more targets to deploy your new JDBC data source. If you don't select a target, the data source will be created but not deployed. You will need to deploy the data source at a later time."
    #2: If The Jdeveloper is newly installed, Create a dummy UI application. & run a test.jspx page.

  • REG: 4 different folders from the source side and we need to have the BPM t

    Hi All,
    We are using a BPM for file-idoc scenario. Previously we use to have one source folder which sends file and the bpm worked fine. Now we have a requirement where the files come from 4 different folders from the source side and we need to have the BPM to run independently for each folder.
    What are the changes to be made in IR and id for this..
    Thanks & Regards,
    Kiran.

    File adapter has a option advance selection of source file setting which can be used for picking files from different folder.

  • Why we need Source Qualifier at Source side only

    Hi All, I know,The source qualifier transformation converts the source data types to  the Informatica native data types. So, we should not alter the data  types of the ports in the source qualifier transformation.But while loading to target why we don't have the same qualifer at target side to convert informatica data types to database target data types. Thanks,Vijaya

    I have a source DB2 table . A lookup must be done on a Oracle table Lookup Table . SEQ_N is Primary key in DB2 TableLookup matching condition is SEQ_N= lkp_SEQ_N. There is mostly a multiple match on lookup for same SEQ_N.  Now 3 different possiblities:
    on multiple match
    1)  I have to check for any 1 matching record with lkp_Flag='Y',  If found fetch lkp_Timestamp. and proceed.to next transformation.2) I have to check for any 1 matching record with lkp_Flag ='Y'   if not found then fetch any1 record and lkp_Timestamp and proceed to next transformation.3) If no matching record is found then , then I should get null for lkp_Timesatmp and proceed to next transformation.   DB2   Table lkp_TableTo   NEXT Transformationseq_nlkp_seq_nlkp_Flaglkp_Timesatmpseq_nlkp_Timestamp101101N23_JUN10121_JUN101N22_JUN101Y21_JUN102102N11_JuN10210_JUN102N12_JUN102Y10_JUN102Y13_JUN102N5_JUN103103N11_JuN10310_JUN103N12_JUN103N10_JUN103N13_JUN104No matching value104NULL105105N1_JUN1051_JUN

  • Dynamic structure on source side

    Hi SDners,
    i have a req that  to pull the data frm 10 sap tables depend and dump it to file ,depending on input data will come frm table dynamically frm ECC side.is it possible that we can make our source structure dynamically depending on input data coming frm ECC side...........
    Regards

    Hi Gangadhar ,
    One approach --->
    At XI end use a simple structure with only one field.
    At ECC end you can use proxy and in Proxy code you can put the logic to fetch the data . and finally pass it to the single field of Interface . Later on handle the data at XI end as per your requirement .
    It was just a suggestion, though dynamic structure seems to be a challenging though not sure.
    Regards ,

  • System copy: RZ21 MTE has source SID and not the target SID

    An system copy of PRD to QAS environment has been performed.
    Since then receive the following message in the CCMS Monitor sets (trx RZ20):
    Unable to determine the name of MTE class from <SID>\Background\...\SAP_SRT_COLLECTOR_FOR_MONITORIN or the message "Failed to determine MTE information for system QAS"
    Checked and in the transaction RZ21 the MTE class is pointing to the PRD system and not to the QAS system:
    RZ21 -> MTE-specific properties
    Monitoring: Properties Assigned to MTEs
    RZ21 -> Methods assigned to specific MTEs
    Monitoring: Properties and Methods
    Unable to determine the name of MTE class from PRD\Background\...\SAP_SRT_COLLECTOR_FOR_MONITORIN
    I would expect here the value "QAS\Background\...\SAP_SRT_COLLECTOR_FOR_MONITORIN".
    How can I adjust the MTE to check the QAS instead of the source system PRD ?

    Received following answer from SAP:
    we can find out the follow errors from the dev_disp developer trace file you attached.
    ERROR => e=13 semop(1048668,(0,-1,4096),1)
    (13: Permission denied) [semux.c 1196]
    ERROR => CCMS: AlCreateAttachShm_AS : lock semaphore return 1
    [alxxappl.c 665]
    ERROR => CCMS: sAlInit: could not create/attach shared memory key 13(rtc = 1) [alxx.c 1187]
    ERROR => AlDpAdmInit: sAlInit rtc = 1 [alxx.c 514]
    ERROR => DpLoopInit: AlDpAdmInit [dpxxdisp.c 2033]
    The shared memory area 13 is the one that is responsible for the alert area.
    An error within that area could cause the problem that you are facing when opening monitoring trees.
    If we look at your OS, we can see that the semaphore for this area is currently being held by the root user:
    [1]ipcs | grep 1048668
    s 1048668 0x00004e46 ra-r root system
    You need to delete this area with root user using ipcrm and restart the instace or to reboot the OS and start the instance once again.
    Performed these actions and the issue was solved.

  • Spring fails to lookup Data Source using JNDI

    Hi all I am now for configure jndi in tomcat5.5 .. my integration is like spring+hybernate+jpa
    I am getting the error is
    ERROR - ContextLoader.initWebApplicationContext(219) | Context initialization failed
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in ServletContext resource [WEB-INF/xaconfig/daoJPAConfig.xml]: Invocation of init method failed; nested exception is javax.naming.NamingException: Cannot create resource instance
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1412)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
         at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
         at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
         at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
         at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
         at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:546)
         at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:871)
         at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:423)
         at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:272)
         Caused by: javax.naming.NamingException: Cannot create resource instance
    my tomcat 5.5/context.xml is
    <?xml version="1.0" encoding="UTF-8"?>
    <!-- The contents of this file will be loaded for each web application --><Context>
    <!-- Default set of monitored resources -->
    <WatchedResource>WEB-INF/web.xml</WatchedResource>
         <Transaction factory="com.atomikos.icatch.jta.UserTransactionFactory"/>
    <!-- Uncomment this to disable session persistence across Tomcat restarts -->
    <!--
    <Manager pathname="" />
    -->
    <ResourceLink global="jdbc/Paymentsdb" name="jdbc/Paymentsdb" type="com.atomikos.jdbc.AtomikosDataSourceBean"/>
    </Context>
    and my tomcat5.5/server.xml is
    <?xml version="1.0" encoding="UTF-8"?>
    <Server port="8005" shutdown="SHUTDOWN">
    <Listener className="org.apache.catalina.mbeans.ServerLifecycleListener"/>
    <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"/>
    <Listener className="org.apache.catalina.storeconfig.StoreConfigLifecycleListener"/>
    <Listener className="com.atomikos.tomcat.AtomikosLifecycleListener"/>
    <GlobalNamingResources>
    <Environment name="simpleValue" type="java.lang.Integer" value="30"/>
    <Resource auth="Container" description="User database that can be updated and saved" factory="org.apache.catalina.users.MemoryUserDatabaseFactory" name="UserDatabase" pathname="conf/tomcat-users.xml" type="org.apache.catalina.UserDatabase"/>
    </GlobalNamingResources>
    <Service name="Catalina">
    <Connector acceptCount="100" connectionTimeout="20000" disableUploadTimeout="true" enableLookups="false" maxHttpHeaderSize="8192" maxSpareThreads="75" maxThreads="150" minSpareThreads="25" port="8080" redirectPort="8443"/>
    <Connector enableLookups="false" port="8009" protocol="AJP/1.3" redirectPort="8443"/>
    <Engine defaultHost="localhost" name="Catalina">
         <Realm className="org.apache.catalina.realm.UserDatabaseRealm" resourceName="UserDatabase"/>
         <Host appBase="webapps" autoDeploy="true" name="localhost" unpackWARs="true" xmlNamespaceAware="false" xmlValidation="false">
    <Context docBase="com.evolvus.payments.web" path="/com.evolvus.payments.web" reloadable="true" source="org.eclipse.jst.j2ee.server:com.evolvus.payments.web">
    <Resource name="jdbc/Paymentsdb" auth="Container"
    type="com.atomikos.jdbc.AtomikosDataSourceBean"
    driverClassName="com.mysql.jdbc.jdbc2.optional.MysqlXADataSource"
    url="jdbc\:mysql\://devserver\:3306/payhub"
    username="root"
    password="root"
    maxActive="20"
    maxIdle="10"
    maxWait="20000"
    />
    </Context></Host>
    </Engine>
    </Service>
    </Server>
    and my web.xml is
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app version="2.5"
         xmlns="http://java.sun.com/xml/ns/javaee"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
         <display-name>Payments</display-name>
         <context-param>
              <param-name>contextConfigLocation</param-name>
              <param-value>/WEB-INF/xaconfig/daoJPAConfig.xml</param-value>
         </context-param>
         <context-param>
         <param-name>javax.faces.CONFIG_FILES</param-name>
         <param-value>/WEB-INF/faces-config.xml</param-value>
         </context-param>
         <filter>
              <filter-name>PrimeFaces FileUpload Filter</filter-name>
              <filter-class>org.primefaces.webapp.filter.FileUploadFilter</filter-class>
         </filter>
         <filter-mapping>
              <filter-name>PrimeFaces FileUpload Filter</filter-name>
              <servlet-name>Faces Servlet</servlet-name>
         </filter-mapping>
         <context-param>
    <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
    <param-value>.xhtml</param-value>
    </context-param>
         <servlet>
              <servlet-name>Faces Servlet</servlet-name>
              <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
              <load-on-startup>1</load-on-startup>
         </servlet>
         <servlet-mapping>
              <servlet-name>Faces Servlet</servlet-name>
              <url-pattern>*.jsf</url-pattern>
         </servlet-mapping>
    <resource-ref>
    <description>PaymentsDatabase</description>
    <res-ref-name>jdbc/Paymentsdb</res-ref-name>
    <res-type>com.atomikos.jdbc.AtomikosDataSourceBean</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    </web-app>
    and my daoJpaConfig i did like this
    <beans:bean id="dataSource"
              class="org.springframework.jndi.JndiObjectFactoryBean">
              <beans:property name="jndiName">
                   <beans:value>java:comp/env/jdbc/Paymentsdb</beans:value>
              </beans:property>
              </beans:bean>
                        what are the jar file i have to add in my tomcat 5.5 and webapplication ??
    plz help me i am struggling alot ..where i did mistakes      
    i am using transaction type as transaction-type="JTA" <persistence-unit name="payhub" transaction-type="JTA">

    import java.sql.*;
    import javax.sql.*;
    import javax.naming.*;
    import java.util.*;
    public class MyDataSourceLookupClient
         public final static String JNDI_FACTORY = "weblogic.jndi.WLInitialContextFactory";
         private static String serverUrl ="t3://localhost:7001";
    public static void main(String ar[])throws Exception
    InitialContext ic=null;
    try{
              Hashtable env = new Hashtable();
              env.put(Context.INITIAL_CONTEXT_FACTORY, JNDI_FACTORY);
              env.put(Context.PROVIDER_URL, serverUrl);
              ic = new InitialContext(env);
    catch(Exception e){}
    try{
    DataSource ds=ic.lookup("YourDataSourceJNDIName");
    Connection con=ds.getConnection();
    System.out.println("\n\t Got Connection: "+con);
    con.close();
    catch(Exception e)
    System.out.println("\n\n\t jack Exception => "+e);
    e.printStackTrace();
    Thanks
    Jay SenSharma
    http://jaysensharma.wordpress.com (WebLogic Wonders Are Here)

  • My ipod is not showing up under the source side of itunes

    i just bought this ipod off of a friend and i heard i had to delete the songs he had before i put songs i wanted on here? is this true? if so how do i delete the songs he has on here? how do i get the ipod icon on the source page?

    First, try puting your iPod into disk mode, then connect it to your computer.
    Also, try these steps:
    The Five R's
    If you do not see any affect after trying that, see if these articles help:
    iTunes 7 doesn't recognize iPod
    iPod doesn’t show up in My Computer or in iTunes
    iPod is recognized by Windows but not iTunes
    -Kylene

  • Related to Http at source side

    Hi,
    Do we have to create any message type for Source ?  Any sender communication channel required when our source is Idoc sending through Http, Is it similar to Proxy?

    Hi Divya,
    Are you trying to send an IDoc data from SR/3 to XI? and for this you want to use HTTP protocol?
    if yes, then the source structure can be IDoc and there is no need for a sender agreement.
    Make sure you have a HTTP connection from your R3 to XI.
    One question why don't you use the normal IDoc adapter in this case?
    Regards
    Suraj

  • ODI 12c - Set staging table on source side

    Hello All,
    In ODI 12c, is there any default options I can choose if I want Staging Table (C$ Table -EXPRESSION_AP) be created on Source DB instead of Target DB?
    Or is it possible to skip creating the staging table with default IKM/LKM?
    Thanks in advance!

    In 12c the concept of specifying where to execute expressions has changed somewhat. You now have hints which ODI may override internally if there is a better execution plan.
    The following article provides a more detailed overview on execution hints, which by default are set to "No hint"
    https://blogs.oracle.com/dataintegration/entry/odi_12c_expressions

Maybe you are looking for

  • How can I see the numbers of lines selected in a Multiple Selection Box?

    Hi everybody, what I want to do is to get in an array of numbers all the lines selected. For instance, if I select the rows 1,4 and 7 from a Multiple Selection Box of 10 rows in total, how can I see that array when the rows 1,4 and 7 are selected? Be

  • MIGO for PO Free Item

    When i create a PO, i tick the check box to indicate that this material is a free item. When FREE is ticked, the Inv. Receipt indicator and GR-Bsd IV indicator will not be ticked. Thus when i proceed to do MIGO for that PO, it says that cannot do MIG

  • Adobe application manager keeps opening and will not allow me to install creative cloud

    Adobe application manager keeps opening and will not allow me to install creative cloud. I am trying to sync fonts and the install is not working. The adobe application manager will open on its own and not allow the creative cloud app to install. I d

  • Ipod does not open on imac, when I plug in to USB?

    WHEN I PLUG MY IPOD TOUCH (4TH GEN 8GB 5.1.1) INTO MY IMAC (INTEL IMAC OS X 10.6.8) NOTHING HAPPENS. IT DOES'NT EVEN CHARGE. AND WHEN I PLUG INTO MY KEYBOARD A MESSAGE POPS UP SAYING DEVICE NEEDS MORE POWER TO RUN PLUG INTO USB PORT ON COMPUTER. AND

  • Child.swf to pass two variables to parent in global function

    Hi, I have a parent.swf and wish to load a varying child.swf as a sub-menu. How do I establish a global function that will allow the child.swf to pass back two variables (storyName & storyType) to the parent and kick off a task. The submenu (swf) ite