Not able to load data in tables with correct way

Hi
i made one trigger to load data in view and tables.
CODE FOR TRIGGER>>>>
Object Details Code Errors SQL
CREATE OR REPLACE TRIGGER "WELL_GENERATOR_TRIGGER_1"
INSTEAD OF INSERT ON VIEW_WELL_GENERATOR_FORM
FOR EACH ROW
DECLARE
rowcnt number;
BEGIN
INSERT INTO facility (FAC_PK) VALUES (:NEW.FAC_PK);
SELECT COUNT(*) INTO rowcnt FROM WELL WHERE WEL_PK = :NEW.WEL_PK;
IF rowcnt = 0 THEN
INSERT INTO WELL (WEL_PK,SITE,FAC_FK) VALUES(:NEW.WEL_PK,:NEW.SITE,:NEW.FAC_PK);
ELSE
UPDATE WELL SET WELL.SITE = :NEW.SITE,
WELL.FAC_FK = :NEW.FAC_PK
WHERE WELL.WEL_PK = :NEW.WEL_PK;
END IF;
SELECT COUNT(*) INTO rowcnt FROM WELL_STATUS WHERE WELL_STATUS.STA_PK = :NEW.STA_PK;
IF rowcnt = 0 THEN
INSERT INTO WELL_STATUS (WELL_TYPE, WELL_TYPE_DATE, OPER_STATUS, CLASS,WEL_FK)
VALUES(:NEW.WELL_TYPE, :NEW.WELL_TYPE_DATE, :NEW.OPER_STATUS, :NEW.CLASS,:NEW.WEL_PK);
ELSE
UPDATE WELL_STATUS SET WELL_STATUS.WELL_TYPE = :NEW.WELL_TYPE,
WELL_STATUS.WELL_TYPE_DATE = :NEW.WELL_TYPE_DATE,
WELL_STATUS.OPER_STATUS = :NEW.OPER_STATUS,
WELL_STATUS.CLASS = :NEW.CLASS,
WELL_STATUS.WEL_FK = :NEW.WEL_PK
WHERE STA_PK = :NEW.STA_PK;
END IF;
SELECT COUNT(*) INTO rowcnt FROM PERMIT WHERE PERMIT.PER_PK = :NEW.PER_PK;
IF rowcnt = 0 THEN
INSERT INTO PERMIT (AUT_STATUS,WEL_FK) VALUES (:NEW.AUT_STATUS,:NEW.WEL_PK);
ELSE
UPDATE PERMIT SET PERMIT.AUT_STATUS = :NEW.AUT_STATUS,
PERMIT.WEL_FK = :NEW.WEL_PK
WHERE PERMIT.PER_PK = :NEW.PER_PK;
END IF;Now But still i am not getting result which i want.Like in WELL_STATUS table i could nt able to insert the value (WEL_FK) from (WEL_PK).And In PERMIT table column (WEL_FK) still i could nt able to insert the value (WEL_PK).
Now WEL_PK value autogenerate from the SEQ same with STA_PK and PER_PK.But instead of taking value from seq STA_PK take the value from WEL_PK (dnt know why ? But in data its shows me Same value WEL_PK and STA_PK).Same thing With PER_PK.
so where i am wrong ? i really need your help.
workspace:PRACTISE
UN:[email protected]
PW:testing
Application:     39289 - TESTTING
Thanks
Edited by: vijaya45 on Jul 13, 2009 9:44 PM
Edited by: vijaya45 on Jul 14, 2009 12:48 AM

Hello vijaya45,
Not sure if this will help, but I noticed you currently have a WELL_GENERATOR_TRIGGER_1 and a WELL_GENERATOR_TRIGGER_2, and "1" is disabled but "2" is enabled. Which one is supposed to be running at this point?
John

