Load the BLOB column in Oracle to an Image column in MS SQL Server

Hello
I have an Oracle table as the source and a MS SQL Server table as a target. A blob column (4000) in the source is mapped to a column (2147483647) Image in the target.
Execution will give me the error message "* java.lang.NumberFormatException: for the input string:"4294967295"*"when it comes to step 'load the data into the staging of table' '.
The LKM that I use is LKM SQL for MSSQL.

I also tried LKM SQL for MSSQL (BULK), LKM SQL for SQL (jython), LKM SQL for SQL. None of them are useful.

Impossible, someone tell me how to fix this 4294967295? Thank you very much

Hi Yang,

Oracle recommends the setting of the 'get_lob_precision' false flag to avoid this error.

For this,.

1. make a backup of your ODIPARAM. BAT file.
2. open ODIPARAM. BAT file and add the following line.

Set ODI_ADDITIONAL_JAVA_OPTIONS = % ODI_ADDITIONAL_JAVA_OPTIONS % ""-Doracledatabasemetadata.get_lob_precision = false ' "

Next to

Set ODI_ADDITIONAL_JAVA_OPTIONS = ""-Djava.security.policy = server.policy ' "

PS:If, the parameter is defined, the result "ODI_ADDITIONAL_JAVA_OPTIONS" ("SNP_ADDITIONAL_JAVA_OPTIONS" or "SNP_JAVA_OPTIONS") should be similar to the foregoing.

Restart the ODI and try.

Thank you
G

Tags: Business Intelligence

