Mailing List
Home
Forum Home
Oracle List - by freelists.org
Oracle on SUSE Linux - Runing Oracle on SUSE Linux
Oracle database error code ...
www.freelists.org
Subjects
ORA 12540: TNS:internal limit restriction exceeded
ORA 12838 please : Is possible to append two times to the same table befo
ORA 12838 please : Is possible to append two times to the same table before
ora 04031
ora 12500 on windows
ORA 32004: obsolete and/or deprecated parameter(s) specified
ORA 01925: maximum of 30 enabled roles exceeded
ORA 01925: maximum of 30 enabled roles exceeded
ora 12500 on windows
ORA 01650, one idea
ORA 01650
ORA 4030
ORA 12838 please : Is possible to append two times to thesametable before do
ORA 12838 please : Is possible to append two times to thesame table before d
ORA 01536
ORA 03113 end of file on communication channel
ORA 32004: obsolete and/or deprecated parameter(s) specified
ORA 00600:
ORA 00020: maximum number of processes (%s) exceeded
ORA 01925: maximum of 30 enabled roles exceeded
ORA 3113 while creating a cluster database 9201 RAC on Linux with OCFS
ora 12500 on windows
ora 12500 on windows
ora 12500 on windows
ORA 01650, one idea
ora 12500 on windows
ora 12500 on windows
ora 12500 on windows
ORA 2000 Error Using DBMS STATS GATHER SCHEMA STATS
ORA 01650, one idea
ORA 01650, one idea
ORA 01650, one idea
ORA 01650
ORA 01650
ORA 01031
ORA 4030
ORA 4030
ORA 06502: PL/SQL: numeric or value error: Bulk Bind: Truncated Bind
ORA 01722 invalid number
 
-none-

-none-

2007-09-03       - By Anju Bala

 Back
hi list,

I have a strange but interesting problem. I have three tables with below
structure , I need to generate a text file using a PL/SQL block on the basis
of below criteria:

Table1 structure
****************
dealerid number;name varchar2(100);age number(3);sex char(1);

table2 structure
*******************
feed_id number(10);feed_name varchar(20);feed_format clob;

table3 structure
******************
feed_id number(10);column_name varchar2(100); -- to store the column name of
table1
column_position number(2); -- to store at what position column of table1
should be written
application_id number(4); -- to store what application it is

scenario1
************

i have to generate a text file from PL/SQL block wherein table1 column data
should be written based on the position mentioned in table3. for example if
dealerid is in 3 position,name is in 1 and age is in 2 position then my text
file should contain data something like :

name,age,position

Scenario2
************
if table3 doesnt contain any record for any column of table1 then that
column should not be written.


I know it can only be done using UTL_FILE package but dont know how to
achieve it? I would really be obliged if anyone can provide with a sample
block to achive this to me.

Please

<div>hi list,</div>
<div>&nbsp;</div>
<div>I have a strange but interesting problem. I have three tables with below
structure , I need to generate a text file using a PL/SQL block on the basis of
below criteria:</div>
<div>&nbsp;</div>
<div>Table1 structure</div>
<div>****************</div>
<div>dealerid number;name varchar2(100);age number(3);sex char(1);</div>
<div>&nbsp;</div>
<div>table2 structure</div>
<div>*******************</div>
<div>feed_id number(10);feed_name varchar(20);feed_format clob;</div>
<div>&nbsp;</div>
<div>table3 structure</div>
<div>******************</div>
<div>feed_id number(10);column_name varchar2(100); -- to store the column name
of table1</div>
<div>column_position number(2); -- to store at what position column of table1
should be written</div>
<div>application_id number(4); -- to store what application it is </div>
<div>&nbsp;</div>
<div>scenario1</div>
<div>************</div>
<div>&nbsp;</div>
<div>i have to generate a text file from PL/SQL block wherein table1 column
data should be written based on the position mentioned in table3. for example
if dealerid is in 3 position,name is in 1 and age is in 2 position then my text
file should contain data something like :
</div>
<div>&nbsp;</div>
<div>name,age,position</div>
<div>&nbsp;</div>
<div>Scenario2</div>
<div>************</div>
<div>if table3 doesnt contain any record for any column of table1 then that
column should not be written.</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>I know it can only be done using UTL_FILE package but dont know how to
achieve it? I would really be obliged if anyone can provide with a sample block
to achive this to me. </div>
<div>&nbsp;</div>
<div>Please </div>