How do I create a 'external table' against clob
Hi there,
I have a need, where I will have multiple csv files, which I plan to load it to a temporary table using the 'external table' concept. My issue is that I will have many at the same time and I don't want to create too many tables.
So is there a way I can create tables against clob (which will have ',' separated data.
Basically instead of putting the ',' separated data in a file I want to keep it in CLOB.
Let me know
Thanks
Yes I understand that. Problem is I will be having lot of data so I need good indexes to process it. That's why I am loading into a permanent temp table.
The issue is I have to load multiple csv files at the same time. So either I have to have multiple external tables defined or I have to single thread.
So I was wondering if there is a way to replace the csv file with CLOB, that will be very useful.
Thanks
Similar Messages
-
Create an external table based on an XML file
Hi ,
I am trying to create an external table based on XML file .Is it possible to do in OWB ?If Yes .Can someone please let me know the same .
I was successfully able to create an external table based on a flat file which is of the extension *.txt.
I was even able to load an XML file to a normal
table .How do we do it to an external table?
Thanks,
ManjulaHello Manjula,
Is it possible for you to spare sometime to list down the steps to be followed for creating External Table using flat file *.txt?
I am trying to do it but not getting through it.
Thanks in Advance,
Ripesh -
How can I create an active table of content in the sidebar to help readers to get to the section?
You can create bookmarks with Adobe Acrobat.
-
How can i create a custom table in to my banking services server
I am having product type and account type details for those things I need to create a table
Product Id. Account Type
DP_PYGO_P 21
DP_BASIC 25
DP_UNLIMIT 24
DP_ADVANTG 17
DP_SAV 34
DP_TBILL 54
DP_USDCHQ 19
DP_FREEDOM 52
For the above fields how can i create a custom table into banking services serverTransaction SE11, maybe? I don't really see the problem, unless you have never created a transparant table before...
-
Error while creating oracle external table
I am trying to create an external table with the following syntax. WhenI have executed this statement in my server which running in my machine, it is working fine. Whine I try to run the same statement on different server, it is giving the below error. I have verified the grants on both the schemas, they are simillar.
create table ext_ORGBASIC_CLIENT1(
Serial_Number varchar2(1000),
Add_Edit_Organization varchar2(1000),
Parent_Organization varchar2(1000),
Organization_Code varchar2(1000),
Organization_Name varchar2(1000),
Legal_Entity varchar2(1000),
Active varchar2(1000),
Require_Entity_Use__as_Matchin varchar2(1000),
Pass_On_Tax_On_Tax_To_Customer varchar2(1000),
Allow_Exemption_Without_Receiv varchar2(1000),
Entiy_Use_Code_Association varchar2(1000),
Tax_Calculation_Type_Code varchar2(1000),
Transaction_Type_Code varchar2(1000),
Transaction_Source_Code varchar2(1000),
Taxware_Delivery_Terms_Code varchar2(1000),
Taxware_Mode_of_Transport_Code varchar2(1000),
Debit_Credit_Indicator varchar2(1000),
Discount_Type_Code varchar2(1000),
Place_of_Principal_Negotiation varchar2(1000),
Quantity_Unit_of_Measure_Code varchar2(1000),
Good_Service_Category_Code varchar2(1000),
Tax_Rate_Of_Geo_Code_To_Be_Aut varchar2(1000))
organization external
( type oracle_loader default directory EXT_TAB_DIR
access parameters ( records delimited by newline characterset US7ASCII load
when (serial_number != 'Number' and serial_number != '#')
badfile 'EXT_TAB_DIR':'CLIENT1.bad'
logfile 'EXT_TAB_DIR':'CLIENT1.log'
fields terminated by ',' optionally enclosed by '"' lrtrim missing field values are null
reject rows with all null fields )
location ('C_CLIENT1_TXWR_FS1_TWEBULK_ORGBASIC_1_1_20091126102230_001_CSV.csv') )
parallel reject limit unlimited
while querieng from the table I am getting the below error
select * from ext_orgbasic_client1;
ORA-29913: error in executing ODCIEXTTABLEOPEN callout
ORA-29400: data cartridge error
KUP-04001: error opening file CLIENT1.log
ORA-06512: at "SYS.ORACLE_LOADER", line 19I try to run the same statement on different server, it is giving the below errorSame OS name & version?
Same Oracle version to 4 decimal places?
Same OS file permissions?
Same OS pathnames? -
Error in creating an external table referring to a XML file
I've got an XML file and I've tried to create an external table referring to it in this way:
CREATE TABLE mytable
XML_DATA_COLUMN XMLType
ORGANIZATION EXTERNAL
TYPE ORACLE_LOADER DEFAULT DIRECTORY TEST_DIR
ACCESS PARAMETERS ( records delimited BY newline
(XML_DATA_COLUMN LOB) ) LOCATION ( 'myfile.xml' )
where TEST_DIR is the directory where myfile.xml is stored,
but I get this message:
Error at Command Line:3 Column:4
Error report:
SQL Error: ORA-30656: column type not supported on external organized table
30656.0000 - "column type not supported on external organized table"
*Cause: Attempt to create an external organized table with a column
of type LONG, LOB, BFILE, ADT, or VARRAY.
*Action: These column types are not supported, change the DDL.
I want to have in the XML_DATA_COLUMN the content of myfile.xml so as to handle it by using extract and extractvalue functions.
My oracle version is 10gR2 Express Edition
Thanks!The examples in the following thread include an insert, but you could also use the select statement alone without the insert.
http://www.orafaq.com/forum/mv/msg/172162/511897/0/#msg_511897 -
How do I create an External Hard Drive iPhoto Library
How do I create an external Hard Drive iPhoto Library? Will it remember faces and places, and the camera settings? I have over 20k photos. Most pictures are already stored in files on my external hd, but everytime I need to edit, I need to import the pics back into iPhoto. Is there an option for "editing software" outside of iPhoto? I do not want to store pictures on my computer, but I do like the "faces" feature! Please help!
Sure it can be UnDone in the same way it was done. By Copying the iPhoto library back to the original location or any other location on your internal drive and then Repointing iPhoto to use that Library as you did when you moved it to the external.
Have no idea about the thumbnails being blurry as I only use iPhoto for testing and helping others. I find iPhoto lacking in many ways and I already own Adobe Lightroom so I use that on my Mac.
I wouldn't think the thumbnails wouldn't be any different. They are the same files and even if the external is slower the Thumbnails should display the same way not differently.
I also do not allow any of the "i" programs, Photo & Tunes, to Copy my image or music files into their folder structure. I have them set to Leave the Files where they are, as I copy them to my hard drive where I want them Not where Photo and Tunes want to put them, and then just create a Library Database of them. So if I wanted to I could have just the actual image files on an External drive and then have iPhoto just create a Library database reference to them.
One Note though.
If you move the Library, including the actual image files, to an external and then start iPhoto without that external connected iPhoto will then Create another Library in the normal Default location that is blank and then you will need to point it to your original that is on the external once you reconnect that external.
That is one reason I don't care for iPhoto. Apple has made it fairly easy for novice users, placing everything in their User folder but IMHO that is not always the best way to do things.
Also at any point in time, even with the external connected, iPhoto will lose that association to the external Library and create another in the original Default location. Which will look like all your images are missing.
colleen747 wrote:
Thank you for responding. I understand. After reading quite a bit about this procedure, can it be undone? So many out there have stated that everything slows way down and the thumbnails are blurry. What is your opinion?
Do I first create a New File on the EHD and name it "iPhoto Library"? Then paste?
Most pictures are in folders on my EHD, how do I move them to the new library?
Thanks! -
Create multiple external tables from same flat file ?
using oracle 10g
currently create many external tables like so..
CREATE TABLE "XT_UNITS"
"Q1_2012" VARCHAR2(25 BYTE),
"Q2_2012" VARCHAR2(25 BYTE),
"Q3_2012" VARCHAR2(25 BYTE),
"Q4_2012" VARCHAR2(25 BYTE)
ORGANIZATION EXTERNAL
TYPE ORACLE_LOADER DEFAULT DIRECTORY "XE_FILES" ACCESS PARAMETERS ( records delimited BY newline
skip 1 fields terminated BY ',' OPTIONALLY ENCLOSED BY '"' MISSING FIELD VALUES
ARE NULL ) LOCATION ( 'xtunits.csv' ))
is there any way I can use 1 flat file (csv) to populate many external tables ?
maybe by section ?Jay wrote:
using oracle 10g
currently create many external tables like so..
CREATE TABLE "XT_UNITS"
"Q1_2012" VARCHAR2(25 BYTE),
"Q2_2012" VARCHAR2(25 BYTE),
"Q3_2012" VARCHAR2(25 BYTE),
"Q4_2012" VARCHAR2(25 BYTE)
ORGANIZATION EXTERNAL
TYPE ORACLE_LOADER DEFAULT DIRECTORY "XE_FILES" ACCESS PARAMETERS ( records delimited BY newline
skip 1 fields terminated BY ',' OPTIONALLY ENCLOSED BY '"' MISSING FIELD VALUES
ARE NULL ) LOCATION ( 'xtunits.csv' ))
is there any way I can use 1 flat file (csv) to populate many external tables ?
maybe by section ?Not a logical question.
An external table definition relates to one or more files.
You could probably create multiple externable table definitions to access the same file(s), but you may end up with some operating system file locking issues if you're not careful, and to be honest why would you need to do that? -
ORA-0092 error when trying to create an external table
For some reason, I always received the following error whenever I attempt to create an
External table.
ORA-0092:missing or invalid option
This is the code that I am using in SQL Plus:
SQL> create table products (
2 product_no number,
3 description varchar2(100),
4 price varchar2(20)
5 )
6 organization EXTERNAL (
7 type oracle_loader
8 default directory PRODUCT_DIR
9 access parameters
10 ( records delimited by newline
11 badfile 'products.bad'
12 logfile 'products.log'
13 fields terminated by ','
14 )
15 location ('products.csv')
16 )
17 reject ('products.csv')
18 )
19 reject limit unlimited
20 /
organization EXTERNAL (
ERROR at line 6:
ORA-00922: missing or invalid option
This is the statement that I used to create my directory:
CREATE DIRECTORY PRODUCT_DIR AS 'd:\products';
Does that directory have to be an actual physical directory in UNIX for this to work, or
will it be looking for a products folder in the d drive of my Windows NT machine?The directory should exist on the server where Oracle is installed. Since clients can be more than one on various operating
systems, It can not be a directory on the client (since that would not be valid for other clients or even the same user
connecting from a different machine).
Did you install the Standard Edition of Oracle or the Enterprise Edition of Oracle server on your machine?
External Tables option may not be available on Standard Edition.
I have Oracle9i Rel 2 installed on my server and the external tables works fine for me. -
How do I create a pivot table in numbers?
How do I create a pivot table in numbers?
SO HERE'S WHAT I GOT TO WORK:
Truth is all the real functionality of categories and pivot tables exists in the formulas. You just have to
Create a new table with a list of the categories in the header column.
Add SUMIFS() formula from the browser into the next column.
Enter your arguments and make sure to check "Preserve Column" for each of them.
Although it might not be apparent, you can enter multiple test value and condition pairs.
While I admit the formulas are not nearly so graphic as categories, they are cleaner and less restricting, and they aren't any more difficult to work with than pivot tables. -
Can we create single External Table for multiple files?
HI,
Can we create External table for multiple files? Could anyone please explain it.
Thanks and regards
Gowtham Sen.to merge 16 files having same structureWell, if files have the same structure, as per the reading of the example from the following documentation, you can create one external table for all your files :
http://download-uk.oracle.com/docs/cd/B19306_01/server.102/b14231/tables.htm#i1007480
Nicolas. -
How can I create a new table in a MySQL database in MVC 5
I have an MVC 5 app, which uses MySQL hosted in Azure as a data source. The point is that inside the database, I want to create a new table called "request". I have already activated migrations for my database in code. I also have the following
code in my app.
Request.cs: (inside Models folder)
public class Request
public int RequestID { get; set; }
[Required]
[Display(Name = "Request type")]
public string RequestType { get; set; }
Test.cshtml:
@model Workfly.Models.Request
ViewBag.Title = "Test";
<h2>@ViewBag.Title.</h2>
<h3>@ViewBag.Message</h3>
@using (Html.BeginForm("SaveAndShare", "Home", FormMethod.Post, new { enctype = "multipart/form-data" }))
@Html.AntiForgeryToken()
<h4>Create a new request.</h4>
<hr />
@Html.ValidationSummary("", new { @class = "text-danger" })
<div class="form-group">
@Html.LabelFor(m => m.RequestType, new { @class = "col-md-2 control-label" })
<div class="col-md-10">
@Html.TextBoxFor(m => m.RequestType, new { @class = "form-control", @id = "keywords-manual" })
</div>
</div>
<div class="form-group">
<div class="col-md-offset-2 col-md-10">
<input type="submit" class="btn btn-default" value="Submit!" />
</div>
</div>
@section Scripts {
@Scripts.Render("~/bundles/jqueryval")
HomeController.cs:
[HttpPost]
public ActionResult SaveAndShare(Request request)
if (ModelState.IsValid)
var req = new Request { RequestType = request.RequestType };
return RedirectToAction("Share");
The point is that, I want the user to fill the form inside the Test view and click submit, and when the submit is clicked, I want a new entry in the new table to be created. But first of course I need to create the table. Should I create it using SQL query
through MySQL workbench? If yes, then how can I connect the new table with my code? I guess I need some DB context but don't know how to do it. If someone can post some code example, I would be glad.
UPDATE:
I created a new class inside the Models folder and named it RequestContext.cs, and its contents can be found below:
public class RequestContext : DbContext
public DbSet<Request> Requests { get; set; }
Then, I did "Add-Migration Request", and "Update-Database" commands, but still nothing. Please also note that I have a MySqlInitializer class, which looks something like this:
public class MySqlInitializer : IDatabaseInitializer<ApplicationDbContext>
public void InitializeDatabase(ApplicationDbContext context)
if (!context.Database.Exists())
// if database did not exist before - create it
context.Database.Create();
else
// query to check if MigrationHistory table is present in the database
var migrationHistoryTableExists = ((IObjectContextAdapter)context).ObjectContext.ExecuteStoreQuery<int>(
string.Format(
"SELECT COUNT(*) FROM information_schema.tables WHERE table_schema = '{0}' AND table_name = '__MigrationHistory'",
// if MigrationHistory table is not there (which is the case first time we run) - create it
if (migrationHistoryTableExists.FirstOrDefault() == 0)
context.Database.Delete();
context.Database.Create();Hello Toni,
Thanks for posting here.
Please refer the below mentioned links:
http://azure.microsoft.com/en-us/documentation/articles/web-sites-dotnet-deploy-aspnet-mvc-app-membership-oauth-sql-database/
http://social.msdn.microsoft.com/Forums/en-US/3a3584c4-f45f-4b00-b676-8d2e0f476026/tutorial-problem-deploy-a-secure-aspnet-mvc-5-app-with-membership-oauth-and-sql-database-to-a?forum=windowsazurewebsitespreview
I hope that helps.
Best Regards,
Sadiqh Ahmed -
How to use create-default-dbms-tables in SQL Server 2000
Hi everyone,
I'm new in EJB development. I'm trying to deploy a CMP to Weblogic 8.1 SP1 using
JBuilderX. I configured a ConnectionPool and DataSource to allow the CMP to access
the SQL Server 2000. However, I cannot deploy the CMP if I didn't create the table
in SQL Server manually. Does anyone know how to use the create-default-dbms-tables?Refer to
http://e-docs.bea.com/wls/docs81/ejb/DDreference-cmp-jar.html#1162249
"Keith" <[email protected]> wrote:
>
Hi everyone,
I'm new in EJB development. I'm trying to deploy a CMP to Weblogic 8.1
SP1 using
JBuilderX. I configured a ConnectionPool and DataSource to allow the
CMP to access
the SQL Server 2000. However, I cannot deploy the CMP if I didn't create
the table
in SQL Server manually. Does anyone know how to use the create-default-dbms-tables? -
How to use substr in external table defnition.
Hi All,
Im using oracle 11g. I have an external table which is reading data from a file. For one of the column, i need to get only the first 250 characters. My external table defnition looks like this
create table tbl_substr
( col1 varchar2(20),
col2 varchar2(250)
organization external
( type oracle_loader
default directory XXXX
access parameters (
records delimited by newline
FIELDS TERMINATED BY '|'
missing field values are null
( col1 ,
col2 "substr(:col2,1,250)"
) ) location ('file.txt') )
reject limit unlimited
But this defnition gives an error when i do select * from tbl_substr
I want to use substr in external table defnition its self and not in SELECT. Also i dont want to crete a view to solve this. If anyone has done this please help.You need to play with COLUMN_TRANSFORMS
http://download.oracle.com/docs/cd/B19306_01/server.102/b14215/et_params.htm#sthref1792
BTW, i too got it from Google. I was not aware about this :)
Amardeep Sidhu -
How can I create a new table from a filed cell?
Every time that I fill a row of cells I want to creat a new table with the content of that cells.
How can I do it?
Donw here it´s the example.
From the top table, I want to fill these rows, and everytime that it´s done, I want that a new table apears like the cells under.
There is any Way to do it?
In the Spanish version of Number I found in the references formulas, one formula called "DIRECTION" that describes to do this.
But I found no way to do it.
The above formula it´s this:
=DIRECCION(row; collumn; type of direction; stile of direction; table name)
Anyone can help me?
I really need this solution.Otto,
Based on the syntax you quoted for that function, the english equivalent is "Address". It doesn't create a Table, but rather it creates an Address that references a Cell, in the form of a String. The common, and only, use that I am aware of for Address is to use it as the parameter for INDIRECT. For example: INDIRECT(ADDRESS)) will produce a reference to a table cell, but it will not produce a table.
Jerry
Maybe you are looking for
-
Is there a way to have full resolution photos available from a website
Hello I have a a requirement to have full resolution (300dpi) photos available for downloand from a website. How can i do this? i tried zipping the a single photo as a test uploading it to website with a link for user to download it. It took forever
-
Shared variable engine OPC delay
Hello All, I've got a bit of a problem with the delay time of updates between a non NI OPC server and a shared variable engine OPC client. I am using the redion OPC software OPCWorx with a database of around 120 tags to monitor and log data from a sm
-
Certificate migration and AIR runtime versions
Hi, I recently migrated my AIR app from a self-signed certificate to TrustCenter real certificate. I used migrate AIR application in Aptana AIR SDK in order to make updates smooth. When I tested it using runtime 1.5 I was able to use built-in autoupd
-
I have a question about the security of photo printing kiosks.
Specifically, I'd like for anyone who knows more about such things to tell me if I did something very stupid. This past weekend, I found myself in a situation where I wanted to get a picture from my phone printed very quickly. I had not very many opt
-
HD DVDs burning for SD DVD players
does it work? I tried burning one and it would NOT play in my regular dvd players. Anyone?