Inventory cleanup problems

Ive been working at adding some inventory classes to SCCM 2012 and ran into some housekeeping problems.  I had added a few classes, then decided to change their names a little bit.  Now, I am left with some extra 'SCCM_Ext' tables and views of
the deleted data.
When I delete an SCCM Inventory class from the Hardware inventory, the main 'dbo' tables and views are deleted correctly, but the 'SCCM_Ext' tables and views are never deleted. 
Is there a cleanup process avaialbe to get rid of those tables and views?  When I try to open them in SQL I get errors because the underlying 'dbo' tables and views aren't there anymore.  It seems like there could be a garbage cleanup problem with
these 'SCCM_Ext' objects.  Can I just drop the tables and views manually?

Hi Todd,
Could you please let me know how you delete the sql DB tables? It is not supported to deleted the DB table directly.
Try to use the Delgrp.exe utility to remove it and see how it goes.
http://technet.microsoft.com/en-us/library/cc180212.aspx
https://social.technet.microsoft.com/Forums/systemcenter/en-US/d8c658a1-fce8-4591-8bf8-2c60223c7504/sccm-custom-ddr-created-classes-cannot-be-deleted-completely?forum=configmgrgeneral
Note: This is also not support officially. Backup any data first before you make the change.
We recommend you disable inventory classes if not used.
http://technet.microsoft.com/en-us/library/gg712290.aspx#BKMK_Enable
Thanks.
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

