SQL +-PROBLEM OF QUERY IN MULTI TABLE
HAI ALL,ANY SUGGESTION PLEASE?
SUP: SQL +-PROBLEM OF QUERY IN MULTI TABLE
SQL + QUERY DATA:
-----------
SELECT PATIENT_NUM, PATIENT_NAME, HMTLY_TEST_NAME, HMTLY_RBC_VALUE,
HMTLY_RBC_NORMAL_VALUE, DLC_TEST_NAME, DLC_POLYMORPHS_VALUE,
PATIENTS_MASTER1 DLC_POLYMORPHS_NORMAL_VALUE, HAEMATOLOGY1,
DIFFERENTIAL_LEUCOCYTE_COUNT1
WHERE PATIENT_NUM = HMTLY_PATIENT_NUM AND PATIENT_NUM = DLC_PATIENT_NUM AND PATIENT_NUM
= & PATIENT_NUM;
-----------
RESULT:
& PATIENT_NUM = 1
no selected line
---------
& PATIENT_NUM = 2
no selected line
------------
& PATIENT_NUM = 3
PATIENT_NUM 3
PATIENT_NAME KKKK
HMTLY_TEST_NAME HEMATOLOGY
HMTLY_RBC_VALUE 4
4.6 - 6.0 HMTLY_RBC_NORMAL
DLC_TEST_NAME LEUKOCYTE COUNT PREMIUM
DLC_POLYMORPHS_VALUE 60
DLC_POLYMORPHS_NORMAL_VALUE 40-65
-------------
-------------
REAL WILL BE:
& PATIENT_NUM = 1
PATIENT_NUM 1
PATIENT_NAME BBBB
HMTLY_TEST_NAME HEMATOLOGY
HMTLY_RBC_VALUE 5
4.6 - 6.0 HMTLY_RBC_NORMAL
-----------
& PATIENT_NUM = 2
PATIENT_NUM 2
PATIENT_NAME GEORGE
DLC_TEST_NAME LEUKOCYTE COUNT PREMIUM
DLC_POLYMORPHS_VALUE 42
DLC_POLYMORPHS_NORMAL_VALUE 40-65
---------------
& PATIENT_NUM = 3
PATIENT_NUM 3
PATIENT_NAME KKKK
HMTLY_TEST_NAME HEMATOLOGY
HMTLY_RBC_VALUE 4
4.6 - 6.0 HMTLY_RBC_NORMAL
DLC_TEST_NAME LEUKOCYTE COUNT PREMIUM
DLC_POLYMORPHS_VALUE 60
DLC_POLYMORPHS_NORMAL_VALUE 40-65
----------------------------
4 TABLES OF LABORATORY CLINIC FOR DATA ENTRY AND GET REPORT ONLY FOR THE TESTS CARRIED OUT FOR PARTICULAR
PATIENT.
TABLE1:PATIENTS_MASTER1
COLUMNS: PATIENT_NUM, PATIENT_NAME,
VALUES:
PATIENT_NUM
1
2
3
4
PATIENT_NAME
BENAMER
GIROT
KKKK
PPPP
---------------
TABLE2:TESTS_MASTER1
COLUMNS: TEST_NUM, TEST_NAME
VALUES:
TEST_NUM
1
2
TEST_NAME
HEMATOLOGY
DIFFERENTIAL LEUKOCYTE COUNT
-------------
TABLE3:HAEMATOLOGY1
COLUMNS:
HMTLY_NUM, HMTLY_PATIENT_NUM, HMTLY_TEST_NAME, HMTLY_RBC_VALUE, HMTLY_RBC_NORMAL_VALUE
VALUES:
HMTLY_NUM
1
2
HMTLY_PATIENT_NUM
1
3
MTLY_TEST_NAME
HEMATOLOGY
HEMATOLOGY
HMTLY_RBC_VALUE
5
4
HMTLY_RBC_NORMAL_VALUE
4.6 - 6.0
4.6 - 6.0
------------
TABLE4:DIFFERENTIAL_LEUCOCYTE_COUNT1
COLUMNS: DLC_NUM, DLC_PATIENT_NUM, DLC_TEST_NAME, DLC_POLYMORPHS_VALUE, DLC_POLYMORPHS_
NORMAL_VALUE,
VALUES:
DLC_NUM
1
2
DLC_PATIENT_NUM
2
3
DLC_TEST_NAME
DIFFERENTIAL LEUKOCYTE COUNT
DIFFERENTIAL LEUKOCYTE COUNT
DLC_POLYMORPHS_VALUE
42
60
DLC_POLYMORPHS_NORMAL_VALUE
40-65
40-65
-----------------
Thank you
RCS
E-mail:[email protected]
--------
I think you want an OUTER JOIN
SELECT PATIENT_NUM, PATIENT_NAME, HMTLY_TEST_NAME, HMTLY_RBC_VALUE,
HMTLY_RBC_NORMAL_VALUE, DLC_TEST_NAME, DLC_POLYMORPHS_VALUE,
DLC_POLYMORPHS_NORMAL_VALUE
FROM PATIENTS_MASTER1, HAEMATOLOGY1, DIFFERENTIAL_LEUCOCYTE_COUNT1
WHERE PATIENT_NUM = HMTLY_PATIENT_NUM (+)
AND PATIENT_NUM = DLC_PATIENT_NUM (+)
AND PATIENT_NUM = &PATIENT_NUM;
Published by: shoblock on November 5, 2008 12:17
the outer join brands became stupid emoticons or something. try hard
Tags: Database
Similar Questions
-
I am writing a query that scans a product Dimension Row_Wid, notes the gaps in the sequence and generates the missing Row_Wids. It loads these 'missing Feds"in a sequence of wid created table to reuse by Informatica transformation of research without bond during the subsequent data loads. Yes, I expect many people asking why I do this. The simple reason is that Informatica has a limit of 2 147 sequence generator 483 647'. I arrived at this upper limit, but my table contains only 2.2 million lines of actual data. I'm trying to reuse these Row_Wids now 'not used '.
I have a job with success the query to find the first ditch and fill some of that gap. Now my next problem is to figure out how to get my request to move away from the next. I can't use the PL/SQL in the query. My client does not allow its use.
I'll paste the code I have now. I need to evolve to the next gap. Suggestions? Help? Ideas?
The Version of database: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
The table I'm inserting: CREATE GLOBAL TEMPORARY TABLE "OLAP". "" ROWWIDVAL "("ROWWID"NUMBER (10.0), NUMBER (10,0)"EXTRAVAL") ON COMMIT PRESERVE ROWS;
A note: the Temp Table to test this point, I've created is "RowWidVal" and it has two columns.
-Updated Code collaboration-
Published by: user1002601 on 16 January 2013 08:33Insert Into RowWidVal( SELECT CASE WHEN NumGen <= GapSize+2 THEN (P2.MinGapStart-1)+NG.NumGen END RowWid, 0 FROM (SELECT MIN(T4.GapStart) MinGapStart, MIN(T4.GapStop) MinGapStop, (MIN(T4.GapStop) - MIN(T4.GapStart)) GapSize FROM (SELECT T2.row_wid + 1 GapStart, (SELECT MIN(T1.row_wid) - 1 FROM w_product_d_test T1 WHERE T1.row_wid > T2.row_wid) GapStop FROM w_product_d_test T2 LEFT OUTER JOIN w_product_d_test T3 ON T2.row_wid = T3.row_wid - 1 WHERE T3.row_wid IS NULL ) T4 WHERE T4.GapStop IS NOT NULL ) P2, (SELECT LEVEL NumGen FROM dual CONNECT BY LEVEL <= (SELECT ((Min(GapStop) - Min(T4.GapStart)) +1) GapSize FROM (SELECT T2.row_wid + 1 GapStart, (SELECT MIN(T1.row_wid) - 1 FROM w_product_d_test T1 WHERE T1.row_wid > T2.row_wid) GapStop FROM w_product_d_test T2 LEFT OUTER JOIN w_product_d_test T3 ON T2.row_wid = T3.row_wid - 1 WHERE T3.row_wid IS NULL ) T4 WHERE T4.GapStop IS NOT NULL) ) NG WHERE P2.MinGapStart < P2.MinGapStart+(GapSize+2));
Published by: user1002601 on 16 January 2013 08:39How about this?
Sample data:
SQL> create table w_product_d_test (row_wid number); Table created SQL> SQL> insert into w_product_d_test (row_wid) 2 select column_value 3 from table(sys.odcinumberlist(1,2,3,4,5,11,12,13,31,32,33,34)); 12 rows inserted SQL> select * from w_product_d_test; ROW_WID ---------- 1 2 3 4 5 11 12 13 31 32 33 34 12 rows selected
Generate sequence available numbers:
SQL> with gaps as ( 2 select rw, gapsize 3 from ( 4 select row_wid as rw 5 , row_wid - lag(row_wid,1,0) over(order by row_wid) - 1 as gapsize 6 from w_product_d_test 7 ) 8 where gapsize > 0 9 ) 10 select g.rw - t.column_value as available_rw 11 from gaps g 12 , table( 13 cast( 14 multiset( select level from dual connect by level <= g.gapsize ) 15 as sys.odcinumberlist 16 ) 17 ) t 18 ; AVAILABLE_RW ------------ 10 9 8 7 6 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 22 rows selected
-
Unique problem with selction on the table (Query Page)
Unique problem with selction on the table (Query Page)
I have a VO data Bulletin Board, with a transitional attribute for selction unique column.
My requirement is that I need to identify the line that was selected in the table.
I associated with fireAction singleSelection column, such that whenever the user selects the line
I'm looking for that VO using some rowIterator.
But when running the loop of the transient VO that is mapped to the singleSelection variable is the show as "n" / NUll
for all the lines...
So how do you identify the selected line in singleSelection to a table.
-SasiIn the property inspector of the element for which you've put firePartialAction, you can find a property named "parameters". That mention primary key as your setting.
You can get the arameter using pageContext.getparameter (
); -Anand
-
How to display records in a different table when you query an original table
Hi all
Currently, I have a problem. I have three tables.
The first table is user with the attributes username (primary key), password, full name etc.
Table 2 is books attributes (primary key) ISBN, title, author, Publisher, etc..
The last picture is a booking with the booking of attributes (primary key) number, user name (foreign key in the table reservation as it is a primary key in the table user), ISBN (foreign key in the table reservation as it is a primary key for the table of the book), number of orders and the date of the collection.
When I query my database using the username that I have, I can view all the related records the user name of my reservation Board.
Can I ask you how can I also view the Tite and author next results?
Please provide the detailed procedure that I am quite new in the present.
Thank you!
Do you in SQL by using joins. For example
SELECT the title, author, books, user.username, booking user
WHERE
User.UserName = reservation.username AND
books. ISBN = booking. ISBN
This is an example of a join in the WHERE clause using the pre ANSI92 syntax that I prefer. The most recent style uses joins in the FROM clause. Google SQL joins for more details.
-
Result of the SQL action in a non String table presentation
Hi all
I have a simple action with a SQL queries where I get a table as a result and which I use in a couple of the workflow.
What I need now is also an action with a SQL query, but that the result is a required string that I can set as "Default" in the presentation of the workflow.
Here is the action that I already have a table/string result
database is of Type SQL: Database entry
table is of Type SQL table
var currentUsersVMs = new Array();
Get the displayName property of the workflow Starter
try {}
jdbcConnection var = new JDBCConnection();
var connection = jdbcConnection.getConnection (database.connectionURL, database.username, database.password);
System.Debug ("... successful login");
var selectStatement = connection.createStatement ();
settle with your column names to get a string like
SELECT 'Server Name' IN 'yourTable' WHERE 'user' = 'Karl Mustermann '.
var selectString = "sΘlectionner SRV_Name from dbo. "VC_Info_All where POWERSTATE = 'On' ORDER BY SRV_NAME."
System.Debug ("request for enforcement:" + selectString);
resultSet var = selectStatement.executeQuery (selectString);
Depending on whether you expect users with no VM
If (! resultSet) throw ' no line not found in table ' "+ table.name +" ' ";
While (resultSet.next ()) {}
columns resultSet starts a 1!
currentUsersVMs.push (resultSet.getStringAt (1));
}
} catch (exception) {}
throw "error reading database:"+ exception; ".
} {Finally
try {if (resultSet! = null) () resultSet.close ;} catch (e) {};}
try {if (instructionselect! = null) selectStatement.close () ;} catch (e) {};}
try {if (connection! = null) Connection.Close ;} catch (e) {};}
}
System.Debug ("VMs for the current user:" + currentUsersVMs);
Action:
Return currentUsersVMs;
So, I already have the solution for this action.
-
Hi all
I'm on the OracleXE 11 GR 2 and have the following conditions for the release of the select statement:
Tables:
The power required is:GARAGE ====== ID GARAGE_NAME --- ----------- 1 GARAGE_1 2 GARAGE_2 PERSONS ======= ID GARAGE_ID NAME --- --------- ----- 1 1 NAME1_1 2 1 NAME1_2 3 1 NAME1_3 4 1 NAME1_4 5 1 NAME1_5 6 1 NAME1_6 7 2 NAME2_1 8 2 NAME2_2 9 2 NAME2_3 10 2 NAME2_4 CARS ==== ID GARAGE_ID CAR --- --------- ----- 1 1 CAR1_1 2 1 CAR1_2 3 1 CAR1_3 4 1 CAR1_4 5 2 CAR2_1 6 1 CAR2_2 7 1 CAR2_3 8 1 CAR2_4 9 1 CAR2_5 10 1 CAR2_6
How can I achieve this output?GARAGE_ID GARAGE_NAME CAR PERSON --------- ----------- ------ ------- 1 GARAGE_1 CAR1_1 NAME1_1 1 GARAGE_1 CAR1_2 NAME1_2 1 GARAGE_1 CAR1_3 NAME1_3 1 GARAGE_1 CAR1_4 NAME1_4 1 GARAGE_1 NAME1_5 1 GARAGE_1 NAME1_6 2 GARAGE_2 CAR2_1 NAME2_1 2 GARAGE_2 CAR2_2 NAME2_2 2 GARAGE_2 CAR2_3 NAME2_3 2 GARAGE_2 CAR2_4 NAME2_4 2 GARAGE_2 CAR2_5 2 GARAGE_2 CAR2_6
What is a parsing SQL problem?
Dear community, I need your help!
Kind regardsLooks like than just an outer join...
But how are you going to jining cars and people - from the name?
Or something like that?
with c as ( select c.garage_id,c.car,g.garage_name g_name, row_number() over(partition by c.garage_id order by c.id) rn from cars c,garage g where c.garage_id = g.id ), p as ( select p.garage_id,p.name p_name,g.garage_name g_name, row_number() over(partition by p.garage_id order by p.id) rn from persons p,garage g where p.garage_id = g.id ) select nvl(p.garage_id,c.garage_id) garage_id, nvl(p.g_name,c.g_name) garage_name, car,p_name person from c full outer join p on (c.garage_id = p.garage_id and c.rn = p.rn); GARAGE_ID GARAGE_NAME CAR PERSON --------- ----------- ------ ------- 1 GARAGE_1 CAR1_1 NAME1_1 1 GARAGE_1 CAR1_2 NAME1_2 1 GARAGE_1 CAR1_3 NAME1_3 1 GARAGE_1 CAR1_4 NAME1_4 1 GARAGE_1 NAME1_5 1 GARAGE_1 NAME1_6 2 GARAGE_2 CAR2_1 NAME2_1 2 GARAGE_2 CAR2_2 NAME2_2 2 GARAGE_2 CAR2_3 NAME2_3 2 GARAGE_2 CAR2_4 NAME2_4 2 GARAGE_2 CAR2_5 2 GARAGE_2 CAR2_6 12 rows selected
If this isn't what you want, please explain the logic to get to your exit.
Published by: JAC on November 17, 2012 15:15 -
Query a nested table of sdo_geometry
I have the following situation in the my database:
-----
SQL > drop type obj_type1 force;
create or replace TYPE obj_type1 AS OBJECT (id integer, geom sdo_geometry);
Drop type obj_type2 force;
create or replace TYPE obj_type2 AS OBJECT (id integer, m obj_type1);
Drop type geom_tab force;
create or replace TYPE geom_tab AS table obj_type2;
drop table tab1;
create table tab1 (name varchar2 (40), geom_info geom_tab) store geom_info table nested as geom_nt;
-Inserting data
insert into tab1 values ('1', geom_tab)
obj_type2 (1, obj_type1 (1, MDSYS.) SDO_GEOMETRY (2002, NULL, NULL, MDSYS.) SDO_ELEM_INFO_ARRAY (1,2,1), MDSYS. SDO_ORDINATE_ARRAY (2804.31, 12678.5, 12679.2, 2832.08))),
obj_type2 (2, obj_type1 (2, MDSYS.) SDO_GEOMETRY (2002, NULL, NULL, MDSYS.) SDO_ELEM_INFO_ARRAY (1,2,1), MDSYS. SDO_ORDINATE_ARRAY (2832.08, 12677.9, 12678.5, 2859.85)));
insert into tab1 values ('2', geom_tab)
obj_type2 (1, obj_type1 (1, MDSYS.) SDO_GEOMETRY (2002, NULL, NULL, MDSYS.) SDO_ELEM_INFO_ARRAY (1,2,1), MDSYS. SDO_ORDINATE_ARRAY (2859.85, 12677.3, 12677.9, 2887.63))),
obj_type2 (2, obj_type1 (MDSYS. SDO_GEOMETRY (2002, NULL, NULL, MDSYS.) SDO_ELEM_INFO_ARRAY (1,2,1), MDSYS. SDO_ORDINATE_ARRAY (2887.63, 12676.7, 12677.3, 2915.4)));
-update of metadata
INSERT INTO user_sdo_geom_metadata
(TABLE_NAME,
COLUMN_NAME,
DIMINFO,
SRID)
VALUES)
'geom_nt', - name of the nested table
"m.geom,"
MDSYS. SDO_DIM_ARRAY (MDSYS. SDO_DIM_ELEMENT ('X',-9267, 28329, 5-7), MDSYS. SDO_DIM_ELEMENT('Y',-2598,26587,5E-7)),
NULL - SRID VALUE
);
commit;
-creation of a spatial index
create index geom_ump_idx1 on geom_nt (m.geom) INDEXTYPE IS MDSYS. SPATIAL_INDEX;
-another table to the query
create the table querypointss (geometry sdo_geometry);
INSERT INTO user_sdo_geom_metadata
(TABLE_NAME,
COLUMN_NAME,
DIMINFO,
SRID)
VALUES)
'querypointss', - name of the nested table
"geometry."
MDSYS. SDO_DIM_ARRAY (MDSYS. SDO_DIM_ELEMENT ('X',-9267, 28329, 5-7), MDSYS. SDO_DIM_ELEMENT('Y',-2598,26587,5E-7)),
NULL - SRID VALUE
);
Insert values (querypointss)
MDSYS. SDO_GEOMETRY (2001, NULL, MDSYS.) SDO_POINT_TYPE (4224.0,6828.0,NULL), NULL, NULL));
commit;
-The following query works fine
SELECT *.
OF tab1 C, table (c.geom_info) tt, PP querypointss
WHERE mdsys.sdo_anyinteract (tt.m.geom,
MDSYS. SDO_GEOMETRY (2002, NULL, NULL, MDSYS.) SDO_ELEM_INFO_ARRAY (1,2,1), MDSYS. SDO_ORDINATE_ARRAY (2859.85, 12677.3, 12677.9, 2887.63))
) = "TRUE";
- But when the second argument of the sdo_anyinteract is a column in a table, it will not work
SELECT *.
OF tab1 C, table (c.geom_info) tt, PP querypointss
WHERE mdsys.sdo_anyinteract (tt.m.geom,
PP.geometry
) = "TRUE";
-----
and he returned this error:
Error report:
SQL error: ORA-13268: error to get the dimension of the USER_SDO_GEOM_METADATA
ORA-06512: at the 'MDSYS. MD", line 1723
ORA-06512: at the 'MDSYS. MDERR", line 8
ORA-06512: at the 'MDSYS. SDO_3GL", line 132
ORA-06512: at the 'MDSYS. SDO_3GL', line 256
13268 00000 - «Error get the dimension of the USER_SDO_GEOM_METADATA»
* Cause: There is no entry in the USER_SDO_GEOM_METADATA view for the specified
table of geometry.
* Action: Insert an entry for the destination geometry table with
correct size information.What is
/ * + foreground (pp tt) use_nl (pp tt) use_index (tt geom_ump_idx1) * /.or
/ * + leading (pp tt) USE_NL_WITH_INDEX (tt geom_ump_idx1) * /.
-
Possible to insert more than once in the same table using multi table insert?
I used multi-table insert before insert a source separate from the tables without problem.
However, when I want to insert into the same table two or more distinct lines, I encountered a problem because when I call nextval on the sequence since this is the same sequence # will try to use the same number for two inserts, which will raise a violation of PK constraint on the 2nd insert.
A way around this problem?Another option is to create the sequence with increases of 2 or however many tables, you are targeting.
When you then specify the. NEXTVAL, you must subtract the relative number of it, apart from the first table that you insert in to.Something like that;
drop table t1; create table t1 (a number, b number); drop table t2; create table t2 (a number, b number); drop sequence test_seq / create sequence test_seq increment by 2 minvalue 0 / insert all when 1 = 1 then into t1 (a, b) values (test_seq.nextval, 1) when 1 = 1 then into t2 (a, b) values (test_seq.nextval - 1, 1) select 1, 1 from dual /
-
Deliver the trigger, multi-table insert logging of errors
I find that if I try to perform an insert multi-table with logging of errors on a table that has a trigger, then some violations of constraints result in a raised exception being as connected:
< pre >
SQL > select * from v version $;
BANNER
--------------------------------------------------------------------------------
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
PL/SQL Release 11.2.0.1.0 - Production
CORE 11.2.0.1.0 Production
AMT for 32-bit Windows: Version 11.2.0.1.0 - Production
NLSRTL Version 11.2.0.1.0 - Production
SQL > create table t1 (primary key of all id ;)
Table created.
SQL > create table t2 (id integer, t1_id integer primary key,
2 constraint t2_t1_fk foreign key (t1_id) refers to t1);
Table created.
SQL > exec dbms_errlog.create_error_log ("T2");
PL/SQL procedure successfully completed.
SQL > insert all
2 in t2 (id, t1_id)
3 values (x, y)
4 errors in the journal in err$ _t2 limit unlimited rejection
5. Select 1 x, 2 double y;
0 rows created.
SQL > create or replace trigger t2_trg
2 before insert or update on t2
3 for each line
4 start
5 zero;
6 end;
5 m
Trigger created.
SQL > insert all
2 in t2 (id, t1_id)
3 values (x, y)
4 errors in the journal in err$ _t2 limit unlimited rejection
5. Select 1 x, 2 double y;
Insert all
*
ERROR on line 1:
ORA-02291: integrity constraint (enhanced oil recovery. T2_T1_FK) violated - key parent not found
< code >
This does not seem to be a documented restriction. Anyone know if this is a bug?Hi Tony,.
Looks like you ran into Bug 9539578: INSERT ALL AND TRIGGER CAUSES ERROR LOGGING to FAIL (ROLLBACK)
Concerning
Peter -
Two tables have been targeted in sql but show only a single table top running pln
Dear all,
I captured in statspack following sql. There are two tables mentioned in the sql code. However, in the execution plan, it is alone. Grateful if you can help us with that. TQ.
Here's the updated sql shaped for ease of readingCPU Elapsd Buffer Gets Executions Gets per Exec %Total Time (s) Time (s) Hash Value --------------- ------------ -------------- ------ -------- --------- ---------- 448,047,663 3,738 119,862.9 95.5 1208.81 1387.07 998768410 Module: java@myfabbus (TNS V1-V3) SELECT QID, MID, MSG_STATE, MSG_STATE_WHEN FROM mybus.MYIQ_myb us WHERE MID = (SELECT MIN(Q.MID) FROM mybus.MYIQ_mybus Q, myb us.MYIM_mybus M WHERE M.MSG_NAME = :1 AND M.MSG_VERSION = :2 AND M.MID = Q.MID AND Q.MSG_STATE = 0) AND MSG_STATE = 0
Here's the sql for the query statspack report. Note that there is only one table (MYIQ_mybus) mentioned in the implementation plan.SELECT QID, MID, MSG_STATE, MSG_STATE_WHEN FROM mybus.MYIQ_mybus WHERE MID = (SELECT MIN(Q.MID) FROM mybus.MYIQ_mybus Q, mybus.MYIM_mybus M WHERE M.MSG_NAME = :1 AND M.MSG_VERSION = :2 AND M.MID = Q.MID AND Q.MSG_STATE = 0) AND MSG_STATE = 0
RgdsSTATSPACK SQL report for Hash Value: 998768410 Module: java@myfabbus (TNS V1-V3) DB Name DB Id Instance Inst Num Release Cluster Host ------------ ----------- ------------ -------- ----------- ------- ------------ MYBUSPRD 2074549195 MYBUSPRD 1 9.2.0.5.0 NO mydm01 Start Id Start Time End Id End Time Duration(mins) --------- ------------------- --------- ------------------- -------------- 41 13-Jan-10 08:32:14 42 13-Jan-10 09:02:15 30.02 SQL Statistics ~~~~~~~~~~~~~~ -> CPU and Elapsed Time are in seconds (s) for Statement Total and in milliseconds (ms) for Per Execute % Snap Statement Total Per Execute Total --------------- --------------- ------ Buffer Gets: 405,851,843 204,356.4 92.38 Disk Reads: 0 0.0 .00 Rows processed: 1,593 0.8 CPU Time(s/ms): 1,069 538.4 Elapsed Time(s/ms): 1,120 563.9 Sorts: 0 .0 Parse Calls: 121 .1 Invalidations: 0 Version count: 1 Sharable Mem(K): 34 Executions: 1,986 SQL Text ~~~~~~~~ SELECT QID, MID, MSG_STATE, MSG_STATE_WHEN FROM mybus.MYIQ_myb us WHERE MID = (SELECT MIN(Q.MID) FROM mybus.MYIQ_mybus Q, myb us.MYIM_mybus M WHERE M.MSG_NAME = :1 AND M.MSG_VERSION = :2 AND M.MID = Q.MID AND Q.MSG_STATE = 0) AND MSG_STATE = 0 All Optimizer Plan(s) for this Hash Value ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Shows all known Optimizer Plans for this Hash value, and the Snap Id's they were first found in the shared pool -> ordered by Snap Id Plan Hash Value Snap Id Cost Optimizer ------------ -------- ---------- -------------------- 4280385364 3 2 CHOOSE Plans in shared pool between Begin and End Snap Ids ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Shows the Execution Plans found in the shared pool between the begin and end snapshots specified. The values for Rows, Bytes and Cost shown below are those which existed at the time the first-ever snapshot captured this plan - these values often change over time, and so may not be indicative of current values -> Rows indicates Cardinality, PHV is Plan Hash Value -> ordered by Plan Hash Value -------------------------------------------------------------------------------- | Operation | PHV/Object Name | Rows | Bytes| Cost | -------------------------------------------------------------------------------- |SELECT STATEMENT |----- 4280385364 ----| | | 2 | |TABLE ACCESS BY INDEX ROWID |MYIQ_MYBUS | 1 | 26 | 2 | | INDEX UNIQUE SCAN |MYIQ_MYBUS_I1 | 1 | | 1 | -------------------------------------------------------------------------------- End of Report
Ung
-
JDev11g - prevention of query for the table running until ExecWithParams press
JDev 11 g ADF-Faces with task flow creation web app - test a single page.
I have five variable bind I have installed with reference LOV to display the name return ID's, two are dates that work now! I have the ExecWithParams button, then on a table that uses a VO with a custom query with the dregs.
I need links to be filled, but the page takes a while to load, and my guess is that the request for the table tries to run, but does not receive all the data since the lie is empty at the start. The query runs great once I have complete binding and press the ExecWithParams button.
How can I stop the query in the table to run until the ExecWithParams button is pressed? I'm guessing that this is the problem since it takes several minutes when the link to the browser is launched and makes the page actually. All requests for links are very simple, while the request of VO is very complex. Or maybe something else wrong that I'm not getting?
Thank you, KenSomething that I use occasionally is the substitution of the VO executeQuery method.
public void executeQuery() { if (getWhereClause() == null){ setWhereClause("1=2"); } super.executeQuery(); }
It works for running dynamic bind variable.
For your case, you could do something like...
public void executeQuery() { if (getNamedWhereClauseParam("YOUR_BIND_VARIABLE") == null){ setWhereClause("1=2"); } super.executeQuery(); }
-
Need urgent help is it you like G500 problems to start with corrupted Table GPT
I had some problems installing AVG antivirus software. I had to force quit.
After that. I am not able to start windows 8.1
I try with the rescue "Parted Magic" software, which comes with a utility called "Gparted".
This utility recognizes my hard drive but tells me there are a few problems with my GPT Table:«/ dev/sda contains the signatures of TPG, indicating that she has a GPT table.» However, it doesn't have a valid fake msdos partition table, as it should. Maybe it has been altered - possibly by a program that does not include the GPT partition tables. Or maybe you deleted the table GPT and are now using a msdos partition table. What is a GPT partition table? »
So, I can not access my 'PartedMagic' data or start Windows 8.1
I guess the problem is that my GPT table is corrupted, but I do not know how to take the problem.
Could someone give some advice?
Thank you in advance, I'm lost.
PD: with gdisk or gparted, I can access the GPT table:
GParted:
GDISK:
Thanks for your attention neokenchi.
I finally solved my problem.
GDisk I had only to write the table to disk (option w), and everything is back to normal.
I can't be sure, but I guess I must have been some problem with header the GPT and save to disk may have corrected the problem.
So, I hope this can help others in my situation.
You can close this thread.
Thanks again for your help.
-
What is the SQL to determine what are the table objects in the KEEP buffer pool?
What is the SQL to determine what are the table objects in the KEEP buffer pool?
Select owner, table_name
from dba_tables
where USER_TABLES = "KEEP."
/
David Fitzjarrell
-
Querying the oracle table that has a column with the name of "FILE".
Hi all
I need to have an oracle table that has the column with the name "FILE".
I can query all columns with the query "select * from table".
But I'm not able to use the query "select the table file.
This table is converted from ms access to oracle and I need to have this column with the name "FILE".
Any suggestions?
Thank you
Abdellaoui
Hello
FILE is a keyword from Oracle, so it's not a good name,
Use FILEDATE, or DATE_FILED, or something else that is not in V$ RESERVED_WORDS. KEYWORD as the name column.
If you need to use the FILE, then you must use quotation marks.
-
IKM Oracle Multi Table Insert obsolete?
The description for 'IKM Oracle Multi Table Insert' reads:
-Snip-
DEPRECATED: KM has been deprecated and may be removed without notice in future versions ODI. Please use the MTI ODI mappings feature.
-Snip-
Can someone tell me the right way to do it in 12 c? Everything I tried publishes two inserts instead of an insert of all.
Thank you
Scott
12 c, there is now a revenge for this called "IKM Oracle down". He doesn't appear on the physical tab and cannot be imported because it is built in.
Maybe you are looking for
-
Lenovo vibe p1 muti tasks issue
Guys, Please address the issue of multi-tasking, after that update updated 42 named Mo 151207-line.The screen goes black for 5-7 seconds when us multi task after this update.Many users are facing the same problem.Very disappointing. Please address it
-
Hi all I continue to experience a crash when I try to move a large selection of tiles with the keyboard. Happens to me on LV2009 (development suite) in Windows 7 Enterprise and LV2010 Student Edition on Win7 Home Premium. The tiles will move a few
-
Methor or property for tools >; >; options
I just want to change my labVIEW options (Tools > options) thanks to a method or property node and I can't figure where he is...
-
How can I get updates manually. My automatic update does not once AGAIN, and I would like to just work around it and install my updates of the old fashioned way. Whenever I go to the Windows update site it returns me to the update with no other aut
-
Copy of Office Pro 8500 has in draft mode
Every time I manually copy the default values of print quality on the 'normal' even though I have the quality of the printer set to "draft". How can I get quality printing default copy of "project"?