Query using connectionpool impossible on oracle instance
Hi,
I have a question for a system that was to be released in production mode april
1st, 2003, but could not be because of this problem:
When connecting to a Oracle 8.1.7r3 DB using WL 6.1SP3, I have a problem using
connection pooling with both the oracle jdbc drivers as well as the oci drivers.
Switching of the connection pool makes the application work but that defies the
whole purpose of configuring connection pools.
1. start up of the runserver with connection pooling enables does NOT return any
errors
2. the query to be executed is correct and checked on multiple ways (including
sqlnet, jdbc, oci, all without transaction pooling)
3. the username/password used is correct and works but only if connection pooling
disabled, no typos were made
4. the user has been granted DBA rights and still the connection pooling does
not work.
5. the table accessed in the query executed is available and a public synonym
exists; the user has select rights on the table
6. the connection pool is assigned a JNDI datasource and lookup succeeds
7. obtaining a connection from the pool works.
8. executing of the query WITH connection pooling returns SQLException with error
message:
java.sql.SQLException: ORA-00942: table or view does not exist
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:168)
at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:208)
at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:543)
at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1405)
at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteDescribe(TTC7Protocol.java:643)
at oracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleStatement.java:1674)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1870)
at oracle.jdbc.driver.OracleStatement.executeQuery(OracleStatement.java:538)
at org.mmbase.module.database.MultiStatement.executeQuery(Unknown Source)
at org.mmbase.module.core.ClusterBuilder.searchMultiLevelVector(Unknown
Source)
at org.mmbase.bridge.implementation.BasicCloud.getList(Unknown Source)
at org.mmbase.bridge.jsp.taglib.ListTag.doStartTag(Unknown Source)
at org.mmbase.bridge.jsp.taglib.macro.RelatedTag.doStartTag(Unknown Source)
at jsp_servlet.__1_4_digitaaljournaal._jspService(__1_4_digitaaljournaal.java:888)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:482)
at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:308)
at nl.vodafone.iris.net.http.HTTPServletRedirectBean.redirect(HTTPServletRedirectBean.java:49)
at nl.vodafone.dealersite2.menu.MenuControlServlet.forwardMenu(MenuControlServlet.java:130)
at nl.vodafone.dealersite2.menu.MenuControlServlet.doGet(MenuControlServlet.java:37)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2546)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2260)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
Is there possibly a certain (additional) install on Oracle required for the connection
pooling on WL6.1SP3 to run? We have the problem only on one DB instance. Do you
have any other suggestions for the issue? Is there a way to see all sql statements
use by the connections in the connection pool?
Roger Stoffers
Vodafone NL
Hi Roger,
Could you please show us the 30-line program that does work?
Regards,
Slava Imeshev
"Roger Stoffers" <[email protected]> wrote in message
news:[email protected]...
>
Hello Joseph,
I have tried many things (wrote numerous tests) now, but the problem seemsto
occur only USING pooling with the weblogic OCI driver, or the weblogicoracle
thin driver.
Moving the data to another DB solved my problem; however I'm still curiousas
to what causes this behaviour.
The 30-line programme works fine, sqlplus works fine, TOAD works fine,weblogic
withour pooling works fine, weblogic with pooling fails.... sigh....
Kind regards,
Roger Stoffers
Joseph Weinstein <[email protected]_this> wrote:
Roger Stoffers wrote:
Hi Joseph,
The pool definition is taken from config.xml:
<JDBCConnectionPool DriverName="weblogic.jdbc.oci.Driver"
InitialCapacity="1" MaxCapacity="1" Name="ddsireConnectionPool"
Password="{3DES}XXXXX=" Properties="user=hint"
RefreshMinutes="5" ShrinkingEnabled="false"
Targets="rogerServer" TestConnectionsOnRelease="true"
TestTableName="dual" URL="jdbc:weblogic:oracle:CIMA"/>
<JDBCDataSource JNDIName="ddsireDataSource" Name="DDSire
DataSource"
PoolName="ddsireConnectionPool" Targets="rogerServer"/>
Furthermore, I managed to include an incorrect part of the log file;here's the
correct one. Does this tell you more? (In the weblogic.log file itis stated that
the connection was obtained)
java.sql.SQLException: ORA-00942: table or view does not exist
at
weblogic.db.oci.OciCursor.getCDAException(OciCursor.java:240)
atweblogic.jdbc.oci.Statement.private_parse(Statement.java:826)
atweblogic.jdbc.oci.Connection.prepareStatement(Connection.java:732)
atweblogic.jdbc.pool.Connection.prepareStatement(Connection.java:303)
>>
Hi. Ok, this shows that you did successfully create a pool, which did
make connections,
and using it, you did get the same error. However, there is a bigquestion:
Why did
you also get that same exception with the Oracle driver directly? This
was shown with
the first stack trace you sent. Until we explain that first stacktrace,
it seems like an all-
oracle problem. Can you make a small 30-line standalone java program
that makes
a direct connection to the DBMS, using our driver and that user name
and password,
and runs that same query?
thanks,
Joe
at
weblogic.jdbc.rmi.internal.ConnectionImpl.prepareStatement(ConnectionImpl.ja
va:135)
atweblogic.jdbc.rmi.SerialConnection.prepareStatement(SerialConnection.java:78
atnl.vodafone.cd.dataservices.jdbc.JDBCHelper.callSql(JDBCHelper.java:93)
atnl.vodafone.cd.dataservices.jdbc.JDBCHelper.performQuery(JDBCHelper.java:64)
atnl.vodafone.cd.dataservices.jdbc.JDBCDDSireHintDescriptionService.getHint(JD
BCDDSireHintDescriptionService.java:48)
atnl.vodafone.cd.presentation.MainPageAction.perform(MainPageAction.java:109)
atnl.vodafone.cd.presentation.CheckClientAddressInfoAction.perform(CheckClient
AddressInfoAction.java:181)
atnl.vodafone.cd.presentation.ActionServlet.doPost(ActionServlet.java:309)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:265)
atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:200)
atweblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
ntext.java:2546)
atweblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
:2260)
atweblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
Joseph Weinstein <[email protected]_this> wrote:
Roger Stoffers wrote:
Hi,
I have a question for a system that was to be released in productionmode april
1st, 2003, but could not be because of this problem:
When connecting to a Oracle 8.1.7r3 DB using WL 6.1SP3, I have a
problem
using
connection pooling with both the oracle jdbc drivers as well as
the
oci drivers.
Switching of the connection pool makes the application work but
that
defies the
whole purpose of configuring connection pools.
1. start up of the runserver with connection pooling enables does
NOT
return any
errorsPlease show me the whole pool definition...
2. the query to be executed is correct and checked on multiple ways(including
sqlnet, jdbc, oci, all without transaction pooling)
3. the username/password used is correct and works but only if
connection
pooling
disabled, no typos were madeWhat is the failure mode when this user/password is used for a pool?
4. the user has been granted DBA rights and still the connection
pooling
does
not work.
5. the table accessed in the query executed is available and a
public
synonym
exists; the user has select rights on the table
6. the connection pool is assigned a JNDI datasource and lookup
succeeds
7. obtaining a connection from the pool works.
8. executing of the query WITH connection pooling returns
SQLException
with error
message:
java.sql.SQLException: ORA-00942: table or view does not exist
at
oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:168)
at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:208)
at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:543)
atoracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1405)
atoracle.jdbc.ttc7.TTC7Protocol.parseExecuteDescribe(TTC7Protocol.java:643)
atoracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleStatement.java:1674)
atoracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java
:1870)
atoracle.jdbc.driver.OracleStatement.executeQuery(OracleStatement.java:538)
atorg.mmbase.module.database.MultiStatement.executeQuery(Unknown
Source)
Here is some big info above. You are getting this exception withoutusing
our
pooling at all. You are getting a direct JDBC connection to Oracle,using
Oracle's driver,
and suffering the problem.
Joe Weinstein at BEA
at
org.mmbase.module.core.ClusterBuilder.searchMultiLevelVector(Unknown
Source)
atorg.mmbase.bridge.implementation.BasicCloud.getList(Unknown
Source)
at org.mmbase.bridge.jsp.taglib.ListTag.doStartTag(UnknownSource)
at
org.mmbase.bridge.jsp.taglib.macro.RelatedTag.doStartTag(Unknown
Source)
at
jsp_servlet.__1_4_digitaaljournaal._jspService(__1_4_digitaaljournaal.java:8
88)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:265)
atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:200)
atweblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImp
l.java:482)
atweblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImp
l.java:308)
atnl.vodafone.iris.net.http.HTTPServletRedirectBean.redirect(HTTPServletRedire
ctBean.java:49)
atnl.vodafone.dealersite2.menu.MenuControlServlet.forwardMenu(MenuControlServl
et.java:130)
atnl.vodafone.dealersite2.menu.MenuControlServlet.doGet(MenuControlServlet.jav
a:37)
atjavax.servlet.http.HttpServlet.service(HttpServlet.java:740)
atjavax.servlet.http.HttpServlet.service(HttpServlet.java:853)
atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:265)
atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:200)
atweblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
ntext.java:2546)
atweblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
:2260)
atweblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
Is there possibly a certain (additional) install on Oracle requiredfor the connection
pooling on WL6.1SP3 to run? We have the problem only on one DB
instance.
Do you
have any other suggestions for the issue? Is there a way to see
all
sql statements
use by the connections in the connection pool?
Roger Stoffers
Vodafone NL
Similar Messages
-
Query using Materalized view in oracle 9i and 10g
Hello
There are snapshots (materialized view) used in my application. We have recently migrated from 9i to 10g release 2 database.
After migration i have observed explain plan of query which is using materialized view and i found in 9i oracle treating materalized view as table. In 10g oracle is considerting it as MVIEW only (MAT_VIEW ACCESS BY INDEX ROWID). However in 10g cost of query which is using materialized view is much higher than 9i. And execution time is also random.
Can anbody pls. expalin diff. of materalized view access in oracle 9i and 10g.
Thankscan you post your query with explain plan for both 9i version and 10g version.
Thanks,
karthick. -
Programmatically change the query used to generate Oracle Reports
I have two queries. Depending on some parameter value, I would like to use one of these queries to generate my report. Is it possible to programmatically change the SQL query used to generate the Oracle Report.
ThanksThere are two options:
- The easy way
In the report paper layout create two frames, one for each query , and at runtime
display only one based on your parameters. (using format triggers on the frames)
- the not so easy way (but more elegant)
create the query at runtime using xml customizations using the examples from
the following documentation:
http://download-
uk.oracle.com/docs/cd/B14099_17/bi.1012/b14048/pbr_xml.htm#i1006734
16.3 Creating XML Data Models
16.4.1.3 Applying an XML Report Definition in PL/SQL
16.4.1.3.2 Applying an XML Definition Stored in Memory
Regards and Good Luck
Ionut S -
Query using link server to an Oracle database failswhile similar query works
I have two queries almost the same that use a link to an Oracle database. One works ok, the other is a copy of the first with a few fields selects removed. The first one works fine, the copy fails with: Cannot get the data of the row from the OLE DB
provider "OraOLEDB.Oracle" for linked server "linkname".
They are so similar, why would one work but not the other?
First query, this one works:
SET
ANSI_NULLS ON
GO
SET
QUOTED_IDENTIFIER ON
GO
CREATE
PROCEDURE [dbo].[procedure_name]
-- Add the parameters for the stored procedure here
@Begindate Datetime,
@Enddate Datetime
AS
BEGIN
--SET NOCOUNT ON added to prevent extra result sets from
--interfering with SELECT statements.
SET NOCOUNT
ON;
-- Insert statements for procedure here
select p.patientid, p.testid,
mdx."Dx_4", td.acquisitiondatetime_dt, td.democompletedatetime_dt,
td.editdatetime_dt,
CAST(STUFF(STUFF(mn."Arrival_Time_9",
9, 0,
' '), 12, 0,
AS datetime)
as Arrival_date,
CAST(STUFF(STUFF(mt."Comp_D_T_22",
9, 0,
' '), 12, 0,
AS datetime)
as Order_date, td.confirmdatetime_dt
(CAST(DATEDIFF
(MINUTE,
CAST (STUFF
(STUFF
(MN."ARRIVAL_TIME_9", 9,0,
' '), 12, 0,
AS DATETIME), TD.DEMOCOMPLETEDATETIME_DT)
as char(10))
+ 'min')
AS "ARRIVAL TO COMPLETE",
(CAST(DATEDIFF
(MINUTE,
CAST (STUFF
(STUFF
(MT."COMP_D_T_22", 9,0,
' '), 12, 0,
AS DATETIME), TD.DEMOCOMPLETEDATETIME_DT)
as char(10))
+ 'min')
AS "ORDER TO COMPLETE"
from linknametosqldb.sqldbname.dbo.tstpatientdemographics
as p inner
join linknametosqldb.sqldbname dbo.tsttestdemographics
as td on p.testid
= td.testid
left
outer join linknametooracledb."M01Tab01_Main" mn
on td.visitnumber
= mn."Pt_Acct_5"
inner
JOIN linknametooracledb."M01Tab06_Ord" mt
ON mn."Master_Recid_1"
= mt."Master_Recid_1"
inner
join linknametooracledb."M01Tab09_Dx" mdx
on mn."Master_Recid_1"
= mdx."Master_Recid_1"
where td.location
in (2, 4)
and mt.order_4
like 'EKG%'
and mdx."Dx_4"
like '%Chest Pain%'
and
(td.acquisitiondatetime_dt
>= @Begindate and td.acquisitiondatetime_dt
< @Enddate)
order
by p.patientfullname_last, p.patientfullname_first
END
GO
Second query, copied from first with some fields selects removed, this does not work:
SET
ANSI_NULLS ON
GO
SET
QUOTED_IDENTIFIER ON
GO
CREATE
PROCEDURE [dbo].[procedure_name_2]
-- Add the parameters for the stored procedure here
@Begindate Datetime,
@Enddate Datetime
AS
BEGIN
--SET NOCOUNT ON added to prevent extra result sets from
--interfering with SELECT statements.
SET NOCOUNT
ON;
-- Insert statements for procedure here
select p.patientid, mdx."Dx_4",
td.democompletedatetime_dt,
CAST(STUFF(STUFF(mn."Arrival_Time_9",
9, 0,
' '), 12, 0,
AS datetime)
as EDIS_Arrival_date,
(CAST(DATEDIFF
(MINUTE,
CAST (STUFF
(STUFF
(MN."Arrival_Time_9", 9,0,
' '), 12, 0,
AS DATETIME), TD.DEMOCOMPLETEDATETIME_DT)
as char(10))
+ 'min')
AS "ARRIVAL TO COMPLETE"
from linknametosqldb.dbo.tstpatientdemographics
as p inner
join linknametosqldb.dbo.tsttestdemographics
as td on p.testid
= td.testid
left outer
join linknametooracledb."M01Tab01_Main" mn
on td.visitnumber
= mn."Pt_Acct_5"
inner
JOIN linknametooracledb."M01Tab06_Ord" mt
ON mn."Master_Recid_1"
= mt."Master_Recid_1"
inner
join linknametooracledb M01Tab09_Dx" mdx
on mn."Master_Recid_1"
= mdx."Master_Recid_1"
where td.location
in (2, 4)
and mt.order_4
like 'EKG%'
and mdx."Dx_4"
like '%Chest Pain%'
and
(td.acquisitiondatetime_dt
>= @Begindate and td.acquisitiondatetime_dt
< @Enddate)
order
by p.patientid
END
GO
Thanks very much for any help with this.* Consider putting parentheses around the 3 oracle tables so the 3 of them can possibly be treated as a unit. Assuming there's some performance impact due to the linked server, this MIGHT help, may do a little joining over on the Oracle side of
the world. In either case, it's a little cleaner. They syntax below, including a few extra line breaks for clarity, should be correct. (try the change to the ON clause suggested above too, though).
The parentheses will not help much. SQL Server will remote (as the term is) the query to the Oracle instance if this appears to have a lower cost and there is nothing the blocks remoting.
On the other hand, OPENQUERY can be an alternative to ensure that this happens:
left outer join
OPENQUERY (linknametooracledb,
'SELECT ...
FROM "M01Tab01_Main" mn
JOIN "M01Tab06_Ord" mt ON mn."Master_Recid_1" = mt."Master_Recid_1"
JOIN "M01Tab09_Dx" mdx on mn."Master_Recid_1" = mdx."Master_Recid_1"') mn on td.visitnumber = mn."Pt_Acct_5"
But this presumes that you there are no columns from the SQL Server side that are used to select data from the Oracle side. That is, the above could lead to far much data being brought across the wire.
Then again, this does not really seem to relate to the original problem where a stored procedure was not working at all. That problem is not very easy to assist with since code post is the not the authentic code as pointed out in the thread. For instance
inner JOIN linknametooracledb."M01Tab06_Ord"
Has nothing to do with Oracle, but accesses a table in the schema linknametooracledb.
I think to help dmcm, you need a really good crystal ball - at least as long he/she does not share the actual code.
Erland Sommarskog, SQL Server MVP, [email protected] -
Monitoring memory used by Oracle instance
Hi,
How can i check how much memory is being used and allocated by an Oracle instace? Is there any way to do?
AshishAn Oracle instance is using SGA that is shared memory by all background processes and dedicated/shared server processes and PGA which is private memory used by each server process.
For SGA you can use following queries:
select * from v$sgastat
In 10G, you can also use:
select * from v$sgainfo;
For PGA, you can use following query:
select * from v$pgastat; -
Linking Access tables, creating a query with using both Access and Oracle
Hello,
I am using 3.0.04.34 version Oracle Developer. I am supposed to create a script/procedure to use both Access tables and oracle tables together. There is an option in developer to copy the access tables into oracle. But it doesn't help me. Because when we updated the access tables
the copied ones are not be updated. How can I created a linked access tables to oracle and create a query with using both access and oracle table together.
I will appreciate if you guys help me. I look forward to hearing from you guys.
Thanks,
PinarPinar,
to be able to query MS Access tables in Oracle you need an additional product, the Oracle Database Gateway for ODBC. It allows you to link any foreign database into an Oracle database using a suitable ODBC driver. You can then access the MS Access tables through a database link based on the Database Gateway for ODBC. This will also allow you to join local Oracle and remote MS Access tables from your Oracle database.
There's a note on My Oracle Support which gives you more details:Document 233876.1 Options for Connecting to Foreign Data Stores and Non-Oracle Databases - For example - DB2, SQL*Server, Sybase, Informix, Teradata, MySQL
And there's also a dedicated Forum: Heterogeneous Connectivity -
Establish SSL connection to Oracle Instance w/JDBC Thin Client
Hello all,
I am writing a monitoring utility that will allow me to establish connections to both Oracle instances and LDAP repositories and query them to determine that they are up and running. My utility consists of a number of objects that handle connections to the LDAP and Oracle instances. I need to be able to do SSL and non-SSL connections to said instances.
My issue is this: I am able to do SSL and non-SSL to LDAP, and non-SSL to an Oracle instance. I am having problems, though, establishing an SSL connection to an Oracle instance (I am using the thin client). Whenever I try, a SQLException is thrown that states: "Encountered a problem with the secret store. Check the wallet location for the presense of an <b>open</b> wallet (cwallet.sso) and ensure that the wallet contains the correct credentials..."
Ok, a little background for those who may need it. Oracle uses a wallet to hold certs that allow SSL connections. I have a wallet on my box, and, from the command line, I am able to sqlplus into and tnsping the appropriate Oracle instances, so I know it is setup properly. The inability to connect only occurs in my code. My code looks like this:
DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
Security.addProvider(new oracle.security.pki.OraclePKIProvider());
/*Setup connection properties*/
String connectionString = "testbox01:1000:ssl_instances_name";
String userName = "userName";
String pwd = "password";
Properties props = new Properties();
props.put("oracle.net.ssl_version", 3.0");
props.put("oracle.net.wallet_location", "SOURCE=(METHOD=file)(METHOD_DATA=(DIRECTORY=c:\\wallet)))");
props.put("oracle.net.ssl_cipher_suites", "ssl cipher suites");
props.put("oracle.net.ssl_server_dn_match", "FALSE");
props.put("oracle.net.ssl_client_authentication", "true");
/*Do connection and return connection object
OracleDataSource ods = new OracleDataSource();
ods.setUser(userName);
ods.setPassword(pwd);
ods.setUrl("jdbc:oracle:thin:@" + connectionString);
ods.setConnectionProperties(props);
Connection conn = ods.getConnection(); <---This is where code errors out with SQLException described above.
return conn;
And that's pretty much it. Anyone have any ideas?Ok, that looked horrible. Let's try this again:<br>
<br>
I am writing a monitoring utility that will allow me to establish connections to both Oracle instances and LDAP repositories and query them to determine that they are up and running. My utility consists of a number of objects that handle connections to the LDAP and Oracle instances. I need to be able to do SSL and non-SSL connections to said instances.<br>
<br>
My issue is this: I am able to do SSL and non-SSL to LDAP, and non-SSL to an Oracle instance. I am having problems, though, establishing an SSL connection to an Oracle instance. Whenever I try, a SQLException is thrown that states: "Encountered a problem with the secret store. Check the wallet location for the presense of an <b>open</b> wallet (cwallet.sso) and ensure that the wallet contains the correct credentials..."<br>
<br>
Ok, a little background for those who may need it. Oracle uses a wallet to hold certs that allow SSL connections. I have a wallet on my box, and, from the command line, I am able to sqlplus into and tnsping the appropriate Oracle instances, so I know it is setup properly. The inability to connect only occurs in my code. My code looks like this:<br>
<br>
*****<br>
<br>
DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());<br>
Security.addProvider(new oracle.security.pki.OraclePKIProvider());<br>
<br>
/*Setup connection properties*/<br>
<br>
String connectionString = "testbox01:1000:ssl_instances_name";<br>
String userName = "userName";<br>
String pwd = "password";<br>
<br>
Properties props = new Properties();<br>
props.put("oracle.net.ssl_version", 3.0");<br>
props.put("oracle.net.wallet_location", "SOURCE=(METHOD=file)(METHOD_DATA=(DIRECTORY=c:\\wallet)))");<br>
props.put("oracle.net.ssl_cipher_suites", "ssl cipher suites");<br>
props.put("oracle.net.ssl_server_dn_match", "FALSE");<br>
props.put("oracle.net.ssl_client_authentication", "true");<br>
<br>
/*Do connection and return connection object*/<br>
OracleDataSource ods = new OracleDataSource();<br>
ods.setUser(userName);<br>
ods.setPassword(pwd);<br>
ods.setUrl("jdbc:oracle:thin:@" + connectionString);<br>
ods.setConnectionProperties(props);<br>
<br>
Connection conn = ods.getConnection(); <---This is where code errors out with SQLException described above.<br>
<br>
return conn;<br>
<br>
*****<br>
<br>
And that's pretty much it. Anyone have any ideas?<br> -
Need SQL query using View - Please help
Hi,
I have similar requirement like below.
I have two tables DEPT and EMP and some departments may not have employees. I have created below view, which displays all DEPT records, even though there are no emplyees.
CREATE OR REPLACE VIEW dept_emp_vw AS
SELECT deptno, empid, 0 AS selected
FROM dept d, emp e
WHERE d.deptno = e.deptnno (+);
Ex.
DEPTNO EMPID SELECTED
10 101 0
10 102 0
20 103 0
30 103 0
40 104 0
50 <null> 0
Application will pass "empid" to the view (for ex. empid = 103) and I want result like below.
Ex.
DEPTNO EMPID SELECTED
10 101 0
10 102 0
20 103 1
30 103 1
40 104 0
50 <null> 0
Can you please let me know the query using "dept_emp_vw" view. We have Oracle 11g Release 2.
Thanks a lot for the help.Not possible using normal SQL - as SQL is not a procedure language and does not support variable declaration and use (e.g. passing empid as a variable and using it both as a predicate and as a condition in the SQL projection).
That said - SQL can be "+parameterised+". An approach that is ugly and contrary to the basic design and use of SQL. But it can support the (very weird) view definition of yours.
E.g.
SQL> create or replace procedure SetVariable( name varchar2, value varchar2 ) is
2 begin
3 DBMS_SESSION.set_context( 'MyVariables', name, value );
4 end;
5 /
Procedure created.
SQL>
SQL>
SQL> create or replace context MyVariables using SetVariable;
Context created.
SQL>
SQL> create or replace view my_funky_weird_view as
2 select
3 e.empno,
4 e.ename,
5 e.job,
6 case e.empno
7 when to_number(sys_context( 'MyVariables', 'empid' )) then
8 0
9 else
10 1
11 end as "SELECTED"
12 from emp e
13 /
View created.
SQL>
SQL> exec SetVariable( 'empid', 7499 )
PL/SQL procedure successfully completed.
SQL>
SQL> select * from session_context where namespace = 'MYVARIABLES';
NAMESPACE ATTRIBUTE VALUE
MYVARIABLES EMPID 7499
SQL>
SQL> select * from my_funky_weird_view order by selected;
EMPNO ENAME JOB SELECTED
7499 ALLEN SALESMAN 0
7521 WARD SALESMAN 1
7566 JONES MANAGER 1
7654 MARTIN SALESMAN 1
7698 BLAKE MANAGER 1
7934 MILLER CLERK 1
7788 SCOTT ANALYST 1
7839 KING PRESIDENT 1
7844 TURNER SALESMAN 1
7876 ADAMS CLERK 1
7900 JAMES CLERK 1
7902 FORD ANALYST 1
7369 SMITH CLERK 1
7782 CLARK MANAGER 1
14 rows selected.
SQL>But I will N\OT recommend doing it this way. It is not natural SQL as PL/SQL is needed to "+inject+" name-value pairs into the context for the SQL view to use. It is ugly. It is not standard. It cannot scale. It is complex to use. Etc.
Yes, there are instances when this approach is exactly what one needs - when for example dealing with a trusted context and using the contents for implementing a security layer. But in the above case - I would rather want to see the actual business requirement first, as I think you're barking up the wrong tree with the view solution you have imagined. -
ORACLE instance terminated. Disconnection forced
Hi,
When I am trying to login , it is throwing "ORACLE instance terminated. Disconnection forced"
Below is the message logged in ALERT Log
Completed: ALTER ROLLBACK SEGMENT RBSL1 OFFLINE
Sun Jun 23 00:42:35 2013
Errors in file D:\HA_salesupp\Dump_files\ssdtCKPT.TRC:
ORA-00206: Message 206 not found; No message file for product=RDBMS, facility=ORA; arguments: [3] [1]
ORA-00202: Message 202 not found; No message file for product=RDBMS, facility=ORA; arguments: [D:\HA_SALESUPP\CONTROL_FILES\SSDT2.CON]
ORA-27072: Message 27072 not found; No message file for product=RDBMS, facility=ORA
OSD-04008: WriteFile() failure, unable to write to file
O/S-Error: (OS 33) The process cannot access the file because
another process has locked a portion of the file.
Sun Jun 23 00:42:36 2013
Errors in file D:\HA_salesupp\Dump_files\ssdtCKPT.TRC:
ORA-00221: Message 221 not found; No message file for product=RDBMS, facility=ORA
ORA-00206: Message 206 not found; No message file for product=RDBMS, facility=ORA; arguments: [3] [1]
ORA-00202: Message 202 not found; No message file for product=RDBMS, facility=ORA; arguments: [D:\HA_SALESUPP\CONTROL_FILES\SSDT2.CON]
ORA-27072: Message 27072 not found; No message file for product=RDBMS, facility=ORA
OSD-04008: WriteFile() failure, unable to write to file
O/S-Error: (OS 33) The process cannot access the file because
another process has locked a portion of the file.
Sun Jun 23 00:42:36 2013
CKPT: terminating instance due to error 221
Sun Jun 23 00:42:39 2013
Errors in file D:\HA_salesupp\Dump_files\ssdtDBW0.TRC:
ORA-00221: Message 221 not found; No message file for product=RDBMS, facility=ORA
Sun Jun 23 00:42:39 2013
Errors in file D:\HA_salesupp\Dump_files\ssdtPMON.TRC:
ORA-00221: Message 221 not found; No message file for product=RDBMS, facility=ORA
Instance terminated by CKPT, pid = 78
Please let me know whether I can directly start the services using "net start <myservicesName>" or any other steps need to be followed.I could see the Oracle Instance is running in the services.msc but when I am trying to connect it throwing "ORACLE instance terminated. Disconnection forced". As I am not able to connect, I was not able to query v$instance.
Below are the log file CKPT.TRC and DBW0.TRC
CKPT.TRC
Dump file D:\HA_salesupp\Dump_files\ssdtCKPT.TRC
Sun Jun 23 00:42:35 2013
ORACLE V8.1.7.2.1 - Production vsnsta=0
vsnsql=f vsnxtr=3
Windows NT Version 4.0 Service Pack 6, CPU type 586
Oracle8i Release 8.1.7.2.1 - Production
JServer Release 8.1.7.2.1 - Production
Windows NT Version 4.0 Service Pack 6, CPU type 586
Instance name: ssdt
Redo thread mounted by this instance: 1
Oracle process number: 5
Windows thread id: 78, image: ORACLE.EXE
*** SESSION ID:(4.1) 2013-06-23 00:42:35.748
*** 2013-06-23 00:42:35.748
ksedmp: internal or fatal error
ORA-00206: Message 206 not found; No message file for product=RDBMS, facility=ORA; arguments: [3] [1]
ORA-00202: Message 202 not found; No message file for product=RDBMS, facility=ORA; arguments: [D:\HA_SALESUPP\CONTROL_FILES\SSDT2.CON]
ORA-27072: Message 27072 not found; No message file for product=RDBMS, facility=ORA
OSD-04008: WriteFile() failure, unable to write to file
O/S-Error: (OS 33) The process cannot access the file because
another process has locked a portion of the file.
----- Call Stack Trace -----
calling call entry argument values in hex
location type point (? means dubious value)
_ksedmp+a8 CALLrel _ksedst+0
FBEBCC
_kccwbp+369 CALLrel _ksedmp+0 2
_kccpcp+92 CALLrel _kccwbp+0
0276BC
E026600
26 7
_kctrcp+309 CALLrel _kccpcp+0 1
13BF770
_kcvcca+182 CALLrel _kctrcp+0
_ksbcti+88 CALLreg 00000000
_ksbabs+1af CALLrel _ksbcti+0
810E8
DFBEF54
_ksbrdp+1b6 CALLreg 00000000
3BF908
_opirip+234 CALLrel _ksbrdp+0
_opidrv+549 CALLrel _opirip+0 32 0
0
_sou2o+19 CALLrel _opidrv+0
_opimai+152 CALLrel _sou2o+0
FBFE30
32 0
0
_BackgroundThreadStart@4+127 CALLrel _opimai+0 3
DFBFF7C
77F04EDB CALLreg 00000000
----- Argument/Register Address Dump -----
Argument/Register addr=dfbebcc.
----- End of Call Stack Trace -----
===================================================
Files currently opened by this process:
===================================================
PROCESS STATE
Process global information:
process: 6a006c8, call: 6a2d51c, xact: 0, curses: 6a0e6f8, usrses: 6a0e6f8
SO: 6a006c8, type: 1, owner: 0, pt: 0, flag: INIT/-/-/0x00
(process) Oracle pid=5, calls cur/top: 6a2d51c/6a2d51c, flag: (2) SYSTEM
int error: 0, call error: 0, sess error: 0, txn error 0
(post info) last post received: 0 0 13
last post received-location: ksasnd
last process to post me: 6a01368 5 0
last post sent: 67 0 4
last post sent-location: kslpsr
last process posted by me: 6a01368 5 0
(latch info) wait_event=0 bits=0
Process Group: DEFAULT, pseudo proc: 6a094e4
O/S info: user: SYSTEM, term: NTS4_005, ospid: 78
OSD pid info: 78
SO: 6a65ac4, type: 9, owner: 6a006c8, pt: 0, flag: INIT/-/-/0x00
(broadcast handle) flag: (2) ACTIVE SUBSCRIBER, owner: 6a006c8,
event: 4, last message event: 9, messages read: 1
channel: (6a6608c) scumnt mount lock
scope: 101, event: 9, last mesage event: 9,
publishers/subscribers: 0/7,
messages published: 1
SO: 6a0e6f8, type: 3, owner: 6a006c8, pt: 0, flag: INIT/-/-/0x00
(session) trans: 0, creator: 6a006c8, flag: (51) USR/- BSY/-/-/-/-/-
DID: 0001-0005-00000003, short-term DID: 0000-0000-00000000
txn branch: 0
oct: 0, prv: 0, user: 0/SYS
last wait for 'control file parallel write' blocking sess=0x0 seq=11662 wait_time=1
files=2, blocks=2, requests=2
SO: 6a65b3c, type: 9, owner: 6a006c8, pt: 0, flag: INIT/-/-/0x00
(broadcast handle) flag: (2) ACTIVE SUBSCRIBER, owner: 6a006c8,
event: 5, last message event: 5, messages read: 0
channel: (6a65fac) system events broadcast channel
scope: 101, event: 13, last mesage event: 0,
publishers/subscribers: 0/7,
messages published: 0
SO: 6a2d51c, type: 2, owner: 6a006c8, pt: 0, flag: INIT/-/-/0x00
(call) sess: cur 6a0e6f8, rec 0, usr 6a0e6f8; depth: 0
===================================================
CURRENT SESSION'S INSTANTIATION STATE
current session=6a0e6f8
******************** Cursor Dump ************************
Current cursor: 0, pgadep: 0
Cursor Dump:
End of cursor dump
END OF PROCESS STATE
error 221 detected in background process
ORA-00221: Message 221 not found; No message file for product=RDBMS, facility=ORA
ORA-00206: Message 206 not found; No message file for product=RDBMS, facility=ORA; arguments: [3] [1]
ORA-00202: Message 202 not found; No message file for product=RDBMS, facility=ORA; arguments: [D:\HA_SALESUPP\CONTROL_FILES\SSDT2.CON]
ORA-27072: Message 27072 not found; No message file for product=RDBMS, facility=ORA
OSD-04008: WriteFile() failure, unable to write to file
O/S-Error: (OS 33) The process cannot access the file because
another process has locked a portion of the file
dbw0.trc
Dump file D:\HA_salesupp\Dump_files\ssdtDBW0.TRC
Sun Jun 23 00:42:39 2013
ORACLE V8.1.7.2.1 - Production vsnsta=0
vsnsql=f vsnxtr=3
Windows NT Version 4.0 Service Pack 6, CPU type 586
Oracle8i Release 8.1.7.2.1 - Production
JServer Release 8.1.7.2.1 - Production
Windows NT Version 4.0 Service Pack 6, CPU type 586
Instance name: ssdt
Redo thread mounted by this instance: 1
Oracle process number: 3
Windows thread id: 33, image: ORACLE.EXE
*** 2013-06-23 00:42:39.404
*** SESSION ID:(2.1) 2013-06-23 00:42:37.966
error 221 detected in background process
ORA-00221: Message 221 not found; No message file for product=RDBMS, facility=ORA -
Why isn't my query using the index?
I have a query that inserts values for engines in a grid; it uses a static date table to determine the day in week, or
week in year (depending on different standards, the DBA can configure this table to their business's likings). I have
two indexes on this table:
create table d_date (
date_key number(5) not null,
sql_calendar_date timestamp(3) null,
year_id number(5) null,
month_id number(3) null,
day_id number(3) null,
year_end_biz_date timestamp(3) null,
qtr_end_biz_date timestamp(3) null,
month_end_biz_date timestamp(3) null,
week_end_biz_date timestamp(3) null,
quarter_id number(3) null,
week_id number(3) null,
day_in_year number(5) null,
day_in_month number(3) null,
day_in_week number(3) null,
month_name char(3) null,
day_in_week_name char(3) null,
month_type_code char(1) null,
week_type_code char(1) null,
date_type_code char(1) null,
weekend_flag char(1) null,
holiday_flag char(1) null,
from_datetime timestamp(3) null,
to_datetime timestamp(3) null,
current_flag char(1) null,
constraint d_date_pkey primary key (date_key)
) tablespace dim;
create index d_date_dy on d_date(year_id, day_in_year) tablespace_dim_idx;
create index d_date_ww on d_date(year_id, week_id) tablespace_dim_idx;Now, when I run a query to insert the week id into a table based on two values, the year_key and day_in_year_key,
it should use the d_date_dy index correct?
Here is what the query looks like:
INSERT INTO F_ENGINE (YEAR_KEY,MONTH_KEY,WEEK_IN_YEAR_KEY,DAY_IN_YEAR_KEY,DAY_IN_MONTH_KEY,HOUR_IN_DAY_KEY, Q_HOUR_IN_DAY_KEY,
GRID_KEY,ENGINE_KEY,TIME_STAMP,ENGINE_CPU_UTIL,ENGINE_CPU_GRID_UTIL,MEMORY_TOTAL_BYTE, MEMORY_FREE_BYTE,DISK_FREE_MEGABYTE,
PROCESS_COUNT,ENGINE_ID,GRID_ID,GRID_NAME,BATCH_ID,RECORD_VIEWABLE_F)
SELECT EXTRACT(YEAR FROM START_DATETIME),EXTRACT(MONTH FROM START_DATETIME), DD.WEEK_ID,
TO_NUMBER(TO_CHAR(START_DATETIME, 'DDD')), EXTRACT(DAY FROM START_DATETIME),EXTRACT(HOUR FROM START_DATETIME),
FLOOR(EXTRACT(MINUTE FROM START_DATETIME)/15)*15,DG.GRID_KEY,DE.ENGINE_KEY, START_DATETIME,CPU_UTIL,DS_CPU,MEMORY,
FREE_MEMORY,FREE_DISK,PROCESSES,ID,PE.GRID,DG.GRID_NAME,:B1 ,1
FROM P_ENGINE PE, D_GRID DG, D_ENGINE DE, D_DATE DD
WHERE PE.GRID = DG.GRID_ID AND DG.CURRENT_FLAG = 'Y' AND PE.ID = DE.ENGINE_ID AND DE.GRID_KEY = DG.GRID_KEY AND
DE.CURRENT_FLAG = 'Y' AND PE.BATCH_ID = :B1 AND DD.YEAR_ID = EXTRACT(YEAR FROM START_DATETIME) AND
DD.DAY_IN_YEAR = TO_NUMBER(TO_CHAR(START_DATETIME,'DDD'))
ORDER BY EXTRACT(YEAR FROM START_DATETIME),EXTRACT(MONTH FROM START_DATETIME),
EXTRACT(DAY FROM START_DATETIME),EXTRACT(HOUR FROM START_DATETIME),FLOOR(EXTRACT(MINUTE FROM START_DATETIME)/15)*15,
DG.GRID_KEY,DE.ENGINE_KEY
Here is the explain plan:
Operation Object Object Type Order Rows Size (KB) Cost Time (sec) CPU Cost I/O Cost
INSERT STATEMENT
SORT ORDER BY
HASH JOIN
HASH JOIN
HASH JOIN
TABLE ACCESS FULL D_GRID TABLE 1 2 0.316 3 1 36887 3
TABLE ACCESS FULL D_ENGINE TABLE 2 10 0.410 3 1 42607 3
PARTITION LIST SINGLE 5 1434 344.496 9 1 2176890 9
TABLE ACCESS FULL P_ENGINE TABLE 4 1434 344.496 9 1 2176890 9
TABLE ACCESS FULL D_DATE TABLE 7 7445 283.550 19 1 3274515 18Now it is obviously not using the index for the d_date table since it is doing a full table access.
Does this have something to do with the fact that I am using extract(), to_number(), to_char() functions in my WHERE clause that it is not allowing the use of the index?
Any help would be greatly appreciated. Thanks.
-TimIt's difficult to tell just from this. For one thing, you didn't post your query using the forum format tags, so it's hard to read and you didn't post your Oracle version.
In the query, you don't always prefix columns with the table alias. That makes it impossible for us (and maintainers of this code) to know at a glance which table a column is in.
It's possible that performing functions on a column will disable the index. Do your other tables have indexes? Do you have updated statistics on all the tables?
The main reason the optimizer will not use an index is because it thinks it cheaper not to. -
Oracle Instanc has too many tables, way to subset?
<p>Hello,</p><p> </p><p>When i try to bring up an Oracle instance and do a query, thereare so many tables that it takes 10 minutes for H. to bring up thelist of tables.</p><p> </p><p>Is there a way to subset by Owner like TOAD does, so that i'mnot trying to bit off the whole thing at once?</p><p> </p><p>Thanks very much!</p><p> </p><p>BobK</p>
Thanks for the idea. I use the filters all of the time to find tables of interest. Like if I'm looking for tables with product info, I'll put "%prod%", or something like that. But as you suggest, I guess there's no reason why I couldn't key in every one of my 100+ tables of interest so I don't see 300+ tables that are empty and unused.
One thing that worries me is that I would make this huge investment in time (keying into the filter) and I'd hit "clear filter" by accident one day.
I think I'll write a macro in AutoIt and enter the interesting tables in the filter using the (reusable) macro. Thanks again.
-- Dale -- -
Hi Geeks,
I have encountered an issue while starting up my database on 12c RAC.
Till mount it goes fine but when i attempt to open it throws me an error.
Total System Global Area 1.5400E+10 bytes
Fixed Size 4737560 bytes
Variable Size 2952791528 bytes
Database Buffers 1.2415E+10 bytes
Redo Buffers 26857472 bytes
Database mounted.
SQL> alter database open;
alter database open
ERROR at line 1:
ORA-01092: ORACLE instance terminated. Disconnection forced
ORA-00942: table or view does not exist
Process ID: 11338068
Session ID: 1429 Serial number: 3
Here is the trace file output...
ORACLE_HOME = /oracle_home/app/orahome
System name: AIX
Node name: INS1
Release: 1
Version: 7
Machine: 00C8CCA74C00
Instance name: INST1
Redo thread mounted by this instance: 1
Oracle process number: 7
Unix process pid: 20381876, image: oracle@ins1 (TNS V1-V3)
*** 2014-11-27 22:49:20.892
*** SESSION ID:(197.5) 2014-11-27 22:49:20.892
*** CLIENT ID:() 2014-11-27 22:49:20.892
*** SERVICE NAME:() 2014-11-27 22:49:20.892
*** MODULE NAME:(sqlplus@ins1 (TNS V1-V3)) 2014-11-27 22:49:20.892
*** ACTION NAME:() 2014-11-27 22:49:20.892
2014-11-27 22:49:20.889716 : Start recovery for domain=0, valid=0, flags=0x4
*** 2014-11-27 22:49:24.580
Successfully allocated 32 recovery slaves
Using 3 overflow buffers per recovery slave
*** 2014-11-27 22:49:24.740
Thread 1 checkpoint: logseq 15, block 2, scn 3510749
cache-low rba: logseq 15, block 3
on-disk rba: logseq 15, block 72, scn 3510824
start recovery at logseq 15, block 3, scn 0
*** 2014-11-27 22:49:24.981
Started resilvering redo thread 1 seq 15 blocks 72-73
*** 2014-11-27 22:49:24.994
Completed resilvering redo thread 1 seq 15
*** 2014-11-27 22:49:24.994
Started writing zeroblks thread 1 seq 15 blocks 74-81
*** 2014-11-27 22:49:24.994
Completed writing zeroblks thread 1 seq 15
==== Redo read statistics for thread 1 ====
Total physical reads (from disk and memory): 4096Kb
-- Redo read_disk statistics --
Read rate (ASYNC): 35Kb in 0.25s => 0.14 Mb/sec
Longest record: 0Kb, moves: 0/104 (0%)
Longest LWN: 2Kb, moves: 0/33 (0%), moved: 0Mb
Last redo scn: 0x0000.0035922b (3510827)
----- Recovery Hash Table Statistics ---------
Hash table buckets = 262144
Longest hash chain = 1
Average hash chain = 25/25 = 1.0
Max compares per lookup = 1
Avg compares per lookup = 151/176 = 0.9
*** 2014-11-27 22:49:25.007
KCRA: start recovery claims for 25 data blocks
*** 2014-11-27 22:49:25.039
KCRA: blocks processed = 25/25, claimed = 25, eliminated = 0
*** 2014-11-27 22:49:25.054
Recovery of Online Redo Log: Thread 1 Group 6 Seq 15 Reading mem 0
*** 2014-11-27 22:49:25.060
Completed redo application of 0.02MB
*** 2014-11-27 22:49:25.235
Completed recovery checkpoint
----- Recovery Hash Table Statistics ---------
Hash table buckets = 262144
Longest hash chain = 1
Average hash chain = 25/25 = 1.0
Max compares per lookup = 1
Avg compares per lookup = 176/176 = 1.0
Recovery sets nab of thread 1 seq 15 to 74 with 8 zeroblks
*** 2014-11-27 22:49:26.000
2014-11-27 22:49:26.000433 : Validate domain 0
2014-11-27 22:49:26.001348 : Validated domain 0, flags = 0x0
*** 2014-11-27 22:49:28.315
Count of ofsmtab$: 0 entries
*** 2014-11-27 22:49:28.732
ORA-00942: table or view does not exist
ORA-00942: table or view does not exist
*** 2014-11-27 22:49:28.738
USER (ospid: 20381876): terminating the instance due to error 942In my case the issue has fixed by executing the following..
grant SELECT on SYS.USER$ to XDB;
grant SELECT on SYS.USER$ to CTXSYS;
grant SELECT on SYS.USER$ to DVSYS;
grant SELECT on SYS.USER$ to LBACSYS;
grant SELECT on SYS.USER$ to APEX_040200;
grant SELECT on SYS.USER$ to DV_SECANALYST;
Refer the above screen shot... -
Oracle instance crashing when enabling use_indirect_data_buffers=true
I have a Windows 2003 EE server (32bit) with 16GB of ram hosting a 10.2.0.2 Oracle server which is used to support a commercial software package (arcsight). I'm trying to get the Oracle backend to leverage the available system memory. I've read 50-60 different articles and posts regarding AWE and Oracle. I have successfully tuned the userva parameter in order to get the server to boot stable with the /3gb boot parameter. I've gotten to the point that the oracle instance will start up, but within about 30-60 seconds the instance will crash. Below is the information I believe that is relevant:
*.......From computer Registry.........*
AWE_MEMORY_WINDOW = 1288486912
ORA_WORKINGSETMIN = 2
*...........From init.ora.............*
*.__dg_broker_service_names=';'
arcsight.__java_pool_size=0
arcsight.__large_pool_size=0
arcsight.__shared_pool_size=314572800
arcsight.__streams_pool_size=0
*.audit_file_dest='E:\oracle10g\OraHome10g\admin\arcsight\adump'
*.audit_sys_operations=true
*.audit_trail='db'
*.background_dump_dest='E:\oracle10g\OraHome10g\admin\arcsight\bdump'
*.compatible='10.2.0.1.0'
*.control_files='E:\oracle10g\OraHome10g\oradata\arcsight\control01.ctl','f:\arcsight\control02.ctl','g:\arcsight\control03.ctl'
*.core_dump_dest='E:\oracle10g\OraHome10g\admin\arcsight\cdump'
*.cursor_sharing='FORCE'
**.db_block_size=16384*
**.db_block_buffers=235929*
*.db_domain=''
*.db_file_multiblock_read_count=16
*.db_files=2000
*.db_name='arcsight'
*.db_writer_processes=4
*.dispatchers=''
*.job_queue_processes=10
*.log_archive_dest_1='LOCATION=H:'
*.log_buffer=1048576
*.open_cursors=2000
*.parallel_max_servers=0
*.pga_aggregate_target=314572800
*.processes=300
*.recyclebin='OFF'
*.remote_login_passwordfile='EXCLUSIVE'
*.sga_target=0
*.undo_management='AUTO'
*.undo_retention=43200
*.undo_tablespace='ARC_UNDO'
*.user_dump_dest='E:\oracle10g\OraHome10g\admin\arcsight\udump'
*.java_pool_size=0
*.large_pool_size=0
*.shared_pool_size=314572800
*.streams_pool_size=0
**.use_indirect_data_buffers=true*
*......From oradim.log.......*
Sun Feb 22 18:37:33 2009
E:\oracle10g\OraHome10g\bin\oradim.exe -shutdown -sid arcsight -usrpwd * -shutmode immediate -log oradim.log
Sun Feb 22 18:37:34 2009
ORA-01012: not logged on
Sun Feb 22 18:37:45 2009
E:\oracle10g\OraHome10g\bin\oradim.exe -startup -sid arcsight -usrpwd * -log oradim.log -nocheck 0
Sun Feb 22 18:37:51 2009
ORA-03113: end-of-file on communication channel
*.......From alert_arcsight.log.........*
Dump file e:\oracle10g\orahome10g\admin\arcsight\bdump\alert_arcsight.log
Sun Feb 22 23:20:51 2009
ORACLE V10.2.0.2.0 - Production vsnsta=0
vsnsql=14 vsnxtr=3
Windows Server 2003 Version V5.2 Service Pack 2
CPU : 8 - type 586, 4 Physical Cores
Process Affinity : 0x00000000
Memory (Avail/Total): Ph:14554M/16215M, Ph+PgF:14862M/15967M, VA:1926M/2047M
Sun Feb 22 23:20:51 2009
Starting ORACLE instance (normal)
Sun Feb 22 23:20:52 2009
Window memory size 1288503296
Sun Feb 22 23:20:52 2009
Minimum working set window size : 4096
LICENSE_MAX_SESSION = 0
LICENSE_SESSIONS_WARNING = 0
Picked latch-free SCN scheme 2
Autotune of undo retention is turned on.
IMODE=BR
ILAT =36
LICENSE_MAX_USERS = 0
SYS auditing is enabled
ksdpec: called for event 13740 prior to event group initialization
Starting up ORACLE RDBMS Version: 10.2.0.2.0.
System parameters with non-default values:
processes = 300
use_indirect_data_buffers= TRUE
__shared_pool_size = 318767104
shared_pool_size = 318767104
__large_pool_size = 0
large_pool_size = 0
__java_pool_size = 0
java_pool_size = 0
__streams_pool_size = 0
streams_pool_size = 0
sga_target = 0
control_files = E:\ORACLE10G\ORAHOME10G\ORADATA\ARCSIGHT\CONTROL01.CTL, F:\ARCSIGHT\CONTROL02.CTL, G:\ARCSIGHT\CONTROL03.CTL
db_block_buffers = 235932
db_block_size = 16384
db_writer_processes = 4
compatible = 10.2.0.1.0
log_archive_dest_1 = LOCATION=H:
log_buffer = 2097152
db_files = 2000
db_file_multiblock_read_count= 16
undo_management = AUTO
undo_tablespace = ARC_UNDO
undo_retention = 43200
recyclebin = OFF
remote_login_passwordfile= EXCLUSIVE
audit_sys_operations = TRUE
db_domain =
__dg_broker_service_names= ;
dispatchers =
job_queue_processes = 10
cursor_sharing = FORCE
parallel_max_servers = 0
audit_file_dest = E:\ORACLE10G\ORAHOME10G\ADMIN\ARCSIGHT\ADUMP
background_dump_dest = E:\ORACLE10G\ORAHOME10G\ADMIN\ARCSIGHT\BDUMP
user_dump_dest = E:\ORACLE10G\ORAHOME10G\ADMIN\ARCSIGHT\UDUMP
core_dump_dest = E:\ORACLE10G\ORAHOME10G\ADMIN\ARCSIGHT\CDUMP
audit_trail = DB
db_name = arcsight
open_cursors = 2000
pga_aggregate_target = 314572800
PMON started with pid=2, OS id=6676
PSP0 started with pid=6, OS id=7544
MMAN started with pid=10, OS id=7560
DBW0 started with pid=14, OS id=6500
DBW1 started with pid=18, OS id=6800
DBW2 started with pid=22, OS id=6276
DBW3 started with pid=26, OS id=520
LGWR started with pid=30, OS id=6756
CKPT started with pid=34, OS id=6380
SMON started with pid=38, OS id=7472
RECO started with pid=42, OS id=7696
CJQ0 started with pid=46, OS id=7912
MMON started with pid=50, OS id=7576
MMNL started with pid=54, OS id=6852
Sun Feb 22 23:20:53 2009
alter database mount exclusive
Sun Feb 22 23:20:57 2009
Setting recovery target incarnation to 1
Sun Feb 22 23:20:57 2009
Successful mount of redo thread 1, with mount id 1799551061
Sun Feb 22 23:20:57 2009
Database mounted in Exclusive Mode
Completed: alter database mount exclusive
Sun Feb 22 23:20:57 2009
alter database open
Sun Feb 22 23:20:58 2009
Beginning crash recovery of 1 threads
parallel recovery setup failed: using serial mode
Sun Feb 22 23:20:58 2009
Started redo scan
Sun Feb 22 23:20:58 2009
Completed redo scan
0 redo blocks read, 0 data blocks need recovery
Sun Feb 22 23:20:58 2009
Started redo application at
Thread 1: logseq 1137, block 3, scn 1707289029
Sun Feb 22 23:20:58 2009
Recovery of Online Redo Log: Thread 1 Group 5 Seq 1137 Reading mem 0
Mem# 0: I:\ARCSIGHT\REDO\REDO5.LOG
Mem# 1: I:\ARCSIGHT\REDO\REDO05B.LOG
Sun Feb 22 23:20:58 2009
Completed redo application
Sun Feb 22 23:20:58 2009
Completed crash recovery at
Thread 1: logseq 1137, block 3, scn 1707309030
0 data blocks read, 0 data blocks written, 0 redo blocks read
Sun Feb 22 23:20:59 2009
LGWR: STARTING ARCH PROCESSES
ARC0 started with pid=62, OS id=6972
Sun Feb 22 23:20:59 2009
ARC0: Archival started
ARC1 started with pid=66, OS id=6640
Sun Feb 22 23:20:59 2009
ARC1: Archival started
LGWR: STARTING ARCH PROCESSES COMPLETE
Thread 1 advanced to log sequence 1138
Thread 1 opened at log sequence 1138
Current log# 4 seq# 1138 mem# 0: G:\ARCSIGHT\REDO\REDO4.LOG
Current log# 4 seq# 1138 mem# 1: G:\ARCSIGHT\REDO\REDO04B.LOG
Successful open of redo thread 1
Sun Feb 22 23:21:00 2009
MTTR advisory is disabled because FAST_START_MTTR_TARGET is not set
Sun Feb 22 23:21:00 2009
ARC0: Becoming the 'no FAL' ARCH
ARC0: Becoming the 'no SRL' ARCH
Sun Feb 22 23:21:00 2009
ARC1: Becoming the heartbeat ARCH
Sun Feb 22 23:21:00 2009
SMON: enabling cache recovery
Sun Feb 22 23:21:02 2009
Errors in file e:\oracle10g\orahome10g\admin\arcsight\bdump\arcsight_pmon_6676.trc:
ORA-27103: internal error
OSD-00028: additional error information
Sun Feb 22 23:21:02 2009
PMON: terminating instance due to error 27103
Sun Feb 22 23:21:02 2009
Errors in file e:\oracle10g\orahome10g\admin\arcsight\bdump\arcsight_reco_7696.trc:
ORA-27103: internal error
Sun Feb 22 23:21:02 2009
Errors in file e:\oracle10g\orahome10g\admin\arcsight\bdump\arcsight_smon_7472.trc:
ORA-27103: internal error
Sun Feb 22 23:21:02 2009
Errors in file e:\oracle10g\orahome10g\admin\arcsight\bdump\arcsight_ckpt_6380.trc:
ORA-27103: internal error
Sun Feb 22 23:21:02 2009
Errors in file e:\oracle10g\orahome10g\admin\arcsight\bdump\arcsight_lgwr_6756.trc:
ORA-27103: internal error
Sun Feb 22 23:21:03 2009
Errors in file e:\oracle10g\orahome10g\admin\arcsight\bdump\arcsight_dbw3_520.trc:
ORA-27103: internal error
Sun Feb 22 23:21:03 2009
Errors in file e:\oracle10g\orahome10g\admin\arcsight\bdump\arcsight_dbw2_6276.trc:
ORA-27103: internal error
Sun Feb 22 23:21:03 2009
Errors in file e:\oracle10g\orahome10g\admin\arcsight\bdump\arcsight_dbw1_6800.trc:
ORA-27103: internal error
Sun Feb 22 23:21:03 2009
Errors in file e:\oracle10g\orahome10g\admin\arcsight\bdump\arcsight_dbw0_6500.trc:
ORA-27103: internal error
Sun Feb 22 23:21:03 2009
Errors in file e:\oracle10g\orahome10g\admin\arcsight\bdump\arcsight_mman_7560.trc:
ORA-27103: internal error
Sun Feb 22 23:21:04 2009
Errors in file e:\oracle10g\orahome10g\admin\arcsight\bdump\arcsight_psp0_7544.trc:
ORA-27103: internal error
Instance terminated by PMON, pid = 6676
I appreciate any input on what to look at to further isolate this issue. I'd run into many other issues along the way (setting AWE_WINDOW_MEMORY to a proper size, setting db_block_buffers to a proper value, etc) that various forum searches helped resolve but I've not been able to find anything related to the errors I'm getting now. If I set use_indirect_data_buffers=false and tune back the db_block_buffers, the instance starts without any problems. Its just when I try and enable the use of AWE that I'm having a problem.
NickJust wanted to close out this tread in case anyone else runs into a similar problem. Turns out we ran into a bug documented in the below linked article (we're using AMD processors). Essentially needed to disable NUMA.
http://blog.csdn.net/orapeasant/archive/2007/06/05/1639532.aspx
excerpt ....
But please be aware of Bug 4494543 - affecting 10g and fixed in Oracle 11.0 ......
ORA-7445: CORE DUMP [ACCESS_VIOLATION] WITH USE_INDIRECT_DATA_BUFFERS=TRUE
Rediscovery Information:
1) Using 32-Bit Oracle on a 32-Bit Windows 2003 server running on an AMD Opteron 64-Bit chip.
2) You have set use_indirect_data_buffers=true in init.ora
Workaround: Basically disable NUMA feature on 32-Bit platform :-
1) Set ENABLENUMA = FALSE in Windows registry for the Oracle Home.
2) Set enableNUMA_optimizations = FALSE (init.ora)
Thanks for the help. We'll see if access to the extra memory will be useful or not .....
Nick -
Getting an error when i am execution a BI query using ABAP.
Hi Expert,
I am getting an error when i am execution a BI query using ABAP. Its Giving me this Error "The Info Provider properties for GHRGPDM12 are not the same as the system default" and in the error analysis it saying as bellow.
Property Data Integrity has been set differently to the system default.
Current setting: 0 for GHRGPDM12
System default: u2019 7 u2018
As I am very new to BI and have very limited knowledge, so I am not able to understand this problem. Can any one help me to resolving this issue. Previously it as working fine, I am getting this error last 2 days.
when i am debugging , I am getting error from
create instance of cl_rsr_request
CREATE OBJECT r_request
EXPORTING
i_genuniid = p_genuniid.
this FM. Its not able to create the object. Can any one please help me out.
Thanks in advance.
Regards
SatrajitHi,
I am able to solve this problem
Regards
Satrajit -
Unable to create new query using query manager
Hi friends,
I have been trying to create a query using query manager for couple of hours but still not able to.I am following the instructions given in oracle Peopletools 8.52 : Peoplesoft query
Chapter - creating new queries.
Below are the steps I am going through to create new query:
Step - I open the component Reporting Tools-> Query->Query Manager , I don't get the tabbed pages one for search an existing query and another for create new query.
Please follow this link to see how the page is displayed in first step:
http://uploadpic.org/v.php?img=EvMvVAXX1E
Step 2 - When I click on create new query link, I am redirected to a page where it asks for record name to add in the query. But, even this page is not displayed as how it supposed to be
http://uploadpic.org/v.php?img=GzHh3f6krU
Step 3 - Following the above step, when I click on Person record to add into my query I am asked to select the fields that I want to display in the output.
But I somehow do not get the proper tabbed pages where individual pages are there to add the attributes to complete the query like adding multiple records, fields, query, expressions, prompt...etc
http://uploadpic.org/v.php?img=Wbbla3Q3jE
I am neither able to select multiple records in my query nor able to customize my query to get the desired results.
Below is the query that I want to create using query manager:
SELECT P.EMPLID,P.BIRTHDATE, N.NAME, A.ADDRESS1, A.ADDRESS2, A.CITY
FROM PS_PERSON P, PS_NAMES N, PS_ADDRESSES A
WHERE P.EMPLID = N.EMPLID AND
N.EMPLID = A.EMPLID AND
P.BIRTHDATE BETWEEN to_date('1990/1/1','yyyy/mm/dd') and to_date('1991/1/1','yyyy/mm/dd');Hi,
As I cannot access your screenshot by the blocking of company firewall rules.
I'm guessing currently you are using PT 8.52.00 version, correct?
This should be a bug, that you need to apply the 8.52.0X patch, not sure which patch fix this, you can apply the latest one to solve this issue for no tab page of query manager. (PT 8.52.06)
Hope this helps.
Thanks,
Saxon SI
Maybe you are looking for
-
Report to see the Blocked Sales orders
Hi friends, Is there any standard report to view the Blocked Sales orders in SAP. Please help me out. Thanks in Advance, Regards, Anvita.
-
How to change the font settings of headers in excel
how tobold the column headers in excel using RGT? kavi
-
Hey, So I have gone through three power adapters so far due to fraying and I just had to buy a new one. When I plug it in the light usually goes on but it doesn't charge unless I wiggle the plug around and twist it to the side. The power cord is bran
-
Problems with extrenal drive after upgrade to Lion
Hello, after upgrading to Lion last week I am experiencing some problems with my LaCie 1 TB FireWire (800) external drive. The problem is not that big however. When I delete files on the external drive they do not appear in the Trash Bin. However whe
-
OADefaultListBean to display all the values
Hello, Using OADefaultListBean, i was able to display all the selected values using the below logic but how to get list of all the values in the OADefaultListBean instead of just the selected ones? OADefaultListBean list = (OADefaultListBean)webBean.