Slow query against seg$ - Oracle 10g
Hi,
Our AWR report shows the following slow query, 3 minutes per execution,
select file#, block# from seg$ where type# = 3 and ts# = :1
This query isn't from our application for sure. Does anyone know what backgroud jobs or processes may execute this query?
Thanks.
user632535 wrote:
Hi,
Our AWR report shows the following slow query, 3 minutes per execution,
select file#, block# from seg$ where type# = 3 and ts# = :1
This query isn't from our application for sure. Does anyone know what backgroud jobs or processes may execute this query?
It looks like the type of thing the SMON would run to clear up temporary segments after a process has done a rebuild, move, drop or similar. One reason why it might be slow is if you have a very large number of objects in a given tablespace that is subject to a lot of drops, creates etc. (E.g. a tablespace holding a complicated composite partitioned object with lots of indexes that goes through a frequent cycle of add/drop partition).
Regards
Jonathan Lewis
http://jonathanlewis.wordpress.com
http://www.jlcomp.demon.co.uk
"The temptation to form premature theories upon insufficient data is the bane of our profession."
Sherlock Holmes (Sir Arthur Conan Doyle) in "The Valley of Fear".
Similar Messages
-
Running Oracle 9i client code against an Oracle 10g install on PC
On Unix I am able to run Oracle 9i client code against an Oracle 10g install by setting ORACLE_HOME to the Oracle 10g install location and then creating a symbolic link (example: ln -fs libclntsh.so.10.1 libclntsh.so.9.0).
On PC (in particular XP SP2) I want to do something similar without using "junctions" or "junction points". Is there a way to set an environment variable or ini file to have my 9i client code point to the right libraries? I keep getting an error saying that my client code will not run due to "orasql9.dll" not being found. The "orasql10.dll" is installed on my machine.
Any assistance would be appreciated.You might want to check metalink doc,
Client / Server / Interoperability Support Between Different Oracle Versions
Doc ID: Note:207303.1
Even your application built on 9i, doesn't mean it will not work with 10g database. From what I can see, running 9i executable under 10g installation to create mixed blood breed will do more harm than good. Not only it's not supported but also the outcome is unpredictable. -
Sub-query problem on Oracle 10g
The following query works on Oracle 10.2.0.1.0 on windows,but doesn't work on Oracle 10.2.0.2.0 on Linux.
Error report: SQL Error: ORA-00904: "T"."AUDIT_USECS": invalid identifier 00904. 00000 - "%s: invalid identifier"
It works after i remove the sub-query. I found that if use fields of T in sub-query,then error occurs. Is it saying that sub-query can't access the fields in main query?
What's the problem?
Is there any grammar erros?If so,what's the right likes?
Thanks!
CREATE TABLE AUDITHISTORY(
CASENUM numeric(20, 0) NOT NULL,
AUDIT_DATE date NOT NULL,
USER_NAME varchar(255) NULL,
AUDIT_USECS numeric(6, 0) NOT NULL,
TYPE_ID INT NOT NULL )
Query:
SELECT T.CASENUM,
T.USER_NAME,
T.AUDIT_DATE AS STARTED,
(SELECT *
FROM (SELECT S.AUDIT_DATE
FROM AUDITHISTORY S
WHERE S.CASENUM=T.CASENUM AND TYPE_ID=2
AND S.USER_NAME=T.USER_NAME
AND (S.AUDIT_DATE > T.AUDIT_DATE OR (S.AUDIT_DATE = T.AUDIT_DATE AND S.AUDIT_USECS > T.AUDIT_USECS))
ORDER BY S.AUDIT_DATE ASC,S.AUDIT_USECS ASC
) WHERE rownum <= 1) AS ENDED
FROM AUDITHISTORY T WHERE TYPE_ID=1
BANNER
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod PL/SQL Release 10.2.0.1.0 - Production
CORE 10.2.0.1.0 Production
TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
NLSRTL Version 10.2.0.1.0 - Production
BANNER
Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - Prod PL/SQL Release 10.2.0.2.0 - Production
CORE 10.2.0.2.0 Production
TNS for Linux: Version 10.2.0.2.0 - Production
NLSRTL Version 10.2.0.2.0 - ProductionTry this way:
SQL> select * from AUDITHISTORY;
CASENUM AUDIT_DAT USER_NAME AUDIT_USECS TYPE_ID
10 12-MAR-10 USER 100 1
10 14-MAR-10 USER 100 2
10 16-MAR-10 USER 100 2
SQL> SELECT T.CASENUM,
2 T.USER_NAME,
3 T.AUDIT_DATE AS STARTED,
4 (SELECT max(S.AUDIT_DATE) keep (dense_rank first order by S.AUDIT_DATE ASC,S.AUDIT_USECS ASC)
5 from AUDITHISTORY S WHERE S.CASENUM=T.CASENUM AND TYPE_ID=2
6 AND S.USER_NAME=T.USER_NAME
7 AND (S.AUDIT_DATE > T.AUDIT_DATE OR
8 (S.AUDIT_DATE = T.AUDIT_DATE AND S.AUDIT_USECS > T.AUDIT_USECS))
9 ) as ended
10 FROM AUDITHISTORY T WHERE TYPE_ID=1;
CASENUM USER_NAME STARTED ENDED
10 USER 12-MAR-10 14-MAR-10Max
http://oracleitalia.wordpress.com -
Slow first connection using Oracle 10g xe and Visual Studio 2008
{noformat}
Good day,
I'm slightly unaccustomed to using forums, so bear with me.
My initial connection to the Oracle database takes approximately 30 seconds. It seems to be waiting for a connection before timing out and trying another connection which works, as all subsequent connections work immediately. I'm unsure how other people's responses in forums can help me due to the plethora of configurations, so here's mine. My comprehension of the oracle world is still growing, you'll have to explain the terms you're using for me, Hoping you can help.
I'm using Visual Studio 2008, set to use 32 bit debug mode, on a Windows 7 Pro platform. Also using Oracle 10g Xe, and have installed the 32 bit version of ODAC 11.2 (11.2.0.1) to aid making a connection from Visual Studio to Oracle.
I have a database set up and a user with system admin rights. This is all local for a programming project and will never see the light of day outside of my personal machine.
I am using code to connect, not the GUI. I wish to code this project completely without the aid of the GUI. so my connection string within Visual Studio C# is (pw/id hidden)...
string xe = "Data Source=xe;User Id=xxxxx;Password=xxxxx;";
OracleConnection conn = new OracleConnection(xe);
My c:\devsuitehome\network\admin\sqlnet.ora file is this:
# sqlnet.ora Network Configuration File: C:\DevSuiteHome\network\admin\sqlnet.ora
# Generated by Oracle configuration tools.
SQLNET.AUTHENTICATION_SERVICES= (NTS)
NAMES.DIRECTORY_PATH= (LDAP, TNSNAMES, EZCONNECT, ONAMES, HOSTNAME)
And my c:\devsuitehome\network\admin\TNSNames.ora file is this:
tnsnames.ora Network Configuration File: C:\DevSuiteHome\network\admin\tnsnames.ora
Generated by Oracle configuration tools.
XE =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = xe)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = <machine name)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = PLSExtProc)
Just for good measure, my tnsping xe shows:
"Used paramter files:<br/>
c:\devsuitehome\network\admin\sqlnet.ora<br/><br/>
Used TNSNAMES adapter to resolve the alias<br/>
Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521)))(CONNECT_DATA = (SERVICE_NAME = xe)))
OK (0 msec)"
So, how can I make that initial connection faster so I don't spend 15 years testing my application due to slow start-ups? :)
Thank you.
Kevin.
{noformat}
Edited by: 832285 on Jan 29, 2011 10:08 AM
Edited by: 832285 on Jan 29, 2011 10:10 AMI have formatted my hard drive since my first post. I was running window 64 bit with a higher version of the ODAC and that proved to crash my machine with faulty error messages about memory. I have reverted to a previous version of the ODAC tools and everything works very smooth now. Still the connection time is consistently 20 seconds or longer on the first attempt.
Just a little more information.. I am currently taking a college course with 15 other students, as you can tell by the impersonal machine name, where programming using visual studio 2008, and Oracle 10g xe is expected. All of us are using a 64 bit environment and we all have difficulties cutting down the load time of making the first connection to Oracle. Some people are longer making the connection, but none are shorter.
One other note. After the first connection is made, taking 20 or more seconds, and is closed, all subsequent openings of the connection are instantaneous, for all of us.
If there is ANYTHING more I can get for you, please let me know. With my environment stable as it is, I will not need to format or change any information for the foreseeable future.
Here is the information you requested
1 The connection method I am using, I have chosen the manual connection for you, however the delay exists if the connection is made through the GUI as well.
Historically, I am getting slow connection speeds through adding the connection through the GUI or by a manual connection. Here is how I am doing it manually. I have the connection being created in 20 seconds, which is the best I can get.
Imports Oracle.DataAccess.Client
Also included project reference: oracle.dataaccess / version 2.111.6.20
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim connString As String = "Data Source=XE;User Id=abc;Password=abc;"
Dim con As OracleConnection = New OracleConnection()
con.ConnectionString = connString
Try
con.Open()
MessageBox.Show("Connected!")
con.Close()
con.Dispose()
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try
End SubMy current TNS Ping results
TNS Ping Utility for 32-bit Windows: Version 10.2.0.1.0 - Production on 16-FEB-2011 01:02:36
Copyright (c) 1997, 2005, Oracle. All rights reserved.
Used parameter files:
C:\oraclexe\app\oracle\product\10.2.0\server\network\admin\sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = XE)))
OK (0 msec)2 Connection to SQL plus is instantaneous.
I fought for weeks about the ODAC version 11.2.0.1 that you see in the previous post, and that would be a whole new thread. Suffice it to say I have a reliable environment to program in with this 10.2.0.1.0 version that I am running now, and the connection time has not changed, it is still minimum 20 seconds load time, sometimes up to 25.
3 Ram usage in my typical environment
I am running this laptop with 4 gigs of ram. This is a typical environment I would be running my application in.
Physical memory
total 4090
cached 1753
available 2345
free 656
system
handles 27141
threads 911
processes 70
commit megs 2860/8179
kernel memory megs
paged 201
nonpaged 52
4 I formatted my machine and reinstalled the Windows 7 professional operating system as of a few nights ago. The Oracle software on my machine is
Oracle Database 10g express edition
ODAC 11.1.0
I amm not sure what filename you would need in addition to the product names that I have installed.
5 The information from the SET command is
ALLUSERSPROFILE=C:\ProgramData
APPDATA=C:\Users\stepheke\AppData\Roaming
CommonProgramFiles=C:\Program Files\Common Files
CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files
CommonProgramW6432=C:\Program Files\Common Files
COMPUTERNAME=STEKEV0908
ComSpec=C:\Windows\system32\cmd.exe
FP_NO_HOST_CHECK=NO
HOMEDRIVE=C:
HOMEPATH=\Users\stepheke
LOCALAPPDATA=C:\Users\stepheke\AppData\Local
LOGONSERVER=\\STEKEV0908
NUMBER_OF_PROCESSORS=2
oracle_sid=xe
OS=Windows_NT
Path=C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Oracleapp\stepheke\product\11.1.0\client_1;C:\Oracleapp\stepheke\product\11.1.0\client_1\bin;C:\oraclexe\app\oracle\product\10.2.0\server\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;c:\Program Files (x86)\Microsoft SQL Server\90\Tools\binn\;C:\Program Files (x86)\Windows Live\Shared
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE=AMD64
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 23 Stepping 10, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=170a
ProgramData=C:\ProgramData
ProgramFiles=C:\Program Files
ProgramFiles(x86)=C:\Program Files (x86)
ProgramW6432=C:\Program Files
PROMPT=$P$G
PSModulePath=C:\Windows\system32\WindowsPowerShell\v1.0\Modules\
PUBLIC=C:\Users\Public
SystemDrive=C:
SystemRoot=C:\Windows
TEMP=C:\Users\stepheke\AppData\Local\Temp
TMP=C:\Users\stepheke\AppData\Local\Temp
USERDOMAIN=stekev0908
USERNAME=stepheke
USERPROFILE=C:\Users\stepheke
VS90COMNTOOLS=c:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\Tools\
windir=C:\Windows -
Query on Recyclebin (Oracle 10g)
Hi Gurus,
Can you tell me the command to clear the Recyclebin in Oracle 10g.
Thanks in advance
~Anup.[url http://download-west.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_9018.htm#i2152611]purge
You want not to use Recyclebin, then you may try as follws
alter system set recyclebin = off scope = both; -- 10.20
alter system set _recyclebin = off scope = spfile; -- 10.01 -
Slow query performance in Oracle 10.2.0.3
Hi,
We have Oracle 10.2.0.3 installed on RHEL 5(64 bit).We have two queries out of which one is a query using select while other query is using a insert.First we executed insert query which inserts 10000 rows in a table and then select query on this table.This works fine in one thread.But when we do samething in 10 threads, at that time INSERT is fine but select is taking very long time for 10 threads.Any bug related to parallel execution of queries for SELECT in 10.2.0.3?Any suggestion??
Thanks in advance.
Regards,
RJ.Justin,
We have a same queries for INSERT and Select in 10 manual sessions outof which select query is taking more time to execute.Please refer to WAITs given below.No there is no bottleneck as far as hardware is concerned because we tested it on different configuration of servers.
Event Waits Time(s) Avg Wait(ms) % Total Call Time Wait Class
CPU time 52 93.2
latch: cache buffers chains 45,542 6 0 10.7 Concurrency
log file parallel write 2,107 3 1 5.2 System I/O
log file sync 805 2 2 3.5 Commit
latch: session allocation 5,116 1 0 2.6 Other Wait Events
• s - second
• cs - centisecond - 100th of a second
• ms - millisecond - 1000th of a second
• us - microsecond - 1000000th of a second
• ordered by wait time desc, waits desc (idle events last)
Event Waits %Time-outs Total Wait Time (s) Avg wait (ms) Waits /txn
latch: cache buffers chains 45,542 0.00 6 0 22.99
log file parallel write 2,107 0.00 3 1 1.06
log file sync 805 0.00 2 2 0.41
latch: session allocation 5,116 0.00 1 0 2.58
buffer busy waits 20,482 0.00 1 0 10.34
db file sequential read 157 0.00 1 4 0.08
control file parallel write 1,330 0.00 0 0 0.67
wait list latch free 39 0.00 0 10 0.02
enq: TX - index contention 632 0.00 0 0 0.32
latch free 996 0.00 0 0 0.50
SQL*Net break/reset to client 1,738 0.00 0 0 0.88
SQL*Net message to client 108,947 0.00 0 0 55.00
os thread startup 2 0.00 0 19 0.00
cursor: pin S wait on X 3 100.00 0 11 0.00
latch: In memory undo latch 136 0.00 0 0 0.07
log file switch completion 4 0.00 0 7 0.00
latch: shared pool 119 0.00 0 0 0.06
latch: undo global data 121 0.00 0 0 0.06
buffer deadlock 238 99.58 0 0 0.12
control file sequential read 1,735 0.00 0 0 0.88
SQL*Net more data to client 506 0.00 0 0 0.26
log file single write 2 0.00 0 2 0.00
SQL*Net more data from client 269 0.00 0 0 0.14
reliable message 12 0.00 0 0 0.01
LGWR wait for redo copy 26 0.00 0 0 0.01
rdbms ipc reply 6 0.00 0 0 0.00
latch: library cache 7 0.00 0 0 0.00
latch: redo allocation 2 0.00 0 0 0.00
enq: RO - fast object reuse 2 0.00 0 0 0.00
direct path write 21 0.00 0 0 0.01
cursor: pin S 1 0.00 0 0 0.00
log file sequential read 2 0.00 0 0 0.00
direct path read 8 0.00 0 0 0.00
SQL*Net message from client 108,949 0.00 43,397 398 55.00
jobq slave wait 14,527 49.56 35,159 2420 7.33
Streams AQ: qmn slave idle wait 246 0.00 3,524 14326 0.12
Streams AQ:qmn coordinator-
idle wait 451 45.45 3,524 7814 0.23
wait for unread message on -
broadcast channel 3,597 100.00 3,516 978 1.82
virtual circuit status 120 100.00 3,516 29298 0.06
class slave wait 2 0.00 0 0 0.00 Message was edited by:
RJiv
Message was edited by:
RJiv
Message was edited by:
RJiv
Message was edited by:
RJiv
Message was edited by:
RJiv
Message was edited by:
RJiv
Message was edited by:
RJiv
Message was edited by:
RJiv
Message was edited by:
RJiv -
How do I clear query parameter in Oracle 10g ADF
HI ,
My question is
1. when i am navigating to page B from Page A its querying data and showing . And I have same Pgae B which is attached to Menu also
so . How do i trace whether I am comming from menu or comming from Page A ..??
2. if i moved to page A and searched with some criteria , after then I moved to Page B from Menu , again come back to Page A from Menu
its retaining the old search criteria in the page . not clearing my search criteria . ( as a result what is happening its not showing the data whatever
in the Table ) . In order to show my existing data , i need to clear and then again clicking page B in Menu then only its showing the data .
so how to clear query parameter[email protected] wrote:
HI ,
My question is
1. when i am navigating to page B from Page A its querying data and showing . And I have same Pgae B which is attached to Menu also
so . How do i trace whether I am comming from menu or comming from Page A ..??Add a setActionListner and set a sessionscope variable according to the action?
>
2. if i moved to page A and searched with some criteria , after then I moved to Page B from Menu , again come back to Page A from Menu
its retaining the old search criteria in the page . not clearing my search criteria . ( as a result what is happening its not showing the data whatever
in the Table ) . In order to show my existing data , i need to clear and then again clicking page B in Menu then only its showing the data .
so how to clear query parameter -
SQL slow after upgrading to Oracle Database 10g Enterprise Edition Release
Hi all:
We have recently upgraded our database from Oracle9i Enterprise Edition Release 9.2.0.6.0 to Oracle Database 10g Enterprise Edition Release 10.2.0.1.0
After that we found that our some sql getting very slow
for example query with 9i showing result in 4 seconds while in 10g showing result in 28 seconds.
Following is the execution plan of my query in Oracle9i
Operation Object PARTITION_START PARTITION_STOP COST
SELECT STATEMENT () 9458
NESTED LOOPS () 9458
SORT (UNIQUE)
INDEX (RANGE SCAN) BL_EQ_PK_N 2
VIEW () CONTAINER_INFO 2
UNION-ALL (PARTITION)
TABLE ACCESS (BY INDEX ROW SERVICE_EVENTS 1
NESTED LOOPS () 11
NESTED LOOPS () 10
NESTED LOOPS (OUTER) 9
NESTED LOOPS () 8
NESTED LOOPS () 7
NESTED LOOPS () 6
NESTED LOOPS () 5
NESTED LOOPS () 4
NESTED LOOPS (OUT 3
TABLE ACCESS (BY EQUIPMENT_USES 2
INDEX (UNIQUE S EQUSE_PK 1
TABLE ACCESS (BY SHIPPING_LINES 1
INDEX (UNIQUE S LINE_PK
INDEX (UNIQUE SCA EQHT_PK
TABLE ACCESS (BY I EQUIPMENT_TYPES 1
INDEX (UNIQUE SCA EQTP_PK
TABLE ACCESS (BY IN EQUIPMENT_SIZES 1
INDEX (UNIQUE SCAN EQSZ_PK
TABLE ACCESS (BY IND SHIP_VISITS 2
INDEX (RANGE SCAN) SVISIT_UK 1
TABLE ACCESS (BY INDE SHIPS 1
INDEX (UNIQUE SCAN) SHIP_PK
TABLE ACCESS (BY INDEX CARE_VIR_MAP 1
INDEX (UNIQUE SCAN) VIR_VESVOY
TABLE ACCESS (BY INDEX EQUIPMENT 1
INDEX (RANGE SCAN) EQ_EQUSE_FK
INDEX (RANGE SCAN) SEVENTS_EQUSE_FK_N
NESTED LOOPS () 7
NESTED LOOPS () 6
NESTED LOOPS () 5
NESTED LOOPS () 4
NESTED LOOPS (OUTER) 3
TABLE ACCESS (BY INDE EQUIPMENT_USES 2
INDEX (UNIQUE SCAN) EQUSE_PK 1
TABLE ACCESS (BY INDE SHIPPING_LINES 1
INDEX (UNIQUE SCAN) LINE_PK
INDEX (UNIQUE SCAN) EQHT_PK
TABLE ACCESS (BY INDEX EQUIPMENT_TYPES 1
INDEX (UNIQUE SCAN) EQTP_PK
TABLE ACCESS (BY INDEX R EQUIPMENT_SIZES 1
INDEX (UNIQUE SCAN) EQSZ_PK
TABLE ACCESS (BY INDEX RO EQUIPMENT 1
INDEX (RANGE SCAN) EQ_EQUSE_FK and following is my query plan in Oracle 10g
Operation Object PARTITION_START PARTITION_STOP COST
SELECT STATEMENT () 2881202
NESTED LOOPS () 2881202
SORT (UNIQUE) 2
INDEX (RANGE SCAN) BL_EQ_PK_N 2
VIEW () CONTAINER_INFO 2881199
UNION-ALL ()
NESTED LOOPS (OUTER) 2763680
NESTED LOOPS () 2718271
NESTED LOOPS () 2694552
NESTED LOOPS () 2623398
NESTED LOOPS (OUTER) 2623380
NESTED LOOPS () 2393965
NESTED LOOPS () 2393949
NESTED LOOPS () 2164536
NESTED LOOPS () 1706647
NESTED LOOPS () 854120
TABLE ACCESS (FU BL_EQUIPMENT 1515
TABLE ACCESS (BY EQUIPMENT_USES 1
INDEX (UNIQUE S EQUSE_PK 1
TABLE ACCESS (BY EQUIPMENT 1
INDEX (RANGE SCA EQ_EQUSE_FK 1
TABLE ACCESS (BY I EQUIPMENT_TYPES 1
INDEX (UNIQUE SCA EQTP_PK 1
TABLE ACCESS (BY IN EQUIPMENT_SIZES 1
INDEX (UNIQUE SCAN EQSZ_PK 1
INDEX (UNIQUE SCAN) EQHT_PK 1
TABLE ACCESS (BY INDE SHIPPING_LINES 1
INDEX (UNIQUE SCAN) LINE_PK 1
INDEX (RANGE SCAN) SEVENTS_TSERV_FK_N 1
TABLE ACCESS (BY INDEX SHIP_VISITS 2
INDEX (RANGE SCAN) SVISIT_UK 2
TABLE ACCESS (BY INDEX R SHIPS 1
INDEX (UNIQUE SCAN) SHIP_PK 1
TABLE ACCESS (BY INDEX RO CARE_VIR_MAP 2
INDEX (UNIQUE SCAN) VIR_VESVOY 1
NESTED LOOPS (OUTER) 117519
NESTED LOOPS () 98158
NESTED LOOPS () 78798
NESTED LOOPS () 78795
NESTED LOOPS () 59432
TABLE ACCESS (FULL) EQUIPMENT_USES 20788
TABLE ACCESS (BY INDE EQUIPMENT_TYPES 1
INDEX (UNIQUE SCAN) EQTP_PK 1
TABLE ACCESS (BY INDEX EQUIPMENT 1
INDEX (RANGE SCAN) EQ_EQUSE_FK 1
INDEX (UNIQUE SCAN) EQHT_PK 1
TABLE ACCESS (BY INDEX R EQUIPMENT_SIZES 1
INDEX (UNIQUE SCAN) EQSZ_PK 1
TABLE ACCESS (BY INDEX RO SHIPPING_LINES 1
INDEX (UNIQUE SCAN) LINE_PK 1can somebody help me regarding this?
Thanks
HassanI would say ..gather stats on 9i/10gfor the required table and indexes , then post the expalin plan.
--Girish -
My computer slows down and hangs after installing oracle 10g
My computer just slows down after installing oracle 10g. I have a pentium 4 3ghz with 512 memory (32 mb used by graphics built in card). It slows down and hanged even if I agjusted the swap memory to 800 mb. I have two swap file/page file - in drive c and drive d. I even cannot shut it down because it takes maybe 30 minutes just to see the "shut-off/log-off" screen.
Before starting up Oracle, when you go to the task manager, how much RAM does it show actually free? 512 MB is pretty small to run Oracle in the first place-- Windows and Office can use a fair chunk of RAM themselves, depending on which Office apps you are running. You may also be suprised by the amount of RAM that a web browser, email client, and the various other apps that folks generally install can use.
Justin
Distributed Database Consulting, Inc.
http://www.ddbcinc.com/askDDBC -
SQL Developer 3.0 against Oracle 10g
Hi,
I have used SQL Developer in previous employments and prefer use it now (ie SQL Developer 3.0), but unsure if the mix will work.
I am on a Windows Server 2003 Std 64bit Edition and with Service Pack 2. and have Oracle client 10g home with basic tools against an Oracle 10G database server.
So before installing, I would like some tips on the best mix for Client and Server with respect to SQL Developer.
I also understnad that it will require Java JDK install prior to SQL Developer. Will this require me to take into consideration current Java installs under
"C:\Program Files (x86)\Java\jre6\bin" and dated back to 30 Sept 2010
Many thanks before hand
ChrisYou can can download SQL Developer with a JDK included. This is 32-bit, but will run fine in a 64-bit OS.
Alternatively you can download the 64-bit version of SQL Developer. This requires you to have a 64-bit JDK.
You can install multiple JDKs without interfering with each other. Your existing JRE installation won't work anyway as you need a JDK.
If you download a JDK, don't get Java 7 as SQL Developer doesn't work properly with that. Get the latest version of Java 6.
Edited by: Jim Smith on Dec 20, 2011 4:31 PM -
SQL SSRS 2008 DateTime Calendar Control and Oracle 10g Data Source
Hello. I am creating reports in SSRS 2008 using the calendar control for a date range. Let's say we select a start date of 3/3/2012. This parameter is sent into my SQL statement in the WHERE clause which is executed against an Oracle 10g database. All syntax has to be in SQL that Oracle understands, so no CONVERT or CAST.
The format of the date is throwing an error "ORA-01843: not a valid month" when I try to use the following:
SELECT *
FROM TABLE
WHERE STARTDATE >= TO_DATE('3/03/2012', 'MM/DD/YYYY')
I get ORA-01722: invalid number when I try the following:
SELECT *
FROM TABLE
WHERE STARTDATE >= >= TO_CHAR('3/03/2012', 'MM/DD/YYYY')
I cannot find a way to format the date parameter in SQL Server SSRS before it gets to the SQL to be executed in Oracle.
Please help.
Thanks,
Sunny920616 wrote:
sb92075: I am showing you how Oracle renders the date if I do a simple select from the table from which I am trying to pull data. You are right, it sure doesn't prove anything other than how the date looks right out of the Oracle database, but hopefully, it will give a clue as to how I need my SSRS date parameter to work.
Hans Forbrich:
I get ORA-01722: invalid number when I try the following:
SELECT *
FROM TABLE
WHERE STARTDATE >= TO_CHAR('3/03/2012', 'MM/DD/YYYY')
Solomon:
It works. The problem is getting the parameter '3/3/2012' into a usable format for Oracle.
Let's assume an application is sending in '3/3/2012' which will be used in an Oracle query (no PL/SQL allowed, nor can I create functions, stored procedures, etc - only straight up SQL). How can I prepare the parameter to successfully do the compare on the Oracle Date field?
12:50:23 SQL> select TO_CHAR('03/03/2012', 'MM/DD/YYYY') from dual;
select TO_CHAR('03/03/2012', 'MM/DD/YYYY') from dual
ERROR at line 1:
ORA-01722: invalid number
12:51:00 SQL> ed
Wrote file afiedt.buf
1* select TO_DATE('03/03/2012', 'MM/DD/YYYY') from dual
12:51:20 SQL> /
TO_DATE('03/03/2012
2012-03-03 00:00:00 -
Hi all
Do we support creating a universe against an Oracle 10g OLAP database and how do we do this to report against OLAP data?
I notice that there isn't an OLAP universe option for this, so I presume that if we can then we do this via OLAP SQL expressions?
Thank you for your help and kind regards,
DeamHi,
You are right, we are supporting Oracle OLAP 10g using SQL.
In fact we provide an option in Universe Designer where you can automatically create an Oracle view based on an AW (Analytical Workspace) and then generate the universe:<ul><li>Select "Metadata exchange" menu option from "File" menu
<li>Then select "Oracle OLAP 9i/10G/11g" option
</ul>You can therefore customize the universe by adding objects, filters, measures, etc.
You can also add other tables in the scema in order to provide drill-though capabilities.
Regards,
Didier -
Error in Cursors in Oracle 10g
We have a VB program that is running a procedure with a cursor like this:
cursor cleo is select * from tabla1 where campo1='valor1';
leer cleo%rowtype;
begin
open cleo;
loop
fetch cleo into leer;
exit when cleo%notfound;
end loop;
close cleo;
end
Then return rows that not are part of the set given by the select statement.
The problem is given randomly when running the VB program, instead if run the same statement in sqlplus it works fine.
The program works fine against an Oracle 8 database, the error appears against an Oracle 10g database
nullthe code to execute is:
create or replace procedure cpc_jz_aux (dirname varchar2, plan varchar2, error out varchar2) is
file_write sys.utl_file.file_type;
cursor cleo is select *
from oper.plan_hidro_et_per_cpcs
where id_plan = plan
and id_etapa = 1 order by id_hidro,id_per;
leer cleo%rowtype;
BEGIN
error:=NULL;
if sys.utl_file.is_open(file_write) then
sys.utl_file.fclose(file_write);
end if;
file_write := sys.utl_file.fopen(dirname,'cpc_jt3.dat','w');
open cleo;
loop
fetch cleo into leer;
exit when cleo%notfound;
sys.utl_file.put_line(file_write,leer.id_hidro||','||leer.id_per||','||
nvl(leer.ymin,0)||','||nvl(leer.ymax,0)||','||nvl(leer.zmin,0)||
','||nvl(leer.zmax,0));
end loop;
close cleo;
sys.utl_file.fclose(file_write);
exception
when others then
dbms_output.put_line('error:'||sqlcode||' '||sqlerrm);
error := sqlerrm;
if sys.utl_file.is_open(file_write) then
sys.utl_file.fclose(file_write);
end if;
raise;
end cpc_jz_aux;
Message was edited by:
jpastro -
I have all ready successfully installed Oracle 10g Database 10.1.0.4 with appropriate olap patch.
The latest version of Analytical Warehouse Manager (10.1.0.4) is also installed and working prior to installing application server 10g(10.1.2)
1.Installed AS10g(10.1.2) - Infrastructure Tier - Successful Installation and services running
2.Installed AS10g(10.1.2) - Application Server Mid Tier - Successful Installation and services running
3.Installed Business Intelligence 10g (10.1.2)Tier - Successful Installtion and services running
4. Using Enterprise Manager, tried to install the Discoverer Catalog, and authorise the schemas that will contain data that Discoverer will analyze.
- Attempted to do this against the Oracle 10g (10.1.0.4) instance above and recieved a horrific looking 'INTERNAL SERVER ERROR'
Rebooted the server and took down all the services related to the application server and BI install (Only Services required by 10.1.0.4 Oracle 10g are running)
Retested the Analytic Workspace Manager 10g Release 1 now unfortunately obtaining an 'java.sql.SQLException:t2cGetCharSet' error trying connect to 10.1.04. Oracle 10g database
This was originally working prior to the 10g Application Server install.
Any ideas as to what is going on...Hello everybody
Im still getting problems trying to install a new discover catalog against 10.1.0.4 Oracle 10g instance (GLOBAL tablespace)
I have successfully installed
1. Oracle 10g (10.1.0.4) with all appropriate patches (successfully up and running and works with Analytic Warehouse Manager 10g R1)
2. Oracle Application Server 10g R2 (10.1.0.2) (Infrastructure and Application Server mid tiers both successfully up and running)
3. Oracle Business Intelligence 10g (10.1.0.2)
(successfully up and running)
Whilst trying to install a discover catalog into my GLOBAL tablespace on Oracle10g 10.1.0.4 instance, I encountered the following error
500 Internal Server Error
java.lang.InterruptedException: sleep interrupted
at java.lang.Thread.sleep(Native Method)
atoracle.disco.oem.controller.DiscoEventHandler.handleEvent(DiscoEventHandler.java:104)
atoracle.cabo.servlet.event.TableEventHandler.handleEvent(Unknown
Source)
atoracle.cabo.servlet.event.TableEventHandler.handleEvent(Unknown
Source)
atoracle.cabo.servlet.event.BasePageFlowEngine.handleRequest(Unknown
Source)
atoracle.cabo.servlet.AbstractPageBroker.handleRequest(Unknown
Source)
atoracle.cabo.servlet.ui.BaseUIPageBroker.handleRequest(Unknown
Source)
atoracle.cabo.servlet.PageBrokerHandler.handleRequest(Unknown
Source)
atoracle.cabo.servlet.UIXServlet.doGet(Unknown
Source)
atoracle.sysman.emSDK.svlt.EMServlet.doGet(EMServlet.java:347)
atoracle.sysman.eml.app.Console.doGet(Console.java:271)
atavax.servlet.http.HttpServlet.service(HttpServlet.java:740)
atjavax.servlet.http.HttpServlet.service(HttpServlet.java:853)
atcom.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:823)
atcom.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:322)
atcom.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
atcom.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
atcom.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
atcom.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
at java.lang.Thread.run(Thread.java:534)
Thank you for your help -
Why Oracle Names have been discontinued in Oracle 10g
Hello,
I wanted to know why Oracle Names is not supported in Oracle 10g? Desupporting Oracle Names in future releases on Oracle is a big decision, as most of the sites still use Oracle 8i for legacy applications, which does not support OID. Translation tunnel between Oracle 8i ONAMES and Oracle 10g OID can be used... but what is the reason for not supportin ONAMES in Oracle 10g?
Regards
SudhanshuONames is an obsolete technology. I suspect Oracle wanted to eliminate the need to support a code line that has an obvious replacement.
Those customers who still use Oracle8i obviously don't care about being supported by Oracle. Anyone who has a useable support contract will likely have upgraded, especially since Oracle gave lots of warning about desupporting Oracle8i, and even extended the desupport date.
Besides, there really is no conflict - use ONames for the unsupported legacy systems and OiD for the new systems. Or ... use the Oracle9i ONames & Oracle9i client against an Oracle 10g environment.
Maybe you are looking for
-
When I run program UKM_TRANSFER_ITEMS it throws the following error. I suspect from the error message it is related to XI but I don't know what it means. Does anybody know? Message number is UKM_PI008
-
Displaying problem Help Plz !!!
Hi all For some reason i cant seem to get any applets to run on my computer, they just wont show up, if any one could help, sorry now if i am in the wrong room for this Thanks
-
Which is the last photoshop cs5 version?
hi may i know which is the last cs5 version ? if i google i get this result cs5.1 and an adobe webpage to download it , but on the adobe webside it's 12.0.4 it's very confused maybe it's a fool question , but is cs5.1 or cs5 12.0.4 ? thanks best rega
-
Need to copy files from multiple machine to multiple locations on server in daily basis
My scenario is below: 1. I have 20 machines and data for backup would be on only in one folder of each machine. 2. Need to create 20 folders in server and copy the corresponding machine's data to the respective folder daily. 3. Data copy should be ap
-
Libreoffice: XAllocID error (arch & linux newbie)
I updated my Arch a couple of days ago and libreoffice apps won't start up. When attempting to run from a command line, the following error appears: soffice.bin: xcb_io.c: 470: _XAllocID: Assertion 'ret != inval_id' failed. After spending the last tw