to access data from 2 different servers

I have oracle on 2 different servers data. I want to access the data to retrieve
through sql query and combine the retrieved data. How to recover data
on 2 servers.
Thank you

Try like this

SQL> select name from v$database;

NAME
---------
DBDEMO

SQL> create user testing identified by passwd;

User created.

SQL> grant connect,resource to testing;

Grant succeeded.

SQL> conn testing/passwd;
Connected.

SQL> create table test_tb (id number);

Table created.

SQL> insert into test_tb values(123);

1 row created.

SQL> / 

1 row created.

SQL> commit;

Commit complete.

SQL> select count(*) from test_tb;

  COUNT(*)
----------
         2

SQL> 

on dblink created machine:-

SQL> select name from v$database;

NAME
---------
DB2

SQL> create user nic identified by nic;

User created.

SQL> grant connect,resource, create database link to nic;

Grant succeeded.

SQL> conn nic/nic;
Connected.
SQL> create database link test_db_link connect to testing identified by passwd using '(DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.1)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = dbdemo)))
  2  ';

Database link created.

SQL> select count(*) from test_tb@test_db_link;

  COUNT(*)
----------
         2

SQL>

Tags: Database

Similar Questions

  • To access data from different pages

    Hello

    I want to know who, how to access data from an html page to another html page using Javascript or HTML5?

    Thank you and best regards,

    Tejas

    After the installation of new WebWorksSDk, my problem is resolved automatically...

  • Display data from a different pattern 2 in oralce adf

    Hello

    I use jdev 11.1.1.6

    I have 2 s scheme.

    projects of two models each joint with different schema and a view controller project.

    I created two VO., one in each model project.

    Fragment I posted data from 2 VO using TF bounded homepage.

    When I do these data second VO is not coming and the following error is done.

    Configuration TestAppModuleLocal cannot be found.

    Error

    java.lang.NullPointerException

    Error

    java.lang.NullPointerException

    TestAppModuleLocal is the second Datacontrol.


    < RegionRenderer > < encodeAll > component in the region with the id: r1 has detected a page with several components of root fragment. More fragments of a root element may not display properly in a region and can have a negative impact on performance. It is recommended that you restructure the page fragment to have a single root element.

    < Utils > < buildFacesMessage > ADF: addition of the JSF error message: Configuration TestAppModuleLocal cannot be found.

    oracle.jbo.ConfigException: Houston-33005: Configuration TestAppModuleLocal cannot be found.

    at oracle.jbo.client.Configuration.getConfiguration(Configuration.java:618)

    at oracle.jbo.common.ampool.PoolMgr.loadConfiguration(PoolMgr.java:605)

    at oracle.jbo.common.ampool.PoolMgr.findPool(PoolMgr.java:526)

    at oracle.adf.model.bc4j.DCJboDataControl.findApplicationPool(DCJboDataControl.java:572)

    at oracle.adf.model.bc4j.DCJboDataControl.initializeSessionCookie(DCJboDataControl.java:396)

    at oracle.adf.model.bc4j.DCJboDataControl.initializeJboSession(DCJboDataControl.java:310)

    at oracle.adf.model.bc4j.DataControlFactoryImpl.createSessionInternal(DataControlFactoryImpl.java:220)

    at oracle.adf.model.bc4j.DataControlFactoryImpl.createSession(DataControlFactoryImpl.java:130)

    at oracle.adf.model.binding.DCDataControlReference.getDataControl(DCDataControlReference.java:167)

    at oracle.adf.model.BindingContext.instantiateDataControl(BindingContext.java:1056)

    at oracle.adf.model.dcframe.DataControlFrameImpl.doFindDataControl(DataControlFrameImpl.java:1566)

    at oracle.adf.model.dcframe.DataControlFrameImpl.internalFindDataControl(DataControlFrameImpl.java:1438)

    at oracle.adf.model.dcframe.DataControlFrameImpl.findDataControl(DataControlFrameImpl.java:1398)

    at oracle.adf.model.BindingContext.internalFindDataControl(BindingContext.java:1189)

    at oracle.adf.model.BindingContext.get(BindingContext.java:1139)

    at oracle.adf.model.binding.DCParameter.evaluateValue(DCParameter.java:82)

    at oracle.adf.model.binding.DCParameter.getValue(DCParameter.java:111)

    at oracle.adf.model.binding.DCBindingContainer.getChildByName(DCBindingContainer.java:2713)

    at oracle.adf.model.binding.DCBindingContainer.internalGet(DCBindingContainer.java:2761)

    at oracle.adf.model.binding.DCExecutableBinding.get(DCExecutableBinding.java:115)

    at oracle.adf.model.binding.DCUtil.findSpelObject(DCUtil.java:304)

    at oracle.adf.model.binding.DCBindingContainer.evaluateParameterWithElCheck(DCBindingContainer.java:1458)

    at oracle.adf.model.binding.DCBindingContainer.findDataControl(DCBindingContainer.java:1588)

    at oracle.adf.model.binding.DCIteratorBinding.initDataControl(DCIteratorBinding.java:2472)

    at oracle.adf.model.binding.DCIteratorBinding.getDataControl(DCIteratorBinding.java:2416)

    at oracle.adf.model.binding.DCIteratorBinding.getAttributeDefs(DCIteratorBinding.java:3201)

    at oracle.jbo.uicli.binding.JUCtrlValueBinding.fetchAttrDefs(JUCtrlValueBinding.java:510)

    at oracle.jbo.uicli.binding.JUCtrlValueBinding.getAttributeDefs(JUCtrlValueBinding.java:461)

    at oracle.jbo.uicli.binding.JUCtrlValueBinding.findAttributeDef(JUCtrlValueBinding.java:612)

    at oracle.jbo.uicli.binding.JUCtrlValueBinding.lookupAttributeDef(JUCtrlValueBinding.java:583)

    to oracle.jbo.uicli.binding.JUCtrlHierBinding$ 1JUCtrlHierHintsMap.internalGet(JUCtrlHierBinding.java:183)

    at oracle.jbo.common.JboAbstractMap.get(JboAbstractMap.java:54)

    at javax.el.MapELResolver.getValue(MapELResolver.java:164)

    at com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:173)

    at com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:200)

    at com.sun.el.parser.AstValue.getValue (unknown Source)

    at com.sun.el.ValueExpressionImpl.getValue (unknown Source)

    at org.apache.myfaces.trinidad.bean.FacesBeanImpl.getProperty(FacesBeanImpl.java:68)

    at oracle.adfinternal.view.faces.renderkit.rich.table.BaseColumnRenderer.getProperty(BaseColumnRenderer.java:1094)

    at oracle.adfinternal.view.faces.renderkit.rich.table.BaseColumnRenderer.layoutHeader(BaseColumnRenderer.java:542)

    at oracle.adfinternal.view.faces.renderkit.rich.table.BaseColumnRenderer.encodeAll(BaseColumnRenderer.java:90)

    at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1396)

    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:341)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:767)

    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:937)

    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:405)

    at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:2633)

    at oracle.adfinternal.view.faces.renderkit.rich.table.BaseTableRenderer.layoutColumnHeader(BaseTableRenderer.java:1125)

    at oracle.adfinternal.view.faces.renderkit.rich.TableRenderer.encodeAll(TableRenderer.java:527)

    at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1396)

    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:341)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:767)

    at org.apache.myfaces.trinidad.component.UIXCollection.encodeEnd(UIXCollection.java:538)

    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:937)

    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:405)

    at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:2633)

    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:421)

    at oracle.adfinternal.view.faces.renderkit.rich.RegionRenderer._encodeChildren(RegionRenderer.java:278)

    at oracle.adfinternal.view.faces.renderkit.rich.RegionRenderer.encodeAll(RegionRenderer.java:201)

    at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1396)

    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:341)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:767)

    at oracle.adf.view.rich.component.fragment.UIXRegion.encodeEnd(UIXRegion.java:300)

    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:937)

    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:405)

    at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:2633)

    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:421)

    at oracle.adfinternal.view.faces.renderkit.rich.FormRenderer.encodeAll(FormRenderer.java:220)

    at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1396)

    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:341)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:767)

    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:937)

    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:405)

    at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:2633)

    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:421)

    at oracle.adfinternal.view.faces.renderkit.rich.DocumentRenderer.encodeAll(DocumentRenderer.java:1324)

    at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1396)

    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:341)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:767)

    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:937)

    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:933)

    at com.sun.faces.application.ViewHandlerImpl.doRenderView(ViewHandlerImpl.java:266)

    at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:197)

    at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:189)

    at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:193)

    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._renderResponse(LifecycleImpl.java:911)

    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:367)

    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:222)

    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)

    to weblogic.servlet.internal.StubSecurityHelper$ ServletServiceAction.run (StubSecurityHelper.java:227)

    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)

    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)

    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:205)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106)

    to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:446)

    at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)

    to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:446)

    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)

    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)

    at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    to oracle.security.jps.ee.http.JpsAbsFilter$ 1.run(JpsAbsFilter.java:119)

    at java.security.AccessController.doPrivileged (Native Method)

    at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)

    at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)

    at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)

    at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)

    at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.wrapRun (WebAppServletContext.java:3715)

    to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.run (WebAppServletContext.java:3681)

    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)

    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)

    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)

    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)

    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)

    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)

    at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)

    < Utils > < buildFacesMessage > ADF: addition of the following JSF error: java.lang.NullPointerException

    java.lang.NullPointerException

    at oracle.adf.model.binding.DCIteratorBinding.initSourceRSI(DCIteratorBinding.java:1797)

    at oracle.adf.model.binding.DCIteratorBinding.callInitSourceRSI(DCIteratorBinding.java:1672)

    at oracle.adf.model.binding.DCIteratorBinding.internalGetRowSetIterator(DCIteratorBinding.java:1645)

    at oracle.adf.model.binding.DCIteratorBinding.refresh(DCIteratorBinding.java:4395)

    at oracle.adf.model.binding.DCExecutableBinding.refreshIfNeeded(DCExecutableBinding.java:341)

    at oracle.jbo.uicli.binding.JUCtrlHierBinding.getRootNodeBinding(JUCtrlHierBinding.java:93)

    to oracle.jbo.uicli.binding.JUCtrlHierBinding$ 1JUCtrlHierHintsMap.internalGet(JUCtrlHierBinding.java:209)

    at oracle.jbo.common.JboAbstractMap.get(JboAbstractMap.java:54)

    at javax.el.MapELResolver.getValue(MapELResolver.java:164)

    at com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:173)

    at com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:200)

    at com.sun.el.parser.AstValue.getValue (unknown Source)

    at com.sun.el.ValueExpressionImpl.getValue (unknown Source)

    at org.apache.myfaces.trinidad.bean.FacesBeanImpl.getProperty(FacesBeanImpl.java:68)

    at oracle.adfinternal.view.faces.renderkit.rich.table.BaseColumnRenderer.getProperty(BaseColumnRenderer.java:1094)

    at oracle.adfinternal.view.faces.renderkit.rich.table.BaseColumnRenderer.layoutHeader(BaseColumnRenderer.java:542)

    at oracle.adfinternal.view.faces.renderkit.rich.table.BaseColumnRenderer.encodeAll(BaseColumnRenderer.java:90)

    at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1396)

    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:341)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:767)

    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:937)

    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:405)

    at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:2633)

    at oracle.adfinternal.view.faces.renderkit.rich.table.BaseTableRenderer.layoutColumnHeader(BaseTableRenderer.java:1125)

    at oracle.adfinternal.view.faces.renderkit.rich.TableRenderer.encodeAll(TableRenderer.java:527)

    at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1396)

    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:341)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:767)

    at org.apache.myfaces.trinidad.component.UIXCollection.encodeEnd(UIXCollection.java:538)

    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:937)

    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:405)

    at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:2633)

    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:421)

    at oracle.adfinternal.view.faces.renderkit.rich.RegionRenderer._encodeChildren(RegionRenderer.java:278)

    at oracle.adfinternal.view.faces.renderkit.rich.RegionRenderer.encodeAll(RegionRenderer.java:201)

    at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1396)

    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:341)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:767)

    at oracle.adf.view.rich.component.fragment.UIXRegion.encodeEnd(UIXRegion.java:300)

    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:937)

    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:405)

    at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:2633)

    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:421)

    at oracle.adfinternal.view.faces.renderkit.rich.FormRenderer.encodeAll(FormRenderer.java:220)

    at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1396)

    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:341)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:767)

    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:937)

    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:405)

    at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:2633)

    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:421)

    at oracle.adfinternal.view.faces.renderkit.rich.DocumentRenderer.encodeAll(DocumentRenderer.java:1324)

    at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1396)

    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:341)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:767)

    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:937)

    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:933)

    at com.sun.faces.application.ViewHandlerImpl.doRenderView(ViewHandlerImpl.java:266)

    at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:197)

    at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:189)

    at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:193)

    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._renderResponse(LifecycleImpl.java:911)

    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:367)

    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:222)

    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)

    to weblogic.servlet.internal.StubSecurityHelper$ ServletServiceAction.run (StubSecurityHelper.java:227)

    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)

    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)

    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:205)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106)

    to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:446)

    at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)

    to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:446)

    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)

    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)

    at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    to oracle.security.jps.ee.http.JpsAbsFilter$ 1.run(JpsAbsFilter.java:119)

    at java.security.AccessController.doPrivileged (Native Method)

    at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)

    at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)

    at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)

    at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)

    at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.wrapRun (WebAppServletContext.java:3715)

    to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.run (WebAppServletContext.java:3681)

    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)

    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)

    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)

    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)

    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)

    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)

    at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)

    The problem is using the same name for the model and packages projects.

    DataBindings.cpx is confusing to a mapping between the 2 projects.

    Changed the name of the other project model and in the source databindings.cpx file name. It works very well.

    NGO.

  • Is it possible to recreate a link to or to access data from the Delta after the original disk has been changed?

    I did something very stupid, but didn't know what I was doing until it was done. Now I need help.

    I had a server doesn't go down (Windows 2008), no backups. He had two logical drives on two separate VMDK. I decided to mount the drive on a new server and move all data from the old disk (VMDK) to the new computer virtual server. Once done, I realized that the data that I had moved across was 6 months old. Further investigation, I found a car delta for this drive. I reassembled the old VMDK on the old server and carried out a repair. This brought to the top of the old server, but I had moved all the data on the data disk to the new server and so the data on the drive of delta were more visible. My question of course, is "How can I get the data on the disc of delta, which is actually 6 months worth. Does anyone have a miracle solution?

    set the virtual disk cloned on a virtual machine to help. "

    Use an existing virtual machine, change the settings and add/get cloned like an extra virtual drive virtual drive. If I understand your initial post, you have initially with the disc of the parent base.

    André

  • Access data from a live system without Apple ID Login

    Hello community OSX,.

    My aunt gave me an Apple MacBook Pro with OS X Yosemite, which was in possession of my dead uncle. Her only wish is, before I reinstall the system to save the files to an external hard drive and important documents. As you can guess, it doesn't have the logon password, so I ask you, is it possible to access these data with a USB boot/recovery and copy them to the external hard drive?

    I'd appreciate any help.

    Kind regards

    Not without the Apple code.

  • Use the same graphical display of data from the different cases of event Structure

    Hello

    I would like one graph to view the input data and modified by one of the two cases of different event structure.  So if the event 1 is selected by the user, the data would be entered by the code contained in 1 case and then introduced in a waveform to display chart.  If the event case 2 is selected, similar data would enter the 2 cases but then displayed by the same graphic waveform , as in case 1.  I don't know if there is a way to do this... it seems that each case of the event would need its own array of waveform, but it becomes quickly heavy regarding the graphical interface for the multiple cases of event.

    Advice would be greatly appreciated!

    Thank you

    Mike

    You are allowed to put the business structures in the case of timeout.

  • I want to loop through the data from two different tables using for loop where the query should be replaced at runtime, please help me

    I have the data into two table with the structure of similar column, I want to loop through the data in these two tables

    based on some condition and runtime that I want to put the query in loop for example, the example is given, please help me

    create table ab (a number, b varchar2 (20));

    Insert into ab

    Select rownum, rownum. "" sample "

    of the double

    connect by level < = 10

    create table bc (a number, b varchar2 (20));

    Insert into BC.

    Select rownum + 1, rownum + 1 | "" sample "

    of the double

    connect by level < = 10

    declare

    l_statement varchar2 (2000);

    Boolean bool;

    Start

    bool: = true;

    If it is true, then

    l_statement: =' select * ab ';

    on the other

    l_statement: =' select * from bc';

    end if

    I'm in execute immediate l_statement - something like that, but I don't know

    loop

    dbms_output.put_line (i.a);

    end loop;

    end;

    Something like that, but this isn't a peace of the code work.

    Try this and adapt according to your needs:

    declare

    l_statement varchar2 (2000);

    c SYS_REFCURSOR;

    l_a number;

    l_b varchar2 (20);

    Boolean bool;

    Start

    bool: = true;

    If it is true, then

    l_statement: = "select a, b, AB;

    on the other

    l_statement: = "select a, b from bc;

    end if;

    --

    Open c for l_statement;

    --

    loop

    extract the c in l_a, l_b;

    When the output c % notfound;

    dbms_output.put_line (l_a |') -' || l_b);

    end loop;

    close c;

    end;

    /

  • How to load data from a different column string

    Hello

    In a table, I get the data as a string

    101, SAM, 2000, 20, SALES
    "102, RAM, 3000, 30, MARKETING"

    I want to load this data into another column in the target table

    So I have to cut these data and having to load them into different target column.

    Select SUBSTR (101, SAM, 2000, 20, SALES,)
    INSTR('101,SAM,2000,20,SALES',',',1,4) + 1)
    Double;

  • Extract data from a different node in SQL

    Hi friends,

    First of all:
            BANNER
    1     Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    2     PL/SQL Release 11.2.0.3.0 - Production
    3     CORE     11.2.0.3.0     Production
    4     TNS for Linux: Version 11.2.0.3.0 - Production
    5     NLSRTL Version 11.2.0.3.0 - Production
    I have a small but annoying problem. I have create a Bank application that needs to retrieve data in a file entry, and, according to this information, to execute some stored procedures (create a new customer, create a new account, create a transaction for an account).
    For example: the input file contains a few new customers (FirstName, LastName, SocialSecurityNumber, birthday, address and PhoneNo), for each customer account at least 1 create 1 or more operations (the amount of the transaction) for each account.

    Let me be more precise. It is a XML in an input file:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <doc>
      <PERS_INFO>
        <lastname>John</lastname>
        <firstname>Doe</firstname>
        <social_security_no>1800325171545</social_security_no>
        <birthday>25/03/1980</birthday>
        <address>Principal, 15</address>
        <phoneno>0040722222222</phoneno>
        <acc>
          <transaction>200</transaction>
          <transaction>150</transaction>
          <transaction>-23</transaction>
        </acc>
        <acc>
          <transaction>450</transaction>
        </acc>
        <acc>
          <transaction>800</transaction>
          <transaction>320</transaction>
          <transaction>-125</transaction>
        </acc>
      </PERS_INFO>
      <PERS_INFO>
        <lastname>Smith</lastname>
        <firstname>Pop</firstname>
        <social_security_no>2851211173377</social_security_no>
        <birthday>11/12/1985</birthday>
        <address>FirstAvenue, 20</address>
        <phoneno>0040744444444</phoneno>
        <acc>
          <transaction>444</transaction>
          <transaction>550</transaction>
        </acc>
        <acc>
          <transaction>113</transaction>
          <transaction>-50</transaction>
          <transaction>89</transaction>
        </acc>
        <acc>
          <transaction>300</transaction>
        </acc>
      </PERS_INFO>
    </doc>
    This input file must start the following:

    -create 2 new clients (using a stored procedure Pr_Add_New_Cust):
    1 John Doe / 1800325171545 / 25.03.1980 / main, 15 / 0040722222222
    2 Smith Pop / 2851211173377 / 11.12.1985 / FirstAvenue, 20 / 0040744444444

    -for John Doe I create 3 new account (using a stored procedure Pr_Add_New_Account):
    -account 1 - for this account, I have to create 3 new operations (using a stored procedure Pr_Create_New_Trans): DEPOSIT $ 200, $ 150 DEPOSIT, WITHDRAW $ 23
    -account 2 - for this account, I need to create 1 new operations (using a stored procedure Pr_Create_New_Trans): DEPOSIT $ 450
    -count of 3 - for this account, I have to create 3 new operations (using a stored procedure Pr_Create_New_Trans): DEPOSIT $ 800, DEPOSIT $ 320, WITHDRAWAL $ 125

    -for Smith Pop I create 3 new account (using a stored procedure Pr_Add_New_Account):
    -account 1 - for this account, I need to create 2 new operations (using a stored procedure Pr_Create_New_Trans): DEPOSIT $ 444, DEPOSIT $ 550
    -account 2 - for this account, I have to create 3 new operations (using a stored procedure Pr_Create_New_Trans): DEPOSIT $ 113, WITHDRAW $50, DEPOSIT $ 89
    -count of 3 - for this account, I need to create 1 new operations (using a stored procedure Pr_Create_New_Trans): DEPOSIT $ 300


    Well, I think to do that by loading this XML into a table of staging pre - INS_STG1 - (the part of loading is not an issue at the moment) and by analyzing the XML code in order to get my (insert) in the second staging table INS_STG2 the information required to initiate these procedures.
    Something like that (at the moment I only insert customer information since I do not know how to get on the floor):
    DECLARE  
    
       TYPE ty_rec_1    IS RECORD (v_cust_firstname       VARCHAR2(32),
                                   v_cust_lastname        VARCHAR2(32),
                                   v_cust_persnumcode     VARCHAR2(32),
                                   v_cust_birthday        VARCHAR2(32),
                                   v_cust_address         VARCHAR2(32),
                                   v_cust_phoneno         VARCHAR2(32));
       TYPE ty_cur_1       IS REF CURSOR RETURN ty_rec_1;
       TYPE ty_arr_rec_1   IS TABLE OF ty_rec_1 INDEX BY PLS_INTEGER;
       cur_1               ty_cur_1;
       arr_rec_1           ty_arr_rec_1;
       my_xml              xmltype;
       N_BULK_SIZE         NUMBER := 1000;
      
    BEGIN 
      
      SELECT xml_column INTO my_xml FROM INS_STG1;
      
      OPEN cur_1 FOR
        SELECT extractvalue(column_value, '/PERS_INFO/firstname')          "v_cust_firstname",
               extractvalue(column_value, '/PERS_INFO/lastname')           "v_cust_lastname",
               extractvalue(column_value, '/PERS_INFO/social_security_no') "v_cust_persnumcode",
               extractvalue(column_value, '/PERS_INFO/birthday')           "v_cust_birthday",
               extractvalue(column_value, '/PERS_INFO/address')            "v_cust_address",
               extractvalue(column_value, '/PERS_INFO/phoneno')            "v_cust_phoneno"       
        FROM TABLE(XMLSequence(my_xml.extract('/doc/PERS_INFO'))) t;
    
        LOOP
           FETCH cur_1 BULK COLLECT INTO arr_rec_1 LIMIT N_BULK_SIZE;
           EXIT WHEN arr_rec_1.COUNT() = 0;
           FORALL n_idx1 IN 1..arr_rec_1.COUNT()
             INSERT INTO INS_STG2
               (cust_firstname, cust_lastname, cust_persnumcode, cust_birthday, cust_address, cust_phoneno)
              VALUES 
              (arr_rec_1(n_idx1).v_cust_firstname, arr_rec_1(n_idx1).v_cust_lastname, 
               arr_rec_1(n_idx1).v_cust_persnumcode, arr_rec_1(n_idx1).v_cust_birthday, 
               arr_rec_1(n_idx1).v_cust_address, arr_rec_1(n_idx1).v_cust_phoneno);
         END LOOP;
       CLOSE cur_1;  
      COMMIT;              
    
    END;
    This procedure is based on the SQL query that I'm starting to fold with in order to understand how to get the information from XML using SQL (the XML is hardcoded)
    SELECT extractvalue(column_value, '/PERS_INFO/firstname')    "First Name",
           extractvalue(column_value, '/PERS_INFO/lastname')     "Last Name",
           extractvalue(column_value, '/PERS_INFO/social_security_no')  "Social Security No",
           extractvalue(column_value, '/PERS_INFO/birthday')     "Birth-day",
           extractvalue(column_value, '/PERS_INFO/address')      "Address",
           extractvalue(column_value, '/PERS_INFO/phoneno')      "Phone No"
      FROM TABLE(XMLSequence(
                 XMLTYPE(
                 '<?xml version="1.0" encoding="ISO-8859-1"?>
                  <doc>
                    <PERS_INFO>
                      <lastname>John</lastname>
                      <firstname>Doe</firstname>
                      <social_security_no>1800325171545</social_security_no>
                      <birthday>25/03/1980</birthday>
                      <address>Principal, 15</address>
                      <phoneno>0040722222222</phoneno>
                      <acc>
                        <transaction>200</transaction>
                        <transaction>150</transaction>
                        <transaction>-23</transaction>
                      </acc>
                      <acc>
                        <transaction>450</transaction>
                      </acc>
                      <acc>
                        <transaction>800</transaction>
                        <transaction>320</transaction>
                        <transaction>-125</transaction>
                      </acc>
                    </PERS_INFO>
                    <PERS_INFO>
                      <lastname>Smith</lastname>
                      <firstname>Pop</firstname>
                      <social_security_no>2851211173377</social_security_no>
                      <birthday>11/12/1985</birthday>
                      <address>FirstAvenue, 20</address>
                      <phoneno>0040744444444</phoneno>
                      <acc>
                        <transaction>444</transaction>
                        <transaction>550</transaction>
                      </acc>
                      <acc>
                        <transaction>113</transaction>
                        <transaction>-50</transaction>
                        <transaction>89</transaction>
                      </acc>
                      <acc>
                        <transaction>300</transaction>
                      </acc>
                    </PERS_INFO>
                  </doc>').extract('/doc/PERS_INFO'))) t;
    My problem is that this query will only at the first level (the level of the customer). I don't know how to get to the second and third level (transactions/account).
    Now, this query return:
    Doe     John     1800325171545     25/03/1980     Principal, 15     0040722222222
    Pop     Smith     2851211173377     11/12/1985     FirstAvenue, 20     0040744444444
    and I want him back like this:
    Doe     John     1800325171545     25/03/1980     Principal, 15     0040722222222  1   200
    Doe     John     1800325171545     25/03/1980     Principal, 15     0040722222222  1   150
    Doe     John     1800325171545     25/03/1980     Principal, 15     0040722222222  1  -23
    Doe     John     1800325171545     25/03/1980     Principal, 15     0040722222222  2   450
    Doe     John     1800325171545     25/03/1980     Principal, 15     0040722222222  3   800
    Doe     John     1800325171545     25/03/1980     Principal, 15     0040722222222  3   320
    Doe     John     1800325171545     25/03/1980     Principal, 15     0040722222222  3  -125 
    Pop     Smith     2851211173377     11/12/1985     FirstAvenue, 20     0040744444444  1   444
    Pop     Smith     2851211173377     11/12/1985     FirstAvenue, 20     0040744444444  1   550
    Pop     Smith     2851211173377     11/12/1985     FirstAvenue, 20     0040744444444  2   113
    Pop     Smith     2851211173377     11/12/1985     FirstAvenue, 20     0040744444444  2  -50
    Pop     Smith     2851211173377     11/12/1985     FirstAvenue, 20     0040744444444  2   89
    Pop     Smith     2851211173377     11/12/1985     FirstAvenue, 20     0040744444444  3   300
    What I do for this SQL query to get the result at the transaction level (as in the second table)? This XML can be improved as well. If another structure service for my purpose, please let me know.

    Thank you!

    Like [url http://docs.oracle.com/cd/E11882_01/server.112/e26088/functions061.htm#SQLRF06173] extractvalue is frowned upon in your version, you need to switch to another method, as shown in the documentation.

    Go further with that, here's a starter SQL which gives you the desired result

    WITH INS_STG1 AS
    (SELECT XMLTYPE('
                  
                    
                      John
                      Doe
                      1800325171545
                      25/03/1980
                      
    Principal, 15
    0040722222222 200 150 -23 450 800 320 -125
    Smith Pop 2851211173377 11/12/1985
    FirstAvenue, 20
    0040744444444 444 550 113 -50 89 300
    ') xml_column FROM DUAL ) -- The above simulates your table. Only the below matters. SELECT xt.First_Name, xt.birth_day, xt2.acc_rn, xt3.trans FROM INS_STG1, XMLTable('/doc/PERS_INFO' PASSING INS_STG1.xml_column COLUMNS First_Name VARCHAR2(20) PATH 'firstname', Birth_day VARCHAR2(10) PATH 'birthday', acc_xml XMLType PATH 'acc') xt, XMLTable('/acc' PASSING xt.acc_xml COLUMNS acc_rn FOR ORDINALITY, tran_xml XMLTYPE PATH 'transaction') xt2, XMLTable('/transaction' PASSING xt2.tran_xml COLUMNS trans NUMBER PATH '.') xt3;

    product

    FIRST_NAME           BIRTH_DAY      ACC_RN      TRANS
    -------------------- ---------- ---------- ----------
    Doe                  25/03/1980          1        200
    Doe                  25/03/1980          1        150
    Doe                  25/03/1980          1        -23
    Doe                  25/03/1980          2        450
    Doe                  25/03/1980          3        800
    Doe                  25/03/1980          3        320
    Doe                  25/03/1980          3       -125
    Pop                  11/12/1985          1        444
    Pop                  11/12/1985          1        550
    Pop                  11/12/1985          2        113
    Pop                  11/12/1985          2        -50
    Pop                  11/12/1985          2         89
    Pop                  11/12/1985          3        300
    

    Now... There are probably a better way to XQuery to shoot that turned off, but I'll keep this better than me for someone of XQuery example.

    I'll also include is it possible that all this work could be done in a single SQL statement, as indicated by
    [url http://odieweblog.wordpress.com/2012/05/10/how-to-load-xml-data-into-multiple-tables/] How to: Load XML data in multiple tables

  • To access the data from database to a remote computer

    Hi all

    Can someone tell me how to access data from a database, sitting on another computer? I use the Sqlite database. It works fine in my computer. But I don't know hoe to put the database in another computer (server) and access the data from there. In my program, it is essential to do this for a simultaneous use for different users. Someone please help.

    Kind regards

    Cindy.

    I found the solution... http://ConnectionStrings.com/

  • How to get data in two different bases?

    Hello guys!

    I want to retrieve data from two different databases. I can't use one because they are in different cities, and now I need to use both. How can I do?

    Thank you!

    Published by: Tipertuba on 11/11/2009 05:13

    Use the links in DB, if everything you do is querying the data... if its replication in time more real then look in or data streams keep... but below you can find things on the database link

    http://www.morganslibrary.org/reference/Db_link.html

  • Get data from SQL Server to a different server

    Before I dive into that, I want to do this is possible and relatively painless :)

    My Flex web application is hosted on a server (let's call it server01) which is the web server, and I have a database of SQL Server 2000 on another server (server05), that is not a web server. In the Flex application, I want to fill a ComboBox with data from a table in SQL Server to server05. Is it possible even if they are on different servers and server05 has web access? Thank you.

    "Guddie" wrote in message
    News:gf1ukm$T0M$1@forums. Macromedia.com...
    > Before I dive into that, I want to make sure that it is possible and relatively
    > painless :)
    >
    > My Flex web app is hosted on a server (let's call it server01) which is the
    > web
    > server and I have a database of SQL Server 2000 on a different server
    > (server05).
    > is not a web server. In the Flex application, I want to fill a
    > ComboBox
    > using data from a table in SQL Server to server05. Is it still possible
    > If
    > they are on different servers and server05 has web access? Thank you.

    If dad server01 access server05, then it can make calls for you.

    HTH;

    Amy

  • How to access and recover photos and data from icloud?

    How to access and recover photos and data from icloud?

    Sign up for settings/iCloud and turn on the various switches in sync. On a computer, go to system/iCloud Preferences, log in and check the different items to synchronize.

  • Can I set up custody of data between databases already available on two different servers?

    Hi, people

    Can I set up custody of data between databases already available on two different servers? If Yes please can you share the links.

    Host operating system: business Red hat Linux 6.5, 64-bit

    The two DB: Oracle 11.2.0.1

    Thank you

    But my question is that I have already two databases running on two different servers that have different data as well.

    In this case we can able to configuration data guard on these two databases.

    The answer may well be yes or no depending on what exactly you mean. Let me explain... Suppose that my Setup matches your description. I have two database servers, we will call them HOST01 and HOST02. HOST01, I have a database named ORCL1 and HOST02 I have a totally different database named ORCL2. Two databases... two hosts.

    Can I do ORCL2 a physical database ensures for ORCL1? The answer is no, I can't. I can't use another existing database to be one physical standby of another. ORCL2 must be destroyed and ORCL1 copied to HOST02 so that I have a database of duplicate.

    Can I use ORCL2 logical waiting for ORCL1? Yes. However, it would be a rare configuration.

    Can I copy ORCL1 to HOST02 and create a physical standby of ORCL1 on HOST02? And then can copy ORCL2 to HOST01 and HOST01 to provide a physical standby for ORCL2? The answer to both is Yes. You can have the other provide a standby for the guests of the database have sufficient resources to support the primary one and the expectation of the other.

    HTH,

    Brian

  • To find common data in 2 columns from two different tables.

    Hello

    Could someone help me with a querry to discover common data of 2 columns from two different tables?

    Thank you
    Rajesh

    Try as below.

    select col1 ,col2 from tab1
    intersect
    select col1 ,col2 from tab2;
    

Maybe you are looking for