Extract data into the Oracle Database
Hello,
I have file in PDF format.
I need to extract data into the Oracle Database.
what should be my action ?
And how could I accomplish?
thanks
DN
You said:
Do you know ahead of time how many columns are in the file?
yes, It has 8 columns.
But each PDF have different total of columns. Right now I am working on one PDF file only.
e.g: page emp report has following values:
Salray History Report in PDF format
Page 1
Date 10-21-2005
LAST NAME SALARY COMMISSION
Russell 14000 .4
Partners 13500 .3
Errazuriz 12000 .3
Cambrault 11000 .3
Zlotkey 10500 .2
after converting it will be come as
Salray History Report in PDF format
Page 1
Date 10-21-2005
LAST NAME
SALARY
COMMISSION
Russell
Partners
Errazuriz
Cambrault
Zlotkey
14000
13500
12000
11000
.4
.3
.3
.3
End of Page 1
Date 10-21-2005
LAST NAME
SALARY
COMMISSION
DN
Similar Messages
-
What is the best way to put LabVIEW DSC data into an Oracle database?
I have been collecting data using LabVIEW DSC 7.0 for several years and have always accessed the data from the Citadel database via the Historical Data Viewer. I would now like to begin putting this data into an Oracle database. My company stores all their data in Oracle and it would provide me all the benefits of their existing infrastructure such as automated backups, data mining tools, etc.
My initial thought is to use "Read Trace.vi" in LabVIEW to pull historical data from the citadel database at regular intervals (e.g. 1 minute) and insert this data into Oracle via ODBC. In this way, I do not need to track the value changes in order to know when to write to Oracle. I also considered replicating the citadel database using some other method, but I recall that the tables used by citadel are somewhat complicated. I only need a simple table with columns for channel, timestamp, and data. The "Read Trace.vi" will provide me data in this format.
I do not need to update the Oracle database in real time, a few minute delay is acceptable. If anyone has a better idea or additional insight please let me know. Thanks.In terms of connectivity, you want to use ADO, not ODBC. Beyond that, it all depends on the structure of the data and what you are going to want to do with it. This is a very big question that you need to be getting some in-depth assistance.
Mike...
Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion
"... after all, He's not a tame lion..."
Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps -
Different ways to download data into a Oracle database
Apart from the below are there any other ways to download data into an Oracle database ?
1. Import data using import/export features.
2. Oracle external tables.
3. Data Pump
4. SQL Loader.
5. PL/SQL => utl_file package.
6. Oracle SQL developer tool - it was a nice surprise this morning to know that this tool can be used to import data into Oracle database.
Thanks
GonyI will be able to do that once I complete my transition into an Oracle DBA
Next Great DBA
I downloaded oracle to my laptop today.
I will become the next great DBA.
No need for education or taking a course,
I'll use the forum and learn by brute force.
The guru's won't mind, they know it all
They are so profound, their ego's enthrall.
They have it written by steps 1 through 10.
If I don't get it once, I'll just ask it again.
I won't write it down, seems simple enough
After all, I've used Access with SQL and stuff.
Why you upset? Why you tell me to read?
I've no time for a manual, No Sir, Indeed!
Why waste my time with a book or a link,
I have this forum, no need to think.
I have no work history, just out of college,
But I'm smarter than those who are three times my age.
I'll become certified with an OCP,
Have you the answers, just give them to me.
Then we'll be equal just wait and see!
But, Why are you paid 100K more than me?Edited by: sb92075 on Jul 12, 2009 7:57 AM -
How can i save the data from the Oracle database to my local directory
How can i save the data from the Oracle database to my local directory instead Of saving the data file to the Directory created on the Oracle Server ?
I require to design the Procedure which will pull the data from various tables and needs to store the data in the Client's local directory.Since SQL*PLUS runs on the client, you can use SQL*PLUS to spool data to your local drive.
You could also use the database to write a a specified drive where all users have access to (mapped network drive, e.g.). I wouldn't recommend doing it that way, but it is sometimes useful when the files are created in some nightly batch run. -
THE DATA FROM THE ORACLE DATABASE VIEW DATA IS NOT REFERESHED AUTOMATICALLY
THE DATA FROM THE ORACLE DATABASE VIEW DATA IS NOT REFERESHED AUTOMATICALLY IN OBIEE DASHBOARD(ANSWERS)
UNLESS AND UNTILL I OPEN THE ORACLE BI ADMINISTRATOR TOOL AND DO UPDATE ALL ROWCOUNT AND THEN SAVE THE RPD.
WHERE AS ORACLE DATABASE TABLE DATA IS AUTOMATICALLY REFRESHED.
PLS SOMEONE HELP OUT IN THIS ISSUE.Check whether you have enable cache on that view?
-
How to list the JAR files loaded into the Oracle Database ?
How to list the JAR files loaded into the Oracle Database ?
From 11.1 onwards, the below two views are available to identify the jar files loaded into the Database.
JAVAJAR$
JAVAJAROBJECTS$
By querying the JAVAJAR$ view you can know information about the JAR files loaded into the Database and using JAVAJAROBJECTS$ view you can find all the java objects associated with the given JAR file.
These views are populated everytime you use LOADJAVA with "-jarsasdbobjects" option to load your custom java classes.
But unfortunately this feature is available only from 11.1 onwards and there is no clear workaround for above in 10.2 or earlier. -
Load XML data into an Oracle Database
Hi
I would like to know how to load data from XML into an Oracle Database. Thanksforum has many examples
plz search for your needs
as example
XML DB FAQ
Re: I want insert data from xml file
Re: How to load a XML file into a table using PL/SQL
Process multiple XML files in directory
using DBMS_LOB.LOADCLOBFROMFILE -
How to get data into the mySQL database?
First some background.
I have a website that has outgrown its designed dimensions and is a huge burden to maintain. See PPBM5 Benchmark
There is a lot of maintenance work involved, so I'm investigating a PHP/MySQL approach to easen the burden and to add functionality to the site. With the current Excel based structure and over 420 entries, it is cumbersome for me to maintain, but also for users to find what they need.
A MySQL based dynamic structure is a lot easier and offers vastly more selection capabilities, like selecting only records that meet specific criteria.
Data submission is done with a form, that contains most of the relevant data, but the drawack is that people submitting their data are often not technically inclined, give wrong answers due to a lack of understanding or making typo's. The test results are attached in one or two separate .txt files, but often they have not read the instructions correctly or did something wrong, so these attached .txt files can not be trusted automatically, they have to be checked before inclusion.
These were my initial thoughts:
1. Data collection:
To avoid spending all our energy and time on correcting typo's, getting missing data, correcting errors, I am investigating the use of CPU-Z in Ghost mode to create a .txt or .html file that contains all relevant hardware info we need and even more. It gives all the info we currently have, but adds data like number of memory sticks, DDR timings, stock clock speed and BCLK setting, video card info and VRAM size, etc.
To see what I mean, run CPU-Z, go to the About tab and press the Save Report button and look at the results.
This can all be done without user intervention in an automatic way, but maybe I need to add an Auto-It file to the test to make it all run as desired.
If this works and I'm able to extract the relevant data from the created file and can insert it into the database, we may be in business for the next version of PPBM5.5 or PPBM6. It does require a modification to the instructions, making them a lot easier, because there is less data to fill out.
2. Data submission:
The submission form can be simplified if the CPU-Z data can be used. We have to create an automatic way to attach the created .html file from CPU-Z to the submission form and we have to streamline the Output.txt and Output-MPE.txt files to be more easily included in the 'form.lib.php' file. It currently is manual labor and very time consuming.
3. Adding to Database:
I have to find a way to create database records from the Gmail forms I receive. All incoming mail messages need to be checked on relevancy and if relevant, need to be added automatically to the database and then offered for approval before final inclusion in the database. Data included in the database will then include submission date and time, Email address, IP address used, plus links to the files submitted and available on the website.
4. Publication of the database:
After approval of new records from step 3, all updates will be automatically applied to the database and accessible for users. I do not yet intend to introduce a user account , requesting login before all functionality is accessible. Too much trouble and administration.
Queries should be possible on things like CPU (check box), so include 17-920, i7-930, i7-950 but exclude i7-980X and i7-990X, Size of memory (check box), Overclocked (boolean, yes, no), SSD as OS disk, and similar options.
The biggest problem is to keep the color grading and statistical indicators (Top, D9, Q3, Med, Q1 and D1) intact on dynamically generated queries. Say you make a query which results in 20 observations, this should show the related colors and legends. Next query results in 48 observations and of course the color grading and legends do need to reflect that. Question in my mind, does the RPI remain constant, independent of the query or does that need to be recalculated on the basis of the query?
Next thing is to allow a user to select a specific observation and by simply clicking on it be shown, in a separate window (detail page) or accordion, all the CPU-Z related information about the hardware.
The graphs, Top-20 and MPE Gains, need to be dynamically adjusted, based on the query used.
5. Ideally, external links:
In an ideal situation, one could link the CPU-Z data to external price databases, looking up current prices for CPU, memory, video card, disks, raid controller, etc. to get instant BFTB charts, based on the query made. But that is the next step.
Situation now:
I have a MySQL database that is easily updated with the new submissions. Simply create a .CSV flie from the submitted forms and import that into the database. The bulk of the initial work is done.Lots remain to be done as you can see above, but that is for a later time.
Question:
I have this table, that needs to be filled with data in the submitted and attached files. Mr. X submitted his data and can be uniquely identified by his "Ref_ID". He attached one or two files in .TXT format with the relevant test data. These files are stored on the server with a concatenated name:
"Ref_ID","-","filename"
Say his Ref-ID is: 20110204-6cf5 and his submitted file is called: Output(99).txt then the file can be found on the server as
20110204-6cf5-Output(99).txt
I need to be able to open that comma delimited file, the contents may look like this: "439","1036","819","531" and insert these contents into the relevant record and fields.
Graphically,
is what I want to achieve.
This being my first exposure to PHP/MySQL, you can imagine I'm not clear on how to go from here.
Added complication is that I actually have 5 numbers to insert per record and two calculated fields, Total Score and RPI should be calculated fields. Haven't yet figured out how to handle calculated fields, maybe only in the PHP/HTML code and not in the database.
I hope someone can help me.You do have a very complex looking site and may need several tables in mysql to handle all that data. If you knew to phpmysql I would suggest taking a look at this tutorial it will help get you started in understanding how to $_GET info from a database and also how to $_POST data to a database. I am no expert just learning myself and I found this very helpful. This is the link http://www.adobe.com/devnet/dreamweaver/articles/first_dynamic_site_pt1.html
There are also many tutorials on Youtube to help build a CMS Content Management Site I would suggest the following: -
http://www.youtube.com/user/phpacademy
http://www.youtube.com/user/betterphp
http://www.youtube.com/user/flashbuilding
And many more on my channel here
http://www.youtube.com/user/Whisperingonthewind
CMS's are easier to maintain, add edit and delete content.
I have also recently bought a Book by David Powers Training from the Source very helpful.
Anyway hope you get it sorted. -
HTTP post data from the Oracle database to another web server
Hi ,
I have searched the forum and the net on this. And yes I have followed the links
http://awads.net/wp/2005/11/30/http-post-from-inside-oracle/
http://manib.wordpress.com/2007/12/03/utl_http/
and Eddie Awad's Blog on the same topic. I was successful in calling the servlet but I keep getting errors.
I am using Oracle 10 g and My servlet is part of a ADF BC JSF application.
My requirement is that I have blob table in another DB and our Oracle Forms application based on another DB has to view the documents . Viewing blobs over dblinks is not possible. So Option 1 is to call a procedure passing the doc_blob_id parameter and call the web server passing the parameters.
The errors I am getting is:
First the parameters passed returned null. and
2. Since my servlet directly downloads the document on the response outputStream, gives this error.
'com.evermind.server.http.HttpIOException: An established connection was aborted by the software in your host machine'
Any help please. I am running out of time.
Thanksuser10264958 wrote:
My requirement is that I have blob table in another DB and our Oracle Forms application based on another DB has to view the documents . Viewing blobs over dblinks is not possible. Incorrect. You can use remote LOBs via a database link. However, you cannot use a local LOB variable (called a LOB <i>locator</i>) to reference a remote LOB. A LOB variable/locator is a pointer - that pointer cannot reference a LOB that resides on a remote server. So simply do not use a LOB variable locally as it cannot reference a remote LOB.
Instead provide a remote interface that can deal with that LOB remotely, dereference that pointer on the remote system, and pass the actual contents being pointed at, to the local database.
The following demonstrates the basic approach. How one designs and implements the actual remote interface, need to be decided taking existing requirements into consideration. I simply used a very basic wrapper function.
SQL> --// we create a database link to our own database as it is easier for demonstration purposes
SQL> create database link remote_db connect to scott identified by tiger using
2 '(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=127.0.0.1)(PORT=1521))(CONNECT_DATA=(SID=dev)(SERVER=dedicated)))';
Database link created.
SQL> --// we create a table with a CLOB that we will access via this db link
SQL> create table xml_files( file_id number, xml_file clob );
Table created.
SQL> insert into xml_files values( 1, '<root><text>What do you want, universe?</text></root>' );
1 row created.
SQL> commit;
Commit complete.
SQL> --// a local select against the table works fine
SQL> select x.*, length(xml_file) as "SIZE" from xml_files x;
FILE_ID XML_FILE SIZE
1 <root><text>What do you want, universe?</text></root> 53
SQL> --// a remote select against the table fails as we cannot use remote pointers/locators
SQL> select * from xml_files@remote_db x;
ERROR:
ORA-22992: cannot use LOB locators selected from remote tables
no rows selected
SQL> //-- we create an interface on the remote db to deal with the pointer for us
SQL> create or replace function ReturnXMLFile( fileID number, offset integer, amount integer ) return varchar2 is
2 buffer varchar2(32767);
3 begin
4 select
5 DBMS_LOB.SubStr( x.xml_file, amount, offset )
6 into
7 buffer
8 from xml_files x
9 where x.file_id = fileID;
10
11 return( buffer );
12 end;
13 /
Function created.
SQL> --// we now can access the contents of the remote LOB (only in 4000 char chunks using this example)
SQL> select
2 file_id,
3 ReturnXMLFile@remote_db( x.file_id, 1, 4000 ) as "Chunk_1"
4 from xml_files@remote_db x;
FILE_ID Chunk_1
1 <root><text>What do you want, universe?</text></root>
SQL> --// we can also copy the entire remote LOB across into a local LOB and use the local one
SQL> declare
2 c clob;
3 pos integer;
4 iterations integer;
5 buf varchar2(20); --// small buffer for demonstration purposes only
6 begin
7 DBMS_LOB.CreateTemporary( c, true );
8
9 pos := 1;
10 iterations := 1;
11 loop
12 buf := ReturnXMLFile@remote_db( 1, pos, 20 );
13 exit when buf is null;
14 pos := pos + length(buf);
15 iterations := iterations + 1;
16 DBMS_LOB.WriteAppend( c, length(buf), buf );
17 end loop;
18
19 DBMS_OUTPUT.put_line( 'Copied '||length(c)||' byte(s) from remote LOB' );
20 DBMS_OUTPUT.put_line( 'Read Iterations: '||iterations );
21 DBMS_OUTPUT.put_line( 'LOB contents (1-4000):'|| DBMS_LOB.SubStr(c,4000,1) );
22
23 DBMS_LOB.FreeTemporary( c );
24 end;
25 /
Copied 53 byte(s) from remote LOB
Read Iterations: 4
LOB contents (1-4000):<root><text>What do you want, universe?</text></root>
PL/SQL procedure successfully completed.
SQL> The concern is the size of the LOB. It does not always make sense to access the entire LOB in the database. What if that LOB is a 100GB in size? Irrespective of how you do it, selecting that LOB column from that table will require a 100GB of data to be transferred from the database to your client.
So you need to decide WHY you want the LOB on the client (which will be the local PL/SQL code in case of dealing with a LOB on a remote database)? Do you need the entire LOB? Do you need a specific piece from it? Do you need the database to first parse that LOB into a more structured data struct and then pass specific information from that struct to you? Etc.
The bottom line however is that you can use remote LOBs. Simply that you cannot use a local pointer variable to point and dereference a remote LOB. -
How to import a schema into the Oracle Database -
Hi
I have downloaded schema (spatial MVDemo schema) from oracle. To implement a functionality in obiee 11g i need to import the downloaded schema in to Oracle database.
some one please give me step by step commands to acheve the same by using sql plus.
Please let me know if you need any information.
TIA.
RegardsPl post exact OS and database versions, along with a link to where you downloaded this demo from. Did that link not provide any details on how to import ?
HTH
Srini -
Any way to extract data from the "Organizer" database?
I asked a similar question in the Lightroom forum but I'm asking it here as well. I'm thinking of either getting Lightroom or Elements but my only concern is being able to access to all of the meta-data that I tag my photos with in the "Organizer". Most likely I'll spend hours organizing my photos and I want to be able to access this data from outside the organizer for read-only purposes.
I realize that from inside of orgainizer all of this is available to me but I want to be able to use other tools and apps (that I'll write myself when needed) to get access to my photo catalogs.
Does Adobe have any sort of API or library that 3rd party apps can use to access the data in Organizer? I searched the Adobe web-site but didn't find anything. Ideally I could run a SQL query against the database to get what I want.This idea intrigued me, so a did a Google search on "extract photo metadata", which resulted in some interesting links.
You might want to investigate some of these further.
One which looked quite interesting along the lines of the read/write of metadata can be found here:
http://devzone.zend.com/article/4025
Good Luck... -
How to extract data into the set-up table for 2LIS_06_INV LIS structure
We are using ECC 6.0 and SAP BI NW 2004S. I activated the 2LIS_06_INV (Invoice Verification) structure. Interestingly, I don't see any Events under this structure (MC06M_0ITM) - my understanding is the events usually determine what type of data is generated for a given structure.
I see Invoice Verification when I use the Inventory Management -Perform Setup option when doing the set-up tables. However, when I use this option, I get a message saying " No extraction structure active or no BW connected".
Can someone list the pre-requisites and the steps to load the set-up table for the 2LIS_06_INV structure.
Thanks,
Sanjay1: RSA5 Activate Data Source
2: LBWE Activate datasource again
3: SBIW Fill setup table 'Settings for Application-Specific DataSources (PI)'-> 'Initialization'->'Filling in the Setup Table'->'Application-Specific Setup of Statistical Data'->'Invoice Verification - Execute Reconstruction' -
How to read RMAN data into an ORACLE Table?
Hallo,
With regards to RMAN, how should we store the data into a database table, from the commands which can run only on RMAN prompt without using Recovery Catalog?
For Example:
RMAN> Report need backup days 3;
RMAN DATA:
RMAN-03022: compiling command: report
Report of files whose recovery needs more than 3 days of archived logs
File Days Name
1 1203 D:\ORACLE\ORADATA\TEST\SYSTEM01.DBF
2 1203 D:\ORACLE\ORADATA\TEST\RBS01.DBF
3 1203 D:\ORACLE\ORADATA\TEST\USERS01.DBF
Should it done via UTL_FILE?
If so, could someone give simple example/code how to do that, in order to write this RMAN data into an Oracle Database table?
I also set the utl_file_dir parameter to a particular directory in my database.
Thanks
W.BenvortActually, I am not using Recovery Catalog, so the views like RC_database, Rc_tablespaces etc , which are specific to recovery catalog are not available.
r.- this make sense at 100% because those views belong to the recovery catalog.
So, I wanted that these information, which we can get via using the commands like above, transfer into an Oracle table
r.- If you want to access the views of the Recovery Catalog to store part of that information in tables you have to have the database registered in a Recovery Catalog.
Should we keep the Recovery Catalog in Control file? Instead of using separate Schema.
r.- I recommend you to create a catalog for your database because the space the controlfile to store information regarding RMAN is reused and you can lose important information about your backups.
Can we run Catrman.sql script as a sys in order to keep the recovery catalog in sys schema?
r.- As you know, this is not recommended at all.
Conclusion : Create a Recovery Catalog and you will be able to perform all that you want regardind what you mentioned above.
I have a thread for this:
RMAN ( CATALOG CREATION ) STEP BY STEP by Joel Pérez
Joel Pérez
http://otn.oracle.com/experts -
Loading xml data to a oracle database problem in style sheet
Hi,
I Have one small Problem While loading xml data to a oracle database.
In the XML i have the Columns and Data Like this.
<Data>
<TRAN>
<Type_Trs>A</Type_Trs>
<T1>2</T1>
<T2>3</T2>
</TRAN>
<TRAN>
<Type_Trs>B</Type_Trs>
<T1>2</T1>
<T2>3</T2>
</TRAN>
</Data>
I have TRAN Table having Field Like this.
TRAN(Type_Trs,T1,F)
Note:- The XML Column T2 is Not matching with TRAN Table Column F
I want to fetch T2 data into F column.
When I am fetching the xml data into oracle table only
one row is fetching.
Can You help me
To load the the all the record of XML data into the Oracle Table
What will be my XLS Style Sheet File Please
suggest me.
Regards
MBR
Thnks in AdvanceHi MBR
You would be better posting your question to the general XML forums:
http://forums.oracle.com/forums/category.jspa?categoryID=51
This is purely for XML/BI Publisher where we get the data back out of the db :o)
Tim -
Extract data from Solution Manager database
Hi,
I am investigating the possibility of using SQL to extract alert data
from the Oracle database directly.
I have looked in the database to find the tables which would provide
such information, and I have found some promising tables.
But I need to understand how the data is stored in the Solution Manager
system, I see that once the solution manager application is started it
pulls the data from the CCMS alerts on the remote systems. But that
data needs to be stored somewhere. Can you tell me if it is buffered in
an internal table or a structure.
Is it possible to use the SAP tables to produce such a report, or which
BAPI's can I use to extract the data.
Thanks
Chris aka BoobBooHi Chris:
If you want to interact with the Alerting data, you should use the XAL External Interface for Alert Management.
You can find the additional information and also the XAL BAPI guide in SAP Service Marketplace under System Monitoring.
Hope this helps!
Federico G. Babelis
NetWeaver Certified Consultant
GAZUM Technologies S.A.
Consulting Services and Software Solutions
http://www.gazum.com
...download FREE Marketplace Manager at: http://www.gazum.com/products
Maybe you are looking for
-
1st Gen iMac G5 BAd Power Supply
Hi, My iMac G5 power supply is officially dead. It was confirmed at the Apple Store at the Genius Bar. Apple apparently no longer sells the power supply for the first gen iMac G5s. I have two questions: Does anyone have a suggestion on where to buy a
-
I used to be able to get free albums on iTunes
Hey, I used to be able to find free new albums on iTunes, with genres that ranged from indie, to "world" music, and I discovered hundreds of amazing songs and bands that way. I used to go through a route provided here on the Apple website, and it wou
-
Updated Firefox won't save my preferences; reverts to original settings.
A few days ago, Firefox updated itself to the 18.0.1 version. Now, each time Firefox updates itself, I tend to lose some of my preferences, those being: opening new tabs as a blank page, tabs being on the bottom, and showing my windows and tabs from
-
Storage options and performance
We have a GroupWise 8.02 HP2 running on a NetWare 6.5 SP8. The hardware has a RAID 1 for its SYS: volume and a RAID 5 (4 disks) for its MAIL: volume. We've been running low on space.... As an immediate solution, we're considering plugging into, via i
-
Inventory Only vs. Managed
I want to Inventory our Servers (100+). We have ZCM10 with the Asset Mgmt module added. We have 1 Zone, but we have a Satellite office that has it's own servers that they will Inventory. Of course we also have workstations that will be fully managed