Similar Messages

  • How can I load data into table with SQL*LOADER

    how can I load data into table with SQL*LOADER
    when column data length more than 255 bytes?
    when column exceed 255 ,data can not be insert into table by SQL*LOADER
    CREATE TABLE A (
    A VARCHAR2 ( 10 ) ,
    B VARCHAR2 ( 10 ) ,
    C VARCHAR2 ( 10 ) ,
    E VARCHAR2 ( 2000 ) );
    control file:
    load data
    append into table A
    fields terminated by X'09'
    (A , B , C , E )
    SQL*LOADER command:
    sqlldr test/test control=A_ctl.txt data=A.xls log=b.log
    datafile:
    column E is more than 255bytes
    1     1     1     1234567------(more than 255bytes)
    1     1     1     1234567------(more than 255bytes)
    1     1     1     1234567------(more than 255bytes)
    1     1     1     1234567------(more than 255bytes)
    1     1     1     1234567------(more than 255bytes)
    1     1     1     1234567------(more than 255bytes)
    1     1     1     1234567------(more than 255bytes)
    1     1     1     1234567------(more than 255bytes)

    Check this out.
    http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96652/ch06.htm#1006961

  • Loading Data into Table with Complex Transformations

    Hello Guys
    I am trying to load data into one of the Dimension table and it has quite a few Transformations and i created 6 temp tables
    1. It has 7 Columns , Gets 935 rows based on where condition
    2. It has 10 Columns , Gets 935 rows with but it has nulls in it i.e for column 1 there are 500 fields and columns 2 there are 300 etc ...
    3 , 4 , 5 , 6 all the same as the 2 table
    and at the end when i am trying to join all the temp tables with the Product_id into the target , which is in each temp table ...
    I am Getting Error Saying Not Obeying Primary key Constraints i.e unique values are not been inserting into the Product_id Column of Target Table and the Job is running for Hours
    and the main Problem comes at , some of the Columns have the same Product_id
    Please help me
    I have been Trying for 1 week and i am in Full pressure
    Thanks
    Sriks
    Edited by: Sriks on Oct 16, 2008 6:43 PM

    Hi,
    If you are creating a warehouse and product_key is ur PK then it should come only once and so u might have to think ur logic in getting the data. To get over the isue u can disable the constraint and load with out the cosntraint, but i would have u look at the logic and make sure u have only 1 product_key in the table.
    Regards
    Bharath

  • Not able to load data in 0MATERIAL_ATTR

    Hi ,
    For Infoobject 0MATERIAL I am maintaining both attribute and text. I am able to load text into 0MATERIAL successfully.
    But, when I am trying to load datasource 0MATERIAL_ATTR, I am getting error
    'DataSource 0MATERIAL_ATTR(ECCCLNT711) must be activated,
    Message no. RSDS179
    'Invalid DataStore object name /BIC/B0000039: Reason: No valid entry in table RSTS'
    Message no. RSM1294
    I checked ECC 711, 0MATERIAL_ATTR is active. I am even able to see data in 0MATERIAL_ATTR in Tcode RSA3.
    Please tell me what to do. It will be a great help.
    Thanks and Regards
    Shilpa

    hi shilpa..
    chk these threads for clue...
    /message/3666553#3666553 [original link is broken]
    Re: Short dump when trying to load 0MATERIAL_ATTR
    hope it helps...

  • Sql*loader - load data in table with multiple condition

    Hi,
    I have oracle 9i on Sun sloaris and i need to load data in one of oracle table using sql*loader with conditional column data.
    My table is like:
    Load_table
    col1 varchar2(10),
    col2 varchar2(10),
    col3 varchar2(10),
    Now i have to load data like:
    If col2 = US1 then col3 = 'AA'
    If col2 = US2 then col3 = 'BB'
    If col2 = US3 then col3 = 'CC'
    How can i load this data in table using sql*loader?
    Thanks,
    Pora

    Hi
    it is a half-solution.
    You have to:
    1. open file
    2. take a line
    3. split the line into values (using substring to)
    4. check condition (01 or 02)
    5. do a proper insertion
    Good Luck,
    Przemek
    DECLARE
    v_dir VARCHAR2(50) := 'd:/tmp/'; --directory where file is placed
    v_file VARCHAR2(50) := 'test.txt'; -- file name
    v_fhandle UTL_FILE.FILE_TYPE; ---file handler
    v_fline VARCHAR2(906); --file line
    v_check VARCHAR2(50);
    BEGIN
    v_fhandle := UTL_FILE.FOPEN(v_dir, v_file, 'R'); --open file for read only
    LOOP -- in the loop
    UTL_FILE.GET_LINE( v_fhandle , v_fline); -- get line by line from file
    if (substr(v_fline,17,2) = '01') then --check the value
    INSERT INTO ... -- Time_in
    else
    INSERT INTO ... -- Time_out
    end if;
    END LOOP;
    EXCEPTION
    WHEN NO_DATA_FOUND
    THEN UTL_FILE.FCLOSE( v_fhandle );
    END;

  • Loading data into table with filename

    Hi All,
    I am new to ODI. I have a requirement to load of a flat file into oracle, along with the name of file in one column of the table. That means, if there are 10 rows of data from that file then the additional column 'FileName" of the table will have current file name written 10 times. Please suggest how this can be achieved. I am able to do half of it but file name is not populated.
    Thanks.

    Hi ,
    Probably what you can do is
    1. create a variable to read the file name . Refer http://odiexperts.com/?tag=file-variable-odi for creating such a variable.
    2. Now in your interface , target table column which holds the filename , use '#<variable created in step 1>'
    and specify it to be executed on target .
    It should do the trick .
    Thanks,
    Sutirtha

  • Not able to load data in view

    Hi All
    i had created one view based on four different tables.Now to enter the data in load i had successfully created INSTEAD OF TRIGGER on view.But data load into tables but when i try to see data in view then its shows me nothing.
    so why my data not load in view but lad into four diff tables.
    ---VIEW CODE
    CREATE OR REPLACE FORCE VIEW "VIEW_WELL_GENERATOR_FORM" ("WEL_PK", "STA_PK", "PER_PK", "FAC_PK", "WELL_TYPE", "WELL_TYPE_DATE", "OPER_STATUS", "STATUS_DATE", "CLASS", "SITE", "FAC_TYPE", "AUT_STATUS") AS
    select     "WELL"."WEL_PK" as "WEL_PK",
         "WELL_STATUS"."STA_PK" as "STA_PK",
         "PERMIT"."PER_PK" as "PER_PK",
         "FACILITY"."FAC_PK" as "FAC_PK",
         "WELL_STATUS"."WELL_TYPE" as "WELL_TYPE",
         "WELL_STATUS"."WELL_TYPE_DATE" as "WELL_TYPE_DATE",
         "WELL_STATUS"."OPER_STATUS" as "OPER_STATUS",
         "WELL_STATUS"."STATUS_DATE" as "STATUS_DATE",
         "WELL_STATUS"."CLASS" as "CLASS",
         "WELL"."SITE" as "SITE",
         "FACILITY"."FAC_TYPE" as "FAC_TYPE",
         "PERMIT"."AUT_STATUS" as "AUT_STATUS"
    from     "FACILITY" "FACILITY",
         "PERMIT" "PERMIT",
         "WELL_STATUS" "WELL_STATUS",
         "WELL" "WELL"
    where "WELL"."WEL_PK"="WELL_STATUS"."WEL_FK"
    and     "PERMIT"."WEL_FK"="WELL"."WEL_PK"
    and     "FACILITY"."FAC_PK"="WELL"."FAC_FK"
    ---INSTEAD OF TRIGGER CODE...
    CREATE OR REPLACE TRIGGER "WELL_GENERATOR_TRIGGER_1"
    INSTEAD OF INSERT ON VIEW_WELL_GENERATOR_FORM
    FOR EACH ROW
    DECLARE
    rowcnt number;
    BEGIN
    INSERT INTO facility (FAC_PK) VALUES (:NEW.FAC_PK);
    SELECT COUNT(*) INTO rowcnt FROM WELL WHERE WEL_PK = :NEW.WEL_PK;
    IF rowcnt = 0 THEN
    INSERT INTO WELL (SITE,FAC_FK) VALUES(:NEW.SITE,:NEW.FAC_PK);
    ELSE
    UPDATE WELL SET WELL.SITE = :NEW.SITE,
    WELL.FAC_FK = :NEW.FAC_PK
    WHERE WELL.WEL_PK = :NEW.WEL_PK;
    END IF;
    SELECT COUNT(*) INTO rowcnt FROM WELL_STATUS WHERE WELL_STATUS.STA_PK = :NEW.STA_PK;
    IF rowcnt = 0 THEN
    INSERT INTO WELL_STATUS (WELL_TYPE, WELL_TYPE_DATE, OPER_STATUS, CLASS,WEL_FK)
    VALUES(:NEW.WELL_TYPE, :NEW.WELL_TYPE_DATE, :NEW.OPER_STATUS, :NEW.CLASS,:NEW.WEL_PK);
    ELSE
    UPDATE WELL_STATUS SET WELL_STATUS.WELL_TYPE = :NEW.WELL_TYPE,
    WELL_STATUS.WELL_TYPE_DATE = :NEW.WELL_TYPE_DATE,
    WELL_STATUS.OPER_STATUS = :NEW.OPER_STATUS,
    WELL_STATUS.CLASS = :NEW.CLASS,
    WELL_STATUS.WEL_FK = :NEW.WEL_PK
    WHERE STA_PK = :NEW.STA_PK;
    END IF;
    SELECT COUNT(*) INTO rowcnt FROM PERMIT WHERE PERMIT.PER_PK = :NEW.PER_PK;
    IF rowcnt = 0 THEN
    INSERT INTO PERMIT (AUT_STATUS,WEL_FK) VALUES (:NEW.AUT_STATUS,:NEW.WEL_PK);
    ELSE
    UPDATE PERMIT SET PERMIT.AUT_STATUS = :NEW.AUT_STATUS,
    PERMIT.WEL_FK = :NEW.WEL_PK
    WHERE PERMIT.PER_PK = :NEW.PER_PK;
    END IF;
    Thanks

    Hi
    Thanks for your reply.here i am adescribing my code for the tables.
    CREATE TABLE "FACILITY"
    (     "FAC_PK" NUMBER(8,0),
         "FAC_STATE_UK" VARCHAR2(4),
         "DELFLAG" VARCHAR2(1),
         "FAC_TYPE" VARCHAR2(1),
         "FAC_NAME" VARCHAR2(80),
         "STREET1" VARCHAR2(50),
         "STREET2" VARCHAR2(50),
         "CITY" VARCHAR2(60),
         "SATE" VARCHAR2(2),
         "ZIP" VARCHAR2(14),
         "LABEL_STREET_1" VARCHAR2(30),
         "LABEL_STREET_2" VARCHAR2(30),
         "LABEL_CITY" VARCHAR2(15),
         "LABEL_COUNTY" VARCHAR2(10),
         "STATE_OR_TRIBE" VARCHAR2(3),
         "SIC_CODE" VARCHAR2(4),
         "NAICS_CODE" VARCHAR2(6),
         "PETIT_STATUS" VARCHAR2(2),
         "STATE_CONTACT_NAME" VARCHAR2(30),
         "TRIBAL_NAME" VARCHAR2(30),
         "TOTAL_WELLS" NUMBER(5,0),
         "LANDOWNER_TYPE" VARCHAR2(1),
         "LOC_IDENTITY" VARCHAR2(1),
         "PROJECT_STATUS" VARCHAR2(25),
         "TRIBE_YN" VARCHAR2(1),
         "INFO_SOURCE" VARCHAR2(35),
         "FAC_DESC" VARCHAR2(3),
         "FAC_LAT" NUMBER(10,8),
         "FAC_LONG" NUMBER(11,8),
         "FAC_ACC_VALUE" NUMBER(6,0),
         "FAC_HORIZ_DATUM" VARCHAR2(3),
         "FAC_METHOD" VARCHAR2(3),
         "FAC_POINT_LINE_AREA" VARCHAR2(3),
         "FAC_SOURCE_SCALE" VARCHAR2(2),
         "FAC_COUNTY" VARCHAR2(35),
         "FAC_HIST_LAT" VARCHAR2(100),
         "FAC_HIST_LONG" VARCHAR2(100),
         "HIST_NOTES_ACTDATE" DATE,
         "HIST_NOTES_ACTNEEDED" VARCHAR2(15),
         "HIST_SUBMITBY" VARCHAR2(35),
         "HIST_ENTRYDATE" DATE,
         "HIST_ID" VARCHAR2(64),
         "AUD_ACTION" VARCHAR2(10),
         "AUD_TIME" DATE,
         "AUD_BEFORE_VALUE" VARCHAR2(80),
         "AUD_AFTER_VALUE" VARCHAR2(80),
         "HIST_NAME" VARCHAR2(100),
         "HIST_CONTACT" VARCHAR2(80),
         "HIST_FULL_STREET" VARCHAR2(100),
         "HIST_FULL_FAC_NAME" VARCHAR2(200),
         "FORMER_FAC_NAME" VARCHAR2(100),
         "COMMENTS" VARCHAR2(300),
         "HIST_ORIGINATOR" VARCHAR2(20),
         "PHONE" VARCHAR2(15),
         "PHONE_EXT" VARCHAR2(8),
         "FAX" VARCHAR2(15),
         "EMAIL_ADDRESS" VARCHAR2(30),
         "EMAIL_ADDRESS_DOMAIN_NAME" VARCHAR2(30),
         "FAC_URL" VARCHAR2(60),
         "LAST_UPDATE_LOTUS_NOTES" DATE,
         "NUM_INSPECTIONS" NUMBER(6,0),
         "NUM_PERMITS" NUMBER(6,0),
         "NUM_CONVERSIONS" NUMBER(6,0),
         "LAST_UPDATE" DATE,
         "USERNAME" VARCHAR2(16),
         "CREATED_BY" VARCHAR2(16),
         "CREATED_ON" DATE,
         "EDITED_BY" VARCHAR2(16),
         CONSTRAINT "FACILITY_PK" PRIMARY KEY ("FAC_PK") ENABLE,
         CONSTRAINT "FACILITY_STATE_UK" UNIQUE ("FAC_STATE_UK") DISABLE
    CREATE OR REPLACE TRIGGER "BI_FACILITY"
    before insert on "FACILITY"
    for each row
    begin
    if :NEW."FAC_PK" is null then
    select "FACILITY_SEQ".nextval into :NEW."FAC_PK" from dual;
    end if;
    end;
    for the WELL table----
    CREATE TABLE "WELL"
    (     "WEL_PK" NUMBER(8,0) NOT NULL ENABLE,
         "FAC_FK" NUMBER(8,0),
         "CNT_FK" NUMBER(8,0),
         "GEO_FK" NUMBER(8,0),
         "WEL_STATE_UK" VARCHAR2(4) DEFAULT '09DI',
         "DELFLAG" VARCHAR2(1) DEFAULT 'N',
         "NAME" VARCHAR2(80) DEFAULT 'No data',
         "SITE" VARCHAR2(50) DEFAULT 'No data',
         "HIGH_PRIORITY_YN" VARCHAR2(1) DEFAULT ('N'),
         "AQUI_EXEMPT_YN" VARCHAR2(1) DEFAULT ('N'),
         "TOTAL_DEPTH" NUMBER(5,0),
         "WELL_IN_SWA" VARCHAR2(1) DEFAULT ('U'),
         "AUD_ACTION" VARCHAR2(10),
         "AUD_TIME" DATE,
         "AUD_BEFORE_VALUE" VARCHAR2(80),
         "AUD_AFTER_VALUE" VARCHAR2(80),
         "LAST_UPDATE" DATE DEFAULT sysdate,
         "USERNAME" VARCHAR2(16) DEFAULT user,
         CONSTRAINT "WEL_AQUI_EXEMPT_YN_CK" CHECK (AQUI_EXEMPT_YN IN ('Y', 'N', 'U' )) DEFERRABLE INITIALLY DEFERRED ENABLE,
         CONSTRAINT "WEL_HIGH_PRIORITY_YN_CK" CHECK (HIGH_PRIORITY_YN IN ('Y', 'N', 'U' )) DEFERRABLE INITIALLY DEFERRED ENABLE,
         CONSTRAINT "WEL_WELL_IN_SWA_CK" CHECK (WELL_IN_SWA IN ('Y', 'N', 'U' )) DEFERRABLE INITIALLY DEFERRED ENABLE,
         CONSTRAINT "WEL_WEL_STATE_UK_NN" CHECK (WEL_STATE_UK is not null) DEFERRABLE INITIALLY DEFERRED DISABLE,
         CONSTRAINT "WEL_WEL_STATE_UK_CK" CHECK (WEL_STATE_UK IN ('09DI', 'CAOC', 'GUEA', 'MPEQ', 'NVEP', 'NNUI' )) DEFERRABLE INITIALLY DEFERRED ENABLE,
         CONSTRAINT "WEL_PK" PRIMARY KEY ("WEL_PK") DEFERRABLE INITIALLY DEFERRED ENABLE
    ALTER TABLE "WELL" ADD CONSTRAINT "WELL_CON_FK" FOREIGN KEY ("FAC_FK")
         REFERENCES "FACILITY" ("FAC_PK") ON DELETE CASCADE ENABLE
    CREATE INDEX "WEL_PK" ON "WELL" ("WEL_PK")
    CREATE OR REPLACE TRIGGER "WEL_WEL_PK"
    BEFORE INSERT ON "WELL"
    FOR EACH ROW
    BEGIN
    SELECT "well_PK_seq".NEXTVAL INTO :NEW.wel_pk FROM DUAL;
    END;
    ALTER TRIGGER "WEL_WEL_PK" ENABLE
    FOR THE WELL_STATUS TABLE -----
    CREATE TABLE "WELL_STATUS"
    (     "STA_PK" NUMBER(8,0) NOT NULL ENABLE,
         "WEL_FK" NUMBER(8,0),
         "DELFLAG" VARCHAR2(1) DEFAULT 'N',
         "WELL_TYPE" VARCHAR2(12) DEFAULT '5X',
         "WELL_TYPE_DATE" DATE,
         "OPER_STATUS" VARCHAR2(2) DEFAULT 'AC',
         "STATUS_DATE" DATE DEFAULT sysdate,
         "CLASS" VARCHAR2(2) DEFAULT '5',
         "R9_WELL_TYPE" VARCHAR2(4),
         "LAST_UPDATE" DATE DEFAULT sysdate,
         "USERNAME" VARCHAR2(16) DEFAULT user,
         CONSTRAINT "STA_CLASS_CK" CHECK (CLASS IN ('0','1','2','3','4','5', 'CV')) DEFERRABLE INITIALLY DEFERRED ENABLE,
         CONSTRAINT "STA_CLASS_NN" CHECK (CLASS is not null) DEFERRABLE INITIALLY DEFERRED ENABLE,
         CONSTRAINT "STA_STATUS_DATE_NN" CHECK (STATUS_DATE is not null) DEFERRABLE INITIALLY DEFERRED ENABLE,
         CONSTRAINT "STA_OPER_STATUS_NN" CHECK (OPER_STATUS is not null) DEFERRABLE INITIALLY DEFERRED DISABLE,
         CONSTRAINT "STA_OPER_STATUS_CK" CHECK (OPER_STATUS IN ('AC','UC', 'TA', 'PA', 'AN', 'PW' )) DEFERRABLE INITIALLY DEFERRED DISABLE,
         CONSTRAINT "STA_WELL_TYPE_NN" CHECK (WELL_TYPE is not null) DEFERRABLE INITIALLY DEFERRED ENABLE,
         CONSTRAINT "STA_PK" PRIMARY KEY ("STA_PK") DEFERRABLE INITIALLY DEFERRED ENABLE
    ALTER TABLE "WELL_STATUS" ADD CONSTRAINT "WELL_STATUS_CON_FK" FOREIGN KEY ("WEL_FK")
         REFERENCES "WELL" ("WEL_PK") ON DELETE CASCADE ENABLE
    CREATE INDEX "STA_PK" ON "WELL_STATUS" ("STA_PK")
    CREATE OR REPLACE TRIGGER "WELL_STATUS_STA_PK"
    BEFORE INSERT ON "WELL_STATUS"
    FOR EACH ROW
    BEGIN
    SELECT "STA_PK_SEQ".NEXTVAL INTO :NEW.sta_pk FROM DUAL;
    END;
    ALTER TRIGGER "WELL_STATUS_STA_PK" ENABLE
    For the PERMIT table-----
    CREATE TABLE "PERMIT"
    (     "PER_PK" NUMBER(8,0) NOT NULL ENABLE,
         "WEL_FK" NUMBER(8,0),
         "DELFLAG" VARCHAR2(1) DEFAULT 'N',
         "NUM_AOR_WELL" NUMBER(6,0),
         "AUT_STATUS" VARCHAR2(2) DEFAULT 'RA',
         "AUT_STATUS_DATE" DATE DEFAULT sysdate,
         "OWNERSHIP_TYPE" VARCHAR2(2) DEFAULT 'PB',
         "SUBMISSION_DATE" DATE,
         "PER_STATE_UK" VARCHAR2(4) DEFAULT '09DI',
         "REQUIRED_YN" VARCHAR2(1) DEFAULT 'N',
         "LAST_UPDATE" DATE DEFAULT sysdate,
         "USERNAME" VARCHAR2(16) DEFAULT user,
         CONSTRAINT "PER_AUT_STATUS_CK" CHECK (AUT_STATUS IN ('IP', 'AP', 'GP', 'EP', 'RA', 'NO' )) DEFERRABLE INITIALLY DEFERRED ENABLE,
         CONSTRAINT "PER_AUT_STATUS_NN" CHECK (AUT_STATUS is not null) DEFERRABLE INITIALLY DEFERRED ENABLE,
         CONSTRAINT "PER_OWNERSHIP_TYPE_CK" CHECK (OWNERSHIP_TYPE IN ('PB', 'PN', 'PF','FG', 'OI','OS', 'OT', 'PV', 'OR' )) DEFERRABLE INITIALLY DEFERRED DISABLE,
         CONSTRAINT "PER_PER_STATE_UK_CK" CHECK (PER_STATE_UK IN ('09DI', 'CAOC', 'GUEA', 'MPEQ', 'NVEP', 'NNUI' )) DEFERRABLE INITIALLY DEFERRED DISABLE,
         CONSTRAINT "PER_PER_STATE_UK_NN" CHECK (PER_STATE_UK is not null) DEFERRABLE INITIALLY DEFERRED DISABLE,
         CONSTRAINT "PER_REQUIRED_YN_CK" CHECK (REQUIRED_YN IN ('Y', 'N')) DEFERRABLE INITIALLY DEFERRED DISABLE,
         CONSTRAINT "PER_REQUIRED_YN_NN" CHECK (REQUIRED_YN is not null) DEFERRABLE INITIALLY DEFERRED DISABLE,
         CONSTRAINT "PER_PK" PRIMARY KEY ("PER_PK") DEFERRABLE INITIALLY DEFERRED ENABLE
    ALTER TABLE "PERMIT" ADD CONSTRAINT "PERMIT_CON_FK" FOREIGN KEY ("WEL_FK")
         REFERENCES "WELL" ("WEL_PK") ON DELETE CASCADE ENABLE
    CREATE INDEX "PER_PK" ON "PERMIT" ("PER_PK")
    CREATE OR REPLACE TRIGGER "PERMIT_PER_PK"
    BEFORE INSERT ON "PERMIT"
    FOR EACH ROW
    BEGIN
    SELECT "PER_PK_seq".NEXTVAL INTO :NEW.per_pk FROM DUAL;
    END;
    ALTER TRIGGER "PERMIT_PER_PK" ENABLE
    THESE ALL ARE TABLE STRUCTURE

  • I'm not able to load windows 8.1 with boot camp on new MacBook Pro retina with on the new mavericks 10.9. If anybody can help? thanks. Michel

    I already spent half a day in order to load windows 8.1 on my new Macbookpro Retina without success. Boot camp not reconize the USD drive with windows 8.1. Is anybody able to help me?

    I already spent half a day in order to load windows 8.1 on my new Macbookpro Retina without success. Boot camp not reconize the USD drive with windows 8.1. Is anybody able to help me?

  • Not able to retrieve data from table faster

    Hi All,
    I have a table tab1, and I am creating one more table tab2 by selecting col1,col2 of tab1.
    creation query would be like this.
    create table tab2 as
    select as select /*+ parallel(qla,20) */ col1,col2 from tab1;
    Table tab2 is created, but the problem is when we query tab2 it is taking too long time to display the results, and the table tab2 is having arount 400 million data.
    Request every one to suggest how to improve the query performance which is
    select * from tab2;

    See the forum FAQ
    SQL and PL/SQL FAQ
    *3. How to improve the performance of my query? / My query is running slow.*
    SQL and PL/SQL FAQ

  • Not able to convert date in char with interval

    When i run below
    SQL> select to_date('20120229','YYYYMMDD') + interval '1' day from dual;
    TO_DATE('
    01-MAR-12
    How can i change this output to YYYYMMDD format.
    Desired output - *20120301*
    I tried with to_char making on above query,It didn't work !

    Hi,
    Not really a SQL Developer tool question. Next time, please try the SQL and PL/SQL forum in the Oracle Database section:
    PL/SQL
    But this will do the trick:
    select to_date('20120229','YYYYMMDD') + interval '1' day from dual;
    select to_char(to_date('20120229','YYYYMMDD') + 1, 'YYYYMMDD') as mydateformat from dual; produces this
    TO_DATE('20120229','YYYYMMDD')+INTERVAL'1'DAY
    01-MAR-12                
    MYDATEFORMAT
    20120301     Regards,
    Gary
    SQL Developer Team

  • Not able to load master data

    HI Friends,
    I am not able to load data in master data even after deleting the master data. when i am schedule then the data is not even load in PSA , I am using the SRM as source system,
    The SRM is refreshed every quater so we need to re load the data from that system.
    Can you please suggest how to go about as it is very urgent ,
    I have checked that the connection is working fine but there is one short dump that is coming
    this is information that st22 is provding
    The termination occurred in the ABAP program "SAPLRSS1 " in                   
    "RSM1_CHECK_FOR_DELTAUPD".                                                   
    The main program was "RSPROCESS ".                                                                               
    The termination occurred in line 1361 of the source code of the (Include)     
    program "LRSS1F11 "                                                          
    of the source code of program "LRSS1F11 " (when calling the editor 13610).    
    The program "SAPLRSS1 " was started as a background job.                      
    Thanks
    Raju

    Hi Raju,
    Very strange to see your dump mesg when you are doing full load.
    Are you sure this dump is realted to your load.
    Check if your transfer structure is active or try doing following steps:
    1. Kill all the jobs runing in BW system.
    2. Delete all the data in all the realted data targets and infoobjects.
    3. Then try uploading data one by one.
    Ans why dont your try uploading data first only to PSA.
    Regards,
    Rohini

  • Not able to see data in Pivot table

    Hi,
    I have a issue with pivot table i have a column which displays values 0 and 1 and another column called month when i am placing this month column as a section and values column as a measure i am not seeing any values means i can see the month as header but instead showing 0 or 1 its showing blank columns. previously i created similar kind of table it worked but at that time values column data type is number this time its char. can anybody help me out how i can see the data in the pivot table. i already tried converting this column to number but still i am not able to see data in that values column.
    Thanks

    Hi copter,
    Place the month column in rows and value column in measure section and check if results are coming.If still it doesnt come i suppose you dint apply aggregation rules to value column.In pivot view click values column and aggregate by /select min or max or either server complex and check your results.
    (I suppose your aggregation rules is default)....Correct this one and you can place it in sections as per your requirement.
    Cheers,
    KK

  • HT1206 Can I have in one iphone 5 music from more than one itunes accounts?  My daughter and I have our music in the same pc. She and I have iTunes accounts. I have not been able to load in my ophone with my itunes acct music that she purchased in her acc

    Can I have in one iphone 5 music from more than one itunes accounts?  My daughter and I have our music in the same pc. She and I have iTunes accounts. I have not been able to load in my ophone with my itunes acct music that she purchased in her account.  I have not been able to do this. Thanks

    iTunes Match is not sharable across Apple IDs. The best way to get the music on her iPad is to leave hers signed into her Apple ID on the iTunes Store and sync via USB.

  • HT1414 my ipad with retina eye updated to IOs 7 not able to boot ....the normal way of pressing the sleep/wake button and the  home button does'nt work....any ideas i think that IOs 7 is a crap cos form the time i loaded it it was shaky...now my ipad is d

    my ipad with retina eye updated to IOs 7 not able to boot ....the normal way of pressing the sleep/wake button and the  home button does'nt work....any ideas i think that IOs 7 is a crap cos form the time i loaded it it was shaky...now my ipad is dead

    If it is one year old minus one day it is still under warranty. If it is more than a year since you purchased it then yes, the warranty has expired.
    Millions of iPads have been sold. Most continue to function long after their warranty has expired. Check the many requests about updating the iOS on the original iPad on these forums and you'll see that there are many iPads still working after three years. My iPad 2, which I had for over two years is still working well for my son in law who took it over from me when I bought a new one.
    Given that there will always be a few iPads that fail early. Most of those will be covered under warranty. But some will fail after the warranty has expired and before the owner expected it to. I'm sorry to hear that you are in this category. Take your iPad to an Apple store and have it looked at. They will provide you with alternatives, one of which is to purchase a like model to the one that failed at a discount. You can then know your options and make the best choice for you.

  • CSD Load Data Full completing with Could not find server for data domain Error

    Hi,
    We have installed the Oracle Ebusiness suite extension with Endeca following the Oracle Support note : 1562372.1.
    We found that the CSD Load Data Full completing with below error :
    Element [ENDECA_MERGE_RECORDS0:Bulk Add/Replace Records]-Component pre-execute initialization failed.
            at org.jetel.graph.Node.run(Node.java:446)
            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
            at java.lang.Thread.run(Thread.java:722)
    Caused by: Failed with the following exception:
            java.rmi.RemoteException: Could not find server for data domain Error connecting to the Endeca Server. If applicable, ensure your SSL settings are correct; nested exception is:
            org.apache.axis2.AxisFault: Could not find server for data domain
            at com.endeca.clover.adapters.BaseAdapter.preExecute(BaseAdapter.java:155)
            at org.jetel.graph.Node.run(Node.java:444)
            ... 3 more
    Caused by: java.rmi.RemoteException: Could not find server for data domain Error connecting to the Endeca Server. If applicable, ensure your SSL settings are correct; nested exception is:
            org.apache.axis2.AxisFault: Could not find server for data domain
            at com.endeca.clover.adapters.DIWSConsumer.initIngestStub(DIWSConsumer.java:99)
            at com.endeca.clover.adapters.DIWSConsumer.<init>(DIWSConsumer.java:45)
            at com.endeca.clover.adapters.merge.MergeRecordsConsumer.<init>(MergeRecordsConsumer.java:51)
            at com.endeca.clover.adapters.merge.UpsertRecordsConsumer.<init>(UpsertRecordsConsumer.java:36)
            at com.endeca.clover.adapters.merge.MergeRecordsAdapter.getConsumer(MergeRecordsAdapter.java:110)
            at com.endeca.clover.adapters.DIWSAdapter.createConsumerThreads(DIWSAdapter.java:56)
            at com.endeca.clover.adapters.BaseAdapter.preExecute(BaseAdapter.java:146)
            ... 4 more
    Caused by: org.apache.axis2.AxisFault: Could not find server for data domain
            at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:446)
            at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:371)
            at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:417)
            at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)
            at org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)
            at com.endeca.dataingest.axis2.ingest.IngestStub.ingestChanges(IngestStub.java:791)
            at com.endeca.clover.adapters.DIWSConsumer.initIngestStub(DIWSConsumer.java:88)
            ... 10 more
    Kindly request your help in resolving this error.

    Hi,
    We have installed the Oracle Ebusiness suite extension with Endeca following the Oracle Support note : 1562372.1.
    We found that the CSD Load Data Full completing with below error :
    Element [ENDECA_MERGE_RECORDS0:Bulk Add/Replace Records]-Component pre-execute initialization failed.
            at org.jetel.graph.Node.run(Node.java:446)
            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
            at java.lang.Thread.run(Thread.java:722)
    Caused by: Failed with the following exception:
            java.rmi.RemoteException: Could not find server for data domain Error connecting to the Endeca Server. If applicable, ensure your SSL settings are correct; nested exception is:
            org.apache.axis2.AxisFault: Could not find server for data domain
            at com.endeca.clover.adapters.BaseAdapter.preExecute(BaseAdapter.java:155)
            at org.jetel.graph.Node.run(Node.java:444)
            ... 3 more
    Caused by: java.rmi.RemoteException: Could not find server for data domain Error connecting to the Endeca Server. If applicable, ensure your SSL settings are correct; nested exception is:
            org.apache.axis2.AxisFault: Could not find server for data domain
            at com.endeca.clover.adapters.DIWSConsumer.initIngestStub(DIWSConsumer.java:99)
            at com.endeca.clover.adapters.DIWSConsumer.<init>(DIWSConsumer.java:45)
            at com.endeca.clover.adapters.merge.MergeRecordsConsumer.<init>(MergeRecordsConsumer.java:51)
            at com.endeca.clover.adapters.merge.UpsertRecordsConsumer.<init>(UpsertRecordsConsumer.java:36)
            at com.endeca.clover.adapters.merge.MergeRecordsAdapter.getConsumer(MergeRecordsAdapter.java:110)
            at com.endeca.clover.adapters.DIWSAdapter.createConsumerThreads(DIWSAdapter.java:56)
            at com.endeca.clover.adapters.BaseAdapter.preExecute(BaseAdapter.java:146)
            ... 4 more
    Caused by: org.apache.axis2.AxisFault: Could not find server for data domain
            at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:446)
            at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:371)
            at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:417)
            at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)
            at org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)
            at com.endeca.dataingest.axis2.ingest.IngestStub.ingestChanges(IngestStub.java:791)
            at com.endeca.clover.adapters.DIWSConsumer.initIngestStub(DIWSConsumer.java:88)
            ... 10 more
    Kindly request your help in resolving this error.

Maybe you are looking for