Column Data type for text more than 10000.
Hi,
Which data type is best suited for a column which will have a text length more than 10000. The text is simple english only.
Regards
Srini
HiTodd Barry,
The version i am using is 8.1.7.
What is the capacity of CLOB in terms of english characters. Documetation says it is 4 GB.But it does not talk about length of characters..When i am trying to insert simple english text of length of 10000, i am getting following error:
ERROR at line 1:
ORA-01704: string literal too long.
Even LONG datatype also can take up to 5000 only.
Can you suggest the best way to insert such a huge text..
Appreciate your response.
Regards
Srini
Similar Messages
-
Data Type for a Longitude/Latitude Column in an Oracle dB Table?
Greetings All,
What is the recommended data type for a Longitude(Lon) or Latitude(Lat) Column of an Oracle dB Table? I am creating a signs inventory table in our Oracle database to be used as a data warehouse for our signs inventory. The Lon and Lat fields along with some other data will be populated from a MS access file exported from our Geodatabase. Currently the data type for the Lon and Lat fields of the MS access file is defined as "Double". A couple of Examples of the Lon and Lat data are as follows:
Lat Lon
59.4564555909 -135.3133542922
64.841125 -148.01808
...What data type should these two columns be defined in the new Oracle database table??? Should the data type be defined as FLOAT(126), NUMBER(10, 6), or else? Any suggestions/help on this would be greatly appreciated.
If the data type is defined as NUMBER(10,6), the first example of Lon "-135.3133542922" will be truncated to "-135.313354" or would I receive an error while trying to import the data from an access file to the Oracle dB?
Thanks in advance for any/all the help.Orchid,
Is SDO_GEOMETRY available in Oracle 10g?Yup. I'm still on 10g as well; there's no shame in that.
How do I format my lat/long's into WKT and use the SDO_GEOMETRY constructor?The March 16th example shows the steps, but I take it you're trying to get your data from MS Access into Oracle. Is that right? If so, consider these options:
OPTION 1, When you have < 50k records
Simply write a query that returns INSERT statements that you can run against Oracle.
For example, let's say you have a table in MS Access defined as msaCoords (ID, LongX, LatY).
Let's say, your destination table in Oracle is named oraCoords(ID NUMBER, Geometry MDSYS.SDO_GEOMETRY). Then,
SELECT "INSERT INTO oraCoords (ID, Geometry) VALUES (" & ID & ", SDO_GEOMETRY('POINT (" & LongX & "," & LatY & "'), 8307);" FROM msaCoords;
-- "MS-ACCESS QUERY RESULTS"
INSERT INTO oraCoord (ID, Geometry) VALUES (1, SDO_GEOMETRY('POINT (-135.3133542922,59.4564555909'), 8307);
INSERT INTO oraCoord (ID, Geometry) VALUES (2, SDO_GEOMETRY('POINT (-148.01808,64.841125'), 8307);Save those MS-ACCESS QUERY RESULTS to a text-file (D:\MyPts.sql). Launch SqlPlus and type @D:\MyPts.sql
Once it's done, type Commit into SqlPlus and you're done.
OPTION 2, when you have > 50k records
Use SqlLoader. There's an example posted { here | http://forums.oracle.com/forums/thread.jspa?messageID=9412123� }
Cheers,
Noel -
Dear All,
We have one user contains more than 100 tables(Production). I need to change some of table columns data types without affect data's.
Please suggest me to do that.
Thanks in advance,
Moorthy.GSDear Sybrand,
Thanks for your reply.
I tried below ways to modify the datatypes.
1) Tried to modify datatype FLOAT to NUMBER while data is persists.
2) Tried to take a export of that user and import the dump without data's and modify the datatype. After that, i tried to import the dump with rows=y option. But it failed due to constraint problems.
Please advise...
Cheers,
Moorthy.GS -
Wcf Data Service fails when more than 8properties in the 'select=' portion
Hi:
I am using WCF Data Service and Oracle
EF Provider is ODAC11.2 Release 4
Wcf Data Service fails when more than 8 properties are specified in the 'select=' portion of the URI
here is my code
var q = from c in this.ctx.SALESORDER_ITEM
select new
c.SORDERDETAILID,
c.IID,c.DMFLAG,c.OWNERID,c.SKUID,c.SKU_ID,c.TRADENO,c.SOURCEID,c.SORDERID
excetion:
InvalidOperationException: An error occurred for this query during batch execution. See the inner exception for details
The inner exception is null, but the DataServiceClientException states: Value cannot be null Parameter name: value
the exception is thrown in base.OnStartProcessingRequest(args) method (overridden).
Here is the call stack as well:
at System.Data.Services.WebUtil.CheckArgumentNull[T](T value, String parameterName)
at System.Data.Services.Internal.ProjectedWrapper.set_PropertyNameList(String value)
at lambda_method(Closure , Shaper )
at System.Data.Common.Internal.Materialization.Coordinator`1.ReadNextElement(Shaper shaper)
at System.Data.Common.Internal.Materialization.Shaper`1.SimpleEnumerator.MoveNext()
at System.Data.Services.Internal.ProjectedWrapper.EnumeratorWrapper.MoveNext()
at System.Data.Services.DataService`1.SerializeResponseBody(RequestDescription description, IDataService dataService)
at System.Data.Services.DataService`1.HandleNonBatchRequest(RequestDescription description)
at System.Data.Services.DataService`1.HandleRequest()
Is there a max number of properties in $select statement
I think may be it is oracle provider's problem ,but i don't konw how to debug it Can anyone help me
Any help is greatly appreciatedI believe the null/empty string issue is unrelated to the 8 column issue, at least for ODP.NET. For example, let's take the original query in the OBE:
http://.../yoursvcfile.svc/EMPLOYEES?$select=EMPLOYEE_ID,FIRST_NAME,LAST_NAME,SALARY,DEPARTMENT_ID,DEPARTMENT,EMAIL,PHONE_NUMBER,MANAGER_ID
Let's make all the columns selected not nullable. You can do this with the Oracle Dev Tools. Specifically, PHONE_NUMBER and FIRST_NAME are the only nullable fields. I make them non-nullable and re-run the query and the same error occurs. Thus, these values should never be made null. Moreover, in all 107 rows, none of these row values consist of empty strings anyway.
Looking into the problem further, WCF DS is calling methods in the System.Data.Services.Internal namespace.
http://msdn.microsoft.com/en-us/library/system.data.services.internal.aspx
Specifically, we see your issue when the ProjectedWrapperMany method is called. You will notice that there is ProjectedWrapper0, ProjectedWrapper1...ProjectedWrapper8 methods also present in the same namespace. As soon as the number of columns exceeds 8, ProjectedWrapperMany is called and we see the error. We're going to ask MS to help analyze the issue since this is an .NET-internal method being called. -
How to all customer who are having total sales value more than 10000 usd??
Dear all,
How can we see all customers that are having total sales value is more than a specific amount (Ex: more than 10000 USD)
How to list all customers who's total sales value is more than 10, 000 USD.
Please help me to find the right solution for this problem.
Your help will be highly appreciated.
Best wishes,
Raghu ramDear Raghu ram
Go to VF05N, give just Sales Organization, distribution channel and execute. You will get the entire sales details including currency. Sort in descending order by selecting the value column.
thanks
G. Lakshmipathi -
What do you think about using exceptions for something more than errors
if you look the java.lang.Exception description at the JDK javadoc, you can see the following text:
"The class Exception and its subclasses are a form of Throwable that indicates conditions that a reasonable application might want to catch."
... we can�t see "error" word anywhere!!
What do you think about using exceptions for something more than errors? Can be possible use them as a way for send information to upper layers?
Thankx in regards...it seems that what you say is a functional way of achiveing that, yes
but Exceptions are generally reserverd for "Exceptional" situations ie program messing up or invalid data
it does require a fair bit of processor time to actually generate and throw an Exception.
so, all in all its "better" to use "normal" condition flow control to achive what you want.. you can always return early, break loops, call methods to pass information -
Store the value in BLOB column data type
Hi All,
I have a file of about 5MB. I want to store this in BLOB column data type of a table.
Can we compress this file to store and when we take uncompress the same...or how do we do it.
and what is the procedure to store this....
pls. help me
Thanks,
NareshHi skud
i juast want to store the agent code to variable.if i did get ur point...
Why don't u just use a simple assign statment for example...
DECLARE
V_VALUE NUMBER;
BEGIN
V_VALUE := LC354 ; -- IF it was a value as LC354 static i mean
-- or u could use any value
V_VALUE := :ur_form_item_name; --- if it was dynamic
END;That's it .
Hope this helps...
Regards,
Ammatu Allah. -
List of unreleased POs with Net PO Price more than $10000
Hi,
How can I check the list of unreleased POs having net price more than $10000. I tried using ME2N, but it gives result of the specific net price. I want to use range of net price.
Thanks
Suraj
Edited by: Suraj Sharma on Jul 30, 2008 5:42 AM
Edited by: Suraj Sharma on Jul 30, 2008 5:44 AMHi
In the dynamic slection in ME2N , just double click on the field space, you will get the popup for mainatin selection options , you can use the Greater than or equal to symbol & input the value.
Thanks & Regards
Kishore -
Query regarding the data type for fetcing records from multiple ODS tables
hey guys;
i have a query regarding the data type for fetcing records from multiple ODS tables.
if i have 2 table with a same column name then in the datatype under parent row node i cant add 2 nodes with the same name.
can any one help with some suggestion.Hi Mudit,
One option would be to go as mentioned by Padamja , prefxing the table name to the column name or another would be to use the AS keyoword in your SQL statement.
AS is used to rename the column name when data is being selected from your DB.
So, the query Select ename as empname from emptable will return the data with column name as empname.
Regards,
Bhavesh -
General Scenario- Adding columns into a table with more than 100 million rows
I was asked/given a scenario, what issues do you encounter when you try to add new columns to a table with more than 200 million rows? How do you overcome those?
Thanks in advance.
svkFor such a large table, it is better to add the new column to the end of the table to avoid any performance impact, as RSingh suggested.
Also avoid to use any default on the newly created statement, or SQL Server will have to fill up 200 million fields with this default value. If you need one, add an empty column and update the column by using small batches (otherwise you lock up the whole
table). Add the default after all the rows have a value for the new column. -
How to find the Column data type changes in table
Hi All,
I need to find out the column data type changes where made recently in table .
How do i check past changes in column data type. Any data dictionary are there to find out the data type changes in the column .
Thanks in advance..<FONT FACE="Arial" size=2 color="2D0000">
You have the answer on hand (user_arguments / all_arguments)!
SQL> desc user_arguments
Name Null? Typ
OBJECT_NAME VARCHAR2(30)
PACKAGE_NAME VARCHAR2(30)
OBJECT_ID NOT NULL NUMBER
OVERLOAD VARCHAR2(40)
ARGUMENT_NAME VARCHAR2(30)
POSITION NOT NULL NUMBER
SEQUENCE NOT NULL NUMBER
DATA_LEVEL NOT NULL NUMBER
DATA_TYPE VARCHAR2(30) --> Data Type
DEFAULT_VALUE LONG
DEFAULT_LENGTH NUMBER
IN_OUT VARCHAR2(9) -->Argument direction (IN,OUT,or IN/OUT)
DATA_LENGTH NUMBER
DATA_PRECISION NUMBER
DATA_SCALE NUMBER
RADIX NUMBER
CHARACTER_SET_NAME VARCHAR2(44)
TYPE_OWNER VARCHAR2(30)
TYPE_NAME VARCHAR2(30)
TYPE_SUBNAME VARCHAR2(30)
TYPE_LINK VARCHAR2(128)
PLS_TYPE VARCHAR2(30)
CHAR_LENGTH NUMBER
CHAR_USED VARCHAR2(1)
Look for Data_Type where IN_OUT say OUT. That will be the data type retruned by that function.
Edited :
or POSITION in argument list,or null for function return value
-SK
</FONT> -
Create List of Tables/Columns/Data Types
I am new to Oracle (from SQL Server) and I am looking for a query that will create a list of tables, columns, data types, etc. (data dictionary) in an Oracle database -- one that I can import into, say, MS Access or use Crystal reports and create a report that shows the same.
I had a query to do this in SQL Server -- but it was specific to SQL Server. Does anyone have one to do the same in Oracle? I'm hoping not to have to re-invent the wheel.
Thanks!Hi user653145!
The Data Dictionary has many queries to view informations. Some of these view are
dba_tables
dba_tab_columns
dba_views
etc.
Look for the "Oracle Database Referenc" in the Oracle Onlinedocumentation at
http://tahiti.oracle.com
to get a full list of all data dictionary views.
hope this helps! -
Direct Database Request - Incorrect Column Data type
Hello All -
hope you can help with this. I'm using the Direct Database Request in Oracle BI to send a complex query directly to our data warehouse. My problem is that the result columns containing my measures are converted to integer by Oracle BI when they should be double. The integer conversion causes decimal values to be rounded, reading to incorrect results in my reports. I've tried several tweeks to my query in an attempt to allow OBIEE to make the correct guess on the data type but nothing has worked.
Is there a way to force OBIEE to recognize the correct data type for a column in a Direct Database Request Query?
Thanks in advance for you help!
MacThank you both.
David's response was helpful from a style/readability perspective (the columns in question were complex expressions) but I had already attempted the approach and it hadn't solved the formatting issue. Nico's response solved the problem.
Regards,
Mac -
How do I know the column data type
Hello,
For example I have created table Test:
SQL> create table Test(
2 rollNo number(3),
3 Name varchar2(80));
Table created.Now I desc Test but its not showing the column data type
SQL> desc test
Name
ROLLNO
NAME Can I know that?
Best regardsWhat happens when you issue,
set linesize 2000
SQL>desc testAre you sure that you are not missing scrolling the bar in the bottom of the window?
SQL*Plus: Release 11.2.0.1.0 Production on Sat Nov 20 19:23:01 2010
Copyright (c) 1982, 2010, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> create table testr(test number(3), rollno varchar2(10));
Table created.
SQL> desc testr
Name Null? Type
TEST NUMBER(3)
ROLLNO VARCHAR2(10)Aman....
Edited by: Aman.... on Nov 20, 2010 7:24 PM -
A newer version of data type BBP_PDS_HSS_IC was found than one required
Hi,
When I create a SC, it is automatically approved but the PO is not created.
If I check TRX SM58 I get the message:
"A newer version of data type BBP_PDS_HSS_IC was found than one required"
Any ideas?
Carlos DurazoHi
Which SRM version are you using ?
By an chance have you created any new fields in the standard structure
<b>'BBP_PDS_HSS_IC'</b> using <u>SE11</u> Transaction in SRM system. Please confirm the same by taking help of ABAP person here. Seems to be like the structure is not Activated completed.
<u>Related SAP OSS Notes -></u>
Note 758067 - SRM 4.0: Change documents of new sets (DynAttr, Weight)
Note 820201 - Document changes for attachments does not work
Hinweis 691880 - Changes in tolerances not displayed in purchase order
Note 1018714 - Change documents: Time stamp of the application server
Note 1006898 - Deleted vendor not displayed in Change hist of Shopping cart
Do let me know.
Regards
- Atul
Maybe you are looking for
-
CRM survey - FM , methods :-)
hi, anyone has any experience with CRM survey interfaces? if there any way to update data in them via <b>Function modules</b> or object <b>methods </b>? thanks for any help (names of modules, code samples etc.) Regards, michal
-
Import extremely slow from 9i to 10G
I am preparing a 10.2.0.4 database for testing, (upgrading from 9i) because we are also moving to a new server, I am going to use the exp/imp method. I created a new database after installing and patching the software, then created the necessary tabl
-
Hi All, I am getting one strange problem. I am using javamail to send some notification to all of my applicatio users. But I don't know some of the users are getting 200-250 copies of same e-mail and I am not able to find out what could be the reason
-
Copying a table to onother server
are there utilities to copy objects to disk eg copyng a table to disk and installing it on onother server. whats the limit
-
Dynamic Select List population
I have 2 lists on my form. First one is populated from LOV...based on the value that is chosen in the first Select List I would like to populate the second LOV. Is this possible? for example...First Select List has Company Id, Company Name. So to pop