Can't use clob and blob
I just created a new database using dbca with General Purpose as the template, as I've done before. All went well until I tried to create tables that used clob or blob datatypes. I kept getting the error "ORA-03001: unimplemented feature".
What happened? Was the database created improperly? Is there a way to correct this without recreating the database?
Thanks
I just created a new database using dbca with General
Purpose as the template, as I've done before. All
went well until I tried to create tables that used
clob or blob datatypes. I kept getting the error
"ORA-03001: unimplemented feature".
I have the same problem but only if I assign a tablespace to the table but not if i leave it to the default tablespace.
Similar Messages
-
Can't fetch clob and long in one select/query
I created a nightmare table containing numerous binary data types to test an application I was working on, and believe I have found an undocumented bug in Oracle's JDBC drivers that is preventing me from loading a CLOB and a LONG in a single SQL select statement. I can load the CLOB successfully, but attempting to call ResultSet.get...() for the LONG column always results in
java.sql.SQLException: Stream has already been closed
even when processing the columns in the order of the SELECT statement.
I have demonstrated this behaviour with version 9.2.0.3 of Oracle's JDBC drivers, running against Oracle 9.2.0.2.0.
The following Java example contains SQL code to create and populate a table containing a collection of nasty binary columns, and then Java code that demonstrates the problem.
I would really appreciate any workarounds that allow me to pull this data out of a single query.
import java.sql.*;
This class was developed to verify that you can't have a CLOB and a LONG column in the
same SQL select statement, and extract both values. Calling get...() for the LONG column
always causes 'java.sql.SQLException: Stream has already been closed'.
CREATE TABLE BINARY_COLS_TEST
PK INTEGER PRIMARY KEY NOT NULL,
CLOB_COL CLOB,
BLOB_COL BLOB,
RAW_COL RAW(100),
LONG_COL LONG
INSERT INTO BINARY_COLS_TEST (
PK,
CLOB_COL,
BLOB_COL,
RAW_COL,
LONG_COL
) VALUES (
1,
'-- clob value --',
HEXTORAW('01020304050607'),
HEXTORAW('01020304050607'),
'-- long value --'
public class JdbcLongTest
public static void main(String argv[])
throws Exception
Driver driver = (Driver)Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();
DriverManager.registerDriver(driver);
Connection connection = DriverManager.getConnection(argv[0], argv[1], argv[2]);
Statement stmt = connection.createStatement();
ResultSet results = null;
try
String query = "SELECT pk, clob_col, blob_col, raw_col, long_col FROM binary_cols_test";
results = stmt.executeQuery(query);
while (results.next())
int pk = results.getInt(1);
System.out.println("Loaded int");
Clob clob = results.getClob(2);
// It doesn't work if you just close the ascii stream.
// clob.getAsciiStream().close();
String clobString = clob.getSubString(1, (int)clob.length());
System.out.println("Loaded CLOB");
// Streaming not strictly necessary for short values.
// Blob blob = results.getBlob(3);
byte blobData[] = results.getBytes(3);
System.out.println("Loaded BLOB");
byte rawData[] = results.getBytes(4);
System.out.println("Loaded RAW");
byte longData[] = results.getBytes(5);
System.out.println("Loaded LONG");
catch (SQLException e)
e.printStackTrace();
results.close();
stmt.close();
connection.close();
} // public class JdbcLongTestThe problem is that LONGs are not buffered but are read from the wire in the order defined. The problem is the same as
rs = stmt.executeQuery("select myLong, myNumber from tab");
while (rs.next()) {
int n = rs.getInt(2);
String s = rs.getString(1);
The above will fail for the same reason. When the statement is executed the LONG is not read immediately. It is buffered in the server waiting to be read. When getInt is called the driver reads the bytes of the LONG and throws them away so that it can get to the NUMBER and read it. Then when getString is called the LONG value is gone so you get an exception.
Similar problem here. When the query is executed the CLOB and BLOB locators are read from the wire, but the LONG is buffered in the server waiting to be read. When Clob.getString is called, it has to talk to the server to get the value of the CLOB, so it reads the LONG bytes from the wire and throws them away. That clears the connection so that it can ask the server for the CLOB bytes. When the code reads the LONG value, those bytes are gone so you get an exception.
This is a long standing restriction on using LONG and LONG RAW values and is a result of the network protocol. It is one of the reasons that Oracle deprecates LONGs and recommends using BLOBs and CLOBs instead.
Douglas -
How we handle CLOB and BLOB Datatypes in HANA DB
Dear HANA Gurus,
We have would like to build EDW using HANA base on our source system Oracle and it's supports CLOB and BLOB datatypes
Would you please suggest how do we handle in HANA DB.
Let not say it's oracle specific.
Regards,
ManojHello,
check SAP HANA SQL Reference Guide for list of data types:
(page 14 - Classification of Data Types)
https://service.sap.com/~sapidb/011000358700000604922011
For this purpose might be useful following data types:
Large Object (LOB) Types
LOB (large objects) data types, CLOB, NCLOB and BLOB, are used to store a large amount of data such as text documents and images. The maximum size of an LOB is 2 GB.
BLOB
The BLOB data type is used to store large binary data.
CLOB
The CLOB data type is used to store large ASCII character data.
NCLOB
The NCLOB data type is used to store a large Unicode character object.
Tomas -
How to use clob or blob data type in OWB
how to use clob or blob data type in OWB?
if OWB not surport these data type,how can i extract the large data type from data sourceThe same question was asked just two days ago No Data Found: ORA-22992
Nikolai Rochnik -
How can I use OmniPortlet and Web Clipping Portlet?
How can I use OmniPortlet and Web Clipping Portlet?
You find information on OmniPortlet and Web Clipping in the Portal Developer's Guide.
o Building Portlets with OmniPortlet
o Building Content-Based Portlets with Web Clipping
Peter -
How can I use excel and word on the IPAD2
How can I use excel and word documents on my Ipad 2
There are apps such as Documents To Go which support reading/editting/creating those sorts of documents :
standard version - http://itunes.apple.com/us/app/documents-to-go-office-suite/id317117961?mt=8
premium version - http://itunes.apple.com/us/app/documents-to-go-premium-office/id317107309?mt=8 -
How can I use undo and redo with run time menu?
Hi..I try to built my own menu for graphic programming. How can I use undo and redo in labview with run time menu?
filozof-
During runtime, by default, LabVIEW has undo/redo data changes under the edit menu. This will undo/redo changes made to controls during runtime. If you want a more extensive undo/redo (custom for your application), you are going to have to do quite a few things
1) Create a custom runtime menu (Edit>>RunTime Menu) and place your own undo/redo controls on it
2) Keep an action history in your program
3) Catch the Shortcut menu event for your custom undo/redo controls
4) Reverse the last action in your histroy when you catch the event
This method would allow you undo entire operations (like resize, move, or whatever kind of functionality you are building into your application) unstead of just undoing data changes.
Xaq -
Hi, I have already bought Adobe Photoshop and Lightroom for 1 year. Now I will change my PC to Mac. Can I use Photoshop and Lightroom in my new Mac?
Yes.
Mylenium -
I am from turkey and Iphone4 can be used Turkcell and vodafone(carriers) in turkey but i bought my iphone in usa and it only works with at&t.Is there anything i can do to use my iphone with turkcell or vodafone?
No. Return it and get your money back if still within the 30 day return window. All US iPhones are carrier locked and cannot be officially unlocked.
-
While using my Iphone 5, all of a sudden black and white stripes where on the screen. I have tryed to turn the phone off and on again, but there are only the stripes. I can't use it, and nothing happens when I push the buttons. Can someone help me?
Try resetting your phone, hold the home and sleep/wake button down until the apple symbol comes up, then release. If that doesnt work, you may have damaged your phone and need to take it to an apple genius bar.
-
Can we use overload and overwrite concept in OO-abap
hi
can we use overload and overwrite concept in OO-abapHi
CLASS zl_lcl_vehicle DEFINITION.
PUBLIC SECTION.
Signature of method
METHODS: set_make
IMPORTING value(im_make) TYPE string " Pass by value
im_model TYPE string," Pass by reference
ENDCLASS. "zl_lcl_vehicle DEFINITION
CLASS zl_lcl_vehicle IMPLEMENTATION.
Implementation of method.
METHOD set_make.
IF im_make IS NOT INITIAL
AND im_model IS NOT INITIAL.
gv_make = im_make.
gv_model = im_model.
ENDIF.
ENDMETHOD. "set_make
ENDCLASS. "zl_lcl_vehicle
Overloading means changing signature as well as implementation of a method.
Overriding is changing only implementation of method with signature unchanged.
From ABAP perspective, only the CONSTRUCTOR method can be overloaded in a subclass i.e both the signature and implementation can be adapted in subclass.
Any other method can't be overloaded. It can only be redefined/overridden i.e implementation changed with signature unchanged.
In ABAP there is something called a redefinition.
When you inherit a class from a super class, you can redifne a method. You cannot chnage the signature( Interface) of the method. It will remain the same as that of the super class.You must redefine a method in the same visibility section in which it appears in the superclass.
Eg.
CLASS C_SUPER_CLASS DEFINITION .
PUBLIC SECTION.
METHODS: DRIVE ,
STOP.
PROTECTED SECTION.
DATA SPEED TYPE I.
ENDCLASS.
CLASS C_SUPER_CLASS IMPLEMENTATION.
METHOD DRIVE.
SPEED = 0.
WRITE: / 'Bike speed =', SPEED.
ENDMETHOD.
ENDCLASS.
CLASS C_SUB_CLASS DEFINITION INHERITING FROM C_SUPER_CLASS.
PUBLIC SECTION.
METHODS DRIVE REDEFINITION.
ENDCLASS
CLASS C_SUB_CLASS IMPLEMENTATION.
METHOD DRIVE.
SPEED = SPEED + 10.
WRITE: / 'Bicycle speed =', SPEED.
ENDMETHOD.
ENDCLASS.
Regards
Vasu -
Can we use exceptions and conditions at the same time?
can we use exceptions and conditions at the same time? Are there any dependencies between exceptions an conditions?
Exceptions are used when there are some mistakes , or exceeds the supposed values, we can highligt that in different colours for enabling the validator to notice easily. In this we are giving conditions for considering the value as exceptions. suppose, if the values is out of the range -1 to +1 then exception.
But conditions can be considered as the restrictions given in measure level also. So please elaborate what you meant by conditions -
Can i use safary and watch on the tv
I bought the apple tv device
from my ipad can i use safary and watch on the tvIf you want to mirror you need iPad 2 (or later)
http://support.apple.com/kb/HT5209?viewlocale=en_US&locale=en_US -
If i download windows with bootcamp does that mean i can still use Macintosh and if so how
if i download windows with bootcamp does that mean i can still use Macintosh and if so how
Welcome to Apple Support Communities
If you installed Windows properly, you can still start in OS X and use it whenever you want. However, Boot Camp changes the startup partition to Windows, so you may note that you can't use Mac OS X.
There are two ways of starting in OS X:
1. Hold the Option (Alt) key while your computer is starting until you see all the bootable partitions in the screen, and choose your OS X partition.
2. Hold the X key while your computer is starting.
If you have a iMac or a Bluetooth keyboard, make sure you hold the key after hearing the startup chime.
If you want to start in OS X by default, after starting in OS X, open System Preferences > Startup Disk, and choose the OS X partition -
Can't use Hosting and Business Catalyst
I have full CC-Membership, but can't use Hosting and BC.
Following messages appearing on my CC-Account:
On the apps-Page:
"Full Creative Cloud Membership comes with hosting for up to 5 sites. View and manage these sites from the sidebar on the Creative Cloud home page."
On the sidebar
"Full Creative Cloud Membership comes with hosting for up to 5 sites."Same. This had me perplexed too for a while. And the 'help' pages aren't particularly 'helpful', so I did little poking around in the apps themselves.
As it turns out, if you open up Dreamweaver and go to the 'Site' menu, there's an option to create a Business Catalyst test site from there (Dreamweaver helpfully crashed for me while doing this, but upon reopening it was all working). You pick a site name and subdomain, assign a local folder, it asks for your CC/Adobe credentials (because it would make too much sense to just sign in automatically) and you should be good to go.
After doing this and uploading a dummy test page, when I reloaded the Creative Cloud homepage it was now listing my test site undeneath the aforementioned confusing text in the sidebar.
Hope that helps.
Maybe you are looking for
-
27'' iMac i7 w/ Mini-Displayport = connection nightmare...
Hi guys this IS a long post , please accept my apologies & bear w/ me... when i got my 1st Intel iMac ( white, 17''.. ) i built a desk to stash away cabling & peripherals out of sight yet highly accessible/practical, i learned this pays off when i pl
-
Hi, I recently setup the oracle 11g gateway on a win2003 server and had success using it to connect to a mysql database. I am running into problems though connecting to ms sql servers. Detailed setup: installed dg4odbc on a win2003 box listner.ora on
-
Find non alpha characters in a string/email
HI, I'm on 10g database. I want to find out a list of email address where there are non alpha characters in an email . Example KEY1 EMAIL 1 [email protected] 2 [email protected] 3 AXIAP#[email protected] can i find out the emails wi
-
How to kill open PDF's when installing?
I have several hundred computers that currently have reader 9.1 installed. I built a custom install of 9.2 using the Customization Wizard which uninstalls 9.1 and installs 9.2. This will get pushed out via SMS. In versions 8.X and prior anytime a P
-
How do I get an image to stay where I place it without pinning it?
Whenever I place my logo in the top left corner it winds up in the middle. Not sure why this is doing this but I can correct this error if I pin it. Then it stays exactly where I place it, but then it does not scrolll with the rest of the page, becau