DB Read/Get Issues with SQL
Hi,
I am having issues with DB Get. Even after assigning the local variable in CRS script as "Date" type, I am unable to select it as a local variable in the "Add/Modify Button under the Filed Selection TAB.
The Filed type for this in SQL DB is DateTime.
Attached is the screenshot.
Can somebody suggest what is the issue?
Hi,
I ran into this situation before. The only way I could work around it, was to create a view in SQL, which takes the date and convert it to a String (ex: 20091029). So, instead of doing the request against the table, I'm doing it against the view.
After that, I'm able to retrieve the date as a String and convert it back to a date using the following Java code into a "SET" step:
Assume that you have a variable named "nDateFromSQL" of type String
SimpleDateFormat lFormatter = new SimpleDateFormat("yyyyMMdd");
nTrandate = lFormatter.parse(nDateFromSQL);
I hope that help !
Similar Messages
-
today I get issues with my z10 device. When I in a phone call, the screen don’t auto turn off. There is no a screen protector on there and it seems that the built-in proximity sensor is not responding. I have to press the screen with my face accidently. can anyone help me with this?
Same issue already several weeks.
And we are not alone:
http://forums.crackberry.com/blackberry-z10-f254/proximity-sensors-still-not-working-my-z10-891783/i...
At all there is, I think, 4 threads in parallel about this issue at CB forums. One of the:
ms.crackberry.com/blackberry-z10-f254/proximity-sensors-still-not-working-my-z10-891783/index5.html
I already contacted BB Help at Twitter. Answer:
Thanks for the information. It seems that you have installed an OS version higher than the one supported by your carrier on your device. Please contact your carrier to get the supported OS version and try the proximity and light sensors. Let us know if you need further assistance. Cheers. ^LFC.
I did replay:
You are confused me. Phone got updates over network automatically. On crackberry forum a lot of people from different countries and with Different OS version, but with the same problem. Hi, this is thread at CrackBerry: http://forums.crackberry.com/blackberry-z10-f254/proximity-sensor-906493/index3.html
This my replay was 22 of march. No more answer from BB.
I can't contact my operator - 3UK, because I bought my from on Amazon from Amazon. This phone not from operator - seller is Amazon.
What I already done:
For last week, I read, how to install OS using Sachesi and Autoloader. I used Sachesi to load 3 UK version, I installed autoloader from this links:
http://supportforums.blackberry.com/t5/BlackBerry-10-OS-Device-Software/Upgrading-OS10-devices-using...
This
For Z10 models STL100-1, 2, -3, -4: Download 10.2.1.1925
Doesn't help
And this:
For Z10 models STL100-2, -3, -4: Download the 10.2.0.1803 OS
No result.
After install all of them phone wants to update to 10.2.1.2102 by air.
BBVE in all versions sais: Can not obtain data from sensors.
Dear BB support, please, can you explain, how to resolve this issue? -
Didnt read the issues with iOS5 until i've updated my iPhone 4. Restored 3 times and it is still locked in a loop of - Apple logo, loading, and a flash of "...restore successful...few steps away..." and buzz. Please help
At the end of a Restore, you will be asked if you want the current iPhone to be synched as a New iPhone or use the current iPhone's settings. Selecting the former since to have solved the messaging problem. If u have done back-up of the "old" iPhone on iTunes, then your New iPhone will be the "old" iPhone too after synching with iTunes :)
-
Issue with SQL Query with Presentation Variable as Data Source in BI Publisher
Hello All
I have an issue with creating BIP report based on OBIEE reports which is done using direct SQL. There is this one report in OBIEE dashboard, which is written using direct SQL. To create the pixel perfect version of this report, I am creating BIP data model using SQL Query as data source. The physical query that is used to create OBIEE report has several presentation variables in its where clause.
select TILE4,max(APPTS), 'Top Count' from
SELECT c5 as division,nvl(DECODE (C2,0,0,(c1/c2)*100),0) AS APPTS,NTILE (4) OVER ( ORDER BY nvl(DECODE (C2,0,0,(c1/c2)*100),0)) AS TILE4,
c4 as dept,c6 as month FROM
select sum(case when T6736.TYPE = 'ATM' then T7608.COUNT end ) as c1,
sum(case when T6736.TYPE in ('Call Center', 'LSM') then T7608.CONFIRMED_COUNT end ) as c2,
T802.NAME_LEVEL_6 as c3,
T802.NAME_LEVEL_1 as c4,
T6172.CALENDARMONTHNAMEANDYEAR as c5,
T6172.CALENDARMONTHNUMBERINYEAR as c6,
T802.DEPT_CODE as c7
from
DW_date_DIM T6736 /* z_dim_date */ ,
DW_MONTH_DIM T6172 /* z_dim_month */ ,
DW_GEOS_DIM T802 /* z_dim_dept_geo_hierarchy */ ,
DW_Count_MONTH_AGG T7608 /* z_fact_Count_month_agg */
where ( T802.DEpt_CODE = T7608.DEPT_CODE and T802.NAME_LEVEL_1 = '@{PV_D}{RSD}'
and T802.CALENDARMONTHNAMEANDYEAR = 'July 2013'
and T6172.MONTH_KEY = T7608.MONTH_KEY and T6736.DATE_KEY = T7608.DATE_KEY
and (T6172.CALENDARMONTHNUMBERINYEAR between substr('@{Month_Start}',0,6) and substr('@{Month_END}',8,13))
and (T6736.TYPE in ('Call Center', 'LSM')) )
group by T802.DEPT_CODE, T802.NAME_LEVEL_6, T802.NAME_LEVEL_1, T6172.CALENDARMONTHNAMEANDYEAR, T6172.CALENDARMONTHNUMBERINYEAR
order by c4, c3, c6, c7, c5
))where tile4=3 group by tile4
When I try to view data after creating the data set, I get the following error:
Failed to load XML
XML Parsing Error: mismatched tag. Expected: . Location: http://172.20.17.142:9704/xmlpserver/servlet/xdo Line Number 2, Column 580:
Now when I remove those Presention variables (@{PV1}, @{PV2}) in the query with some hard coded values, it is working fine.
So I know it is the PV that's causing this error.
How can I work around it?
There is no way to create equivalent report without using the direct sql..
Thanks in advanceI have found a solution to this problem after some more investigation. PowerQuery does not support to use SQL statement as source for Teradata (possibly same for other sources as well). This is "by design" according to Microsoft. Hence the problem
is not because different PowerQuery versions as mentioned above. When designing the query in PowerQuery in Excel make sure to use the interface/navigation to create the query/select tables and NOT a SQL statement. The SQL statement as source works fine on
a client machine but not when scheduling it in Power BI in the cloud. I would like to see that the functionality within PowerQuery and Excel should be the same as in Power BI in the cloud. And at least when there is a difference it would be nice with documentation
or more descriptive errors.
//Jonas -
[ADF-11.1.2] Locking issue with SQL 92
I see one Locking issue with SQL92 Oracle ADF Application.
ADF Version: [ADF-11.1.2]
Database: Oracle 10g Express Edition
Situation 1:
With Following setting:
File: Application Resource > Description > ADF META-INF > adf-config.xml
<startup>
<amconfig-overrides>
<config:Database jbo.SQLBuilder="SQL92" jbo.locking.mode="optimistic"/>
</amconfig-overrides>
</startup>I have a page showing record 'x' of view object. I open same record on another page. Now I have same record showing on two different tabs of browser.
1. I modify first record and save it. It worked... Got commited to database.
2. I goto second tab and modify same record and tried to same it. It throws me an error - Another user has changed the row with primary key oracle.jbo.Key[38 ] . As expected...
3. I then, reopen the same record on 3rd tab of browser. Modify it and tried to save it. It just hang... as if it is processing the record endlessly.
If I see the Log:
<BaseSQLBuilderImpl> <doEntitySelectForAltKey> [312] BaseSQLBuilderImpl Executing doEntitySelect ... (true)
<BaseSQLBuilderImpl> <doEntitySelectForAltKey> [313] Generating new LOCK statement
<BaseSQLBuilderImpl> <buildSelectString> [314] Built select: 'SELECT ID, CI_ID, COLUMN_NAME, DISPLAY_COLUMN_NAME, COLUMN_VALUE, CREATE_DATE, CREATE_BY FROM ESUSER.CI_AUDIT'
<BaseSQLBuilderImpl> <doEntitySelectForAltKey> [315] Executing LOCK "SELECT ID, CI_ID, COLUMN_NAME, DISPLAY_COLUMN_NAME, COLUMN_VALUE, CREATE_DATE, CREATE_BY FROM ESUSER.CI_AUDIT WHERE ID=? FOR UPDATE"
<BaseSQLBuilderImpl> <bindWhereAttrValue> [316] Where binding param 1: 38
That's it.. nothing happens further.. If I execute above query on SQL Worksheet, it doesn't come up with the result. Just hang for something...
SELECT ID, CI_ID, COLUMN_NAME, DISPLAY_COLUMN_NAME, COLUMN_VALUE, CREATE_DATE, CREATE_BY FROM ESUSER.CI_AUDIT WHERE ID='38' FOR UPDATE I can execute above query for other record of same table but not '38'. Even if I fire commit command to database, it is not working.
I have to restart the database services to bring everything to normal state.
Situation 2:
With Oracle as Database :
<startup>
<amconfig-overrides>
<config:Database jbo.SQLBuilder="Oracle" jbo.locking.mode="optimistic"/>
</amconfig-overrides>
</startup>Everything is working file. i.e. at step 3, record is getting modified successfully with following log:
<OracleSQLBuilderImpl> <doEntitySelectForAltKey> [27] OracleSQLBuilder Executing doEntitySelect on: ESUSER.CI_AUDIT (true)
<ADFLogger> <begin> Entity read all attributes
<OracleSQLBuilderImpl> <buildSelectString> [28] Built select: 'SELECT ID, CI_ID, COLUMN_NAME, DISPLAY_COLUMN_NAME, COLUMN_VALUE, CREATE_DATE, CREATE_BY FROM ESUSER.CI_AUDIT CIAudit'
<OracleSQLBuilderImpl> <doEntitySelectForAltKey> [29] Executing LOCK...SELECT ID, CI_ID, COLUMN_NAME, DISPLAY_COLUMN_NAME, COLUMN_VALUE, CREATE_DATE, CREATE_BY FROM ESUSER.CI_AUDIT CIAudit WHERE ID=? FOR UPDATE NOWAIT
<ADFLogger> <addContextData> Entity read all attributes
<OracleSQLBuilderImpl> <bindWhereAttrValue> [30] Where binding param 1: 38
<ADFLogger> <addContextData> Entity read all attributes
<ADFLogger> <end> Entity read all attributes
<ADFLogger> <end> Lock Entity
<ADFLogger> <begin> Before posting the entity's changes
<ADFLogger> <begin> Updating audit columns
<ADFLogger> <end> Updating audit columns
<ADFLogger> <end> Before posting the entity's changes
<OracleSQLBuilderImpl> <doEntityDML> [31] OracleSQLBuilder Executing, Lock 2 DML on: ESUSER.CI_AUDIT (Update)
<OracleSQLBuilderImpl> <buildUpdateStatement> [32] UPDATE buf CIAudit>#u SQLStmtBufLen: 210, actual=60
<OracleSQLBuilderImpl> <doEntityDML> [33] UPDATE ESUSER.CI_AUDIT CIAudit SET COLUMN_VALUE=? WHERE ID=?
<ADFLogger> <begin> Entity DML
<OracleSQLBuilderImpl> <bindUpdateStatement> [34] Update binding param 1: cip7ri1
<OracleSQLBuilderImpl> <bindWhereAttrValue> [35] Where binding param 2: 38
<ADFLogger> <addContextData> Entity DML
<ADFLogger> <end> Entity DML
Can any one please tell me, what is the issue with SQL92 setting ?
Edited by: Anandsagar Sah on Mar 11, 2012 8:10 AMThe framework works correctly in the Situation #1. Please, note that the locking statement in this case is "SELECT ... FOR UPDATE", but not "SELECT ... FOR UPDATE NOWAIT" (as it is in the Situation #2). When you entered the 2nd tab and tried to update the row, then the framework executed the locking statement and the row was locked (and it remained locked because the framework detected that another user had modified the row, so it stopped the processing and no COMMIT operation was executed). When you entered the 3rd tab and tried to update the row, then the framework tried to lock the row againg, but the locking statement was blocked by the existign lock and it started waiting on the lock from the 2nd tab. So this is expected behaviour.
The interesting question is why you do not get any error in the Situation #2. In my opinion you should get an error because the locking statement from the 3rd tab should fail immediately (because the row should have been locked from the 2nd tab and the locking statement is with NOWAIT option). I suspect that when the DB is Oracle and you use Oracle SQLBuilder, then the ADF issues a DB savepoint at the beginning of the DML operation and rolls back to the savepoint is a case of some failure, so the 2nd tab has not left any lock. You can check this by setting on SQL trace on the DB server.
Dimitar -
DB-Library BCP issue with SQL Server 2014
Hello,
My application uses DB-Library (ntwdblib.dll) to communicate with SQL Server 2014. We are having issues calling bcp related functions like bcp_init which always returns FAIL status. Our application was working fine with SQL Server 2012 and all other previous
SQL releases. But we are getting below error in SQL 2014,
msg 4801, state 1, severity 16 : Insert bulk is not supported over this access protocol.
Can anyone please help ?
Thanks,
HimanshuHi Himanshu_kus,
Is this still an issue, or can we close the thread?
[Personal Site] [Blog] [Facebook] -
Issue with SQL Developer connect to SQL server
I'm using "SQL Developer 2.1.1.64.45" to work on a migration project which needs to convert a SQL server database to a Oracle 11g database. But I got an issue when I setup the SQL server connection. The SQL Developer let me connect by selecting a SQL server database name (For example: Northwind), but once connected, it always connected to "master" database instead. The "SQL Developer" is running on Windows 7 Professional (x64) platform. My Oracle database is 11g, and SQL server database is SQL 2005. And my SQL server instance name is "SQL2005". Anyone have ever experienced this problem? Thanks in advance.
Edited by: user8276338 on Feb 8, 2011 1:05 PMHi Bob,
Thanks for the feedback, lets stick with SQL Developer 3.
Correct me if I'm wrong,
You attempted to migrate from SQL Server to Oracle including target generation and datamove in one go, by filling in each step of the migration wizard to the end.
During the datamove you got
ORA-01000:maximum open cursor exceeded
So it looks like SQL Developer during the migration is not closing cursors fast enough and hits the maximum number of open cursors in your Oracle database.
I think the default max open cursors is 300 in Oracle.
There are a few things we can do here.
You should be able to see the new migration project in your Migration Projects navigator.
By navigating down the project tree to "Converted Database Objects" we can attempt the data move again by right clicking and choosing "Data Move".
But first I would restart SQL Developer so as to free up any lingering open cursors.
That may allow you to complete the data move, as the only cursors being open are being used in the data move and not some cursors which may have been left open from previous steps in the migration.
Now from my perspective I would like to identify where are we leaving open the cursors, so I'm going to setup some testcases my end to see if I can replicate.
From your perspective Id presume you just want to move on with the migration.
So if the above (shutdown and attempt just the data move) doesnt workyou could
A) Increase the MAX OPEN CURSORs on your Oracle databases so it complete the data move
or
B) Use the offline data move technique.
A) Increase MAX OPEN CURSORs
This wiki explains how to do that, looks like 1000 is fairly common, but even a much larger number is not a problem
http://wiki.oracle.com/page/OPEN_CURSORS
ALTER SYSTEM SET OPEN_CURSORS = 10000;
OR
B) Offline Data Move
If you are moving large amounts of data (say > 1GB), then the standard data move (we call it online), which just uses JDBC to SELECT * FROM and INSERT INTO may not cut the mustard.
In this case you can try using our offline technique. SQL Developer will generate a set of scripts for you.
unload_script.bat will use SQL Servers BCP tool to dump out the table data into DAT files.
oracle_ctl.bat will load the data in the DAT files into Oracle.
As we know the names of all the tables, columns ,both SQL Server and Oracle, we can generate fairly good scripts.
The benefit of this technique is large amounts of data can be migrated and you get to use tools designed to dump data and load in data, so you have better error logging and tweaking.
To attempt this in the Migration Wizard , Data Move page, select offline.
If you can describe your database a bit (number of tables, number of procedures, amount of data to migrate) I may be able to define my testcase better so I can replicate the issue.
Thanks
Dermot
SQL Developer Team. -
Screen refresh issue with SQL Developer 1.5.5 on Vista 64 bit
I am using the latest version of SQL Developer.
I have screen refresh issues in sql developer. On scrolling up and down the display gets jumbled, some time screen do not display at all. Its making working with SQL Developer very difficult. I don't have such an issue with any of my other editors.
Is this something specific to Vista? Is there any know solution to this issue.
Thanks
Edited by: user5899685 on Sep 1, 2009 11:14 AMSpecific? Not really, but judging from the posts here Vista is more prone. It usually indicates incompatibility between Java and video drivers.
If updating your JDK or video driver doesn't work or isn't an option, just disabling DirectDraw in \sqldeveloper\bin\sqldeveloper.conf usually works too:
AddVMOption -Dsun.java2d.noddraw=trueHope that helps,
K. -
hi,
1-how many data bases can you create with sql express
2-can you also create data bases in sql 2012 through GUI ,so whitout any knowledge of command line?
3-how many GB support has SQL express?
4- I think this edition is free!
thanks
johan
h.david1-I see you are limited to 1GB per instance ,what if you need more ,is there a way to manipulate it?
I hope you are talking about memotry.To be correct SQL server 2012 and onwards Database engine of Express edition can use MORE THAN 1G memory. Its incorrectly written in books online I tried getting this changed but MS pays little attention on petty things.
If you read this support article
"Starting with SQL Server 2012, these memory limits are enforced only for the database cache (buffer pool). The rest of the caches in the SQL Server memory manager can use much more memory than is specified by these edition limits. For example,
a SQL Server 2012 Express edition can use only a maximum size of 1.4 GB for its database cache. Other caches (such as the procedure cache, the metadata cache, and so on) can consume memory up to the size specified by the "max server memory" configuration."
No you cannot manipulate more than what is provided by Microsoft. Plus we have not put limitation its MS which has put it.
2- in which circumstances you need more than 1GB per instance ,can you give me a little example?
You *might be* able to manage things with just more than 1 G but if you run many queries which does select * and many alter index rebuild this will require excessive memory then your queries will become super slow. What could have finished in 20 mins might
end up taking 3-4 hrs or even give you Out of memory condition
3-I see also you have 10 GB per data base can you manipulate 10 GB and make it more when nedeed?
10 G limit is only for data files the log files can grow much greater than 10 G. In express edition you can have database with 9.9 G data file and 30 G log file. If you need more switch to developer edition it costs just 50 $
Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it
My Technet Wiki Article
MVP -
Issue with SQL Developer connecting to databases
Hi all,
I would be really grateful if anyone could advise me on the below issue.
I have 64bit laptop running Windows 7 and I get the following error message when I try to connect via SQL Developer to an external database for work purposes:
Status: Test Failed: C:\app\Terra-PC\product\product\11.2.0\dbhome_1\BIN\ocijdbc.dll: Can't load AMD64-bit .dll on a IA 32 -bit platform.
Thanks for your help.
LukeHi,
Actually, I resolved this issue with the help of a colleague. SQL Dev was not able to see my TNSnames file, because the Oracle_Home path was not defined. Something like that, anyway.
Thanks,
Luke -
Acrobat X Reader / Pro Issue with Window border resizing / flickering
I have installed Acrobat X Pro and Acrobat X Reader on a new computer. This is the only program on my entire computer that has problems.
The problem occurs only with the menu bar (F9) displayed and when a PDF document is open.
When resizing the window of either Reader or Pro with a PDF open, there is a "flicker" where the program border rapidly flashes between showing the program border and hiding it. Turning off the menu bar makes the issue go away. Even though I turn off the menu bar, each time I open Acrobat Reader or Pro the menu bar is displayed again. I've completely uninstalled the software, used the Adobe Cleaner software, and tried installing a newer version (Reader XI). I still have the same problem. See a screenshot below.
Can you please provide some ideas of what could be wrong?It turns out the issue was related to a bug in Kaspersky Antivirus 2015. The solution was to uninstall the current version and install a slightly older version 15.0.1.415 The flickering issue was solved.
-
Reader causing issues with dropped underscores in courier new font
When converting a microsoft word document in 2013 or 2007 to a PDF is causing issues with dropped underscores. It only seems to happen in courier new. For instance if I have _someCode, when converting this over to a PDF file I will sometimes see _someCode and sometimes I will see someCode. If I open this file in a different pdf reader then it looks correct 100% of the time. If I copy and paste into another application then the underscore shows. This is a major issue for people putting code into a PDF document as underscores are important and courier new is what we often use.
I love how quick you are to throw Microsoft under the bus. Often it is their fault. In this case I believe you are 100% wrong and absolutely short sighted to ignore this. As I said in my original email, which you apparently missed, I have tried this in multiple PDF viewers and Adobe Reader is the ONLY reader that misses the underscores. Foxit, PDF Exchange and Sumatra all render it perfectly. Adobe reader missed 6 underscores in my document that has 18 underscores. 30% of the time in this document Adobe Reader makes the underscore invisible. And if I switch the zoom to 100% instead of 148% (which is the default for me for some reason) then Adobe Reader misses 7 of them. This doesnt occur in the other readers. Blame Microsoft all you want but the simple fact is that Adobe Reader has issues reading courier new's underscores. It needs to be fixed.
-
Hi, I am experiencing an issue with a couple of sql statements. The rest of the db seems to be performing optimally.
A little history: Stats typically were never touched on this db and they were old (I mean very very old). However, the database performance was optimal. Recently we ran into an issue (turned out to be hardware), but in the troubleshooting, we deleted the old statistics and refreshed the stats across the board.
Prior to this incident, these queries would finish in mere minutes.
Performance for a few queries is sub optimal now.
When I execute this query it is performing ok returning a values in just over a minute.
select MAX(fr.fee_rqst_sid)
from fee_rqst fr
where fr.prcd_dt <= to_date('15/10/2013', 'DD/MM/RRRR');
Elapsed: 00:01:10.17
Plan hash value: 3146244357
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
| 0 | SELECT STATEMENT | | 1 | 23 | 404K (2)| 01:20:49 |
| 1 | SORT AGGREGATE | | 1 | 23 | | |
|* 2 | TABLE ACCESS FULL| FEE_RQST | 148M| 3262M| 404K (2)| 01:20:49 |
When it is executed as part of the slightly larger query it belongs to performance drops to over 40 minutes.
select MAX(ch.clm_hdr_sid)
from clm_hdr ch
where ch.fee_rqst_sid <= (
select MAX(fr.fee_rqst_sid)
from fee_rqst fr
where fr.prcd_dt <= to_date('15/10/2013', 'DD/MM/RRRR'));
PLAN_TABLE_OUTPUT
Plan hash value: 2801176651
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
| 0 | SELECT STATEMENT | | 1 | 12 | 718K (1)| 02:23:41 |
| 1 | SORT AGGREGATE | | 1 | 12 | | |
| 2 | TABLE ACCESS BY INDEX ROWID| CLM_HDR | 9410K| 107M| 718K (1)| 02:23:41 |
|* 3 | INDEX RANGE SCAN | IDX$_00002 | 1879K| | 8533 (1)| 00:01:43 |
| 4 | SORT AGGREGATE | | 1 | 23 | | |
|* 5 | TABLE ACCESS FULL | FEE_RQST | 148M| 3262M| 404K (2)| 01:20:49 |
I've create/dropped an index on the date column figuring it might help but it did not as a full table scan still occurred.
The primary key indexes have up to date stats and are not corrupted indexes.
Again this is production and the rest of the db is running optimally and this db is used heavily.
I did run a sqltune but no new results yielded.
GENERAL INFORMATION SECTION
Tuning Task Name : sql_tuning_task1
Tuning Task Owner : SYS
Workload Type : Single SQL Statement
Scope : COMPREHENSIVE
Time Limit(seconds): 60
Completion Status : COMPLETED
Started at : 04/21/2015 16:23:18
Completed at : 04/21/2015 16:24:15
Schema Name: SYS
SQL ID : g52fuy8db7qgb
SQL Text : select MAX(ch.clm_hdr_sid)
from npf.clm_hdr ch
where ch.fee_rqst_sid <= (
select MAX(fr.fee_rqst_sid)
from npf.fee_rqst fr
where fr.prcd_dt <= to_date('15/10/2013', 'DD/MM/RRRR'))
There are no recommendations to improve the statement.
Any advice on what else I can check?Before asking this question, next time you would need to ask this forum to clean their crystal balls.
Your many many lines boil down to:
My car doesn't run, please fix my car, as there is insufficient INFORMATION to work on, and plenty of RIDDLES
1 Your database doesn't seem to have a four digit version
2 Your database doesn't seem to run on an OS
3 The statistics where 'refreshed across the board'. How that happened, this forum needs to guess.
4 Which indices are present on this table, this forum needs to guess
5 Which part of the table satisifies the where clause, this forum needs to guess.
So the obvious would be to answer all of these questions AND run the statement with event 10053 set, so the optimizer decisions are dumped to a trace file,
See https://asktom.oracle.com/pls/asktom/f?p=100:11:0%3A%3A%3A%3AP11_QUESTION_ID:63445044804318
And lastly, I find it more and more annoying, many people don't seem to a have a name, and post 100 percent anonymously.
Sybrand Bakker
Senior Oracle DBA -
Any known issues with SQL DB Link Synonyms joining on encrypted columns
Are there any known issues with accessing encrypted columns via a database link that is masked by a synonym?
We are experiencing unexpected results when the encrypted column is anti-joined through a not exists, to a local encrypted column of the same datatype The encrypted columns are person ids. If the expected person id is hard coded, the results return correctly. The local database is 10.2.0.4.0 and the link is to a 10.2.0.3.0 RAC.
Both enrollments and person_ids, below, are synonyms to the linked tables.
... From table_1 d
where ...
AND NOT EXISTS (SELECT 1
FROM enrollments x,
person_ids p
WHERE x.person_demo = p.person_demo
AND x.rept_inst = d.rept_inst
AND x.demo_time_frame = d.term_deg_grant
AND p.person_id_encrypted = '999999999')
vs.
... From table_1 d
where ...
AND NOT EXISTS (SELECT 1
FROM enrollments x,
person_ids p
WHERE x.person_demo = p.person_demo
AND x.rept_inst = d.rept_inst
AND x.demo_time_frame = d.term_deg_grant
AND p.person_id_encrypted = d.person_id_encrypted)milazzo74 wrote:
I am having the same problem...
http://www.milazzo.com.br/teste/projetos.php
It works fine in Firefox but loads forever in explorer 8...
The cause of the problem is not the same.
In your case it takes forever to load the thumbnails from flickr.com; the SpryDataSets without the loading of the thumbnails works as expected.
Remember that ALL of the thumbnails for each 60 odd projects are downloaded from flickr, that is about 1800 thumbnails.
Gramps -
Performance issue with SQL with different input data
Hi Experts,
I have an SQL query that uses three tables imtermination, imconnection, imconnectiondesign. Each of these tables have around 23Lakh, 11Lakh, 11Lakh rows respectively. There are appropriate indexes on these tables.
Now there is a query:
SELECT
/*+ NO_MERGE(a) ORDERED USE_NL(c) */ c.objectid,
c.typeid,
c.transactionstatus,
c.usersessionid,
cd.objectid designid,
c.reservationid,
c.networkid,
c.networktype,
cd.inprojectid,
cd.inprojecttype,
cd.outprojectid,
cd.outprojecttype,
cd.asiteid,
cd.asitetype,
cd.anetworkelementid,
cd.anetworkelementtype,
cd.aportid,
cd.aporttype,
cd.achannelpath,
c.asignaltype,
cd.zsiteid,
cd.zsitetype,
cd.znetworkelementid,
cd.znetworkelementtype,
cd.zportid,
cd.zporttype,
cd.zchannelpath,
c.zsignaltype,
c.signaltype,
c.visualkey,
c.resourcestate,
cd.assignmentstate,
c.effectivefrom,
cd.effectiveto,
c.channelized,
c.circuitusage,
c.hardwired,
c.consumedsignaltype,
c.flowqualitycode,
c.capacityused,
c.percentused,
c.maxcapacity,
c.warningthreshold,
c.typecode,
cd.lastupdateddate,
c.lastreconcileddate,
c.bandwidth,
c.unit
FROM
(SELECT terminatedid
FROM imtermination t1
WHERE t1.networkelementid = 9200150)
a,
imconnectiondesign cd,
imconnection c
WHERE cd.objectid = a.terminatedid
AND c.objectid = cd.connectionid
AND(SUBSTR('10000000000000000000011111111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000', c.consumedsignaltype + 1, 1) = '1' OR SUBSTR('10000000000000000000011111111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000', c.signaltype + 1, 1) = '1')
AND c.typeid = '$131'
AND cd.assignmentstate IN(2, 3)
The above query takes around 70 secs to execute when input t1.networkelementid = 9200150. Moreover i have observed in the enterprise manager that this has very high i/o wait time.
Now the same query takes around 5 secs to execute when the input t1.networkelementid = 42407448. Both these obejcts with id 9200150 and 42407448 have almost same number of rows and output and without any condition each have 6500 rows in all the three tables.
The execution plan for both these queries with t1.networkelementid = 9200150 and t1.networkelementid = 42407448 is also coming same.
The rows that are corresponding to t1.networkelementid = 9200150 in these three tables are the result of the data created through the application over a period of time. While in case of rows corresponding to t1.networkelementid = 42407448 i have created manually and are contiguous in the three tables.
Does the above behavior is because in case of t1.networkelementid = 42407448 the rows that corresponds to it are not contiguous as they are created over a period of time ?
Execution Statistics
Total Per Execution Per Row
Executions 1 1 0.02
CPU Time (sec) 0.91 0.91 0.02
Buffer Gets 11943 11943.00 238.86
Disk Reads 4804 4804.00 96.08
Direct Writes 0 0.00 0.00
Rows 50 50.00 1
Fetches 5 5.00 0.10
User I/O Waits(98.7%)
CPU(1.3%)
Enterprise manager shows high db file scattered read in case of t1.networkelementid = 9200150, the input for which it is taking 70 secs.
Request experts to provide some pointers to fix this issue as i am not an expert in db tuning.
Thanks in advance for your help.
RegardsHi David,
Please find below the output:
SQL> SELECT table_name, num_rows, last_analyzed
2 FROM all_tables
3 WHERE table_name IN ('IMTERMINATION', 'IMCONNECTIONDESIGN', 'IMCONNECTION')
4 /
TABLE_NAME NUM_ROWS LAST_ANAL
IMTERMINATION 2338746 19-SEP-11
IMCONNECTIONDESIGN 1129298 19-SEP-11
IMCONNECTION 1169373 19-SEP-11
IMTERMINATION 19852 13-SEP-11
IMCONNECTIONDESIGN 6820 13-SEP-11
IMCONNECTION 9926 13-SEP-11
6 rows selected.
SQL> SELECT table_name, index_name,num_rows, last_analyzed
2 FROM all_indexes
3 WHERE table_name IN ('IMTERMINATION', 'IMCONNECTIONDESIGN', 'IMCONNECTION')
4 order by table_name,index_name
5 /
TABLE_NAME INDEX_NAME NUM_ROWS LAST_ANAL
IMCONNECTION IMCONNECTION_A_NE 9925 13-SEP-11
IMCONNECTION IMCONNECTION_A_NE 1169154 19-SEP-11
IMCONNECTION IMCONNECTION_A_PORT 84743 19-SEP-11
IMCONNECTION IMCONNECTION_A_PORT 3371 13-SEP-11
IMCONNECTION IMCONNECTION_A_SITE 1169373 19-SEP-11
IMCONNECTION IMCONNECTION_A_SITE 9926 13-SEP-11
IMCONNECTION IMCONNECTION_NET 0 19-SEP-11
IMCONNECTION IMCONNECTION_NET 12 13-SEP-11
IMCONNECTION IMCONNECTION_PK 9926 13-SEP-11
IMCONNECTION IMCONNECTION_PK 1169373 19-SEP-11
IMCONNECTION IMCONNECTION_RES 0 13-SEP-11
IMCONNECTION IMCONNECTION_RES 0 19-SEP-11
IMCONNECTION IMCONNECTION_ST 2 13-SEP-11
IMCONNECTION IMCONNECTION_ST 60 19-SEP-11
IMCONNECTION IMCONNECTION_TYPEID 4 13-SEP-11
IMCONNECTION IMCONNECTION_TYPEID 64 19-SEP-11
IMCONNECTION IMCONNECTION_UR 26880 19-SEP-11
IMCONNECTION IMCONNECTION_UR 3 13-SEP-11
IMCONNECTION IMCONNECTION_VK 9810 13-SEP-11
IMCONNECTION IMCONNECTION_VK 1191866 19-SEP-11
IMCONNECTION IMCONNECTION_Z_NE 1169173 19-SEP-11
IMCONNECTION IMCONNECTION_Z_NE 9925 13-SEP-11
IMCONNECTION IMCONNECTION_Z_PORT 84092 19-SEP-11
IMCONNECTION IMCONNECTION_Z_PORT 3370 13-SEP-11
IMCONNECTION IMCONNECTION_Z_SITE 9926 13-SEP-11
IMCONNECTION IMCONNECTION_Z_SITE 1169373 19-SEP-11
IMCONNECTIONDESIGN IMCONNECTIONDESIGN_CON 1129298 19-SEP-11
IMCONNECTIONDESIGN IMCONNECTIONDESIGN_CON 6820 13-SEP-11
IMCONNECTIONDESIGN IMCONNECTIONDESIGN_PK 1129298 19-SEP-11
IMCONNECTIONDESIGN IMCONNECTIONDESIGN_PK 6820 13-SEP-11
IMCONNECTIONDESIGN IMCONNECTIONDESIGN_ST 6820 13-SEP-11
IMCONNECTIONDESIGN IMCONNECTIONDESIGN_ST 1129298 19-SEP-11
IMTERMINATION IMTERMINATION_ID 19852 13-SEP-11
IMTERMINATION IMTERMINATION_ID 2279477 19-SEP-11
IMTERMINATION IMTERMINATION_NE 19850 13-SEP-11
IMTERMINATION IMTERMINATION_NE 2327175 19-SEP-11
IMTERMINATION IMTERMINATION_PORT 168835 19-SEP-11
IMTERMINATION IMTERMINATION_PORT 6741 13-SEP-11
IMTERMINATION IMTERMINATION_SITE 19852 13-SEP-11
IMTERMINATION IMTERMINATION_SITE 2391415 19-SEP-11
40 rows selected.
SQL> select table_name,index_name,column_name,column_position
2 FROM all_ind_columns
3 WHERE table_name IN ('IMTERMINATION', 'IMCONNECTIONDESIGN', 'IMCONNECTION')
4 order by table_name,index_name, column_position
5 /
TABLE_NAME INDEX_NAME
COLUMN_NAME
COLUMN_POSITION
IMCONNECTION IMCONNECTION_A_NE
ANETWORKELEMENTID
1
IMCONNECTION IMCONNECTION_A_NE
ANETWORKELEMENTID
1
IMCONNECTION IMCONNECTION_A_PORT
APORTID
1
IMCONNECTION IMCONNECTION_A_PORT
APORTID
1
IMCONNECTION IMCONNECTION_A_SITE
ASITEID
1
IMCONNECTION IMCONNECTION_A_SITE
ASITEID
1
IMCONNECTION IMCONNECTION_NET
NETWORKID
1
IMCONNECTION IMCONNECTION_NET
NETWORKID
1
IMCONNECTION IMCONNECTION_PK
OBJECTID
1
IMCONNECTION IMCONNECTION_PK
OBJECTID
1
IMCONNECTION IMCONNECTION_RES
RESERVATIONID
1
IMCONNECTION IMCONNECTION_RES
RESERVATIONID
1
IMCONNECTION IMCONNECTION_ST
RESOURCESTATE
1
IMCONNECTION IMCONNECTION_ST
RESOURCESTATE
1
IMCONNECTION IMCONNECTION_TYPEID
TYPEID
1
IMCONNECTION IMCONNECTION_TYPEID
TYPEID
1
IMCONNECTION IMCONNECTION_UR
USERSESSIONID
1
IMCONNECTION IMCONNECTION_UR
USERSESSIONID
1
IMCONNECTION IMCONNECTION_VK
VISUALKEY
1
IMCONNECTION IMCONNECTION_VK
VISUALKEY
1
IMCONNECTION IMCONNECTION_Z_NE
ZNETWORKELEMENTID
1
IMCONNECTION IMCONNECTION_Z_NE
ZNETWORKELEMENTID
1
IMCONNECTION IMCONNECTION_Z_PORT
ZPORTID
1
IMCONNECTION IMCONNECTION_Z_PORT
ZPORTID
1
IMCONNECTION IMCONNECTION_Z_SITE
ZSITEID
1
IMCONNECTION IMCONNECTION_Z_SITE
ZSITEID
1
IMCONNECTIONDESIGN IMCONNECTIONDESIGN_CON
CONNECTIONID
1
IMCONNECTIONDESIGN IMCONNECTIONDESIGN_CON
CONNECTIONID
1
IMCONNECTIONDESIGN IMCONNECTIONDESIGN_PK
OBJECTID
1
IMCONNECTIONDESIGN IMCONNECTIONDESIGN_PK
OBJECTID
1
IMCONNECTIONDESIGN IMCONNECTIONDESIGN_ST
ASSIGNMENTSTATE
1
IMCONNECTIONDESIGN IMCONNECTIONDESIGN_ST
ASSIGNMENTSTATE
1
IMTERMINATION IMTERMINATION_ID
TERMINATEDID
1
IMTERMINATION IMTERMINATION_ID
TERMINATEDID
1
IMTERMINATION IMTERMINATION_NE
NETWORKELEMENTID
1
IMTERMINATION IMTERMINATION_NE
NETWORKELEMENTID
1
IMTERMINATION IMTERMINATION_PORT
PORTID
1
IMTERMINATION IMTERMINATION_PORT
PORTID
1
IMTERMINATION IMTERMINATION_SITE
SITEID
1
IMTERMINATION IMTERMINATION_SITE
SITEID
1
40 rows selected.
Plan without sql hints:
SQL> select * from table(dbms_xplan.display)
2 /
PLAN_TABLE_OUTPUT
Plan hash value: 2493901029
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
| 0 | SELECT STATEMENT | | 40 | 9960 | 6316 (1)| 00:01:16 |
| 1 | NESTED LOOPS | | 40 | 9960 | 6316 (1)| 00:01:16 |
| 2 | NESTED LOOPS | | 1359 | 160K| 3592 (1)| 00:00:44 |
| 3 | TABLE ACCESS BY INDEX ROWID| IMTERMINATION | 1359 | 16308 | 915 (1)| 00:00:11 |
|* 4 | INDEX RANGE SCAN | IMTERMINATION_NE | 1359 | | 6 (0)| 00:00:01 |
|* 5 | TABLE ACCESS BY INDEX ROWID| IMCONNECTIONDESIGN | 1 | 109 | 2 (0)| 00:00:01 |
|* 6 | INDEX UNIQUE SCAN | IMCONNECTIONDESIGN_PK | 1 | | 1 (0)| 00:00:01 |
|* 7 | TABLE ACCESS BY INDEX ROWID | IMCONNECTION | 1 | 128 | 2 (0)| 00:00:01 |
|* 8 | INDEX UNIQUE SCAN | IMCONNECTION_PK | 1 | | 1 (0)| 00:00:01 |
Predicate Information (identified by operation id):
4 - access("T1"."NETWORKELEMENTID"=9200150)
5 - filter("CD"."ASSIGNMENTSTATE"=2 OR "CD"."ASSIGNMENTSTATE"=3)
6 - access("CD"."OBJECTID"="TERMINATEDID")
7 - filter((("C"."CONSUMEDSIGNALTYPE"=21 OR "C"."CONSUMEDSIGNALTYPE"=22 OR
"C"."CONSUMEDSIGNALTYPE"=23 OR "C"."CONSUMEDSIGNALTYPE"=24 OR "C"."CONSUMEDSIGNALTYPE"=25 OR
"C"."CONSUMEDSIGNALTYPE"=26 OR "C"."CONSUMEDSIGNALTYPE"=27 OR "C"."CONSUMEDSIGNALTYPE"=28 OR
"C"."CONSUMEDSIGNALTYPE"=29 OR "C"."CONSUMEDSIGNALTYPE"=30 OR "C"."CONSUMEDSIGNALTYPE"=31 OR
"C"."CONSUMEDSIGNALTYPE"=32 OR "C"."CONSUMEDSIGNALTYPE"=33) OR ("C"."SIGNALTYPE"=21 OR
"C"."SIGNALTYPE"=22 OR "C"."SIGNALTYPE"=23 OR "C"."SIGNALTYPE"=24 OR "C"."SIGNALTYPE"=25 OR
"C"."SIGNALTYPE"=26 OR "C"."SIGNALTYPE"=27 OR "C"."SIGNALTYPE"=28 OR "C"."SIGNALTYPE"=29 OR
"C"."SIGNALTYPE"=30 OR "C"."SIGNALTYPE"=31 OR "C"."SIGNALTYPE"=32 OR "C"."SIGNALTYPE"=33)) AND
"C"."TYPEID"='$131')
8 - access("C"."OBJECTID"="CD"."CONNECTIONID")
32 rows selected.
Maybe you are looking for
-
Conditional Display on multiple items?
Is it possible to use multiple items in the conditional display region of a report? For example I'm trying to use the "Value of Item in Expression 1= Expression 2" and when I populate 1 item with the value in expression 2 it works just great but if I
-
Belle Refresh Roll Out...
I know the Belle firmware update/refresh is being rolled out gradually, but does anyone know when the rollout is due to be completed? I would expect by now that all Belle phones should have received the update but I haven't received anything yet. I h
-
Hi all, I have configured the the lower limit and higher limit both percentge & absolute value as 0% or 0 Value for tolerance limit PP. However, when i post the invoice $90 for a PO of $100. The invoice is not blocked for payment. But i saw the warni
-
Urgent help in copying STANDARD Texts of various lang from 1 client to anot
Hi, I have a require ment in which i have to copy all standard texts in chinese,thai language from one client to another. Can any one please help me with this . I don't have any idea on proceeding .
-
HT4623 cannot activate the phone after updating
cannot activate phone after updating