Loading External files in Oracle - error (double quotes on columns)
I managed to successfully load some external (Excel ) files in my Oracle database, but when I queried the table, I see that some of the columns have double quotes on them. Any idea how to remedy this problem?
damorgan wrote:
OPTIONALLY ENCLOSED BY double quotes in your syntax to remove them.
http://www.morganslibrary.org/reference/externaltab.html
Damorgan,
Thank you!
Similar Messages
-
Loading csv file trying to replace double quotes
Hi, I am trying to load a csv file with a field with double qoutes that I want to replace the double qoutes to one. The CSV file I will enter
"TEST,2345" in a field and when it loads its as ""TEST,2345""
So I got this code to handle it.
Pattern quotesRegex = Pattern.compile("\"\"");
Matcher m = fieldRegex.matcher(line);
while (m.find()) {
String field;
if (m.group(1) != null) {
// If a quoted string was matched replace escaped double quote,
// "" with "
field = quotesRegex.matcher(m.group(1)).replaceAll("\"");
else {
field = m.group(2);
fields.add(field.trim());
I want to change a line like this
D,,""TEST,2345"",46,,
to
D,,"TEST,2345",46,,
but afterwards nothing has changed the record looks as below
D,,""TEST,2345"",46,,
Whats wrong with this?
thanksI simply created a simple csv file with one field that I entered a double qoute of "TEST,2345"
Later when reading in the file(using the code I pasted in) I can inspect it and its """TEST,2345"""
The relaceAll doesnt seem to change anything(nor did my code). So I was stumped. thanks -
FAQ: SWF's and loading external files in Flash Catalyst
How do I make the images in my Flash Catalyst project external to the published SWF?
You can choose whether images are embedded in your Flash Catalyst SWF, or loaded dynamically; this can help to keep your SWF's small. Simply right-click an image and chose "Externalize Image".
Answered by: Adam Cath.
See entire discussion.
How do I make the SWF I imported to Flash Catalyst load external files?
When importing a SWF, Flash Catalyst only pulls the SWF asset into your project. Many SWF's, such as slideshows and media players, rely on external data files, such as configuration files or media assets. If you would like to use such a SWF in Catalyst, then you will have to place these external resources into your Catalyst project as well as importing the SWF.
Let's assume you have a SWF source folder that contains your SWF file and all of the external files it needs. You can open the SWF file from this folder and it works fine. But, if you import the SWF into Catalyst, the Catalyst project doesn't display it correctly because it can't load the external files. Here's what you do:
1. Open your swf source folder, and copy all of the files/folders there except the SWF you imported.
2. In Catalyst, Run/Preview your project (Ctl/Cmd-Enter)
2. Note the file path to Main.html in your browser
3. In your OS, open the folder that contains /bin-debug/Main.html from above
4. Open the "src" folder
5. Paste all of the files from step 1 into the src folder.
6. Catalyst won't pick up that your project changed, so tweak it a bit (add a Rectangle), and save it.
7. Run your project. If it doesn't work, try closing and reopening your project and running again.
For an example, check out: Using an XML-driven SWF in Catalyst to create a slideshow.
See entire discussion.
Answered by: Bear TravisYou can make you swf a custom component with 2 states.
The first state will be empty and rename it "OFF" the second state will have your swf file and name it ON.
Then go back to your artboard/project, add your 2 buttons ON & OFF.
For the ON button add interaction "play transition to custom component ON"
For the OFF button add interaction "play transition to custom component OFF"
Here is an example swf_control -
When I down load the file i get (error 1004 please try again)
when I down load the file i get (error 1004 please try again)
Try this first. Go to Settings>Safari>Clear History, Cookies and Cache (or Data if you are running iOS 5). Restart the iPad. Hold the sleep button until the red slider appears and slide to shut down. Hold the sleep button until the Apple logo appears to power up.
If that doesn't work, look here for more help.
http://support.apple.com/kb/TS3694#error1004 -
Load flat file into oracle with SQL Loader
Hi All,
Oracle 9i
I want to load flat file into oracle with the help of sqlloader but I want to skip some columns from flat file.
Can anyone tell me how can we skip column from flat file , I can’t open flat file into excel as CSV due to large volume
Does anyone has any solution for the same.
Umesh GoelFiller can be use when we want to skip database table column or we want to put null in database table column
but if we have 10 column in flat file and we want to load 1,2,5,7 number column from flat file
then I think filler will not work
If yes then plz let me know.
thx
UG -
Error while loading java file in Oracle
Hi,
I am facing error while loading java class into oracle . Can you please help
-bash-3.2$ cd /export/home/sacuser/
-bash-3.2$ loadjava -user sacuserdb/sacuserdb@BLM - resolve Oracle_Validator/src/com/nec/blm/oracle/validator/Validate.java
unrecognized or badly formed option -
loadjava: Usage: loadjava [-definer] [-encoding encoding] [-force] [-genmissing] [-genmissingjar jar] [-grant grant s] [-help] [-nousage] [-noverify] [-oci8] [-order] [-resolve] [-resolver resolver] [-schema schema] [-synonym] [-th in] [-tableschema schema] [-user user/password@database] [-verbose] classes..jars..resources..properties...
-bash-3.2$ loadjava -user sacuserdb/sacuserdb@BLM -resolve Oracle_Validator/src/com/nec/blm/oracle/validator/Validate.java
An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : 11 occurred at PC=0x0
Function=[Unknown.]
Library=(N/A)
NOTE: We are unable to locate the function name symbol for the error
just occurred. Please refer to release documentation for possible
reason and solutions.
Current Java thread:
at oracle.jdbc.driver.T2CConnection.t2cCreateState(Native Method)
at oracle.jdbc.driver.T2CConnection.logon(T2CConnection.java:346)
at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:413)
at oracle.jdbc.driver.T2CConnection.<init>(T2CConnection.java:131)
at oracle.jdbc.driver.T2CDriverExtension.getConnection(T2CDriverExtension.java:77)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:752)
at java.sql.DriverManager.getConnection(DriverManager.java:512)
- locked <0xf5fdc448> (a java.lang.Class)
at java.sql.DriverManager.getConnection(DriverManager.java:140)
- locked <0xf5fdc448> (a java.lang.Class)
at oracle.aurora.server.tools.loadjava.DatabaseOptions.getConnection(DatabaseOptions.java:180)
at oracle.aurora.server.tools.loadjava.DatabaseOptions.connect(DatabaseOptions.java:123)
at oracle.aurora.server.tools.loadjava.LoadJavaState.getConnection(LoadJavaState.java:409)
at oracle.aurora.server.tools.loadjava.LoadJavaState.getOldMD5(LoadJavaState.java:696)
at oracle.aurora.server.tools.loadjava.ClientSchemaObject.getOldMD5(ClientSchemaObject.java:52)
at oracle.aurora.server.tools.loadjava.SchemaObject.doCreate(SchemaObject.java:172)
at oracle.aurora.server.tools.loadjava.SchemaObject.process1(SchemaObject.java:215)
at oracle.aurora.server.tools.loadjava.LoadJava.add(LoadJava.java:532)
at oracle.aurora.server.tools.loadjava.LoadJava.addSource(LoadJava.java:574)
at oracle.aurora.server.tools.loadjava.LoadJava.add(LoadJava.java:439)
at oracle.aurora.server.tools.loadjava.LoadJava.add(LoadJava.java:380)
at oracle.aurora.server.tools.loadjava.LoadJava.add(LoadJava.java:349)
at oracle.aurora.server.tools.loadjava.LoadJava.add(LoadJava.java:652)
at oracle.aurora.server.tools.loadjava.LoadJava.processDeferredFiles(LoadJava.java:617)
at oracle.aurora.server.tools.loadjava.LoadJava.process(LoadJava.java:818)
at oracle.aurora.server.tools.loadjava.LoadJava.command(LoadJava.java:251)
at oracle.aurora.server.tools.loadjava.LoadJavaMain.run(LoadJavaMain.java:103)
at oracle.aurora.server.tools.loadjava.LoadJavaMain.main(LoadJavaMain.java:28)
Dynamic libraries:
0x8050000 /opt/oracle/product/10g/jdk/jre/bin/java
0xfef80000 /lib/libthread.so.1
0xfef40000 /lib/libdl.so.1
0xfee10000 /lib/libc.so.1
0xfea00000 /opt/oracle/product/10g/jdk/jre/lib/i386/client/libjvm.so
0xfedd0000 /usr/lib/libCrun.so.1
0xfedb0000 /lib/libsocket.so.1
0xfe960000 /lib/libnsl.so.1
0xfed90000 /lib/libm.so.1
0xfedc0000 /usr/lib/libsched.so.1
0xfe900000 /lib/libm.so.2
0xfed40000 /lib/libscf.so.1
0xfe8e0000 /lib/libdoor.so.1
0xfe8b0000 /lib/libuutil.so.1
0xfe890000 /lib/libgen.so.1
0xfe870000 /lib/libmd.so.1
0xfe850000 /lib/libmp.so.2
0xfe830000 /opt/oracle/product/10g/jdk/jre/lib/i386/native_threads/libhpi.so
0xfe3d0000 /opt/oracle/product/10g/jdk/jre/lib/i386/libverify.so
0xfe3a0000 /opt/oracle/product/10g/jdk/jre/lib/i386/libjava.so
0xfe380000 /opt/oracle/product/10g/jdk/jre/lib/i386/libzip.so
0xf9e80000 /opt/oracle/product/10g/lib32/libocijdbc10.so
0xf0e00000 /opt/oracle/product/10g/lib32/libclntsh.so.10.1
0xf0c60000 /opt/oracle/product/10g/lib32/libnnz10.so
0xf9e60000 /lib/libkstat.so.1
0xf9e30000 /lib/libaio.so.1
0xf1b60000 /lib/librt.so.1
Heap at VM Abort:
Heap
def new generation total 576K, used 237K [0xf1e00000, 0xf1ea0000, 0xf22e0000)
eden space 512K, 45% used [0xf1e00000, 0xf1e3a058, 0xf1e80000)
from space 64K, 8% used [0xf1e90000, 0xf1e915c0, 0xf1ea0000)
to space 64K, 0% used [0xf1e80000, 0xf1e80000, 0xf1e90000)
tenured generation total 1408K, used 204K [0xf22e0000, 0xf2440000, 0xf5e00000)
the space 1408K, 14% used [0xf22e0000, 0xf23130f0, 0xf2313200, 0xf2440000)
compacting perm gen total 4096K, used 2662K [0xf5e00000, 0xf6200000, 0xf9e00000)
the space 4096K, 65% used [0xf5e00000, 0xf6099a38, 0xf6099c00, 0xf6200000)
Local Time = Mon Jun 17 16:29:08 2013
Elapsed Time = 0
# The exception above was detected in native code outside the VM
# Java VM: Java HotSpot(TM) Client VM (1.4.2_05-b04 mixed mode)
# An error report file has been saved as hs_err_pid27805.log.
# Please refer to the file for further information.
Abort (core dumped)Please try to compile your java source file with jdk avaiable in ORACLE_HOME\jdk\bin\javac.
load the compiled class file in oracle DB using loadjava utility.
loadjava -user scott/tiger javafile.class -
How to load PDF files into oracle database and display them in APEX
Hi All,
We have a requirement for loading the Loading PDF files (lots of PDf files) to the oracle database and then display the PDF files in the Oracel APEX report.
So that User can view the PDF files. Our current APEX verison is 3.2..
Please let me know how to implement it and where to find the sample application!
Thanks in advanced!
JaneThanks Tony for your quick response!
We need to load a lot of PDfs (history + current).
I have a questions about the SQL loader. I am trying to insert a pdf file into a table by following the oracle loading sample:
http://download.oracle.com/docs/cd/B10501_01/text.920/a96518/aload.htm
Example Data File: loader2.dat
This file contains the data to be loaded into each row of the table, articles_formatted.
Each line contains a comma separated list of the fields to be loaded in articles_formatted. The last field of every line names the file to be loaded in to the text column:
Ben Kanobi, plaintext,Kawasaki news article,../sample_docs/kawasaki.txt,
But i don't know to where should I put my pdf file on the server.
for example:
,../sample_docs/kawasaki.txt,
Where is the file 'kawasaki.txt'??
I try my local path, it didn't work. like c:\temp.
then I loaded teh PDf file into our server(/findev20/olmtest/orafin/11.5.7/olmtestcomn/temp) , and In my data file. I put the path
1, pdf_emp1,../findev20/olmtest/orafin/11.5.7/olmtestcomn/temp
but I got the error: the system can not find the file specified.
Where should I put the PDf files on the server and how to specify the path in the data file?
Thanks!
Jane -
MAPPING FLAT FILE TO ORACLE ERROR!! Please help
hello all
I am using OWB on Oracle9i.
Trying to map flat file (file.txt) to oracle table,
Validate: okey, some warning
Generate/Deploy: successful.
But when I check to the database sqlplus there is no rows existed. I verify that I connect to the right database.
My question is:
When doing a map from flat file to oracle table. Do I have to have some thing in the middle such as (filter, join) or I just can do a straight mapping if I don't have any condition to filter out.
Please response if you know the answer.
Your answer greatly appreciated. Thank you for your help
Regards,If you are using an OWB version which is 9.0.3.x or earlier, to load a flat file into the database, you should generate SQL loader files and run them either manually or by using a scheduler.
The new version (9.0.4) supports external tables, so you don't have to use SQL loader. Please refer to the user manual for more details.
Regards:
Igor -
How to load jar file in oracle 9i???
Hi Friends,
Can you help me, how to load jar file oracle 9i? I have to tried to load in 10g using loadjava command but it's not working in oracle 9i because the loadjava batch file itself is not there in oralce 9i.
Is there any other way then pls let me know.
- Hiren ModiHi,
I have oracle version : Release 2 (9.2.0.1.0) for Windows. I have tried to execute the loadjava command from SQL prompt but its giving as below.
H:\>loadjava
The system cannot find the path specified.
Do you know why its giving error like this. I have checked in dir : C:\oracle\ora92\bin but loadjava executable file is not there in it.
- Hiren Modi -
Sql loader: loading external file into blob
hi,
i keep being blocked by loading external binary files into a blob columns with sql loader tool.
Here is the problem:
I want to load pictures into a table with lob columns. Here is my control file, data file and the error message:
control file:
LOAD DATA
APPEND
INTO TABLE T_K58_SYMBOLE
FIELDS TERMINATED BY ';' TRAILING NULLCOLS
SYMB_ID INTEGER EXTERNAL(8),
SYMB_LMLABEL CHAR(100),
imgName FILLER,
SYMB_GIF_HI BFILE(CONSTANT ".", imgName),
thumbName FILLER,
SYMB_GIF_LOW BFILE(CONSTANT ".", thumbName)
data file:
1;0800;image1.gif;image1.gif;
error message:
SQL*Loader-418: Bad datafile datatype for column SYMB_GIF_HI
Here is the script of the creation of my table in my database:
create table T_K58_SYMBOLE (
SYMB_ID NUMBER(8) not null,
SYMB_LMLABEL VARCHAR2(100),
SYMB_GIF_HI BLOB,
SYMB_GIF_LOW BLOB,
constraint PK_T_K58_SYMBOLE primary key (SYMB_ID)
LOB (SYMB_GIF_HI, SYMB_GIF_LOW) STORE AS (tablespace TDK5813)
tablespace TDK5811
Please, i need help!!!!This is my control file. I'm loading images in database table using sqlldr in Unix:
LOAD DATA
INFILE 'sampledata.dat'
INTO TABLE image_table
APPEND
FIELDS TERMINATED BY ',' optionally enclosed by '"'
IMAGE_ID INTEGER EXTERNAL,
FILE_NAME CHAR,
IMAGE_DATA LOBFILE(FILE_NAME) TERMINATED BY EOF
I'm facing following error:
SQL*Loader-350: Syntax error at line 9.
Expecting "," or ")", found "LOBFILE".
IMAGE_DATA LOBFILE(FILE_NAME) TERMINATED BY EOF
My data file is:
1,"IMG_3126.jpg"
2,"IMG_3127.jpg"
3,"IMG_3128.jpg"
and images are in the same server. please help me to get out of this.
Thanks,
Surjeet Kaur -
Loading External Files From SWF Root
Hi All,
I do not know anything about flash. I have been provided with some flash movies/apps to include in a web design that I am doing. These flash movies load an external xml file.
This is failing.
The problem appears to be that when the flash movie goes to load the file using a relative directory path, it starts at the very root of the web directory, where the main jsp file is, instead of the where the .swf file is located.
For example, say my website is www.mywebsite.com/mysite.jsp and I have stored the flash in a directory similar to /mywebsite.com/flash/movie1/movie1.swf.
When the movie goes to play, I am getting a 404 error in firebug because the flash movie is trying to load the external xml from /mywebsite.com/file.xml instead of /mywebsite.com/flash/movie1/file.xml.
How can this be corrected? Is there a way for the flash application to use the .swf root directory instead of the .jsp file root directory?
I hope this made sense. Good chance it doesn't.When you load the Flash file into a web page, the web page becomes its frame of reference for loading other content. So to fix this situation you should either relocate things to where the Flash file lives in the same directory as the web page that loads it, or retarget the files that the Flash file is loading as if it were in the web page's folder (using absolute paths should guarantee correct targeting).
-
Hi guys,
Sorry to sound such a newbie, but just wondering if anybody can direct me to the right path, basically i need to make a GUI in java, i know i can do this using Jbutton etc but how can i for example by clicking on a button load a SWF file into like a box where the flash file can play, also load any other form of data?
Additionally i tryed to add my mp3 format to the java but i cant succed in adding the mp3 file to an existing java file. is there a specific method i could use?
Thanksdamorgan wrote:
OPTIONALLY ENCLOSED BY double quotes in your syntax to remove them.
http://www.morganslibrary.org/reference/externaltab.html
Damorgan,
Thank you! -
Loading external swf and object error
Hello Forum,
I have two swf files, Flash CS3, action script 3.
One file can be considered to be the parent container, it
does have some objects on its stage.
The other file is a file that I would like to load into the
master file using the Loader object.
The file that I would like to load, works fine (or so it
seems) standalone. This file contains
a timer object, a loader object (which loads images from an
xml file), and XMLLoader feature,
and a button that I have created from a class that i have
created for a button. I can set the
label for the button from the swf like a property. This swf
is all Actionscript, using
addchild to get the various things on the stage.
I am using actionscript to load the objects on the stage in
the external file - as opposed to having
them on the timeline before hand.
When I try to load this external swf file in to a parent swf
file I get an error like this:
TypeError: Error #1009: Cannot access a property or method of
a null object reference.
at weekly_tasks_fla::MainTimeline/frame1()
This error happens whenever (in the external swf file) i add
an object
(like a button or a textfield) to the stage of the exteranl
swf file.
I am able to load other swf files ok (as long as I did not
create them!).
Confused Again,
eholz1I sat typing into the quick reply, but this isn't sorry.
The issue here is that when you roll over another object
within the application it assumes that you have moved out of the
current object even if the new object is within the container of
the current object.
Hope that makes sense upto now. I had the same problem and
had to do this...
On mouse Over pr Rollover on internal object I run the stop
propogation and then restart the mouse over of the parent
container.
private function stopGadget(e:MouseEvent):void
// Stops the current mouse over running the parent container
mouse over. Then reloads the parent container for the gadget bar
(BIT OF A HACK)
e.stopPropagation();
Application.application.showTheGadget(e);
I think my comment sums it up a BIT of a Hack. -
Load XML file to Oracle 10G XE
The load xml wizard in Oracle XE asks for a table in the HR schema to load into.
Well I create one using the 'Create Table' procedure with a script that runs and creates the table. Now I have a XML file that matches the table I created and try to load the file contents into the table. I get an error. Am I surprised? no, I am not. Nothing works the first time.
Is there a preferred format for the xml file that supports loading into a table?
There appears to be no help file, but then I may be mistaken.
Could someone show me where to find this help file?The bug you are referencing occurs when an Enumerated Value also has min and max lengths specified..
Eg something like
<xsd:simpleType name="EnumType">
<xsd:annotation>
<xsd:documentation>ENUM_TYPE</xsd:documentation>
</xsd:annotation>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="AA"/>
<xsd:enumeration value="AB"/>
<xsd:enumeration value="AE"/>
<xsd:enumeration value="AK"/>
<xsd:enumeration value="AL"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:complexType name="TYPE1">
<xsd:sequence>
<xsd:element name="TYPE11">
<xsd:simpleType>
<xsd:restriction base="EnumType">
<xsd:minLength value="1"/>
<xsd:maxLength value="10"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:schema> Do you have something like this in your XML Schema. If this is the case try removing the minLength, maxLength as they are redundant, which is probably why we didn't catch this one in internal testing, it sort of falls into the "if it hurts please don't do it" category :). Also the fix for this bug appears to have been backported on top of 9.2.0.6.0 so upgrading to 9.2.0.7.0 or 9.2.0.8.0 or the later releases of 10.1 or 10.2 should fix the problem. -
How to Load Multiple Files in Oracle Database using Sql Loader
Hi All,
I want to import multiple files in my DB using Sql*Loader. Please tell me the Syntax, how can I import multiple files using one Control File?
Thanks & Regards,
ImranHi,
You might get a good response to your post in the forum dedicated to data movement , including SQL*Loader . You can find it here Export/Import/SQL Loader & External Tables
Regards,
Maybe you are looking for
-
ITunes takes a long time to open, or doesn't open at all.
I recently had problems with iTunes where it just wouldn't open. I did a factory reset on my computer, however it takes a long time to open and works really slow. When I try to sync, it takes around in hour.
-
Receiving text and email notifications while on call
While I'm on a call, I receive text and email notifications (by a sound and a buzz). Is there a way to shut this off, as it's annoying when there are multiple messages coming through.
-
How to calculate length of the string in transformation file
Hello all I have tried a number of ways and I am not able to calculate the length of the incoming field in transformation file for my data load. Here is the issue. I have an incoming string of length 10 and I need to use it to update multiple dimensi
-
Deleting Data Package with Abap - error in Abap statement
Hi, I am trying to delete data with abap but my logic is not working and it failed with error message Error in an abap/4 statement when processing requirement - Delete data package when plant = INDIA - Delete data package when Area = 01 OR Group =
-
Connecting Airport Extreme to a DSL
I have recently acquired an Airport Extreme which is connected to the DSL via an old Linksys Router. Signal keeps dropping and is slow especially in distant rooms. What is the best way to connect airport to DSL. Does the Linksys wireless need to be d