Can not create table with the CLOB type VARRAY, ORA-02348: cannot create VA
CREATE OR REPLACE TYPE Project AS OBJECT (
project_no NUMBER(2),
title VARCHAR2(35),
cost CLOB );
CREATE OR REPLACE TYPE ProjectList AS VARRAY(50) OF Project;
CREATE TABLE department (
dept_id NUMBER(2),
name VARCHAR2(15),
budget NUMBER(11,2),
projects ProjectList );
The table creatation always with the error :
ORA-02348: cannot create VARRAY column with embedded LOB
Can anybody help ???
Hi Peng,
It seems you have hit a limitation of the Oracle version, which you don't post.
Limitations are sometimes also called a 'feature'.
You would need to find out whether this restriction has been lifted in a subsequent release or redesign your application.
Sybrand Bakker
Senior Oracle DBA
Similar Messages
-
I bought Lightroom 5 in the year 2003. My order number is AD004521948BE. My serial number is <serial number removed>. I download of my new Imac PC. I can not log in with the serial number
Please specify the error that you are getting, the serial number is good & working.
Regards
Rajshree -
I CAN NOT open Iphoto with the new Mavericks????
I can not open Iphoto with the new Mavericks, I changed Dutch for English but stil nothing ....
Hi Kevertjes,
Thank you for the update. I recommend verifying that you are signed in with the same Apple ID associated with or used to purchase iPhoto on the App Store under the Store menu.
If you are signed in with an alternate Apple ID, I recommend signing out of the App Store, signing back in with the correct Apple ID, and then trying the update again:
Sign out
Choose Store > Sign Out.
Sign in using an Apple ID
Choose Store > Sign In, or click Sign In in the Quick Links section. The Quick Links section is located in the right part of the window shown when you click Featured, Top Charts, or Categories in the toolbar.
Enter your Apple ID and password, and then click Sign In.
Mac App Store: Sign in and out
http://support.apple.com/kb/PH11499
All the best,
Sheila M. -
I can not record audio with the internal microphone or a external microphone? What is the fix?
jw000.w wrote:
I do appologize and appreciate it! Im and running OS X
Please click on the following link & do the necessary in providing the info previously requested.
http://support.apple.com/kb/HT1758 How to identify iMac models
Click on the Apple>About This Computer. The window will tell you which version OS is currently installed on your iMac.
=========================
It would help us to know which computer model you have, which OS you're using, how much RAM, etc. You can have this info displayed on the bottom of every post by completing your system profile and filling in the information asked for.This will help in providing you with the proper and/or correct solutions.
Thank You. -
ORA-02348: cannot create VARRAY column with embedded LOB
Hi
This error message I get when I try to create a table from my schema file which has a (sub-) element of type CLOB.
In my XML document I have an element which needs to become declared a CLOB (because it's > 4000 bytes), in my Schema I define it's element node like:
<xs:element name="MocovuState" xdb:SQLType="CLOB">
I can register this Schema file but when I create the table, I get the error:
ORA-02348: cannot create VARRAY column with embedded LOB
Does anybody know how to handle this ?
MarcelYou need to use the xdb:storeVarrayAsTable="true" schema annotation so that unbounded elements are created at schema registration time as nested tables. Varrays can not contain CLOBs/BLOBS. Use the schema annotation xdb:SQLType="CLOB" to tell Oracle XMLDB to use CLOB storage for the element. See your schema below:
P.S. XMLSPY is invaluable as it supports Oracle XML Schema annotations.
<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xdb="http://xmlns.oracle.com/xdb" targetNamespace="http://www.yourregisteredschemanamespace.com" elementFormDefault="qualified" attributeFormDefault="unqualified" xdb:storeVarrayAsTable="true">
<xs:element name="nRootNode">
<xs:complexType>
<xs:all>
<xs:element name="nID" type="xs:long"/>
<xs:element name="nStringGroup" type="nStringGroup" minOccurs="0"/>
</xs:all>
</xs:complexType>
</xs:element>
<xs:complexType name="nStringGroup">
<xs:sequence>
<xs:element name="nString" type="nString" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="nString" xdb:SQLType="CLOB">
<xs:sequence>
<xs:element name="nValue" type="nValue" minOccurs="0" xdb:SQLType="CLOB"/>
</xs:sequence>
<xs:attribute name="id" type="xs:long" use="required"/>
</xs:complexType>
<xs:simpleType name="nValue">
<xs:restriction base="xs:string">
<xs:minLength value="1"/>
</xs:restriction>
</xs:simpleType>
</xs:schema> -
Error ORA-01426: numeric overflow when Creating table with double data type
Hi,
I am using ODP.NET to create a table with data from SQL to Oracle. The problem is with double data type fields that is equivalent to FLOAT(49) in Oracle. My syntax is:
CREATE TABLE SCOTT.ALLTYPES
F1 NUMBER(10),
F10 DATE,
F2 NUMBER(10),
F3 NUMBER(5),
F4 NUMBER(3),
F5 FLOAT(23),
F6 FLOAT(49),
F7 NUMBER (38,5),
F8 NVARCHAR2(500),
F9 NVARCHAR2(500)
Th error is with field F6 but I am not sure what is the correct type equivalent to double in SQL.
I woul appreciate if anyone can help me with this problem.
SunnyDoes this simple test work for you?
In database:
create table float_test
f1 float(49)
);C# code:
using System;
using System.Data;
using System.Text;
using Oracle.DataAccess.Client;
using Oracle.DataAccess.Types;
namespace FloatTest
/// <summary>
/// Summary description for Class1.
/// </summary>
class Class1
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main(string[] args)
// connect to local db using o/s authenticated account
OracleConnection con = new OracleConnection("User Id=/");
con.Open();
// will hold the value to insert
StringBuilder sbValue = new StringBuilder();
// create a string of 49 number 9's
for (int i = 0; i < 49; i++)
sbValue.Append("9");
// command object to perform the insert
OracleCommand cmd = con.CreateCommand();
cmd.CommandText = "insert into float_test values (:1)";
// bind variable for the value to be inserted
OracleParameter p_value = new OracleParameter();
p_value.OracleDbType = OracleDbType.Double;
p_value.Value = Convert.ToDouble(sbValue.ToString());
// add parameter to collection
cmd.Parameters.Add(p_value);
// execute the insert operation
cmd.ExecuteNonQuery();
// clean up
p_value.Dispose();
cmd.Dispose();
con.Dispose();
}SQL*Plus after executing above code:
SQL> select * from float_test;
F1
1.0000E+49
1 row selected.- Mark -
Problem auto-creating tables with the IBFBS sample
Hello,
I'm fairly new to JDeveloper and OC4J and am trying to configure the new Financial Brokerage Service (IBFBS) sample to run on my system. I followed all of the setup instructions but have had problems getting the application to work. I've worked through a few issues, but I'm stuck on this one. When deploying/running the application to the JDev embedded OC4J an error occurs when trying to auto-create the tables for some of the EJBs. The error messages are all similar to this:
"Auto-creating table: create table UserAccount_file:_M:_Ja_rfpkl9 (accountNumber NUMBER not null primary key, password VARCHAR2(255) null, firstName VARCHAR2(255) null, lastName VARCHAR2(255) null, organization VARCHAR2(255) null, address VARCHAR2(255) null, city VARCHAR2(255) null, state VARCHAR2(255) null, country VARCHAR2(255) null, phone VARCHAR2(255) null, accountBalance FLOAT null, email VARCHAR2(255) null, userType VARCHAR2(255) null, linesPerPage NUMBER null, alertMode VARCHAR2(255) null, mobileEmail VARCHAR2(255) null)
Error creating table: ORA-00922: missing or invalid option"
The app fails to start with an Ora message "Table or view does not exist"
I think it's due to the colons in the table name, but how do I change the name of the table it's trying to create?
I'm running JDeveloper 9.0.3 preview and 9.2.0.1.0 (patchset 1 applied) database all locally on a Windows XP SP1 machine.
Any help appreciated.
NickHi Nick,
Firstly, regret for the late response.
I guess what you are trying to do is run the Sample from JDeveloper itself. But this cannot be done, you have to deploy the
sample to the embedded OC4J(<JDEV_HOME>/j2ee/home) bundled with JDev and run the sample from embedded OC4J.
Refer to http://otn.oracle.com/sample_code/tutorials/fbs/over/setup.htm and follow the steps to deploy to OC4J.
Curious to know if you were able to run it.
Regards
Elango.
Hello,
I'm fairly new to JDeveloper and OC4J and am trying to configure the new Financial Brokerage Service (IBFBS) sample to run on my system. I followed all of the setup instructions but have had problems getting the application to work. I've worked through a few issues, but I'm stuck on this one. When deploying/running the application to the JDev embedded OC4J an error occurs when trying to auto-create the tables for some of the EJBs. The error messages are all similar to this:
"Auto-creating table: create table UserAccount_file:_M:_Ja_rfpkl9 (accountNumber NUMBER not null primary key, password VARCHAR2(255) null, firstName VARCHAR2(255) null, lastName VARCHAR2(255) null, organization VARCHAR2(255) null, address VARCHAR2(255) null, city VARCHAR2(255) null, state VARCHAR2(255) null, country VARCHAR2(255) null, phone VARCHAR2(255) null, accountBalance FLOAT null, email VARCHAR2(255) null, userType VARCHAR2(255) null, linesPerPage NUMBER null, alertMode VARCHAR2(255) null, mobileEmail VARCHAR2(255) null)
Error creating table: ORA-00922: missing or invalid option"
The app fails to start with an Ora message "Table or view does not exist"
I think it's due to the colons in the table name, but how do I change the name of the table it's trying to create?
I'm running JDeveloper 9.0.3 preview and 9.2.0.1.0 (patchset 1 applied) database all locally on a Windows XP SP1 machine.
Any help appreciated.
Nick -
after updating the OS on my iphone 4S i activated the lock my phone and now I can not unlock it it put the password in but it does not work how can I unlock it?
Hello son29660,
Thanks for using Apple Support Communities.
For more information on this, take a look at:
iOS: Forgotten passcode or device disabled after entering wrong passcode
http://support.apple.com/kb/ht1212
Best of luck,
Mario -
I would like to know how to sincronize my IPhone 4 with a new computer. Thank you
Same way you synced it with the old one.
Make sure you have copied everything from the old computer, or your backup copy of the old computer, to the new one.
What problem are you having? -
I haven't installed the newer version because my Google add on would not work with it. Some how it installed itself today and I don't like it. I want my Google toolbar. I would like to uninstall this newer version and go back to the older version, Can I please get some help with this?
Hello,
Please see What userid & password do I need to install Flash Player?.
Maria -
After installing the latest Version of iTunes (10.5.1.42) on my Windows XPs PC it's not possible to sync my iPhone 3GS (not iOS 5!) any more - I get the error message above. It's possible to download music, apps, podcasts - but not possible to sync with my iPhone..
Any Ideas?Basic troubleshooting is reset, restart, restore. Have the first two been tried?
How about simply unplugging the iPhone and plugging it back in to sync?
What has been done in an attempt to troubleshoot the issue? -
Problem CREATE TABLE with PRIMARY KEY Still in Trouble ! Please Help!
Hi there !
I use the orcle 8i, and i don't know why i can't create table with any primary key EXample:
SQL> CREATE TABLE O_caisses
2 (No_caisse NUMBER(3) constraint caisses_pk PRIMARY KEY,
3 NB_BILLETS NUMBER(5)
4 )
5 /
CREATE TABLE O_caisses
ERROR at line 1:
ORA-18008: cannot find OUTLN schema
***********some Debuger show me this way: *********************
Well there r certain point u got to notice when creating a table with constraints.
1) U can create table with COLUMN level constraint.
2) U can create table with TABLE level constraint.
3) In COLUMN level constraint u can't give a constraint a name
but only mention the type of constraint.
4) In TABLE level constraint u can give a name to constraint.
Following are the examples of both
--COLUMN LEVEL
CREATE TABLE O_caisses
(No_caisse NUMBER(3) PRIMARY KEY,
NB_BILLETS NUMBER(5));
--TABLE LEVEL
CREATE TABLE O_caisses
(No_caisse NUMBER(3),
NB_BILLETS NUMBER(5),
constraint pk_caisse primary key (No_caisse));
********************And this is another one:*****************
SQL>grant create any outline to username;
BUT the problem is still present, i don't know what to do now !
Please could some body help me !
Thanks alot!
Luong.The clue is in the error message: the OUTLN schema is missing.
This is something Oracle 8i introduced to help manage the CBO (or soemthing equally geeky and internal). For some reason your database no longer has this user. It ought to be created automatically during installation (or upgrade) but catproct may not have completed probably or some over zealous admin type has dropped it.
Solution is to re-install (or re-upgrade) as you cannot create this user on their own. Alas.
HTH, APC -
Problem on CREATING TABLES with PRIMARY KEY
Hi there !
I use the orcle 8i, and i don't know why i can't create table with any primary key EXample:
SQL> CREATE TABLE O_caisses
2 (No_caisse NUMBER(3) constraint caisses_pk PRIMARY KEY,
3 NB_BILLETS NUMBER(5)
4 )
5 /
CREATE TABLE O_caisses
ERROR at line 1:
ORA-18008: cannot find OUTLN schema
Please could some body help me !
Thanks alot!
Luong.Luong,
Your syntax is fine. It looks like you don't have the correct database privileges to create the table. The error message you're getting suggests that you don't have CREATE ANY OUTLINE privileges. You should log in as a user than can grant these privileges and give yourself the correct privileges. I think the syntax is
SQL>grant create any outline to username;
Alison -
Problem with creating links with the WPC (SP14)
Hi,
I have a problem creating links with the WPC (SP14): When I want to create internal links (Browse and select the target item) via the right button (choosing a website as a reference link). If I do so I encounter the problems either that the linked site (outside the WPC) shows a blue background and/ or has no navigation frame (on the left side & no breadcrumb-navigation on top).
If I create links with the left button in the WPC via URLs I have the problem with the inserted URL, because sometimes (I don't know why und when) some parts of the code in the URL changes, so that the linked Website is empty (besides the navigation fram - the content isn't displayed anymore). To me it looks like as if the originally website cannot be "found" anymore.
Does anyone has the same problems and is eventually able to help me? This would be really great. Thanks!Hi,
you have also to deploy the following file from Service Marketplace:
Patch for SP14 for KMC WEB PAGE COMPOSER 7.00
Than it will works. The best way is you deploy WPC SP 15.
If you want i can send you this file via email.
regards,
Sharam
Edited by: Seed mopo on Apr 28, 2008 11:45 AM -
ORA-12913: Cannot create dictionary managed tablespace
I am using the following statement:
CREATE TABLESPACE data01
DATAFILE 'D:\ORACLE\ORADATA\SSR\data01.dbf' SIZE 2M
EXTENT MANAGEMENT DICTIONARY;
and I get the following error message:
ORA-12913: Cannot create dictionary managed tablespace
If I take off EXTENT MANAGEMENT DICTIONARY, the statement executes. What am I doing wrong?Details about create a tablespace:
CREATE TABLESPACE
Purpose
Use the CREATE TABLESPACE statement to create a tablespace, which is an allocation of space in the database that can contain persistent schema objects.
When you create a tablespace, it is initially a read/write tablespace. You can subsequently use the ALTER TABLESPACE statement to take the tablespace offline or online, add datafiles to it, or make it a read-only tablespace.
You can also drop a tablespace from the database with the DROP TABLESPACE statement.
You can use the CREATE TEMPORARY TABLESPACE statement to create tablespaces that contain schema objects only for the duration of a session.
See Also:
Oracle9i Database Concepts for information on tablespaces
ALTER TABLESPACE for information on modifying tablespaces
DROP TABLESPACE for information on dropping tablespaces
CREATE TEMPORARY TABLESPACE
http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96540/statements_74a.htm#SQLRF01403
Joel P�rez
Maybe you are looking for
-
Hi Xperts Plz let me know about free item & return items check box concepts in po screen i.e is in the me21n Moderator message: Locked. Reason: failed to search properly. Please try to search for answer or ask a more sepcific question. Edited by: Csa
-
DW CS4 Horizontal Spry drop down menu not displaying correctly in Internet Explorer 8
Hi, I have created a horizontal Spry drop down menu in Dreamweaver CS4 with my own background images. I have done various modifications to the CSS script to accommodate the style and feel needed; including making the main buttons' height twice the si
-
I have a business card signature and it comes out fuzzy when attached as a signature??
I received a business card signature from my company and it is perfect but once I attach it as a signature in an email it is fuzzy? Ralph
-
Hi, We have a Windows Server 2008 R2 Std, with SQL Server 2008 R2 SP2 CU 0. 32GB memory and 2x2GHz 16cores. We can see that the sqlservr.exe is taking almost all memory, and i guess that is ok since we have not configured any restrictions, and then S
-
Reuse pictures in multiple WD projects or DC's
Dear SDN-members, My question is about pictures and icons in Web Dynpro. If you like to use a picture or icon in your Web Dynpro you put this picture or icon in the in the Mimes directory (example: <i><b>[project name]\ _comp\src\mimes\Components\[we