Clob or varchar2 : help needed
Hi all,
I am using varchar2(8000) in my package.my lead wants me make it as a clob. Please advise.
thanks
kt
It depends on what you are storing in your variable.
In PL/SQL a varchar2 variable size can be up to 32K. But in SQL its just 4000 Bytes.
So if you will store value which is less than 32K and you will have the scope just withing PL/SQL you can use a varchar2. But for any thing more than that you must go for CLOB.
Similar Messages
-
How to convert CLOB to varchar2 whose length is more than 4000
Hi ,
I have to retrive the CLOB data into varchar2 and spilt those comma seperated values into rows
but i am getting following error
" ORA-06502: PL/SQL: numeric or value error: character string buffer too small "
the proc i used is like following :
: create table test_clob (grp_id CLOB, id number)
Create or replace proc test_clob(p_id number )
Is
V_clob CLOB;
V_str varchar2(4000);
V_main varchar2(30000);
TYPE t_clob IS REF CURSOR;
cur_clob t_clob;
Begin
Select grp_id
Into v_str
From test_clob
Where id= p_id;
---converting column data in rows as I have to return the cursor as output
V_main:= ' select grp_id from ( WITH t AS
(SELECT REGEXP_SUBSTR(''' || v_str ||
''', ''[^,]+'', 1, LEVEL) txt
FROM DUAL
CONNECT BY LEVEL <=
LENGTH(''' || v_str ||
LENGTH(REPLACE(''' || v_str ||
''', '','')) + 1)
SELECT REGEXP_SUBSTR(trim(txt), ''[^\,]+'', 1, 1) grp_id
FROM t )';
open cur_clob for ' select rtrim(xmlagg(xmlelement(e, grp_id || '','')).extract (''//text()'').getclobval (),'','') grp_id
from ( '|| v_main||' ) ';
loop
fetch cur_clob
into V_clob;
exit when cur_clob %notfound;
end loop;
insert into test_clob
values (p_id, v_clob);
commit;
End;
Please help its very urgent957624 wrote:
Hi ,
I have to retrive the CLOB data into varchar2 and spilt those comma seperated values into rows
but i am getting following error
" ORA-06502: PL/SQL: numeric or value error: character string buffer too small "
the proc i used is like following :
: create table test_clob (grp_id CLOB, id number)
Create or replace proc test_clob(p_id number )
Is
V_clob CLOB;
V_str varchar2(4000);
V_main varchar2(30000);
TYPE t_clob IS REF CURSOR;
cur_clob t_clob;
Begin
Select grp_id
Into v_str
From test_clob
Where id= p_id;
---converting column data in rows as I have to return the cursor as output
V_main:= ' select grp_id from ( WITH t AS
(SELECT REGEXP_SUBSTR(''' || v_str ||
''', ''[^,]+'', 1, LEVEL) txt
FROM DUAL
CONNECT BY LEVEL <=
LENGTH(''' || v_str ||
LENGTH(REPLACE(''' || v_str ||
''', '','')) + 1)
SELECT REGEXP_SUBSTR(trim(txt), ''[^\,]+'', 1, 1) grp_id
FROM t )';
open cur_clob for ' select rtrim(xmlagg(xmlelement(e, grp_id || '','')).extract (''//text()'').getclobval (),'','') grp_id
from ( '|| v_main||' ) ';
loop
fetch cur_clob
into V_clob;
exit when cur_clob %notfound;
end loop;
insert into test_clob
values (p_id, v_clob);
commit;
End;
Please help its very urgentNo, nothing is urgent here and it is very rude to suggest it is, as well as it being a breach of the terms of use for the forums. Urgent issues relate to commercially live systems, and for those you need to raise a support request with Oracle Support. The forums are manned by volunteers with their own jobs to do, so suggesting they drop everything to help you urgently is very rude. Also, other people asking questions would like answers to theirs as soon as possible too, so suggesting your question is more urgent than theirs is also rude to those people. You will find that suggesting your question is urgent will actually prevent people from helping you on the forums as many people will simply choose to ignore you for your rudeness (either that or they'll be rude back)
Please read {message:id=9360002} to learn how to ask a question properly.
Now, in answer to your question...
What is it you are really trying to do?
If you have comma seperated data, why it is being stored like that in a CLOB? That seems like bad design for storing data.
If the data is coming from a file, then you could consider using External Tables (or SQL*Loader) to load the comma seperated data in a structured way.
If you really have data in a clob in comma seperated format, what are you wanting to do with it exactly i.e. what determines where the data should be split?
Your code isn't clear, but it looks like, on the one hand you are splitting comma seperated data out of a string, and on the other hand you're turning it into XML to get a clob of data back.
Please be clear by providing some example data and expected output, along with your database version as explained in the FAQ post I linked to above. -
Hi Experts,
I need your help in solving this .
I am getting compilation errors as:
Warning: Package Body created with compilation errors.
SQL> show errors;
Errors for PACKAGE BODY TABLE_EXAMPLE:
LINE/COL ERROR
18/1 PL/SQL: Statement ignored
18/20 PLS-00306: wrong number or types of arguments in call to '='I will try to explain this as simple as possible .
The data in emp is like this:
EMPNO ENAME JOB SAL
7782 CLARK MANAGER 2450
7839 KING PRESIDENT 5000
7934 MILLER CLERK 1300I need to pass parameters and values as table type as follows:
declare
v_tab TABLE_EXAMPLE.tablet:=TABLE_EXAMPLE.tablet();
begin
v_tab.extend;
v_tab(1).parameter:='ENAME';
v_tab(1).value:= 'PETER';
v_tab(1).parameter:='JOB';
v_tab(1).value:= 'CEO';
TABLE_EXAMPLE.P1(v_tab);
end;
After the package is run the data should look like this :
EMPNO ENAME JOB SAL
7782 PETER CEO 2450
7839 PETER CEO 5000
7934 PETER CEO 1300I have tried hard to create the code but i will highlight where i am stuck :
create or replace package table_example as
type tname is record(parameter emp%rowtype,value emp%rowtype);
type tablet is table of tname;
type emp_table is table of emp%rowtype;
procedure p1(arg in table_example.tablet);
end;
Package created
create or replace package body table_example as
procedure p1(arg in table_example.tablet)as
l_emp_tbl emp_table:=emp_table() ;
cursor c is select * from emp;
k number;
m number;
begin
k:=1;
for i in c loop
l_emp_tbl(k).ename:=i.ename;
l_emp_tbl(k).empno:=i.empno;
l_emp_tbl(k).deptno:=i.deptno;
l_emp_tbl(k).sal:=i.sal;
--------------------i am stuck here : how to assign the values?---------------------------
m:=1;
for j in 1..arg.last loop
if arg(m).parameter= l_emp_tbl(j) then
l_emp_tbl(j):=arg(m).value ;
end if;
end loop;
____________stuck here ___________________
end loop;
exception
when others then
dbms_output.put_line('other errors');
end;
end table_example;
Warning: Package Body created with compilation errors.
SQL> show errors;
Errors for PACKAGE BODY TABLE_EXAMPLE:
LINE/COL ERROR
18/1 PL/SQL: Statement ignored
18/20 PLS-00306: wrong number or types of arguments in call to '='Please help.ThanksHi Tubby,
Version is 10g release 2
SQL> select * from v$version;
BANNER
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bi
PL/SQL Release 10.2.0.3.0 - Production
CORE 10.2.0.3.0 Production
TNS for Linux: Version 10.2.0.3.0 - Production
NLSRTL Version 10.2.0.3.0 - ProductionPlease see the real code and AREAS marked as COMMENTS
PROCEDURE items_exist (
p_source_organization VARCHAR2,
p_dest_organization VARCHAR2,
p_assembly_item VARCHAR2
------Parameter needs to be added here as table type having paramter and value--------------------------------------------------------------comments
AS
l_item_table ego_item_pub.item_tbl_type;
x_item_table ego_item_pub.item_tbl_type;
x_inventory_item_id mtl_system_items_b.inventory_item_id%TYPE;
x_organization_id mtl_system_items_b.organization_id%TYPE;
x_return_status VARCHAR2 (1);
x_msg_count NUMBER (10);
x_msg_data VARCHAR2 (1000);
x_message_list error_handler.error_tbl_type;
p_assy_item_id NUMBER;
p_dest_org_id NUMBER;
p_source_org_id NUMBER;
l_err_msg VARCHAR2 (240);
l_error_code NUMBER;
CURSOR items_exist
IS
SELECT DISTINCT msi.*
FROM cux_bom_export_temp a, mtl_system_items_b msi
WHERE a.component_item_id = msi.inventory_item_id
AND msi.organization_id = a.organization_id
AND a.organization_id = p_source_org_id
AND a.component_item_id NOT IN (
SELECT inventory_item_id
FROM mtl_system_items_b
WHERE organization_id =
p_dest_org_id);
BEGIN
FOR i IN items_exist
LOOP
--FIRST Item definition
l_item_table (1).transaction_type := 'CREATE';
-- Replace this with 'UPDATE' for update transaction.
l_item_table (1).organization_code := p_dest_organization;
l_item_table (1).long_description := 'Create test item';
l_item_table (1).inventory_item_id := i.inventory_item_id;
l_item_table (1).summary_flag := i.summary_flag;
l_item_table (1).enabled_flag := i.enabled_flag;
l_item_table (1).start_date_active := i.start_date_active;
l_item_table (1).end_date_active := i.end_date_active;
l_item_table (1).organization_id := p_dest_org_id;
l_item_table (1).item_catalog_group_id := i.item_catalog_group_id;
l_item_table (1).catalog_status_flag := i.catalog_status_flag;
l_item_table (1).lifecycle_id := i.lifecycle_id;
*----------400 attributes to follow cutting short--------------------------------------------------------------------------------------------------------------------------------------------------comments
Here i need to look from the input parameter if anyone attribute matches that from l_item_table.If it matches then apply the value from input paramter into the value of l_item_table----Cments
*Example say enabled_flag in l_item_table has value 'Y' BUT INPUT PARAMTER IS AS 'N' then 'N' should be passed to enabled_flag and not 'Y'-------------------------------------------------comments
ego_item_pub.process_items (p_api_version => 1.0,
p_init_msg_list => fnd_api.g_true,
p_commit => fnd_api.g_true,
p_item_tbl => l_item_table,
x_item_tbl => x_item_table,
x_return_status => x_return_status,
x_msg_count => x_msg_count
END LOOP;
EXCEPTION
WHEN OTHERS
THEN
l_error_code:=sqlcode;
l_err_msg:=sqlerrm;
INSERT INTO xxaai_copy_bom_errors
VALUES ('Items_Exist', p_assembly_item, NULL,
p_source_organization, p_dest_organization, l_error_code,
l_err_msg);
END; -
help needed for writing query
i have the following tables(with data) as mentioned below
FK*-foregin key (SUBJECTS)
FK**-foregin key (COMBINATION)
1)SUBJECTS(table name)
SUB_ID(NUMBER) SUB_CODE(VARCHAR2) SUB_NAME (VARCHAR2)
2 02 Computer Science
3 03 Physics
4 04 Chemistry
5 05 Mathematics
7 07 Commerce
8 08 Computer Applications
9 09 Biology
2)COMBINATION
COMB_ID(NUMBER) COMB_NAME(VARCHAR2) SUB_ID1(NUMBER(FK*)) SUB_ID2(NUMBER(FK*)) SUB_ID3(NUMBER(FK*)) SUBJ_ID4(NUMBER(FK*))
383 S1 9 4 2 3
384 S2 4 2 5 3
---------I actually designed the ABOVE table also like this
3) a)COMBINATION
COMB_ID(NUMBER) COMB_NAME(VARCHAR2)
383 S1
384 S2
b)COMBINATION_DET
COMBDET_ID(NUMBER) COMB_ID(FK**) SUB_ID(FK*)
1 383 9
2 383 4
3 383 2
4 383 3
5 384 4
6 384 2
7 384 5
8 384 3
Business rule: a combination consists of a maximum of 4 subjects (must contain)
and the user is less relevant to a COMB_NAME(name of combinations) but user need
the subjects contained in combinations
i need the following output
COMB_ID COMB_NAME SUBJECT1 SUBJECT2 SUBJECT3 SUBJECT4
383 S1 Biology Chemistry Computer Science Physics
384 S2 Chemistry Computer Science Mathematics Physics
or even this is enough(what i actually needed)
COMB_ID subjects
383 Biology,Chemistry,Computer Science,Physics
384 Chemistry,Computer Science,Mathematics,Physics
you can use any of the COMBINATION table(either (2) or (3))
and i want to know
1)which design is good in this case
(i think SUB_ID1,SUB_ID2,SUB_ID3,SUB_ID4 is not a
good method to link with same table but if 4 subjects only(and must) comes
detail table is not neccessary )
now i am achieving the result by program-coding in C# after getting the rows from oracle
i am using oracle 9i (also ODP.NET)
i want to know how can i get the result in the stored procedure itsef.
2)how it could be designed in any other way.
any help/suggestion is welcome
thanks for your time --PradeeshWell I forgot the table-alias, here now with:
SELECT C.COMB_ID
, C.COMB_NAME
, (SELECT SUB_NAME
FROM SUBJECTS
WHERE SUB_ID = C.SUB_ID1) AS SUBJECT_NAME1
, (SELECT SUB_NAME
FROM SUBJECTS
WHERE SUB_ID = C.SUB_ID2) AS SUBJECT_NAME2
, (SELECT SUB_NAME
FROM SUBJECTS
WHERE SUB_ID = C.SUB_ID3) AS SUBJECT_NAME3
, (SELECT SUB_NAME
FROM SUBJECTS
WHERE SUB_ID = C.SUB_ID4) AS SUBJECT_NAME4
FROM COMBINATION C;
As you need exactly 4 subjects, the columns-solution is just fine I would say. -
Chnage colum from CLOB to Varchar2 and find the length of CLOB
Hi,
I have got tables contain CLOB fields. I want to converter them to varchar2? Is the a way to do it? how can I find the max of length the data in CLOB fields.
Thanks in advance!!
MichaelHi All,
Thanks you for your useful information. What I need is to change the colum data type (definaition itself)from CLOB to Varchar2, not just to display the values in CLOB field into varchar2. I have tried to change the date type from COLB to varchar2 in TOAD and got ORA_22859: invaliad modification of columns.
Any suggestions?
Many Thanks
Michael -
Convert CLOB to VARCHAR2 in Oracle 8i
Hello all,
I would like to convert a CLOB column from a table to a VARCHAR2.
How can I do this?
I would like that this works in Oracle 8i, 9i and 10g.
Thank you very much.Hello APC,
I found the problem.
I have Oracle Reports 6i + patch 17.
The problem was that I couldn't select a CLOB column and store his value in a CLOB variable.
I needed to do the conversion DBMS_LOB.SUBSTR in the select statement and store his value in a VARCHAR2 variable.
Thank you -
How to convert clob to varchar2 in an update trigger
Hi,
I need to convert a field (clob) to varchar2 in a update trigger, how can I do that?
regards.The maximum amount of data you can store in CLOB column is 4GB.
You have table TABLE1 having col1 CLOB datatype.You have one more table
Table_audit_1 without having CLOB datatype column and want to move CLOB
data into VARCHAR2 column which has maximum length of 4000 and want to
audit col1 CLOB into VARCHAR2.It seems to me you dont care about the data
beyond 4000 bytes.
In 9i SUBSTR, INSTR can be performed without reference to the DBMS_LOB
package.
SQL> DROP TABLE mytable
2 /
Table dropped.
SQL> DROP TABLE mytable1
2 /
Table dropped.
SQL> CREATE TABLE mytable
2 (a NUMBER,b CLOB)
3 /
Table created.
SQL> CREATE TABLE mytable1
2 (c NUMBER,d VARCHAR2(4000))
3 /
Table created.
SQL> DECLARE
2 loc CLOB;
3 BEGIN
4 FOR i IN 1..5000
5 LOOP
6 loc:=loc||i;
7 END LOOP;
8 INSERT INTO mytable (a,b) VALUES (1,loc);
9 INSERT INTO mytable1 (c,d) VALUES (1,SUBSTR(loc,1,4000));
10 COMMIT;
11 END;
12 /
PL/SQL procedure successfully completed.
SQL> SET LONG 5000
SQL> CREATE OR REPLACE TRIGGER mytrigger BEFORE UPDATE ON mytable FOR EACH ROW
2 BEGIN
3 UPDATE mytable1
4 SET d=SUBSTR(:NEW.b,1,4000)
5 WHERE c=:NEW.a;
6 END;
7 /
Trigger created.
SQL> DECLARE
2 loc CLOB;
3 BEGIN
4 FOR i IN 1..1000
5 LOOP
6 loc:=loc||'A '||i;
7 END LOOP;
8 UPDATE mytable
9 SET b=loc
10 WHERE a=1;
11 COMMIT;
12 END;
13 /
PL/SQL procedure successfully completed.
SQL> SELECT LENGTH(b) FROM mytable
2 /
LENGTH(B)
4893
SQL> SELECT LENGTH(d) FROM mytable1
2 /
LENGTH(D)
4000
SQL> Khurram -
Help needed Urgently for XMLElement().please see
Hi,
Look at the xml code for XMLElement
CREATE OR REPLACE FUNCTION create_sdixml(
a_sdi_num IN NUMBER,
RETURN CLOB
AS
-- Declare the variables
queryCtx DBMS_XMLquery.ctxType;
v_xml CLOB;
v_xmlString VARCHAR2(32767);
BEGIN
v_xmlString:=' Select SYS_XMLAGG(XMLElement("SDIEXTRACT",
XMLElement("SDI",
S.Book_num,
S.capacity_ind )))
FROM sdi S where S.sdi_num = ' || a_sdi_num;
queryCtx :=DBMS_XMLQuery.newContext(v_xmlString);
DBMS_XMLQuery.setRowTag(queryCtx,NULL);
DBMS_XMLQuery.setRowSetTag(queryCtx,'SDIEXTRACT');
v_xml :=DBMS_XMLQuery.getXML(queryCtx);
RETURN v_xml;
END create_sdixml;On running this I get the ERROR:
<ERROR>:Character ')' IS NOT ALLOWED AS AN XML Tag Name </ERROR>PLEASE Can anyone help regd the XMLELEMENT statements above??If I use this from the SQL prompt,it works fine.
1 Select SYS_XMLAGG(XMLElement("SDIEXTRACT",
2 XMLELEMENT("SDI",
3 active_flag)))
4 From sdi
5* where sdi_num = 22261
SQL> /
SYS_XMLAGG(XMLELEMENT("SDIEXTRACT",XMLELEMENT("SDI",ACTIVE_FLAG)))
<?xml version="1.0"?>
<ROWSET>
<SDIEXTRACT><SDI>Y</SDI></SDIEXTRACT></ROWSET>
SQL>Any suggestions? Shall I pass some alias to this? -
Performance between CLOB and VARCHAR2
I would like to know if there is any really performance issues between CLOB and VARCHAR2 data types?
In particular, why would it not be better to declare all large text items as CLOB rather than VARCHAR2(4000) in a table? For example, if I am going to store about a page of text, in a table, why not standardize of CLOB? Only use VARCHAR2 for small text items.I doubt that there would be much, if any, performance difference between a CLOB and a VARCHAR2. By default, Oracle will store CLOBS directly in the table if they are less than about 4000 bytes, so the effect would be the same as a VARCHAR2(4000).
The advantage of VARCHAR2(4000) over a CLOB is that you document and enforce the maximum size of the field. If you know that no test item will exceed 4000 bytes, then I would store it as a VARCHAR2, because if they can store more, someone will.
A possible disadvantage of using CLOBS instead of VARCHAR2(4000) is that when you declare a column as a CLOB, Oracle creates the two lob segments whether or not they are needed to actually store data. So, depending on how many VARCHAR2(4000) columns you change to CLOBS without needing to store more than 4000 bytes, you can potentially waste a significant amount of space.
SQL> CREATE TABLE t_clob (id NUMBER, descr CLOB);
Table created.
SQL> SELECT segment_name, index_name
2 FROM dba_lobs
3 WHERE table_name = 'T_CLOB';
SEGMENT_NAME INDEX_NAME
SYS_LOB0000136329C00002$$ SYS_IL0000136329C00002$$
SQL> SELECT segment_name, segment_type, blocks
2 FROM dba_segments
3 WHERE segment_name in ('SYS_LOB0000136329C00002$$','SYS_IL0000136329C00002$$')
SEGMENT_NAME SEGMENT_TYPE BLOCKS
SYS_IL0000136329C00002$$ LOBINDEX 64
SYS_LOB0000136329C00002$$ LOBSEGMENT 64HTH
John -
Troubleshooting help needed: My iMac keeps crashing and restarting with a notice: "Spinlock application timed out" What can I do?
Launch the Console application in any of the following ways:
☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
☞ Open LaunchPad. Click Utilities, then Console in the page that opens.
Select the most recent panic log under System Diagnostic Reports. Post the contents — the text, please, not a screenshot. In the interest of privacy, I suggest you edit out the “Anonymous UUID,” a long string of letters, numbers, and dashes in the header and body of the report, if it’s present (it may not be.) Please don't post shutdownStall, spin, or hang reports. -
Hi all help needed I have a canon 40D. I am thinking of buying a canon 6D.
But not sure that my lenses will work.
I have a 170mm/ 500mm APO Sigma.
A 10/20 ex Sigma HSM IF.
And a 180 APO Sigma Macro or do I have to scrap them and buy others.
ALL Help will be greatly received. Yours BRODIEIn short, I love it. I was going to buy the 5DMark III. After playing with it for a while at my local Fry's store where they put 5DMII, 5DMIII and 6D next to each other, using the same 24-105L lens, I decided to get the 6D and pocket the different for lens later.
I'm upgrading from the 30D. So I think you'll love it. It's a great camera. I have used 5DMII extensively before (borrowing from a close friend).
Funny thing is at first I don't really care about the GPS and Wifi much. I thought they're just marketing-gimmick. But once you have it, it is actually really fun and helpful. For example, I can place the 6D on a long "monopod", then use the app on the phone to control the camera to get some unique perspective on some scenes. It's fun and great. GPS is also nice for travel guy like me.
Weekend Travelers Blog | Eastern Sierra Fall Color Guide -
Help needed! Raid degraded again!
Hi!
Help needed! I hava made bootable RAID with two S-ATAII 250Gb HDD and its not working! Every now and then at bootup I get a message RAID -> DEGRADED... Must be seventh time! Rebuild takes its own time!
What am I doing wrong!
T: Ekku
K8N Neo4 Ultra
AMD 64 4200+
2 Gb RAM
2 x 250 Gb HDD (Maxtor)
nVidia RAID (in mb)
P.S. I wery SORRY with my poor language!I'm going to blame the nVRAID because I've seen issues with it in the past. If your motherboard has another non-nVidia RAID solution, use that instead. Using the nVidia SATA ports as BASE or JBOD is fine and dandy but RAIDing always had issues. It's not even a driver issue I think it's just instability. Latest drivers and even boxed drivers never helped. Granted, some will report success with their rig. But on a professional level I've seen nForce issues on different motherboards and different hard drives that had RAID disaster stories.
Good luck and if you don't have another RAID solution, my suggestion would be to buy a dedicated RAID controller card.
LPB -
HELP NEEDED WITH ADDAPTER-DVI TO VGA.
PLEASE ...HELP NEEDED WITH WIRING CROSS OVER....CAN YOU HELP WITH BACK OF PLUG CONNECTIONS...I SORTA UNDERSTAND THE PINOUTS BUT CANT MAKE AN EXACT MACH...WOULD LIKE TO BE 100% SURE...
......THIS ENSURES NO SMOKE!!!
THE CARD IS AN ATI RADEON RX9250-DUAL HEAD-.........ADDAPTER IS DVI(ANALOG)MALE TO VGA(ANALOG)FEMALE.
ANY HELP VERY MUCH APPRECIATED........ SEEMS YOU NEED TO BE ROCKET SCI TO ATTACH A BLOODY PICTURE...SO THIS HAS BEEN BIG WASTE OF FING TIME!Quote from: BOBHIGH on 17-December-05, 09:21:31
Get over it mate !
I find it easy t read CAPS...and if you dont like it ...DONT READ IT!
And why bother to reply...some people have nothing better to do.
Yes there chep and easy to come by...Ive already got a new one.
All I wanted was to make a diagram of whats inside the bloody thing...it was a simple question and required a simple answer.
NO NEED TO A WANKA !!
I feel a bann comming up.
Have you tryed Google ? really.. your question is inrelevant. No need to reply indeed.
Why do you come here asking this question anyway ? is it becouse you have a MSI gfx card ? and the adapter has nothing to do with this ?
You think you can come in here yelling.. thinking we have to put up with it and accept your style of posting. This is not a MSI tech center.. it's a user to user center.. Your question has nothing to do with MSI relavant things anyway's.
Google = your friend.
Quote from: BOBHIGH on 17-December-05, 09:21:31
it was a simple question and required a simple answer
Simple for who ? you (buying a new one) ? me ? we ? .really...........
Quote from: Dynamike on 16-December-05, 04:11:48
1: There are allot of diffrent types of those adapters.
If any of the mods have a problem about my reply.. please pm me. -
Help needed for grouping.
Hi,
Help needed .
I have an internal table having 6 .
Ex :
f1 f2 f3 f4 f5 f6
a aa 11 p1 10 10
a aa 12 p1 20 20
b aa 11 p2 30 30
b aa 12 p2 40 30
Now i want to sum the fields f5 and f6 individually and need to display based upon the fields f1 and f4.
To Display :
f1 f2 f3 f4 f5 f6
a aa 11 p1 30 30.
b aa 11 p2 70 60.
can anyone help me.How to do this..?
ThanksHere you go
DATA:
BEGIN OF cur_tab OCCURS 0,
f1 TYPE c,
f2(2) TYPE c,
f3(2) TYPE c,
f4(2) TYPE c,
f5(2) TYPE c,
f6(2) TYPE n,
END OF cur_tab.
DATA:
BEGIN OF sum_tab OCCURS 0,
f1 TYPE c,
f4(2) TYPE c,
f5 TYPE p,
f6 TYPE p,
END OF sum_tab.
DATA:
BEGIN OF final_tab OCCURS 0,
f1 TYPE c,
f2(2) TYPE c,
f3(2) TYPE c,
f4(2) TYPE c,
f5(5) TYPE c,
f6(5) TYPE c,
END OF final_tab.
START-OF-SELECTION.
cur_tab-f1 = 'a'.
cur_tab-f2 = 'aa'.
cur_tab-f3 = '11'.
cur_tab-f4 = 'p1'.
cur_tab-f5 = '10'.
cur_tab-f6 = '10'.
APPEND cur_tab.
cur_tab-f1 = 'a'.
cur_tab-f2 = 'aa'.
cur_tab-f3 = '11'.
cur_tab-f4 = 'p1'.
cur_tab-f5 = '20'.
cur_tab-f6 = '20'.
APPEND cur_tab.
cur_tab-f1 = 'b'.
cur_tab-f2 = 'aa'.
cur_tab-f3 = '11'.
cur_tab-f4 = 'p2'.
cur_tab-f5 = '30'.
cur_tab-f6 = '30'.
APPEND cur_tab.
cur_tab-f1 = 'b'.
cur_tab-f2 = 'aa'.
cur_tab-f3 = '11'.
cur_tab-f4 = 'p2'.
cur_tab-f5 = '40'.
cur_tab-f6 = '30'.
APPEND cur_tab.
LOOP AT cur_tab.
MOVE-CORRESPONDING cur_tab TO sum_tab.
COLLECT sum_tab.
ENDLOOP.
LOOP AT sum_tab.
READ TABLE cur_tab WITH KEY f1 = sum_tab-f1
f4 = sum_tab-f4.
IF sy-subrc NE 0.
WRITE:/ 'Something went very wrong'.
CONTINUE.
ENDIF.
MOVE-CORRESPONDING cur_tab TO final_tab.
MOVE-CORRESPONDING sum_tab TO final_tab.
APPEND final_tab.
ENDLOOP.
LOOP AT final_tab.
WRITE:/1 final_tab-f1,
AT 5 final_tab-f2,
AT 10 final_tab-f3,
AT 15 final_tab-f4,
AT 20 final_tab-f5,
AT 25 final_tab-f6.
ENDLOOP.
and the output
a aa 11 p1 30 30
b aa 11 p2 70 60 -
Help needed on installation of Oracle 9i on Sun Solaris 8
Hey,
Help needed on installation of Oracle 9i EE on Sun Solaris 8. The problem I met was: we followed the installation guide from the documentation. And we selected the choice "install software only". After it was done successfully, we run Database Configuration Assistant utility to create a database instance. But finally it always tried to create the instance at the root directory ( / ) which doesn't have enough space and then failed. The case was that we have set the enviroment parameters: $ORACLE_BASE = /export/mydata, $ORACLE_HOME = /export/apps/oracle9i. That means it should be installed at /export/mydata, but it didn't. Any help or advice are welcome. Thanks.
SimonI have downloaded Oracle 11G R2 version from Windows and extracted it in Windows and copied it into DVD after extraction in two folders. Now I am mounting that DVD in Solaris 10 installed in my VMware . I made a new directory named as 'installation ' under /export/home/oracle and copied the folders from DVD to 'installation' folder. Now I am entering installation folder and try to do ./runInstaller as 'oracle ' user and getting the error mentioned before.
Edited by: 916438 on Mar 31, 2012 5:55 PM
Maybe you are looking for
-
got a new laptop. unsure of firefox verson on old as the computer quit taking a charge. but essentially on my old laptop if a window had six downloadable links i would be able to download all six at once. now i can only download one link at a time. t
-
I can no longer see the tools menu
I cannot now find the tools menu on Firefox in order to delete individual cookies
-
Exporting Specific Artboards into .PDF
I would like to know if it is possible to export only specific artboards from a CS4 .ai file as a .pdf like you can select them for print. I can't figure out how or find any info on that subject. (ie: I want to export artboards 2 and 4 in .pdf format
-
Z Number range objects in ECC 6.0
Dear SMRer's, System Info: SRM 5.0 and ECC 6.0 I created some Z number range objects for eforms in ECC 6.0. And all of them went in to the same transport request DXXXXXXX . I just wanted to confirm if it is the right way to do it. Also, if some one c
-
Apache: error while loading shared libraries
linux:/opt/tarantella/bin # ./tarantella security start - linux.site: Enabled secure connections. linux:/opt/tarantella/bin # linux:/opt/tarantella/bin # ./tarantella webserver restart --ssl Stopping Tomcat servlet container... Using CLASSPATH: /opt/