Multiple clob fields in a single table
Are there any known performance issues associated with having 4 CLOB fields in a single table... the table as such will be relatively small.. like 100 MB... with most rows being << 50k.
Not really. If you need 4 CLOB columns and it makes sense to have alll the columns in a single table, go for it.
Justin
Distributed Database Consulting, Inc.
http://www.ddbcinc.com/askDDBC
Similar Messages
-
Is it possible to create a form with multiple form fields on a single line?
Is it possible to create a form with multiple form fields on a single line? I can't find anything in the documentation or a template that does this.
I am trying to create a "documents received" checklist with a check box on the left margin, a date-received field to the right of the check box and and a description of the document (Formatted Text) on the far right.
In the past I have entered the Fixed Text with a word processor, published it to a PDF file, then added the check box and date fields with the Acrobat Forms editor. I would prefer to use FormsCentral if it is possible.We now support multiple fields on one line. This post provides a brief overview.
Give it a try and send us your feedback.
Sorry it took so long.
Randy -
Hello All,
I'm a newbie to the forum & to Crystal(9), I've searched the forum and ca't exactly find an answer to my question:
My goal is to be able to pull the Company Member Type & the Contact Member Type as part of the same report in the selection criteria.
My problem is: They both reside in the same table...
The question is: "how to be able to pull the info?"
If I need to provide more or clearer info pleasde let me know. Any help is appreciated.
Lost in DC - DJIf you have a single table datasource record duplication wouldn't be a result of the select expert. In fact, I can't think of a case where a single table datasource could possibly duplicate records.
The duplicates must be the result of a join.
To answer your initial question, the select expert you enter is subjected, in its entirety, to each record in the joined tables.
The problem that I see with the above suggestion relates to precedence.
This:
cond 1 AND cond 2 AND cond 3 OR cond 4
Is not this:
cond 1 AND cond 2 AND (cond 3 OR cond 4)
In the case of the non-paren-ed select statement, it will return records that satisfy ALL of the AND conditions OR just the or condition.
In the second case, it will return all records that satisfy condition 1 and condition 2 AND either condition 3 or condition 4.
Try bracketing the ored conditions from the same table. That should solve your select problem, but not the duplication problem. -
Populating multiple text fields from a database table...
I have a database table with several fields e.g. drawing_no, title, date_entered etc..I have a form that has the same fields. I want to be able to input a value into drawing_no field, and have it retrieve all the other values from the database - if they exist, or return blanks/nulls if it does not exit. I know how to do this for a single field, but not for retrieving multiple fields
Hi ,
You can create a before header page process and fetch all the fields from database, or you can take a look at in-built process Automated Row Fetch.
For e.g. lets say u have field1, field2, field3, field4 and field5 based on col1, col2, col3, col4, col5 from table tab1
Now create a page process of type PL-SQL and give a meaningful name to the process and accept the default as on Load Before header. In the "Enter PL/SQL Page Process" block enter a code similar to this one
DECLARE
BEGIN
IF :drawing_no IS NOT NULL THEN
SELECT col1, col2, col3, col4, col5 INTO :field1, :field2, :field3, :field4, :field5
FROM tab1 WHERE drawing_no = :drawing_no ;
END IF;
EXCEPTION WHEN NO_DATA_FOUND THEN
NULL;
END;The above block will fetch the records into input fields every time u refresh the page.
Hope this helps.
Thanks,
Manish -
Multiple foreign keys to a single table
Hi,
I need to write an SQL sentence to bring a unique row formed from multiple foreign keys which are dependent on the same table. The two tables as follow:
CREATE TABLE UNIDADMEDIDA (
IDUNIDADMEDIDA NUMERIC(3) NOT NULL,
DESCRIPCION VARCHAR2(128) NOT NULL,
CONSTRAINT PKUM PRIMARY KEY(IDUNIDADMEDIDA)
CREATE TABLE TRANSPORTE (
IDBOLETA NUMERIC(12) NOT NULL,
CORRELAVEHICULO NUMERIC(2) NOT NULL,
TIPOVEHICULO NUMERIC(1),
TIPOGASOLINA NUMERIC(1),
CANTIDAD NUMERIC(8),
RECORRIDOPROMEDIO NUMERIC(10,2),
IDUMRECORRIDO NUMERIC(3),
CONSUMOPROMEDIO NUMERIC(10,2),
IDUMCONSUMOPROM NUMERIC(3),
CONSUMOTOTALANUAL NUMERIC(10,2),
IDUMCONSUMOTOT NUMERIC(3),
CONSTRAINT PKTRANSPORT PRIMARY KEY(IDBOLETA, CORRELAVEHICULO),
CONSTRAINT FKUMRECORRI FOREIGN KEY(IDUMRECORRIDO) REFERENCES UNIDADMEDIDA(IDUNIDADMEDIDA),
CONSTRAINT FKUMCONSUMO FOREIGN KEY(IDUMCONSUMOPROM) REFERENCES UNIDADMEDIDA(IDUNIDADMEDIDA),
CONSTRAINT FKUMCONSTOT FOREIGN KEY(IDUMCONSUMOTOT) REFERENCES UNIDADMEDIDA(IDUNIDADMEDIDA)
The columns IDUMRECORRIDO, IDUMCONSUMOPROM and IDUMCONSUMOTOT depend on the table UNIDADMEDIDA (specifically from the IDUNIDADMEDIDA field). I need to bring back the description (DESCRIPCION field) from the different values stored in TRANSPORTE table.
Thanks for your help!!!
MarioWelcome to the forum!
Have you thought about joining against the parent table three times to pick up each different description?
SELECT <COLUMN LIST>
, UNI_A.DESCRIPCION
, UNI_B.DESCRIPCION
, UNI_C.DESCRIPCION
FROM TRANSPORTE
JOIN UNIDADMEDIDA UNI_A ON UNI_A.IDUNIDADMEDIDA = TRANPORTE.IDUMRECORRIDO
JOIN UNIDADMEDIDA UNI_B ON UNI_B.IDUNIDADMEDIDA = TRANPORTE.IDUMCONSUMOPROM
JOIN UNIDADMEDIDA UNI_C ON UNI_C.IDUNIDADMEDIDA = TRANPORTE.IDUMCONSUMOTOT
;It is always helpful to provide the following:
1. Oracle version (SELECT * FROM V$VERSION)
2. Sample data in the form of CREATE / INSERT statements.
3. Expected output
4. Explanation of expected output (A.K.A. "business logic")
5. Use \ tags for #2 and #3. See FAQ (Link on top right side) for details.
You provided #2 partially. If you provide the rest we may be able to help you even further. -
Insert items from two different Multiple Select Lists into a single table
I need help. I have a training tracking system that tracks the courses taken by employees.
I have created two multiple select lists, one is SelectEmployees and the other is SelectCourses. I want to insert
the selected item from those two multiple select lists into Training_Record table.
Note, SelectEmployees" is from Employee table and SelectCourses is from Courses table. Those two table has no intersetion.
Train_Record is the table that joins those two together.
Please advice and your help is appreciate.Thank you for your help.
I tried your code and changed the table/field name to my actual table/field name and the iitem name to actual item name.
declare
cursor c_Employees is
select PERSONNEL_NEW.EMPLOYEEID from PERSONNEL_NEW where PERSONNEL_NEW.EMPLOYEEID in (:P15_SELECTEDEMP);
cursor c_Courses is
select COURSES.COURSE_ID from COURSES where COURSES.COURSE_ID in
(:P15_SELECTEDCOUR);
begin
foreach :=r_employee in c_Employees loop
foreach :=r_course in c_Courses loop
insert
into COPYOFTRAINREC ( EMPLOYEEID, COURSEID )
values ( r_employee.EMPLOYEEID, r_course.COURSE_ID );
end loop;
end loop;
end;
I got error message as :
ORA-06550: line 12, column 25: PLS-00103: Encountered the symbol "C_EMPLOYEES" when expecting one of the following: (
Error
OK -
How to remove multiple components border inside a single table column cell
Hi,
I'm adding multiple components to a table cell. To provide a good layout I'm using the following component hierarchy in a table column - table-->groupPanel--> gridPanel-->staticText Components 1 ..2 ..3. Now when I do preview in browser or run the app, the table shows up fine, but textComponent s(1,2,3) in the column are each surrounded by a border (which is the width of gridPanel border). Is there a way to get rid of this border?
This only occurs when you add multiple components in table cell, under gridpanel layout component.
I've tried searching for a way to remove the grid pane layout component border but couldn't find any info. Used style class border setting to not set but that doesn't help either. I checked forums, tutorial, learning sections etc., but no success. Any help or direction is appreciated..
Thanks
-VinodHi ,
Can you please post the query ..what u have tried ...
SQL> select sub from coa1;
SUB
XY
XY
XY
XY
XY
HXY
HXY
HXY
8 rows selected.
SQL> select obj from coa1;
OBJ
AM
AM
AM
AK
AK
AK
ATK
ATK
8 rows selected.
SQL> SELECT OBJ FROM COA1
2 UNION ALL
3 SELECT SUB FROM COA1;
OBJ
AM
AM
AM
AK
AK
AK
ATK
ATK
XY
XY
XY
OBJ
XY
XY
HXY
HXY
HXY
16 rows selected.
SQL> insert into coa2 (obj)
2 (
3 SELECT OBJ FROM COA1
4 UNION ALL
5 SELECT SUB FROM COA1
6 );
16 rows created.
SQL> select * from coa2;
OBJ SUB MCU DOC F
AM
AM
AM
AK
AK
AK
ATK
ATK
XY
XY
XY
OBJ SUB MCU DOC F
XY
XY
HXY
HXY
HXY
16 rows selected.
SQL>
i tried the same it worked fine .....
so u can combine select and insert statements .. you can get the required result.....!
Thanks
Ananda
Edited by: Ananda on Feb 2, 2009 7:38 PM
Edited by: Ananda on Feb 2, 2009 7:52 PM -
Load data from a file with multiple record types to a single table-sqlldr
We are using two datastores which refer to the same file. The file has 2 types of records header and detail.
h011234tyre
d01rey5679jkj5679
h011235tyrr
d01rel5678jul5688
d01reh5698jll5638
Can someone help in loading these lines from one file with only two data stores(not 2 separate files) using File to Oracle(SQLLDR) Knowledge Module.Hi,
Unfortunately the IKM SQLDR doesn't have the "when" condition to be wrote at ctl file.
If you wish a simple solution, just add an option (drop me a email if you want a LKM with this)
The point is:
With a single option, you will control the when ctl clause and, for instance, can define:
1) create 2 datastores (1 for each file)
2) the first position will be a column at each datastore
3) write the when condition to this first column at the LKM in the interface.
Does it help you? -
Multiple database fields in a single text field
hii all
i am trying to do the follwing
i have in my database city ,state adn zip
I want to display them in one field of my tablular form ie the field will have a prompt
prompt :- City ,State and Zip
and in the field i will have the corresponding database values for the 3 seperated by commas
how can i do it ??
plzz help
mandarHello,
Create a non-based item, then populate it with concat in a POST-QUERY trigger.
Francois -
Multiple outer joins from a single table
Here is my scenario - I have 3 folders:
Theater - contains Theater Name and Theater ID
Agency - contains Agency Name and Theater ID
Depot - contains Depot Name and Theater ID
A theater may or may not have an agency. Likewise, it may or may not have a depot.
Thus, I've set up a join from Theater (master) to Agency on Theater ID, and selected "outer join on detail"
Likewise, I've done the same between Theater (master) and Depot on Theater ID
When I attempt to create a report with the columns Theater Name, Agency Name, and Depot Name, I am unable to do so. I can only pick either Agency Name or Depot Name, not both. When I try to add the second outer joined element, Discoverer reports that it cannot determine the join configuration because "more than 1 of the detail folders uses non-aggregate items"
What am I doing wrong? Any help would be greatly appreciated, thanks!Hi,
Try change the joins to be "outer join on detail" and "one to one join relationship between master and detail".
Hope that helps,
Rod West -
Multi instance of timestamp field in single table?
Is this statement true?
"Database does not allow multiple instances of this type if field in a single table"
To me this makes so sense and I would assume it would not matter how many you had.
Thoughts?Where did you get the error message? What was being done?
UT1 > set echo on
UT1 > @t13
UT1 > create table marktest2 (
2 fld1 number, fld2 varchar2(10), fld3 timestamp, fld4 timestamp)
3 /
Table created.
UT1 > desc marktest2
Name Null? Type
FLD1 NUMBER
FLD2 VARCHAR2(10)
FLD3 TIMESTAMP(6)
FLD4 TIMESTAMP(6)Ran on 9.2.0.6 running on AIX 5.2L
HTH -- Mark D Powell -- -
Empty CLOB field value from Oracle database using JDBC Sender
Hi All,
I am selecting a CLOB field from Oracle database table using JDBC Sender adapter and getting error "NullPointerException"
Seen SAP note 1283089 but its not applicable for my support pack PI 7.0 SP 12 and client dont want to upgrdate SP 17 right now.
I tried rpad(1,0)Column_Name funciton in JDBC select query but it selcting blank value for every record even those having some value for this CLOB field so not useful
Could anybody suggest possible way? client dont want to change anything at database side.
Thanks,
DharamveerWhat is the Oracle driver version installed? You might need to install 10.x driver if not already using it.
-
Make CLOB field as an textarea item and also provide update option
Hello,
Can anyone please help me out with this issue. I have clob field column in my table and I wanted to make this column as an Textarea item in my form so that the users can update this column item. Can anyone please provide a possible approach for this issue.
thanks,
ortonHi Orton,
As far as I know it is a limitation of mod_plsql - variable size can't be more then 32K.
I think that you have to split the value of text area in javascript in chunks less then 32K in length and submit them
with AJAX one by one.
Regards,
Lev -
TopLink Question - Mutliple Object to Single Table mapping
Just a short question,
Does toplink support mapping feature as such that it can map two distinct objects with single table that when in insertion or selection those two objects can be manipulated, selected in single operation? I know that TopLink mapping supports single object from multiple table mapping, but I'm not sure about multiple objects being associated with single table.
Secondly, does Hibernate has something like what I described above?
Howard.Hi Howard,
You can map two objects to a single table if the objects are related by aggregation.
In TopLink, two objectsa source (parent or owning) object and a target (child or owned) objectare related by aggregation if there is a strict one-to-one relationship between them, and all the attributes of the target object can be retrieved from the same data source representation as the source object. This means that if the source object exists, then the target object must also exist, and if the source object is destroyed, then the target object is also destroyed.
http://www.oracle.com/technology/products/ias/toplink/doc/1013/main/_html/tutbuild004.htm#sthref2325
-Blaise -
Need help for SQL SELECT query to fetch XML records from Oracle tables having CLOB field
Hello,
I have a scenario wherein i need to fetch records from several oracle tables having CLOB fields(which is holding XML) and then merge them logically to form a hierarchy XML. All these tables are related with PK-FK relationship. This XML hierarchy is having 'OP' as top-most root node and ‘DE’ as it’s bottom-most node with One-To-Many relationship. Hence, Each OP can have multiple GM, Each GM can have multiple DM and so on.
Table structures are mentioned below:
OP:
Name Null Type
OP_NBR NOT NULL NUMBER(4) (Primary Key)
OP_DESC VARCHAR2(50)
OP_PAYLOD_XML CLOB
GM:
Name Null Type
GM_NBR NOT NULL NUMBER(4) (Primary Key)
GM_DESC VARCHAR2(40)
OP_NBR NOT NULL NUMBER(4) (Foreign Key)
GM_PAYLOD_XML CLOB
DM:
Name Null Type
DM_NBR NOT NULL NUMBER(4) (Primary Key)
DM_DESC VARCHAR2(40)
GM_NBR NOT NULL NUMBER(4) (Foreign Key)
DM_PAYLOD_XML CLOB
DE:
Name Null Type
DE_NBR NOT NULL NUMBER(4) (Primary Key)
DE_DESC NOT NULL VARCHAR2(40)
DM_NBR NOT NULL NUMBER(4) (Foreign Key)
DE_PAYLOD_XML CLOB
+++++++++++++++++++++++++++++++++++++++++++++++++++++
SELECT
j.op_nbr||'||'||j.op_desc||'||'||j.op_paylod_xml AS op_paylod_xml,
i.gm_nbr||'||'||i.gm_desc||'||'||i.gm_paylod_xml AS gm_paylod_xml,
h.dm_nbr||'||'||h.dm_desc||'||'||h.dm_paylod_xml AS dm_paylod_xml,
g.de_nbr||'||'||g.de_desc||'||'||g.de_paylod_xml AS de_paylod_xml,
FROM
DE g, DM h, GM i, OP j
WHERE
h.dm_nbr = g.dm_nbr(+) and
i.gm_nbr = h.gm_nbr(+) and
j.op_nbr = i.op_nbr(+)
+++++++++++++++++++++++++++++++++++++++++++++++++++++
I am using above SQL select statement for fetching the XML records and this gives me all related xmls for each entity in a single record(OP, GM, DM. DE). Output of this SQL query is as below:
Current O/P:
<resultSet>
<Record1>
<OP_PAYLOD_XML1>
<GM_PAYLOD_XML1>
<DM_PAYLOD_XML1>
<DE_PAYLOD_XML1>
</Record1>
<Record2>
<OP_PAYLOD_XML2>
<GM_PAYLOD_XML2>
<DM_PAYLOD_XML2>
<DE_PAYLOD_XML2>
</Record2>
<RecordN>
<OP_PAYLOD_XMLN>
<GM_PAYLOD_XMLN>
<DM_PAYLOD_XMLN>
<DE_PAYLOD_XMLN>
</RecordN>
</resultSet>
Now i want to change my SQL query so that i get following output structure:
<resultSet>
<Record>
<OP_PAYLOD_XML1>
<GM_PAYLOD_XML1>
<GM_PAYLOD_XML2> .......
<GM_PAYLOD_XMLN>
<DM_PAYLOD_XML1>
<DM_PAYLOD_XML2> .......
<DM_PAYLOD_XMLN>
<DE_PAYLOD_XML1>
<DE_PAYLOD_XML2> .......
<DE_PAYLOD_XMLN>
</Record>
<Record>
<OP_PAYLOD_XML2>
<GM_PAYLOD_XML1'>
<GM_PAYLOD_XML2'> .......
<GM_PAYLOD_XMLN'>
<DM_PAYLOD_XML1'>
<DM_PAYLOD_XML2'> .......
<DM_PAYLOD_XMLN'>
<DE_PAYLOD_XML1'>
<DE_PAYLOD_XML2'> .......
<DE_PAYLOD_XMLN'>
</Record>
<resultSet>
Appreciate your help in this regard!Hi,
A few questions :
How's your first query supposed to give you an XML output like you show ?
Is there something you're not telling us?
What's the content of, for example, <OP_PAYLOD_XML1> ?
I don't think it's a good idea to embed the node level in the tag name, it would make much sense to expose that as an attribute.
What's the db version BTW?
Maybe you are looking for
-
Unable to Create Entity Model from existing oracle database
Hi, I am using Visual Studio 2013, .net framework 4.5, entity framework 5.0 and oracle 11g database. Issue Description: I need to develop WCF service to exposing the account information which needs to get the data from 20 oracle tables. Trying to cre
-
Possible bug with TREAT and EXECUTE IMMEDIATE
Hello, i experienced a strange behavior which seems to be a bug. Consider following definitions: CREATE OR REPLACE TYPE T_Base FORCE AS OBJECT ( DummyProperty NUMBER ) NOT FINAL; CREATE OR REPLACE TYPE T_Child UNDER T_Base ( AnotherDummyProperty
-
Reg:Error in Test Configure
Hi Guys, My sce is File to Rfc while testing in Test Configure in ID it giving error as Interface Determination and Operation Mapping not found but when i was trigger from RWB it Processed sucess,can anyone give me solution for this Error
-
How to improve this query speed ?....help me
How to improve the query speed. Any hints can u suggest in the query or any correction. Here i am using sample tables for checking purpose, When i am trying with my original values, this type of query taking longer time to run select ename,sal,comm f
-
Hi All, We have java messaging server 7.3 and convergence 1U3.one of user deleted the mail from convergence console, But still that mail is available on the mail server store partition,We want to retrieve the deleted mails again.Please help me. Regar