Reoder point calculation don't give the expected result

Dear friends,
We are using CBP to set reorder point (MRP type is VM).
We've set the planned delivery time, on MRP2 view, as 120 days.
When we run the forecast, the calculated basic value gives the expected
result, but the reorder point don't.
As we've set Planned delivery time as 120 days, we expect that the
reorder point is "basic value"*4 (4 is the result 120/30). But the result
of the reorder point is is greater (aprox. "basic value"*4,5).
Can you please give me a help on this matter?
Many thanks,
Afonso Pereira

you may get your expected result if you would use VB instead of VM.
Manual Reorder Point Planning
In manual reorder point planning, you define both the reorder level and the safety stock level manually in the appropriate material master.
Automatic Reorder Point Planning
In automatic reorder point planning, both the reorder level and the safety stock level are determined by the integrated forecasting program.
The system uses past consumption data (historical data) to forecast future requirements. The system then uses these forecast values to calculate the reorder level and the safety stock level, taking the service level, which is specified by the MRP controller, and the material's replenishment lead time into account, and transfers them to the material master.
Since the forecast is carried out at regular intervals, the reorder level and the safety stock level are continually adapted to the current consumption and delivery situation. This means that a contribution is made towards keeping stock levels low.

Similar Messages

  • Safari is slowly getting more buggy.  Actions, such as clicking on a field, don't give the expected results.  I may have to click on the red exit button 5 times to get it to work.  I get unwanted dropdown menus.  I have version 5.1.7 on OS 10.6.8

    Safari is slowly getting more buggy.  Actions, such as clicking on a field, don't give the expected results.  I may have to click on the red exit button 5 times to get it to work.  I get unwanted dropdown menus.  I have version 5.1.7 on OS 10.6.8.  System is 3 years old.

    Are you running low on RAM..?
    see > Using Activity Monitor
    Is your Hard Drive getting full...?
    see > Freeing space on your Mac OS X startup disk
    Have you tried Repair Disk Permissions after upgrading Safari...?
    see > About Disk Utility's Repair Disk Permissions feature
    Reset Safari...?

  • Hi, dear Sirs! I'd like to suggest this: as I installed 4 Airport Extreme Units in my apartment connected to Powered loudspeakers, why don't give the choice to send streaming data to all the units so I can hear music trough each unit? Thank you, V M

    Hi, dear Sirs!
    I'd like to suggest this: as I installed in my apartment  N° 4 Airport Extreme Units each one connected to Powered loudspeakers, why don't give the choice to send streaming data to all the units so it is possible to hear music trough each unit?
    Thank you,
    Valerio Maioli

    Dear tzbikowski
    really many thanks for your prompt and right reply.
    I didn't know it, but I found in iTunes popup, not only you can adjust the volume of each unit too!
    But, I have another question, sorry:
    This facility is on Safari Mountain Lion SW, but is it on iOS 6.01 or 5.1.1 as in my iPad ?
    Valerio

  • DIO Pass or Fail Tests: LabVIEW would have to determine the expected result or results (1 or 2 of a possible 25) based on the output pattern send out (1 of 65K).

    I am trying to come up with a plan to write a LabVIEW VI to do the following test. Can you give me a few ideas how to do this in LabVIEW. I am a new to LabView. I think I how to read and write I/O ports and do comparisons. I need a little guidance on the error checking. In simple terms the test will go like this:
    I have 16 digital inputs and 16 outputs.
    The 16 outputs are turned on in a specific pattern (i.e. 1001000101011101) and then the 16 inputs (i.e. 1000101111111111) are read in after a time delay. The inputs are checked to see if they match the expected results. If they do it's a pass if not it's a f
    ailure. This seems pretty straightforward. And I think I have an idea how to do it. Here's the problem. The inputs are changed sequentially so that all possible combinations are tried. The test needs to determine if the resulting input pattern is correct based on the outputs that were sent out. 16 outputs give 65K possible tests. For each tests there would be 1 or 2 possible results with a total of 25 results for the entire 65K possible tests. LabVIEW would have to determine the expected result or results (1 or 2 of the 25) based on the output pattern send out (1 of 65K). Then it would have to compare the actual input pattern received to see if it's a pass or fail?
    Any ideas how I can approach this?

    The 16 outputs are simulating inputs to the device under test, (simulating remote switches and contacts). The object of the test is to test every possible combination to ensure that nothing unexpected happens at the output. The device under test is a logic motor control system and we want to make sure (among other things) that we don’t start or stop the motor when its not suppose to. How can only two tests do that?
    I think you are describing how to create an array with the results. But I still don’t know how to determine what the result should be and if it is correct.
    I’ve identified 25 possible valid states the motor controller can be in.
    I’ve also identified the correct outputs that determine each of the 25 states.
    I’ve also
    identified the possible valid states you can go to from each (previous) state, You can only get to a valid new state from a previous state if the right combination of inputs is applied (we hope).
    If you know what state you are in when start and you know the valid states you can go to and the inputs required to get there, you should be able test the system against that. You verify this by checking the outputs against what they should be. With 65K possible inputs combination, checking them all manually would be quite is a task. Putting this into LabView is my task.

  • Unable to get the expected results with connection pooling

    Hi All,
    I have been trying to create JDBC connection pooling provided by the Apache Tomcat 4.0 with MySQL 4.0.16-nt at http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-howto.html and my configuration is as follows
    server.xml
    <Context path="/DBTest" docBase="DBTest"
    debug="5" reloadable="true" crossContext="true">
    <Logger className="org.apache.catalina.logger.FileLogger"
    prefix="localhost_DBTest_log." suffix=".txt"
    timestamp="true"/>
    <Resource name="jdbc/TestDB"
    auth="Container"
    type="javax.sql.DataSource"/>
    <ResourceParams name="jdbc/TestDB">
    <parameter>
    <name>factory</name>
    <value>org.apache.commons.dbcp.BasicDataSourceFactory</value>
    </parameter>
    <!-- Maximum number of dB connections in pool. Make sure you
    configure your mysqld max_connections large enough to handle
    all of your db connections. Set to 0 for no limit.
    -->
    <parameter>
    <name>maxActive</name>
    <value>100</value>
    </parameter>
    <!-- Maximum number of idle dB connections to retain in pool.
    Set to 0 for no limit.
    -->
    <parameter>
    <name>maxIdle</name>
    <value>30</value>
    </parameter>
    <!-- Maximum time to wait for a dB connection to become available
    in ms, in this example 10 seconds. An Exception is thrown if
    this timeout is exceeded. Set to -1 to wait indefinitely.
    -->
    <parameter>
    <name>maxWait</name>
    <value>10000</value>
    </parameter>
    <!-- MySQL dB username and password for dB connections -->
    <parameter>
    <name>username</name>
    <value>javauser</value>
    </parameter>
    <parameter>
    <name>password</name>
    <value>javadude</value>
    </parameter>
    <!-- Class name for mm.mysql JDBC driver -->
    <parameter>
    <name>driverClassName</name>
    <value>org.gjt.mm.mysql.Driver</value>
    </parameter>
    <!-- The JDBC connection url for connecting to your MySQL dB.
    The autoReconnect=true argument to the url makes sure that the
    mm.mysql JDBC Driver will automatically reconnect if mysqld closed the
    connection. mysqld by default closes idle connections after 8 hours.
    -->
    <parameter>
    <name>url</name>
    <value>jdbc:mysql://localhost:3306/javatest?autoReconnect=true</value>
    </parameter>
    </ResourceParams>
    </Context>
    web.xml
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app PUBLIC
    "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
    <description>MySQL Test App</description>
    <resource-ref>
    <description>DB Connection</description>
    <res-ref-name>jdbc/TestDB</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    </web-app>
    test.jsp
    <jsp:useBean id="foo" class="foo.DBTest" scope="page" />
    <html>
    <head>
    <title>DB Test</title>
    </head>
    <body>
    <%
    foo.DBTest tst = new foo.DBTest();
    tst.init();
    %>
    <h2>Results</h2>
    Foo <%= tst.getFoo() %>
    Bar <%= tst.getBar() %>
    </body>
    </html>
    DBTest.java package
    package foo;
    import javax.naming.*;
    import javax.sql.*;
    import java.sql.*;
    public class DBTest {
    String foo = "Not Connected";
    int bar = -1;
    public void init() {
    try{
    Context ctx = new InitialContext();
    if(ctx == null )
    throw new Exception("Boom - No Context");
    DataSource ds =
    (DataSource)ctx.lookup(
    "java:comp/env/jdbc/TestDB");
    if (ds != null) {
    Connection conn = ds.getConnection();
    if(conn != null) {
    foo = "Got Connection "+conn.toString();
    Statement stmt = conn.createStatement();
    ResultSet rst =
    stmt.executeQuery(
    "select id, foo, bar from testdata");
    if(rst.next()) {
    foo=rst.getString(2);
    bar=rst.getInt(3);
    conn.close();
    }catch(Exception e) {
    e.printStackTrace();
    public String getFoo() { return foo; }
    public int getBar() { return bar;}
    Now when I am trying to run this on browser, everything goes fine except it doesn't show the expected results, instead of that it shows following in the browser:-
    Results
    Foo Not Connected
    Bar -1
    Can anybody help me out as to why I am getting such result while everything is right from my side. Is the program unable to connect to the database or it is not supporting the JDBC version that I am using.
    Thanks in advance
    Regards
    Vikas

    Oh, I think this is not the right place to post this message. I have placed the same in other place of this forum. please ignore this post here!!
    MJ, by the way the link that you suggested is not useful to me.
    Thank you

  • Microsoft Test Manager 2010(I am trying to add a link, so the link will appear in the expected results)

    Hi,
    In Microsoft Test Manager I am trying to add a link in the expected reults tab, so the person testing the test case can click on the link without closing down anything. I am able to add the link in the expected results area, but there is no hyperlink coming
    up, so the tester would have to copy and paste it. Is there a way around this?
    PS. Sorry if this is in the wrong category, I did not see Test Manager.
    Thanks,
    Steve

    Hi Steve,
    This forum is for software developers who are using the Open Specification documentation to assist them in developing systems, services, and applications that are interoperable with Microsoft products. The Open Specifications can be found at:
    http://msdn.microsoft.com/en-us/library/cc203350(PROT.10).aspx. Since your post does not appear to be related to the Open Specification documentation set, we would appreciate it if
    you could try to post your question in a more relevant forum. Thank you.
    Testing with Visual Studio Test Manager (MTM)
    https://social.msdn.microsoft.com/Forums/en-US/home?forum=vsmantest&filter=alltypes&sort=lastpostdesc
    Josh Curry (jcurry) | Escalation Engineer | Open Specifications Support Team

  • Cannot trust calculator 50g to give the right answer

    50G gives the wrong answers:
    Pick equation from Library:  APPS; Equation Library, F1, F1, Plane Geometry, Rectangle, F1, enter number for b and h, solve for A. ( Lets go with b=6, h=2, and A will become 12). So far so good.
    Now R-Shift NUM.SLV; pick Solve Equation, Leave A the way it is, and change for example b, and solve for h.
    Do that a couple of times sooner or later you will get Following:
    A=12_cm sq
    b=3_cm
    h=3.99999999999_cm
    You have a 50-50 chance of getting the right answer or something ending with .0000000001 or.99999999998 or whatever.
    Deleting variables doesn't change much.
    I have duplicated this on other 50G's, all running latest ROM.
    Anyone has a solution?
    Thanks

    wolven wrote:
    There is the right answer and there is the HP answer, that's as simple as that.
    One would think that a calculator could do a job of an 8 year old.
    Unfortunately 50g fails to do that in terms of speed and accuracy.
    The HP-50g is correct  considering the constraints of a 12-digit machine.
    I would like to encourage you to expand your understanding of numerical computations.
    I would suggest you read material for example by Prof. W. Kahan.
    Start with: A logarithm too clever by half
    Now some calculators may seem to find the exact solution, but do they really? See the following on rounding:
    http://www.cs.berkeley.edu/~wkahan/Mindless.pdf
    (a shorter presentation on the subject: http://www.cs.berkeley.edu/~wkahan/Mind1ess.pdf )
    If, after reading the above and doing some more research, you have more questions - please feel free to ask.
    If you wish to have more accuracy, I could point you to programs that can help increase the accuracy of the 50g.
    Kind regards.
    Note: I do not work for HP, I just like playing with calculators :-)

  • Distinct Count doesn't return the expected results

    Hi All,
    I was fighting a little trying to implement a Distinct Count measure over an account dimension in my cube. I read a couple of posts relateed to that and I followed the steps posted by the experts.
    I could process the cube but the results I'm getting are not correct. The cube is returning a higher value compared to the correct one calculated directly from the fact table.
    Here are the details:
    Query of my fact table:
    select distinct cxd_account_id,
              contactable_email_flag,
              case when recency_date>current_date-365 then '0-12' else '13-24' end RECENCY_DATE_ROLLUP,
              1 QTY_ACCNT
    from cx_bi_reporting.cxd_contacts
    where cxd_account_id<>-1 and recency_date >current_date-730;
    I have the following dimensions:
         Account (with 3 different hierarchies)
         Contactable Email Flag (Just 3 values, Y, N, Unknown)
         Recency_date (Just dimension members)
    All dimensions are sparse and the cube is a compressed one. I defined "MAXIMUM" as aggregate for Contactable Email flag and Recency date and at the end, SUM over Account.
    I saw that there is a patch to fix an issue when different aggregation rules are implemented in a compressed cube and I asked the DBA folks to apply it. They told me that the patch cannot be applied because we have an advanced version already installed (Patch 11.2.0.1 ).
    These are the details of what we have installed:
          OLAP Analytic Workspace       11.2.0.3.0 VALID
          Oracle OLAP API 11.2.0.3.0 VALID
          OLAP Catalog 11.2.0.3.0 VALID
    Is there any other patch that needs to be applied to fix this issue? Or it's already included in the version we have installed (11.2.0.3.0)?
    Is there something wrong in the definition of my fact table and that's why I'm not getting the right results?
    Any help will be really appreciated!
    Thanks in advance,
    Martín

    Not sure I would have designed the dimensions /cubes as you,  but there is another method you can obtain distinct counts.
    Basically relies on using basic OLAP DML Expression language and can be put in a Calculated Measure, or can create two Calculated measures
    to contain each specific result.  I use this method to calculate distinct counts when I want to calculate averages, etc ...
    IF account_id ne -1 and (recency_date GT today-365) THEN -
    CONVERT(NUMLINES(UNIQUELINES(CHARLIST(Recency_date))) INTEGER)-
    ELSE IF account_id ne -1 and (recency_date GT today-730 and recency_date LE today-365) THEN -  
    CONVERT(NUMLINES(UNIQUELINES(CHARLIST(Recency_date))) INTEGER)-
    ELSE NA
    This exact code may not work in your case, but think you can get the gist of the process involved.
    This assumes the aggregation operators are set to the default (Sum), but may work with how you have them set.
    Regards,
    Michael Cooper

  • Why is my zero order hold not giving the expected result?

    I am trying to replicate the functionality of the Discrete Order Hold Function so that I can use it without having to have a ''Control and Simulation Loop''. The attachment desiredresult.vi shows an example of the Discrete Order Hold Function inside the ''Control and Simulation Loop''. The other attachment (zeroorderholdquestion.vi) shows my attempt at achieving the same result. I multiplied the while loop index by the sampling period to get the array index for the resampled y-output. I based this on my understanding of the formula for Discrete Order Hold given under http://zone.ni.com/reference/en-XX/help/371894G-01/lvsim/sim_dzoh/#details.
    However, I am having difficulty getting the frequency of the waveforms before and after resampling to match up. (See attachment for clarity on what I mean by this). Any suggestions on what I am doing wrong?
    Solved!
    Go to Solution.
    Attachments:
    zeroorderholdquestion.vi ‏207 KB
    desiredresult.vi ‏244 KB

    here i wrote something maybe similar to simulate a multi channel, mux, sample and hold with cross talk
    http://forums.ni.com/t5/LabVIEW/How-can-I-create-and-sample-and-hold-circuit-in-Labview/m-p/2407256#...
    If samplerate and hold time have a clean ratio  you just need the decimate vi
    another simple version:
    Greetings from Germany
    Henrik
    LV since v3.1
    “ground” is a convenient fantasy
    '˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'

  • EsbReport() don't give the "#NOACCESS" informations

    When I send a report thru the EsbReport API (with VBA), everything is OK, but where there should be "#NOACCESS" values the result says "#MISSING" (and where there should be "#MISSING" it says "#MISSING")... It's a probleme to me because I want to use this function to test which parts of the database the user is allowed to access...Is it a bug ?Same thing happens when I do it with QueryDesigner and Excel... I have to lauch another "retrieve" to correct the wrong "#MISSING"Mat

    I'm not aware of any bug that would cause this kind of behaviour. My first thought was that security was not being set properly but your comment about Excel doing the same is very curious. The default no access label is #NOACCESS. Is it possible that in your VBA script you've accidently set the noaccess label to be #Missing instead of the #Missing label as they're very close. The Missing Data text can be set w/ EssVSetOption #9 The No Access text can be set w/ EssVSetOption #19 If this doesn't resolve your question feel free to contact me directly or place more information on the thread.========================================When I send a report thru the EsbReport API (with VBA), everything is OK, but where there should be "#NOACCESS" values the result says "#MISSING" (and where there should be "#MISSING" it says "#MISSING")... It's a probleme to me because I want to use this function to test which parts of the database the user is allowed to access... Is it a bug ? Same thing happens when I do it with QueryDesigner and Excel... I have to lauch another "retrieve" to correct the wrong "#MISSING" Mat

  • Why Data Services Validation doesn't give the right result in XML?

    Hi,
    I am struggling with a dataflow that contains the following:
    - an Excel as source
    - a validation transform that check a specific value in one of the excel columns. If the value is equal, the record goes to the pass path and if not, it goes to fail path
    - a simple query on the pass path with a row_gen that selects all passed records and send it to an XML file (using XML target)
    - a CSV target file on the fail path that gets the failed record from the validation
    The result is unexpected: both files contain the failed records.
    Now, if you modify slightly the dataflow and add another pass path to the validation, which has a CSV file as target, suddenly, the result is what you would expect:
    - The XML file on the 1st pass path (with the query) now contains the successful records
    - The CSV file on the 2nd pass path contains the successful records as well
    - The CSV file on the fail path contains the failed records
    If you create a dataflow that doesn't have an XLM file as a target, this issue doesn't seem to happen. I have made several examples with datastore and with CSV files. Somehow it seems there is something happening wrongly when the only target for a validation path (pass or fail) is an XML file.
    I can send the ATL for both examples above
    Could someone help me understand if I do something wrong OR if there is indeed a bug that should be addressed?
    Thanks a lot!
    Isabelle

    Hi Manoj,
    Thanks for quick reply!
    To answer your questions:
    - in the validation transform what is the value of Action on failure option - send to fail, send to pass or both ?
       send to fail only
    - is delete and recreate option checked for the target xml file ?
      yes
    - how many rows do you see in monitor log for pass and fail ?
       In the 1st dataflow, the monitor show the following where the pass number is 26!
    Path name State Row Count Elapsed time (Sec) Absolute time (Sec)
    DFW_TransformationUsingValidation_5/SpinFormat_1 STOP 28 0.047 0.699
    /DFW_TransformationUsingValidation_5/Validation STOP 28 0.000 0.699
    /DFW_TransformationUsingValidation_5/Split STOP 26 0.000 0.699
    -DFW_TransformationUsingValidation_5/FailValidation_TransformationUsingValidation_5.csv STOP 26 0.000 0.699
    /DFW_TransformationUsingValidation_5/Row_Generation STOP 1 0.000 0.699
    /DFW_TransformationUsingValidation_5/CacheSplit STOP 26 0.000 0.699
    /DFW_TransformationUsingValidation_5/CacheSplitMemoryReader STOP 26 0.000 0.699
    /DFW_TransformationUsingValidation_5/Validation_Pass_1 STOP 26 0.000 0.699
    /DFW_TransformationUsingValidation_5/Query-Nest1: 0 STOP 1 0.047 0.699
    /DFW_TransformationUsingValidation_5/Query-Nest1: 1 STOP 26 0.000 0.699
    /DFW_TransformationUsingValidation_5/Query STOP 1 0.000 0.699
    -DFW_TransformationUsingValidation_5/GUID::'5e0a492d-1452-4e0b-be37-758c2249b7a4' LOAD MESSAGE PassXM STOP 1 0.000 0.699
    In the 2nd dataflow, just by adding another pass path filling a CSV file, the number of pass records is 2:
    DFW_TransformationUsingValidation_5/SpinFormat_1 STOP 28 0.047 0.689
    /DFW_TransformationUsingValidation_5/Validation STOP 28 0.000 0.689
    /DFW_TransformationUsingValidation_5/Split STOP 2 0.000 0.689
    -DFW_TransformationUsingValidation_5/PassValidation_TransformationUsingValidation_5.csv STOP 2 0.000 0.705
    -DFW_TransformationUsingValidation_5/FailValidation_TransformationUsingValidation_5.csv STOP 26 0.000 0.705
    /DFW_TransformationUsingValidation_5/Row_Generation STOP 1 0.000 0.705
    /DFW_TransformationUsingValidation_5/CacheSplit STOP 2 0.000 0.705
    /DFW_TransformationUsingValidation_5/CacheSplitMemoryReader STOP 2 0.000 0.705
    /DFW_TransformationUsingValidation_5/Validation_Pass_1 STOP 2 0.000 0.705
    /DFW_TransformationUsingValidation_5/Query-Nest1: 0 STOP 1 0.047 0.705
    /DFW_TransformationUsingValidation_5/Query-Nest1: 1 STOP 2 0.000 0.705
    /DFW_TransformationUsingValidation_5/Query STOP 1 0.000 0.705
    -DFW_TransformationUsingValidation_5/GUID::'5e0a492d-1452-4e0b-be37-758c2249b7a4' LOAD MESSAGE PassXM STOP 1 0.000 0.705
    Edited by: Isabelle Thore on Oct 8, 2010 6:53 AM
    Edited by: Isabelle Thore on Oct 8, 2010 6:54 AM
    Edited by: Isabelle Thore on Oct 8, 2010 6:55 AM

  • I run this query to get  the result like below, but even though my query is running fine I dont get the expected result.

    I am looking for only column compare for making my target table same as source table.
    My query:
    select case when column_name_s is null and column_name_t is not null
                then 'alter table GRADE_CONVERSION drop ' || column_name_t || ';'
                when column_name_s is not null and column_name_t is null
                then 'alter table GRADE_CONVERSION add ' || column_name_s || ' ' || data_type_s ||';'
                else 'alter table GRADE_CONVERSION modify ' || column_name_t || ' ' || data_type_t ||';'
           end alterations
      from (select s.column_name column_name_s,t.column_name column_name_t,
                   s.data_type data_type_s,t.data_type data_type_t
              from (select column_id,column_name,data_type
                      from all_tab_cols@database
                     where owner = 'erhan'
                       and table_name = 'GRADE_CONVERSION'
                   ) s
                   full outer join
                   (select column_id,column_name,data_type
                      from all_tab_cols@database
                     where owner = 'sarigul'
                       and table_name = 'GRADE_CONVERSION'
                   ) t
                on s.column_name = t.column_name
    Tables:
    Target table:         GRADE_CONVERSION table in sarigul@database
    LETTER_GRADE
    VARCHAR2(2)
    GRADE_POINT
    NUMBER(3,2)
    MAX_GRADE
    NUMBER(3)
    MIN_GRADE
    NUMBER(3)
    Source table:       GRADE_CONVERSION table in erhan@database
    LETTER_GRADE
    VARCHAR2(2)
    GRADE_POINT
    NUMBER(3,2)
    MAX_GRADE
    NUMBER(3)
    MIN_GRADE
    NUMBER(3)
    CREATED_BY
    VARCHAR2(30)
    CREATED_DATE
    DATE
    MODIFIED_BY
    VARCHAR2(30)
    MODIFIED_DATE
    DATE
    want to see the result similar to this *(please ignore the column names here this is just a plain exemple:)
    Alter table Target_table modify BOOK_ID Varchar2 (4);
    Alter table Target_table add ISBN_10 Varchar2(13), null;
    Alter table Target_table drop TITLE;

    I am looking for only column compare for making my target table same as source table.
    My query:
    select case when column_name_s is null and column_name_t is not null
                then 'alter table GRADE_CONVERSION drop ' || column_name_t || ';'
                when column_name_s is not null and column_name_t is null
                then 'alter table GRADE_CONVERSION add ' || column_name_s || ' ' || data_type_s ||';'
                else 'alter table GRADE_CONVERSION modify ' || column_name_t || ' ' || data_type_t ||';'
           end alterations
      from (select s.column_name column_name_s,t.column_name column_name_t,
                   s.data_type data_type_s,t.data_type data_type_t
              from (select column_id,column_name,data_type
                      from all_tab_cols@database
                     where owner = 'erhan'
                       and table_name = 'GRADE_CONVERSION'
                   ) s
                   full outer join
                   (select column_id,column_name,data_type
                      from all_tab_cols@database
                     where owner = 'sarigul'
                       and table_name = 'GRADE_CONVERSION'
                   ) t
                on s.column_name = t.column_name
    Tables:
    Target table:         GRADE_CONVERSION table in sarigul@database
    LETTER_GRADE
    VARCHAR2(2)
    GRADE_POINT
    NUMBER(3,2)
    MAX_GRADE
    NUMBER(3)
    MIN_GRADE
    NUMBER(3)
    Source table:       GRADE_CONVERSION table in erhan@database
    LETTER_GRADE
    VARCHAR2(2)
    GRADE_POINT
    NUMBER(3,2)
    MAX_GRADE
    NUMBER(3)
    MIN_GRADE
    NUMBER(3)
    CREATED_BY
    VARCHAR2(30)
    CREATED_DATE
    DATE
    MODIFIED_BY
    VARCHAR2(30)
    MODIFIED_DATE
    DATE
    want to see the result similar to this *(please ignore the column names here this is just a plain exemple:)
    Alter table Target_table modify BOOK_ID Varchar2 (4);
    Alter table Target_table add ISBN_10 Varchar2(13), null;
    Alter table Target_table drop TITLE;

  • Demo program in tutorial can't give out expected result

    I run DataIODemo.java from java tutorial
    The output file has below content
    @3�p��
    =           J a v a T - s h i r t
    @#��G�{                J a v a   M u g
    @/��G�{        
         D u k e J u g g l i n g D o l l s
    @���Q�           J a v a P i n
    @���\(�      2      J a v a K e y C h a i n
    It seems the program can't read long type values
    Plz help
    Below is the program's script
    import java.io.*;
    import java.lang.*;
    public class iodemo {
    public static void main(String[] args) throws IOException {
    // write the data out
    DataOutputStream out = new DataOutputStream(new
                        FileOutputStream("c:/numout.txt"));
    double[] prices = { 19.99, 9.99, 15.99, 3.99, 4.99 };
    int[] units = { 12, 8, 13, 29, 50 };
    String[] descs = { "Java T-shirt",
                   "Java Mug",
                   "Duke Juggling Dolls",
                   "Java Pin",
                   "Java Key Chain" };
    for (int i = 0; i < prices.length; i ++) {
    out.writeDouble(prices);
    out.writeChar('\t');
    out.writeInt(units[i]);
    out.writeChar('\t');
    out.writeChars(descs[i]);
    out.writeChar('\n');
    out.close();
    // read it in again
    DataInputStream in = new DataInputStream(new
                        FileInputStream("c:/numout.txt"));
    double price;
    int unit;
    StringBuffer desc;
    double total = 0.0;
    try {
    while (true) {
    price = in.readDouble();
                        System.out.println(price);
    in.readChar(); // throws out the tab
    unit = in.readInt();
    in.readChar(); // throws out the tab
              char chr;
              desc = new StringBuffer(20);
              char lineSep = System.getProperty("line.separator").charAt(0);
              while ((chr = in.readChar()) != lineSep)
              desc.append(chr);
    System.out.println("You've ordered " +
                        unit + " units of " +
                        desc + " at $" + price);
    total = total + unit * price;
    } catch (EOFException e) {
    System.out.println("For a TOTAL of: $" + total);
    in.close();

    Try this,import java.io.*;
    import java.lang.*;
    import java.util.StringTokenizer;
    public class iodemo {
         public static void main(String[] args) throws IOException {
              RandomAccessFile out = new RandomAccessFile("c:/test/numout.txt","rw");
              double[] prices = { 19.99, 9.99, 15.99, 3.99, 4.99 };
              int[] units = { 12, 8, 13, 29, 50 };
              String[] descs = { "Java T-shirt","Java Mug",
                                  "Duke Juggling Dolls","Java Pin","Java Key Chain" };
              for (int i = 0; i < prices.length; i ++) {
                   out.writeBytes(prices[i]+"\t");
                   out.writeBytes(units[i]+"\t");
                   out.writeBytes(descs[i]+"\n");
              out.close();
              // read it in again
              RandomAccessFile in = new RandomAccessFile("c:/test/numout.txt","r");
              double price;
              int unit;
              String desc;
              double total = 0.0;
              String line="";
              try {
                   while ((line=in.readLine())!=null) {
                        StringTokenizer st = new StringTokenizer(line,"\t");
                        price = Double.parseDouble(st.nextToken());
                        unit = Integer.parseInt(st.nextToken());
                        desc = st.nextToken();
                        System.out.println("You've ordered " + unit + " units of " +
                             desc + " at $" + price);
                        total = total + unit * price;
              } catch (EOFException e) {
              System.out.println("For a TOTAL of: $" + total);
              in.close();
    }Sudha

  • Have tried to open my itunes and the message given states that itunes can not be opened due to missing files.  Please reinstall itunes. Repeated attempts to reinstall give the same result...any ideas?

    Have tried to open my existing itunes but it states that it can not be opened due to missing files...please reinstall itunes. Repeated attempts to reinstall are to no avail....any ideas?

    I assume you are talking about iTunes on your computer, if so, you will have to remove all Apple programs associated with iTunes:
        iTunes,  QuickTime, Apple Software Update, Apple Mobile Device Support, Bonjour and Apple Application Support (iTunes 9 or later)
    Make sure everything that is by Apple is removed including Safari. You can sort by "Publisher", when you uninstall programs.  Make sure you have at least one other web browser (like Firefox or Internet Explorer) before removing Safari. That way you can go back to the Apple web site and redownload iTunes later.
    Reboot the computer then reinstall iTunes.  Everything should work normally.

  • Introducing a custom Password policy to expire passwords. odsee 11g - what are the expected results

    We have left the default Password Policy untouched. As a default password aging is off. Our DS compatibility mode is now DS6 so we can add Password Policies with max age!
    Some users need to have their passwords changed regularly due to political reasons.
    We have introduced a custom Password Policy which has a pwd_Max_age value of 180 days and allows the user to Change Password. Entry is cn=Custom Pwd Policy for ABC,dc=mycorp,dc=com
    Ok. Now we get confused by the behaviour of this ODSEE 11g server. Now, we are ADDING a new custom Password Policy to just a few selected users!
    1. When we add the Policy to the user by setting the passwordpolicysubentry attribute = "cn=Custom Pwd Policy for ABC,dc=mycorp,dc=com"
    - Nothing seems to happen.
    - WHEN IS THE PASSWORD EXPIRED?
    2. After we change a password for a user who has the passwordpolicysubentry attribute, he gains a new attribute pwdChangedTime
    - IS THIS THE ONLY TIME THE EXPIRY CLOCK STARTS TICKING? *AFTER* THE PASSWORD IS CHANGED?
    3. Is it true, that if a user never changes his password, even if he gets the new custom password policy applied, his password never automatically expires????
    I just cannot work out what is supposed to happen. I would have hoped that at the very least, the password begins to expires as soon as he gets a Password Policy with pwd_Max_age set.
    How is ODSEE 11g designed/supposed to function.
    Help!!!!!
    *HH

    Sylvain ,Many thanks for your reply and suggestions. Always good to have a choice!
    So it seems the only way to get the password aging clock to tick is for the password to be changed after having the password policy applied.
    Option1 is not really an option although it certainly would make the users change the password and set up the password aging...
    The main difficulty with odsee 11g  (Version 11.1.1.7.0) is that pwdChangedTime is a system read-only attribute linked to a modification to userPassword attribute, I cannot use ldapmodify to add/modify the pwdChangedTime attribute.
    I was amazed that I can read/store the userpassword as the base64 string and replace the userpassword attribute with this value using ldapmodify. This is very easy (and works!) but will cause the pwdChangedTime attribute to contain the same time for all users. I can imagine helpdesk loving it when everyone calls them in 6 months time.
    Using the LDIF backup/restore utility looks the best option, if it succeeds. At least we can randomize the actual value of pwdChangedTime with this approach.
    Mercy Buckets.

Maybe you are looking for