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());
}

Similar Messages

  • I cannot drag items (files, maps) and drop them. And neither can I copy paste anything, not even text!

    I just bought a new MacBook Air, at the start of November. And recently I can't copy files or maps, and neither can I drag and drop them. This get's really annoying as I kinda need this possibility when I study! Please help!

    Hello GiaDuke,
    i am having exactly the same issue, however my problem started prior to updating to 10.5.7. I updated in the hope that it would resolve the issue.
    copy and paste no longer works. Cut works but i can not re-paste the copied/cut text. Neither mouse or keyboard shortcuts work.
    i can select, click, double click etc with no problems. Applications and files launch when i click them, scrolling etc works fine.
    2 things i have noticed:
    1) Spotlight has dissapeared from my menu bar. Keyboard shortcuts for Spotlight no longer work. I have been into spotlight preferences and all seems normal, yet still no spotlight.
    2) When i hover over a link or icon, often additional information pops up. This is no longer happening. It's almost as if the system doesnt know where the mouse cursor actually is on the screen.
    While i still have a useable system, it is extremely frustrating not having the most basic functionality of cutting and pasting, draging and dropping, he ability to move files and icons around etc.
    HELP!!!!!!

  • Computer crashed no ipod backup of purchased items. How to get them back?

    My old computer crashed. Before I did I copied my iTunes folder onto my portable hard drive, but I did not make a backup through iTunes, just by copying and pasting using Windows. My ipod is only an 8GB and is not large enough to hold all of the items in my purchased folder. So I can't back up and transfer using my iPod. The only way to access my old hard drive is to use this thing that lets me view it as an external on my new computer. So going back and forth with a little bit of files is not a possibility.
    I want to everything to my new computer, but I only have the backup on my hard drive, iTunes seems like the only way to import my music is to go folder by folder, but the items in the purchased folder are all hidden.
    Did I completely lose everything I downloaded, or is there a way to get it back? I copied my old itunes folder onto my new computer, but it won't even let my try to use my old libraries that were actually backed up using iTunes. It's going to take forever to go folder by folder to put my music back onto my iTunes, and if all the purchased files are hidden then how could I possibly get them off of my external?

    Ok. I sort of figured it out. iTunes had my up-to-date itunes folder hidden under a bunch of other folders, and with all of my purchased files only in this one place. Once I found the file that had all of the information it was fine, I was able to copy everything into itunes on my new computer. It just took forever to find because itunes thought it was being tricky by putting the folders in a weird spot.
    There was no purchased folder though, so all of my purchased files are no longer under that part of itunes, which is frustrating.

  • Samba errors & how to resolve them on Solaris 10?

    Hi All,
    I found the following errors in a number of /var/samba/logs Samba 3.0.37 on our Solaris servers even though they are working fine:
    log.smbd
    [2011/03/11 14:25:56, 0] auth/auth_util.c:(844)
    create_builtin_administrators: Failed to create Administrators
    [2011/03/11 14:28:44, 0] lib/util_sock.c:(1224)
    getpeername failed. Error was Transport endpoint is not connected
    [2011/03/11 14:28:44, 0] lib/util_sock.c:(261)
    Failed to set socket option SO_KEEPALIVE (Error Invalid argument)
    [2011/03/11 14:28:44, 0] lib/util_sock.c:(261)
    Failed to set socket option TCP_NODELAY (Error Invalid argument)
    [2011/03/11 14:28:44, 0] lib/util_sock.c:(1224)
    getpeername failed. Error was Transport endpoint is not connected
    [2011/03/11 14:28:44, 1] lib/util_sock.c:(1183)
    Gethostbyaddr failed for 0.0.0.0
    [2011/03/11 14:28:44, 0] lib/util_sock.c:(1224)
    log.wb-testSERVER
    [2011/05/10 10:31:21, 0] nsswitch/winbindd_passdb.c:(126)
    Possible deadlock: Trying to lookup SID S-1-1-0 with passdb backend
    log.einbindd-idmap
    [2011/05/10 10:03:21, 0] nsswitch/idmap.c:(820)
    ERROR: Initialization failed for alloc backend, deferred!
    [2011/05/10 10:03:21, 1] nsswitch/idmap_tdb.c:(397)
    idmap uid range missing or invalid
    idmap will be unable to map foreign SIDs
    [2011/05/10 12:07:45, 0] nsswitch/idmap.c:(820)
    ERROR: Initialization failed for alloc backend, deferred!
    Any ideas on what is causing these and suggestion on resolving them?
    Also like to find out where to get the latest version of Samba that is packaged for Solaris 10 environment.
    Thanks a million,
    Crystal

    Hi 799713,
    The ideal solution would be to apply patches 119757-19 & 146363-01 to update Samba to 3.5.5 as advised by bobthesungeek76036. Unfortunately, this is not an option for us since one require a software contract with Oracle to get patches these days. As a result, below are some of the steps that I have attempted but still needing further advice to complete:
    ( i ) Neither do Windows XP / 2008 clients can connect after excluding port 445 with 139. Keeping port 445 would end up with “transport endpoint” errors but I will try to live with it for now.
    ( ii ) Downloaded Samba 3.4.2 (samba-3.4.2-sol10-sparc-local.gz) from Sunfreeware but having trouble installing it with “pkgadd –d /tmp/samba-3.4.2-sol10-sparc-local with the following output:
    # showrev
    Hostname: venus
    Hostid: 85wt6521
    Release: 5.10
    Kernel architecture: sun4v
    Application architecture: sparc
    Hardware provider: Sun_Microsystems
    Domain:
    Kernel version: SunOS 5.10 Generic_141444-09
    # ls -lt samba-3.4.2-sol10-sparc-local
    -rwxr-xr-x   1 root  bin  269462528 Mar  3 17:09 samba-3.4.2-sol10-sparc-local
    # pkgadd -d /tmp/samba-3.4.2-sol10-sparc-local
    ld.so.1: pkgadd: fatal: libdlpi.so.1: open failed: No such file or directory
    Killed
    # /tmp/samba-3.4.2-sol10-sparc-local
    /tmp/samba-3.4.2-sol10-sparc-local[2]: SMCsamba:  not found
    /tmp/samba-3.4.2-sol10-sparc-local[4]: 07070100024738000081a40000000a0000000a000000
    014aceecfa000000af000000200000000000000000000000000000001100000000SMCsamba/pkgin
    foPKG=SMCsamba:  not found
    /tmp/samba-3.4.2-sol10-sparc-local[9]: Samba:  not found
    /tmp/samba-3.4.2-sol10-sparc-local[11]: Christensen:  not found
    /tmp/samba-3.4.2-sol10-sparc-local[14]: 07070100024737000081a40000000a0000000a00000
    0014aceecfa0003a34d000000200000000000000000000000000000001000000000SMCsamba/pkgm
    ap::  not found
    /tmp/samba-3.4.2-sol10-sparc-local[15]: 1:  not found
    /tmp/samba-3.4.2-sol10-sparc-local[16]: 1:  not found
    /tmp/samba-3.4.2-sol10-sparc-local[17]: 1:  not found
    ……..( iii ) Is it still necessary to install all these dependencies as stated on Sunfreeware even though samba-3.4.2-sol10-sparc-local.gz is already 257MB:
    popt,
    libiconv,
    libintl,
    readline,
    ncurses,
    kerberos,
    openssl-1.0.0d,
    openldap,
    sasl2,
    zlib,
    and either the libgcc-3.4.6 or the gcc-3.4.6 packages.
    ( iv ) How to turn off existing version 3.0.37 before replacing it with 3.4.2 once it is successfully installed? ? The current version install samba files in /usr/sfw, /etc/sfw and /var/samba. Where will the new installation files go to?
    ( v ) Couldn’t find anything on samba from Blastwave. Do you have an URL that I could try?
    It would be simpler to do a single bundled install as opposed to adding dependency libraries individually where possible.
    Many thanks again,
    Crystal

  • Calendar items lost - how to find them

    Hello - all my saved appointments disappeared from my iPhone calendar except for the I entered most recently. How can I find the remaining items? I did not sync my phone before his happens and do not have a backup of these appointments.

    Look for it.
    IF you set up find my ipod BEFORE it was lost AND it is on AND it is connected to wi-fi AND it has not been found and restored, then you may be able to get an approximate street address using icloud.
    Otherwise, you cannot track it

  • Is there a way to automate the installation/importing of a certificate. I know how to import on manually, but I need a way to import one via a script. How can I do this?

    I am looking for a way to import a certificate into FireFox 4.0.1 on XP. I know how to import them manually under tools>options, but I need a way to script the import process using something like a certutil for FF. Has anyone done this before? I need to hit several hundred workstations. Thanks for your time, suggestions and assistance.

    Thank you, that was perfect!
    Yoni

  • I was able to drag and drop songs from iTunes in to Garage Band so I could slow them down to learn how to play them. Since the newest version of iTunes came out I no longer can. Is this a feature that I can turn back on?

    I was able to drag and drop songs from iTunes in to Garage Band so I could slow them down to learn how to play them. Since the newest version of iTunes came out I no longer can. Is this a feature that I can turn back on? I really would like to continue to utlize that feature because it makes learning to play songs easier. Any help would be appericated.

    To import music into your iTunes library on the computer go to iTunes>Help>iTunes Help>Add items to iTunes and follow the instructions
    Delete the "songs" that do not play in your iTunes library and reimport them.

  • 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.

  • I try to drag certain loops but when i drop them in i get the error:   Result code = -5000     File = GarageBand-Temp-B262E454.tmp

    I try to drag certain loops but when i drop them in i get the error: 
         Result code = -5000   
         File = GarageBand-Temp-B262E454.tmp

    Hi,
       I've been trying to solve this problem for a school my companey has set up. After some research and looking at a number of similar posts I tracked the problem down to loops that came with jam packs or with apps like soundtrack pro. These loops are located in /Library/audio/appleloops. If you give everyone read and write access to this folder and it items the loops seem to work.
    I also noticed that once the loops were working agin GB had to convert the sample rate so it's possible that it's the sample rate on certain loops that causess the issue or prehaps the need to change the rate.
    Hope this helps.
    Matt Fleming
    (ACSA)

  • My hard drive went bad and I lost a lot of purchased items from the iTunes store. I want to re-download them but can not. They still show up on my purchased items. How do I solve this?

    My hard drive went bad and I lost a lot of purchased items from the iTunes store. I want to re-download them but can not. They still show up on my purchased items. How do I solve this?

    Update to iTunes 10.3.1
    After you have finished, you can re download your iTunes purchases without having to re purchase.
    iTunes 10.3.1
    " Download Previous Purchases. Download your past music purchases again at no additional cost. Your purchases are available in the iTunes Store on your Mac or in the iTunes app on your iPhone, iPad, or iPod touch. Previous purchases may be unavailable if they are no longer on the iTunes Store."
    "Available on iTunes in the U.S. and Canada only. Title availability is subject to change."
    From here.  http://www.apple.com/itunes/

  • TS2530 When I put a burned cd from one Mac into another Mac, song titles do not show up! I have to enter them manually! My CD player reads the titles that i on the cd; how can I get my Mac to do so?

    When I put a burned cd from one Mac into another Mac, song titles do not show up! I have to enter them manually! My CD player reads the titles that i on the cd; how can I get my Mac to do so?

    The problem is that I burned these CD's myself from music that I added from my personal collection to iTunes. The INFO is ON the CD's (it appears perfectly when I put the CD in my Numark mixer...so I know the info is on the CD), but for some reason, my MAC PRO will NOT read the info on the burned CD when I place the CD into the MAC PRO. The CD was burned on a MAC that I no longer own. But there HAS to be a way to transfer songs from a burned CD with the INFO that is on the CD burned with iTunes.
    PLEASE HELP!
    -Old Appel

  • Switched carriers and now i don't have exchange server calendar items - does anyone know how to retrieve them

    recently transfered from AT&T to Verizon iphone 4s and when I did the syn everything came over to new device except exchange calendar items.  Any idea how to get them synced.  I 've lost them from the computer as well.

    This has nothing to do with switching carriers and the syncing of calendar events over the air with an Exchange server has nothing to do with the iTunes sync process.
    On the iPhone go to Settings > Mail, Contacts, Calendars.
    Select the Exchange account.
    Is Calendars turned on for over the air syncing?

  • Okay i had to install Itunes onto my new OS because window's Vista messed up on me and i can't get any of my old purchases back from my account such as music and movies any ideas on how to get them back (i do not have the folder that contains old items)

    Okay i had to install Itunes onto my new OS because window's Vista messed up on me and i can't get any of my old purchases back from my account such as music and movies any ideas on how to get them back (i do not have the folder that contains old items from the last itunes or anything from that OS because it had a virus and i just wanted windows 7)

    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    Hope this helps,
    JD

  • 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.

  • What sort of file or item is storaged in Others and how to delete them?

    What sort of file or item is storaged in Others and how to delete them?

    See here for answer about the OTHER which is taking up space:
    http://pondini.org/TM/30.html
    and here:
    http://pondini.org/OSX/DiskSpace.html
    See Kappys excellent note on the rest of “other” files taking up your space:
    What is "Other" and What Can I Do About It?

Maybe you are looking for

  • How to apply template, existing reports

    Post Author: satheesh CA Forum: WebIntelligence Reporting i have 100 reports in webintelligence documents, then i have to add company log for that all 100 existing repots. how this possible in one time . cleary my query is i have to apply template fo

  • My photos are also pink tinged and i have all new cartridges? what could be the problem?

    The first photo print is good but the following prints are "pink"!  

  • Facetime Choppy on iPad 2 but not iPhone 4

    My parents have been using their iPhone 4 to do Facetime with me both on my iMac and iPad 2 with no problems.  I bought them an iPad 2 so that they would have a larger display for Facetime.  Unfortunately, the video/audio is choppy on their iPad 2 bu

  • New Item- Color Matte

    Hello Everyone. Inside After Effects I can apply an Effect Into a Solid. But, we don't have that Solid In Premiere Pro CC 2014. I used the Color Matte, with Black Color,  and I did apply different Effects. Is this similar like using the Solid In Afte

  • Alfa-numaric number ranges

    Hi , Can we maintain alfa-numaric number ranges for BP Master and product master ex i want the number ranges for BP is  123ABC . and  Product number range should be 345XYZ . full points will be rewarded