Inserting and retrieving Word docs from a custom table with LOB column
Hi,
I'm sure I'm not looking around in the right place for some docs on this.
Basically I need to build a custom interface in Web PL/SQL to allow a MS Word doc to be uploaded for a user's browser and also a mechanism to retrieve the doc.
Not sure what is the 'best' column datatype to use for this either.
Portal Forms are out of the question due to inflexibility of application.
Cheers,
John
bumping to the top!
Similar Messages
-
ASSM and table with LOB column
I have a tablespace created with ASSM option. I've heard about that tables with LOB columns can't take the advantage of ASSM.
I made a test : create a table T with BLOB column in a ASSM tablespace. I succeeded!
Now I have some questions:
1. Since the segments of table T can't use ASSM to manage its blocks, what's the actrual approach? The traditional freelists??
2. Will there be some bad impacts on the usage of the tablespace if table T becomes larger and larger and is used frequently?
Thanks in advance.Can you explain what you mean by #1 because I believe it is incorrect and it does not make sense in my personal opinion. You can create a table in an ASSM tablespace that has a LOB column from 9iR2 on I believe (could be wrong). LOBs don't follow the traditional PCTFREE/PCTUSED scenario. They allocate data in what are called "chunks" that you can define at the time you create the table. In fact I think the new SECUREFILE LOBs actually require ASSM tablespaces.
HTH! -
How to create a table from an existing table with new column
Hi !
Please help me.
I want to create a table from an existing table with data and add two new column to the new table.
What will be the syntax?craete table new_table as select a.*, 'somevalue' new_col1, 'somevalue'
new_col2 from old_table a;Also there is a pitfall - newly created table will accept column type and precision from the select statement, so further you can be needed to modify columns
if you want to have VARCHAR2 instead of CHAR for example:
SQL> create table new_dept as select dept.*, 'New data' new_col from dept;
Table created.
SQL> desc new_dept
Name Null? Type
DEPTNO NUMBER(2)
DNAME VARCHAR2(14)
LOC VARCHAR2(13)
NEW_COL CHAR(8)
SQL> alter table new_dept modify (new_col varchar2(8));
Table altered.
SQL> desc new_dept
Name Null? Type
DEPTNO NUMBER(2)
DNAME VARCHAR2(14)
LOC VARCHAR2(13)
NEW_COL VARCHAR2(8)Rgds.
Didn't see michael's post - it reflects the fix for this problem using CAST.
Message was edited by:
dnikiforov -
How to read/write a binary file from/to a table with BLOB column
I have create a table with a column of data type BLOB.
I can read/write an IMAGE file from/to the column of the table using:
READ_IMAGE_FILE
WRITE_IMAGE_FILE
How can I do the same for other binary files, e.g. aaaa.zip?There is a package procedure dbms_lob.readblobfromfile to read BLOB's from file.
http://download-east.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_lob.htm#sthref3583
To write a BLOB to file you can use a Java procedure (pre Oracle 9i R2) or utl_file.put_raw (there is no dbms_lob.writelobtofile).
http://asktom.oracle.com/pls/ask/f?p=4950:8:1559124855641433424::NO::F4950_P8_DISPLAYID,F4950_P8_CRITERIA:6379798216275 -
Subject Retrieving Word docs from the database thru reports
I have saved Word documents in an Oracle 7.3 database using OLE
thru Forms. I want to retrieve the docs in the reports
automatically as the particular report runs..How can i retrieve
these docs in from the developer reports...Can any one help me
in this problem
nullbumping to the top!
-
How to save and retrieve an excel file as an object into lob column?
Hi ,
I need to save and retrieve the whole excel file with 3 or more sheets as an object into the lob column of table.
For example:
t_docments
(doc_id number,
excel_data clob
All excel files need to be saved to excel_data column.
What should I do?
ThanksDid you check the asktom thread posted by Jens?
http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P1
1_QUESTION_ID:232814159006
There's example of varies file types.Yes, I did try some examples.
Those work for .doc/.pdf/.jpg files, BUT NOT for excel file.
The following error happened when retrieving excel file(retrieving .doc/.pdf are OK)
ORA-29285: file write error
ORA-06512: at "SYS.UTL_FILE", line 18
ORA-06512: at "SYS.UTL_FILE", line 375
ORA-06512: at "SYS.UTL_FILE", line 990 -
Retrieve xml data from a relational table(oracle) with datatype as xmltyp
Hello Avijit, any resolution for this issue?
hi .... I am trying to retrieve xml data from a relational table with datatype as xmltyp. The SQ is retrieving rows but the xml parser give transformation error . The transformation retrieve xml data from a relational table(oracle) with datatype as xmltyp returned a row error status on receiving an input row on group retrieve xml data from a relational table(oracle) with datatype as xmltyp. ERROR : An XML document was truncated and thus not processed. Input row from SQ_XMLTYPE_TEST: Rowdata: ( RowType=0(insert) Src Rowid=5 Targ Rowid=5 DOCUMENT (DataInput:Char.64000:): "<?xml version='1.0' encoding='UTF-8'?><main><DATA_RECORD> <OFFER_ID>434345</OFFER_ID> <ADDR>sec -2 salt lake</ADDR> <CITY>kolkata</CITY> (DISPLAY TRUNCATED)(TRUNCATED)" ) thanks in advance Avijit
-
How to open and read pdf and micrsoft word (.doc) files or documents
My problem is how to use my BB 9800 software version 6.0.0.546 to read/view pdf files and microsoft office documents. I have also bought documents to go from online and have installed it on my phone, but whenever i try to open it I receive a message that it is incompactible. Any help will be greatly appreciated.
Hi, Sammy.
Why not install a 3rd party PDF reader and Word Doc reader to help open and read pdf and micrsoft word (.doc) files or documents? You can google it and select one whose way of processing is simple and fast to help you with the related converting work. It will be better if it is totally manual and can be customized by users according to our own favors. Remember to check its free trial package first if possible. I hope you success. Good luck.
Best regards,
Arron -
Can anyone tell me why I am unable to download a template word doc from webmail onto my mac without it opening in text format? I just need the original document format.
Where to begin... and why would you ask here? (workstation owners)
Places I can think to try, after google of course....
Forum devoted to something like Word / Mactopia or Pages.... whether you are using Office 2011, and no idea what browser or webmail (IMAP, Gmail, other)
And then there really are notebook with subforum for MacBook Pro
Apple Site Map
Apple Support Mail
Apple Support -
Importing Word docs from a RH for Word project
I have a HUGE RH for Word project that I'm trying to convert
to RHTML (RH Office X5). We generate CHM with this project, and
we've got map ids for all topics. I've been to Peter Grainge's site
to get some ideas, but I don't think they're going to work. There
are so many Word files and topics (537 and 2,974, respectively)
that the more I think about it, the more I think that a conversion
to RH HTML might not be worth it.
When I tried to import all of the Word documents and also
convert the TOC (converting the Index isn't an option since it
never worked with our large number of Word docs) and use the
HTMLHelp.css (using the Import wizard), RH HTML crashed twice after
40 minutes.
So, I created a new RH HTML project and tried to import just
one Word doc from the RH for Word project, and selected the same
wizard options. As I expected, the Word doc imported, but even
though I told RH to split the topics on Heading 2, it also copied
in the characters (#S+@) that preceded every topic heading and
incorporated them into the Topic Title. AND, RH HTML did not
"convert" the TOC - it was blank.
In another post I saw a reference to this patch -
http://www.adobe.com/support/security/bulletins/apsb07-10.html.
I'm not sure it's related, although when I examined my second
failed import attempt, the imported topics were visible in the
project folder only by using Windows Explorer - RoboHelp HTML did
not display them from within RoboHelp.
Does anyone know if this is the patch that will fix this
issue as well?
By the way, based on the number of questions I've seen posted
about RH for Word 7 with zero replies, I'm thinking I'm going to
run into issues as well, even if we leave it in RH for Word when we
upgrade to version 7. It seems that its size is an issue for RH
HTML.
Thanks,
Jim
Thanks,
JimHi Jim,
just as an encouragement: we sucessfully converted a HUGE RH
for Word project (4,300 topics) to RH HTML a while ago, including
TOC, index and everything. I must admit though that we had all
those topics in only 25 word documents. Maybe you can reduce the
number of documents by moving the topics? There will always be
problems you run into and afterward, we had to go through every
single topic and check the formatting, but I guess you'd always
have to do this. But I think it's worth it, working in HTML is so
much more convenient.
Good luck!
Kathrin -
I can't figure out how to share a word doc from my pc to the iPad. I went through the steps in the manual but can't find the file share option they talk about in the app tab on iTunes. Any ideas?
Do you have Pages installed on your iPad? If not, I'm not sure that file transfer option will appear, though I'm not certain; perhaps someone else here can confirm or refute. If that is indeed the case, then you'll have to email the document to an account your iPad can pick up, or get Pages or one of the other iPad apps that supports Word docs and provides a file transfer capability.
Regards. -
CPU Usage - Generating Word Docs from RoboHelp X5
If you have generated a fair-sized document through RoboHelp,
and you are having problems with your CPU usage pegging out around
100%, bouncing up and down between 50% and 100%, the page
repainting as you scroll through the document, etc., this solution
is for you!
I am using RoboHelp X5 to generate large Word documents
(2003). This solution worked perfect for me. The problem is with
document corruption, apparently. After you have generated your Word
document and opened the document, be sure to display the paragraph
marks. You will probably see the “]” mark at or near
the end of the document. Select your entire document,
except for the final paragraph mark, making sure to exclude
this symbol, and copy everything else. Open a blank Word document
and paste this content into the new document.
You will now need to reattach your template (.dot) file for
the generated document through Tools/Templates and Addins:
1. Locate the applicable document template and attach it
(it's typically in the base generated project directory in RoboHelp
- .dot file). Click the OK button to save.
2. Return to Tools/Templates and Addins. Click the Organizer
button to display the Styles tab.
3. In the right-hand list (In Normal.dot), Close the
Normal.dot file
4. Open the same RoboHelp .dot template as you selected
previously.
4. Select all of the styles once they display in the right
pane and click the <<Copy button to copy them all over to the
document template. Confirm that you want to replace all styles in
the document.
5. Close the menu using the Close button. The dialog closes
and your styles should all be updated, if your styles were set up
appropriately via template and style sheet settings.
You may need to also adjust the Page Setup page width
settings, if necessary.
Good luck!
Liz0259Peter:
Thank you for responding to me, as I may not have been clear
enough, and I apologize for that. I was trying to keep it short and
sweet. This problem started when I began using RoboHelp X5 this
year.
To clarify...
- I'm not concerned with CPU usage during document
generation, that is to be expected. The document will need to be
generated originally from a RoboHelp WebHelp project. This does not
change. The problem takes place AFTER you generate a large document
and then open it in MS Word.
- My documents are large, 140-500 pages. It took forever to
scroll through the Word document (RoboHelp-generated), the screen
kept repainting, and the CPU usage stuck fluctuating frequently
between 50% and 100%, not allowing me to do much else. Editing
those documents was a nightmare. Even if I shut down all other
programs.
- Something translates to the Word doc from RoboHelp that
maxes out the CPU usage, and I can't locate the exact culprit.
However, it appears to be tied to the faded "]" symbol at the end
of the document (there is a "[" at the beginning, too). So you have
to omit more than the last paragraph mark; that symbol also needs
to be left out.
- The "corruption" information came from Microsoft; it could
be something other than that, but this is what they said. I found
nothing that would help on the RoboHelp forum, so I went to
Microsoft to see if they had a solution. Apparently, this is a
common problem with Word 2003, but the articles didn't mention
RoboHelp in the issues. I tried this solution, adding the omission
of the "[" symbol, with complete success.
- When you copy the document without the last paragraph mark,
it will still include the headers/footers when you paste it
(although you may need to adjust them slightly). This is not the
problem.
- When a document is generated, you can select to use a MS
Word template, which I do. I fully use the style sheets in
RoboHelp, and they match my Word styles (template) to keep things
in sync. Actually, this Word template remains in the project; it is
not moved to the folder that holds your Normal.dot file. So the
link to the template in RoboHelp from your document does in fact
remain intact. However, you can copy that template to another
folder outside the project and link it from there, but it won't
matter.
- The Word template (.dot) needs to be reapplied in order to
restore your styles, as the Normal.dot styles are applied when you
copy the content over to a new document. It doesn't matter where
you store the template. I reapply this SAME template after I copy
and paste the content into the new document. This is not the cause
of the problem. Note: The application of a template is not the same
thing as going back to the master copy. This is still a fresh
document, with the content pasted in and the same template applied.
- I have tried deleting the local copy and starting over. I
have moved the file to another location. I have renamed or created
a 'save-as' copy of the file. I tried editing out any extra
un-necessary merge-tags in Word, looked for macros, etc. All of
these things do not resolve the CPU Usage problem.
I hope this makes more sense. You can try it out if you wish,
but you will need to do this with a large document and use the
Print View when looking at the document in Word. You'll have less
of a problem in Normal View, or with a smaller document (under 50
pages).
Good luck!
Liz0259 -
How to upload a Word doc from MacBook to iCloud?
How to upload a Word doc from MacBook to iCloud?
Just going to throw in again: iCloud is to keep's Apple's products on Apple's devices synced up between multiple devices. It isn't for sharing. It isn't for storage.
iCloud is the Apple-branded cloud (see the "i"). It isn't meant to be a completely free-of-charge realization of the future that all the tech people keep calling "the cloud."
It adds a lot of very nice functionality to Apple's own products, yet people are screaming their heads off about not getting free disk space and free bandwidth to use for whatever they want online. Apple added functionality, but tons of people seem to think they took away functionality. These things were never promised with iCloud. -
Why can't I open and retrieve my files from iPhoto and my Address Book after importing the files from my Power Mac G5 to my new Mac Pro? I get a warning that says the new OS on my Pro doesn't open files from a Power Mac. Any idea how I can fix this?
For your addressbook, export the files to vCard on the PowerMac, then bring them over to your Mac Pro. For your iPhoto, copy the Users -> yourname -> Pictures folder to your Desktop on the Mac Pro, and open iPhoto on the Mac Pro holding the command and option keys. Select the library file from that Pictures folder and open it. It should import all the pictures into iPhoto as part of the rebuild process. Other PowerPC to Intel migration issues are covered here: https://discussions.apple.com/docs/DOC-2295
-
Transferring word docs from vintage mac
Does anyone know how to transfer word docs from my old Mac plus (1985) to a modern Mac or other PC? Would a personal modem work such as was designed for the original machine?
ccconti,
The personal modem will work but my first modem on my first Mac Plus was 300 baud. That option would be painfully slow. Five years ago I met someone who was still using a Plus and modem to email to Germany from the USA. I wanted to document her software configuration but did not get back to it. I would go with standard methods.
Hopefully you acquired an external SCSI drive some where along the way. It will move files to a newer machine with ethernet. Ethernet will allow you go to the latest computers quickly. Another alternative is zip disks. The real key is finding someone with spare hardware. If you are willing to buy some used equipment, you can do it yourself.
Do you have access to a school or club that has old equipment? Post back with a list of computers/hard drives you have access to.
Jim
Maybe you are looking for
-
How do two ipod's use one computer to download itunes?
New to ipod's/itunes. Family member already has an itune account set up on my computer to download music. Can I set up my own account on the same computer to share the itunes program?
-
Kernel Panic in early boot process
Hi! Today I've had kernel panic, but no idea why. Here's the output. Had to write down everything myself puh: [ 0.382989] Initramfs unpacking failed: junk in compressed archive [ 0.790208] Kernel panic - not syncing: No init found. Try passing init=
-
SAP Cloud SDK : Cloud For Customer HTML5 Development
Hi Experts, I have Some questions about the Upgrade to Silverlight -> HTML5. 1) When the Cloud For Customer release the C4C in HTML5 mode with all the available work-center "Application and User Management" and all ? 2) What is the Development softwa
-
Looking for ideas: mass-delete qualified links
Hello SDNers! I'm looking for an innovative idea on how to mass-delete qualified links. I want to delete all the qualified links to a specific non-qualifier from many records at once. Idealy the scenario would be to search on a specific qualifier, an
-
Nano to CD for playback in My Car
Hey I would like to x-fer from my nano and library to a CD so i can listen in my car. Audiobooks and music. Tried before but could not hear anything on the auto cd player.. Thanks in Advance--- Irene