Help needed in Collections
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.Thanks
Hi 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;
Similar Messages
-
Help needed with collection classes
Howdie all,
I'm new to Java, and for the most part, I can do it.
I'm stuck on how to do the following:
I have to write a program that simulates a deck of cards, including shuffling (involving cards are re-collected), dealing cards. I have to create 52 objects of the card class. The only things that I can use involve some of the collection classes (arrays, dynamic lists, vectors, dictionaries), queues/stacks
I dont know:
** what to use. should i use a dyn list or a vector
**how the heck would i shuffle the cards?
** for dealing the cards, i figued i would just use a loop to draw a set of cards (face and suit)
i am not asking for code on how to do it (though pseudo-code/alogorithm may help). i just dont know where to start..i am totally stuck.
thanks a bunch!I would suggest you to use the LinkedList class for the deck representation.
To create the cards you could use
for i = 0 to 51
new Card(i);
In Card constructor do something like
int colour = i/13+1; // (1-4, one for each colour)
int value = i%13+1; // (1-13, ace-king)
To shuffle you could
for i = 0 to 100
j = radom(52)
k = random(52)
swap(card#j, card#k)
This will swap 2 random cards 100 times.
To draw cards
Card c = cards.remove(0)
or
Card c = cards.remove(radom(cards.size()))
In the later, the shuffle part is not really needed.
thought about this some more and now i have another
question:
when using a dyn linked library, i am not even sure
how to create the 52 objects. previously when doing
project like this, i just used a random function to
generate the cards, and used switch statements for the
non-numbered cards and for the suite. how would i do
accomplish this when using a collection class?
Howdie all,
I'm new to Java, and for the most part, I can do it.
I'm stuck on how to do the following:
I have to write a program that simulates a deck of
cards, including shuffling (involving cards are
re-collected), dealing cards. I have to create 52
objects of the card class. The only things that Ican
use involve some of the collection classes (arrays,
dynamic lists, vectors, dictionaries),queues/stacks
I dont know:
** what to use. should i use a dyn list or avector
**how the heck would i shuffle the cards?
** for dealing the cards, i figued i would just usea
loop to draw a set of cards (face and suit)
i am not asking for code on how to do it (though
pseudo-code/alogorithm may help). i just dont know
where to start..i am totally stuck.
thanks a bunch! -
hello all,
what is wrong i doing with following code.
package generics;
import java.util.ArrayList;
import java.util.List;
import java.util.ListIterator;
public class GenericListTest {
public static void main(String[] args) {
String[] strVals = {"a","B","C","d","e","a","B"};
List<String> list = new ArrayList<String>();
for (String a : strVals)
list.add(a);
// error shows the following line ---- Type cannot be resolved to a type
for (ListIterator<Type> it = list.listIterator(list.size());
it.hasPrevious(); ) {
Type t = it.previous();
}thanks
dayaif i convert for loop to the following code it will work fine
for (ListIterator<String> it = list.listIterator(list.size());
it.hasPrevious(); ) {
String t = it.previous();
System.out.println(t);
}what i think is the loop is generic so it should work
for (ListIterator<Type> it = list.listIterator(list.size());
it.hasPrevious(); )
is this is correct what i am saying
thanks
daya -
Need help with Bulk Collect ForAll Update
Hi - I'm trying to do a Bulk Collect/ForAll Update but am having issues.
My declarations look like this:
CURSOR cur_hhlds_for_update is
SELECT hsh.household_id, hsh.special_handling_type_id
FROM compas.household_special_handling hsh
, scr_id_lookup s
WHERE hsh.household_id = s.id
AND s.scr = v_scr
AND s.run_date = TRUNC (SYSDATE)
AND effective_date IS NULL
AND special_handling_type_id = 1
AND created_by != v_user;
TYPE rec_hhlds_for_update IS RECORD (
household_id HOUSEHOLD_SPECIAL_HANDLING.household_id%type,
spec_handl_type_id HOUSEHOLD_SPECIAL_HANDLING.SPECIAL_HANDLING_TYPE_ID%type
TYPE spec_handling_update_array IS TABLE OF rec_hhlds_for_update;
l_spec_handling_update_array spec_handling_update_array;And then the Bulk Collect/ForAll looks like this:
OPEN cur_hhlds_for_update;
LOOP
FETCH cur_hhlds_for_update BULK COLLECT INTO l_spec_handling_update_array LIMIT 1000;
EXIT WHEN l_spec_handling_update_array.count = 0;
FORALL i IN 1..l_spec_handling_update_array.COUNT
UPDATE compas.household_special_handling
SET effective_date = TRUNC(SYSDATE)
, last_modified_by = v_user
, last_modified_date = SYSDATE
WHERE household_id = l_spec_handling_update_array(i).household_id
AND special_handling_type_id = l_spec_handling_update_array(i).spec_handl_type_id;
l_special_handling_update_cnt := l_special_handling_update_cnt + SQL%ROWCOUNT;
END LOOP;And this is the error I'm receiving:
ORA-06550: line 262, column 31:
PLS-00436: implementation restriction: cannot reference fields of BULK In-BIND table of records
ORA-06550: line 262, column 31:
PLS-00382: expression is of wrong type
ORA-06550: line 263, column 43:
PL/SQL: ORA-22806: not an object or REF
ORA-06550: line 258, column 9:
PL/SQL: SQMy problem is that the table being updated has a composite primary key so I have two conditions in my where clause. This the the first time I'm even attempting the Bulk Collect/ForAll Update and it seems like it would be straight forward if I was only dealing with a single-column primary key. Can anyone please help advise me as to what I'm missing here or how I can accomplish this?
Thanks!
ChristineYou cannot reference a column inside a record when doin a for all. You need to refer as a whole collection . So you will need two collections.
Try like this,
DECLARE
CURSOR cur_hhlds_for_update
IS
SELECT hsh.household_id, hsh.special_handling_type_id
FROM compas.household_special_handling hsh, scr_id_lookup s
WHERE hsh.household_id = s.ID
AND s.scr = v_scr
AND s.run_date = TRUNC (SYSDATE)
AND effective_date IS NULL
AND special_handling_type_id = 1
AND created_by != v_user;
TYPE arr_household_id IS TABLE OF HOUSEHOLD_SPECIAL_HANDLING.household_id%TYPE
INDEX BY BINARY_INTEGER;
TYPE arr_spec_handl_type_id IS TABLE OF HOUSEHOLD_SPECIAL_HANDLING.SPECIAL_HANDLING_TYPE_ID%TYPE
INDEX BY BINARY_INTEGER;
l_household_id_col arr_household_id;
l_spec_handl_type_id_col arr_spec_handl_type_id;
BEGIN
OPEN cur_hhlds_for_update;
LOOP
FETCH cur_hhlds_for_update
BULK COLLECT INTO l_household_id_col, l_spec_handl_type_id_col
LIMIT 1000;
EXIT WHEN cur_hhlds_for_update%NOTFOUND;
FORALL i IN l_household_id_col.FIRST .. l_household_id_col.LAST
UPDATE compas.household_special_handling
SET effective_date = TRUNC (SYSDATE),
last_modified_by = v_user,
last_modified_date = SYSDATE
WHERE household_id = l_household_id_col(i)
AND special_handling_type_id = l_spec_handl_type_id_col(i);
--l_special_handling_update_cnt := l_special_handling_update_cnt + SQL%ROWCOUNT; -- Not sure what this does.
END LOOP;
END;G. -
I have a licence code for Adobe CS6 Master Collection which I'm using for more than a year, suddeny I am in trial mode (all programs) an it seems that this code is not accepted anymore. Help needed!!
Chat Now button near the bottom for Activation and Deactivation problems may help
http://helpx.adobe.com/x-productkb/policy-pricing/activation-deactivation-products.html -
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 -
URGENT HELP NEEDED ... Tomcat Realm and JRE1.4 plug-in problem
I have tried the Security Realm of Tomcat. Since I do not have
an LDAP server, I decided to use the Tomcat-users.xml file in
Tomcat\conf directory.
I added the following lines of code in the web.xml file.
<security-constraint>
<web-resource-collection>
<web-resource-name>Entire Application</web-resource-name>
<url-pattern>/*</url-pattern>
</web-resource-collection>
<auth-constraint>
<!-- NOTE: This role is not present in the default users file -->
<role-name>webviewer</role-name>
</auth-constraint>
</security-constraint>
<login-config>
<auth-method>BASIC</auth-method>
<realm-name>Tomcat Manager Application</realm-name>
</login-config>
The <role-name> "webviewer" is added into "Tomcat-Users.xml" as the following:
<tomcat-users>
<user name="test" password="password" roles="webviewer" />
</tomcat-users>
So, now when we type the url: http://localhost:8080/adbpdbre/default.htm, TOMCAT shows a dialog box asking for UserName: and Password:Now, only when we give the username and password, it shows the page. This is exactly what we want.
But the problem now is, this default.htm page, has 5 links to 5 applets. The first time that I click on one of these links, the JRE plug of 1.4 shows a dialog again asking for the username and password. Till I dont provide the username and password the system doesnt go ahead and applet doesnt load. I do not want the JRE to ask me for the username/passwords again..How to avoid this ?
Can you give me some more information on this. Ultimately in the production usage, we will be using LDAP and not Tomcat's memory realm.
URGENT HELP NEEDED ... I need to get back to my client on this.
Help would be v. much appreciated.In the config file, you 're essentially saying that you want Tomcat to prompt for usr/passw on every request (url-pattern = /*) made by a 'webviewer', and that's exactly what Tomcat is doing.
Consider using specific url-patterns & roles for resources to be protected. If for now, all you need is to protect the first page, use a more specific url-pattern.
Just an advice : if you'll be using LDAP in production, do not waste time with Tomcat's Security Realm and the BASIC authentication type, since the two have not much in common. Start reading doc on LDAP, and code a prototype, or even better, a vertical slice of the app (i.e a proof of concept). -
Hi XI friends,
its IDOC to file Scenario..
its daily scheduling report..if we run that report.....Number IDOCs are generated in SAP..
we have 5 legacy systems..
for one legacy systems file type is .txt file and for remaining xml files..
the catagarization based on one of the field in IDOC..
if that field is 01 the file type should be .txt file
for others xml file..
if that field is 01 then ..XI need to collect all the IDOCS into one .txt file for other values direct conversion into XML file i.e..each idoc gets into one xml file
if that filed is 01..then XI need to collect all the IDOCs in that day into single .txt file and the fileds are Fixed lenghts...and at the same time ..that idoc contains number of segments ..if any Idocs doesnt contain some segments..ther should be no more blank lines...each segment should placed in new row...and also..for some segements ..XI should collect into seperate .txt file....
please help me....how to achive,,,,,,
regards
Munna<i>if that field is 01 then ..XI need to collect all the IDOCS into one .txt file for other values direct conversion into XML file i.e..each idoc gets into one xml file
if that filed is 01..then XI need to collect all the IDOCs in that day into single .txt file and the fileds are Fixed lenghts...and at the same time ..that idoc contains number of segments ..if any Idocs doesnt contain some segments..ther should be no more blank lines...each segment should placed in new row...and also..for some segements ..XI should collect into seperate .txt file....</i>
in this case BPM will be required to collect the IDOCs ref: http://help.sap.com/saphelp_nw04/helpdata/en/08/16163ff8519a06e10000000a114084/content.htm
base the correlation on the field that contains the value 01
also then later using XPATH in your receiver det. you can check for the value and route the message to the particular receiver as u want to
ref:
/people/shabarish.vijayakumar/blog/2006/06/07/customise-your-xpath-expressions-in-receiver-determination
/people/shabarish.vijayakumar/blog/2005/08/03/xpath-to-show-the-path-multiple-receivers -
Help Needed - Even after lodging "Presidential Complaint"
Help needed please!!To make a long story short I have been through nothing but aggravation the past week trying to get my phone working. Service call on 7/6 to install Fios Internet, TV and phone. Internet and TV work fine, but Phone has no dial tone, going on a week and a half now. Tried contacting the account rep who set up my account, her supervisor as well as tech support on numerous occassions.
They set a dispatch for yesterday, and when the tech called me to say he was here, he was at an address i moved out of 4 years ago, in another state.I get a call from someone saying the service request was being closed and I need to call in with the correct address, after telling that rep I would not do that, that Verizon should make the updates based on my TV/Internet records, she hung up on me. Called back into Tech Support and the best they could do was an appointment for tomorrow. I then called the Corporate number and spoke with someone who opened a "Presidential Complaint" and requested an expedited call.. well i have heard nothing since then other than an automated call earlier today sayin my original service request will be kept. Needless to say I'm very upset that after a week and a half I still have no phone service and it doesn't seem like anyone is real willing to help me. I'm sure I'll get billed in full even though one of the 3 services I'm paying for hasn't been working in a week and a half..Hi jkoen77,
Your issue has been escalated to a Verizon agent. Before the agent can begin assisting you, they will need to collect further information from you. Please go to your profile page for the forum and look at the top of the middle column where you will find an area titled "My Support Cases". You can reach your profile page by clicking on your name beside your post, or at the top left of this page underneath the title of the board.
Under "My Support Cases" you will find a link to the private board where you and the agent may exchange information. The title of your post is the link. This should be checked on a frequent basis, as the agent may be waiting for information from you before they can proceed with any actions. To ensure you know when they have responded to you, at the top of your support case there is a drop down menu for support case options. Open that and choose "subscribe". Please keep all correspondence regarding your issue in the private support portal. -
Help needed starting Internet service at new residence
Hello. My name is {edited for privacy}. I recently moved to a new location and I am having trouble finding a Verizon representative to help me order high speed Internet service at my new residence. I have been working with a specialist supervisor {edited for privacy} regarding this issue. However, he has not contacted me as promised for over 2 weeks. While I understand the holiday season is/was upon us, with vacation time and special hours, I have left 3 voice messages over this period in an attempt to collect information and solve my dilemma.
Because of my location at {edited for privacy}, it is classified as rural. Subsequently, I understand a finite number of connections exist. I was assured because I already have a Verizon port installed in my house from the previous tenants all that needed to be done was for the software engineers to update the site to include my address in their system. Unfortunately, this was never completed even though numerous Verizon representatives ordered this information to be updated. They informed me the turnaround for the software engineers to correct this problem was 24-48 hours and I should be able to set up service by either calling or going online. This was in early December. I was given a fast order number {edited for privacy} which has been helpful when speaking to various representatives.
In addition, I have also spoken to my local Verizon technician in Russell, PA. He informed me there should not be a problem as numerous ports are open for rural connection in my area. He said I may need to connect a land-line before proceeding and once a dial tone was initiated a high speed connection could be made. The representatives and technicians I have spoken with have been extremely helpful in my quest to secure an Internet connection. I am writing this letter to hopefully proceed with contacting the software engineers to please update the Verizon residential site so I can move forward with my installation.
If there is any way I can set up service at my location that would be fantastic. I teach online classes and desperately need a reliable fast Internet connection to work with my students. I appreciate your time and help regarding my dilemma.
Sincerely,
{edited for privacy}Hi kbrennan08,
Your issue has been escalated to a Verizon agent. Before the agent can begin assisting you, they will need to collect further information from you. Please go to your profile page for the forum and look at the top of the middle column where you will find an area titled "My Support Cases". You can reach your profile page by clicking on your name beside your post, or at the top left of this page underneath the title of the board.
Under "My Support Cases" you will find a link to the private board where you and the agent may exchange information. The title of your post is the link. This should be checked on a frequent basis, as the agent may be waiting for information from you before they can proceed with any actions. To ensure you know when they have responded to you, at the top of your support case there is a drop down menu for support case options. Open that and choose "subscribe". Please keep all correspondence regarding your issue in the private support portal. -
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. -
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. -
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.
Maybe you are looking for
-
I've turned off my non-essential add-ons and nothing seems to fix it. Any ideas?
-
ISight suddenly not working in iChat
Hi, My iSight has always worked and i've never had a problem until just now. I just got off a Skype video call with a friend on a PC. my iChat was running and now I realize that it only has the 'phone' icon next to my picture. I checked the preferenc
-
Problems syncing BB Bold to Google apps email
I have a BB Bold 9780. I have my personal gmail account synced to it and previously had my work email synced to it through Outlook. I just started a new job and deleted the old email sync. However, my new job uses Google Business Apps and I cannot
-
Date deviates from permissible range [journal entry - Document Date]
Hi, i have problem to add journal entry, when i creat journal document last year with: Posting date: 06-02-09 (this date) Due date: 06-002-09 and Document date: 20-11-08 (couse the document late to creat at the journal) kindly, and thx for solution..
-
HT5622 New imac. Mavericks. messages/facetime won't allow login.
yep. brand new computer, other aps respond well to apple ID login... except Messages and facetime. I've tried re-entering, restarting, creating new user accounts, resetting keychains, and everything else I could find in other threads... what is wrong