Trying to Attach Files to an Oracle Database Engine
My client performed a complete backup of their Oracle folder (Windows). They simply used Windows Explorer by dragging and dropping the folder on to an external drive. Now that I have the files, I need to know how to "attach" them to my local Oracle database engine. I need to do this so that I can add a new Data Connection in Visual Studio. Or, if I login to the database server, I want to see my client's databases.
Can anyone help me?r
user9107810 wrote:
I am used to using SQL Server, which allows you to simply attach database files to a database. I did read some documentation on restoring a database file, but it seemed complicated. Complicated only because you are tying to see it as something it isn't. Please don't take that as a criticism. It's just a statement of fact because you are trying to apply SQL Server thinking to Oracle. Same as trying to apply diesel engine thinking to a gasoline engine.
I thought that there might be a more straight forward solution.
SQL Server isn't Oracle ... by any stretch of the imagination. Even the term "database" refers to totally different concepts. What SQL Server calls a 'database', Oracle calls a 'schema' -- and even that is just a rough approximation.
What you describe in SQL Server sounds a lot like what Oracle would call a 'transportable tablespace', but again that would be an approximation, not an exact one-for-one literal translation.
Where do I get this information? Do you recommend a book or website?The entire Oracle doc set is at tahiti.oracle.com
Similar Messages
-
How to import the data in a .xls or .xlsx file into a oracle database table
Hi,
Please tell me how to import the data in a .xls or .xlsx file into a oracle database table in Oracle 10gR2 using Oracle Warehouse Builder 10gR2.....can we do something through Non-Oracle->ODBC?Yes, it is possible, look at this thread
[SQLServer access from AIX Warehouse builder|http://forums.oracle.com/forums/thread.jspa?messageID=2502982]
If your server (with target DB and OWB runtime) is on Windows OS this configuration will be simpler - you can use single server.
And additional link on OWB blog (with 11g transparent gateway)
[http://blogs.oracle.com/warehousebuilder/2008/01/11g_heterogeneous_agent.html]
(configuring nonoracle connection with 10g generic connectivity very similar to 11g gateway)
Also look at
http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:4406709207206#18830681837358
Regards,
Oleg -
when I trying to attach files to my hotmail.Firfox always stucked and dead, it's not happen on my IE.
Try:
- iOS: Not responding or does not turn on
- Also try DFU mode after try recovery mode
How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
- If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
- Try another cable
- Try on another computer
- If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
Apple Retail Store - Genius Bar -
How to load text file data to Oracle Database table?
By using Oracle Forms, how to load text file data to Oracle Database table?
Metalink note 33247.1 explains how to use text_io as suggested by Robin to read the file into a Multi-Row block. However, that article was written for forms 4.5 and uses CREATE_RECORD in a loop. There was another article, 91513.1 describing the more elegant method of 'querying' the file into the block by transactional triggers. Unfortunately this more recent article has disappeared without trace and Oracle deny its existence. I know it existed as I have a printed copy in front of me, and very useful it is too.
-
Generate XML file from an Oracle Database Table
Hello All,
I want to generate a xml file from an Oracle Database table which contains a blob column.
Can somebody give pointers on this please.
Thanks in advance
SulakshanaUse the DBMS_XMLGEN package.
-
View pdf file stored in oracle database through oracle forms
Forms [32 Bit] Version 10.1.2.0.2 (Production)
Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.8.0 - Production
Oracle Toolkit Version 10.1.2.0.2 (Production)
PL/SQL Version 10.1.0.4.2 (Production)
Oracle Procedure Builder V10.1.2.0.2 - Production
PL/SQL Editor (c) WinMain Software (www.winmain.com), v1.0 (Production)
Oracle Query Builder 10.1.2.0.2 - Production
Oracle Virtual Graphics System Version 10.1.2.0.2 (Production)
Oracle Tools GUI Utilities Version 10.1.2.0.2 (Production)
Oracle Multimedia Version 10.1.2.0.2 (Production)
Oracle Tools Integration Version 10.1.2.0.2 (Production)
Oracle Tools Common Area Version 10.1.2.0.2
Oracle CORE 10.1.0.4.0 Production
I have created external directory and am able to load pdf files in oracle database table called test_blob.
CREATE TABLE test_blob (
id NUMBER(15)
, file_name VARCHAR2(1000)
, image BLOB
, timestamp DATE
I have 2 pdf files in the table. I want to view this pdf from forms when the user clicks on the button. On when-button-pressed trigger I want to show pdf on the screen. Any help is appreciated. Not on the designer. I want to run form application.
SELECT id, file_name,
DBMS_LOB.GETLENGTH(image) Length,
timestamp
FROM test_blob
ID|FILE_NAME|LENGTH|TIMESTAMP
1001|2011 HeartlandEmployeeReferralCard.pdf|353718|1/28/2013 11:44:41 AM
1002|2011 HeartlandEmployeeReferralCard.pdf|353718|1/28/2013 11:51:07 AM
Edited by: user_anumoses on Jan 28, 2013 11:45 AMWe were able to do the same thing with Oracle Application Server and Oracle WebLogic Server. I cannot remember how different the processes were, but it seems like they were very similar. I am going to give you the instructions on how we implemented a "Read PDF" procedure on the WebLogic Server. If you are still on the Application Server you may have to do some Google searches, but it all boils down to the mod_plsql DAD Configuration file.
Our PDF was located in a table with the following structure:
CASE_DOCUMENTS
(id_document NUMBER NOT NULL,
doc_blob BLOB,
note VARCHAR2(240),
created_by VARCHAR2(20) NOT NULL,
created_dt DATE NOT NULL,
case_id NUMBER NOT NULL,
filename VARCHAR2(100) NOT NULL)Based on that table structure we created a procedure named READ_PDF which you will reference below in the dads.conf file below:
CREATE or REPLACE procedure read_pdf (p_id_document IN number)
is
view_file blob;
BEGIN
select doc_blob
into view_file
from case_documents
where id_document = p_id_document;
OWA_UTIL.MIME_HEADER ('APPLICATION/PDF', FALSE);
HTP.P ('CONTENT-LENGTH: ' || DBMS_LOB.GETLENGTH (view_file));
OWA_UTIL.http_header_close;
WPG_DOCLOAD.download_file (view_file);
END;
GRANT EXECUTE ON read_pdf TO financial_user_role -- Name of role to execute
/Basically, you are passing in one parameter and that is the primary key for your table. You are selecting the pdf stored in a BLOB for that primary key. The commands below that allow the pdf to open up so you can view it – we got this off some search we did a few years ago.
Now, you need to add logic to your Oracle Form that will call the procedure above, but the URL is based on the dads.conf file that we will set up below… Anyway, we created a button on the form module with a label of "View". In the WHEN-BUTTON-PRESSED trigger the logic looks like this:
-- The View logic uses the DAD (Database Access Descriptors) method to view a .pdf file from the form.
-- The DAD was created on WebLogic Server with the name findadgen. This allows an http request be made
-- to the database.
declare
v_file varchar2(400);
v_success boolean;
ret_val number;
v_http_link varchar2(400);
begin
-- The format of the link is as follows: hostname:port/pls/DAD_name/procedure_name
v_http_link := 'http://finas03:8888/pls/findadgen/read_pdf?p_id_document=' || :case_documents.id_document;
web.show_document(v_http_link, '_BLANK');
end;The name of our WebLogic Server is "finas03" so that is what is listed in the URL. The "findadgen" is the name of the <Location> in the dads.conf file below, the "read_pdf" is the name of the procedure we created above, the "p_id_document=" is the IN parameter listed in the READ_PDF procedure created above, and the ":case_documents.id_document" is the reference to the primary key in our Oracle Form.
For WebLogic, you can either go through Enterprise Manager (directions below) or update the dads.conf file on the filesystem directly (if you update the dads.conf file directly then skip to step 4 and ignore step 5):
1. Enterprise Manager -> Web Tier -> ohs1
2. Oracle HTTP Server (pull-down) – Administration – Advance Configuration
3. Select File – dads.conf
4. Add something similar:
# ============================================================================
# mod_plsql DAD Configuration File
# ============================================================================
# 1. Please refer to dads.README for a description of this file
# ============================================================================
# Note: This file should typically be included in your plsql.conf file with
# the "include" directive.
# Hint: You can look at some sample DADs in the dads.README file
# ============================================================================
<Location /pls/findadgen>
SetHandler pls_handler
Order allow,deny
Allow from All
AllowOverride None
PlsqlDatabaseUsername financial
PlsqlDatabasePassword sdo_3#d1
PlsqlDatabaseConnectString ffindbTNSFormat
PlsqlNLSLanguage AMERICAN_AMERICA.WE8ISO8859P1
PlsqlAuthenticationMode Basic
PlsqlDefaultPage read_pdf
</Location>You are adding the <Location> section to your dads.conf file. The "finddadgen" is the name that you will reference in a change you fill make to your Oracle Form. The "financial" is the Schema, the "sdo_3#d1" is the password for that Schema, the "ffindb" is the database that the stored procedure is located on, and the "read_pdf" is a stored procedure you will have to create in order to read the pdf.
5. Press the "Apply" Button
6. Obfuscate the DAD password by running the dadTool.pl script located in $ORACLE_HOME/bin (This was done on Unix on our server with the following commands):
$> LD_LIBRARY_PATH=$ORACLE_HOME/lib;export LD_LIBRARY_PATH
$> cd $ORACLE_HOME/bin
$> perl dadTool.pl -f /u01/app/oracle/middleware/asinst_1/config/OHS/ohs1/mod_plsql/dads.conf
7. Restart the Oracle HTTP Server using Fusion Middleware Control:
Enterprise Manager -> Web Tier -> ohs1
Oracle HTTP Server – Control – Shutdown
Oracle HTTP Server – Control – Start Up
If you followed the instructions above, you should have created a stored procedure, added logic to your Oracle form to reference that stored procedure, and created an entry in the dads.conf file. Once you move the form onto the server and you restart the HTTP Service, you should be able to view a pdf that is stored in a table directly from your Oracle Form. -
How to attach files in a Oracle BPM Studio process?
Hi,
I'm trying to design a process with some screenflows for entering information and I'm creating presentations for each screen. The thing is that I don't know if it's possible to have an attaching file option in the presentations or if I have to do it handcoding.
Thanks everyone.You can use methods listed inside Fuego.IO, but they don't work if you run your process in a client, I mean not the server.
You can use JSP or methods developed in java in order to upload your files and Fuego.IO methods to access them after you upload them.
Another thing you should consider is that if you upload files using Fuego library, there's a size limit for files.
Take a look on How to Use FileChooser on for Client files
Hope this help.
Pablo -
There is IMP utility which provides me data as graphical way. But i need extract data in such a way so that i could able to use in my application.
thanks,
mohanHi,
EdStevens
Actually I was using SQL Developer. Sorry for the wrong define question. Now the real problem is:
I want to read or extract data in a txt file from Oracle Dump (.dmp) file without using Oracle sqlPlus or Oracle Database.
No need to say that i am able to extract dump data using sqlPlus. But for that, there is a little burden to install oracle database
or sql Developer.
I also listen about Oracle Loader a little bit. Is it a tool for providing extraction of data from Oracle dump file.
Thanks for your previous reply,
And now waiting for your suggestion.
thanks,
mohan -
Mail Crashes when trying to attach files from External Disk Drive
Before Snow Leopard, NO problems. After SL, I have problems in many areas.
Let's tackle one here: Mail freezes when I am trying to attach a file from my EDD. This did not happen with Leopard.
Help!Try trashing iMovie preferences. They are in your home library>preferences.
-
A colleague is trying to attach a file to an email by clicking the attachment icon and it crashes, however it does not crash when you drag and drop.
When they try to save an excel file by going New File > Save as, it crashes, but when you right click in a folder or desktop and create new excel and then work on it and save, it works.
I already uninstalled, install compatibility pack again, reinstall, updated, disable all add-ons and ran them both in safe mode and it still crashes. Any ideas?
Thanks in advance.'''eshbach''', Did you try updating the Trusteer Rapport software and did it fix the problem with Firefox crashing when downloading a file or saving a page?
'''mike_berry413''',
If you don't need the Trusteer Rapport software, you can remove it. If you need the software, you can try updating it or else temporarily disable it to see if that stops the crashes.
For the record, here is the crash report from the ReportID you posted:
https://crash-stats.mozilla.com/report/index/bp-fcd33048-3845-45f3-907c-9c5c62110930
Firefox 7.0.1 Crash Report [@ rapporttanzan7.dll@0x620c ]
ID: fcd33048-3845-45f3-907c-9c5c62110930
Signature: rapporttanzan7.dll@0x620c -
Loading XML files to an oracle database
Hi,
I have some users who would like to send me XML files that I would need to parse and load into multiple tables in my Oracle database. Since I'm new to XML, I'd like to know if XMK DB is the technology that I need to explore in order to do this, and if so, are there any white papers or articles out there that might get me started.
I have previously loaded data into my databases via text files that I parsed using text_io, I'm not sure if there is a significant advantage in using XML. This data load is going to be on an regular basis and I would like to validate the data the data before loading this.
Any help or guidance would be greatly appreciated.
Thanks.
Azeem.XML is becoming the defacto method of exchanging data between systems due to it's self describing nature. XML DB is the preferred way of processing XML in Oracle 9iR2 and later. The banner for this forum provides links to the XML DB OTN pages where you can find lots of information related to using XML DB.
-
TB crashes with trying to attach files or pictures
I'm running Windows 8.1, TB 24.6.0,
TB often crashes when I attempt to attach files or pictures to an email. I noticed that it happens when browsing for the attachment file (or picture) in folders into which files are displayed in thumbnail and not so if showing only the file name (no thumbnails). Do you know if this has been reported or fixed?
Thanks,
MipI located this bug https://bugzilla.mozilla.org/show_bug.cgi?id=802825 which indicates there is a third element.
Some have apparently been helped by updating their flash software.
You say Thumbnails, these often use third party DLL files to display them or generate them. Is there a specific file type in the crashing folders that is not in others, like PDF or word or some other application entirely. As the DLL has unloaded before the crash report is generated the devs are looking for a common link. Currently anti virus programs are suspect (scanning the files that are accessed to generate the thumbnails. But any observations you can offer would help here I think. -
Permission to files available in Oracle database dump location
Hello,
Could someone make me to understand how the trace files available in trace location of 11g database(dump location in 10g or below)are having permission 640 in some databases and 660(UNIX flavored systems) . As these are the files getting created by default with database operation, what is the parameter responsible for it?just wanted to add this for reference.. and here we can see some are getting created with 640 and some are with 660 with same umask value.
scrbmetdkbry211[PRE-PRODUCTION]:/opt/oracle/admin/METSD/bdump (METSD1)> ls -ld .
drwxr-xr-x 2 oracle dba 115712 Jan 31 07:51 .
scrbmetdkbry211[PRE-PRODUCTION]:/opt/oracle/admin/METSD/bdump (METSD1)> umask
027
scrbmetdkbry211[PRE-PRODUCTION]:/opt/oracle/admin/METSD/bdump (METSD1)>ls -lrt | head -23
-rw-r----- 1 oracle dba 822 Dec 19 17:47 metsd1_lgwr_10720.trc
-rw-r----- 1 oracle dba 848 Dec 19 17:47 metsd1_lmd0_10698.trc
-rw-r----- 1 oracle dba 1172 Dec 21 16:10 metsd1_dm00_10226.trc
-rw-r----- 1 oracle dba 777 Dec 21 16:21 metsd1_dw01_1098.trc
-rw-r----- 1 oracle dba 1401 Dec 21 16:25 metsd1_dm00_1053.trc
-rw-r----- 1 oracle dba 709 Jan 10 20:00 metsd1_mmon_9011.trc
-rw-r----- 1 oracle dba 6439 Jan 15 22:00 metsd1_pz99_10817.trc
-rw-r----- 1 oracle dba 1728 Jan 17 02:00 metsd1_m000_2597.trc
-rw-rw---- 1 oracle dba 1730 Jan 20 00:00 metsd1_m000_20598.trc
-rw-rw---- 1 oracle dba 759 Jan 20 02:48 metsd1_mmnl_9034.trc
-rw-r----- 1 oracle dba 1872 Jan 20 02:57 metsd1_smon_8997.trc
-rw-r----- 1 oracle dba 320606 Jan 20 03:00 metsd1_lmon_8958.trc
-rw-r----- 1 oracle dba 644791 Jan 20 03:00 metsd1_lmd0_8968.trc
-rw-r----- 1 oracle dba 5083521 Jan 20 03:16 metsd1_lms1_8977.trc
-rw-rw---- 1 oracle dba 16552 Jan 20 03:16 metsd1_lck0_9813.trc
-rw-r----- 1 oracle dba 4962730 Jan 20 03:17 metsd1_lms0_8970.trc
-rw-r----- 1 oracle dba 277166 Jan 20 03:17 metsd1_lgwr_8993.trc
-rw-rw---- 1 oracle dba 826 Jan 22 12:33 metsd1_j000_10268.trc
-rw-rw---- 1 oracle dba 759 Jan 23 02:25 metsd1_q000_10347.trc
-rw-rw---- 1 oracle dba 2888 Jan 26 06:00 metsd1_pz99_11021.trc
-rw-rw---- 1 oracle dba 7310 Jan 28 20:20 metsd1_lns1_14783.trc
-rw-rw---- 1 oracle dba 1406 Jan 28 20:20 metsd1_arcp_29560.trc
-rw-rw---- 1 oracle dba 834 Jan 28 20:31 metsd1_arcr_29641.trc
scrbmetdkbry211[PRE-PRODUCTION]:/opt/oracle/admin/METSD/bdump (METSD1)> -
Link multiple XML files stored in oracle database
Link multiple XML files
Can any one give some code example regarding my issue:
If I have for example file1.xml stored in one relational table and another file2.xml stored in another table ….etc
And I want to put link and reference which will make me able to link these files and make query or insert…etc
May be I need to use Xlink, Xpoiner or Xinclude . But if this is the solution to this problem please can you give a simple example that will help to understand the solution especially that I want to develop my project in oracle and I will register xml schema to insert the xml files in the database
Thanks lots and I am waiting for your solutionno answer for my question
is this thread is a write place or I have to move my query to another part of the forum
thanks -
There is import which provides me data as graphical way. But i need extract data in such a way so that i could able to use in my application.
thanks,
mohanThis isn't a SQLDeveloper question. You will get better answers in the Database - General forum.
Oracle dump files produced by the exp or expdp utilities are inproprietary formats which can only be read by the imp or impdp utilities respectively.
The best way to get data out of a dump file is to import it into a database and then extract it to plain text files using SQL.
Alternatively, leave it in the database and your application can access it there.
The exp dump file is mostly plain text, but the format is not published so you could waste a lot of time figuring it out.
Maybe you are looking for
-
How to use h:selectBooleanCheckbox in a datatable to select multiple rows
One way here is set a Boolean property like "isSelected" in the javaBean, and binding it with EL in jsp page which like this: *<h:selectBooleanCheckbox value="#{var.isSelected}"/>* but this break the a well EntityBean construction cause there is a nu
-
I would like to be able to watch my rental movie/tv shows from Itunes on my tv... I understand that I cannot put it on a USB stick, but is there any other option available? I've tried USB to USB cable and am having no luck.
-
How to create a logon ticket in WAS ABAP ?
Hi, Create a logon Ticket in a WAS Java is quite easy, but How create a logon ticket in a WAS ABAP ? If anyone have an answer for this question, I'm glad to ear it. Thanks in advance for your help.
-
Default interface reset issue after ISE configuration
Hi, We're testing VOIP phones with ISE. ISE detects the phones by MAB and places them in our Voice VLAN with a DACL for security, this works fine. After the tests I configured the port to a non ISE port (default interface) and added the normal workin
-
Error in Dynamic LOV with Bind Variable
Hi I created 2 Dynamic LOV's in which Second one is with a Bind Variable.Then I creted a Form and Attached the LOV's to the form fields.But I am getting the below mentioned error when i choose a value in the First LOV and the Second LOV is not Popula