Oracle apps data type number came over to disco as varchar
created custom foler ( fnd_flex_values_vl) using sql, one of DFF item ( original data type is number) shows as varchar. Anybody knows how to convert this to number , I tried to_number but still shows as text in Desktop.
Sorry, thought you'd said it was a function originally.
Okay, so as a custom folder, is it possible that there are NULLs being encountered in the attribute1 field?
ie:
select flex_value_set_id, flex_value_id,flex_value, description,
to_char(attribute1,'999,999,999') budget,to_number(attribute1,'999,999.99') Budget_amount_number
from fnd_flex_values_vl
where flex_value_set_id='1004012'
becomes:
select flex_value_set_id, flex_value_id,flex_value, description,
to_char(NVL(attribute1,'0'),'999,999,999') budget,to_number(NVL(attribute1,'0'),'999,999.99') Budget_amount_number
from fnd_flex_values_vl
where flex_value_set_id='1004012'
or is it something more difficult?
Russ
Similar Messages
-
Issue with the Data Type 'Number' in Business Objects
Hi,
I have an Object in the Universe where the Data Type of the Object is a number. This Column pertaining to this Object has certain values in the database out of which there is a 17 Digit Value which is 00000000031101165.
Now, when trying to retreive the same value through Business Objects it is getting rounded off to 00000000031101200 automatically when trying to view in Webi and when trying to retreive the same in Designer/Deski, it displays as 0.000000003110116E+16.
So, I would like to know if there is any other alternative in trying to retreive the Original Value that would not round off. Also, do we have any Limitation for the Data Type Number in Business Objects? The Version we are on is XI3.1.
Note: There are no functions that are used on this Object at the Universe Level and would not like to use any functions here.What is the underlying database?
It looks like the data is considered to have two decimals, but is rounded to zero decimals.
Only you don't see the number formatting.
Is this a BW query?
Is this a calculated keyfigure?
In the query you can specify the rounding you want and it is also possible to specify it on an infoobject level.
Check those settings...
Hope this helps,
Marianne
PS. Oh, and about the formatting, you can specify a default object format in the universe and override it on the final client (WebI, Crystal) -
Issue with field data type NUMBER(22,5) while updating field data.
Hi,
I have a field with data type NUMBER(22,5).
While inserting or updating field data it should take 17 digit and after decimal point 5 digit total 22 digit.
I set 22 for maximumLength property of messageTextInput field.
While updating field I am getting following problems,
1) I provide the value as 1234567890123456789012 (22 digit) and click apply button.
then I got error message as
Error
मैकेनाइजड दो पहिया/तीन पहिया वाहन - Value 1234567890123460000000 exceeds the maximum allowed value (NUMERIC (22, 5))
2)then I insert 12345678901234567.1234 (17 digit before decimal point and 4 digit after decimal point and it didn't accept 5 digit after decimal point) and click apply button.
It insert the value as 12345678901234600 (value changed after Apply)
The I tried with simple SQL insert statement to insert data and it successfully insert 12345678901234567.12345 value.
Any item property I missed here to set?
Please suggest.
Thanks & Regards,
Sagarikahi
according to
" then I insert 12345678901234567.1234 (17 digit before decimal point and 4 digit after decimal point and it didn't accept 5 digit after decimal point) and click apply button.
It insert the value as 12345678901234600 (value changed after Apply)"
this statement ,it seems that it is definitely applying round or somthing like that function in the code before inserting value in the table("try with select round(12345678901234567.1234 ) from dual u will get the same result = 123456789012345600 ") ,
bcz u r able to insert the same directely into the table using insert statement so kindely have look on the code if something like this is not happening there.try to check code in related EOimpl class
try to to use debugging mode ,and the 23 char problem is related to maximum lenghth of text box make it 23 it will get resolved and u will be able to enter 17 digits with 5 digits after decimal point
thanx pratap -
ADF View Object query to use Oracle LONG data type
Hi,
I'm using a view object that uses Oracle LONG data type.The following exception is thrown
*"java.sql.SQLException: Stream has already been closed"* and it is not fetching the correct data.
I have searched in many forums,they suggested to use LOB instead of LONG as LONG is deprecated. But in my case I can't avoid using LONG as some of my legacy applications using the same DB.
Please suggest me a way
Thanks in Advance
FelixThanks for your reply Arun,
I have solved this problem using the solution suggested by this blog [AskTom-Link|http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:839298816582]
In the above blog link,they have suggested to convert Long to Varchar by functions and asked to use this function in the column.
Thank you all guys who have seen this post.
Regards,
Felix -
Hi,
I need to create a counter kf which should populate 1 and 0 to this counter field. Please let me know is there any difference between data type
NUMBER (DEC) and INTEGER (INT4).
Please suggest.
Thanks & Regards,
Pavan kumarHi Pavan,
The basic difference between Number(DEC) and INT4 is its internal storage in system.
For Number (DEC) - Value internally stored as packed number with 3 decimal places whereas INT 4 as 4 byte integer without decimal places.
For counter KF, you can go for INT 4.
Hope this helps.
Thanks -
Problem loading PostgreSQL Bytea data type to Oracle Raw data type
We are migrating our database from PostgreSQL to Oracle. First, we convert the BYTEA data type in PostgreSQL to Oracle RAW. The BYTEA data type is variable bytes array. How can we load the BYTEA data type to Oracle RAW data type? Or I have to convert to different data type. thanks.
Peter,hi,
Instead of 'interval day to second' in method declaration use internal datatype 'DSINTERVAL_UNCONSTRAINED'.
There are more unconstrained types in oracle.
Bartek -
Oracle-specific data types vs Connection pool
Hi, using Oracle-specific data types such as
ArrayDescriptor and create it by a connection to an Oracle database from a WebSphere datasource throw a ClassCastException. There is no problem using these Oracle-specific data types when the connection is obtained via the DriverManager. WebSphere cannot fix the problem because these data types are
not part of the JDBC specification.
Some reply from Oracle?
Thank you very much.Thank you but I there is no solution in that thread.
Also, I know that WebLogic from BEA has a way around this issue... No Websphere work around ?
No Oracle fixing ?
Thanks. -
Oracle XML Gateway- Mapping XML to Oracle Apps API - Wrong Number or types
XML GATEWAY INBOUND – CALLING AN API (PL/SQL record type IN variable) TO INSERT THE DATA INTO SAMPLE TABLE
Hi,
I am using XML Gateway to push data into Oracle Apps using a procedure call with “Record Type” as the parameter. I am getting a “wrong number” or types of arguments mismatch error inspite of following the process described in the Oracle XML Gateway User’s Guide
Steps followed:
DB
1. I Created a sample table XX_CUST_HIST(ID NUMBER, ACCOUNT_NAME VARCHAR2(50), FIRST_NAME VARCHAR2(50), LAST_NAME VARCHAR2(50), TITLE VARCHAR2(50))
2. I then Created a package ‘XX_XML_DEMO_API’ in which we have defined a record type and a procedure.
3. The Record type ‘customerRecordType’ holds account_name , first_name, last_name and the title.
4. The Procedure ‘insert_customer_r’ takes 2 IN arguments :
1. p_ id number
2. p_customer customerRecordType
5. The procedure will insert the values into xx_cust_hist table
p_id -> id
p_customer.account_name -> account_name
p_customer.first_name -> first_name
p_customer.last_name -> last_name
p_customer.title -> title
Now I need to call the procedure ‘XX_XML_DEMO_API . insert_customer_r’ from XML gateway.
Following are the steps to call the procedure:
[1] Create DTD
ELEMENT NEW_CUSTOMER_APIR (DATAAREA)
ELEMENT DATAAREA (CUSTOMER_DATA)
ELEMENT CUSTOMER_DATA (ID, CUSTOMER_RECORD)
ELEMENT ID (#PCDATA) ELEMENT CUSTOMER_RECORD (ACCOUNT_NAME, FIRST_NAME, LAST_NAME, TITLE)
ELEMENT ACCOUNT_NAME (#PCDATA)
ELEMENT FIRST_NAME (#PCDATA)
ELEMENT LAST_NAME (#PCDATA)
ELEMENT TITLE (#PCDATA)
[2] Creation of XML map Data Definition type for Source and Destination are set to XML.
While executing the procedure ‘XX_XML_DEMO_API . insert_customer_r’ in post_process from the message designer, instead of 2 (p_id IN number , p_customer IN customerRecordType) parameters it is showing 6 parameters (p_id IN number, p_customer IN customerRecordType, account_name IN varchar2, first_name IN varchar2, last_name IN varchar2, title IN varchar2). Six parameters are getting mapped, instead of the 2 that the procedure really needs.
[3] Testing of XML map. Error message in transaction monitor:
ORA-06550: line 1, column 7: PLS-00306: wrong number or types of arguments in call to 'INSERT_CUSTOMER_R' ORA-06550: line 1, column 7: PL/SQL: Statement ignored -
ECX_ACTIONS.BIND_PROC_VARIABLES
The process executed and produced the error message given in the step 3. The standard documentation is unclear on how this should be done. Being a newbie to the XML Gateway technology I am unable to get a clue about what the error message could be and which step of the process produced the message. Could anyone help me to proceed further?
Thanks in advance.Hi Siva,
It seems like the walletkey property of event type is defined incorrectly. Please try by defining the event as follows:
<wlevs:property name="walletkey" type="char" length="20"/>
Use "char" instead of "char[]".
Best Regards,
Sandeep -
Hi,
We are using for all Oracle number columns the Oracle parameter type OracleType.Number.
Now we have seen that we can also use the type OracleTyp.Int32.
Is it better or faster to use this type for columns
which can use this type.
Have anybody experience with using Oracle data types ??
Kind Regards
MartinIt really depends on what kind of data you're inserting or updating. If you've data that can be accomodated in an integer, you should use OracleDbType.Int32 over OracleDbType.Decimal. You get much better performance by using Byte, Int16, Int32, Single, Double over Decimal but these types can not hold the same precision and scale as Decimal type can.
-
How to avoid oracle implicit data type conversion
Hello,
i have a query like below..
SELECT EMP_NUM
FROM EMPLOYEE
WHERE EMP_NUM=SOURCE_EMP_NUM;
1. My SOURCE_EMP_NUM data type is varchar2.
2. My table EMP_NUM data type is number.
3. In one case my SOURCE_EMP_NUM value '00000123'
4. I have an entry in table for EMP_NUM as 123.
5. In this case my query is success and giving me row for 123, which i don't want it should compare with leading zeros. But due to oracle implicit conversion the comparision getting passed.
6. I have an index for this column, so i can't use "like" operator...
Can somebody help me.....
Thanks in adv....HI,
Just see this :---
SQL> select * from emp where deptno=00020;---------deptno is number, 00020 is number and its true
EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO
7369 SMITH CLERK 7902 17-DEC-80 800 20
7566 JONES MANAGER 7839 02-APR-81 2975 20
7788 SCOTT ANALYST 7566 19-APR-87 3000 20
7876 ADAMS CLERK 7788 23-MAY-87 1100 20
7902 FORD ANALYST 7566 03-DEC-81 3000 20
SQL> select * from emp where to_char(deptno)=00020;=-------------deptno is character type and 00020 is number so still it is leaving 0000 from 20 as it number and has no impact,
EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO
7369 SMITH CLERK 7902 17-DEC-80 800 20
7566 JONES MANAGER 7839 02-APR-81 2975 20
7788 SCOTT ANALYST 7566 19-APR-87 3000 20
7876 ADAMS CLERK 7788 23-MAY-87 1100 20
7902 FORD ANALYST 7566 03-DEC-81 3000 20
SQL> select * from emp where to_char(deptno)='00020';---now both are character and no row is selected.
no rows selected
So you can avoid the implicit conversion according to the requirements and in this case we are usin to_char function to avoid this.
Regards,
Navneet -
How could I Write data into a field in Oracle whose data type is VARCHAR2
The target data I want to write into Oracle is in http://tw.yahoo.com/info/utos.html.
Now, these data is stored in Mysql database and the field which stores these data uses "Text" as its data type.
I want to derive these data from mysql database and store them into a field of oracle database.
In oracle, I create field whose data type is varchar2(4000) to store these data.
I use JSP to derive data from mysql and insert into oracle through JDBC.
But the result of the page shows me that "javax.servlet.ServletException: Data size bigger than max size for this type: 25623".
Please anyone could help to resolve this problem?
Thank you very much.My hunch is that the problem is that VARCHAR2(4000), but default, allocates 4000 bytes of storage. Depending on your database character set, a single character may require up to 4 bytes of storage.
If you are on 9i, you can declare the column VARCHAR2(4000 CHAR) to allocate 4000 characters of storage. You can also set NLS_LENGTH_SEMANTICS to CHAR, which will cause Oracle to assume that your declarations are in characters rather than bytes.
Justin
Distributed Database Consulting, Inc.
http://www.ddbcinc.com/askDDBC -
Oracle Apps Data Dictionary Poster
Does anyone know where I can find an Oracle Applications Data Dictionary Poster to buy online like the DBA V$ or regular Data Dictionary posters that you can find online trough some companies? I'm looking for something other than what I can find on Metalink.
Hi,
I believe such poster is not available. The poster you are referring to (which is available through some companies, here is [an example|http://www.tusc.com/oracle/download/tusc_posters.html]) should work with Oracle Apps Database. In addition to eTRM, search Google for Oracle Apps Pocket Guides and you should find something similar to the following:
E-Business Suite Release11 i Apps DBA Pocket Guide
http://www.solutionbeacon.com/E-BusinessSuiteRelease11iAppsDBAPocketGuide07.pdf
Pocket Guides
http://www.solutionbeacon.com/tool_pocket.htm
Regards,
Hussein -
ORACLE CLOB data type and WIS 10901
Hello! I have several objects in universe that has connection to ORACLE DB. One of them has type CLOB in db and Long Text in universe, other has type number and has definition COUNT(db_column).
When I'm using this objects separate in webi query - everything fine, but when I put them together I've got error message:
A database error occured. The database error text is: ORA-00932: inconsistent datatypes: expected - , got CLOB
. (WIS 10901)
What's going wrong?I''ve got a solution! I've had sql in my query
SELECT
ltrim(OPERATIVE_REPORT."orderText",11),
OPERATIVE_REPORT."resolID",
COUNT(OPERATIVE_REPORT."(usrID)order_executionUser")
FROM
OPERATIVE_REPORT
GROUP BY
ltrim(OPERATIVE_REPORT."orderText",11),
OPERATIVE_REPORT."resolID"
where orderText has clob datatype. And the reason is GROUP BY. GROUP BY deny CLOB usage. -
Oracle Object Data Type and EJB
Hi, All:
Has anyone implemented a project with Oracle user-defined data type (Object
Data Type) together
with EJB? That is, using ORDBMS (Object Relational Database) together with
EJB. I am thinking to use ORDBMS together with EJB. Any information, samples
and references to this direction is appreciated.
Thanks,
John Wen
RM2M, LLC
[email protected]I''ve got a solution! I've had sql in my query
SELECT
ltrim(OPERATIVE_REPORT."orderText",11),
OPERATIVE_REPORT."resolID",
COUNT(OPERATIVE_REPORT."(usrID)order_executionUser")
FROM
OPERATIVE_REPORT
GROUP BY
ltrim(OPERATIVE_REPORT."orderText",11),
OPERATIVE_REPORT."resolID"
where orderText has clob datatype. And the reason is GROUP BY. GROUP BY deny CLOB usage. -
[SOLVED] Value too large for defined data type in Geany over Samba
Some months ago Geany started to output an error whith every attempt to open a file mounted in smbfs/cifs.
The error was:
Value too large for defined data type
Now the error is solved thanks to a french user, Pierre, on Ubuntu's Launchpad:
https://bugs.launchpad.net/ubuntu/+bug/ … comments/5
The solution is to add this options to your smbfs/cifs mount options (in /etc/fstab for example):
,nounix,noserverino
It works on Arch Linux up-to-date (2009-12-02)
I've writed it on the ArchWiki too: http://wiki.archlinux.org/index.php/Sam … leshootingAn update on the original bug. This is the direct link to launchpad bug 455122:
https://bugs.launchpad.net/ubuntu/+sour … bug/455122
Maybe you are looking for
-
Many Delivery Notes / One Invoice
Hi all, We are a business that sends out many truckloads of product, and need to send a separate delivery note with each truck, but we want to send the client only one invoice for this. At the moment the system produces multiple invoices. What is the
-
Unable to install SQL 2012 Enterprise on Windows 8.1 OS
I had installed SQL 2012 Enterprise on my Windows 8.1 and was running successfully. I faced some SSRS & SSIS Authentication issue. So i decided to uninstall SQL and re-install it. On doing so, i am unable to install it. Wizard disappears from this sc
-
Is there a way or setting at instance level by which all character value comparisons can happen in case insensitive manner ( For example "ABC" = "Abc" or = "abc" ) without requiring to use upper or lower functions in every query
-
HR table for employee information
Hi All, Which is the HR table which stores employee information? personal cell number and which salesgroup he related? Message was edited by: Rakesh Ramanath
-
PDF document converting to word incorrectly.
Document converted from pdf to word incorrectly. Help!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Is there a telephone number to contact support to get help?