Similar Messages

  • Inventory management problem with WS-C2950-24 on CWLMS 4.0

    Hi Joe,
    I have a problem with inventory management wiht 2950- 24 switches on which I am not able to capture inventory as well as the configurations. The IOS version is 121-22.EA13 and featureset is i6k2l2q4-mz. However, when I troubleshoot it, all the transport protocols (Telnet, ssh, tftp etc) shows success.
    Thanks,
    Best Regards // Rajiv

    Inventory uses snmp to communicate to device. Please check you device has snmp configured and LMS has correct SNMP RO credentials added to it.
    Please try to do a manual snmpwalk from LMS server (using device centre > tools) and see the walk succeeds.
    Then again try to run the inventory from LMS server on this perticular device and if it fails, share the failure result/screenshot etc details. NMSROOT/log/ic_server.log as well.
    -Thanks

  • OPM Inventory Responsibility Problem

    Hello everybody !! I´m new in the forum.
    Here is my problem i´m working on a company rollup, with the next situation
    Company A: already working with OPM for a couple of years ago.
    Company B: setting up to go online in a few month
    I have to create a new master item organization, new process organization, new cia, etc.
    I´ve done this, with the guide of the white paper about OPM System Setup. (New SOB, New ORG, New CIA, New OU, Fiscal Policy, Item Master, New Warehouse, New User Organization assigment) Everything fine.
    The problem is that when i created a new responsability for Company B Opm Inventory, i configure the GMI Default Organization: Company B, MO Operating Unit: Company B, BUT: i´m stil seeing the Master Item Organization of the Company A.
    I have to setup another system profile ? I tried adding the Master Item Organization for the Company B in the Organization Item in the Opm Inventory responsability, but it was also added to the Company A.
    So when i add a new item from CIA B OPM Inventory it is created in both organizations.
    Something is missing, but i couldn´t find out.
    Thanks in advance,
    Gustavo

    Hi,
    Please Check the User Organizations...
    System Adminisrtation > User Organizations
    Please check then and reply which organizations u have selected there.
    Regards
    Srinivas

  • Inventory Collection problem for RME 4.3.1 LMS 3.2

    I recently upgraded from LMS 3.1 to LMS 3.2 and RME v 4.3.1. I have problems with the inventory collection. It will start scanning, but stops after approximately 10 devices. The rest of them will have a pending state. If I stop the collection job and start it again none (0) devices will be scanned. If I restart the ICServer it will result in the first option. That is, it will scan only 10 devices and then stop. I have extended the SNMP timeout to 30 secs and zero retries. Any suggestion would be appreciated

    I have read through the dump and cant find anything in particular. Another discovery I've made is that the SNMP walk of an unsuccessful device takes 10 times longer than a successful device. An inventory job on a unsuccessful device only goes into pending and the job never starts.

  • Total Inventory Line Problem...Help Please

    I am creating a Inventory Program for my Java class. I have gotten all of the program to pull to the GUI I created but one. For some reason my total inventory calculation will not pull to the GUI. Can anyone help me find the problem within my code. Here is both the main program and my buttonframe. If the other two parts are needed just let me know. It will all compile, just the label were the total inventory goes is still at zero it will not put the number in the box. I will be forever grateful for any help or tips in fixing the problem. Thanks
    // Inventory4.java
    // Program will track total inventory items in stock.
    import java.io.*;
    import javax.swing.JFrame;
    public class Inventory4 {
         // shared BufferedReader for keyboard input
         private static BufferedReader stdin = new BufferedReader( new InputStreamReader( System.in ) );
         // shared BufferedReader for keyboard input
         private static int totalCount = 5;
              /** Create a new instance of Main */
              public Inventory4() {
                   double unitPrice; // Unit price of each item
                   double quantityStock; // Number of items in stock
                   double inventoryValue; // Place holder for calculated inventory value
                   double totalInventory; // Place holder for calculated total inventory value
                   int itemNumber; // Item Number
                   String itemName = ""; // Name of each item
              //Main Method begins execution of program
              public static void main(String[] args)throws IOException {
                   // Declare an array of classes
                   SubItem myItem[];
                   // Declare number of arrays
                   myItem = new SubItem[5];
                   // Declare an array of my item classes
                   // Create a new instance of the class Item
                   myItem = new SubItem[5];
                   // Create an instance of my item classes
                   myItem[0] = new SubItem(1.79,24,4,1,"Breads");
                   myItem[1] = new SubItem(3.49,15,3,2,"Dairy");
                   myItem[2] = new SubItem(6.49,20,9,3,"Meats");
                   myItem[3] = new SubItem(0.25,31,12,4,"Can Goods");
                   myItem[4] = new SubItem(2.59,37,7,5,"Produce");
                   // Call print method
                   printArray(myItem);
                   // Call sort array
                   myItem = sortArray(myItem);
                   System.out.println(" Inventory List Sorted by Items \n\n");
                   printArray(myItem);
              // Call the GUI constructor and pass array and totalcount
                   ItemButton itemButton = new ItemButton(myItem,totalCount); // Make ItemButton
                   itemButton.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
                   itemButton.setSize( 350,390 ); // Window size
                   itemButton.setVisible( true ); // display window
         } // End Main Method
                                  /// Start PrintArray Method ///
              private static SubItem[] printArray(SubItem[] myItem) {
                   double totalInventory = 0;
                   double restockingFee = 0;
              // Start Loop
         for (int i = 0; i<5;++i) {
              System.out.println("\n The Item Number is " + i + myItem.getItemNumber() );
              System.out.println("\n Item Name is " + myItem[i].getItemName() );
              System.out.println("\n Quantity in Stock is " + myItem[i].getQuantityStock() );
              System.out.println("\n Inventory Write-off is " + myItem[i].getInventoryWriteoffs() );
              System.out.println("\n Inventory Value is $" + myItem[i].computeinventoryValue());
              totalInventory = totalInventory + myItem[i].computeinventoryValue();
              restockingFee = totalInventory + myItem[i].computeRestockingFee();
         } // End For Loop
              System.out.println("\n Total Value of all inventory is " + totalInventory);
              System.out.println("\n Total Value of all inventory with restock fee $" + restockingFee);
              return myItem;
    } // End PrintArray Method
                                  /*** Bubble Sort Algorithm ***/
              private static SubItem[] sortArray(SubItem[] myItem) {
                   // Create temporary place holder
                   SubItem temp = new SubItem();
                   // Counters for Sort are I and J
              int i, j;
                   int array_size = 5;
              for (i = (array_size - 1); i >= 0; i--) {
                   for (j = 1; j <= i; j++) {
                        if (myItem[j-1].getItemName().compareTo(myItem[j].getItemName()) > 1) {
                        temp = myItem[j-1];
                             myItem[j-1] = myItem[j];
                                  myItem[j] = temp;
                                  } // End if
              } // End inner for loop
         } // End outer for loop
         return myItem;
    } // End Method
    } // End Class
    // ItemButton.java
    // This will create GUI buttons.
    // Display the Items.
         import java.awt.FlowLayout;
         import java.awt.event.ActionListener;
         import java.awt.event.ActionEvent;
         import javax.swing.JFrame;
         import javax.swing.JButton;
         import javax.swing.JLabel;
         import javax.swing.JTextField;
         import javax.swing.Icon;
         import javax.swing.ImageIcon;
         import javax.swing.JOptionPane;
         import javax.swing.SwingConstants;
    public class ItemButton extends JFrame {
         private JButton nextJButton; // text button
         private JButton prevJButton; // icon button
         private JLabel lblItemName; // text field with set size
         private JTextField txtItemName; // text field constructed with text
         private JTextField textField3; // text field with text and size
         private JLabel lblItemNumber; // text field with set size
         private JTextField txtItemNumber; // text field constructed with text
         private JLabel lblUnitPrice; // text field with set size
         private JTextField txtUnitPrice; // text field constructed with text
         private JLabel lblQuantityStock; // text field with set size
         private JTextField txtQuantityStock; // text field constructed with text
         private JLabel lblInventoryWriteoffs; // text field with set size
         private JTextField txtInventoryWriteoffs; // text field constructed with text
         private JLabel lblcomputeRestockingFee; // text field with set size
         private JTextField txtcomputeRestockingFee; // text field constructed with text
         private JLabel lblcomputeinventoryValue; // text field with set size
         private JTextField txtcomputeinventoryValue; // text field constructed with text
    private JLabel lblcomputetotalInventory; // text field with set size
    private JTextField txtcomputetotalInventory; // text field constructed with text
    // Class variable of the SubItem array I passed
    SubItem[] arraySubItem;
    private int currentArrayCounter;
    private int arrayCount;
    // ItemButton adds JButtons to JFrame
    public ItemButton(SubItem[] myItem, int totalArrayCount) {
              super ( "Inventory" );
              arraySubItem = myItem;
    // Setting variable totalArrayCount
    // to class arrayCounter
         arrayCount = totalArrayCount;
         currentArrayCounter = 0;
    // Current array position 0
         setLayout( new FlowLayout() ); // set frame layout
    // Load the next and previous icons
         Icon iconNext = new ImageIcon( getClass().getResource( "" ) );
         Icon iconPrev = new ImageIcon( getClass().getResource( "" ) );
    // Construct textfield with default text and 15 columns
         lblItemName = new JLabel( "Item Name ");
         add( lblItemName ); // textField3 to JFrame
         txtItemName = new JTextField( "", 15 );
         add( txtItemName ); // add textField3 to JFrame
         lblItemNumber = new JLabel( "Item Number ");
         add( lblItemNumber ); // textField3 to JFrame
    txtItemNumber = new JTextField( "", 15 );
         add( txtItemNumber ); // add textField3 to JFrame
         lblUnitPrice = new JLabel( "Unit Price ");
         add( lblUnitPrice ); // textField3 to JFrame
    txtUnitPrice = new JTextField( "", 15 );
         add( txtUnitPrice ); // add textField3 to JFrame
         lblQuantityStock = new JLabel( "Quantity Stock " );
         add( lblQuantityStock ); // textField3 to JFrame
         txtQuantityStock = new JTextField( "", 15 );
         add( txtQuantityStock ); // add textField3 to JFrame
         lblInventoryWriteoffs = new JLabel( "Inventory Write-Offs " );
         add( lblInventoryWriteoffs ); // textField3 to JFrame
         txtInventoryWriteoffs = new JTextField( "", 15 );
         add( txtInventoryWriteoffs ); // add textField3 to JFrame
         lblcomputeRestockingFee = new JLabel( "Restocking Fee ");
         add( lblcomputeRestockingFee ); // textField3 to JFrame
         txtcomputeRestockingFee = new JTextField( "", 15 );
         add( txtcomputeRestockingFee ); // add textField3 to JFrame
         lblcomputeinventoryValue = new JLabel( "Inventory Value " );
         add( lblcomputeinventoryValue ); // textField3 to JFrame
         txtcomputeinventoryValue = new JTextField( "", 15 );
         add( txtcomputeinventoryValue ); // add textField3 to JFrame
         lblcomputetotalInventory = new JLabel( "Total Inventory ");
         add( lblcomputetotalInventory ); // textField3 to JFrame
         txtcomputetotalInventory = new JTextField( "", 15 );
         add( txtcomputetotalInventory ); // add textField3 to JFrame
    // Create the buttons
         nextJButton = new JButton( "Next" ); // button with Next
         prevJButton = new JButton( "Previous"); // button with Prev
         add(prevJButton);
         add(nextJButton); // add plainJButton to JFrame
    // Create new ButtonHandler for button event handling
         ButtonHandler handler = new ButtonHandler();
         nextJButton.addActionListener( handler );
         prevJButton.addActionListener( handler );
    // SetTextFields to set the text fields
         setTextFields();
    } // End ButtonFrame constructor
    // inner class for button event handling
         private class ButtonHandler implements ActionListener
              // handle button event
              public void actionPerformed( ActionEvent event )
                   // Which button was pressed
                   if (event.getActionCommand()== "prevJButton") {
                        currentArrayCounter++;
                   else {
                        currentArrayCounter++;
                   setTextFields();
              } // End Method ActionPerformed
         } // End Private inner class ButtonHandler
         private void setTextFields()
              // Check to see if the end of array was past
              if (currentArrayCounter == arrayCount)
                   currentArrayCounter = 0;
              // Check to see if the first was past
              if (currentArrayCounter < 0)
                   currentArrayCounter = arrayCount;
              txtItemName.setText(arraySubItem[currentArrayCounter].getItemName());
              txtItemNumber.setText(arraySubItem[currentArrayCounter].getItemNumber()+"");
              txtUnitPrice.setText(arraySubItem[currentArrayCounter].getUnitPrice()+"");
              txtQuantityStock.setText(arraySubItem[currentArrayCounter].getQuantityStock()+"");
              txtInventoryWriteoffs.setText(arraySubItem[currentArrayCounter].getInventoryWriteoffs()+"");
              txtcomputeRestockingFee.setText(arraySubItem[currentArrayCounter].computeRestockingFee()+"");
              txtcomputeinventoryValue.setText(arraySubItem[currentArrayCounter].computeinventoryValue()+"");
              txtcomputetotalInventory.setText(arraySubItem[currentArrayCounter].computetotalInventory()+"");
    } // End class ItemButton

    I am sorry guys,
    When I run the program all labels are in place and data appears where it is suppose to be...but the total inventory line. The label for the total inventory is there, but where the data is suppose to be all it will put there is 0.0. It will not put in the dollar amount. I know the problem is with the GUI, because before I started with the buttonFrame and it was compiled it would give me me the dollar amount for the Total Inventory. Here is the rest of the code.
    // Item.java
    // Program Starts Item Class
    public class Item {
         private double unitPrice;
         private double quantityStock;
         private int inventoryWriteoffs;
         private double inventoryValue;
         private double totalInventory;
         private int itemNumber;
         private String itemName;
         /** Create a new instance of Item Name */
         public Item(double UnitPrice,double QuantityStock,int InventoryWriteoffs,int ItemNumber,String ItemName) {
              itemName = ItemName;
              itemNumber = itemNumber;
              unitPrice = UnitPrice;
              quantityStock = QuantityStock;
              inventoryWriteoffs = InventoryWriteoffs;
         } public Item() {  }
         // Set for Name
         public void setItemName(String ItemName) {
              itemName = ItemName;
         // Set for Item Number
         public void setItemNumber(int ItemNumber) {
              itemNumber = ItemNumber;
         // Set for Unit Price
         public void setUnitPrice(double UnitPrice) {
              unitPrice = UnitPrice;
         // Set for Quanity Stock
         public void setQuantityStock(double QuantityStock) {
              quantityStock = QuantityStock;
         // Set for Inventory Write-Offs
         public void setInventoryWriteoffs(int InventoryWriteoffs) {
              inventoryWriteoffs = InventoryWriteoffs;
         // Get for Name
         public String getItemName() {
              return itemName;
         // Get for Item Number
         public int getItemNumber() {
              return itemNumber;
         // Get for Unit Price
         public double getUnitPrice() {
              return unitPrice;
         // Get for Quantity Stock
         public double getQuantityStock() {
              return quantityStock;
         // Get for Inventory Write-offs
         public int getInventoryWriteoffs() {
              return inventoryWriteoffs;
         // Compute Inventory Value Method
         public double computeinventoryValue() {
              return quantityStock * unitPrice;
         // Compute Total Inventory Method
         public double computetotalInventory() {
              return totalInventory = totalInventory + inventoryValue;
         public String toString() {
              return (itemName);
    // SubItem.java
    // Sub class to main program
    public class SubItem extends Item {
         private int inventoryWriteoffs;
         private double restockingFee = .05;
         public SubItem(double UnitPrice,double QuantityStock,int InventoryWriteoffs,int ItemNumber,String ItemName) {
              setUnitPrice(UnitPrice);
              setQuantityStock(QuantityStock);
              setItemNumber(ItemNumber);
              setItemName(ItemName);
              inventoryWriteoffs = InventoryWriteoffs;
         // Empty
         public SubItem() {
         // Set for Inventory Write-offs
              public void setInventoryWriteoffs(int InventoryWriteoffs) {
                   inventoryWriteoffs = InventoryWriteoffs;
         // Get for Inventory Write-offs
              public int getInventoryWriteoffs() {
                   return inventoryWriteoffs;
         // Method to compute Restocking Fee
              public double computeRestockingFee() {
                   return ((getUnitPrice() * getQuantityStock()) * restockingFee);
    Thanks again for any help.

  • Inventory Report Problem

    Hi all,
    There is problem in inventory report.
    When i run as report as on date (31.12.2008) total is coming correct its matching with R/3.
    But if i add stock of all the material then its not matching.
    eg..
    Material        qty    val
    m01              10     100
    e01               20     200
    total            50      700
    my total is matching with R/3. but if add stock of material then it is showing as 30 while total is showing 50 which exactly same as R/3. now when i changed the date range (01.01.2008 to 31.12.2008) it shows me follwoing result...
    Material        qty    val
    m01              10     100
    e01               20     200
    f01               [20]   [400]
    total            50      700
    I am not able to understand why its showing result like this ??? So i have to ask my users to run this report large date range ... which is not logical .. .inventory report should be as on date...
    Regards,
    Viren.

    Hi,
    Create a new Calculated Key-Figure For Value with Exception Aggregation as 'Total' and Reference Characteristic as 'Quantity'.
    Please allot points if you find it useful.
    Thanks and Regards,
    Kuntal.

  • LMS 3.1 inventory discovering problem

    Hello everyone
    I have LMS 3.1 and we are facing issue in inentory as the job we creating was fail everytime to get inventory
    Any recommendation for this issue

    Surprisingly i have noticed ciscoworks is exceeding stdout.log file size about 28GB. within a 10 - 15 minutes Ciscoworks has started shutting off its processes. My drive has 0 bytes free
    Can move this file somewhere on external storage just for back up & crate a blank stdout.log file ??
    I suppose i should follow :
    1. Stop crmdmgtd services
    2. move stdout.log to external storage
    3. Create new stdout.log blank file
    4. Start crmdmgtd again.
    Can you pl reply fast

  • Inventory inward problem

    Dear Sir,
                      i am opening query manager icon and choose the inventory inward pending report then click ok button the error will be display
    1) [Microsoft][sql native client][sql server]conversion failed when converting the nvarchar value '31/05/2014' to data type int. 'Queries'(OUQR) 

    Thanks for ur valuble support.....
    Thats query also working fine sir.....
    but the user told the drawback is lot of times repeated the doc number for every item.so pls combine  single document no and display total quantity  need not display item description ......
    i want display these colums only:
    1.inventory transfer no
    2.from where house
    3.To where house
    4.Posting date
    so can you please tell  another query sir .........................

  • Inventory Init Problem

    Hello
          I have some problem for Init request,there is very much data while data schedule in BI side.and i have only 3 to 4 hours to take init and data fill from setup table to bi(Schedule).so what i do.kindly provide solution for that problem

    Hi,
           Generally, you need to parallelize your init ranges first in R/3.   You can follow the same in BW Infopackages by doing multiple init with different ranges, so that the jobs can parallely run.  There is one more scenario wherein you can do Init without data transfer in BW (given that you have done your Init with some ranges in R/3 Side to fill setup tables) and continue your deltas.  Then perform your full loads with some ranges to run in parallel when there is smaller load on servers.  Finally do the repair full request and continue your deltas.  Hope it should provide you some answers of minimizing your down time.
    Thanks
    Kishore

  • Accounting problem in Make to order cofiguration

    Dear friends
    we have implemented make-to-order scenario on one of our product. We have successfully gone through the following steps....
    sales order -> converting to planed order [md50] -> converting planed order to process order -> confirmation of process order -> transfer cost from process order to sales order[KO88] > delivery> PGI. But *we did not found any accounting document generated after PGI, and all the pricing conditions are yellow except EK01 and DIFF in sales order and billing document.* Is there any thing missing in the above steps or any other problem ?
    regrads
    Kaushik

    Dear Friend
    Inventory accnt problem is solved as per ur guide line. But I am getting problem with the Pricing procedure. I have used KOFk as accnt cond type, and EK02 as cost cond type. At the time of creation of sales order all cond type is green and EK02 is 0 with red color. But after saving the order when i open the order find all cond type is yellow and EK02 is green with calculated value and NET VaLUE of the order is equal to EK02 value. Kindly gide me where is the problem
    Regards
    Kaushik

  • Problems with environments and transactional mode in the Python API

    Hello everyone,
    I have been having problems with the Python API, and I wonder if anyone can comment? I am using DB XML version 2.2.13, with python 2.3 (RedHat linux WS 4.0) and python 2.4 (SuSE 10.1) with identical results. I started with a simple example:
    #!/usr/bin/python
    """XPath example from http://www.w3schools.com/xpath/default.asp
    ported to DbXML
    from bsddb3.db import *
    from dbxml import *
    books = """<?xml version="1.0" encoding="ISO-8859-1"?>
    <bookstore>
      [xml data omitted for brevity]
    </bookstore>"""
    if __name__ == "__main__":
        conFlags = DB_CREATE | DB_NOMMAP
        myMgr = XmlManager()
        myMgr.setDefaultContainerFlags(conFlags)
        myMgr.setDefaultContainerType( XmlContainer.NodeContainer)
        uc = myMgr.createUpdateContext()
        container = myMgr.createContainer("books.dbxml")
        container.putDocument("books.xml", books, uc)So far, so good - this works, and creates a container books.dbxml that I can open and query. Next, I try to instantiate the XmlManager using an environment:
    if __name__ == "__main__":
        envFlags = DB_CREATE | DB_PRIVATE
        conFlags = DB_CREATE | DB_EXCL | DB_NOMMAP
        myEnv = DBEnv()
        myEnv.open("/home/pkeller/dbxml_tests", envFlags, 0)
        myMgr = XmlManager(myEnv, DBXML_ADOPT_DBENV)
        myMgr.setDefaultContainerFlags(conFlags)
        myMgr.setDefaultContainerType( XmlContainer.NodeContainer)
        uc = myMgr.createUpdateContext()
        container = myMgr.createContainer("books.dbxml")
        container.putDocument("books.xml", books, uc)This fails with the following output:
    Traceback (most recent call last):
      File "w3school_xpath_c2.py", line 60, in ?
        container = myMgr.createContainer("books.dbxml")
      File "/scratch_bernoulli/pkeller/dbxml/install/lib/python2.3/site-packages/dbxml.py", line 125, in createContainer
        def createContainer(*args): return dbxml.XmlManagercreateContainer(*args)
    RuntimeError: Error: Invalid argument
    Segmentation faultA bit odd - I can't find anything in the docs about the required arguments to XmlManager.createContainer being different if an environment has been used explicitly.
    Anyway, I persevered (my aim being to use transactional mode in Python). Changing the environment and container flags like so:
        envFlags = DB_CREATE  | DB_INIT_LOCK | DB_INIT_LOG | DB_INIT_MPOOL | DB_INIT_TXN | DB_PRIVATE
        conFlags = DB_CREATE  | DB_EXCL | DBXML_TRANSACTIONAL | DB_NOMMAPThis change allowed the script to run, outputting the single classic line:
    Segmentation fault(the C++ API docs at http://www.sleepycat.com/xmldocs/gsg_xml/cxx/transaction.html#initializetransaction are incorrect by the way - there is no flag DB_TRANSACTIONAL).
    In spite of the segfault, the file "books.dbxml" was produced and could be queried by another application. A transaction log file "log.0000000001" was also written (10485760 bytes long).
    Running this last example again with "python -v" showed that the segfault was being produced during the python's cleanup phase:
    # clear __builtin__._
    # clear sys.path
    # clear sys.argv
    # clear sys.ps1
    # clear sys.ps2
    # clear sys.exitfunc
    # clear sys.exc_type
    # clear sys.exc_value
    # clear sys.exc_traceback
    # clear sys.last_type
    # clear sys.last_value
    # clear sys.last_traceback
    # clear sys.path_hooks
    # clear sys.path_importer_cache
    # clear sys.meta_path
    # restore sys.stdin
    # restore sys.stdout
    # restore sys.stderr
    # cleanup __main__
    Segmentation faultCan anyone clarify what is going on? I had been hoping to deploy DB XML as an alternative to something more admin-heavy, but with this behaviour that would be hard to justify. A dirty exit from Python means that no-one will consider trusting their data to this engine (or am I doing something wrong?).
    Regards,
    Peter.

    Peter,
    Your first failure -- invalid argument -- was due to an invalid combination of
    flags to DBEnv.open(). Along with DB_CREATE you need at least DB_INIT_MPOOL.
    As you can see, it worked once you added more flags.
    The second, cleanup problem (segmentation fault) is the result of out of order
    destruction of objects. This is fixed in the next release (later this year), but
    you can work around it by ensuring that your XmlContainer and XmlManager
    objects are deleted/cleaned up before the DBEnv object.
    Python will cleanup in reverse order of creation, unless you perform explicit
    deletions, which is also fine (e.g. del container, del myMgr).
    Explicit deletion is always safe.
    Regards,
    George

  • How can i get the price by joining StockIn and StockOut inventory (FIFO)

    I have 2 example table 
    First StockIn table
    declare @StockIn table (StockID int ,qty decimal(16,2),Price decimal(16,2), tranDate Date , running int)
    insert into @StockIn(StockID , qty ,  Price, tranDate  , running) values
    (1 , 5 , 430 , '2014-10-09' , 1),
    (1 , 10 , 431 , '2014-12-09' , 2),
    (1 , 15 , 432 , '2015-02-02' , 3),
    (2 , 8 , 450 , '2014-08-05' , 1),
    (2 , 6 , 451 , '2014-10-09' , 2),
    (2 , 15 , 452 , '2015-02-02' , 3)
    Represent item which go into the stock order by date (running column is , run number in stockID  order by date )
    Second StockOut table
    declare @StockOut table (StockID int ,qty decimal(16,2), lineid int)
    insert into @StockOut(StockID  ,qty , lineid ) values
    (1 , 10 , 2),
    (1 , 10 , 4),
    (2 , 12 , 8),
    Represent item which go out the stock . But this table doesn't have price of each item , I want to join this 2 table (join stockID) for getting the price from
    @StockIn table  by FIFO  , into @StockOut table  row by row .
    I can do this if I dont care about  lineid  but  i need to get the total price (qty * price) of any lineid .
    How Can i do this ?
    Thanks
    This is the  Result i expect 

    Thanks Jason
    A Long
    >>  https://www.simple-talk.com/sql/performance/set-based-speed-phreakery-the-fifo-stock-inventory-sql-problem/
    I have try this links but the result give me total stock left in inventory .
    But I want a price of each out transaction . So i have no idea to do with this.
    Could you give me some example of this logic
    >>  https://www.simple-talk.com/sql/performance/set-based-speed-phreakery-the-fifo-stock-inventory-sql-problem/ relate
    to this example .
    IF OBJECT_ID('tempdb..#StockIn') IS NOT NULL
    DROP TABLE #StockIn
    GO
    CREATE TABLE #StockIn (
    InID INT,
    StockID INT,
    InQty INT,
    Price DECIMAL(16, 2),
    tranDate DATE,
    running INT
    IF OBJECT_ID('tempdb..#StockOut') IS NOT NULL
    DROP TABLE #StockOut
    GO
    CREATE TABLE #StockOut (
    OutID INT,
    StockID INT,
    OutQty INT,
    lineid INT,
    tranDate DATE
    INSERT #StockIn ( InID, StockID, InQty, Price, tranDate, running )
    VALUES ( 1, 1, 15, 430, '2014-10-09', 1 ),
    ( 2, 1, 10, 431, '2014-10-10', 2 ),
    ( 3, 1, 15, 432, '2015-02-02', 3 ),
    ( 4, 2, 15, 450, '2014-08-05', 1 ),
    ( 5, 2, 6, 450, '2014-10-01', 2 ),
    ( 6, 2, 15, 452, '2015-10-02', 3 )
    INSERT #StockOut ( OutID, StockID, OutQty, lineid, tranDate )
    VALUES ( 1, 1, 20, 2, '2014-10-11' ),
    ( 2, 1, 10, 4, '2014-10-12' ),
    ( 3, 2, 12, 8, '2014-11-01' ),
    ( 4, 2, 3, 8, '2014-11-02' );

  • Probable BUG found in Sybase Inventory database

    Hi All,
    (Sure is quiet around here - must be because ZDM 7 is so stable...)
    So I have been having inventory database issues. Random but inevitable
    database failures - eg "assertion failed 201425" (and other numbers that I
    cannot locate at the moment), "mgmtdbs.db is not a valid database file" on
    starting the sybase database. Etc.
    Long troubleshooting story short: it appears that the sybase.nlm application
    cannot handle nss volumes that are large. In my case it fails if I try to
    run it on a 3.6TB or 5TB volume, but succeeds if I run it on small volumes -
    20GB to 65GB. Also the database was running fine on a 1.8TB volume - the
    problems began when I virtualized the server (on ESX 3.5u4) and moved the
    volume from direct-attached scsi storage to network-attached CoRAID (AoE)
    storage AND expanded the volume to 3.6TB.
    To test my theory I ran the database on two other servers and 3 other
    volumes. In all cases success came when the hosting volume was small -
    didn't matter if the host volume was direct attached or on a physical server
    as opposed to a virtual server.
    So if you are having inventory database problems, try moving the database to
    volume that is small - I suspect the magic breaking point is 2TB which just
    happens to be the maximum size of an NSS partition...and wasn't that also
    the max size of an NSS volume sometime in the past? Maybe the sysbase
    engineers were working in such an environment when they wrote the
    nlm...after all it has been 4 years since it was last modified (I am running
    v8.00.03, Nov 30 2005) and even longer since it was originally written.
    Anyways, the reason it fails is not so important. There is a workaround and
    a long term solution as well - move to ZCM 10.whatever-is-good ;-)
    Cheers,
    Ron Neilly
    UBC Okanagan
    PS If you have any evidence to back me up - or to disprove me - please
    share!

    Isn't it funny how once unfathomable disk sizes are now not that unusual?
    My guess is you are correct and if an SR was created on the issue Novell
    would likey raise the matter to Sybase for investigation.
    (Clearly this sounds as if its a bug and would be refunded.)
    But I think it's unlikely that it would be fixed even if verified since the
    NLM is already so old.
    While you have simple work-arounds, It is possible that the Windows and
    Linux versions of Sybase that come with ZDM don't have this issue.
    Craig Wilson - MCNE, MCSE, CCNA
    Novell Support Forums Volunteer Sysop
    Novell does not officially monitor these forums.
    Suggestions/Opinions/Statements made by me are solely my own.
    These thoughts may not be shared by either Novell or any rational human.
    "Ron Neilly" <[email protected]> wrote in message
    news:[email protected]...
    > Hi All,
    > (Sure is quiet around here - must be because ZDM 7 is so stable...)
    >
    > So I have been having inventory database issues. Random but inevitable
    > database failures - eg "assertion failed 201425" (and other numbers that I
    > cannot locate at the moment), "mgmtdbs.db is not a valid database file" on
    > starting the sybase database. Etc.
    >
    > Long troubleshooting story short: it appears that the sybase.nlm
    > application
    > cannot handle nss volumes that are large. In my case it fails if I try to
    > run it on a 3.6TB or 5TB volume, but succeeds if I run it on small
    > volumes -
    > 20GB to 65GB. Also the database was running fine on a 1.8TB volume - the
    > problems began when I virtualized the server (on ESX 3.5u4) and moved the
    > volume from direct-attached scsi storage to network-attached CoRAID (AoE)
    > storage AND expanded the volume to 3.6TB.
    >
    > To test my theory I ran the database on two other servers and 3 other
    > volumes. In all cases success came when the hosting volume was small -
    > didn't matter if the host volume was direct attached or on a physical
    > server
    > as opposed to a virtual server.
    >
    > So if you are having inventory database problems, try moving the database
    > to
    > volume that is small - I suspect the magic breaking point is 2TB which
    > just
    > happens to be the maximum size of an NSS partition...and wasn't that also
    > the max size of an NSS volume sometime in the past? Maybe the sysbase
    > engineers were working in such an environment when they wrote the
    > nlm...after all it has been 4 years since it was last modified (I am
    > running
    > v8.00.03, Nov 30 2005) and even longer since it was originally written.
    >
    > Anyways, the reason it fails is not so important. There is a workaround
    > and
    > a long term solution as well - move to ZCM 10.whatever-is-good ;-)
    >
    > Cheers,
    >
    > Ron Neilly
    > UBC Okanagan
    >
    > PS If you have any evidence to back me up - or to disprove me - please
    > share!
    >

  • Exception Aggregation or Avg Inventory

    Hi,
    While I am doing Inventory Development, got some issues in reporting. Below is my reporting info.
    Chars in rowsr:  CompCode, Sector(Nav attribute to plan), Calmonth.
    1. We get Closing Inventory in runtime ( 0valstockval )
    2. Turnover (Just a KF)
    3. Avg Inventory is a moving avg of Closing Inventory
    4. Ratio = Turnover / Avg Inventory.
    Problem in getting Moving avg in Sector Level. If I use moving avg option in Calculation tab, It is working till the end of the report not breaking at Sector level.  If I use exception aggregation, its not working and also that will calculate only Avg not a moving avg.
    So how to get avg inventory and Ratio values.
    If you give me solution in workbook also ..it ll be fine ..
    Thanks,
    _R

    Create one original query
    and another view of the original query with the navigation state for sector level.
    If you embed both in workbook, will it be OK?
    The roundabout is bit cumbersome. You need to go for table interface or macros.

  • OEL yum repo problem installing openssl-devel

    Hi
    When i try to install openssl-devel i get errors. anyone can help? look:
    [root@portal nginx]# yum install openssl-devel
    Loaded plugins: security
    Setting up Install Process
    Resolving Dependencies
    --> Running transaction check
    ---> Package openssl-devel.i386 0:0.9.8e-7.el5 set to be updated
    --> Processing Dependency: openssl = 0.9.8e-7.el5 for package: openssl-devel
    --> Processing Dependency: krb5-devel for package: openssl-devel
    --> Running transaction check
    ---> Package krb5-devel.i386 0:1.6.1-31.el5 set to be updated
    --> Processing Dependency: krb5-libs = 1.6.1-31.el5 for package: krb5-devel
    --> Processing Dependency: libselinux-devel for package: krb5-devel
    --> Processing Dependency: keyutils-libs-devel for package: krb5-devel
    --> Processing Dependency: e2fsprogs-devel for package: krb5-devel
    ---> Package openssl-devel.i386 0:0.9.8e-7.el5 set to be updated
    --> Processing Dependency: openssl = 0.9.8e-7.el5 for package: openssl-devel
    --> Running transaction check
    ---> Package e2fsprogs-devel.i386 0:1.39-20.el5 set to be updated
    --> Processing Dependency: e2fsprogs-libs = 1.39-20.el5 for package: e2fsprogs-devel
    ---> Package keyutils-libs-devel.i386 0:1.2-1.el5 set to be updated
    ---> Package krb5-devel.i386 0:1.6.1-31.el5 set to be updated
    --> Processing Dependency: krb5-libs = 1.6.1-31.el5 for package: krb5-devel
    ---> Package libselinux-devel.i386 0:1.33.4-5.1.el5 set to be updated
    --> Processing Dependency: libselinux = 1.33.4-5.1.el5 for package: libselinux-devel
    --> Processing Dependency: libsepol-devel >= 1.15.2-1 for package: libselinux-devel
    ---> Package openssl-devel.i386 0:0.9.8e-7.el5 set to be updated
    --> Processing Dependency: openssl = 0.9.8e-7.el5 for package: openssl-devel
    --> Running transaction check
    ---> Package e2fsprogs-devel.i386 0:1.39-20.el5 set to be updated
    --> Processing Dependency: e2fsprogs-libs = 1.39-20.el5 for package: e2fsprogs-devel
    ---> Package krb5-devel.i386 0:1.6.1-31.el5 set to be updated
    --> Processing Dependency: krb5-libs = 1.6.1-31.el5 for package: krb5-devel
    ---> Package libselinux-devel.i386 0:1.33.4-5.1.el5 set to be updated
    --> Processing Dependency: libselinux = 1.33.4-5.1.el5 for package: libselinux-devel
    ---> Package libsepol-devel.i386 0:1.15.2-1.el5 set to be updated
    --> Processing Dependency: libsepol = 1.15.2-1.el5 for package: libsepol-devel
    ---> Package openssl-devel.i386 0:0.9.8e-7.el5 set to be updated
    --> Processing Dependency: openssl = 0.9.8e-7.el5 for package: openssl-devel
    --> Finished Dependency Resolution
    krb5-devel-1.6.1-31.el5.i386 from el5_u3_base has depsolving problems
    --> Missing Dependency: krb5-libs = 1.6.1-31.el5 is needed by package krb5-devel-1.6.1-31.el5.i386 (el5_u3_base)
    libselinux-devel-1.33.4-5.1.el5.i386 from el5_u3_base has depsolving problems
    --> Missing Dependency: libselinux = 1.33.4-5.1.el5 is needed by package libselinux-devel-1.33.4-5.1.el5.i386 (el5_u3_base)
    openssl-devel-0.9.8e-7.el5.i386 from el5_u3_base has depsolving problems
    --> Missing Dependency: openssl = 0.9.8e-7.el5 is needed by package openssl-devel-0.9.8e-7.el5.i386 (el5_u3_base)
    e2fsprogs-devel-1.39-20.el5.i386 from el5_u3_base has depsolving problems
    --> Missing Dependency: e2fsprogs-libs = 1.39-20.el5 is needed by package e2fsprogs-devel-1.39-20.el5.i386 (el5_u3_base)
    libsepol-devel-1.15.2-1.el5.i386 from el5_u3_base has depsolving problems
    --> Missing Dependency: libsepol = 1.15.2-1.el5 is needed by package libsepol-devel-1.15.2-1.el5.i386 (el5_u3_base)
    Error: Missing Dependency: openssl = 0.9.8e-7.el5 is needed by package openssl-devel-0.9.8e-7.el5.i386 (el5_u3_base)
    Error: Missing Dependency: e2fsprogs-libs = 1.39-20.el5 is needed by package e2fsprogs-devel-1.39-20.el5.i386 (el5_u3_base)
    Error: Missing Dependency: libsepol = 1.15.2-1.el5 is needed by package libsepol-devel-1.15.2-1.el5.i386 (el5_u3_base)
    Error: Missing Dependency: libselinux = 1.33.4-5.1.el5 is needed by package libselinux-devel-1.33.4-5.1.el5.i386 (el5_u3_base)
    Error: Missing Dependency: krb5-libs = 1.6.1-31.el5 is needed by package krb5-devel-1.6.1-31.el5.i386 (el5_u3_base)
    You could try using --skip-broken to work around the problem
    You could try running: package-cleanup --problems
    package-cleanup --dupes
    rpm -Va nofiles nodigest
    Regards
    Ricardo

    [root@portal ~]# cat /etc/yum.repos.d/public-yum-el5.repo
    [el5_ga_base]
    name=Enterprise Linux $releasever GA - $basearch - base
    baseurl=http://public-yum.oracle.com/repo/EnterpriseLinux/EL5/0/base/$basearch/
    gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-el5
    gpgcheck=1
    enabled=0
    [el5_u1_base]
    name=Enterprise Linux $releasever U1 - $basearch - base
    baseurl=http://public-yum.oracle.com/repo/EnterpriseLinux/EL5/1/base/$basearch/
    gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-el5
    gpgcheck=1
    enabled=0
    [el5_u2_base]
    name=Enterprise Linux $releasever U2 - $basearch - base
    baseurl=http://public-yum.oracle.com/repo/EnterpriseLinux/EL5/2/base/$basearch/
    gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-el5
    gpgcheck=1
    enabled=0
    [el5_u3_base]
    name=Enterprise Linux $releasever U3 - $basearch - base
    baseurl=http://public-yum.oracle.com/repo/EnterpriseLinux/EL5/3/base/$basearch/
    gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-el5
    gpgcheck=1
    enabled=1
    [el5_addons]
    name=Enterprise Linux $releasever - $basearch - addons
    baseurl=http://public-yum.oracle.com/repo/EnterpriseLinux/EL5/addons/$basearch/
    gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-el5
    gpgcheck=1
    enabled=0
    [el5_oracle_addons]
    name=Enterprise Linux $releasever - $basearch - oracle_addons
    baseurl=http://public-yum.oracle.com/repo/EnterpriseLinux/EL5/oracle_addons/$basearch/
    gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-el5
    gpgcheck=1
    enabled=0
    [root@portal ~]#

Maybe you are looking for

  • Jbo.server.internal_connection

    Hi Gurus, Can anybody tell me where can i find jbo.server.internal_connection property in JDeveloper ? I'm trying to run the Business Component,i'm getting error like "Error Message: JBO-28030: Could not insert row into table PS_TXN, collection id 21

  • Changing default values in Drop Shadow

    When using Drop Shadow in the Motion tab of the viewer I find that I never have used the default settings of the Offset or the Opacity. Seems like there must be a way to change these settings permanently so they come up to some more convenient settin

  • IMac 24" - I m lovin' it !

    just got my imac 24 yesterday. changed the config to 2.33 ghz c2d, 256 mb graphic card, 500 gb hdd. awesome machine. everything seems to work just fine and at amazing speeds. did boot camp, parallels. didnt see windows work so fast in my previous pc

  • How to make my VI acquire faster

    I have a data acquisition VI running on a RT PXI controller.  I'm trying to get 1ms loop times on it.  So far I have analog inputs and analog outputs running.  It seems to have no late iterations for about 12 or 13 seconds and then all of sudden it s

  • Anyone know how it works to have multiple websites on iweb?  I would like to make a separate one from the one I'm using now and have them both up and running

    Does anyone know how it works to create more than one site on iweb - I have my primary site and mobile me connected to my domain name for that site, but now I'd like to add a completely different site and domain name.