Publication Item Query

Hello all,
I'm trying to modify a query in the Mobile Server, but can not.
He shows me the following error:
CONS-10049: Consolidator Exception: ORA-00906: missing left parenthesis
And the query is:
SELECT \ "PT1.PAR_TAR_ID \" \ "PT1.NUMERO \" \ "PT1.NOMBRE \" \ "PT1.FECHA_APLICACION \" FROM WHERE NOT EXISTS ALPISPA.PARADAS_TARIFARIAS PT1 \ "(\" SELECT \ "PT2. FECHA_APLICACION \ "FROM WHERE ALPISPA.PARADAS_TARIFARIAS PT2 \" PT2.FECHA_APLICACION \ "> \" PT1.FECHA_APLICACION \ "AND \" PT1.NUMERO \ "= \" PT2.NUMERO \ "\") \ "
You can put this type of queries in the Mobile Server?
I can help, please
Thanks

Hi Rekounas,
I'm trying to modify the select with the following statement:
cm.alterPublicationItem("EP_PAR_TAR_14052009",
"SELECT \"PT1.PAR_TAR_ID\", \"PT1.NUMERO\", \"PT1.NOMBRE\", \"PT1.FECHA_APLICACION\" FROM ALPISPA.PARADAS_TARIFARIAS PT1 WHERE NOT EXISTS (SELECT \"*\" FROM ALPISPA.PARADAS_TARIFARIAS PT2 WHERE \"PT2.FECHA_APLICACION\" > \"PT1.FECHA_APLICACION\" AND \"PT1.NUMERO\" = \"PT2.NUMERO\")"
And now, the error is:
CONS-10049: Excepción de Consolidator: ORA-00904: "PT1.FECHA_APLICACION": identificador no válido (PT1.FECHA_APLICACION invalid identifier )
My question is: Is posible this type the querys, in the Mobile Server? or I don't see error.
Regards

Similar Messages

  • Misplaced publication item query of two different publication itens

    Hi,
    I’m creating a new publication on Oracle Database Lite 10g.
    Almost all of the publication itens are ok, except two of then: when I publicate the “item1” ,the publication item query is rightly displayed on Mobile Manager page and in the administratives tables, as the C$ALL_PUBLICATIONS table. But, when I publicate the “item2”, that is rightly displayed on Mobile Manager site too, the query of the “item1” receives the same value of “item2” query.
    I’ve just checked for wrong synonym creation of the two tables involved , but they are correct.
    Has anybody ever seen something like that?
    An example of my two queries:
    Publication item1 : select field1 , field2 , field3 from table2 where field4 = 1
    Publication item2 :; : select field1, field2 from table1;
    It’s important : I have two different tables above.
    When I synchronize the PDA , with this publication assigned to the user, I receive an error message on Mobile Manager page that some field is misplaced or required . In other words: for publication item2 the application tries to put the data returned from the query of publication item1 .
    Thanks.

    Hi,
    The publication was created successfully and the type is “WCE”. I created it using the “Mobile Manager” page, with an .xml file , compressed in the .jar format.
    Here is the web.xml file:
    <?xml version = '1.0' encoding = 'WINDOWS-1252'?>
    <workspace>
    <application name="WCE_REGRAS">
    <app_info>
    <directory>/WCE_REGRAS</directory>
    <virtualpath>/WCE_REGRAS</virtualpath>
    <defaultpage/>
    <icon/>
    <description>WCE_REGRAS</description>
    <publication/>
    <platform>Oracle Lite PPC2000 ARM;US</platform>
    </app_info>
    <app_db publication="AFV"/>
    <snapshot name="REGIONS" owner="HR" order="1">
    <snaplatform object="TABLE" platform="ORACLE LITE PPC2000 ARM;US" template="SELECT * FROM HR.REGIONS" updatable="Y" conflict="client" refresh="fast" virtualprimname="" virtualprimcolname=""/>
    </snapshot>
    </application>
    </workspace>
    The publication item with weight equals to 1 (default) was deleted . I’m using an Java application to publicate the items an add them to the publication ( in this case, “WCE_REGRAS”)
    Some publication items will have the “conflict rule” set to “Client Wins” and the other ones will be set to “Server Wins”.
    Here is the .xml code that my java application reads to create the publication items that are wrong:
    Publicationitens.xml
    <app>
         <repository>
              <connectionString><!--THE CONNECTION STRING--></connectionString>
              <user><!--THE USER--></user>
              <password><!--THE PASSWORD--></password>
         </repository>
         <remoteDB>
              <connectionString><!--THE CONNECTION STRING--></connectionString>
              <user><!--THE USER--></user>
              <password><!--THE PASSWORD--></password>
         </remoteDB>
         <localDB>
              <connectionString><!--THE CONNECTION STRING--></connectionString>
              <user><!--THE USER--></user>
              <password><!--THE PASSWORD--></password>
         </localDB>
         <publication>     
              <name>15571</name>
              <virtualPath>/WCE_REGRAS</virtualPath>
              <deviceType>WCE</deviceType>
              <!--CLIENT WINS-->
              <item>
                   <type>local</type>
                   <name>RGE_SAFV_ATIVIDADE</name>
                   <owner>SC_PDA</owner>
                   <object>AFV_ATIVIDADE</object>
                   <filter>SELECT "COD_TIP_ATIV","DAT_ATIV","COMENT_ATIV","STATUS_ATIV","COD_ATIV_PRIOR","DSC_ATIV","COD_FUNCIO","COD_FUNCIO_RESP","COD_ATIV_SIEBEL","COD_CLI","COD_ATIV","COD_FUNCIO_ENC" FROM SC_PDA.AFV_ATIVIDADE WHERE COD_FUNCIO_RESP = :COD_FUNCIO AND STATUS_ATIV IN ('A', 'E')</filter>
                   <weight>26</weight>
                   <action>create</action>
              </item>
              <!--SERVER WINS-->
              <item>
                   <type>local</type>
                   <name>RGE_SAFV_ATIVIDADE_PRIO</name>
                   <owner>SC_PDA</owner>
                   <object>AFV_ATIVIDADE_PRIO</object>
                   <filter>SELECT "COD_ATIV_PRIOR","DSC_ATIV_PRIOR" FROM SC_PDA.AFV_ATIVIDADE_PRIO</filter>
                   <weight>8</weight>
                   <action>create</action>
              </item>      
         </publication>     
    </app>
    In this case the connection string, password and user were omitted form the .xml file.
    In my Java application the following code creates and associate the publication itens to the publication :
    Consolidator.createPublicationItem(connSie, item.getName(), item.getOwner(), item.getObject(), "F", item.getFilter(), null, null);
    Consolidator.addPublicationItem(publication.getName(), item.getName(), null, null, "S", null, item.getWeight());
    , where the object “item” is populated with the publicationitens.xml file with a loop statment .
    This code works ok to the others publication items.
    The problem is : in the administrative tables ( like C$ALL_PUBLICATIONS) the publication string (filter – sql statement) is right. But, when I access the “Mobile Manager” page they are misplaced:
    the filter string from “RGE_SAFV_ATIVIDADE” receives the same filter of “RGE_SAFV_ATIVIDADE_PRIO”.
    Curiously when I delete the “RGE_SAFV_ATIVIDADE_PRIO” publication item , the filter string of “RGE_SAFV_ATIVIDADE” publication item appears correctly in the Manager page.
    I ‘ve just deleted the "RGA_SAFV_ATIVIDADE_PRIO" publication item using my Java application , or by database : I dropped tables, views and triggers that are created by “Consolidator” (java .jar) methods. I created this item again , but the same error occurs.
    I think that it may be something with the data integrity in the database.
    The mobile database is 10g, version 10.2.0.2 ;
    Thanks.

  • Unable to create publication item for remote database using db link

    The mobile repository is in instance A.
    I have to access and sync data from a table in remote database instance B.
    I have run the consolidator_rmt.sql script in instance B under schema_B. I have created a private fixed user db link in instance A under schema_A to access schema_B's tables. I then created a synonym test_B for table test_B in schema_B using the DB link.
    While creating publication item for test_B using MDW, the column list for test_B appears blank. Has anyone encountered this problem and what is the solution.
    Thanks for your help.
    Rosa.

    Hello Pruthvi ,
    See these threads
    Uninstalling MaxDB
    Work process Ended.
    Thanks
    Chandran

  • How to increase the length of a columnin existing publication item

    We need to urgently increase the length of three columns in one of the tables that is sent offline as a publication item. I have searched everywhere to see if there is a procedure to see this. I only found process to add/drop columns but not modify to JUST increase the length.
    Can we just alter the tables on the server and republish the application? Will that cause any data loss on the client end?
    Any help is greatly appreciated.
    Thanks
    Sireesha

    I totally forgot about this method. Metalink had it in the headlines today and remembered your question.
    This should work for you.
    Applies to:
    Oracle Lite - Version: 10.2.0.1.0 to 10.2.0.2.0
    Information in this document applies to any platform.
    Goal
    The Goal of this Document is to show the right steps when it is necessary to increase the Column Size for a table
    which is used for the Synchronization with Oracle Lite 10GR2
    BECAREFULL, it is not supported to change the Column Size or make any Schema Evolution on the Primary key
    as The Synchronization Algorithm is based on Primary key
    Solution
    Create table test_sec (col1 number(10); varchar2(10));
    alter table test_sec add primary key (col1));
    Create Publication: PUB_TEST_SEC
    Create Publication: PI_TEST_SEC: select COL1, COL2 from scott.TEST_SEC fast
    Refresh, server wins, weight = 1 and add it to the Publicatio PUB_TEST_SEC
    Synchronize this PUB_TEST_SEC
    On the Server: increase the col2 WHICH IS NOT A PK, from 10 to 15
    alter Table scott.TEST_SEC modify (col2 (varchar2(15));
    To get the new Column Size on the olite DB, you need to alter the Publication item too using for example this code:
    import java.sql.*;
    import java.io.*;
    import oracle.lite.sync.Consolidator;
    import oracle.lite.sync.ConsolidatorManager;
    import oracle.mobile.admin.*;
    public class PublicationChange {
    public static void main(String argv[]) throws Throwable
    DriverManager.registerDriver ((Driver)Class.forName ("oracle.jdbc.driver.OracleDriver").newInstance());
    ConsolidatorManager consolidatorManager = new ConsolidatorManager();
    consolidatorManager.openConnection("mobileadmin","manager","JDBC:ORACLE:thin:@suppolite1.fr.oracle.com:1521:PROD");
    System.out.println("Connected");
    try
    /*You need to put a Select Statment lightly different from the Publication item,
    if you will use the same select statment, it won't take in Account
    if you used: select * from owner.table to create the Publication Item
    you need to use: select * from owner.table for the alterPublicationItem API
    consolidatorManager.alterPublicationItem("PI_TEST_SEC","SELECT * FROM SCOTT.TEST_SEC");
    System.out.println("Pub Item recreated");
    catch (Throwable e) {
    e.printStackTrace();
    try
    consolidatorManager.closeConnection();
    System.out.println("The installation is done!");
    } catch (Throwable e) {
    Compile and run this java code.
    Synchronize
    Check your table Description on Oracle Lite Database to verify that this Schema Evolution has worked as expected.

  • Publication Item on a VIEW

    Hi,
    Here is my problem :
    I have a table A in the schema A.
    In another schema, schema B, I have a view (VIEW B) based on the table A .
    My application schema for Olite is schema C. I want all my CEQ$ and CVR$ and CLG$ ables to be in schema C. I created a synonym on the view B in the schema C. When I create a publication Item based on this synonym, I cannot create a hint on the Publication Item because Olite say to me that the base table and the view must be in the same database.
    After that, I tried to create a publication item base on the VIEW B in the schema B and a publication Item based on Table A in the Schema A On the publication item based on the view, I created a hint to match the primary Key in table A. When I create a publication with these 2 new Publication Items, it works but when i try to instantiate the publication for a user, Olite don't want to instantiate the subscription because He don't find the base table (Table A). Also with that manner the CEQ$ and ohter Olite Tables are created In schema B (for publication Item on the view) and schema A (For publication Item based on the table).
    So my question is : How can I create a publication Item based on a view and have all my CEQ% tables in the same schema (Schema C) when the view, the table and the application Schema are three différent Schema.
    I hope you will understand my question.
    Thanks
    JSET

    You wouldn't be able to do that out-of-the-box. Manually updating the triggers and owners, you may be able to accomplish this. But then there are internal metadata you would have to figure out as well. Could get really ugly if you tried some of this. I would not recommend it.

  • UDF in item query form

    Hi,
    How to add a UDF to the ' item query' form.
      (Inventory->Inventory Reports->Item query)
    Thanks,
    Smitha

    Smitha,
    If you are talking about the SELECTION screen where you enter Item Number, ...... it would not be possible.  But if you want to add the UDF to the List of Items screen.
    Click on Form Settings from this screen and in the Field Name drop down select your UDF
    Suda

  • How to force Work Item Query Policy to refresh its cached query results?

    I have enabled the Work Item Query Policy on my TFS project.  It works as expected, except when using Visual Studio 2013 with the following sequence of steps:
    User selects Check in Pending Changes from the Source Control Explorer
    User enters in the ID of the work item to be associated to the changeset
    User clicks the Check In button
    Work Item Query Policy displays message ' Work item ##### was not found in the results of stored query...'
    User realizes his mistake, and modifies (and saves) the work item so that it is returned in in the query result set
    User clicks the Check In button again expecting the TFS policy to accept the association
    Work Item Query Policy still displays message ' Work item ##### was not found in the results of stored query...'
    Removing the Work Item and re-associating it does not make a difference.  The only workaround that I have found is to close Visual Studio and reopen it.  Does any one have a better solution than this?

    Our setup is different from the one you are using:
    - User is using VS 2013 Update 4.
    - We are running TFS 2010 SP1
    The test case that you described is different from the one that is causing my problem (that scenario works fine for me as well).  I am trying to associate the check in to the same work item both times; whereas, you are associating it to a different
    work item the second time.  I can consistently reproduce the error using the following steps:
    1) Create a query that returns All Bugs in Active state, and set it as the query for the Work Item Query Policy
    2) Create and save a new Bug
    3) Run the query to confirm that the new bug does not appear in the result set
    4) Checkout a file, modify it, save it
    5) Check in the file and associate it to the bug from step 2)
    - the Work Item Query Policy will issue an error message saying that the work item cannot be found in the associated query
    6) Change the state of the bug to Active, and save
    7) Refresh the query to confirm that the bug now appears in the result set
    8) Check in the file again
    - error message from step 5) will not go away

  • User Exit for line item query

    HI There,
    I'm not good at ABAP coding and need some help from experts.
    Working on Line Items Query and enhanced the 0FI_AP_4 to include fields from BSEG table, the fields are:
    GEBER - Funds
    FISTAL - Funds Center
    KOSTL - Cost Center
    GSBER - Business Area.
    I used the below code to enhance the datasource 0FI_AP_4, and its taking toooo long to load the data, but its pulling the line item data into BW.
    Please find another code after this....its very quick, either in extract checker or loading into BW, however its not loading all fields into BW. Specially line items like Cost Center, Fund center and Fund fields.
    Please go through the below codes and suggest me what changes i have to make to work as it should be.
    DATA: L_TABIX LIKE SY-TABIX.
    DATA: ZADTFIAP_3 LIKE DTFIAP_3.
    CASE I_DATASOURCE.
    WHEN '0FI_AP_4'.
    LOOP AT C_T_DATA INTO ZADTFIAP_3.
    L_TABIX = SY-TABIX.
    SELECT SINGLE GEBER FROM BSEG INTO ZADTFIAP_3-GEBER
    WHERE BUKRS = ZADTFIAP_3-BUKRS AND GJAHR = ZADTFIAP_3-FISCPER+0(4).
    SELECT SINGLE FISTL FROM BSEG INTO ZADTFIAP_3-FISTL
    WHERE BUKRS = ZADTFIAP_3-BUKRS AND GJAHR = ZADTFIAP_3-FISCPER+0(4).
    SELECT SINGLE KOSTL FROM BSEG INTO ZADTFIAP_3-KOSTL
    WHERE BUKRS = ZADTFIAP_3-BUKRS AND GJAHR = ZADTFIAP_3-FISCPER+0(4).
    MODIFY C_T_DATA FROM ZADTFIAP_3 INDEX L_TABIX.
    ENDLOOP.
    ENDCASE.
    Below code is extracting data very quickly but not bringing data for all fields specially line items like Fund Center, Cost center and Fund fields.
    DATA: L_TABIX LIKE SY-TABIX.
    DATA: ZADTFIAP_3 LIKE DTFIAP_3,
    wa_bseg Like bseg.
    CASE I_DATASOURCE.
    WHEN '0FI_AP_4'.
    LOOP AT C_T_DATA INTO ZADTFIAP_3.
    L_TABIX = SY-TABIX.
    Select single * from
    bseg into wa_bseg
    where BUKRS = ZADTFIAP_3-BUKRS
    and GJAHR = ZADTFIAP_3-FISCPER+0(4)
    and BELNR = ZADTFIAP_3-BELNR
    and BUZEI = ZADTFIAP_3-BUZEI.
    IF SY-SUBRC = 0.
    Move: wa_BSEG-GEBER to ZADTFIAP_3-GEBER,
    wa_BSEG-FISTL to ZADTFIAP_3-FISTL,
    wa_BSEG-KOSTL to ZADTFIAP_3-KOSTL,
    wa_bseg-GSBER to ZADTFIAP_3-GSBER.
    ENDIF.
    MODIFY C_T_DATA FROM ZADTFIAP_3 INDEX L_TABIX.
    ENDLOOP.
    ENDCASE
    Thanks
    Vandana

    Hi,
    You can try this.
    USEREXIT_MOVE_FIELD_TO_VBEP                                      
    Use this user exit to assign values to new fields at the level of
    the sales document schedule lines.                               
    The user exit is called up at the end of the FORM routine        
    VBEP_FUELLEN.                                                    
    Thanks
    Krishna.

  • How to complete refresh publication item for single client

    Is there any method how to force one client to completely refresh one of the publication items? I found just the ConsolidatorManager.completeRefresh(clientid, publication) which seems to force the client to refresh all publication items of a publication...

    i am using 2 internal table.
    my pgm code :
      SELECT
                 VORNR
                 ARBPL
                 FROM S022 INTO CORRESPONDING FIELDS OF TABLE ITAB  
                                                              WHERE AUFNR = ITAB1-AUFNR.
            SORT ITAB BY VORNR.
            LOOP AT ITAB.
                SELECT SINGLE LTXA1
                                    FROM AFVC INTO CORRESPONDING FIELDS OF ITAB 
                                                                       WHERE VORNR = ITAB-VORNR
                                                                              AND AUFPL = ITAB1-AUFPL.
           ENDLOOP.
    In SMARTFORM
    TABLE-MAIN
    LINE ITEM - COLUMN : I am selecting material, quantity, Unit individually in  coding part.
    SELECT MATNR
            BDMNG
            ERFME
             FROM RESB INTO CORRESPONDING FIELDS OF TABLE MTAB
                                            WHERE VORNR = itab-vornr
                                              AND AUFNR = PRN.
    LOOP AT MTAB.
          SELECT SINGLE MAKTX
                        FROM MAKT INTO CORRESPONDING FIELDS OF MTAB
                                                   WHERE MATNR = MTAB-MATNR.
    endloop.
    other than this four column further 6 columns also available in Main table, those entries are Manual .
    in program i tried to use 2 internal table like nested loop using count.
    i am getting last item only, not all line item.
    i hope now clear about my problem.

  • Queue based publication items

    has anyone used these and what for?
    (sort of) managed to get these to work as a replacement for all of our fast refresh publication items, and get real time synchronisation without the MGP process running, but had to put in some serious work arounds to get it to do fast refreshes and getting it set up is complicated
    I would be interested in kowing what other people have done with them to see if there is anything that i have missed

    2 hour compose with the 400+ users was the situation when we went live in August 2006, and whilst not perfect, that was ok. We also never had any problem with mobile blocking users when it started the compose cycle. current situation is upto 12 hour compose cycle with 5 minutes of blocking all users when it starts - this is not acceptable
    Database is however overly generic, and in some cases uses inappropriate structures (example status table looks to be growing at the rate of a million records a month, with only a hundred or so of those records of any interest). We also started using streams for extranet services, and the two do not look to play nicely together.
    no more options for tuning (did everything when we went live), partitioning may help but difficult with the database structures, most of the data is specific to our users, most of the data that could be shared is within complete refresh items to bypass the MGP process already.
    We could (and may still do, as the implementation of the queue based stuff is going to be very complicated) stick with the MGP process and do tricks like create our own logging triggers to stop 'uninteresting' records being logged in the CVR$ tables and C$ALLL_SID_LOGGED_TABLES, and then delete unnecessary data from the CVR$ tables to speed up the process logs phase (sure it is not recommended but it works), use MyCompose to work around the poor execution plans put together by the default compose process, and DML call outs to impove the apply processing, but my fear is we will be back in the same boat in 18 months time.
    As 90%+ of our synchronisations are done unattended between about 7:30 pm and 10pm, a slower but more real time sync option fits in the business model fairly well, and to my mind why pre-prepare data 12 times a day (assuming 2 hour cycle) with all of the continual performance overhead, when they only download it once when noone else is working?
    The queue based stuff is a bit cumbersome and an odd mixture of java, PL/SQL and DDL scripts (plus a few cheats inserting data directly into the repository tables, and updating other things), and the development effort required should not be underestimated.
    anyone considering it needs to be clear about what they are trying to achieve (the examples are very limited to stuff you could do with complete refresh items easier), and needs a good understanding of the internals. Definitely not suitable if synchronisation time is a priority (eg: if using GPRS all of the time). I should be able to get the average sync time down to 3-4 minutes, but compared with the 20-30 seconds currently that is still a big jump

  • Altering / Adding Publication Items

    Hi all,
    I know that there had been similar requests to this in the past and I have read all of these and I still have an issue.
    I have also seen rekounas's code to use the ConsolidatorManager API to add/alter.. the publication items. I have tried to complie this code and recieve the following error:
    Exception in thread "main" java.lang.ExceptionInInitializerError
    at oracle.lite.sync.ConsolidatorManager.<clinit>(Unknown Source)
    at PublicationChange.main(PublicationChange.java:13)
    Caused by: java.util.MissingResourceException: Can't find bundle for base name oracle.lite.sync.ConsErrorMessages, locale en_AU
    at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:836)
    at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:805)
    at java.util.ResourceBundle.getBundle(ResourceBundle.java:549)
    at oracle.lite.sync.ConsNls.initialize(Unknown Source)
    at oracle.lite.sync.ConsNls.<clinit>(Unknown Source)
    I do not have the same need as rekounas had interms of the large table set but I have an environment which has in previous attempts dropped users upon a republish using the packaging wizard.
    Hence, the reason I would like to use this method to modify the live environment without causing users to be dropped. (Bizzare problem, since I am not able to re-create this occurance in DEV, SIT or UAT environments)
    Version: Oracle lite 10.3.0.1.0
    I would appreciate any help.

    Do not know if this is still the case in 10.3, but there is an issue in 10.2 where you cannot have the same machine set up as a oracle lite client and also install the SDK/MDK.
    It seems that a number of the jar files in the builds have the same names, but different content in terms of method details. I havd a very similar error to this in terms of not being able to find the error message for the locale. The response to a SR from oracle was
    SSUE CLARIFICATION
    ===================
    -- Problem Statement:
    Installed Win32 Client on the same PC as the SDK Environment and now they are encountering errors with Mycompose Classes
    -- Steps To Reproduce:
    Install SDK Environment and confirm bespoke java app runs successfully
    Install the Win32 Client
    -- Business Impact:
    Unable to run bespoke code that has been developed
    ISSUE VERIFICATION
    ==================
    Issue could not be verified due to this being an unsupported confirguration. Clients must be installe
    d on a seperate OS from SDK
    CAUSE DETERMINATION
    ===================
    The Win32 Client Jar files will be picked up on CLASSPATH / PATH before the SDK Versions
    CAUSE JUSTIFICATION
    ===================
    Client Jars are different from the SDK versions
    We do not support running/using a Client in the same PC as the SDK install.
    PROPOSED SOLUTION(S)
    ====================
    1. Run the Client software on a seperate Windows PC from the SDK
    2. Run the Client in a Virtual Machine on the SAME PC as the SDK - Note that you can get trial versions of VMWare online.
    3. Create a Script to set PATH & CLASSPATH for when using the SDK - there is an
    example in $OH\Mobile\Sdk\wtgsdk\bin
    PROPOSED SOLUTION JUSTIFICATION(S)
    ==================================
    Any one of the above solutions will resolve the issue - it really depends on which is most suitable to Customer.
    Using VMWARE is good because you can take snapshots of system states and roll back etc. you can al
    so have multiple VM which gives greater flexibility i.e.
    I have 1 laptop with 3 diff versions of the SDK all in their own VM.
    SOLUTION / ACTION PLAN
    ======================
    -- To implement the solution, please execute the following steps::
    Please see the list of Solutions above and use the most appropriate for you. No
    te that option 3 is only considered a temporary measure as we dont support havin
    g a Client installed on the same machine as the SDK or Mobile Server.
    In my case i re-installed the SDK over the top of the client install and then things worked fine

  • Create a publication item as synonym

    Hello
    I have a view in schema A that uses a table in the same schema and I have a schema B with a synonym from the table in A.
    With Mobile Database WorkBench I am trying to create a publication item for the synonym, but I get an error that says that all base objects must exists in a unique database.
    What do I have to do?
    Regards

    Unless there has been a recent change, oracle lite does not like referencing objects across database links. All of the publication item sql gets generated with explicit references in the form 'select .. from schema.object where ..' and assumes that all objects are in the specified schema (with a cross schema synonym, this is not the case as the synonym is in one schema, the object in another.
    a work around is to create a view in the schema you are basing the publication items on for the table in the other schema.
    eg: if you want to be able to create a publication item for b.table in the schema a, then create a view in schema a as select * from b.table. This should work as the database link referencing is not done by the oracle lite server, but by the underlying database. for a view based object you need to manage the PK, updates and referential integrity yourself, but for a simple view based on a single table this is pretty simple.

  • Publication item error - how to drop them manually?

    I had to alter some tables on the repository and now when I open the publication item it gives an ORA-00904 error saying that some of the identifiers of the table are not valid, which is kind of expected.
    The problem is that now, using the mobile workbench, I can't drop these publication items! Is there another way to do this?!

    Your classpath should be something like this
    CLASSPATH=".:$ORACLE_HOME/mobile/classes/consolidator.jar:$ORACLE_HOME/mobile/server/bin/devmgr.jar:$ORACLE_HOME/mobile/server/bin/webtogo.jar:$ORACLE_HOME/jdbc/lib/classes12.zip:$CLASSPATH"
    Try this:
    import java.sql.Connection;
    import java.sql.Driver;
    import java.sql.DriverManager;
    import java.sql.SQLException;
    import oracle.lite.sync.ConsolidatorException;
    import oracle.lite.sync.ConsolidatorManager;
    public class DropPublicationItem {
        private static Connection con = null;
        public static void main(String arg[]) throws ConsolidatorException,
                                                     SQLException {
            ConsolidatorManager cm = new ConsolidatorManager();
            String MOBILE_SCHEMA   = "mobileadmin";
            String MOBILE_PASSWORD = "passwordstring";
            String JDBC_URL        = "jdbc:oracle:thin:@localhost:1521:XE";
            String PUB_ITEM_NAME = arg[0];
            try {
                DriverManager.registerDriver((Driver)(Class.forName("oracle.jdbc.OracleDriver").newInstance()));
                try {
                    con = DriverManager.getConnection(JDBC_URL, MOBILE_SCHEMA, MOBILE_PASSWORD);
                } catch (SQLException sqle) {
                    sqle.printStackTrace();
            } catch (Exception e) {
                e.printStackTrace();
                return;
            cm.openConnection(con);
            try {
                cm.dropPublicationItem(PUB_ITEM_NAME);
            } catch (ConsolidatorException ce){
                System.out.println("Drop publication item failed: " + ce.getMessage());
    }

  • Oracle Lite Default Publications Items List

    Does anyone have a list of default publication items which are created as a part of Out of Box installation?
    Edited by: user6411743 on 02-Jun-2009 14:09

    The default publication items created on install are the 6 seen when a new client is built or complete refresh
    PI_APP_PUB_PROPERTIES - the application/publication
    C$SEQ_CLIENTS_PI - sequences for the client
    C$SCRIPTS - DDL scripts executed on build
    C$RESOURCES - not sure what this is, but i think it is stored procedures etc.
    C$ALL_SEQUENCES - i think this related to auto incremented columns, but never seen it used
    C$ALL_INDEXES_Q - the index definitions for the publication items

  • Open items query in BW (restriction on amount)

    Hi all,
    from the open items report on FI-CA (transaction FPO4) it is possible to select based on the amount related to the balance at BP, CA... level.
    Does anybody know how to do the same with the query of open items from BW (0FC_C07_Q0001)?
    Example: We want to restrict only the open items for CA with a due amount grosser than 125 euros.
    Thanks!,
    Montserrat

    Solved

Maybe you are looking for

  • Error reading a Excel sheet in BDS

    Hi Team, I have uploaded an excel sheet in BDS by OAER. Now in my program I want to read the excel file. I am putting the code snippet. DATA;       l_v_proxy   TYPE REF TO i_oi_document_proxy,       l_v_control TYPE REF TO i_oi_container_control,    

  • Windows 7 as MBA?

    I don't like the laptop Santa gave me and it's a Windows 7.  Is there any software to make my W7 a MacBook Air?

  • Updating from iPhoto 4.0.3 to iPhoto 6

    I recently had a new hard drive installed in my 2005 iBook, and the HD came with iPhoto 4.0.3. I've just updated the OS to 10.4.9, and now I need to update iPhoto, so that I can access photos that I uploaded to my old HD, which had iPhoto 6.0. In ord

  • LMS 3.2: WISM not reachable

    Hey Pros. When I try to add WISM cards to the LMS they are not managable. Neither inventories nor configs can be collected. It's telling me "device not reachable". The community strings are correct and by trying "Management Station to Device" it says

  • I just installed a multifunction Lexmark Pro905 printer and it will not print from Firefox, but will from Explorer????

    I just installed a multifunction Lexmark Pro905 printer and it will not print articles from Firefox, but will from Explorer??? Are there settings in Firefox to solve this??