To Find Table Count!
Hi all,
Is there any method to find the number of tables in a database(Mysql) through the query.
Thanks in Advance,
prakhyath
here a typical code.
it works fine for me (see comments):
import java.sql.*;
public class MySQLTest {
public static void main(String[] args) {
Connection c = null;
Statement stmt = null;
ResultSet rs = null;
String db = "your_db";
String user = "username";
String password = "password";
try {
/* Test loading driver */
String driver = "com.mysql.jdbc.Driver";
System.out.println("=> loading driver:");
Class.forName(driver);
System.out.println("Loading driver OK");
/* Test the connection */
String url = "jdbc:mysql://127.0.0.1:3302/" + db;
System.out.println("=> connecting:");
c = DriverManager.getConnection(url, user, password);
System.out.println("Connecting OK");
stmt = c.createStatement();
rs = stmt.executeQuery("show tables");
// Display result set meta data
ResultSetMetaData rsmd = rs.getMetaData();
int cc = rsmd.getColumnCount();
for (int i = 1; i <= cc; i++) {
System.out.println(rsmd.getColumnName(i));
//Display all tables
int count = 0;
while(rs.next()){
System.out.println(rs.getString("Tables_in_" + db));
count++;
System.out.println("Found "+count+" Tables");
} catch (Exception x) {
x.printStackTrace();
} finally {
if (rs != null)
try {
rs.close();
} catch (Exception e) {
// TODO: handle exception
if (stmt != null)
try {
stmt.close();
} catch (Exception e) {
// TODO: handle exception
if (c != null)
try {
c.close();
} catch (Exception e) {
// TODO: handle exception
NB: use the correct username, password, url and port.
Hope that helps
Similar Messages
-
How to find the count of tables going for fts(full table scan in oracle 10g
HI
how to find the count of tables going for fts(full table scan) in oracle 10g
regardsHi,
Why do you want to 'find' those tables?
Do you want to 'avoid FTS' on those tables?
You provide little information here. (Perhaps you just migrated from 9i and having problems with certain queries now?)
FTS is sometimes the fastest way to retrieve data, and sometimes an index scan is.
http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:9422487749968
There's no 'FTS view' available, if you want to know what happens on your DB you need, like Anand already said, to trace sessions that 'worry you'. -
Create/find tables and apply style
Hello,
I'm very new to scripting. I want to learn the basics like creating a table, creating anchored frames, textframes, etc.
Now, I want to create/find tables in a document and I would like to apply styles. I saw a script to do this. When I paste the script in Extendscript CS4, than the program crash.
The program crash in part 1. When I create another script with only part 2 (see //part 2) then there is no problem.
What do i wrong? And can anyone tell me what part 1 of the script do?
Thanks,
// part 1
// using your version; I'd prefer to return 0 if table not found
function findTable(obj) {
while (obj.constructor.name != "Table") {
obj = obj.parent;
if (obj.constructor.name == "Application") {
throw "Can't find table"
return obj
// part 2
var myTable = 0;
if (app.documents.length > 0 && app.selection.length > 0)
myTable = findTable(app.selection[0]);
// check for at least enough rows for 1 top row, 1 body row, 1 bottom row
if (myTable != 0 && myTable.rows.length >= 3) {
// delete all rules; set insets to 0
myTable.cells.everyItem().appliedCellStyle = "[None]";
// format bottom row
// (remember rows uses 0-based count)
a = myTable.rows.length - 1;
myTable.rows[a].cells.everyItem().appliedCellStyle = "4.cell_body_last";
// format middle rows
first = 1;
last = myTable.rows.length - 2;
for (a = first; a <= last; ++a)
myTable.rows[a].cells.everyItem().appliedCellStyle = "3.cell_body";
// format top row
a = 0;
myTable.rows[a].cells.everyItem().appliedCellStyle = "2.cell_header";Part 1 expects the text cursor to be anywhere inside a table -- either in the regular text, or with a cell, row, column, or the entire table selected.
It walks "up" using its parent until it arrives at the table object itself.
This will only work if the text cursor actually is anywhere inside a table. It does nothing when you are somewhere else, and it only works with the "current" table. -
How to find table name for the fields from Standard Extractor in CRM system
How to find table name of fields from the standard extractor in CRM system ?
e.g. We use LBWE TCode in R/3 system to find table name for the field from Extractor VCSCL(e.g.).
Likewise is there any way to find table name for the fields from Standard extractor like 0CRM_LEAD_I.Hi ,
Please find the link below for understanding BW CRM analysis.
http://help.sap.com/bp_biv135/html/bw.htm
activate the CRM DSs by scenario:
1) Activate the application component hierarchy (tcode RSA9). Changes made to the application component hierarchy in the CRM system can be transferred to the BW using the "Edit Application Component Hierarchy" (SBIW - Postprocessing of DataSources).
SAP Note 434886 must be implemented in CRM 3.0 before the application component hierarchy is activated.
2) Activate the Business Content DataSources (tcode RSA5).
Select/enter the application component and choose Execute (F8).
To compare the shipped and active versions, choose the 'Select Delta' pushbutton. If there is no active version of the DataSource, it is selected automatically.
To activate the shipped version, choose the 'Transfer DataSources' pushbutton.
3) Management of the versions of the BW-Adapter metadata (tcode BWA5). All DataSources are displayed that are managed by the BW Adapter.
As in transaction RSA5 (Service API Metadata Activation), the 'Select Delta' function can be used to select the inactive DataSources or compare shipped and active versions.
You can also go directly to the screen for maintaining DataSources that are managed by the BW Adapter.
The 'Compare Version' function makes a detailed comparison of the shipped and active versions.
All BW-Adapter metadata is considered when versions are compared:
Header information (Table SMOXHEAD)
Mapping information (Table SMOXRELP)
Global selection conditions (Table SMOXGSEL)
Attribute key fields (Table SMOXAFLD)
Hope this helps.
Regards,
csm reddy -
System Variable For Internal table count
Can anybody tell me what the system variable for internal table count?
I just wants to know how many recoreds are there in my internal table ?
Regards,
pandu.Hi ,
DESCRIBE TABLE <itab> [LINES <l>] [OCCURS <n>] [KIND <k>].
If you use the LINES parameter, the number of filled lines is written to the variable <lin>. If parameter, the you use the OCCURS value of the INITIAL SIZE of the table is returned to the variable <n>. If you use the KIND parameter, the table type is returned to the variable <k>: T for standard table, S for sorted table, and H for hashed table.
using variable
SY-TFILL
After the statements DESCRIBE TABLE, LOOP AT, and READ TABLE, SY-TFILL contains the number of lines in the relevant internal table.
http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3798358411d1829f0000e829fbfe/content.htm
<REMOVED BY MODERATOR>
Edited by: Alvaro Tejada Galindo on Feb 21, 2008 4:53 PM -
Function in finding the count of ocurrances of an XML tag in j developer
Hi All,
I need to find the count of an xml tag that appears mutliple times in an xml payload.
I did not find any function in bpel doing this.I am using j developer version 11.1.1.5.0 and SOA Composite editor version 11.1.1.5.0.01.74
Is there any function in Bpel that gives as the count of occurence of an element in a payload?
Kindy suggest me on this.The below function is used inside XSLT to count the nodeset
count(inputNodeSet as node-set)
Returns the number of nodes in inputNodeSet.
Thanks,
Vijay -
Incorrect Table Counts after Import
Hi,
I'm currently involved in an upgrade from 4.6C to ECC6 EHP4 based on NW701. The upgrade and the export has completed successfully. I've completed the import successfully but have noticed that the tables counts on EDI40 & RFBLG have increased significantly, difference of 1367079 records for EDI40 & 613166 records for RFBLG.
I did have a problem during the import where the server crashed but these packages were not running at that time. They had completed prior to the hardware failure. The import logs all state that the packages have completed successfully. Both tables were split with the corresponding column specified from the R3hints file.
Environment Details:
OS: Linux RH4
DB: Oracle 10.2.0.4
Has anyone experienced this before? This now leads to doubts about the validity of all the other packages imported. Is there a way to verify the import besides doing table counts?
Thanks,
Cheng
P.S: These are cluster tables and have since found OSS Note 1356472. I'd still be interested in any comments regarding this topic
Edited by: Chengappa Ballachanda on Apr 19, 2010 11:33 AMConfirmed by SAP.
-
List of tables count and Views count in schema wise
Hi All,
I want to get all tables count and views count in Schema wise, What is the query for that?
Thanks in Advance.SELECT COUNT(*) FROM sys.tables t join sys.schemas s
on s.schema_id=t.schema_id
SELECT COUNT(*) FROM sys.views t join sys.schemas s
on s.schema_id=t.schema_id
Best Regards,Uri Dimant SQL Server MVP,
http://sqlblog.com/blogs/uri_dimant/
MS SQL optimization: MS SQL Development and Optimization
MS SQL Consulting:
Large scale of database and data cleansing
Remote DBA Services:
Improves MS SQL Database Performance
SQL Server Integration Services:
Business Intelligence -
How to find Tables behind a Custom Query in SAP
Hi Gurus,
Can anyone please help me find tables behind a custom query in SAP.
Regards
AsHi
Check the name of the programm assigned to transaction, it should be like this:
AQZZ<user group>=======<query name>======
or
AQIC<user group>=======<query name>======
It depends of the query area is global or cross-client
So run SQ01, select the quey area, select the quey group and so your query: now you can see the infoset and then you see it by SQ02 transaction
Max -
Finding table fragmentation in Oracle 8.1.6.3.0
Hi All,
I just want to find table fragmentation for one table named LOG. I used below query to find this....
SQL> select table_name,round((blocks*8),2)||'kb' "size"
from dba_tables
where table_name = 'LOG' and owner='AMRWF1'; 2 3
TABLE_NAME size
LOG 6301408kb
SQL> select table_name,round((num_rows*avg_row_len/1024),2)||'kb' "size"
from dba_tables
where table_name = 'LOG' and owner='AMRWF1'; 2 3
TABLE_NAME size
LOG 1468846.2kbAnd tablespace infromation is below.
SQL> select bytes/1024/1024,TABLESPACE_NAME,EXTENTS,MAX_EXTENTS from dba_segments where owner='AMRWF1' and segment_name='LOG';
BYTES/1024/1024 TABLESPACE_NAME EXTENTS MAX_EXTENTS
6154.16406 WFMKTLEAST 12214 2147483645
SQL> sho parameter block
NAME TYPE VALUE
db_block_buffers integer 100000
db_block_checking boolean FALSE
db_block_checksum boolean FALSE
db_block_lru_latches integer 3
db_block_max_dirty_target integer 100000
db_block_size integer 8192
db_file_multiblock_read_count integer 8
hash_multiblock_io_count integer 0
sort_multiblock_read_count integer 2Please mention whether i am fallowing proper method to find table fragmentation and this table is severly fragmented or not???
-Yasser
Edited by: YasserRACDBA on May 12, 2009 7:17 PMSir Please refer below statspack report
STATSPACK report for
Snap Length
Start Id End Id Start Time End Time (Minutes)
201 213 13-May-09 01:32:02 13-May-09 01:51:30 19.47
Cache Sizes
~~~~~~~~~~~
db_block_buffers: 100000
db_block_size: 8192
log_buffer: 2097152
shared_pool_size: 132003840
Load Profile
~~~~~~~~~~~~
Per Second Per Transaction
Redo size: 186,962.61 2,244.02
Logical reads: 18,690.20 224.33
Block changes: 835.84 10.03
Physical reads: 1,422.98 17.08
Physical writes: 59.20 0.71
User calls: 693.17 8.32
Parses: 219.19 2.63
Hard parses: 95.50 1.15
Sorts: 122.47 1.47
Transactions: 83.32
Rows per Sort: 13.87
Pct Blocks changed / Read: 4.47
Recursive Call Pct: 57.35
Rollback / transaction Pct: 0.01
Instance Efficiency Percentages (Target 100%)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Buffer Nowait Ratio: 99.82
Buffer Hit Ratio: 92.39
Library Hit Ratio: 85.79
Redo NoWait Ratio: 99.99
In-memory Sort Ratio: 100.00
Soft Parse Ratio: 56.43
Latch Hit Ratio: 99.55
Top 5 Wait Events
~~~~~~~~~~~~~~~~~ Wait % Total
Event Waits Time (cs) Wt Time
log file sync 98,328 308,489 52.94
db file sequential read 1,462,138 135,491 23.25
buffer busy waits 40,122 41,574 7.13
log file parallel write 67,541 29,561 5.07
latch free 14,153 29,250 5.02
^LWait Events for DB: PRDTDB Instance: prdtdb Snaps: 201 - 213
->cs - centisecond - 100th of a second
->ms - millisecond - 1000th of a second (unit often used for disk IO timings)
Avg
Total Wait wait Waits
Event Waits Timeouts Time (cs) (ms) /txn
log file sync 98,328 4 308,489 31 1.0
db file sequential read 1,462,138 0 135,491 1 15.0
buffer busy waits 40,122 1 41,574 10 0.4
log file parallel write 67,541 8 29,561 4 0.7
latch free 14,153 10,702 29,250 21 0.1
db file parallel write 5,099 0 18,117 36 0.1
db file scattered read 18,561 0 9,258 5 0.2
db file parallel read 3,227 0 5,658 18 0.0
SQL*Net more data to client 44,457 0 1,188 0 0.5
log file sequential read 8,020 0 1,070 1 0.1
direct path write 410 0 669 16 0.0
direct path read 688 0 556 8 0.0
control file parallel write 444 0 533 12 0.0
library cache pin 517 0 461 9 0.0
LGWR wait for redo copy 798 143 414 5 0.0
log file switch completion 30 0 349 116 0.0
single-task message 4 0 27 68 0.0
file open 959 0 23 0 0.0
log file single write 20 0 7 4 0.0
control file sequential read 458 0 4 0 0.0
refresh controlfile command 36 0 3 1 0.0
enqueue 9 0 2 2 0.0
file identify 40 0 1 0 0.0
SQL*Net break/reset to clien 4 0 0 0 0.0
buffer deadlock 2 2 0 0 0.0
SQL*Net message from client 809,303 0 19,936,895 246 8.3
virtual circuit status 38 38 116,785 ##### 0.0
SQL*Net message to client 809,327 0 310 0 8.3
SQL*Net more data from clien 477 0 43 1 0.0
^LSQL ordered by Gets for DB: PRDTDB Instance: prdtdb Snaps: 201 - 213
Gets % of
Buffer Gets Executes per Exec Total Hash Value
SQL statement
262,083 159,120 1.6 1.2 382965845
SELECT GEOPAR,NAME FROM GEO WHERE GEOCOD = RTRIM(:b1)
146,040 1 146,040.0 .7 1754824507
SELECT ERROR,TIME_STAMP,O_RESOURCE,QUEUE,NEW_QUEUE FROM LOG WHERE ID = '09120A
141,075 1 141,075.0 .6 1542925332
SELECT ERROR,TIME_STAMP,O_RESOURCE,QUEUE,NEW_QUEUE FROM LOG WHERE ID = '09120A
128,943 12,612 10.2 .6 4085293067
UPDATE OBJECT SET OWNER = NULL, LOCKTIME = 0, QUEUE_TIMESTAMP = NULL WHERE "ID
91,085 1 91,085.0 .4 323282248
SELECT ERROR,TIME_STAMP,O_RESOURCE,QUEUE,NEW_QUEUE FROM LOG WHERE ID = '09126A
90,887 1 90,887.0 .4 2613220927
SELECT ERROR,TIME_STAMP,O_RESOURCE,QUEUE,NEW_QUEUE FROM LOG WHERE ID = '09126A
66,045 9,174 7.2 .3 3352553713
SELECT DOC_NUM,TITLE,AUTHOR,C.TYPE,DATE_RPT,S.COLLECTION,S.AUTOMATION,LANG,SOU
61,337 9,498 6.5 .3 2345958421
SELECT PAGENO PAGENO FROM NONBILL WHERE REPORTID = :b1
59,669 9,500 6.3 .3 4181220996
SELECT RTRIM(SUBCOLLECT) SUBCOLLECT_CODE FROM MARK_SUBCOLLECT WHERE SRCCOD
54,543 1 54,543.0 .2 2236963897
SELECT ERROR,TIME_STAMP,O_RESOURCE,QUEUE,NEW_QUEUE FROM LOG WHERE ID = '09128A
54,517 1 54,517.0 .2 2215353317
SELECT ERROR,TIME_STAMP,O_RESOURCE,QUEUE,NEW_QUEUE FROM LOG WHERE ID = '09128A
54,493 1 54,493.0 .2 1430216754
SELECT ERROR,TIME_STAMP,O_RESOURCE,QUEUE,NEW_QUEUE FROM LOG WHERE ID = '09128A
54,450 1 54,450.0 .2 3671439846
SELECT ERROR,TIME_STAMP,O_RESOURCE,QUEUE,NEW_QUEUE FROM LOG WHERE ID = '09128A
54,443 1 54,443.0 .2 4024618165
SELECT ERROR,TIME_STAMP,O_RESOURCE,QUEUE,NEW_QUEUE FROM LOG WHERE ID = '09128A
54,404 1 54,404.0 .2 4144413353
SELECT ERROR,TIME_STAMP,O_RESOURCE,QUEUE,NEW_QUEUE FROM LOG WHERE ID = '09128A
54,185 1 54,185.0 .2 3853441439
SELECT ERROR,TIME_STAMP,O_RESOURCE,QUEUE,NEW_QUEUE FROM LOG WHERE ID = '09128A
54,122 1 54,122.0 .2 4066390851
SELECT ERROR,TIME_STAMP,O_RESOURCE,QUEUE,NEW_QUEUE FROM LOG WHERE ID = '09128A
^LSQL ordered by Reads for DB: PRDTDB Instance: prdtdb Snaps: 201 - 213
Physical Reads % of
Reads Executes per Exec Total Hash Value
SQL statement
52,578 1 52,578.0 3.2 1754824507
SELECT ERROR,TIME_STAMP,O_RESOURCE,QUEUE,NEW_QUEUE FROM LOG WHERE ID = '09120A
31,998 1 31,998.0 1.9 2613220927
SELECT ERROR,TIME_STAMP,O_RESOURCE,QUEUE,NEW_QUEUE FROM LOG WHERE ID = '09126A
16,013 1 16,013.0 1.0 323282248
SELECT ERROR,TIME_STAMP,O_RESOURCE,QUEUE,NEW_QUEUE FROM LOG WHERE ID = '09126A
10,819 1 10,819.0 .7 1542925332
SELECT ERROR,TIME_STAMP,O_RESOURCE,QUEUE,NEW_QUEUE FROM LOG WHERE ID = '09120A
5,940 9,500 0.6 .4 1788460650
SELECT RTRIM(SUBJCT) TICKER,RTRIM(NAME) NAME,RTRIM(STATE) STATE,RTRIM(COUNTRY)
5,011 5 1,002.2 .3 1283665788
INSERT INTO STATS$SQL_SUMMARY ( SNAP_ID,DBID,INSTANCE_NUMBER,SQL_TEXT,SHARABLE
3,532 104 34.0 .2 2416764375
INSERT INTO DOC_SUBJCT ( DOC_NUM,TYPE,SUBJCT ) VALUES ( TO_NUMBER(:b1),:b2,:b
3,178 3 1,059.3 .2 2869630514
BEGIN statspack.snap(i_snap_level => 10, i_modify_parameter => 'true'); END;
1,576 9,174 0.2 .1 3352553713
SELECT DOC_NUM,TITLE,AUTHOR,C.TYPE,DATE_RPT,S.COLLECTION,S.AUTOMATION,LANG,SOU
816 1,753 0.5 .0 2074917603
INSERT INTO LOG (ID,TIME_STAMP,TYPE,ERROR,INSTANCE,RULE_NUM,RULE_TYPE,PRIORITY
754 324 2.3 .0 4111801531
begin packager.get_citation(:param1 , :out); end;
567 83 6.8 .0 924335069
INSERT INTO CORDOC ( DOC_NUM,PARENT_DOC,SOURCE,AUTHOR,TITLE,DATE_RPT,DATE_RCVD
441 9,500 0.0 .0 2184883084
SELECT TPCCOD,TPCNAM FROM TOPICS T,DOC_SUBJCT D WHERE D.DOC_NUM = :b1 AND
430 104 4.1 .0 2993182807
INSERT INTO DOC_SUBJCT_UPD_LOG ( DOC_NUM,TYPE,SUBJCT,TYPE_OF_CHANGE,CREATED_LO
406 9,498 0.0 .0 2345958421
SELECT PAGENO PAGENO FROM NONBILL WHERE REPORTID = :b1
304 414 0.7 .0 199702406
select i.obj#,i.ts#,i.file#,i.block#,i.intcols,i.type#,i.flags, i.property,i.p
300 7,733 0.0 .0 3207681720
SELECT NVL(IMAGES,0) IMAGES,NVL(NONBILLABLE,0) NONBILLABLE FROM IMAGED_DOCUM
^LSQL ordered by Rows for DB: PRDTDB Instance: prdtdb Snaps: 201 - 213
Rows Rows
Processed Executes per Exec Hash Value
SQL statement
87,357 159,120 0.5 382965845
SELECT GEOPAR,NAME FROM GEO WHERE GEOCOD = RTRIM(:b1)
32,818 9,498 3.5 2345958421
SELECT PAGENO PAGENO FROM NONBILL WHERE REPORTID = :b1
12,612 12,612 1.0 4085293067
UPDATE OBJECT SET OWNER = NULL, LOCKTIME = 0, QUEUE_TIMESTAMP = NULL WHERE "ID
9,544 9,544 1.0 1230017382
SELECT LOG_SEQUENCE.NEXTVAL FROM DUAL
9,498 9,498 1.0 2684256693
SELECT RTRIM(NAME) NAME FROM LANG WHERE LANG.CODE = :b1
9,174 9,174 1.0 3352553713
SELECT DOC_NUM,TITLE,AUTHOR,C.TYPE,DATE_RPT,S.COLLECTION,S.AUTOMATION,LANG,SOU
7,575 7,733 1.0 3207681720
SELECT NVL(IMAGES,0) IMAGES,NVL(NONBILLABLE,0) NONBILLABLE FROM IMAGED_DOCUM
7,526 9,500 0.8 1788460650
SELECT RTRIM(SUBJCT) TICKER,RTRIM(NAME) NAME,RTRIM(STATE) STATE,RTRIM(COUNTRY)
6,485 514 12.6 395844583
select name,intcol#,segcol#,type#,length,nvl(precision#,0),decode(type#,2,nvl(
3,308 9,499 0.3 3612837332
SELECT RTRIM(D.SUBJCT) INDCOD,RTRIM(INDNAM) INDNAM,NIC_COD_BEST FROM DOC_SUB
2,642 9,500 0.3 4181220996
SELECT RTRIM(SUBCOLLECT) SUBCOLLECT_CODE FROM MARK_SUBCOLLECT WHERE SRCCOD
1,753 1,753 1.0 2074917603
INSERT INTO LOG (ID,TIME_STAMP,TYPE,ERROR,INSTANCE,RULE_NUM,RULE_TYPE,PRIORITY
1,380 1,855 0.7 1867085649
INSERT INTO LOG (ID,TIME_STAMP,TYPE,ERROR,INSTANCE,RULE_NUM,RULE_TYPE,PRIORITY
1,347 359 3.8 1536916657
select con#,type#,condlength,intcols,robj#,rcon#,match#,refact,nvl(enabled,0),
870 104 8.4 2416764375
INSERT INTO DOC_SUBJCT ( DOC_NUM,TYPE,SUBJCT ) VALUES ( TO_NUMBER(:b1),:b2,:b
828 433 1.9 1943674664
SELECT CLASS, PRIVILEGE FROM PRIVILEGE WHERE GROUP_NAME = 'SYSADMIN'
723 433 1.7 2958422142
SELECT CLASS, PRIVILEGE FROM PRIVILEGE WHERE GROUP_NAME = 'DEFAULT'
^LLatch Activity for DB: PRDTDB Instance: prdtdb Snaps: 201 - 213
->"Pct Misses" should be very close to 0.0
Pct Avg Pct
Get Get Sleeps Nowait Nowait
Latch Name Requests Miss /Miss Requests Miss
Active checkpoint queue latch 82,223 0.0 0
Checkpoint queue latch 828,701 0.0 0.0 0
Token Manager 739 0.0 5,586 0.0
archive control 10 0.0 0
archive process latch 10 0.0 0
cache buffer handles 8,728 0.0 0
cache buffers chains 45,374,520 0.0 0.1 1,915,719 0.2
cache buffers lru chain 293,252 0.5 0.1 1,667,702 0.6
channel handle pool latch 293 0.0 294 0.0
channel operations parent latch 586 0.0 294 0.0
dml lock allocation 197,311 0.0 0.0 0
enqueue hash chains 438,592 0.1 0.1 0
enqueues 697,793 0.1 0.0 0
event group latch 293 0.0 0
job_queue_processes parameter l 65 0.0 0
ktm global data 4 0.0 0
latch wait list 6,541 2.5 0.0 6,559 0.2
library cache 6,095,682 0.9 0.2 186,918 0.8
library cache load lock 4,494 0.0 0
list of block allocation 201,252 0.0 0.1 0
loader state object freelist 46 0.0 0
longop free list 1,508 0.0 0
messages 925,509 0.2 0.0 0
multiblock read objects 45,236 0.0 4.6 3 0.0
ncodef allocation latch 65 0.0 0
process allocation 293 0.0 293 0.0
process group creation 587 0.0 0
redo allocation 624,066 0.1 0.0 0
redo writing 511,337 0.8 0.0 0
row cache objects 9,553,633 1.0 0.0 13,023 3.7
sequence cache 31,263 0.0 0.0 0
session allocation 454,171 0.3 0.0 0
session idle bit 1,841,211 0.0 0.1 0
session switching 65 0.0 0
session timer 416 0.0 0
shared pool 4,602,509 3.3 0.0 0
sort extent pool 78 0.0 0
transaction allocation 295,180 0.0 0.0 0
transaction branch allocation 65 0.0 0
undo global data 346,591 0.1 0.2 0
user lock 2,114 0.0 0
virtual circuit queues 56 0.0 0
^LLatch Sleep breakdown for DB: PRDTDB Instance: prdtdb Snaps: 201 - 21
Get Spin &
Latch Name Requests Misses Sleeps Sleeps 1-4
shared pool 4,602,509 152,786 3,804 150445/1393/
698/250/0
row cache objects 9,553,633 98,968 364 98730/210/3/
25/0
library cache 6,095,682 53,621 8,107 49775/1473/1
726/647/0
cache buffers chains 45,374,520 10,906 1,415 10308/336/71
/191/0
redo writing 511,337 3,927 39 3892/31/4/0/
0
messages 925,509 1,443 61 1382/61/0/0/
0
cache buffers lru chain 293,252 1,388 130 1260/127/0/1
/0
session allocation 454,171 1,334 15 1319/15/0/0/
0
enqueues 697,793 1,000 11 989/11/0/0/0
redo allocation 624,066 623 5 618/5/0/0/0
session idle bit 1,841,211 447 50 400/46/0/1/0
Checkpoint queue latch 828,701 378 8 374/3/0/1/0
undo global data 346,591 330 62 315/4/1/10/0
enqueue hash chains 438,592 273 32 259/7/2/5/0
transaction allocation 295,180 138 5 133/5/0/0/0
dml lock allocation 197,311 46 2 44/2/0/0/0
list of block allocation 201,252 40 4 36/4/0/0/0
multiblock read objects 45,236 7 32 2/1/1/3/0
^LLatch Miss Sources for DB: PRDTDB Instance: prdtdb Snaps: 201 - 213
No Wait
Latch Name Where Misses Sleeps
Checkpoint queue latch kcbswcu: Switch buffers 0 5
Checkpoint queue latch kcbk0rrd: update recovery 0 2
Checkpoint queue latch kcbbcthc: check thread que 0 1
cache buffers chains kcbrls: kslbegin 0 724
cache buffers chains kcbgtcr: kslbegin 0 533
cache buffers chains kcbgcur: kslbegin 0 62
cache buffers chains kcbchg: kslbegin: call CR 0 29
cache buffers chains kcbzgb: scan from tail. no 0 25
cache buffers chains kcbzib: multi-block read: 0 14
cache buffers chains kcbzib: finish free bufs 0 9
cache buffers chains kcbzwb 0 8
cache buffers chains kcbchg: kslbegin: bufs not 0 6
cache buffers chains kcbget: pin buffer 0 3
cache buffers chains kcbget: exchange rls 0 1
cache buffers lru chain kcbbiop: lru scan 0 105
cache buffers lru chain kcbzgb: multiple sets nowa 0 21
cache buffers lru chain kcbzgb: posted for free bu 0 3
cache buffers lru chain kcbbwlru 0 1
dml lock allocation ktaiam 0 2
enqueue hash chains ksqgtl3 0 16
enqueue hash chains ksqrcl 0 16
enqueues ksqgtl2 0 5
enqueues ksqies 0 4
enqueues ksqrcl 0 2
library cache kgllkdl: child: cleanup 0 895
library cache kglpnal: child: alloc spac 0 711
library cache kglic 0 344
library cache kglupc: child 0 261
library cache kglhdgn: child: 0 227
library cache kglpnal: child: before pro 0 116
library cache kglhdgc: child: 0 82
library cache kglobpn: child: 0 74
library cache kgldnp: child 0 57
library cache kglsca: parent 0 57
library cache kgllkdl: child: free pin 0 29
library cache kglati 0 27
library cache kglpnc: child 0 15
library cache kgldte: child 0 0 8
library cache kglget: child: KGLDSBYD 0 3
library cache kglobld: child: 0 2
library cache kglpin 0 2
library cache kgldti: not under latch 0 1
library cache kglpnp: child 0 1
list of block allocation ktlbbl 0 4
messages ksaamb: after wakeup 0 40
messages ksarcv: after wait 0 13
messages ksarcv 0 8
multiblock read objects kcbzib: MBRGET 0 32
redo allocation kcrfwr: redo allocation 0 4
redo allocation kcrfwi: before write 0 1
redo writing kcrfss 0 17
redo writing kcrfsr 0 16
redo writing kcrfwi: after write 0 5
redo writing kcrfwcr 0 1
row cache objects kqrpre: find obj 0 190
^LLatch Miss Sources for DB: PRDTDB Instance: prdtdb Snaps: 201 - 213
No Wait
Latch Name Where Misses Sleeps
row cache objects kqreqd: rel enqueue 0 93
row cache objects kqreqd 0 64
row cache objects kqrso 0 1
session allocation ksuxds: not user session 0 12
session allocation ksucri 0 2
session allocation ksuxds: KSUSFCLC not set 0 1
session idle bit ksuxds 0 22
session idle bit ksupuc: clear busy 0 17
session idle bit ksupuc: set busy 0 11
shared pool kghfrunp: parent clatch: w 0 5,059
shared pool kghfrunp: alloc: wait 0 1,296
shared pool kghfrunp: alloc: clatch no 0 1,152
shared pool kghalo 0 852
shared pool kghfnd: min scan 0 180
shared pool kghfrunp: clatch: wait 0 112
shared pool kghupr1 0 104
shared pool kghfnd: get next extent 0 72
shared pool kghfnd: req scan 0 55
shared pool kghfre 0 40
shared pool kghalp 0 31
shared pool kghfrunp: clatch: nowait 0 30
shared pool kghfen: not perm alloc cla 0 15
shared pool kghfrunp: no latch 0 2
shared pool kghfrunp: reget min scan 0 1
transaction allocation ktcdso 0 3
transaction allocation ktcxba 0 2
undo global data ktudba: KSLBEGIN 0 61
undo global data ktudnx: KSLBEGIN 0 1
End of ReportPlease find partial output of v$sql;
EXECUTIONS DISK_READS BUFFER_GETS ROWS_PROCESSED
11170 0 0 0
11726 6206 36460 11286
11727 3079 193977 11727
12007 278 69951 39346
12700 0 31165 43631
13371 564 26871 7113
15568 0 1045 0
16122 28 25925 8603
16583 292 10230 2016
16943 31 1092 209
17933 896 35957 17933
EXECUTIONS DISK_READS BUFFER_GETS ROWS_PROCESSED
17958 0 3675 0
22750 6968 132458 32748
22840 518 31455 43631
22840 1 37398 0
22976 109 46286 22966
23002 53 23280 22975
23002 16 23216 23002
23003 61 23362 23003
23005 764 78363 23003
25580 1303 81762 373057
27092 0 0 0
EXECUTIONS DISK_READS BUFFER_GETS ROWS_PROCESSED
29218 1069 88739 29218
32750 3 1020 355
35790 453 279237 27807
38630 488 116142 1331
42128 13 2679 180
45899 0 229499 45896
45984 87 230393 45984
50588 3 1931 145
51215 81 256945 51215
52212 9 2248 674
62501 2 2087 506
EXECUTIONS DISK_READS BUFFER_GETS ROWS_PROCESSED
75230 1393 950678 71295
95712 29410 1451214 87782
102950 5250 1694896 102950
165722 254 870666 165722
527966 790 2773361 527965
674310 190 5482921 674307
709403 1198 3727110 709403
1093841 2338 11416812 1093840Btree index type has been created.
Please guide me in finding CPU problem.
-Yasser -
Hi Gurus,
I am trying to load a HANA column table using the import function and get the following error even though the mappings from the file to the table are 1:1.
I get the following errors:
Error 1: SAP DBTech JDBC: Result set is positioned before first row.
Error 2: SAP DBTech JDBC: [259] (at 26): invalid table name: Could not find table/view RS_POOL_CLUSTER_TABLES in schema SYSTEM: line 1 col 27 (at pos 26)
With the following stack trace:
com.sap.db.jdbc.exceptions.JDBCDriverException: SAP DBTech JDBC: [259] (at 26): invalid table name: Could not find table/view RS_POOL_CLUSTER_TABLES in schema SYSTEM: line 1 col 27 (at pos 26)
at com.sap.db.jdbc.exceptions.SQLExceptionSapDB.createException(SQLExceptionSapDB.java:334)
at com.sap.db.jdbc.exceptions.SQLExceptionSapDB.generateDatabaseException(SQLExceptionSapDB.java:165)
at com.sap.db.jdbc.packet.ReplyPacket.buildExceptionChain(ReplyPacket.java:100)
at com.sap.db.jdbc.ConnectionSapDB.execute(ConnectionSapDB.java:1141)
at com.sap.db.jdbc.ConnectionSapDB.execute(ConnectionSapDB.java:888)
at com.sap.db.jdbc.StatementSapDB.sendCommand(StatementSapDB.java:929)
at com.sap.db.jdbc.StatementSapDB.sendSQL(StatementSapDB.java:978)
at com.sap.db.jdbc.StatementSapDB.execute(StatementSapDB.java:256)
at com.sap.db.jdbc.StatementSapDB.executeQuery(StatementSapDB.java:401)
at com.sap.db.jdbc.trace.Statement.executeQuery(Statement.java:131)
at com.sap.ndb.studio.bi.dataprovisioning.util.DBUtil.getPoolTables(DBUtil.java:200)
at com.sap.ndb.studio.bi.dataprovisioning.util.DBUtil.getTablesToHide(DBUtil.java:188)
at com.sap.ndb.studio.bi.filedataupload.ui.wizards.pages.SelectTableDialog.createDialogArea(SelectTableDialog.java:108)
at org.eclipse.jface.dialogs.Dialog.createContents(Dialog.java:775)
at org.eclipse.jface.window.Window.create(Window.java:432)
at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1104)
at com.sap.ndb.studio.bi.filedataupload.ui.wizards.pages.SelectTableDialog.create(SelectTableDialog.java:186)
at com.sap.ndb.studio.bi.filedataupload.ui.wizards.pages.ImportFileSelectionWizardPage$14.widgetSelected(ImportFileSelectionWizardPage.java:779)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1057)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4170)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3759)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:826)
at org.eclipse.jface.window.Window.open(Window.java:802)
at org.eclipse.ui.internal.handlers.WizardHandler$Import.executeHandler(WizardHandler.java:152)
at org.eclipse.ui.internal.handlers.WizardHandler.execute(WizardHandler.java:279)
at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:290)
at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:90)
at sun.reflect.GeneratedMethodAccessor33.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:243)
at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:224)
at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:132)
at org.eclipse.e4.core.commands.internal.HandlerServiceHandler.execute(HandlerServiceHandler.java:167)
at org.eclipse.core.commands.Command.executeWithChecks(Command.java:499)
at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508)
at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:213)
at org.eclipse.ui.internal.handlers.LegacyHandlerService.executeCommand(LegacyHandlerService.java:420)
at org.eclipse.ui.internal.actions.CommandAction.runWithEvent(CommandAction.java:157)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1057)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4170)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3759)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1113)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:997)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:138)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:610)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:567)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:354)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:181)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:636)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)
at org.eclipse.equinox.launcher.Main.run(Main.java:1450)
at org.eclipse.equinox.launcher.Main.main(Main.java:1426)
I'm sure many of you have come across this before. Any help will be much appreciated.
Thanks in advanceHello Akhtar,
Have you tryed to delete the heador row from your file?
I received the same error when loading a csv file, but when I delete the heador row it worked.
Best Regards,
Juliana Genova -
Table count comparison in a SSIS package
In our production environment, I have a SSIS package to import from OLTP SQL Server database to Data Warehouse (in SQL Server) and from there another package imports from Data warehouse to a Tabular SSAS database.
For health check reason, I would like to develop a SSIS package to compare table counts between production OLTP, Data warehouse and Tabular databases. I know how to do it for SQL Server databases but have no idea how to calculate table counts of Tabular tables
and save the results to a SQL Server table to compare the counts.
Has any body done this? Any clue?
Thanksone option is to query the a ssas DMV in a DataFlow...
SELECT *
FROM $SYSTEM.DBSCHEMA_TABLES
WHERE TABLE_CATALOG = 'AdventureWorks Tabular Model SQL 2012' AND
TABLE_TYPE = 'TABLE' AND
TABLE_SCHEMA = 'Model'
...and capture the RowCount to a variable.
BI Developer and lover of data (Blog |
Twitter) -
FIND table for PM order operations
Hello,
I am looking for the table in which the notification number of pm order operations is stored.
I find table AFVC and AFVV but in this table I don't see notification number.
Thanks for your help.
Best regards,
SebFor PM Order, you can see :
- Notification number in header tabstrip
- Notification number in operations tabstrip (for each operation)
It is not the same number !
I have the following informations : AUFK, AFKO, AFVC.
For example, With IW32, I see operations tabstrip :
Operation Item Notifications Number
10 110000007
20 110000007
30 110000008
In AFVC, I see :
AUFPL VORNR
1000582892 10
1000582892 20
1000582892 30
AUFPL number is the same for all items operations in AFVC !
Thanks for your help. -
Find table for a structure field
Hi,
I need to find table for field Q0743-OFFR1. I tried using tcode SE15, but was not able to find any table where the field is used.
Is there any other method of finding a table for a structure field.
Any pointers in this regard would be helpful.
Thanks,
SaherHi,
when u open the structure , u will find the tab " Component " in that you
will find "Data Element" column which hold the data element of the structure
component , now double click on the respective "Data Element " and that will
open up the Data Element Page in which u will find a "Where Used List" icon
, click on that, this will now display you the list, select the TABLE LIST
Check box and execute, which will subsequently display you all the the table
names which has "specified" data element's component as field
Hope this will Help you.
Regards,
Kiran -
How to find table used in java based forms
In R12 how can i find table name used in Java Based forms.
Record history for OAF / Selfservice pages is only available in R12.1.1 - pl see MOS Doc 565870.1 (Oracle Application Framework (OAF) Release Notes, Release 12.1.1) - it is not available in 11i and 12.0.x releases.
HTH
Srini
Maybe you are looking for
-
Leopard taken hostage by Setup Assistant
leopard has been running great (except for a lot of app crashes), but as of last night, every time i try to log in the setup assistant starts. if i complete the registration process, it logs me out, but when i log in again, setup assistant takes over
-
i lost all of my pictures after updating to the lastest software and i backed everything up before updating my software.
-
Flash player goes green and crackling
For the last couple of months any time i use the flash player for anything after either a few mins or even a few seconds the video stops, the timer on the bottom starts fast forwarding and the screen goes green. All you can hear then is a crackling s
-
How do I set a user to access with ftp to his/her website folder ?
I am new to MacOSX I come from Linux Server administrated with Virtualmin I was able to setup with SLP 10.6.8 Now everything works but ftp ... I want to do this: 1) web site domain1 = OK 2) mail user@domain1 = OK 3) mysql access user(domain1) = OK --
-
Arabic Character while loading in to Oracle.
Hi All, OWB config is as follows: OWB : 9.2 Oracle 9i database. I am able to load Arabic characters from a source table to a target table using OWB mappings but when i try to load a flat file the characters get jumbled. My environment variables :-- I