What data type I can use if the text is more then 4000 varchar?
Dear all,
What data type I can use if the text is more then 4000 varchar?
Please advice,
Amy
You didn't specify if you are referring to tables or code.
In tables the limit is varchar2(4000) so anything bigger will need to be stored in a CLOB (as already mentioned).
In PL/SQL code you can defined varchar2 up to 32K so varchar2(32767).
;)
Similar Messages
-
In the Oracel Web Application Server 4.0 documment, it says
about owa_text.vc_arr :Type vc_arr is table of varchar2(32767)
index by binary_integer.
I amusing PL_SQL with Oracle8i and OWA4.0 web server.I want to
use owa_text.vc_arr to pass the multple line texts in my form.
If the text length is less than 4000 characters, everything works
fine.However when the texts are longer than 4000 characters but
less than the max length 32767 characters, I got this error
message:
OWS-05101: Execution failed due to Oracle error 2005
ORA-02005: implicit (-1) length not valid for this bind or define
datatype.
Owa_text.vc_arr is supposed to handle the string with more
than 4000 characters, is it true? Could anyone tell me why? Any
help will be greatly appreciated!!!
Thanks very much.
Helena Wang
Here is the pl_sql procedure to create my form:
PROCEDURE myform
IS
BEGIN
htp.p('
<form action="'||service_path||'helena_test.saveform3"
method=post>
<input type=hidden name=tdescription value="X">
Input1: <textarea name=tdescription rows=50 cols=70
WRAP=physical></textarea>
Input2: <textarea name=tdescription rows=50 cols=70
WRAP=physical></textarea>
<input type=submit name=WSave value="Save">
</form>
END;
/***** here is the pl_sql procedure which I use to save the
form***/
procedure saveform3(tdescription in owa_text.vc_arr,
WSave in varchar2 default 'No')
is
len pls_integer;
begin
for i in 2..tdescription.count loop
len := length(tdescription(i));
htp.p(len);
htp.p(tdescription(i));
end loop;
end;Helena, I think you might get a better response either from the SQL-PL/SQL forum, or perhaps the Portal Applications forum - both of these tend to have folks very familiar with PL/SQL and the OWA packages.
This forum is on Web services based on SOAP, WSDL and UDDI. These can be PL/SQL based but typically don't use the mod_psql or OWA web solution.
As a pointer, I suspect you may already be familiar with, but just in case, you can always take a look at chapter 3 of the OAS documentation, "Developer's Guide: PL/SQL and ODBC Applications" where they go through a number of examples using parameters. See:
http://technet.oracle.com/doc/appsrvr4082/guides/plsql.pdf
Hope this or folks from the other list can help.
Mike. -
What data type do I use in MSA to handle CRM DEC data?
Dear Geeks,
We have a customer field 'ZZ_SUPPORT' on CRM (40 SP11) opportunities, which we flow
down to mobile sales. It previously carried a NUMC2 value (a number
from 1 - 99), and this worked fine... the data flowed fine in both
directions. The data element ZZ_SUPPORT used in CRM is based on a newly
created data domain called Z1_TO_99 and this was defined as data type NUMC
(2 characters), which we have changed to DEC (4 characters, and decimal
places 2, and screen display5). Having made this change and also
changed the screen layout in SE51, the field now looks good and takes
a value like '12.34' without error. We can also see the '12.34' value
being carried in the Opp_Write Bdoc in SMW01 classic segment. However, the BDoc does not migrate
successfully to Mobile - the ZZ_Support value is lost. In Mobile, I
have genereted the Tables associated with Opportunity_write, and also
the BDoc, and I have also changed the BOOPPORTUNITY / Y_Support field
(which carries the value) from NUMC2 to String5. I have also tried Long5, and currency4
because there is no data type "DEC" available in Mobile. When I send
opportunity messages up from Mobile to CRM, I see them going into SMQ2
and then they dissappear because the Function module cannot handle the
BDoc. What is the problem? Is it the function module? or the data type
used on Mobile - if so what should I use in the absense of "DEC"?
RichardSounds like a strange issue indeed. I would call Johnny Nobles.
Tx: Smoggen ?
Sorry, can't come up with better ideas.
Cheers,
Seb. -
Performance and data types: which to use?
Hi All,
I am wondering what data type to use and the effect of them on memory/speed.
1. What is the difference (if any) of using sgl, dbl, int etc. Looking at the LabVIEW help there seems to be a range of 8-256 bits of storage according to the data type. Is it basically choose the one with the smallest storage that can fit the data?
2. I currently have a cluster flowing through subVI's. The cluster contains the start time (or freq), the delta t (or f) and the array of data (about 500-5000 elements). I tried to use the waveform datatype but it couldn't handle a delta t of 2 nanoseconds (500 MHz signal). Am i ok using the cluster, or should i seperate the components and pass them along? What data type should i use for each of the components?
ThanksThere are three main issue to consider.
Range and accuracy. If you need a very high level of accuracy, then you will need to use the extended data type or even create your own, although that's unlikely.
Memory. Yes, SGL takes less than DBL, but unless you're dealing with really huge amounts of data this won't matter.
Coercion. Most built in functions work on DBL. If you wire a SGL into them, they will coerce it, possibly creating a copy of the data and increasing your memory usage.
To sum it up, most of the times it would be best to use the default DBL. It's highly unlikely you'll need one of the others.
As for your second question, it sounds to me like the data is a single organism, so I would say you should leave it in the cluster, but that really depends on whether the functions need it or not and whether you're constantly bundling and unbundling the cluster. Note that 5000 elements is far from being a large array and you shouldn't have any problems handling it.
As for the timing unit, if you really only have 5000 elements (that's 10 microseconds of data?) then you should not have a problem with using a U32 with a nanosecond as the base unit. That should give you the ability to measure more than 4 seconds.
Try to take over the world! -
What are data types that can be stored on TemSe?
What are data types that can be stored on TemSe(Storage for Temporary Sequential Data)?
Moderator message: please search for available information/documentation.
[Rules of engagement|http://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement]
[Asking Good Questions in the Forums to get Good Answers|/people/rob.burbank/blog/2010/05/12/asking-good-questions-in-the-forums-to-get-good-answers]
Edited by: Thomas Zloch on Sep 18, 2011 10:04 PMHi
SAP Library: TemSe Data Store:
There are the following TemSe objects, among others:
· Spool requests (TemSe Name: Spool....)
· Job logs (TemSe Name: JOBLG...)
· Objects from other applications, such as Human Resources (TemSe Name: HR)
· An object whose name begins with KONS; this is object is constantly used by report RSPO1043 and should never be deleted (SAP Note 98065)
Sandra -
What data type is used for storing password,
What data type is used for storing pass word in oracle db, i mean if user inputs some thing from forms it should be in Encrypted form in db, please any help??
Thank you
HinaData type is VARCHAR2:
SQL> desc dba_users;
Name Null? Type
USERNAME NOT NULL VARCHAR2(30)
USER_ID NOT NULL NUMBER
PASSWORD VARCHAR2(30)
ACCOUNT_STATUS NOT NULL VARCHAR2(32)
LOCK_DATE DATE
EXPIRY_DATE DATE
DEFAULT_TABLESPACE NOT NULL VARCHAR2(30)
TEMPORARY_TABLESPACE NOT NULL VARCHAR2(30)
CREATED NOT NULL DATE
PROFILE NOT NULL VARCHAR2(30)
INITIAL_RSRC_CONSUMER_GROUP VARCHAR2(30)
EXTERNAL_NAME VARCHAR2(4000)
PASSWORD_VERSIONS VARCHAR2(8)
EDITIONS_ENABLED VARCHAR2(1)
AUTHENTICATION_TYPE VARCHAR2(8)You can use SQL function ORA_HASH to hash password: http://download.oracle.com/docs/cd/E11882_01/server.112/e17118/functions124.htm#SQLRF06313. -
What file type should i use for reading a large file of data?
I want to store data in a file and access them later. The data file could reach 500 to 1000 MBytes, as a binary file.
I may have memory problems.
I do not need the whole data in memory, only a few data each time, for my calculations.
If i use a binary file, i can not read only a few data. I have to load the whole file and then read the data i need.
Is this correct?
If i use another type of file, can i read only a few bytes without loading the whole file?
Maybe a TDMS file?
Solved!
Go to Solution.I would probably use a TDMS file for this since it could also be read into excel if it were small enough - just more flexiblility. But you can also do it using binary types. You don't have to read the entire file when using binary files. See below.
-
Help ... I've accidentally deleted all data of my user in the terminal. what to do? Can i undo the commands?
greetings from austriaYou cannot undo commands. When you delete/remove files with the rm command the files are not put in the trash where they could be recovered. They are gone.
You should have your system backed up with Time machine and/or backup clone of your system. Use them to recover you files. -
I want to add image in column is it possible then how to add image in data base what data type we need to give we required any casting please show me one example
jitendraHi again,
Several points that can help more:
1. If you are working with Dot.Net, then I highly recommend read the first link that you got! This is nice and simple coding. Another option is this link which is even better in my opinion:
http://www.dotnetgallery.com/kb/resource21-How-to-store-and-retrieve-images-from-SQL-server-database-using-aspnet.aspx
2. As i mention above both link use the column's type image. There are several other option of working with Files. In most of my applications architecture I find that it is better to use a column which let us use any type of file and not an image column.
In choosing the right column's type for your needs basically your fist question should be if if you want to store your data inside relational database environment or outside relational environment. It is a good idea to look for blogs on this issue. Next
if you chose to store your data inside then you need to chose the right column type according to your server version. I highly recommend to look for blogs on the differences between those column's types: IMAGE,
Check those links:
To BLOB or Not To BLOB: Large Object Storage in a Database or a Filesystem
http://research.microsoft.com/apps/pubs/default.aspx?id=64525
FILESTREAM feature of SQL Server 2008
http://msdn.microsoft.com/library/hh461480
FileTables feature of SQL Server 2012
http://technet.microsoft.com/en-us/library/ff929144.aspx
Compare Options for Storing Blobs (SQL Server)
http://technet.microsoft.com/en-us/library/hh403405.aspx
Binary Large Object (Blob) Data (SQL Server)
http://technet.microsoft.com/en-us/library/bb895234.aspx
Managing BLOBs using SQL Server FileStream via EF and WCF streaming
* Very nice tutorial!
http://petermeinl.wordpress.com/2012/02/20/managing-blobs-using-sql-server-filestream-via-ef-and-wcf-streaming/
[Personal Site] [Blog] [Facebook] -
URGENT:data type declaration of container within the method
Hi
My requirement is when the user revceives mail to approve/reject invoice ,the user attaches an attachmnet in the workitem stating the reson for approval/rejection of invoice.The attached attachement should be uploaded to invoice as an attachment.
I have observed that the attachment attached by the user is stored in the container "office_document" and the type of the container is SOFM.
To capture the attachment and send it to invoice i have created new task and new method in ZBUS2081.
i created a container "office_doc_atta" in the workflow .the type of office_doc_atta is SOFM .
in the method as well as task i also declared parameter "office_doc_atta" of type sofm.
to fetch the data from Task to method i have declared following table
data:office_doc_atta type swc_object occurs 0 with header line.
swc_get_table container 'office_doc_atta' office_doc_atta.
I think that data type of "office_doc_atta" decalred within the method
is wrong and i am unable to fetch data from the container.
If anyone know what should be the data type of office_doc_atta within the method and how to fetch data from the task kindly let me know.
Points will be rewarded.Try using SWOTOBJID instead of SWC_OBJECT.
SWOTOBJID is the data type for a persistent object ID, while SWC_OBJECT is the data type for a runtime object ID (or reference or handle, if you are more familiar with any of those terms).
Normally, an object will be passed by the persistent object ID. As the name reveals, the ID is persistent, i.e. remains the same. Therefore it can be stored in a database, and passed to the next step in a workflow - even if this step is executed by a different person another day.
<i>Message was edited by Kjetil Kilhavn:</i>
Please don't use the word urgent in your subject (or in the question for that matter). There are many reasons for this, some of which are:
1) This is not a help desk or service organization, there are no response time guarantees based on how important a problem is for you.
2) Most people visit SDN when time permits.
3) Due to the previous 2 that particular word annoys more than it inspires.
4) It is specifically mentioned in the guidelines that you should not use that word.
5) It is a word with no accuracy. It would be better if you wrote (in the question, not the subject) that you need to solve this within 2 days - then we know your deadline.
6) If I'm in the right mood I will ignore all questions marked as urgent for at least one day. Just for the heck of it. -
started to run recovery disc assistant on a backup hard drve-stopped when it said it would erase all data-but now can't inialize the external drive nor repair it with disc utility. what to do?
Activity Monitor – Monitor Performance Problems
Performance Guide
Why is my computer slow
Why your Mac runs slower than it should
Slow Mac After Mavericks
Things you can do to resolve slowdowns see post by Kappy
Try running this program and then copy and paste the output in a reply. The program was created by Etresoft, a frequent contributor. Please use copy and paste as screen shots can be hard to read.
Etrecheck – System Information -
Logical Data Base to be used in the QUICKVIEWER
hello Abappers,
My client cannot select text fields using SQVI so he wants me to come up with a way for him to do so. I was thinking of creating a logical data base which can be selected in SQVI. I could build the FM READ_TEXT into the QV but what I need clarification on is outputting the text fields because the logical data base is really a set of table joins and since I am using the QV I do not have the flexibility that I would have if I was using a logical data base in a program.
Please advise if anybody has any ideas on this approach and how I would structure the output.
regardsHi Santhosh,
Since you say you are a beginner, lets start this way, hopefully U know from what datasources in ECC or R/3 you are supposed to load data from. Once you are sure about it, then follow this steps.
1) Go to RSA5 transaction in ECC or R/3 System ( source system ).
2) Select the specific datasource from which data is to be extracted to BI and press Activate Datasources button on the top right.
3) Then on check whether this datasource is available in RSA6 screen.
4) Come to BI system, there go to the Source Systems screen, there select the specific Source System (ECC or R/3).
Go to U'r specific Infoarea i.e., SCM in that select the datasource for which U are supposed to extract data, right click and select Replicate Metadata.
5) Once replication is done now right click again on datasource and create and run the infopackage , if its BI 7.0 data will be extracted till PSA.
6) After this create Transformation by right clicking on the Datasource again. Since I guess U will be using standard datasource U will get automatic transformations between the source fields and the infoobjects. Activate Transformations.
7) After this Create a DTP process by again right clicking on the Datasource. Here U specify the Data Target to which data is to be loaded.
8) Activate the DTP, once that's done successfully, Execute the DTP by clicking the Execute Button in the DTP.
9) Monitor U'r data loading thru Monitor screen.
Hope this helps.
Regards,
Syed -
Hi All,
I have a requirement where i have to fetch mutiple rows of a table and then concatenate the data of a particular field of all the rows and put it into a single variable.
I have no restrictions on the no of rows to be fetched due to which i cannot plan of the size of that single variable.
Can anyone suggest me some data type which can take variable lengths at run time. also the size limit can go beyond 255.
Please help.
Thanks,
ChandnaHello Chandna,
You can go with the following workaround;
DATA:
w_var1 TYPE string,
w_var2 TYPE string.
LOOP AT t_table INTO fs_table.
CONCATENATE w_var1 fs_table-field1 INTO w_var2.
ENDLOOP.
Now, every time loop is run, current value is attached to previous value and at the end, you'll get concatenated values in w_var2.
You can very well use w_var2.
Hope, it helps you.
Thanks: Zahack -
How to decrypt data when you can't get the private key in Windows?
I'm very confuse. My english is poor, but I try to say my question clearly.
When browser connects to a https website which needs client certificate to authenticate the identity, the browser will send client certificate to web server.
Then the web server will use the certificate to encrypt some data and send it to browser.
Then broswer should have private key to decrypt that.
But as I know, if I install a pfx format personal certificate, I can set can't export private key, which means you can't get the private key to use it. So how can
the browser decrypt the data without private key?
By the way, what is CSP, use CSP's interface can we use CryptoAPI
to decrypt data without private key?Answer for question is "you cant"..
"How to decrypt data when you can't get the private key in Windows?"
Read more
http://msdn.microsoft.com/en-us/library/windows/desktop/aa387460(v=vs.85).aspx
http://msdn.microsoft.com/en-us/library/windows/desktop/bb427432(v=vs.85).aspx
http://technet.microsoft.com/en-us/library/dd277320.aspx
http://en.wikipedia.org/wiki/Public-key_cryptography -
Exception: "The type "Collection" as used in the variable/parameter declarations
I am getting the following exception when I try to run the test code.
What could be causing it ?
I am running Kodo 2.4.3 with JDK 1.4.1
EXCEPTION
javax.jdo.JDOFatalInternalException: [agencyNames:[AGENCY1, AGENCY2]]
NestedThrowables:
javax.jdo.JDOUserException: The type "Collection" as used in the
variable/parameter declarations could not be found in the imports.
TEST CODE
JDOFactory jdoFactory = new JDOFactory();
PersistenceManager pm = jdoFactory.getPersistenceManager("");
try
Class agencyClass = Agency.class;
Extent agencyExtent = pm.getExtent(agencyClass, false);
String filter = "agencyNames.contains(agencyName)";
List agencyNames = Arrays.asList(new String[]{"AGENCY1",
"AGENCY2"});
String param = "Collection agencyNames";
Query q = pm.newQuery(agencyExtent, filter);
q.declareParameters(param);
Collection deps = (Collection) q.execute(agencyNames);
System.out.println("SIZE :" + deps.size());
catch (Exception ex)
ex.printStackTrace();
JDO Mapping and Class
package test;
import java.util.*;
public class Agency
private String agencyName;
private String hostCarrierCode;
//Getter and Setter
public static class Id
public String agencyName;
public String hostCarrierCode;
//Application ID definition
?xml version="1.0"?>
<jdo>
<package name="test">
<class name="Agency" identity-type="application"
objectid-class="Agency$Id">
<extension vendor-name="kodo" key="table" value="AGENCIES"/>
<extension vendor-name="kodo" key="lock-column" value="none"/>
<extension vendor-name="kodo" key="class-column" value="none"/>
<field name="agencyName" primary-key="true">
<extension vendor-name="kodo" key="data-column"
value="AGENCY_NAME"/>
</field>
<field name="hostCarrierCode" primary-key="true" >
<extension vendor-name="kodo" key="data-column"
value="CARRIER_CODE"/>
</field>
</class>
</package>
</jdo>Kodo 2.4.3 does not support using collections as parameters.
Kodo 2.5.0, due to be released shortly, does support this. See
http://solarmetric.com/Software/beta/2.5.0 to get the latest release
candidate.
-Patrick
On Thu, 05 Jun 2003 22:26:36 +0000, B K Adarsh wrote:
I am getting the following exception when I try to run the test code.
What could be causing it ?
I am running Kodo 2.4.3 with JDK 1.4.1
EXCEPTION
javax.jdo.JDOFatalInternalException: [agencyNames:[AGENCY1, AGENCY2]]
NestedThrowables:
javax.jdo.JDOUserException: The type "Collection" as used in the
variable/parameter declarations could not be found in the imports.
TEST CODE
JDOFactory jdoFactory = new JDOFactory();
PersistenceManager pm = jdoFactory.getPersistenceManager("");
try
Class agencyClass = Agency.class;
Extent agencyExtent = pm.getExtent(agencyClass, false);
String filter = "agencyNames.contains(agencyName)";
List agencyNames = Arrays.asList(new String[]{"AGENCY1",
"AGENCY2"});
String param = "Collection agencyNames";
Query q = pm.newQuery(agencyExtent, filter);
q.declareParameters(param);
Collection deps = (Collection) q.execute(agencyNames);
System.out.println("SIZE :" + deps.size());
catch (Exception ex)
ex.printStackTrace();
JDO Mapping and Class
package test;
import java.util.*;
public class Agency
private String agencyName;
private String hostCarrierCode;
//Getter and Setter
public static class Id
public String agencyName;
public String hostCarrierCode;
//Application ID definition
?xml version="1.0"?>
<jdo>
<package name="test">
<class name="Agency" identity-type="application"
objectid-class="Agency$Id">
<extension vendor-name="kodo" key="table" value="AGENCIES"/>
<extension vendor-name="kodo" key="lock-column" value="none"/>
<extension vendor-name="kodo" key="class-column" value="none"/>
<field name="agencyName" primary-key="true">
<extension vendor-name="kodo" key="data-column"
value="AGENCY_NAME"/>
</field>
<field name="hostCarrierCode" primary-key="true" >
<extension vendor-name="kodo" key="data-column"
value="CARRIER_CODE"/>
</field>
</class>
</package>
</jdo>--
Patrick Linskey
SolarMetric Inc.
Maybe you are looking for
-
I installed windows 7 on an XP lap top using a clean install. When trying to re-install Acrobat standard 9, the install wizard gets along for a bit then i get the following message "Error 2755. Server returned unexpected error 3 attempting to instal
-
In ALV reports how double click event works?
in ALV reports how double click event works? Explain in detail.....
-
No one wants my Performance Tuning experience?
I worked as a DBA for 2 years in IT major where my work was confined to Performance Tuning & monitoring and so I had no opportunity to get the experience of Backup & Recovery,RMAN and other Core DBA responsibilities. I had to leave in July last year
-
How to clean the IE browser cache from the jsp?
I have my own web application running on my IE browser, Also we have created this application shortcut URL link on my desktop.(i.e just we have created some short cut for the URL http://localhost:8080/app ). If we accidently closes the browser with o
-
Hi! ** SETUP: OSX Mavericks, LR5.4 ** The ERROR: I needed to reinstall my system. I reinstalled OSX Mavericks and all my data from a backup. Since then I can not run or play video files in LR anymore. I get the error message: dynamiclinkmediaserver h