Problem inserting auto-sequence for PK value using trigger - ORA-02287

I have a query where the sub-query is working. I created a table to receive the results of the query. I created a Sequence:
CREATE SEQUENCE SEQ_RPT_H2_LOOPS
MINVALUE 1
START WITH 1
INCREMENT BY 1
NOMAXVALUE;
Then I created a trigger:
CREATE OR REPLACE TRIGGER TRG_RPT_H2_LOOPS
BEFORE INSERT ON RPT_H2_LOOPS
FOR EACH ROW
BEGIN
SELECT SEQ_RPT_H2_LOOPS.NEXTVAL INTO :NEW.RECORD_ID FROM DUAL;
END;
And here is the Insert query.
accept month_year;
accept prior_month_year;
insert into rpt_h2_loops (
     RECORD_ID,
     MKT_CODE,
     MKT_NAME,
     ECCKT,
     VENDOR_ID,
     ECCKT_VENDOR_ID,
     OCN,
     FAC_TYP,
     ALOC,
     ZLOC,
     STATE,
     OCN_STATE,
     OCN_STATE_COLO,
     SRVC_TYP,
     CUR_PERIOD,
     PRIOR_PERIOD,
     TIME_STAMP )
select seq_rpt_h2_loops.nextval
,substr(r.sub_acct,4,3)
,m.market
,rr.ckt
,rr.vendor_id
,rr.ckt||rr.vendor_id
,rr.ocn
,rr.srvc_typ
,'N/A'
,rr.zloc
,rr.st_cd
,rr.ocn||rr.st_cd
,rr.ocn||rr.st_cd||rr.zloc
,rr.srvc_typ
,'&month_year'
,'&prior_month_year'
,sysdate
from rco.rate_route rr
,rco.cogs_resource r
,rco.cogs_mkt m
where rr.cvbi_key = r.cvbi_key
and     m.subacct = r.sub_acct
and     to_char(rr.period, 'mm/yyyy') = '&month_year'
and     to_char(r.period, 'mm/yyyy') = '&month_year'
and     rr.srvc_typ = 'CUNE'
group by    substr(r.sub_acct,4,3)
,m.market
,rr.ckt
,rr.vendor_id
,rr.ckt||rr.vendor_id
,rr.ocn
,rr.srvc_typ
,rr.zloc
,rr.st_cd
,rr.ocn||rr.st_cd
,rr.ocn||rr.st_cd||rr.zloc
);The problem is that I am getting a ORA-02287: sequence number not allowed here on the NEXTVAL keyword.
The sequence and trigger compiled without problem. I just can't seem to insert that value into the query. Any help would be appreciated.

you are defeating the purpose of trigger which is before insert so just rewrite the query and remove the column for which value will be inserted using the created sequence and your code will work.
Regards,
Vikas Kumar

