Data synchronization between databases

Hi,
This week one of my team accidentally damaged multiple records in one of the production databases, I have a backup of the database prior to what happened.    I need to copy the information in a few tables from the beginning of records (about 10 years ago), to the end of August 2014.   The newer records should remain as they are.
I was thinking that the best route is to use some sort of tool to synchronize data between databases.
Do you guys have a recommendation for this sort of work? 
The databases (production and backup) are ASA 9.
Best regards,
Edgard

Hello Edgard,
If you have any PowerBuilder in-house the Data Pipeline object might help. Otherwise I'd have a look at Squirrel SQL. I know that can communicate between two databases simultaneously but confess I have never tried it.
Paul

Similar Messages

  • Essbase Analytics Link cannot create data synchronization server database

    When I try to create data synchronization server database using Essbase Analytics Link, the below error occur, anyone can help?Thnaks
    dss.log:
    19 Oct 2011 17:28:55] [dbmgr] ERROR: last message repeated 2 more times
    [19 Oct 2011 17:28:55] [dbmgr] removed "C:\oracle\product\EssbaseAnalyticsLink\oem\hfm\Comma\Default\Comma.hdf"
    [19 Oct 2011 17:28:55] [dbmgr] removed "C:\oracle\product\EssbaseAnalyticsLink\oem\hfm\Comma\Default\PERIOD.hrd"
    [19 Oct 2011 17:28:55] [dbmgr] removed "C:\oracle\product\EssbaseAnalyticsLink\oem\hfm\Comma\Default\VIEW.hrd"
    [19 Oct 2011 17:28:55] [dbmgr] removed "C:\oracle\product\EssbaseAnalyticsLink\oem\hfm\Comma\Default\YEAR.hrd"
    [19 Oct 2011 17:28:58] [dbmgr] Create metadata: "C:/oracle/product/EssbaseAnalyticsLink/oem/hfm/Comma/Default/Comma.hdf"
    [19 Oct 2011 17:28:59] [dbmgr] WARN : HR#03826: Directory "C:\oracle\product\EssbaseAnalyticsLink/Work/XOD/backUp_2" not found. Trying to create
    [19 Oct 2011 17:29:15] [dbmgr] ERROR: ODBC: HR#01465: error in calling SQLDriverConnect ([Microsoft][ODBC SQL Server Driver][Shared Memory]Invalid connection. [state=08001 code=14]).
    [19 Oct 2011 17:29:15] [dbmgr] ERROR: HR#00364: Cannot open source reader for "ACCOUNT"
    [19 Oct 2011 17:29:15] [dbmgr] ERROR: HR#00627: Cannot create dimension: "ACCOUNT".
    [19 Oct 2011 17:29:16] [dbmgr] ERROR: HR#07722: Cube 'main_cube' of application 'Comma' is not registered.
    eal.log:
    [2011-Oct-19 17:28:56] http://localhost/livelink/Default.aspx?command=readYear&server=TestEss64&application=Comma&domain=
    [2011-Oct-19 17:28:56] http://localhost/livelink/Default.aspx?command=readPeriod&server=TestEss64&application=Comma&domain=
    [2011-Oct-19 17:28:57] http://localhost/livelink/Default.aspx?command=readView&server=TestEss64&application=Comma&domain=
    [2011-Oct-19 17:28:57] http://localhost/livelink/Default.aspx?command=getVersion&server=TestEss64&application=Comma&domain=
    [2011-Oct-19 17:28:58] DSS Application created
    [2011-Oct-19 17:28:58] http://localhost/livelink/Default.aspx?command=getICPWeight&server=TestEss64&application=Comma&domain=
    [2011-Oct-19 17:29:15] (-6981) HR#07772: cannot register HDF
    [2011-Oct-19 17:29:15] com.hyperroll.jhrapi.JhrapiException: (-6981) HR#07772: cannot register HDF
    [2011-Oct-19 17:29:15]      at com.hyperroll.jhrapi.JhrapiImpl.updateMetadata(Native Method)
    [2011-Oct-19 17:29:15]      at com.hyperroll.jhrapi.Application.updateMetadata(Unknown Source)
    [2011-Oct-19 17:29:15]      at com.hyperroll.hfm2ess.bridge.HyperRollProcess.updateMetadata(Unknown Source)
    [2011-Oct-19 17:29:15]      at com.hyperroll.hfm2ess.bridge.ws.BridgeOperationManagerImpl.createAggServerApp(Unknown Source)
    [2011-Oct-19 17:29:15]      at com.hyperroll.hfm2ess.bridge.ws.BridgeOperationManager.createAggServerApp(Unknown Source)
    [2011-Oct-19 17:29:15]      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [2011-Oct-19 17:29:15]      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [2011-Oct-19 17:29:15]      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [2011-Oct-19 17:29:15]      at java.lang.reflect.Method.invoke(Method.java:597)
    [2011-Oct-19 17:29:15]      at weblogic.wsee.jaxws.WLSInstanceResolver$WLSInvoker.invoke(WLSInstanceResolver.java:92)
    [2011-Oct-19 17:29:15]      at weblogic.wsee.jaxws.WLSInstanceResolver$WLSInvoker.invoke(WLSInstanceResolver.java:74)
    [2011-Oct-19 17:29:15]      at com.sun.xml.ws.server.InvokerTube$2.invoke(InvokerTube.java:151)
    [2011-Oct-19 17:29:15]      at com.sun.xml.ws.server.sei.EndpointMethodHandlerImpl.invoke(EndpointMethodHandlerImpl.java:268)
    [2011-Oct-19 17:29:15]      at com.sun.xml.ws.server.sei.SEIInvokerTube.processRequest(SEIInvokerTube.java:100)
    [2011-Oct-19 17:29:15]      at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:866)
    [2011-Oct-19 17:29:15]      at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:815)
    [2011-Oct-19 17:29:15]      at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:778)
    [2011-Oct-19 17:29:15]      at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:680)
    [2011-Oct-19 17:29:15]      at com.sun.xml.ws.server.WSEndpointImpl$2.process(WSEndpointImpl.java:403)
    [2011-Oct-19 17:29:15]      at com.sun.xml.ws.transport.http.HttpAdapter$HttpToolkit.handle(HttpAdapter.java:532)
    [2011-Oct-19 17:29:15]      at com.sun.xml.ws.transport.http.HttpAdapter.handle(HttpAdapter.java:253)
    [2011-Oct-19 17:29:15]      at com.sun.xml.ws.transport.http.servlet.ServletAdapter.handle(ServletAdapter.java:140)
    [2011-Oct-19 17:29:15]      at weblogic.wsee.jaxws.WLSServletAdapter.handle(WLSServletAdapter.java:171)
    [2011-Oct-19 17:29:15]      at weblogic.wsee.jaxws.HttpServletAdapter$AuthorizedInvoke.run(HttpServletAdapter.java:708)
    [2011-Oct-19 17:29:15]      at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
    [2011-Oct-19 17:29:15]      at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:146)
    [2011-Oct-19 17:29:15]      at weblogic.wsee.util.ServerSecurityHelper.authenticatedInvoke(ServerSecurityHelper.java:103)
    [2011-Oct-19 17:29:15]      at weblogic.wsee.jaxws.HttpServletAdapter$3.run(HttpServletAdapter.java:311)
    [2011-Oct-19 17:29:15]      at weblogic.wsee.jaxws.HttpServletAdapter.post(HttpServletAdapter.java:336)
    [2011-Oct-19 17:29:15]      at weblogic.wsee.jaxws.JAXWSServlet.doRequest(JAXWSServlet.java:98)
    [2011-Oct-19 17:29:15]      at weblogic.servlet.http.AbstractAsyncServlet.service(AbstractAsyncServlet.java:99)
    [2011-Oct-19 17:29:15]      at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    [2011-Oct-19 17:29:15]      at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    [2011-Oct-19 17:29:15]      at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    [2011-Oct-19 17:29:15]      at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
    [2011-Oct-19 17:29:15]      at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:183)
    [2011-Oct-19 17:29:15]      at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3717)
    [2011-Oct-19 17:29:15]      at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
    [2011-Oct-19 17:29:15]      at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    [2011-Oct-19 17:29:15]      at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
    [2011-Oct-19 17:29:15]      at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
    [2011-Oct-19 17:29:15]      at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
    [2011-Oct-19 17:29:15]      at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
    [2011-Oct-19 17:29:15]      at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
    [2011-Oct-19 17:29:15]      at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)
    [2011-Oct-19 17:29:15] LiveLinkException [HR#09746]: Data Synchronization Server database cannot be created

    What version of EAL have you installed, what OS + 32bit/64bit are you installing it on.
    What version of the OUI did you use.
    Have you gone through all the configuration steps successfully.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Data synchronization between apps using Advanced Queueing

    Dear you,
    I'm quite new to Oracle Advanced Queueing and looking at this for using now.
    I want to integrate our system (name A, Web application with Java technology, deployed on Ora AS 10g, using Oracle database) with an outside system (named B, .NET technology, using Sybase database) using Oracle Advanced Queuing.
    Could you please suggest the interfaces for both system A & B to access Advanced Queuing? What is the best to use: Java, JMS or HTTP/HTTPS/SMTP?
    Many thanks,
    K.N

    So we are talking EPMA Data Synchronization here.
    Are you able to limit decimal precision?
    The number provided in the error message is not negative -- can you please provide more details?
    Thank you,
    Todd Rebner

  • Data synchronization between two offices

    Hi everyone,
    After building a database for our growing company, we have a problem with our data and its synchronization. Our company has a rather small, but growing, book warehouse and sells books online. We have been able to deal with orders and stock because sales were not that large.
    But today we sell more and more books and the addition of a database means we need to synchronize our data from the warehouse database to the main office one, mainly to be able to know what kind of stock we have. I think we will have to go with a batch syncing scheduled twice a day for now. We have been dealing with Talend open studio so far and enjoy the product.
    Do you think Talend will be able to stand that type of operation? What kind of software could be used in this case?
    Thanks all!

    Hi there,
    I don't know Talend and thus cannot say anything about the product.
    However, based on your requirement description I'd say you better go for a system with one single database.
    Only that way you can check your current stock when you need it.
    Moreover a single database solution is far less complex and reduces a ton of problems you will always face with distributed databases.
    just my two cents...
    Lars

  • Help, about data synchronization between C++ and PHP API!

    I use Berkeley DB XML as my Server's database, the client access the database via http by C++ API. I don't close the XmlManager and XmlContainer after read and write the database for better performance. However, I provide another way to manipulate the database via web by PHP. After I updated the data by PHP, I found that I couldn't catch the update.
    If I close the XmlManager and XmlContainer after read and write the database every time, the problem disappeared. But I can't do that for performance.
    How can I solve this problem? Thanks!

    First of all, thank you for your attention.
    I don't share the same environment for the two processes, but I seted the same configure flags on the environment. The flags as follows:
    DB_CREATE|DB_INIT_LOCK|DB_INIT_LOG|DB_INIT_MPOOL|DB_INIT_TXN|DB_RECOVER;
    The C++ code as follows:
    //C++ code
    UINT32 envFlags = DB_CREATE|DB_INIT_LOCK|DB_INIT_LOG|DB_INIT_MPOOL|DB_INIT_TXN|DB_RECOVER;
    INT32 lRet = 0;
    string ctnName = "rls_services.bdbxml";
    string docName = "index.xml";
    CHAR acXQuery[256] = {0};
    CHAR acXmlDoc[] = "<test>C++ test</test>";
    //from      
    DbEnv *pDbEnv  = new DbEnv(0);
    XmlManager *pxmlMgr = NULL;
    pDbEnv->open("/usr/local/xdms", envFlags, 0);
    pxmlMgr = new XmlManager(pDbEnv, DBXML_ADOPT_DBENV);
    lRet = pxmlMgr->existsContainer(ctnName);
    if(0 == lRet)
         pxmlMgr->createContainer(ctnName);     
    XmlContainer xmlCtn = pxmlMgr->openContainer(ctnName);
    //to
    // the code between 'from' and 'to' is a seperate function
    XmlQueryContext xmlQC = pxmlMgr->createQueryContext();
    XmlUpdateContext xmlUC = pxmlMgr->createUpdateContext();
    sprintf(acXQuery, "doc(\"%s/%s\")", ctnName, docName);
    XmlQueryExpression xmlQE = pxmlMgr->prepare(acXQuery, xmlQC);
    XmlResults xmlResult = xmlQE.execute(xmlQC);
    XmlDocument xmlDoc;
    if (xmlResult.hasNext())
    xmlDoc = xmlCtn.getDocument(docName);
    xmlDoc.setContent(acXmlDoc);
    xmlCtn.updateDocument(xmlDoc, xmlUC);
    else
    xmlDoc = pxmlMgr->createDocument();
    xmlDoc.setName(docName);
    xmlDoc.setContent(acXmlDoc);
    xmlCtn.putDocument(xmlDoc, xmlUC);
    // I don't close the Container and Manager for performance
    The PHP code as follow:
    <php?
    $DB_DIR = "/usr/local/xdms";
    $env = new Db4Env();
    $enFlags = DB_CREATE|DB_INIT_LOCK|DB_INIT_LOG|DB_INIT_MPOOL|DB_INIT_TXN|DB_RECOVER;
    $env->open("/usr/local/xdms", $enFlags, 0);
    $xmlManager = new XmlManager($env, 0);
    $ctnName = 'rls_services.bdbxml';
    $docName = 'index.xml';
    $docContent = '<test>PHP test</test>';
    if (!$xmlManager->existsContainer($ctnName))
         return ;
    $xmlCtn = $xmlManager->openContainer($ctnName);
    $xmlQC = $xmlManager->createQueryContext();
    $xmlUC = $xmlManager->createUpdateContext();
    $acXQuery = "doc('".$ctnName.'/'.$docName."')";
    $xmlQE = $xmlManager->prepare($acXQuery, $xmlQC);
    $xmlResult = $xmlQE->execute($xmlQC);
    if ($xmlResult->hasNext())
         $xmlDoc = $xmlCtn->getDocument($docName);
         $xmlDoc->setContent($docContent);
         $xmlCtn->updateDocument($xmlDoc, $xmlUC);
    else
         $xmlDoc = $xmlManager->createDocument();
         $xmlDoc->setName($docName);
         $xmlDoc->setContent($docContent);
         $xmlCtn->putDocument($xmlDoc, $xmlUC);
    unset($xmlDoc);
    unset($xmlCtn);
    ?>
    The code between 'from' and 'to' excute only one time when server start.
    After the server started, I write data by PHP. I can read out the data that
    writed by PHP just now, but I can't read out the data by C++ because I don't
    close the XmlContainer and XmlManager.
    After I restarted the server, I can readout the data by C++. But I can't
    open and close database for each request for performance as a server.
    what should I do ? Thank you!
    Whether I express my question clearly or not?

  • Data Synchronization between Planning and HPCM

    Hello,
    How it is possible to synchronize the Data between HPCM and Planning?
    I have 12 Dimensions in HPCM and only 8 Dimensions in Planning.
    8 Dimensions in HPCM are like Planning dimensions + 2 Standard HPCM dimensions + 2 staging dimensions.
    I want to move the Data from HPCM to Planning (Both 11.1.1.3)
    Many thanks in advance,
    Whitebaer

    Are you re-initialising your Source System after adding new members to EBS?
    Regards,
    Gavin

  • Master data synchronization between SAP systems

    Dear all,
    I have 2 SAP systems and I'm required to synchronize some kinds of HR master data between these 2 systems, how can i achieve that without any ABAP developments?
    Does anyone give me any suggestions or others?
    Best regards,
    Bean

    Hi Bean,
    You can achieve this using IDoc and PI using following scenario.
    1) Populate IDoc in 1st SAP system and pass it to the second system as direct IDoc to IDoc transfer.
    Ex: Basic Idoc Type: HRMD_A07
    2) If direct communication between two XI system is not allowed then you can use PI as middle ware to transfer data.
    But for IDoc you need to create partner profile and ports etc.
    Hi,
    Thanks so much for your kind help.
    How to make the transferring automatically whenever the specified kind of master data is changed.
    Best regards,
    Bean

  • Data transfer between databases

    Dear forum,
    there is two databases DB_our and DB_supplier. Data should be transferred from a view in DB_supplier into a table DB_our. Both databases are in the same LAN. There is also a scheduler (not from Oracle) which have to be used. It is able to launch unix scripts.
    How to transfer and control the transfer most simple ?
    The first idea: using database link and launch the process via stored procedure.
    Any more simple solution ?
    Thanks in advance,
    Michel
    Edited by: Michel77 on Dec 10, 2008 4:22 PM

    Hi
    There could be more than one solution and you need to choose the one which suits your needs.
    1) SQL*Plus COPY command
    2) Export/Import
    3) Data Pump (If you are on Oracle 10g)
    4) Replication
    5) Oracle Streams
    6) Database Links
    Regards
    Asif momen
    http://momendba.blogspot.com

  • Best way to data transfer between Database & XML & Display to end user

    Hi,
    What is the best mothod to insert the data into tables from XML and viceversa. Also I need to display the data to the end user, with the provision to edit the data.
    Thanks in advance

    If you want to edit and store the data completely in XML then you could do the following:
    1) Register the XML schema and specify a default table.
    2) Connect to the XDB repository and store your documents using FTP or WebDAV. Make sure they reference the registered schema in the instance header. This should load the underlying XMLTYPE table you specified as the default table.
    3) Connect to the repository with a WebDAV-aware XML editor.
    And if you want to take this a little further, then you could also do the following:
    4) Create a relational view on top of your XML table using code similar to below.
    CREATE OR REPLACE VIEW "ACT_LIST" ("NAME", "CITE", "SORT", "JURISDICTION", "LOCATION") AS
    SELECT
    ExtractValue(OBJECT_VALUE, '/act/act_version/name[1]') Name
    , ExtractValue(OBJECT_VALUE, '/act/act_version/cite[1]') Cite
    , ExtractValue(OBJECT_VALUE, '/act/act_version/name[1]/@sort') Sort
    , ExtractValue(OBJECT_VALUE, '/act/@juris') Jurisdiction
    , b.ANY_PATH Location
    FROM
    ACTS a
    , RESOURCE_VIEW b
    WHERE
    Ref(a) = ExtractValue(b.RES, '/Resource/XMLRef')
    5) Put that into an application (e.g. APEX) as a report.
    6) Link from the report to the XML editor and pass the location of the document in the repository. Or you can use an embedded WYSIWYG XML editor so that they edit the document inside the application and the whole thing is fairly seamless for the user.
    Hope this helps.

  • Data synchronization between ERP and BI

    Hi Experts,
    We have done a client copy from BI production to BI test and later after 2 weeks we have done client copy of ERP production source system to ERP test source system.
    As we have 2 weeks of gap inbetween these two client copies and ERP being the later, we have 2 weeks of more data in ERP test system which is not available in BI test.
    Now, My requirement is to transfer these two weeks of data from ERP test source system to BI test system.
    I hope some of you would have faced the similar requirement and any help on this seriously appreciated.
    regards,
    Magaan.

    Hi vamsi nagaraju
    it depends on wich version of ECC you are using, if you are using ECC 6.0 or ECC 5.0 all records are in table FAGLFLEXT but if you are using R/3 4.7, 4.6 etc, all records are in ECMCT for consolidation purposes.
    Try to run T-code F.01 for balance sheet in both versions.
    which validations do you want?
    regards!!

  • Data transport encryption  between Database - Apps Server

    Hi
    We have 10g R2 database on Linux
    and would like to setup a basic encryption for data transport between Database and Apps Server.
    On searching, i found a couple of SQL ENCRYPTION parameters to be placed in SQLNET.ORA , which am not sure off.
    Could anyone suggest as how should i be doing this setup?
    Do i also need to be doing changes at the Apps Server side?

    Check the Advanced Security Guide, specifically
    http://download-east.oracle.com/docs/cd/B19306_01/network.102/b14268/asopart2.htm#sthref141
    Note that Advanced Security is a separate licensed option.

  • Data sync between oracle and sql server

    Greetings Everyone,
    Your expert views are highly appreciable regarding the following.
    We at work are evaluation different solutions to achieve data synchronization between oracle and sql server data bases. Data sync i mentioned here is for live applications. We are runnign oracle EBS 11i with custom applications and intending to implement a custom software based on .NET and SQL Server. Now the whole research is to see updates and data changes whenever happens between these systems.
    I googled and found Oracle Golden Gate, Microsoft SSIS, Wisdom Force from Informatica....
    If you can pour in more knowledge then it's great.
    Thank You.

    Most of the work involved has to be done through scripts and there is no effective GUI to implement OGG.However using commands is not vey togh and they are very intutive.
    These are the steps, from a high level:
    1.Get the appropriate GG Software for your source and target OS.
    2.Install GG on source and target systems.
    3.Create Manager and extract processes on source system
    4.Create Manager and replicat processes on target system
    5.Start these processes.
    First try to achieve uni-directional replication. Then Bi-directional is easy.I have implemented bi-directional active active replication using Oracle DBs as source and target. Refer to Oracle installation and admin guides for more details.
    Here is a good article that may be handy in your case.
    http://www.oracle.com/technetwork/articles/datawarehouse/oracle-sqlserver-goldengate-460262.html
    Edited by: satrap on Nov 30, 2012 8:33 AM

  • How to ...synchronization between two databases

    Hi,
    I want to set up automatic synchronization between two databases. For example, database DB1 and DB2 have table t1 and t2 with the same columns. If someone updates a record in table t1, I want automatically update the record in t2 or vice-versa.
    How can I make an automatic system like that?

    1) What is the business goal you're trying to satisfy? Failover, reporting, replication, geographic co-location, etc. each have their own set of technologies. Explaining what you're trying to accomplish from a business perspective will help us identify which technology (or technologies) to focus on.
    2) Are you synchronizing a single table? Or multiple tables? Or all the tables in a schema? Or all the tables in a database?
    3) Is there a stable network connection between the boxes?
    4) What version of Oracle do you have (10.2, 10.1, 9.2, 9.0.1, etc)? What edition (standard, express, enterprise, etc)?
    5) How quickly after a change has been made on DB1 does the change need to reflect on DB2?
    6) Am I correct in understanding that you want to be able to change the same row of data on either DB1 or DB2? So the replication needs to go in both directions?
    Justin

  • How can I set the data binding between Web Dynpro & Database table

    Dear friend,
    I am a beginner of Web Dynpro. I want to develop my simple project like these:
    1. Create my own database table via Dictionary Project such as TAB_USER and have 3 fields: USER_ID, USER_NAME, USER_POSITION and I have already deployed & archived it.
    2. Create my own Web Dynpro Project, and create the input fields as User ID, User name, User position and icon 'Save' on the selection screen and I have deployed it already.
    For the process, I want to input data at the screen and save the data in the table, please give me the guide line like these:
    1. How can I set the data binding between Web Dynpro and Database table ?
    2.  Are there any nescessary steps that I will concern for this case?
    Sorry if my question is simple, I had try  to find solution myself, but it not found
    Thanks in advances,
    SeMs

    Hi,
    You can write your own connection class for establishing the connection with DB.
    Ex:
    public class  ConnectionClass {
    static Connection con = null;
    public static Connection getConnection() {
    try{
    Context ctx = new InitialContext();
    DataSource ds = (DataSource) ctx.lookup("jdbc/TSPAGE");
    con = ds.getConnection();
    return con;
    }catch(Exception e){
    return null;
    You can place the above class file in src folder and you can use this class in webdynpro.
    You can have another UserInfo class for reading and writing the data into the DB .
    Regards, Anilkumar
    PS : Refer
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/java/simple java bean generator for database.pdf
    Message was edited by: Anilkumar Vippagunta

  • VPD date issue between 10.1 and 10.2 databases

    I have uncovered an issue today with VPD against date fields. The issue came up at a client site on a 10.2 database. When I got back to the hotel and tried this on my own database, which is 10.1, I got no issue and everything worked ok.
    Therefore, I am asking if anyone is able to try out the following for me on different Oracle databases and platforms and let me know whether it worked for you or not. I'd like to compile a list of database versions and platforms on which the issue occurs.
    Step 1: create this table as a user
    CREATE TABLE TST_DATE AS (
    SELECT 1 PERSON_UID,
    Trunc(SYSDATE) BIRTH_DATE,
    To_Char(Trunc(SYSDATE), 'DD-MON-YYYY') CHAR_DATE,
    123456 TAX_ID,
    'Smith, Michael B.' FULL_NAME FROM dual);
    Step 2: grant select rights on the table
    GRANT SELECT ON TST_DATE TO PUBLIC;
    Step 3: switch your login to SYS and run this script:
    CREATE OR REPLACE FUNCTION F_CHECK_ITEM_TST(p_object_schema in varchar2, p_object_name varchar2)
    RETURN VARCHAR2 IS
    V_PREDICATE VARCHAR2(2000) := '1 = 2';
    BEGIN
    RETURN(V_PREDICATE);
    END F_CHECK_ITEM_TST;
    Step 4: As SYS, run this to grant access rights over the function
    GRANT EXECUTE ON F_CHECK_ITEM_TST TO PUBLIC;
    Step 5: As SYS, run this to enable the policy
    BEGIN DBMS_RLS.ADD_POLICY(
    OBJECT_SCHEMA => 'DRAKE',
    OBJECT_NAME => 'TST_DATE',
    POLICY_NAME => 'SecByTST',
    FUNCTION_SCHEMA => 'SYS',
    POLICY_FUNCTION => 'F_CHECK_ITEM_TST',
    STATEMENT_TYPES => 'SELECT',
    POLICY_TYPE => DBMS_RLS.DYNAMIC,
    SEC_RELEVANT_COLS => 'BIRTH_DATE',
    SEC_RELEVANT_COLS_OPT => DBMS_RLS.ALL_ROWS);
    END;
    Note: in the above policy change the OBJECT_SCHEMA name to be the name of the user who owns the table you created in Step 1
    Step 6: Go into Discoverer Admin and import the table as a new folder.
    Be sure to uncheck the "Date hierarchies" box and set "Default aggregate on data points" to detail. Grant access to any user.
    Step 7: Using Desktop or Plus, log in as that user then try to query the folder with the date not included, there should be no problem.
    Step 8: Now try to query with the date included
    On my 10.2 database I get ORA-24334: no descriptor for this position. This happens when logged into Discoverer as the table owner, EUL owner or any other user. However, when logged into Discoverer as SYS which is exempt from all VPD policies, there is no error when the date is included.
    We tried this in Discoverer Desktop, Plus and Viewer with the same results in all three. We can successfully query the table from SQL*Plus, SQL Developer and TOAD.
    There also seems to be no issue at all with the 10.1 database so there seems to be an issue between Discoverer and the 10.2 database.
    What do you think?
    P.S. to cancel the policy use this script when logged in as SYS:
    EXEC DBMS_RLS.drop_policy(
    OBJECT_SCHEMA => 'DRAKE',
    OBJECT_NAME => 'TST_DATE',
    POLICY_NAME => 'SecByTST');
    This same information is available on my blog in a more readable format here:
    http://learndiscoverer.blogspot.com/2006/12/vpd-date-issue-between-101-and-102.html

    Hi Rod
    Well don't you just love Oracle. Obviously, whatever tests were done for certifying Discoverer against the 10.2 database did not include checking VPD policies. This merits a blog entry from me.
    Your workaround for V_PREDICATE VARCHAR2(2000) := 'BIRTH_DATE=TO_DATE(''01-JAN-0001'')'; works. However, I had to write a new function to do this because my real function was trapping about a dozen items at the same time, some dates, some numbers and some varchars - exactly the way that the Oracle example code shows it in the 10.2 database manual.
    So what I did was to create a new function that only handles dates and added a dedicated policy that works with only that function. Unfortuately, because I have many dates to manage, I was unabe to hard code the BIRTH_DATE so here is what I did:
    V_PREDICATE VARCHAR2(2000) := 'SYSDATE = TO_DATE(''01-JAN-0001'')';
    This works perfectly and Discoverer stopped complaining. It just has two policies on the same table for different data items. Isn't VPD cool? I'm hooked.
    I really appreciate your time and effort on this. Now, let's see what Oracle support make of the issue because I raised a service request last night. No reply yet I'm afraid.
    Best wishes
    Michael

Maybe you are looking for

  • Browsing the library in Finder. Is there a logical way to do it?

    Hi All, I am an iPhoto 7 user who has just upgraded to Aperture. A friend of mine has just brought my attention to the fact that the database format used by Aperture (and newer versions of iPhoto) is not easily browsable via Finder. What I mean by th

  • Can't get clamshell mode to work

    I would like to use an A1081 HD cinema display with my macbook pro and I have connected it to the HDMI port. I have attached an external keyboard and a mouse in one of the USB slots on the keyboard. I set it to mirror display, but evey time I close t

  • Microsoft Office for Macbook Air

    Hi I purchased microsoft office for my iMac last year.  I have now bought my daughter a Macbook Air.  Can I put the same version on her Macbook?  If so, how do I do it? Or do I have to purchase it all again? Thanks in advance for your help.

  • Acrobat XI trial destroys Acrobat X ~~ Delhi cannot help

    Working with Delhi is frustrating. They do not make good notes about a case. They have a few "procedures" which do not work. I own CS6 Master. Windows 7 professional CS6, all apps were fine until .... Acrobat XI installed itself without my permission

  • Live View Scrolling Broken

    Hi Folks, I'm running DW CS4 on a MacBook Pro with Snow Leopard. When previewing sites in Live View I find I can't scroll through the window using 2-finger scroll on the trackpad or using the trackball on my external Mighty Mouse.  I can drag the scr