Using XDB for manipulating table BLOBS?
Hi!
I have got a database table with a BLOB column which contains MS Office documents.
For editing the documents I have written a small application for downloading the document, edit it with Office and upload it again to the database. Can I use XDB for this task? If yes it would be easier to use because the users don't have to download and upload the documents...
I would expect the following - when the user clicks for editing a document, I copy the blob-column to a temporary XDB directory (for example /public/editing). The document gets opened from the XDB directory (with file assosiation in the right office program) and the users edit and save the document directly to the XDB folder. When they have finished I update the table BLOB with the XDB file and remove the file from XDB.
Can I use XDB therefore or do you know better solutions? I would be glad about any tips!
Thanks
Markus
I assume that using the XML format for word documents is not an option... If is you register a dummy schema for WORD-ML (Don't try and register the complete schema) and then have a table level trigger to store the content back in your table.
The problem is bi-directional..
First, when the user wants to open a document how are you going to ensure that the 'virtual document' in the XML DB repository has the correct content. Even a trigger on XDB$RESOURCE cannot help here..
Second, for writing the content back in theory a trigger on XDB$RESOURCE could work. However this is an unsupported confguration, since the trigger could slow down repository operation to the point where protocol timeouts could occur.
The 11g XML DB repository events feature was designed to solve these problems...
Message was edited by:
mdrake
Similar Messages
-
Why using workarea for internal table is better in performance
Please tell me
why using workarea for internal table is better in performanceHi Vineet ,
Why would we choose to use an internal table without a header line when it is easier to code one with a header line?
it has following reason.
1)Separate Internal Table Work Area:
The work area (staging area) defined for the internal table is not limited to use with just one internal table.
take ex-
Suppose you want two internal tables for EMPLOYEE one to contain all records and one to contain only those records where country = USA. You could create both of these internal tables without header lines and use only one work area to load data into both of them. You would append all records from the work area into the first internal table. You would conditionally append the USA records from the same work area into the second internal table.
2) Performance Issues: Using an internal table without a header line is more efficient than one with a header line
3) Nested Internal Tables: If you want to include an internal table within a structure or another internal table, you must use one without a header line.
If this one is helpful ,then rewards me
Regards
Shambhu -
Is xmlgen.insertxml used only for single table
Is xmlgen.insertxml used only for single table or can be used to insert the xmldata into xle tables
Thanks,
SudheerHi Sudeesh,
I am fetching data for PO details, GR details along with condition types of PO.
All data is collected in ALV OUTPUT itab, after this I am trying to assign the values of VAT from another itab in ALV OUTPUT LOOP using READ TABLE with reference to PO-PO_ITEM-CONDITION_TYPE.
Now, when the alv loop is getting executed and in that I am fetching data for VAT using READ statement, the program is assigning VAT to all records of output alv with comparison of PO-PO_ITEM-CONDITION_TYPE.
see:
LOOP AT it_alv ASSIGNING <fs-alv>.
READ TABLE it_vat ASSIGNING <fs-vat>
WITH KEY ebeln = <fs-alv>-ebeln
posnr = <fs-alv>-posnr
kschl = 'JVCS'.
IF sy-subrc = 0.
<fs-alv>-vat = <fs-vat>-kbetr / 10.
<fs-alv>-vat_val = <<fs-alv>-vat * it_alv-menge.
END IF.
END LOOP.
Please refer above.
Thanks.
Ritesh -
Should I use TimesTen for unstable table
Hi all,
I have a table that there are a lot of accessing operations to it, include: select, insert, update, delete. My table has 80 columns, about 1M rows, one primary key (2 cols), 5 indexes in other cols.
I want to increase select speed.
Should I use TimesTen Cache for this table? Which cachegroup type (read-only, awt, swt,...) I should use?
Thanks!Sure you could use TimesTen to cache this table from the Oracle database. As you are performing DML against it I would recommend you look at the Asynchronous Write-Through (AWT) Cache Group.
Start here -> http://docs.oracle.com/cd/E21901_01/doc/timesten.1122/e21634/concepts.htm#BABFBIEC
Info on AWT -> http://docs.oracle.com/cd/E21901_01/doc/timesten.1122/e21634/define.htm#CHDJAJAC -
Using Alias for the table column
Dear all,
Can we use alias name for the table column while developing zreport.
ie.,
without using standard table column name ( like mara-matnr ), i wish to use mat_num for matnr. So that, one can easily understand the column.
Could you help me out in this regard.
Thanks in Advance,
S.Sridhar.yes you can declare in ur internal table like
material_number like mara-matnr. -
Any way to use merge for mutliple tables w/ shared PK?
If you have multiple tables who share the same PK (or I should say the main table has a certain valye used as Primary Key and then multiple child tables use that PK as a foreign key), would merge be able to work for you?
in my case I have one source table, which is loaded by flat file and represents a flattened record of what would in my database be separated into multiple tables.
I need to update records from that source table where they exist (based on join of non-PK columns) and then insert where they do not exist. So I thought I could utilize the nifty merge command.
However I am quickly realizing this is not a standard use of merge which seems to be designed for going from one source table to one target tables which are roughly equivalent. But in my case I have one source table which has pieces going into table A, other pieces table B, etc... and all those tables share an ID.
So when I first merge into the main table I use a sequence to generate it's PK. But then the problem becomes, how do I then have this same PK used as the value for the FK in the inserts done by the following merge commands for this child tables?trant wrote:
If you have multiple tables who share the same PK (or I should say the main table has a certain valye used as Primary Key and then multiple child tables use that PK as a foreign key), would merge be able to work for you?
in my case I have one source table, which is loaded by flat file and represents a flattened record of what would in my database be separated into multiple tables.
I need to update records from that source table where they exist (based on join of non-PK columns) and then insert where they do not exist. So I thought I could utilize the nifty merge command.
However I am quickly realizing this is not a standard use of merge which seems to be designed for going from one source table to one target tables which are roughly equivalent. But in my case I have one source table which has pieces going into table A, other pieces table B, etc... and all those tables share an ID.
So when I first merge into the main table I use a sequence to generate it's PK. But then the problem becomes, how do I then have this same PK used as the value for the FK in the inserts done by the following merge commands for this child tables?realize that everyone here speaks SQL
I could better understand what you have & what you desire if you post DDL for all tables
& then you explain what is desired using actual table & column names.
Simply put, I would not recognize any post SQL as being correct, since I do not understand the desired goal/results -
Problem with using SelectOneChoice for a Table column..
Hi
Thank you for reading my post
I have a Table in my database which one of its fields is an status field.
the status can be :
Done
Pending
In-Progress
I have a form that one can edit the records of this table and i want to use a ComboBox for this field.
As you know, the ComboBox should indicate the current value and its change should be reflected to database after user pressed the submit/commit button.
But all my tries failed, i tried to
-put a SelectOneChoice in the form and bind it to the field
-Use Drag and Drop feature to drag and drop the Data Control field on the form as a SelectOneChoice, it shows a Binding Dialog that i can not configure it correctly and it has no help.
Can you please help me to resolve it?
ThanksHi user,
Have a look at Steve M's example at http://www.oracle.com/technology/products/jdev/tips/muench/screencasts/editabletabledropdown/dropdownlistineditabletable.html?_template=/ocom/technology/content/print
Hope this helps,
John -
How to use partioning for big table
Hi,
Oracle 10gR2/Redhat4
RAC database
ASM
I have a big table TRACES that will also grow very fast, actually I have 15 000 000 rows.
TRACES (ID NUMBER,
COUNTRY_NUM NUMBER,
Timestampe NUMBER,
MESSAGE VARCHAR2(300),
type_of_action VARCHAR(20),
CREATED_TIME DATE,
UPDATE_DATE DATE)
The querys that asked this table are and the made a lot of I/O in disks!!
select count(*) as y0_
from TRACES this_
where this_.COUNTRY_NUM = :1
and this_.TIMESTAMP between :2 and :3
and lower(this_.MESSAGE) like :4;
SELECT *
FROM (SELECT this_.id ,
this_.TIMESTAMP
FROM traces this_
WHERE this_.COUNTRY_NUM = :1
AND this_.TIMESTAMP BETWEEN :2 AND :3
AND this_.type_of_action = :4
AND LOWER (this_.MESSAGE) LIKE :5
ORDER BY this_.TIMESTAMP DESC)
WHERE ROWNUM <= :6;
I have 16 distinct COUNTRY_NUM in the table and the TIMESTAMPE is a number that the application insert in the table.
My question is the best solution to tune this table is to use partitioninig to a smal parts?
I need to made a partioning using a list by COUNTRY_NUM and date (YEAR/mounth) , is it a best way to it?
NB: for an example of TRACES in my test database
1 select COUNTR_NUM,count(*) from traces
2 group by COUNTR_NUM
3* order by COUNTR_NUM
SQL> /
COUNTR_NUM COUNT(*)
-1 194716
3 1796581
4 1429393
5 1536092
6 151820
7 148431
8 76452
9 91456
10 91044
11 186370
13 76
15 29317
16 33470Hello,
You can automate and use dbms_scheduler to add monthly partition. Here is an example of your partitioned table with monthly partitions
CREATE TABLE traces (
id NUMBER,
country_num NUMBER,
timestampe NUMBER,
MESSAGE VARCHAR2 (300),
type_of_action VARCHAR (20),
created_time DATE,
update_date DATE
TABLESPACE TEST_DATA - your tablespace_name
PARTITION BY RANGE (created_time)
(PARTITION traces_200901
VALUES LESS THAN
(TO_DATE (' 2009-02-01 00:00:00',
'SYYYY-MM-DD HH24:MI:SS',
'NLS_CALENDAR=GREGORIAN'
TABLESPACE test_data, -- Here you can put partition on difference tablespaces meaning different data files residing on diferent disks (Reducing i/o coententions)
PARTITION traces_200902
VALUES LESS THAN
(TO_DATE (' 2009-03-01 00:00:00',
'SYYYY-MM-DD HH24:MI:SS',
'NLS_CALENDAR=GREGORIAN'
TABLESPACE test_data);Regards -
Bizzare situation withn the "Where used list" for a table
Hello all,
I use the "where used list" (all check boxes selected) function in SE11 to find out where and how the table FMGLFLEXT (same for table FMGLFLEXA) is being used and updated. All I get is a reference to a function module, namely G_POSTING_FMGLFLEXT. When I do a "where used list" (once again, all check boxes selected) for the FM, I get the message: Function Module G_POSTING_FMGLFLEXT not found in selected search area Message no. ES120 despite the fact that all check boxes are selected.
Yet this table contains data which were put in there via transaction FB50 (G/L Acct Pstg: Single Screen Trans.). So somehow, somewhere this data was created and put into the table.
I dont get it! What am I missing?
Thank you for your helpOld thread, but anyway: There is one more thing to do to get the complete where-used list:
(1) Select all checkboxes in the "Used in" block (as you did, probably by using the button "Select All (F7)")
(2) and use the button "Search Range" (quickinfo "Limit Search Range (F5)") -- although the following pop-up is called "Restrict hit lit" you will find there a checkbox "Search also in generated objects". In my case that's how I found a generated function module G_POSTING_Z.... in SAP's namespace but with customer db table name Z.... -
Bizarre situation with the "Where used list" for a table updated by FB50
Hello all,
I use the "where used list" (all check boxes selected) function in SE11 to find out where and how the table FMGLFLEXT (General Ledger Public Sector: Total) is being used and updated. All I get is a reference to a function module, namely G_POSTING_FMGLFLEXT. When I do a "where used list" (once again, all check boxes selected) for the FM, I get the message: Function Module G_POSTING_FMGLFLEXT not found in selected search area Message no. ES120 despite the fact that all check boxes are selected.
Yet this table contains data which were put in there via transaction FB50 (G/L Acct Pstg: Single Screen Trans.). So somehow, somewhere this data was created and put into the table.
I dont get it! What am I missing?
Thank you for your helpThere could be several reasons for this, including:
- The cross reference tables (used by the "where used" functionality) have not been updated in the system you are logged into - check with your Basis team on this as the programs that do this (a) run for hours and (b) take up a fair chunk of database space.
- The data may be stored via dynamic SQL (e.g. "insert into (g_tab_name)") so the table reference doesn't show up
- The function module may be called dynamically so the FM where used doesn't reflect this
You could try, instead, using the ST05 SQL Trace to track what code is updating the table when you run FB50.
Jonathan -
Help needed in using POI for manipulating Word files
Hi ,
I am new to POI. I have to take multiple files as input and write them to an output word file using POI.The input files may be word files, jpg or or any other image files and excel sheets also.
Is this possible using POI?Is there any example source code available?
I had another concern .I have downloaded the poi-bin-2.5.1-final-20040804 jar.
This does not contain any api for hwpf.Where can i find hwpf api?HWPF is not included in the standard jar that you will download from the Apache Organisations site. Instead, you need to visit what they tern the scratchpad area - from where the developers grab source to work on - and download HWPF from there. You will have to compile it yourself as well I believe. There is some good news however, I cannot remember the address of the site but I did find a web page with links to pre-built jar's of this area, just have a search with google.
From my own experiences, I would also reccommend that you look to using JExcel to manipulate Excel worksheets. It does not have the same sort of support for evaluating formulae as HSSF does but it does other things better IMO; little things like exposing the formatting applied to the cell. -
How to Use Decode for manipulating time
How can i use Decode function to manipulate time...
Example
suppose ive employee and his time in...i want to display status field by using decode,which reflects if that employee came after 09:15:00 the status='L' else this will print 'P'
i tried this
SELECT pin_code,DECODE( to_char(ACCESS_TIME,'HH24:MI:SS'>'09:15:00','l','P'))STATUS
FROM ATTENDANCE_REG
this query hasn't work...
waiting for reply
Regards
Danish HayderSQL> select case when to_number(to_char(sysdate,'sssss')) > 33300 then 'L'
2 else 'P' end status
3 from dual;
S
L
1 row selected. -
How to create a sequence using Toplink for DUAL table
Hi All,
How do I create below sequence using TOPLINK
CREATE sequence my_seq start WITH 1;
Regards,
DheerajHi Dheeraj,
Sequence Object should be created in Database and specify the type of sequence that will be used in toplink to create sequence value.For example,sequence objects created in database needs to be configured using Native Sequence.
For more information refer to the below link.Use JDeveloper Toplink Wizards for declarative programming of Toplink native Sequencing.
http://www.oracle.com/technology/products/ias/toplink/doc/1013/main/_html/reldscfg003.htm.
Regards,
P.Vinay Kumar -
How to use filter for data tables? Important topic but no docs/examples.
I was looking at the TableRowGroup APIs:
http://developers.sun.com/prodtech/javatools/jscreator/reference/docs/apis/webui/index.html
and looks like it has getTableDataFilter and setTableDataFilter methods. Sounds to me, that we can use TableDataFilter to filter rows that are displayed. For example, we can provide users with a drop down list of fields to choose from, and input field to enter the value of the selected field, so that they can narrow down the rows to search for specifics row(s) they are looking for.
I have not seen any example, or enough documentation, to figure out how to use this filter. Since JSC is new, there are not too many resources out there or on web for such specific issues. Any gurus out there?
ThanksCreator Team: Data filtering tutorial is over due now. This is something that will be useful to most developers. We all want to display users some data and want to provide user ability to filter it down based on some criteria, i.e. display rows within a date range, display all rows that have certain value or a field, etc. If there is a built-in filter in TableRowGroup, why not document it adequately along with some examples and a tutorial?
This is one of the key elements of Microsoft/VS.NET market share -- provide tons of example/tutorials/advanced code/books/3rd party books, etc. Why can't other companies follow a well-proven success element? In spite of making a better product, the can end up loosing or not gaining enough share, because of this lack of attention. -
Control the Batch Size for inseting tables using xi
Hi Friends,
Please let me know if we are able to control the batch size for inserting data using procedures for staging tables. Using SAP XI. Any blogs on this. or any information. please let us know.
Thank you
Regards
RamidiHi Ramidi,
There is something called message split on adapter engine but it won't guarantee a sequence of adapter calls.
here is a blog about it:
/people/jin.shin/blog/2006/02/07/multi-mapping-without-bpm--yes-it146s-possible
Maybe there is also an another simple way to do it.
Regards,
Wojciech
<i>** Please reward points if found it useful **</i>
Maybe you are looking for
-
DataTrigger is not working in xaml wpf
Hi All, I want to change the Data templates dynamically based on some selection. Here I have used DataTrigger to which I have binded a property which is not working. I don't know why its not working. Please find below .xaml code -
-
Install 16 bit Oracle client on Win 2003 server
Hello, Is it possible to install Oracle SQL* Net 2.3(16 bit) Client on Windows 2003 server. If it is then could someone give me links from where I could get more information on this (like the steps to install 16 bit Oracle client on Win 2003). Thanks
-
Hello Friends, Is there some kind of collection or Array concept in ABAP, Like in JAVA ( Java.util.Collection)?? In loop I want to take values 1 by 1 and store it in some kind of collection ?? Many thanks Marek
-
I changed to an android and now cant get text from some iphone users any suggestions??
I have just switched to an android and now am having problems getting text from some iphone users, and suggestions as to how I can fix this?
-
Accessing bean properties in value attrib of jsf tags
I am new to Alfresco and an example upon which i am working uses the following and similar code in a jsp many times. I knw it is calling getName() of DocumentDeatilsBean class but I can not figure out where is it actually configured .. I hope you und