Similar Messages

  • Sequence for default value

    Please help me to stop my idea that Oracle is a Stupid Database.
    I create a Table and I want to have a sequence for default value.
    Oracle dont let me use the DEFAULT CONSTRAINT sentence to do that
    and Oracle dont let me create a insert before trigger.
    WHATS THE PROBLEM with Oracle.

    Oracle certainly allows you to create a BEFORE INSERT trigger on the table. There was Re: Auto generation of unique row ID a few days ago where I walked through setting this up.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Could not execute auto check for display colors using command /usr/

    I am trying to Install Oracle 10g R2 on Solaris X86 32 bit
    I am connecting to system from my windows vista laptop through putty... I get the following error...
    $ ./runInstaller
    Starting Oracle Universal Installer...
    Checking installer requirements...
    Checking operating system version: must be 5.10. Actual 5.10
    Passed
    Checking Temp space: must be greater than 250 MB. Actual 1214 MB Passed
    Checking swap space: must be greater than 500 MB. Actual 1799 MB Passed
    Checking monitor: must be configured to display at least 256 colors
    >>> Could not execute auto check for display colors using command /usr/openw
    Some requirement checks failed. You must fulfill these requirements before
    continuing with the installation,at which time they will be rechecked.
    Continue? (y/n) [n] n
    User Selected: No
    Exiting Oracle Universal Installer, log for this session can be found at /tmp/Or
    I have done the following:-
    # DISPLAY=192.168.1.133:0.0; export DISPLAY
    # echo $DISPLAY
    192.168.1.133:0.0
    # xhost+
    xhost+: not found
    # xclock
    xclock: not found
    I know that I have to do the following:-
    1. Install SUNWxwplt package ========> Is already Installed
    2. Set DISPLAY variable
    3. Execute xhost + on target (set in DISPLAY) computer
    # pkginfo -i SUNWxwplt
    system SUNWxwplt X Window System platform software
    Some sites claim xming and some xwindows etc.... Plz give me a step by step instruction as how to overcome this..
    bash-3.00# /usr/openwin/bin/xclock
    Error: Can't open display:
    bash-3.00# DISPLAY=192.168.1.133:0.0; export DISPLAY; echo DISPLAY
    DISPLAY
    bash-3.00# echo $DISPLAY
    192.168.1.133:0.0
    bash-3.00# /usr/openwin/bin/xclock
    Error: Can't open display: 192.168.1.133:0.0
    bash-3.00# pwd
    bash-3.00# find . -name xhost
    ./usr/openwin/bin/xhost
    ^C
    bash-3.00# /usr/openwin/bin/xhost +
    /usr/openwin/bin/xhost: unable to open display "192.168.1.133:0.0"
    bash-3.00#
    # echo $PATH
    /usr/sbin:/usr/bin
    I have also gone through the below ... but was not of much help
    Unable to execute runInstaller: Check if the DISPLAY variable is set
    Plz help
    Edited by: [email protected] on Feb 11, 2009 5:16 AM

    bash-3.00# echo $SHELL
    /sbin/sh
    bash-3.00# echo $DISPLAY
    bash-3.00# DISPLAY=192.168.1.133:0.0;export DISPLAY
    bash-3.00# echo $DISPLAY
    192.168.1.133:0.0
    bash-3.00# /usr/openwin/bin/xclock
    Error: Can't open display: 192.168.1.133:0.0
    bash-3.00# man xclock
    No manual entry for xclock.
    bash-3.00# /usr/openwin/bin/xhost +
    /usr/openwin/bin/xhost: unable to open display "192.168.1.133:0.0"
    bash-3.00#

  • Problem in Sourcing sequence for plant in Sales Order.

    Hi
    I am facing problem in Sourcing sequence for plant in Sales Order.
    If in Sales order i am selecting material then system is picking plant automaticly 8635 which is worng. For customer XYZ/ ship to ID ZXY, system should pick plant in sequence 5400 - 2300 - 5050.
    Could you please confirm what is exactly problem and what seeting i need to check.
    pls confirm

    But it is defind for material master.
    Because 8635 existed in materila master so system determines 8635 plant into your sales order.
    You can set only one plant as automatic else you can enter manually in sales order.
    If you automatic as  5400 then assign in Customer material info record or Customer or material master any where you can maintain.

  • Could not execute auto check for display colors using command /usr/bin/X11/

    Hello,
    In a work trying to install ORACLE 11gR2 software in AIX 5.3,
    export DISPLAY=local_IPXXX:0.0
    xclock
    it works, can see the clock.
    then go to dowloaded oracle, run
    /xxx/11g203_AIX64_5L/database-> ./runInstaller
    Your platform requires the root user to perform certain pre-installation
    OS preparation. The root user should run the shell script 'rootpre.sh' before
    you proceed with Oracle installation. rootpre.sh can be found at the top level
    of the CD or the stage area.
    Answer 'y' if root has run 'rootpre.sh' so you can proceed with Oracle
    installation.
    Answer 'n' to abort installation and then ask root to run 'rootpre.sh'.
    Has 'rootpre.sh' been run by root? [y/n] (n)
    y
    Starting Oracle Universal Installer...
    Checking Temp space: must be greater than 190 MB. Actual 7470 MB Passed
    Checking swap space: must be greater than 150 MB. Actual 6144 MB Passed
    Checking monitor: must be configured to display at least 256 colors
    >>> Could not execute auto check for display colors using command /usr/bin/X11/xdpyinfo. Check if the DISPLAY variable is set. Failed <<<<
    Some requirement checks failed. You must fulfill these requirements before
    continuing with the installation,
    Continue? (y/n) [n] n
    User Selected: No
    any idea to fix?
    thanks a lot in advance

    thank you for response
    in log, it shows
    Using paramFile: /xxx/11g203_AIX64_5L/database/install/oraparam.ini
    Checking Temp space: must be greater than 190 MB. Actual 7194 MB Passed
    Checking swap space: must be greater than 150 MB. Actual 6144 MB Passed
    Checking monitor: must be configured to display at least 256 colors Failed <<<<
    >>> Could not execute auto check for display colors using command /usr/bin/X11/xdpyinfo. Check if the DISPLAY variable is set.
    Some requirement checks failed. You must fulfill these requirements before
    continuing with the installation,Continue? (y/n) [n]
    User Selected: No
    Exiting Oracle Universal Installer, log for this session can be found at /tmp/OraInstall2012-09-17_04-08-40PM/installActions2012-09-17_04-08-40PM.log
    ~
    --so nothing new as screen shows.
    --ok, anonther way, say yes, shows..
    continuing with the installation,
    Continue? (y/n) [n] y
    Ignoring required pre-requisite failures. Continuing...Preparing to launch Oracle Universal Installer from /tmp/OraInstall2012-09-17_04-00-30PM. Please wait ...xxxx:/xxx/11g203_AIX64_5L/database-> Exception in thread "main" java.lang.NoClassDefFoundError: sun.awt.motif.MToolkit (initialization failure)
    at java.lang.J9VMInternals.initialize(J9VMInternals.java:134)
    at java.lang.Class.forNameImpl(Native Method)
    at java.lang.Class.forName(Class.java:130)
    at java.awt.Toolkit$2.run(Toolkit.java:864)
    at java.security.AccessController.doPrivileged(AccessController.java:192)
    at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:847)
    at com.jgoodies.looks.LookUtils.isLowResolution(LookUtils.java:484)
    at com.jgoodies.looks.LookUtils.<clinit>(LookUtils.java:249)
    at java.lang.J9VMInternals.initializeImpl(Native Method)
    at java.lang.J9VMInternals.initialize(J9VMInternals.java:196)
    at com.jgoodies.looks.plastic.PlasticLookAndFeel.<clinit>(PlasticLookAndFeel.java:135)
    at java.lang.J9VMInternals.initializeImpl(Native Method)
    at java.lang.J9VMInternals.initialize(J9VMInternals.java:196)
    at java.lang.J9VMInternals.initialize(J9VMInternals.java:161)
    at java.lang.J9VMInternals.initialize(J9VMInternals.java:161)
    at java.lang.J9VMInternals.initialize(J9VMInternals.java:161)
    at java.lang.Class.forNameImpl(Native Method)
    at java.lang.Class.forName(Class.java:163)
    at javax.swing.SwingUtilities.loadSystemClass(SwingUtilities.java:1812)
    at javax.swing.UIManager.setLookAndFeel(UIManager.java:510)
    at oracle.install.commons.util.Application.startup(Application.java:780)
    at oracle.install.commons.flow.FlowApplication.startup(FlowApplication.java:165)
    at oracle.install.commons.flow.FlowApplication.startup(FlowApplication.java:182)
    at oracle.install.commons.base.driver.common.Installer.startup(Installer.java:348)
    at oracle.install.ivw.db.driver.DBInstaller.startup(DBInstaller.java:124)
    at oracle.install.ivw.db.driver.DBInstaller.main(DBInstaller.java:155)
    Edited by: 951932 on Sep 17, 2012 2:12 PM

  • How to auto update date column without using trigger

    Hi,
    How to write below MYSQL query in Oracle 10g :
    CREATE TABLE example_timestamp (
    Id number(10) NOT NULL PRIMARY KEY,
    Data VARCHAR(100),
         Date_time TIMESTAMP DEFAULT current_timestamp on update current_timestamp
    I need to auto update the Date_Time column without using trigger when ever i update a record.
    Example shown below is from MYSQL. I want to perform the below steps in ORACLE to auto update Date_Time column.
    mysql> INSERT INTO example_timestamp (data)
    VALUES ('The time of creation is:');
    mysql> SELECT * FROM example_timestamp;
    | id | data | Date_Time |
    | 1 | The time of creation is: | 2012-06-28 12:37:22 |
    mysql> UPDATE example_timestamp
    SET data='The current timestamp is: '
    WHERE id=1;
    mysql> SELECT * FROM example_timestamp;
    | id | data | Date_Time |
    | 1 | The current timestamp is: | 2012-06-28 12:38:55 |
    Regards,
    Yogesh.

    Is there no functionality in oracle to auto update date column without using trigger??
    I dont want to update the date column in UPDATE statement.
    The date column should automatically get updated when ever i execute an Update statement.

  • Problem in Loading data for clob column using sql ldr

    Hi,
    I am having problem in loading data for tables having clob column.
    Could anyone help me in correcting the below script for ctrl file inorder to load the data which is in mentioned format.
    Any help really appreciated.
    Table Script
    Create table samp
    no number,
    col1 clob,
    col2 clob
    Ctrl File
    options (skip =1)
    load data
    infile 'c:\1.csv'
    Replace into table samp
    fields terminated by ","
    trailing nullcols
    no,
    col1 Char(100000000) ,
    col2 Char(100000000) enclosed by '"' and '"'
    Data File(1.csv)
    1,asdf,"assasadsdsdsd""sfasdfadf""sdsdsa,ssfsf"
    2,sfjass,"dksadk,kd,ss""dfdfjkdjfdk""sasfjaslaljs"
    Error Encountered
    ORA-01461: can bind a LONG value only for insert into a LONG column
    Table sampThanks in advance

    I can't reproduce it on my 10.2.0.4.0. CTL file:
    load data
    INFILE *
    Replace into table samp
    fields terminated by ","
    trailing nullcols
    no,
    col1 Char(100000000) ,
    col2 Char(100000000) enclosed by '"' and '"'
    BEGINDATA
    1,asdf,"assasadsdsdsd""sfasdfadf""sdsdsa,ssfsf"
    2,sfjass,"dksadk,kd,ss""dfdfjkdjfdk""sasfjaslaljs"Loading:
    SQL> Create table samp
      2  (
      3  no number,
      4  col1 clob,
      5  col2 clob
      6  );
    Table created.
    SQL> host sqlldr scott/tiger control=c:\temp\samp.ctl log=c:\temp\samp.log
    SQL> select * from samp
      2  /
            NO
    COL1
    COL2
             1
    asdf
    assasadsdsdsd"sfasdfadf"sdsdsa,ssfsf
             2
    sfjass
    dksadk,kd,ss"dfdfjkdjfdk"sasfjaslaljs
            NO
    COL1
    COL2
    SQL> SY.

  • Problem disabling auto renewal for app

    AAaa

    Ive been getfing charged continually For several months for this app ok cCupid which I intended to try for at most month... THATS IT.
    AS I HAVE  NOTICED IM BEING CHARGED OVER AND OVER again for an application that I maybe used for a week or so . Please feel freeto check how much I have and did access fhe app so you can uncdestand.
    MY CONFUSION and IRRITANCE ABOUT THIS IS BEcause after I tried to cancel it via the Iphone . apparently it was unsuccessful.The next time on my credit card statement I noticed another 1999 charge and now I was becoming a little bit upset.at this point I called my bank and I felt that my bank would be able to get through to the people at iTunes support and give me a little bit more customer service and I was actually wrong the gentleman that I spoke to was a bit inappropriate and unbecoming to me and made me feel like I was incompetent.The customer representative that I spoke to said that I was supposed to be able to do this through my phone under the settings and to be able to turn off the auto renewal. I asked him for some sort of credit because of the mistake that was made upon my original call and he said that we did not do that and I was like okay mistake happen.    The banker happen to still be on the phone with me when we disconnected from the Apple Support gentleman and he explained to me that he had had similar problems himself and he jokingly made a comment about the representative from Apple saying" wow he wasn't too friendly"     So now it's been several months and I continually see this charged to my iTunes account and I have done everything told to turn off the auto renewal I have even gone into the Apple store and they have tried to turn off the auto renewal to know avail.
        I'm a huge Apple fan and gently and good advocate and for the last couple months I continually see this popping up on my bill I don't know how to turn off the auto renewal for this okay Cupid subscription that I'd only used for not more than a week or two and I am reasonably sure that you guys can access my account and see how much and how often I use the service so what I'm askingis if you could at least turn off the auto renewal so my subscription will end and if you could possibly compensate me in any which way that would be awesome appreciated because I feel that I have gotten somewhat unsatisfactory service
    you know I don't like to be a guy that calls and complains and you know it ****** and moans about petty stuff but in house after seeing a $20 charge on my account for the last four months at it becomes a little bit upsetting and you know I I hope that you guys can do something to reconcile this and please get back to me because that's another thing that I feel Apple does not do understandably you guys do have many  many customers to deal with  during the holiday season    I would really like some sort of call email any type of communication to help me understand what we can do about this and if anyway you can you know make it up to me if possible thank you very much and with all due respect I look forward to continuing to be an Apple customer thank you Ben Saltzman

  • Mainframe data loaded into Oracle tables - Test for low values using PL/SQL

    Mainframe legacy data has been copied straight from the legacy tables into mirrored tables in Oracle. Some columns from the mainframe data had 'low values' in them. These columns were defined on the Oracle tables as varchar2 types. In looking at the data, some of these columns appear to have data that looks like little square boxes, not sure but maybe that is the way Oracle interprets the 'low values' in the original data into varchar. When I run a select to find all rows where this column is not null, it selects these columns. In the results of the select statement, the columns appear to be blank, however, in looking at the data in the column using SQL Developer, I can see the odd 'square boxes'. My guess is that the select statement is detecting that something exists in this column. Long story short, some how I am going to have to test this legacy data on the Oracle table using Pl/Sql to test for 'low values'. Does anyone have any suggestions on how I could do this????? Help! The mainframe data we are loading into these tables is loaded with columns with low values.
    I am using Oracle 11i.
    Thanks
    Edited by: ncsthbell on Nov 2, 2009 8:38 AM

    ncsthbell wrote:
    Mainframe legacy data has been copied straight from the legacy tables into mirrored tables in Oracle. Not a wise thing to do. Mainframe operating systems typically use EBCDIC and Unix and Windows servers use ASCII. The endian is also different (big endian vs little endian).
    Does anyone have any suggestions on how I could do this????? As suggested, use the SQL function called DUMP() to see the actual contents (in hex) of these columns.

  • How to select a row for update values, Using CTEs or suitable method

    HI All,
    I have a table as claim_data as below.
    claim_id   
    amount         change_monthkey
             created_monthkey
             ord
    54511      
    300            201304         
             201304          
              1
    54511      
    0              201305         
             201304          
              2
    120301     
    250            201502         
             201502          
              1
    120624     
    150            201502         
             201502          
              1
    120624     
    0              201503    
                  201502          
              2
    I want to isolate rows which appear in the table and do a update using below query ( This query is already in a procedure, so I just looking for a suitable way to modify it to support my task )
    In the above e.g.  ONLY row containing claim_id = 120301 needs to update (amount  as updated_amount)
    I use following query, but it update other rows as well, I want a suitable query only to capture rows of nature claim_id = 120301 and do this update? Is there any functions that I could use to facilitate my task??
    select
         a.claim_id
        , a.Created_MonthKey
        , a.Change_MonthKey
        , a.amount - ISNULL(b.amount,0.00) as amount_movement
        ,a.amount  as updated_amount   --- >> I need help here??
        FROM claim_data a
    LEFT JOIN claim_data b
        ON a.claim_id = b.claim_id
        AND b.Ord = a.Ord - 1
    Thanks
    Mira

    Please follow basic Netiquette and post the DDL we need to answer this. Follow industry and ANSI/ISO standards in your datC1. You should follow ISO-11179 rules for naming data elements. You do not know this IT standard.
    You should follow ISO-8601 rules for displaying temporal datC1. We need to know the data types, keys and constraints on the table. Avoid dialect in favor of ANSI/ISO Standard SQL. 
    And you need to read and download the PDF for: 
    https://www.simple-talk.com/books/sql-books/119-sql-code-smells/
    >> I have a table AS claim_data AS below. << 
    Thanks to your lack of netiquette, we have no name, no DDL, no keys and have to re-type the raw data into SQL, guess at everything! Does your boss treat you with the same contempt? 
    Think about how silly “_data” is AS an attribute property! What tables do you have without an data in them? You had to give this meta-data in 1970's operating systems, FORTRAN compilers, etc. but we do not do this today. I see you use “A”, “B”, etc for table
    aliases This is the name of the disk or tape drive in a 1970 computer! In SQL we use helpful, meaningful table aliases so code is easier to maintain. I see you also use the old punch card trick of putting a comma at the front of each line of code. 
    The column named “ord” is a mathematical fiction for ordinal sets. I think you meant to use it as a non-relational sequential number to let you keep writing 1970's COBOL is T-SQL. We have not used the old Sybase ISNULL() since we got COALESCE() in SQL-92. They
    are actually different. 
    First, let's post what you should have posted if you followed forum rules: 
    CREATE TABLE Claims
    (claim_id CHAR(5) NOT NULL,
     claim_amount DECIMAL (8,2) NOT NULL
     CHECK (claim_amount >= 0.00),
     change_month_name CHAR(10) NOT NULL
     REFERENCES Month_Period(month_name),
     creation_month_name CHAR(10) NOT NULL
     REFERENCES Month_Period(month_name),
     ord INTEGER NOT NULL, -- NO!! Awful design! 
     PRIMARY KEY (claim_id, ord)); --required by definition
    Since SQL is a database language, we prefer to do look ups and not calculations. They can be optimized while temporal math messes up optimization. A useful idiom is a report period calendar that everyone uses so there is no way to get disagreements in the DML.
    The report period table gives a name to a range of dates that is common to the entire enterprise. 
    CREATE TABLE Month_Periods
    (month_name CHAR(10) NOT NULL PRIMARY KEY
     CHECK (month_name LIKE '[12][0-9][0-9][0-9]-[01][0-9]-00'),
     month_start_date DATE NOT NULL,
     month_end_date DATE NOT NULL,
     CONSTRAINT date_ordering
     CHECK (month_start_date <= month_end_date),
    etc);
    These report periods can overlap or have gaps. I like the MySQL convention of using double zeroes for months and years, That is 'yyyy-mm-00' for a month within a year and 'yyyy-00-00' for the whole year. The advantages are that it will sort with the ISO-8601
    data format required by Standard SQL and it is language independent. It has been proposed for the Standard, but is not yet part of it. The regular expression pattern for validation is simple. 
    INSERT INTO Claims  -- a mess! 
    VALUES
    ('054511', 300.00, '2013-04-00', '2013-04-00', 1)
    ('054511', 0.00, '2013-05-00', '2013-04-00', 2),
    ('120301', 250.00, '2015-02-00', '2015-02-00', 1),
    ('120624', 150.00, '2015-02-00', '2015-02-00', 1),
    ('120624', 0.00, '2015-03-00', '2015-02-00', 2);
    Now, throw this mess out. It looks like your repeat the claim creation date over and over and over. It looks like you crammed a claim creation and a claim history together in one table. 
    >> I want to isolate rows which appear in the table and do a update using below query (This query is already in a procedure, so I just looking for a suitable way to modify it to support my task). 
    In the above e.g. ONLY row containing claim_id = '120301' needs to update (amount AS updated_amount)
    >> I use following query, but it update other rows as well, I want a suitable query only to capture rows of nature claim_id = '120301' and do this update? <<
    No. SQL is set oriented so an update applies to the whole table. You can filter out rows in a WHERE clause. 
    CREATE TABLE Claims
    (claim_id CHAR(5) NOT NULL PRIMARY KEY,
     claim_amount DECIMAL (8,2) NOT NULL
     CHECK (claim_amount >= 0.00),
    claim_creation_month_name CHAR(10) NOT NULL
     REFERENCES Month_Period(month_name));
    See how this works? 
    INSERT INTO Claims  -- a mess! 
    VALUES
    ('054511', 300.00, '2013-04-00'),
    ('120301', 250.00, '2015-02-00'),
    ('120624', 150.00, '2015-02-00');
    Normalize the table: 
    CREATE TABLE Claim_Changes
    (claim_id CHAR(5) NOT NULL 
      REFERENCES Claims(claim_id)
      ON DELETE CASCADE,
     change_month_name CHAR(10) NOT NULL
      REFERENCES Month_Period(month_name),
     PRIMARY KEY (claim_id, change_month_name),
     change_amount DECIMAL (8,2) NOT NULL
     CHECK (change_amount >= 0.00)
    INSERT INTO Claims_Changes
    VALUES
    ('054511', 0.00, '2013-05-00'),
    ('120624', 0.00, '2015-03-00');
    Now you just add another change row to the history. There is no update. If you want to the delta and so forth, use LAG() and other window functions. 
    --CELKO-- Books in Celko Series for Morgan-Kaufmann Publishing: Analytics and OLAP in SQL / Data and Databases: Concepts in Practice Data / Measurements and Standards in SQL SQL for Smarties / SQL Programming Style / SQL Puzzles and Answers / Thinking
    in Sets / Trees and Hierarchies in SQL

  • Problem creating directory configuration for BPM when using secure ldap

    I have all the configuration sorted for the creation, but when the config wizard tries to connect to the server I get this:
    fuego.directory.DirectoryRuntimeException: Exception [sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target].
    I'm assuming it's because the config tool isn't using my keyStore, but I am unable to find out where I add this!
    Thanks
    mARK

    Hi,
    The problem got resolved when we tried same thing in BI publisher 10.1.3.4.2 (xmlpserver) in weblogic 10.3.5. It seems that BI publisher 10.1.3.4.1 does not have dynamic URI support.
    Thanks,
    Sanjaya
    Edited by: Sanjaya on Sep 4, 2012 2:09 AM

  • Wildcard search for numeric values using select ?

    Hi,
    I want do wildcard search for numeric fields of the table.
    For charcter/string i have used - select * from XX_TABLE where param1 like 'SS%'. But this query doesnt work when para1 is numeric. Please let me know first whether this is possible ? if yes how to achieve it ?
    Thanks in advance,
    Shrinivas

    Hi Jack,
    The numeric field is of  8 digits, so when i give search critera as '66', it should return values 66000000, 660000, 6600 etc. so i was not able to give between some range. I also tried storing all these values in internal table and the segregate the values it contains '66*'. This worked well but requires lot of coding effort.Please suggest if you guys have any better method ?
    Thanks,
    Shrinivas

  • I'm looking for return value if trigger level is reached,in LABVIEW .NO data acquisition.

    I won't like to acquire data with the analog input , only a return value if the trigger level is reached, dearest a Bool expression to control another function, only to activate or deactivate this function. I use the PCI MIO 16E1 and Labview 6 and i hope there is someone who can help ; -)

    The DAQ Occurence will probably be the best option for you. It can be set to generate an occurence (interrupt) at a particular level. You won't get a BOOL output. Instead, you have another node (Wait on Occurence) that doesn't allow execution to continue until the occurence is generated.
    Otherwise, you may have to do a point-point comparison.

  • Better approach for deleting rows using trigger or procedure

    Hi,
    Please suggest which option is better for deleting rows from table trigger or procedure and why?
    In datawarehousing and OLTP DB's.
    Edited by: user6040008 on Nov 2, 2012 4:51 AM

    Hi,
    Please suggest which option is better for deleting rows from table trigger or procedure and why?
    In datawarehousing and OLTP DB's.
    Edited by: user6040008 on Nov 2, 2012 4:51 AM

  • Repeat the execution of one pl. sequence for different filters (proc. chain

    Hello experts
    we have a planing sequence which is designed to handle one value of the characteristic "plan" in the filter.
    In one special case we have to execute the sequence for all values of the characterisitc "plan".
    In this special case we start the sequence via process chain.
    What is the best way to start the sequence multiple times with different filter values?
    (To adjust the sequence to handle multple plans is not an option at the moment)
    The gerneral idea is to embed a ABAP program in the process chain. This program should determine for which plans the sequence has to be started. In a loop over the plans the program starts
    a) An other process chain which contains the sequence
    b) the sequence directly via program "RSPLS_PLSEQ_EXECUTE"
    each of both alternatives has several problems
    a) the program can just start the next execution of the chain if the first execution in finished. How can I handle this in the program.
    When starting the chain, it must be provided with the actual value of the plan. How to handle this? Maybe I will use one variant with a exit varialbe wich selects the value out of an ABAP dictionary table. The program has to write the value in the table before calling the porcess chain. Any better ideas?
    b) The ABAP program should not be finished before all planing sequences are finished. How can I find out if the planing sequences are finished. How many planing sequences can be started paraellel with the same user (ALREMOTE)? The problem with providing the actual filter value is the same than in A).
    Which alternetive would you choose?
    Do you see any more problems?
    Any help or opinion is appreciated?
    Thanks in advance
    Johannes

    Hi Johannes,
    how about "scheduling planning sequences in process chains"
    http://help.sap.com/saphelp_nw70/helpdata/EN/45/946677f8fb0cf2e10000000a114a6b/frameset.htm
    Here you can specify "process in packages" and "Configured packaging" based on "plan" in your filter.
    You need to specify a variant which contains all "plan" values.
    Could you please check this?
    Regards Matthias

Maybe you are looking for

  • What is Laserfiche and what does it do?

    What is Laserfiche and what does it do?  Does it integrate with O365? Is it a standalone plan or an add on? 

  • Asign sRGB profile on import from memory card?

    Can I have the Mac automatically assign the sRGB profile to the images I import into iPhoto. They all come in as Camera RGB now. Typically I take my memory card out of the camera and plug it into a memory card reader and then automatically import int

  • SC still in approval status after creating a SC

    Hi guys, we have implemented SRM 4.0 (SRM-Server 5.0) in ECS as a test-system. All Workflows did work  until we installed SP 9 and 10. By installing these packages we had to delete some taks for workflows (activation of WS10000060). We reactivated th

  • N8 social network facebook sharing location

    Hello all, I am using a N8 with the social network app. I tried yesterday first time to make a facebook post and to add my location with the post.  The post itself works and the name of the location does appear below the post with the little green OV

  • MSI Vox: major humming noise in background

    Hey folks, I'm new to the forum and have a major problem. While the sound is playing there is a major humming distortion in the background. I've connnected the Vox on 2 individual systems and it occurs on both. I'm curious, I wonder if the "optional