SQL LOADER. Numeric values loaded as Varchar2 characters
Dear all,
please I need your help in this little problem . I am loading using SQL Loader a data file where a field X has a numeric value, and in the Control file it is defined as numeric value as well in the database table but the strange thing is that its values are loaded with the character "E15" at the end of each value.
The data files are extacted from AS400 , cobol system and loaded using SQL LOADER in he Oracle database 10g.
What could be the reason?
I appreciate your help very much , regards
We can not guess as to what you data looks like nor can we guess as to what your control file indicates.
Post sufficient information for someone to help you.
PS: 10g is not a database version ... post the operating system and version information too:
SELECT * FROM v$version;
Similar Messages
-
Validate Numeric values in a varchar2 column
Hi All,
I am looking for some advise on the following approach.
My Problem:
I have a table test1( age varchar2(3) );
I have another table test2( Nage number );
I am trying to write a procedure which selects records from test1
validate that age columns has only numeric data and then insert it into test2.
FYI age being varchar2 in test1 can have data as
11a ,111 , 222,wed,thu, th5 etc.
I want to be able to reject record which has any characters
(11a,wed,thu,th5 ) in this case.
I have worked in Visual basic and there is afunction called IsNumber to do this Job? Is there any Oracle funtion?
Also ,
One way of doing it is using to_number function ( or any number fns like max )
which would fail and I will capture that in exception section as shown below.
Declare
a number;
begin
-- This assignment fails and raises exception --
a:= to_number('11a',999);
If ok do my processing
EXception
when others then
-- reject record
end;
ThanksJaved,
I just answered the same problem with a different problem heading posted by you.
Please do post the problem only once. Forum gets clogged up by repeating the question.
Regards,
SriDHAR -
Pl/sql or numeric value error
Hi
I'm trying to append CLOB to CLOB (assuming both are not null and lenght is less than the max allowed) and getting the error, Why is that error coming, the length cobined is only 50k.
PK_UTILITIES.sp_get_recs(site_id_i, entity_id_i, false, v_clob_str);
v_len := DBMS_LOB.getlength(v_clob_str);
IF (NVL(v_len,0) > 0 ) THEN
DBMS_OUTPUT.PUT_LINE('Length: '||v_len);
DBMS_LOB.WRITEAPPEND(XML_o,length(v_clob_str),v_clob_str);
END IF;
Thanks in advance
MurthyWe are using the same DBMS_LOB.appendAs I said above, you must do a DBMS_LOB.CreateTemporary to create and populate a LOB correctly.
SQL> declare
2 lob CLOB ;
3 begin
4 for idx in 1 .. 100
5 loop
6 dbms_lob.writeappend(lob, 4000, RPAD('*', 4000, '*')) ;
7 end loop ;
8 dbms_output.put_line(dbms_lob.getlength(lob)) ;
9 end ;
10 /
declare
ERROR at line 1:
ORA-06502: PL/SQL: numeric or value error: invalid LOB locator specified: ORA-22275
ORA-06512: at "SYS.DBMS_LOB", line 789
ORA-06512: at line 6
SQL> declare
2 lob CLOB ;
3 begin
4 lob := NULL ;
5 for idx in 1 .. 100
6 loop
7 dbms_lob.writeappend(lob, 4000, RPAD('*', 4000, '*')) ;
8 end loop ;
9 dbms_output.put_line(dbms_lob.getlength(lob)) ;
10 end ;
11 /
declare
ERROR at line 1:
ORA-06502: PL/SQL: numeric or value error: invalid LOB locator specified: ORA-22275
ORA-06512: at "SYS.DBMS_LOB", line 789
ORA-06512: at line 7
SQL> declare
2 lob CLOB ;
3 begin
4 dbms_lob.createtemporary(lob, TRUE) ;
5 for idx in 1 .. 100
6 loop
7 dbms_lob.writeappend(lob, 4000, RPAD('*', 4000, '*')) ;
8 end loop ;
9 dbms_output.put_line(dbms_lob.getlength(lob)) ;
10 dbms_lob.freetemporary(lob) ;
11 end ;
12 /
400000
PL/SQL procedure successfully completed.
SQL> -
Hello,
is ist possible to check if a column/row contains a numeric value?
Type= varchar2(30)
thanks
PhilIn a case of formating number value...this function will work (look for formating type...and modify to your need):
FUNCTION is_number_fmt (
char_in VARCHAR2
) RETURN BOOLEAN
IS
n NUMBER;
BEGIN
IF LENGTH (char_in) > 0 THEN
n := TO_NUMBER(char_in,'999G999G999G999G990D00',' NLS_NUMERIC_CHARACTERS = '',.''');
RETURN TRUE;
ELSE
RETURN FALSE;
END IF;
EXCEPTION
WHEN OTHERS THEN
RETURN FALSE;
END is_number_fmt;Checking code:
begin
if is_number_fmt('1.234,98') THEN
dbms_output.put_line ('OK');
ELSE
dbms_output.put_line ('BAD');
END IF;
END;I was working on several migration projects and it is not that easy to check numbers... -
How do I get my XML numeric values to show up when loaded into flash?
Hi there,
I've created an AS2 3D carousel It loads text values in the "content" section of the code below - including numbers and special characters into the .swf but...
What I can't figure out, is how to get it so that the "Tooltip" loads the text into the movieclip, but can also have numeric and special characters in it.
For example, I need the title of one of the icons on this carousel to be "3D Images," but only the "D Images" shows up from the XML text for the tooltip. The content when a user clicks on the icon can include numbers, just not the titles for some reason.
http://iongeo.com/collaboration_test_dev/video_arctic_imaging.html
I think it has something to do with the way that my text is loaded from the xml document specifically for the tooltip and tipText for the movie clip. Can numeric values be loaded into a movie clip in AS2? PLEASE HELP!
import mx.utils.Delegate;
import mx.transitions.Tween;
import mx.transitions.easing.*;
var numOfItems:Number;
var radiusX:Number = 300;
var radiusY:Number = 75;
var centerX:Number = Stage.width / 2;
var centerY:Number = Stage.height / 2;
var speed:Number = 0.05;
var perspective:Number = 130;
var home:MovieClip = this;
theText._alpha = 0;
theHeader._alpha = 0;
var tooltip:MovieClip = this.attachMovie("tooltip","tooltip",10000);
tooltip._alpha = 0;
var xml:XML = new XML();
xml.ignoreWhite = true;
xml.onLoad = function()
var nodes = this.firstChild.childNodes;
numOfItems = nodes.length;
for(var i=0;i<numOfItems;i++)
var t = home.attachMovie("item","item"+i,i+1);
t.angle = i * ((Math.PI*2)/numOfItems);
t.onEnterFrame = mover;
t.toolText = nodes[i].attributes.tooltip;
t.content = nodes[i].attributes.content;
t.header = nodes[i].attributes.header;
t.icon.inner.loadMovie(nodes[i].attributes.image);
t.r.inner.loadMovie(nodes[i].attributes.image);
t.icon.onRollOver = over;
t.icon.onRollOut = out;
t.icon.onRelease = released;
function over()
//BONUS Section
home.tooltip.tipText.text = this._parent.toolText;
home.tooltip._x = this._parent._x;
home.tooltip._y = this._parent._y - this._parent._height/2;
home.tooltip.onEnterFrame = Delegate.create(this,moveTip);
home.tooltip._alpha = 100;
function out()
delete home.tooltip.onEnterFrame;
home.tooltip._alpha = 0;
function released()
//BONUS Section
home.tooltip._alpha = 100;
for(var i=0;i<numOfItems;i++)
var t:MovieClip = home["item"+i];
t.xPos = t._x;
t.yPos = t._y;
t.theScale = t._xscale;
delete t.icon.onRollOver;
delete t.icon.onRollOut;
delete t.icon.onRelease;
delete t.onEnterFrame;
if(t != this._parent)
var tw:Tween = new Tween(t,"_xscale",Strong.easeOut,t._xscale,0,1,true);
var tw2:Tween = new Tween(t,"_yscale",Strong.easeOut,t._yscale,0,1,true);
var tw3:Tween = new Tween(t,"_alpha",Strong.easeOut,100,0,1,true);
else
var tw:Tween = new Tween(t,"_xscale",Strong.easeOut,t._xscale,100,1,true);
var tw2:Tween = new Tween(t,"_yscale",Strong.easeOut,t._yscale,100,1,true);
var tw3:Tween = new Tween(t,"_x",Strong.easeOut,t._x,150,1,true);
var tw4:Tween = new Tween(t,"_y",Strong.easeOut,t._y,250,1,true);
var tw5:Tween = new Tween(theText,"_alpha",Strong.easeOut,0,100,1,true);
var tw5:Tween = new Tween(theHeader,"_alpha",Strong.easeOut,0,100,1,true);
theText.text = t.content;
theHeader.header = t.header;
var s:Object = this;
tw.onMotionStopped = function()
s.onRelease = unReleased;
function unReleased()
//BONUS Section
var sou:Sound = new Sound();
sou.attachSound("sdown");
sou.start();
delete this.onRelease;
var tw:Tween = new Tween(theText,"_alpha",Strong.easeOut,100,0,0.5,true);
var tw:Tween = new Tween(theHeader,"_alpha",Strong.easeOut,100,0,0.5,true);
for(var i=0;i<numOfItems;i++)
var t:MovieClip = home["item"+i];
if(t != this._parent)
var tw:Tween = new Tween(t,"_xscale",Strong.easeOut,0,t.theScale,1,true);
var tw2:Tween = new Tween(t,"_yscale",Strong.easeOut,0,t.theScale,1,true);
var tw3:Tween = new Tween(t,"_alpha",Strong.easeOut,0,100,1,true);
else
var tw:Tween = new Tween(t,"_xscale",Strong.easeOut,100,t.theScale,1,true);
var tw2:Tween = new Tween(t,"_yscale",Strong.easeOut,100,t.theScale,1,true);
var tw3:Tween = new Tween(t,"_x",Strong.easeOut,t._x,t.xPos,1,true);
var tw4:Tween = new Tween(t,"_y",Strong.easeOut,t._y,t.yPos,1,true);
tw.onMotionStopped = function()
for(var i=0;i<numOfItems;i++)
var t:MovieClip = home["item"+i];
t.icon.onRollOver = Delegate.create(t.icon,over);
t.icon.onRollOut = Delegate.create(t.icon,out);
t.icon.onRelease = Delegate.create(t.icon,released);
t.onEnterFrame = mover;
function moveTip()
home.tooltip._x = this._parent._x;
home.tooltip._y = this._parent._y - this._parent._height/2;
xml.load("icons.xml");
function mover()
this._x = Math.cos(this.angle) * radiusX + centerX;
this._y = Math.sin(this.angle) * radiusY + centerY;
var s = (this._y - perspective) /(centerY+radiusY-perspective);
this._xscale = this._yscale = s*100;
this.angle += this._parent.speed;
this.swapDepths(Math.round(this._xscale) + 100);
this.onMouseMove = function()
speed = (this._xmouse-centerX)/8000;Kglad, you are my HERO!
Thanks so much for your reply, I did not know about the embed options within flash...
Mike -
How to load decimal values into a file using bcp in SQL Server 2000?
Hi everyone,
I'm trying to load data from a database table to a text file using bcp on SQL Server 2000. When I'm loading the decimal values, the values before the decimal are not being loaded into the file. How could I load the values before decimals?
Here are the DDLs and DMLs of what I'm trying to run:
CREATE TABLE [dbo].[Product_Sales](
[Year_of_Sale] [smallint] NOT NULL,
[Product_Type] [varchar](25) NOT NULL,
[Product_Group] [varchar](25) NOT NULL,
[Category_Type] [varchar](25) NOT NULL,
[Category_Group] [varchar](10) NOT NULL,
[Product_Count] [bigint] NOT NULL,
[Product_Amount] [decimal](19, 2) NOT NULL,
[Category_Count] [bigint] NOT NULL,
[Category_Amount] [decimal](19, 2) NOT NULL,
CONSTRAINT [PK_Product_Sales] PRIMARY KEY CLUSTERED
[Year_of_Sale] ASC,
[Product_Type] ASC,
[Product_Group] ASC,
[Category_Type] ASC,
[Category_Group] ASC
) ON [PRIMARY]
) ON [PRIMARY]
INSERT INTO [Yearly_Sales].[dbo].[Product_Sales]
VALUES(2010, 'Online', 'Web', 'Cameras', 'Electronics', 547, 0.00, 0, 0.00)
EXEC [master].[dbo].[xp_cmdshell] 'bcp "SELECT * FROM [Yearly_Sales].[dbo].[Product_Sales]" queryout D:\Yearly_Sales\Product_Sales.dat -c -T -S'
And the output I see in the file is:
2010 Online Web Cameras Electronics 547 .00 0 .00
The values before decimals are being truncated.
Thanks,
Bangaaram
Known is a DROP, Unknown is an OCEAN.You can modify the decimal column(s) in the table to varchar type before export. But it does not look good.
alter table [dbo].[Product_Sales]
Alter column [Product_Amount] varchar(20)
alter table [dbo].[Product_Sales]
Alter column [Category_Amount] varchar(20)
Does that make any sense?
Known is a DROP, Unknown is an OCEAN.
Basically you modify the decimal column to a varchar type before you run the bcp command for export. You can modify your source table or you can modify them on the fly. It is just a workaround.
Modifying the source wouldn't be a good idea. Never do that if you can't get your desired output.
Known is a DROP, Unknown is an OCEAN. -
SQL Loader- Default value is not inserted in table by direct method
Hi All,
I am trying to load data from a file to a table by SQL Loader. There is a particular date column which I am not loading from the File but have used a Default constraint to put SYSDATE in it. When I am using direct method load then it is not inserting nothin in this column but in conventional method it is inserting SYSDATE. But I want to do the load by direct method. Can anybody provide me a solution as how to load default value in direct method?
Thanks & regards.
SudiptaFor this special case, you can specify:
column_name SYSDATE
in your SQL*Loader control file. -
SQL Interface - Error in Loading the data from SQL data source
Hello,
We have been using SQl data source for loading the dimensions and the data for so many years. Even using Essbase 11.1.1.0, it's been quite a while (more than one year). For the past few days,we are getting the below error when trying to load the data.
[Mon Jan 10 11:02:56 2011]Local/{App Name}/{DB Name}/{User Id}/Info(1021013)
ODBC Layer Error: [S1000] ==> [[DataDirect][ODBC DB2 Wire Protocol driver][UDB DB2 for Windows, UNIX, and Linux]CURSOR IDENTIFIED IN FETCH OR CLOSE STATEMENT
IS NOT OPEN (DIAG INFO: ).]
[Mon Jan 10 11:02:56 2011]Local/{App Name}/{DB Name}/{User Id}/Info(1021014)
ODBC Layer Error: Native Error code [4294966795]
[Mon Jan 10 11:02:56 2011]Local/{App Name}/{DB Name}/{User Id}/Error(1021001)
Failed to Establish Connection With SQL Database Server. See log for more information
[Mon Jan 10 11:02:56 2011]Local/{App Name}/{DB Name}/{User Id}/Error(1003050)
Data Load Transaction Aborted With Error [7]
[Mon Jan 10 11:02:56 2011]Local/{App Name}///Info(1013214)
Clear Active on User [Olapadm] Instance [1]
Interestingly, after the job fails thru our batch scheduler environment, when I run the same script that's being used in the batch scheduler, the job completes successfully.
Also, this is first time, I saw this kind of error message.
Appreciate any help or any suggestions to find a resolution. Thanks,Hii Priya,
The reasons may be the file is open, the format/flatfile structure is not correct, the mapping/transfer structure may not be correct, presence of invalid characters/data inconsistency in the file, etc.
Check if the flatfile in .CSV format.
You have to save it in .CSV format for the flatfile loading to work.
Also check the connection issues between source system and BW or sometimes may be due to inactive update rules.
Refer
error 1
Find out the actual reason and let us know.
Hope this helps.
Regards,
Raghu. -
PL/SQL - column value is updated as 0 instead of numeric value
Declare
v_cnt varchar2(20);
v_cnd varchar2(20);
v_total varchar2(20);
begin
select count(emp_id) into v_cnt from emp1;
select count(emp_id) into v_cnd from emp2;
v_total:=v_cnt+v_cnd;
dbms_output.put_line('before');
dbms_output.put_line(v_total);
update emp3 set total_emp=v_total where dept_no=40;
commit;
dbms_output.put_line('after');
dbms_output.put_line(v_total);
end;
In the above program, value for the column total_emp is getting updated as 0 instead of numeric value. However, when I use dbms_output statement to print the value, for both the cases, before and after , I'm getting the numeric value for the variable v_total.
v_total value is not getting updated to column value in table.
table column definition for total_emp is varchar2(20).
Also, I tried to hard code value for total_emp column in the above statement and it worked.
So, the problem is variable value when used in the update statement it's not getting updated to column.
Please help me.Post a reproducable test case for us...
SQL> create table emp1 as select * from emp;
Table created.
SQL> create table emp2 as select * from emp;
Table created.
SQL> create table emp3 as select * from emp;
Table created.
SQL> alter table emp3 add (total_emp varchar2(20));
Table altered.
SQL> ed
Wrote file afiedt.buf
1 Declare
2 v_cnt varchar2(20);
3 v_cnd varchar2(20);
4 v_total varchar2(20);
5 begin
6 select count(empno) into v_cnt from emp1;
7 select count(empno) into v_cnd from emp2;
8 v_total:=v_cnt+v_cnd;
9 dbms_output.put_line('before');
10 dbms_output.put_line(v_total);
11 update emp3 set total_emp=v_total where deptno=10;
12 commit;
13 dbms_output.put_line('after');
14 dbms_output.put_line(v_total);
15* end;
SQL> /
before
28
after
28
PL/SQL procedure successfully completed.
SQL> select * from emp3;
EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO TOTAL_EMP
7369 SMITH CLERK 7902 17-DEC-1980 00:00:00 800 20
7499 ALLEN SALESMAN 7698 20-FEB-1981 00:00:00 1600 300 30
7521 WARD SALESMAN 7698 22-FEB-1981 00:00:00 1250 500 30
7566 JONES MANAGER 7839 02-APR-1981 00:00:00 2975 20
7654 MARTIN SALESMAN 7698 28-SEP-1981 00:00:00 1250 1400 30
7698 BLAKE MANAGER 7839 01-MAY-1981 00:00:00 2850 30
7782 CLARK MANAGER 7839 09-JUN-1981 00:00:00 2450 10 28
7788 SCOTT ANALYST 7566 19-APR-1987 00:00:00 3000 20
7839 KING PRESIDENT 17-NOV-1981 00:00:00 5000 10 28
7844 TURNER SALESMAN 7698 08-SEP-1981 00:00:00 1500 0 30
7876 ADAMS CLERK 7788 23-MAY-1987 00:00:00 1100 20
7900 JAMES CLERK 7698 03-DEC-1981 00:00:00 950 30
7902 FORD ANALYST 7566 03-DEC-1981 00:00:00 3000 20
7934 MILLER CLERK 7782 23-JAN-1982 00:00:00 1300 10 28
14 rows selected.Works for me.. even with the incorrect datatypes.
You demonstrate exactly what you are doing. -
Failed to load numeric attribute
Good morning. First excuse me for my english...
In our database we need a numeric attribute, such Price List. When I load data in my ASO database with Integration Services (from a SQL Server 2005 source) I see the following message:
"Failed to add attribute member (.20); Invalid member name (.20)"
But in my data source I have a decimal price with comma separation (0,20 and not 0.20). Furthermore EIS loads numeric attribute such as 9,90, but don't associate it with the "Product" base dimension. It's a wrong ODBC setting? We have an italian localization of SQL Server.
We have Essbase and EIS 9.3.1.
Thank all...@PetriAsi,
I think you maybe onto something there. I noticed a similar (if not the same thing).
@James,
Have Microsoft suggested that this is a bug that was introduced, or are we just unlucky?
I had to modify your script slightly to get it to work in our environment. I changed the following line...
$schemaxmldata.Field.SetAttribute("SourceID", $list.ID)
...to...
$schemaxmldata.Field.SetAttribute("SourceID", ("{" + $list.ID + "}"))
Lee
Lee,
I noticed that the solution as-is worked for all columns except 'Title' - but that seemed enough to get the libraries functional again.
Microsoft didn't really state what the cause of this problem is, and the guys in Microsoft China went on Spring Festival holiday - and I have not heard back from them yet.
Cheers,
J.
James Boman - http://www.boman.biz Software Consultant for IPMO - http://www.ipmo.com.au -
PL/SQL NUMERIC VALUE ERROR
Hi ,
We have following code and sending the data through attachnmet its giving the pl/sql numeric value error.
Please correct me.
__Code Details:::__
CREATE OR REPLACE PROCEDURE APPS.print_reports
IS
wfile_handle UTL_FILE.file_type;
lv_file VARCHAR2 (100);
lv_date VARCHAR2 (20);
mail_conn UTL_SMTP.connection;
lv_rep_headers VARCHAR2 (32000);
p_o_srv_result xxcss_prf_report_pkg.ref_cur_srv_prog;
lv_str_type XXCSS_PRF_STRING;
lv_line VARCHAR2 (32767);
lv_send_to VARCHAR2 (200);
lv_host_name VARCHAR2 (200) := 'outbound.cisco.com';
l_vtab CHAR := CHR (9);
lv_from VARCHAR2 (200) := '[email protected]';
lv_att_file_name VARCHAR2 (200);
lv_path VARCHAR2 (200);
p_request_type VARCHAR2 (1) := 'E';
p_request_id NUMBER;
errbuf VARCHAR2 (2000);
retcode NUMBER;
crlf VARCHAR2 (2) := CHR (13) || CHR (10);
lv_line_data Clob;
lv_clob clob;
BEGIN
BEGIN
SELECT VALUE
INTO lv_path
FROM v$parameter
WHERE NAME = 'utl_file_dir';
EXCEPTION
WHEN OTHERS
THEN
lv_path := '\tmp';
END;
lv_rep_headers :=
'REGION'
|| CHR (9)
|| 'COUNTRY'
|| CHR (9)
|| 'CUSTOMER NAME'
|| CHR (9)
|| 'ERP CUSTOMER NUMBER'
|| CHR (9)
|| 'PROFILE ID'
|| CHR (9);
FOR i IN ( SELECT DISTINCT srv_program_id srv_prgm
FROM xxcss_prf_cust_srv_programs
ORDER BY srv_program_id ASC)
LOOP
lv_rep_headers := lv_rep_headers ||i.srv_prgm || CHR (9);
END LOOP;
lv_rep_headers := lv_rep_headers || CHR (13);
BEGIN
XXCSS_PRF_REPORT_PKG.offline_daemon (p_request_id,
p_request_type,
p_o_srv_result,
errbuf,
retcode);
EXCEPTION
WHEN OTHERS
THEN
DBMS_OUTPUT.PUT_LINE ('Error in Offline');
END;
lv_att_file_name := 'Eligibility_reports'||p_request_id||'.xls';
-- DBMS_OUTPUT.PUT_LINE (lv_rep_headers);
wfile_handle := UTL_FILE.fopen (lv_path, lv_att_file_name, 'W');
UTL_FILE.put_line (wfile_handle, lv_rep_headers);
BEGIN
LOOP
FETCH p_o_srv_result INTO lv_str_type;
EXIT WHEN p_o_srv_result%NOTFOUND;
lv_line := NULL;
FOR i IN 1 .. lv_str_type.COUNT
LOOP
lv_line := lv_line || lv_str_type (i) || CHR (9);
END LOOP;
lv_line := lv_line || CHR (13);
UTL_FILE.put_line (wfile_handle, lv_line);
END LOOP;
lv_str_type.DELETE;
END;
UTL_FILE.fclose (wfile_handle);
BEGIN
wfile_handle := UTL_FILE.FOPEN (lv_path, lv_att_file_name, 'R');
-- DBMS_OUTPUT.PUT_LINE ('inside file');
LOOP
UTL_FILE.GET_LINE (wfile_handle, lv_line_data,32767);
-- DBMS_OUTPUT.PUT_LINE (lv_line_data);
lv_clob := lv_clob || lv_line_data;
END LOOP;
UTL_FILE.FCLOSE (wfile_handle);
EXCEPTION
WHEN OTHERS
THEN
errbuf := sqlerrm;
UTL_FILE.FCLOSE (wfile_handle); -- close file
DBMS_OUTPUT.PUT_LINE ('Exception'||errbuf);
NULL;
END;
DBMS_OUTPUT.PUT_LINE ('afterdata');
--DBMS_OUTPUT.PUT_LINE (lv_line_data);
SELECT email_id
INTO lv_send_to
FROM xxcss_prf_offline_report_tb
WHERE request_id = p_request_id AND report_type = p_request_type;
mail_conn := UTL_SMTP.open_connection (lv_host_name, 25);
UTL_SMTP.Helo (mail_conn, lv_host_name);
UTL_SMTP.Mail (mail_conn, 'sangrdas');
UTL_SMTP.Rcpt (mail_conn, lv_send_to);
UTL_SMTP.OPEN_Data(mail_conn) ;
DBMS_OUTPUT.PUT_LINE ('Sending Data');
UTL_SMTP.write_Data (
Mail_Conn,
'Date: '
|| TO_CHAR (SYSDATE, 'Dy, DD Mon YYYY hh24:mi:ss')
|| crlf
|| 'From: '
|| lv_from
|| crlf
|| 'Subject: ELIGIILITY Report_'
|| p_request_id
|| crlf
|| 'To: '
|| lv_send_to
|| crlf
|| 'MIME-Version: 1.0'
|| crlf
|| -- Use MIME mail standard
'Content-Type: multipart/mixed;'
|| crlf
|| ' boundary="-----SECBOUND"'
|| crlf
|| '-------SECBOUND'
|| crlf
|| 'Content-Type: text/plain;'
|| crlf
|| 'Content-Transfer_Encoding: 7bit'
|| crlf
|| 'some message text'
|| crlf
|| -- Message body
'more message text'
|| crlf
|| '-------SECBOUND'
|| crlf
|| 'Content-Type: text/plain;'
|| crlf
|| ' name="'|| lv_att_file_name||'"'
|| crlf
|| 'Content-Transfer_Encoding: 8bit'
|| crlf
|| 'Content-Disposition: attachment;'
|| crlf
|| ' filename="'
|| lv_att_file_name
|| '"'
||crlf
||crlf
||lv_clob
|| crlf
||crlf
||crlf
|| '-------SECBOUND');
UTL_SMTP.CLOSE_Data(mail_conn) ;
UTL_SMTP.quit (mail_conn);
DBMS_OUTPUT.PUT_LINE ('After Mail');
EXCEPTION
WHEN OTHERS THEN
errbuf := sqlerrm;
DBMS_OUTPUT.PUT_LINE ('ERROR Sending Data'||errbuf);
ROLLBACK;
END;
/Yet again, opening a new thread for an existing issue...
Need help in UTL file
Same old, same old...
need a report code
need to create the header dynamically for a report
Would have thought you'd get the idea of posting on the forums by now. -
Error loading alphanumeric values
Hi,
I have a data file that has fields with alphanumeric values - alpha and number in a field. Some fields have just alpha values only, and some have both alpha and numeric values. When I tried to load it, it only took the numeric values for those fields with alpha and number, but nothing is load (blank) when the fields have only alpha. I defined the IO as NUMC. There is no conversion specified at the InfoSource.
When I did the Preview from the External tab, I see the alpha fields with '0000' (zeros).
Would someone clarify what is BW doing with this data case?
Thanks,
RTHello Rob,
How r u ?
If u have NUMC as the Datatype it will take only Numeric Values. We can use NUMC for PINCODE, PHONE NUMBERS, etc. i.e. Numeric will not be used for calculation. If u want to load both Alpha & Numeric Values u have to maintain the DataType as CHAR.
If u have the Values with only Alpha or Numbers or both alpha and numeric then they will be loaded.
Also, u may have to maintain the entries in RSKC.
Best Regards....
Sankar Kumar
+91 98403 47141 -
Error: Failed to load CustomDatum value at index 9..
Friends, I'm getting below error. Could anyone help me out?
jdeveloper verison is 10.1.3.3.0.3
oracle.apps.fnd.framework.OAException: oracle.jbo.AttributeLoadException: JBO-27021: Failed to load CustomDatum value at index 9 with java object of type oracle.jbo.domain.RowID due to java.sql.SQLException.
at oracle.apps.fnd.framework.OAException.wrapperException(Unknown Source)
at oracle.apps.fnd.framework.OAException.wrapperException(Unknown Source)
at oracle.apps.fnd.framework.OAException.wrapperInvocationTargetException(Unknown Source)
at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(Unknown Source)
at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(Unknown Source)
at oracle.apps.fnd.framework.server.OAApplicationModuleImpl.invokeMethod(Unknown Source)
at qewc.oracle.apps.per.selfservice.xxdemo.webui.CreateDetailsCO.processRequest(CreateDetailsCO.java:45)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.beans.layout.OAHeaderBean.processRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.beans.OABodyBean.processRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
at OA.jspService(_OA.java:71)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:595)
## Detail 0 ##
java.sql.SQLException: Invalid column index
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:138)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:175)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:240)
at oracle.jdbc.driver.OracleResultSetImpl.getBytes(OracleResultSetImpl.java:642)
at oracle.jbo.domain.RowID$1facClass.createDatum(RowID.java:74)
at oracle.jbo.server.OracleSQLBuilderImpl.doLoadFromResultSet(OracleSQLBuilderImpl.java:1194)
at oracle.jbo.server.AttributeDefImpl.loadFromResultSet(AttributeDefImpl.java:1633)
at oracle.jbo.server.ViewRowImpl.populate(ViewRowImpl.java:2221)
at oracle.jbo.server.ViewDefImpl.createInstanceFromResultSet(ViewDefImpl.java:1066)
at oracle.jbo.server.ViewObjectImpl.createRowFromResultSet(ViewObjectImpl.java:2946)
at oracle.jbo.server.ViewObjectImpl.createInstanceFromResultSet(ViewObjectImpl.java:2839)
at oracle.jbo.server.QueryCollection.populateRow(QueryCollection.java:2252)
at oracle.jbo.server.QueryCollection.fetch(QueryCollection.java:2127)
at oracle.jbo.server.QueryCollection.get(QueryCollection.java:1501)
at oracle.jbo.server.ViewRowSetImpl.getRow(ViewRowSetImpl.java:3650)
at oracle.jbo.server.ViewRowSetIteratorImpl.doFetch(ViewRowSetIteratorImpl.java:2818)
at oracle.jbo.server.ViewRowSetIteratorImpl.ensureRefreshed(ViewRowSetIteratorImpl.java:2674)
at oracle.jbo.server.ViewRowSetIteratorImpl.refresh(ViewRowSetIteratorImpl.java:2915)
at oracle.jbo.server.ViewRowSetImpl.notifyRefresh(ViewRowSetImpl.java:2085)
at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:773)
at oracle.jbo.server.ViewRowSetImpl.executeQueryForMasters(ViewRowSetImpl.java:891)
at oracle.jbo.server.ViewRowSetImpl.executeQueryForMode(ViewRowSetImpl.java:805)
at oracle.jbo.server.ViewRowSetImpl.executeQuery(ViewRowSetImpl.java:799)
at oracle.jbo.server.ViewObjectImpl.executeQuery(ViewObjectImpl.java:3575)
at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQuery(Unknown Source)
at qewc.oracle.apps.per.selfservice.xxdemo.server.MasterAMImpl.createDetailsRecord(MasterAMImpl.java:37)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(Unknown Source)
at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(Unknown Source)
at oracle.apps.fnd.framework.server.OAApplicationModuleImpl.invokeMethod(Unknown Source)
at qewc.oracle.apps.per.selfservice.xxdemo.webui.CreateDetailsCO.processRequest(CreateDetailsCO.java:45)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.beans.layout.OAHeaderBean.processRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.beans.OABodyBean.processRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
at OA.jspService(_OA.java:71)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:595)
java.sql.SQLException: Invalid column index
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:138)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:175)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:240)
at oracle.jdbc.driver.OracleResultSetImpl.getBytes(OracleResultSetImpl.java:642)
at oracle.jbo.domain.RowID$1facClass.createDatum(RowID.java:74)
at oracle.jbo.server.OracleSQLBuilderImpl.doLoadFromResultSet(OracleSQLBuilderImpl.java:1194)
at oracle.jbo.server.AttributeDefImpl.loadFromResultSet(AttributeDefImpl.java:1633)
at oracle.jbo.server.ViewRowImpl.populate(ViewRowImpl.java:2221)
at oracle.jbo.server.ViewDefImpl.createInstanceFromResultSet(ViewDefImpl.java:1066)
at oracle.jbo.server.ViewObjectImpl.createRowFromResultSet(ViewObjectImpl.java:2946)
at oracle.jbo.server.ViewObjectImpl.createInstanceFromResultSet(ViewObjectImpl.java:2839)
at oracle.jbo.server.QueryCollection.populateRow(QueryCollection.java:2252)
at oracle.jbo.server.QueryCollection.fetch(QueryCollection.java:2127)
at oracle.jbo.server.QueryCollection.get(QueryCollection.java:1501)
at oracle.jbo.server.ViewRowSetImpl.getRow(ViewRowSetImpl.java:3650)
at oracle.jbo.server.ViewRowSetIteratorImpl.doFetch(ViewRowSetIteratorImpl.java:2818)
at oracle.jbo.server.ViewRowSetIteratorImpl.ensureRefreshed(ViewRowSetIteratorImpl.java:2674)
at oracle.jbo.server.ViewRowSetIteratorImpl.refresh(ViewRowSetIteratorImpl.java:2915)
at oracle.jbo.server.ViewRowSetImpl.notifyRefresh(ViewRowSetImpl.java:2085)
at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:773)
at oracle.jbo.server.ViewRowSetImpl.executeQueryForMasters(ViewRowSetImpl.java:891)
at oracle.jbo.server.ViewRowSetImpl.executeQueryForMode(ViewRowSetImpl.java:805)
at oracle.jbo.server.ViewRowSetImpl.executeQuery(ViewRowSetImpl.java:799)
at oracle.jbo.server.ViewObjectImpl.executeQuery(ViewObjectImpl.java:3575)
at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQuery(Unknown Source)
at qewc.oracle.apps.per.selfservice.xxdemo.server.MasterAMImpl.createDetailsRecord(MasterAMImpl.java:37)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(Unknown Source)
at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(Unknown Source)
at oracle.apps.fnd.framework.server.OAApplicationModuleImpl.invokeMethod(Unknown Source)
at qewc.oracle.apps.per.selfservice.xxdemo.webui.CreateDetailsCO.processRequest(CreateDetailsCO.java:45)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.beans.layout.OAHeaderBean.processRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.beans.OABodyBean.processRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
at OA.jspService(_OA.java:71)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:595)I'm passing a value from MasterPG to DetailsPG
CO of DetailsPG has following in processRequest
super.processRequest(pageContext, webBean);
OAApplicationModule am = pageContext.getApplicationModule(webBean);
*if (!pageContext.isFormSubmission()) {*
String srno = pageContext.getParameter("srno");
*Serializable[] params = { srno };*
am.invokeMethod("createDetailsRecord", params);
Below is what I have in AMImpl
*public void createDetailsRecord(String srno){*
OAViewObject vod = (OAViewObject)getDetailsVO1();
*if (!vod.isPreparedForExecution()) {*
vod.executeQuery();
Row row = vod.createRow();
row.setAttribute("DemoId",srno);
vod.insertRow(row);
row.setNewRowState(Row.STATUS_INITIALIZED);
It was working fine, and passing value from MasterPG to DetailsPG -
Sql loader Need to load data with "," only in one filed
Hi,
I need to load data my in one column my data is in CSV format like this
Shahzaib ismail, Imran aziz, Shahmir mehmood, Shahzad khan
i want to upload this data on my table which contain only one column which is name ?
What will be the query for upload data through sql loader
Thanks
Shahzaib ismail
Oracle database Express Edition Developer 6ISince you mention you're using database version XE, I'll assume you're database version is at least 10.2
SQL> select * from v$version;
BANNER
Oracle Database 10g Express Edition Release 10.2.0.1.0 - Productand so you have the power of:
- external tables
http://www.oracle-base.com/articles/9i/ExternalTables9i.php
http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:6611962171229
- regular expressions
http://nuijten.blogspot.com/2009/07/splitting-comma-delimited-string-regexp.html
and you don't want to be using SQL*Loader anymore, never ever.
I simply put your string 'Shahzaib ismail, Imran aziz, Shahmir mehmood, Shahzad khan' in a file called test.csv and told Oracle that file is in my Oracle directory DATA_DIR (that actually points to: c:\data on my 'filesystem' ) and then:
SQL> create table t(name varchar2(155));
Table created.
SQL> -- instead of SQL*Loader use an External Table:
SQL> create table ext_t
2 ( textstring varchar2(4000)
3 )
4 organization external ( type oracle_loader
5 default directory DATA_DIR
6 access parameters (fields terminated by '' )
7 location ('test.csv')
8 );
Table created.
SQL> -- Now you can query your file as if it were a table!
SQL> select * from ext_t;
TEXTSTRING
Shahzaib ismail, Imran aziz, Shahmir mehmood, Shahzad khan
1 row selected.
SQL> -- and use the powers of SQL to do whatever you want (instead of cludging with those dreaded ctl files):
SQL> select regexp_substr (textstring, '[^,]+', 1, rownum) names
2 from ext_t
3 connect by level <= length(regexp_replace(textstring, '[^,]+'))+1;
NAMES
Shahzaib ismail
Imran aziz
Shahmir mehmood
Shahzad khan
4 rows selected.
SQL> -- Voilà, the data is loaded into the table in one single SQL statement:
SQL> insert into t
2 select trim(names)
3 from ( select regexp_substr (textstring, '[^,]+', 1, rownum) names
4 from ext_t
5 connect by level <= length(regexp_replace(textstring, '[^,]+'))+1
6 );
4 rows created.
SQL> --
SQL> select * from t;
NAME
Shahzaib ismail
Imran aziz
Shahmir mehmood
Shahzad khan
4 rows selected.Don't use SQL*Loader, use an External Table. -
Range check for numeric values in varchar2 type column
SQL oracle 10g windows XP
I have a table which has column of type varchar2 e.g
create table osa_gms_mailbox(reg_address varchar2(60),bin_address varchar2(60));
let us insert some sample rows:
insert into osa_gms_mailbox values ('8000','8000');
insert into osa_gms_mailbox values ('9000','9000');
insert into osa_gms_mailbox values ('[email protected]','[email protected]');
If i try to run the query :
select reg_address from (
select reg_address from osa_gms_mailbox
MINUS
select reg_address from osa_gms_mailbox where
regexp_like(reg_address,'^[a-z]+|[A-Z]+$')) temp
where to_number(temp.reg_address) between 1000 and 10000;
or
select reg_address from (
select reg_address from osa_gms_mailbox
MINUS
select reg_address from osa_gms_mailbox where
regexp_like(reg_address,'^[a-z]+|[A-Z]+$'))
where to_number(reg_address) between 1000 and 10000;
it gives ORA-01722: invalid number .
how can i get the numeric comparision done for varchar2 field and exclude the rows which have atleast one alphabet (a-z,A-Z)
ThanksHi
Please check this sample , it may useful to you
/*Creating a Table*/
Create Table CHECKVARCHAR( CheckValue Varchar2(20) );
/* Inserting values in to the column with numbers and Strings */
Insert into CHECKVARCHAR Values ( 1000 );
Insert into CHECKVARCHAR values ( 2000 );
Insert into CHCEKVARCHAR values ( 10000 );
Insert into CHECKVARCHAR values ( 'Abc' );
Insert into CHECKVARCHAR values ( 'zyx' );
/*Here is the Query to avoid Invalid Number */
Select * from
( Select CheckValue
from Checkvarchar
where Ascii( Substr( CheckValue,1,1 ) ) not between 65 and 122 )
where CheckValue between 1000 and 10000;
Maybe you are looking for
-
How to use SET and GET parameter commands ?
Explain these two giving an example?As which is used for what?
-
I am looking to change my language to Mandarin only on Pages. Is that possible? I am a student enrolled in a high level Chinese class. I am not fluent and unable to navigate OSX completely in Mandarin but I would like to take notes in Pages in Mandar
-
I tried SecUpd2012-004.dmg which does not help. If anyone has a solution, much appreciated.
-
Dears Experts, I have the following question / problem. I am creating a credit memo request with reference to a invoice, but in the credit memo request I need to have the quantity in zero because the credit memo is created for incorrect pricing (it i
-
I cant upgrade my Blackberry appworld and when i click on the icon a message appears and says that the password that i entered is invalid but i haven't entered anything. Another thing, I had upgrades for the 2 apps that i dowloaded, i already upgrad