Similar Questions

  • compress the blob column to save space on the server

    Hi friends,

    I have a problem with the blob column, in the oracle 11.2.0.4 on aix Server database

    I have a table with a blob of column (containing a jpg file). This table is in a tablespace of 300 GB and storage space is full. There is no space on the server (asm).

    I need to load the jpg more in this table, but there is no space.

    I've read a few articles on tha compress blob type column, but I'm not sure what I should do.

    Is it possible to compress the blob column without going to a different tablespace (because the server has no more space to create a new one).

    The table and column have been created in a traditional way.

    Please, advice?

    Best regards

    Dbape.

    But this method requires add-on EA "Adv. Compression" ($$$).

    OP he wanted to compress .jpg files.

    BUDOKAI

    It is not possible.

    the .jpg files are already compressed.

    IIRC (of my Compression Adv. test) - SecureFile "knows best" and will not try to compress BLOBs identified as JPGs or any other known formats of files (such as .zip files)

    In other words - SecureFile is not the OP no good for the type of data, it is try to compress them.

    Are the only solutions that the OP has to enable it to store more JPG images

    • get rid of the old pictures
    • Add more disks
    • resize images (ordimage)
    • recompress the image by reducing the quality as long as the resulting image is unusable (ordimage)

    MK

  • Stored in the BLOB column display PDF problem

    Hello everyone.

    I tried to follow this tutorial http://asktom.oracle.com/pls/asktom/f?p=100:11:0:p11_question_id:232814159006 on the display of PDF files stored in BLOB columns. This is done on Apex 4.2, with my DB 11 g running. I have my procedure, which I will post below:
    create or replace procedure "PDF" (p_id IN gvo_documents.doc_id%type)
    is
        l_lob    blob;
        l_amt    number default 30;
        l_off   number default 1;
        l_raw   raw(4096);
    begin
        select contents into l_lob
            from gvo_documents 
             where doc_id = p_id;
    
     -- make sure to change this for your type!
        owa_util.mime_header( 'application/pdf' );
    
    
        begin
            loop
              dbms_lob.read( l_lob, l_amt, l_off, l_raw );
              htp.prn( utl_raw.cast_to_varchar2( l_raw ) );
              l_off := l_off+l_amt;
              l_amt := 4096;            
        end loop;
            exception
               when no_data_found then 
                  NULL;
            end;
    
    end;
    
    I am trying to run this through a region dynamic PL/SQL, and even if I don't get any error, the content displayed is a huge mess of truncated text and strange characters. I tried to run this procedure on many other types of documents, including word and jpeg image files, all with the necessary changes in my inside, and regardless of what I use, I always get a big mess of strange characters. Does anyone have information or ideas why this is happening?

    If I understand correctly, your needs must be broken down into two problems:
    1) click the link that opens a window showing a new APEX page
    (2) an APEX page displays the document, download it not.

    I did not (yet) #1.
    However, you can generate a URL that points to the new page in the select for the report.

    It's a related issue, but no response yet:
    Open the pdf file in the browser window

    The key is to target = "_blank" to the anchor tag.
    To generate the URL, you must use the APEX_UTIL.prepare_URL () function.

    If this does not work, a dynamic Action that makes magical things of JavaScript may be necessary.

    # 2, I lost the URL that showed how to display a PDF file in a page "form.
    From what I remember:
    Start with a blank page with a pristine area of HTML (all items will in the HTML area)
    Add an element to the PK/annual
    part I forgot Create a Data Manipulation process
    -Automated row Fetch
    -By loading - after the header
    -(stuff for your table/view)
    part I forgot Create a (I think) "File browser" item type. For the parameters:
    -Storage of Type "BLOB column specified in the Source element" (and put the name of the BLOB column)
    -MIME Type column: (column name) - since there are several types, this is a MUST HAVE
    -Filename column: (column name) - I highly recommend you have this.
    -Provision of content is INLINE<-- this="" is="" the="">

    In addition, you will need a browser for each of the Types MIME Plugin (if not, the browser may try to "Download" the file)
    Browsers can manage the types of images internally. Plugin Adobe can handle PDF files. I do not know Word/Excel.

    Yet once again, I don't remember the exact details, but that should cover most of it.

    MK

  • Prepare a document to insert a row that contains the Blob column. Is what sense this correct?

    When we prepare the statement to insert a row that contains the Blob column. Is what sense this correct? And what is the difference? Does anyone know?

    1 Preparestatement.setBlob(parameter number, blob type object)

    2 Preparestatement.setBlob(parameter number, inputstream type object)

    This link shows the test I did.

    https://community.Oracle.com/thread/3680185?SR=Inbox & customTheme = OTN

    When we prepare the statement to insert a row that contains the Blob column. Is what sense this correct? And what is the difference? Anyone know?

    1 Preparestatement.setBlob(parameter number, blob type object)

    2 Preparestatement.setBlob(parameter number, inputstream type object)

    I answered in your other thread and provided a link to the JDBC Dev Guide section, which explains how to work with type LOB and BFILE data.

    Have you read this article from doc?

    Did you read my response to your other thread?

    In java, a BLOB is just the index that gives you access to the content. In your case, you access by selecting a locator BLOB existing and getting his inputstream. This inputstream is what allows you to access the content real blob.

    The Locator is just that; It specifies the LOCATION of the blob content, but NOT the content.

  • Interactive report will not save the BLOB column attributes

    I created several interactive reports with the 4.0 and 4.1 which had columns of type BLOB with no problems and the download link worked fine. After 4.2 update, interactive reports get the following error when you click on the download link:
    Not found
    The requested URL /apex/apex_util.get_blob was not found on this server

    If I open the edit page of the report, the BLOB downloads very well. When I looked at the report in detail the attributes of the BLOB column, I noticed that the BLOB column attributes had not been met. I tried several times to fill in (name of the Table column name, Primary Key, MIMETYPE, etc), but after applying changes and reopen the attributes page for the blob column, the values, that I entered is not saved.
    For completeness, here is the select statement for the report:
    Select "DESC_ATT_ID."
    "BR_ID,"
    "FILENAME."
    "MIME TYPE"
    DBMS_LOB. GetLength ("DESC_ATTACHMENT") 'DESC_ATTACHMENT '.
    of ' #OWNER # '. " ALTEC_BR_DESC_ATT ".
    WHERE BR_ID =: P3_BR_ID

    Also, here is the value for the number/Date of the BLOB column format:
    DOWNLOAD: ALTEC_BR_DESC_ATT:DESC_ATTACHMENT:DESC_ATT_ID

    Can someone tell me please in the right direction to get the link to the interactive report work correctly?
    Thank you very much
    Jerry

    Hello
    How about you, you do not format BLOB column, do you it manually like this example here:

    Apex. Oracle.com
    workspace: somefeto
    user: test
    PWD: test
    Application 63066

    in the same workspace, there is Sample File Upload and Download (App ID 10540), and it works very well...

    If not, Pls, reproduce the problem on apex.oracle.com

    Best regards
    Fateh
    ------
    If you believe that my answer is correct or helpful to you pls, then mark the reply as useful or correct

  • How to stop the blob column don't affect display performance.

    Hello
    I have an external table that has a blob column. The table has at present about 40 recordings that the blob column is reading in some 150 MB total records. When I try to view the external table performance is terrible, takes to always display the table. I thought far around from this would be to create a view that would leave the blob column, in an attempt to show folders quickly, but it has no impact on performance.

    Is it possible to create the view that returns the columns I want quickly for these 40 weird files?

    Ben

    Benton says:
    Hello
    I have an external table that has a blob column. The table has at present about 40 recordings that the blob column is reading in some 150 MB total records. When I try to view the external table performance is terrible, takes to always display the table. I thought far around from this would be to create a view that would leave the blob column, in an attempt to show folders quickly, but it has no impact on performance.

    Is it possible to create the view that returns the columns I want quickly for these 40 weird files?

    Ben

    You can try to create 2 external tables out of this file, without the BLOB column and another containing the BLOB column.

    Then query the external table BLOBless when you have no need for the BLOB.

  • How to insert data into the BLOB column

    Hi all

    Can someone help me to insert data in the BLOB data type column?

    The structure of the table is
    CREATE TABLE XXATFL_DM_FORCAST_STG
    (
    TASK_ID NUMBER,
    USER_ID NUMBER,
    CREATED_BY NUMBER (15),
    CREATION_DATE DATE,
    LAST_UPDATED_BY NUMBER (15),
    DATE OF LAST_UPDATE_DATE,
    LAST_UPDATE_LOGIN NUMBER (15),
    RECORD_STATUS VARCHAR2 (1 BYTE),
    ERROR_MESSAGE VARCHAR2 (4000 BYTE),
    DATA_FILE BLOB
    )

    I want to insert data into the column DATA_FILE. and this insert statement inside a procedure.

    Please help me as soon as possible because it is very urgent for me

    Thank you and best regards,
    Charrier

    Charrier,

    If you form the string yourself, you can use the function utl_raw.cast_to_raw on your channel.

    http://download.Oracle.com/docs/CD/B12037_01/AppDev.101/b10802/u_raw.htm#997086

    sql> create table t(
      2    id number,
      3    l_blob blob
      4  );
    
    sql> insert into t values(1, utl_raw.cast_to_raw('SampleString'));
    
    1 row created.
    
    sql> commit;
    
    Commit complete.
    
  • Update the Blob column by replacing a string...

    Hello

    I have a table T1 with a (large binary BLOB) column, I need (you) to update the Blob string with replacement of a chain (in the Blob) with another string.

    The update failed: ORA-00933: not correctly completed SQL command

    CREATE table T1

    (

       ID                   NOMBRE (12)           PAS NULL,

    DELIVERY_CONTENT BLOB ,

    )

    Update   T1 The VALUE DELIVERY_CONTENT = LOB_UTL_PCKG . BLOBREPLACE ()DELIVERY_CONTENT 'old_string' 'new_string'( )

    WHERE ID in (...)

    ORA-00933: SQL not correctly completed command

    I use a function LOB_UTL_PCKG . BLOBREPLACE starting from this package

    CREATE OR REPLACE PACKAGE LOB_UTL_PCKG

    IS

    FUNCTION BLOBREPLACE ()p_blob BLOB p_what VARCHAR2 p_with_what VARCHAR2() RETURN BLOB

    FUNCTION BLOB2CLOB (p_blob BLOB) RETURN CLOB ;

    FUNCTION CLOB2BLOB (p_clob CLOB) RETURN BLOB ;

    END;

    /

    CREATE OR REPLACE PACKAGE BODY LOB_UTL_PCKG

    IS

    FUNCTION BLOBREPLACE ()p_blob BLOB p_what VARCHAR2 p_with_what VARCHAR2()RETURN BLOB 

    IS

    START

    RETURN CLOB2BLOB () REPLACE (BLOB2CLOB()p_blob), p_what p_with_what( ) );

    END BLOBREPLACE ;

    ------------------------------ BLOB2CLOB -------------------------

    FUNCTION BLOB2CLOB (p_blob in BLOB) RETURN CLOB

    IS

       v_clob     CLOB ;

    dest_offset INTEGER := 1 ;

    offset INTEGER := 1 ;

    lang_context INTEGER := DBMS_LOB. DEFAULT_LANG_CTX;

    warning INTEGER ;

    START

    DBMS_LOB. CREATETEMPORARY ( ) v_clob TRUE );

    DBMS_LOB. CONVERTTOCLOB( )

    v_clob ,

    p_blob ,

    DBMS_LOB. LOBMAXSIZE,

    dest_offset ,

    offset ,

    DBMS_LOB. DEFAULT_CSID,

    lang_context ,

    warning

    );

    RETURN v_clob ;

    END BLOB2CLOB ;

    ------------------------------ CLOB2BLOB -------------------------

    FUNCTION CLOB2BLOB (p_clob CLOB) RETURN BLOB

    ACE

       l_blob     BLOB ;

    l_dest_offset INTEGER := 1 ;

    l_source_offset INTEGER := 1 ;

    l_warning INTEGER ;

    lang_context INTEGER := DBMS_LOB. DEFAULT_LANG_CTX;

    START

    DBMS_LOB. CREATETEMPORARY()l_blob TRUE);

    DBMS_LOB. CONVERTTOBLOB( )

    l_blob ,

    p_clob ,

    DBMS_LOB. LOBMAXSIZE,

    l_dest_offset ,

    l_source_offset ,

    DBMS_LOB. DEFAULT_CSID,

    lang_context ,

    l_warning

    );

    RETURN l_blob ;

    END CLOB2BLOB ;

    END;

    /

    Concerning

    Djam

    It works well for me.

    Update T1 SET DELIVERY_CONTENT is LOB_UTL_PCKG. BLOBREPLACE (DELIVERY_CONTENT, 'old_string', 'new_string')

    Where IDSQL > 2 = 1;

    0 lines to date.

  • Load the XML file into Oracle external Table


    I load the data from the XML file into an intermediate table Oracle using external Tables.

    Let's say below, it is my XML file

    < header >
    < A_CNT > 10 < / A_CNT >
    < E_CNT > 10 < / E_CNT >
    < AF_CNT > 10 < / AF_CNT >
    < / header >
    < student >
    <>students-details
    < Student_info >
    < Single_Info >
    < ID > 18 / < ID >
    New York < City > < / City >
    < country > United States < / country >
    < Name_lst >
    < Student_name >
    Samuel < name > < / name >
    Paul < Last_name > < / Last_name >
    < DOB > 19871208 < / DOB >
    Aware of < RecordStatus > < / RecordStatus >
    < / Student_name >
    < Student_name >
    Samuel < name > < / name >
    Paul < Last_name > < / Last_name >
    < DOB > 19871208 < / DOB >

    < TerminationDt > 20050812 < / TerminationDt >
    History of < RecordStatus > < / RecordStatus >
    < / Student_name >
    < / Name_lst >
    < Personal_Info >
    <>men < / Type >
    < 27 > < / Age >
    < / Personal_Info >
    < / Single_Info >
    < / Student_info >

    < student - register >
    class < A >
    < info >
    < detail >
    < ID student > 18 < / student >
    EE < major > < / Major >
    < course-Grades >
    < course > VLSI < / course >
    < degree > 3.0 < / Grade >
    < / course-Grades >
    < course-Grades >
    < course > nanotechnology < / course >
    < degree > 4.0 < / Grade >
    < / course-Grades >
    < / details >
    < detail >
    < ID student > 18 < / student >
    THIS < major > < / Major >
    < / details >
    < / info >
    class < A >
    < Student_Enrol >
    <>students-details
    < student >

    I load this XML data file into a single table using an external Table. Could someone help me please with coding.

    Thank you

    Reva

    Could you please help me how to insert my XML content into that.

    Same as before, try a plain old INSERT:

    insert into xml_pecos

    values)

    XmlType (bfilename ('XML_DIR', "test.xml"), nls_charset_id ('AL32UTF8'))

    );

    But you'll probably hit the same limitation as with the binary XMLType table.

    In this case, you can use FTP to load the file as a resource in the XML DB repository.

    If the XML schema has been registered with the hierarchy enabled then the file will be automatically inserted into the table.

    Could you post the exact statement that you used to save the scheme?

    In the meantime, you can also read this article, I did a few years ago, it covers the XML DB features that may be useful here, including details on how to load the file via FTP:

    https://odieweblog.WordPress.com/2011/11/23/Oracle-XML-DB-a-practical-example/

    And documentation of the course: http://docs.oracle.com/cd/E11882_01/appdev.112/e23094/xdb06stt.htm#ADXDB4672

  • How to display image in the data from the blob column item

    Hello
    This is pavan, I try to upload images in the tables and display.
    I was able to download the data in the table using this http://www.apexninjas.com/blog/2011/09/uploading-and-displaying-images-in-apex/
    but I'm unable to display in the report or item and also I have mentioned these http://docs.oracle.com/cd/E37097_01/doc/doc.42/e35127/apex_util.htm#AEAPI129 post but I din't get how to put an element valid POINT with the type of FILE that contains the type of source of column DB application page name.
    and also, I raised the thread https://community.oracle.com/message/9616066that also in response that he has changed the type of data that we need I don't have.
    can someone help me on this please
    Kind regards
    Pavan

    creating manual p3_image point of page that is display in form of image display and check point p3_image for more information how image

    in your application.

    Leave.

  • delete the blob column

    Hey all,.
    I have these tables:
    Products
    CREATE TABLE "COMPDB"."PRODUCTS" 
       (     "PRO_ID" NUMBER NOT NULL ENABLE, 
         "PRO_NAME" VARCHAR2(40 BYTE) NOT NULL ENABLE, 
         "COMPETITOR" NUMBER NOT NULL ENABLE, 
         "CATEGORY" NUMBER NOT NULL ENABLE, 
         "INS_USER" VARCHAR2(50 BYTE), 
         "UPD_USER" VARCHAR2(50 BYTE), 
         "INS_DATE" DATE, 
         "UPD_DATE" DATE, 
         "VERSION" NUMBER, 
         "PHOTO" BLOB, 
         "FILENAME" VARCHAR2(255 BYTE), 
         "MIMETYPE" VARCHAR2(255 BYTE), 
         "LAST_UPDATE_DATE" DATE, 
          CONSTRAINT "PRODUCT_PK" PRIMARY KEY ("PRO_ID")
      USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS 
      STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
      TABLESPACE "COMPDB"  ENABLE, 
          CONSTRAINT "PRO_CAT_FK" FOREIGN KEY ("CATEGORY")
           REFERENCES "COMPDB"."CATEGORY" ("CAT_ID") ON DELETE CASCADE ENABLE, 
          CONSTRAINT "PRO_COMP_FK" FOREIGN KEY ("COMPETITOR")
           REFERENCES "COMPDB"."COMPETITORS" ("COMP_ID") ON DELETE CASCADE ENABLE
       ) SEGMENT CREATION IMMEDIATE 
      PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
      STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
      TABLESPACE "COMPDB" 
     LOB ("PHOTO") STORE AS BASICFILE (
      TABLESPACE "COMPDB" ENABLE STORAGE IN ROW CHUNK 8192 RETENTION 
      NOCACHE LOGGING 
      STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)) ;
     
    
      CREATE OR REPLACE TRIGGER "COMPDB"."TRG_PRODUCTS_BRI" BEFORE
      INSERT ON PRODUCTS REFERENCING OLD AS OLD NEW AS NEW FOR EACH ROW BEGIN IF :NEW.PRO_ID IS NULL THEN
      SELECT PRODUCTS_SEQ.NEXTVAL INTO :NEW.PRO_ID FROM DUAL;
    END IF;
    :NEW.INS_USER := NVL(:NEW.INS_USER,Comm_Usermanagement.Get_Username);
    :NEW.INS_DATE := sysdate;
    :NEW.UPD_USER := NVL(:NEW.UPD_USER,Comm_Usermanagement.Get_Username);
    :NEW.UPD_DATE := sysdate;
    :NEW.VERSION  := NVL(:NEW.VERSION,0);
    END;
    /
    ALTER TRIGGER "COMPDB"."TRG_PRODUCTS_BRI" ENABLE;
     
    
     CREATE OR REPLACE TRIGGER "COMPDB"."TRG_PRODUCTS_BRU" BEFORE
     UPDATE ON PRODUCTS REFERENCING OLD AS OLD NEW AS NEW FOR EACH ROW BEGIN IF NOT UPDATING ('UPD_USER')
     OR :NEW.UPD_USER IS NULL THEN :NEW.UPD_USER := Comm_Usermanagement.Get_Username;
    END IF;
    IF NOT UPDATING ('UPD_DATE') OR :NEW.UPD_DATE IS NULL THEN
      :NEW.UPD_DATE                               := sysdate;
    END IF;
    IF NOT UPDATING ('VERSION') THEN
      :NEW.VERSION := :OLD.VERSION + 1;
    END IF;
    END;
    /
    ALTER TRIGGER "COMPDB"."TRG_PRODUCTS_BRU" ENABLE;
    Competitors:
      CREATE TABLE "COMPDB"."COMPETITORS" 
       (     "COMP_ID" NUMBER NOT NULL ENABLE, 
         "COMP_NAME" VARCHAR2(40 BYTE) NOT NULL ENABLE, 
         "INS_USER" VARCHAR2(50 BYTE), 
         "UPD_USER" VARCHAR2(50 BYTE), 
         "INS_DATE" DATE, 
         "UPD_DATE" DATE, 
         "VERSION" NUMBER, 
          CONSTRAINT "COMPETITOR_PK" PRIMARY KEY ("COMP_ID")
      USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS 
      STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
      TABLESPACE "COMPDB"  ENABLE
       ) SEGMENT CREATION IMMEDIATE 
      PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
      STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
      TABLESPACE "COMPDB" ;
     
    
      CREATE OR REPLACE TRIGGER "COMPDB"."TRG_COMPETITORS_BRI" BEFORE
      INSERT ON COMPETITORS REFERENCING OLD AS OLD NEW AS NEW FOR EACH ROW BEGIN IF :NEW.COMP_ID IS NULL THEN
      SELECT COMPETITORS_SEQ.NEXTVAL INTO :NEW.COMP_ID FROM DUAL;
    END IF;
    :NEW.INS_USER := NVL(:NEW.INS_USER,Comm_Usermanagement.Get_Username);
    :NEW.INS_DATE := sysdate;
    :NEW.UPD_USER := NVL(:NEW.UPD_USER,Comm_Usermanagement.Get_Username);
    :NEW.UPD_DATE := sysdate;
    :NEW.VERSION  := NVL(:NEW.VERSION,0);
    END;
    /
    ALTER TRIGGER "COMPDB"."TRG_COMPETITORS_BRI" ENABLE;
     
    
      CREATE OR REPLACE TRIGGER "COMPDB"."TRG_COMPETITORS_BRU" BEFORE
      UPDATE ON COMPETITORS REFERENCING OLD AS OLD NEW AS NEW FOR EACH ROW BEGIN IF NOT UPDATING ('UPD_USER')
      OR :NEW.UPD_USER IS NULL THEN :NEW.UPD_USER := Comm_Usermanagement.Get_Username;
    END IF;
    IF NOT UPDATING ('UPD_DATE') OR :NEW.UPD_DATE IS NULL THEN
      :NEW.UPD_DATE                               := sysdate;
    END IF;
    IF NOT UPDATING ('VERSION') THEN
      :NEW.VERSION := :OLD.VERSION + 1;
    END IF;
    END;
    /
    ALTER TRIGGER "COMPDB"."TRG_COMPETITORS_BRU" ENABLE;
     
    Category
     
    
      CREATE TABLE "COMPDB"."CATEGORY" 
       (     "CAT_ID" NUMBER NOT NULL ENABLE, 
         "CAT_NAME" VARCHAR2(40 BYTE) NOT NULL ENABLE, 
         "INS_USER" VARCHAR2(50 BYTE), 
         "UPD_USER" VARCHAR2(50 BYTE), 
         "INS_DATE" DATE, 
         "UPD_DATE" DATE, 
         "VERSION" NUMBER, 
          CONSTRAINT "CATEGORY_PK" PRIMARY KEY ("CAT_ID")
      USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS 
      STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
      TABLESPACE "COMPDB"  ENABLE
       ) SEGMENT CREATION IMMEDIATE 
      PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
      STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
      TABLESPACE "COMPDB" ;
     
    
      CREATE OR REPLACE TRIGGER "COMPDB"."TRG_CATEGORY_BRI" BEFORE
      INSERT ON CATEGORY REFERENCING OLD AS OLD NEW AS NEW FOR EACH ROW BEGIN IF :NEW.CAT_ID IS NULL THEN
      SELECT CATEGORY_SEQ.NEXTVAL INTO :NEW.CAT_ID FROM DUAL;
    END IF;
    :NEW.INS_USER := NVL(:NEW.INS_USER,Comm_Usermanagement.Get_Username);
    :NEW.INS_DATE := sysdate;
    :NEW.UPD_USER := NVL(:NEW.UPD_USER,Comm_Usermanagement.Get_Username);
    :NEW.UPD_DATE := sysdate;
    :NEW.VERSION  := NVL(:NEW.VERSION,0);
    END;
    /
    ALTER TRIGGER "COMPDB"."TRG_CATEGORY_BRI" ENABLE;
     
    
      CREATE OR REPLACE TRIGGER "COMPDB"."TRG_CATEGORY_BRU" BEFORE
      UPDATE ON CATEGORY REFERENCING OLD AS OLD NEW AS NEW FOR EACH ROW BEGIN IF NOT UPDATING ('UPD_USER')
      OR :NEW.UPD_USER IS NULL THEN :NEW.UPD_USER := Comm_Usermanagement.Get_Username;
    END IF;
    IF NOT UPDATING ('UPD_DATE') OR :NEW.UPD_DATE IS NULL THEN
      :NEW.UPD_DATE                               := sysdate;
    END IF;
    IF NOT UPDATING ('VERSION') THEN
      :NEW.VERSION := :OLD.VERSION + 1;
    END IF;
    END;
    /
    ALTER TRIGGER "COMPDB"."TRG_CATEGORY_BRU" ENABLE;
    Now my problem:
    To remove the blob (content) column in the products and the columns, which belong to this column (Filename, Mimetype, Last_update_date).
    EMPTY_BLOB() does not work :-/
    as the null value.

    I can always download the file, although I can see null in this column in sql developer.


    I hope someone can help.

    Locke90210 wrote:

    I can always download the file, although I can see null in this column in sql developer.

    I hope someone can help.

    What code did you use to set the null values?
    Have you clicked on the button "validation"?

    (and, Yes, this should be in the SQL forum)

    MK

  • I can not load the Home Page of Oracle E-Business Suite Applications

    I have installation ebs 12.1.1 on windows server 2003 and I can't load the Home Page of the Oracle Applications (http://ebsoracle.workshop.cl:8000)

    What could be the cause?

    Is there a log of information on this failure?

    I check the host file and that's okay

    Help me please.

    Thank you.

    I have installation ebs 12.1.1 on windows server 2003 and I can't load the Home Page of the Oracle Applications (http://ebsoracle.workshop.cl:8000)

    What could be the cause?

    What is the error?

    Is there a log of information on this failure?

    I check the host file and that's okay

    Make sure that apache log files (error_log * and access_log * under the $LOG_HOME/ora/10.1.3/Apache Directory).

    In addition, run AutoConfig and make sure that it ends successfully.

    Thank you
    Hussein

  • Load the XML file into oracle DB using OWB

    Hi friends,

    I'm new XML data.
    I had a requirememnt to load the xml file into an oracle table.
    Can someone procedure to load the data.

    Thanks in advance

    see this

    http://blogs.Oracle.com/warehousebuilder/2007/09/leveraging_xdb.html

  • Load the XML file into oracle using sql loader

    Hello

    I'm trying to load an xml file into a table using sqlldr.
    I have a table as follows:
    CREATE TABLE xmlloadtable
    ( id number,
     data_xml XMLType
     )
      XmlType data_xml STORE AS CLOB;
    I have a control file that I know is perfectly false:
    LOAD DATA 
    INFILE '/home/oraread/'
    INTO TABLE xmlloadtable 
    (
    id,
    data_xml 
    )
    I googled for the file control and tried in different ways, but of no use.
    I want to load the entire xml file into the table.
    Can someone help me with the correct control file. Any help is appreciated!

    Try this

    LOAD DATA
    INFILE '/home/oraread/'
    INTO TABLE xmlloadtable
    (id,
     file_name          filler,
     data_xml          lobfile(file_name) terminated by eof
    )
    

    You can add the file as a column name field to your table between the id and xml column and remove the word to fill in the .ldr file if you need to keep the name of the file

  • Should be a simple question: How do I search for properties of the BLOB columns?

    Hi people,

    It's just out of my mind. How can I get a BLOB properties using the query?

    I have a table with a BLOB column where documents are stored. I would like to get information on the size of each BLOB content.
    SQL> desc document
    Name              Type          Nullable Default Comments 
    ----------------- ------------- -------- ------- -------- 
    OBJECT_ID         NUMBER                                  
    TIMESTAMP         DATE                   sysdate          
    TITLE             VARCHAR2(200) Y                         
    DOCUMENT_TYPE     NUMBER        Y                         
    DOCUMENT_FILENAME VARCHAR2(200) Y                         
    DOCUMENT_TEXT     BLOB          Y   
    How to find the DOCUMENT_TEXT properties (size)?

    Thank you
    Tomas
    dbms_lob.getlength(document_text)
    

Maybe you are looking for