Using Oracle as datastore/db with webDAV instead of file system - content-management-system

Here is a need for fetching files (word/blob) directly from oracle and show it on browser on edit mode for editing and save it directly on oracle. Using file system is not an option due to security reasons. Please let me know if anyone has done similar earlier. Or if any idea how this can be done.
Can we use jackRabbit and WebDav for this. Using webDAV I am able to open the word file in word from file system:
ms-word:ofe|u|http://url/webdav/Test.docx
But this is opening in word, the need is-
1) Should be able to load directly from oracle database and open in url.
2) Edit it/update it
3) Save it, while save it should directly go to oracle DB.
Can we make any code change in webDAV servlet or any class/api to use oracle to load and save directly.
Any help/suggestion is highly appreciated.
Thanks,

If it works from the filesystem for you, so will it with Oracle. You just need to figure the appropriate persistence manager (see https://wiki.apache.org/jackrabbit/PersistenceManagerFAQ).
(Persistence Manager FAQ has been archived, see
http://jackrabbit.apache.org/archive/wiki/JCR/PersistenceManagerFAQ_115513487.html
or https://web.archive.org/web/20181226012431/https://wiki.apache.org/jackrabbit/PersistenceManagerFAQ)

Related

I need to create word file by apex then user can open it from apex

I need to create a word file by apex then a user should be able to open it from apex, edit and then save it. It should be saved as a BLOB or CLOB in the database and a user should be able to retrieve and print it.
If you are using an Oracle 12c Database or any other Database with Java Support you should be able to create a word document with Java - that would be the easiest solution (See here for an example in Java).
To be able to edit it just give an option for the user to download the File that was created by the Java inside the Database and then Upload it to the Server again. Apex has built in API's for Downloading and uploading files to Apex.

Trouble shooting Oracle Form Builder error FRM-10044

I'm trying to create & save a new form using Oracle Form builder however, I get the error FRM-10044: Cannot create file.
The same thing happens when I open and save an existing form (.fmb)
I've check the folder permissions where the form is being save, it has read write access.
I've tried saving it into a differ folder and also tried creating a new folder but it still throws the same error.
I'm able to create and save a word, excel document in the new or existing folders (as mentioned-above) without any issues.
I suspect it could be something to do with the Windows Registry or System Configuration settings because I had recently shutdown/disabled so of the services in the System Configuration (using
msconfig.exe). Unfortunately, I don't remember all the options that were modified.
I've gone through numerous discussion forums, but still no luck.
Any help is appreciated.
Thanks in Advance
I've experienced the same thing. But in my case, i compiled the form on server side. The error appeared because it was remote-controlled by more than 1 person. One of the remote session was possibly locking the file creation. So I logged off the other session and try to use 1 session only when compiling the form. This happens sometimes when we're using an OS with multiuser and multisession capability.

Openoffice Writer macro that uploads current file to a web service on save

I want to know if this is doable and get some hints about how to achieve this.
I guess at least it would need a confirmation dialog to run the (possibly evil) macro.
I want to produce an OpenOffice document that will upload itself on save to a hardcoded URL.
Is it possible?
What are the rough steps to achieve this?
My guess is:
bind a macro to the save event
have that macro get the current file binary data
have it post this data to a URL
but before researching about how to do this I need to know if this can be done in the first place.
I don't believe you need a macro to do this, instead depending on your OS you can map a FTP or other type of protocol remotely.
For example in windows you can "Map" a FTP as a drive and this would do exactly the same thing as your describing, you open the file from the FTP and upon saving it will then be written to the remote server. FTP is just an example here, there are other platforms you can use.
If you are at all interested in this method then following the instructions below, otherwise disregard.
Mapping a Network Drive in Windows Vista and 7.
Click on Windows start orb and then click on "computer".
Click on map a network drive.
Map a network drive will then open a new dialog box where you can click "connect to a website"
Simply follow that easy to use wizard and click add a new network location (Choose a custom network location)
Type in your FTP address, including username and password.
Finally name your network location to whatever you want.
Just a suggestion, I really don't think you need any macro unless you plan on distributing these files to other people then yes, but they would need to install that macro/plugin on their open office since there is no way to encode the document itself with such features as far as I know.

free sqlite tools

looking for a free sqlite tool, any suggestions? I need a export, import functionality.
Thanks for the recommendation.
I love SQLite manager: https://addons.mozilla.org/en-US/firefox/addon/5817
Oddly enough, it's a firefox addon.
MS Excel or Access can be used to browse SQLite data, too
I spent all day looking for a Windows tool to browse/explore contents of SQLite and tested many of the ones listed on http://www.sqlite.org/cvstrac/wiki?p=ManagementTools . Some I like and will explore further but many I find lacking for they either require install of other frameworks (.Net XXX), are too big, slow browse of big tables, weird interface, (mis)handling of BLOBs, lack of import/export facilities.
I have no issue using SQL from command line but in many occasions i find it useful to examine the data in file browser/spreadsheet fashion (as in MS Excel or Access).
Here is another alternative: if you have either Access or Excel installed on your machine, get ODBC driver and connect to the SQLite DB that way. While MS Office ain't free, for many people it is already installed on the PC.
Important note when connecting from Access: i was getting "Reserved error -7778" when trying to link the SQLite tables in, so i was assuming SQLite ODBC just won't work with MSAccess. Not so, i found after a bit of digging. All one has to do is avoid using File Data Source (File / Get External Data / Link tables... / ODBC - and then instead the "File DS" tab, go to the "Machine DS").
I've used http://sqlitebrowser.sourceforge.net/ when I need to quickly browse/edit an sqlite database. There's a very long list of other such tools at http://www.sqlite.org/cvstrac/wiki?p=ManagementTools
SQLMaestro (http://www.sqlmaestro.com/products/sqlite/datawizard/) has a good range of bulk import/export with what looks like over 20 formats (but since I don't need bulk import/export, I haven't tried this program). Oops ... look like i missed the "FREE" part
I'm using the FREE Firefox plugin SQLite Manager (https://addons.mozilla.org/en-US/firefox/addon/5817) and it is really handy. It will handle a few import/export formats (CSV, SQL and XML)
SQLiteMan (http://www.sqliteman.com/) can import in half a dozen or so formats. Export doesn't seem obvious. Its free as well.
A few more FREE options (none of which I have tried include)
SQLite Administrator(http://sqliteadmin.orbmu2k.de/)
SQLiteStudio (http://sqlitestudio.one.pl/index.rvt)
I've used the Arca Database Browser with good results, available here: http://xtras.tabuleiro.com/download/arca.htm.
SQLite Maestro sounds like it meets your needs.
Probably
SQLiteMan
is about the best and most well known.
I personally like:
SQLite Administrator
as it's very small and lightweight, but does have it's quirks. However, there's a whole list of SQLite tools (both free, open source and commercial) here:
Commercial and freeware Sqlite tools list
Now i use Lita - SQLite Administration Tool
it's a free applications developed in Adobe Air.
the only thing that disturbs me is that it sorts the columns when you query.
Besides that it does what I want.

Search document on file system

I have WSS 3.0 installed on my machine. I have installed SearchServer Express 2008. It search from my document library. it is fine. But i want to search from document files that are located on my file system (e.g c:/ResumeRepository) on same machine.
Is there any settings in search server configuration to get this done. It could be very nice if you could help me out.
Thanks
Sachin
Yes there is. In Search Server you have the option to add content sources. A content source can be pretty much anything if you provide a protocol handler for it, but File system searches should work out of the box.
In Search Server -> Search Administration find the link to content sources. ad a new content source wiht a file share as a source.
Also, another option is federated search.