Oracle Timestamp Issue
I'm using a Oracle 9.2 database and Oracle 9 JDBC drivers.
The server has its time zone set to GMT and I'm testing from a client in EST.
It seems like the Timestamp are not being returned correctly.
What I think is happening here is mismatch between the time zone of Oracle server and the client that is not being accounted for when the driver is creating timestamps.
If I add the row using sysdate at 8 AM EST on a server running on GMT, then retrieve the timestamp with JDBC using a Java default time zone of EST, I get a timestamp that matches 1 PM EST or 6 PM GMT.
If I retrieve it with JDBC after setting my Java default time zone to GMT (so it matches the server), then I get a timestamp that matches 8 AM EST or 1 PM GMT which is correct.
My hunch is that the driver is just doing a new Calendar and setting the hour directly from the server. So if the server passes 1 PM (or hour 13 in 24 hour day), it just sets it using the default time zone whatever it is. As long as the client default time zone and the Oracle server time zone are the same, everything works fine. If they are different, there will be a discrepancy of the number hours offset between the time zone of the client and the time zone of the server.
Does any one else have any ideas?
First, I am not setting the timestamp without
conversion (#2). The driver is setting the timestamp
and you are suggesting exactly what I think the
driver is doing.
As I understand it, timestamp has NO timezone. It is,
in fact, a long number of milliseconds since Jan 1,
1970 GMT.
Timezones come into play when we go to render the
milliseconds in a way that makes sense ot humans.
In other words, the timestamp for 8 AM EST and 1 PM
GMT are the same. If you don't believe it, create two
Calendar objects, one with EST timezone and the other
with GMT. Set the GMT one to 1 PM and the other one
to 8 AM (same day, year, minutes, and milliseconds).
Then display the time as a long. It is the same value.Correct.
Similar Messages
-
Mapping util.Date to Oracle timestamp
Tuesday, March 22, 2005
I am currently experiencing difficulty in mapping a java.util.Date
field to an Oracle TIMESTAMP column.
Here's what I see. By default, Kodo maps the date field to a DATE
column. I suppose this makes sense since Oracle's date columns
have time information that resolves to the second. In this case,
the client has a business case to store subsecond resolution,
hence the desire to store the date field in an Oracle TIMESTAMP
column.
First question: how should this be done?
Here's what I've tried. I tried setting the jdbc-type extension
for the date field to "timestamp". This setting makes no
difference, and I suspect the reason is that OracleDBDictionary
has made the mapping from TIMESTAMP to DATE.
I tried setting the jdbc-sql-type extension for the date field to
"timestamp". This makes a difference only when I drop the table.
Then the schematool's refresh action creates a table with date's
field mapped to a TIMESTAMP column. I have also gone ahead and
manually altered the table to achieve the same effect.
Once the mapping is created, I see the following behavior. Kodo
has no problem reading the TIMESTAMP column and putting the info
into the date field. It also has no problem saving non-null date
values into the TIMESTAMP column. But it does have a problem
storing a null in the date field.
Second question: what is the workaround to this problem?
The the stack dump (obtained by using the JDO Tools Library
example) follows.
Thanks in advance,
David Ezzio
enter command:
--> return book
Select the book to return:
1. book [com.ysoft.jdo.book.library.Book-354] "Gone to War" checked out:
Tue Mar 22 10:38:01 EST 2005
2. book [com.ysoft.jdo.book.library.Book-356] "Gone to Work" checked
out: Tue Mar 22 10:33:58 EST 2005
3. book [com.ysoft.jdo.book.library.Book-357] "Gone Fishing" checked
out: Tue Mar 22 10:33:58 EST 2005
4. book [com.ysoft.jdo.book.library.Book-360] "Gone Sailing" checked
out: Tue Mar 22 10:33:58 EST 2005
5. book [com.ysoft.jdo.book.library.Book-355] "Gone Hunting" checked
out: Tue Mar 22 10:33:58 EST 2005
Enter selection:
--> 2
okay
enter command:
--> commit
exception caught in command
kodo.util.FatalDataStoreException: The transaction has been rolled back.
See the nested exceptions for details on the errors that occu
rred.
at
kodo.runtime.PersistenceManagerImpl.throwFlushException(PersistenceManagerImpl.java:1262)
at
kodo.runtime.PersistenceManagerImpl.flush(PersistenceManagerImpl.java:1122)
at
kodo.runtime.PersistenceManagerImpl.flushSafe(PersistenceManagerImpl.java:1005)
at
kodo.runtime.PersistenceManagerImpl.beforeCompletion(PersistenceManagerImpl.java:932)
at
kodo.runtime.LocalManagedRuntime.commit(LocalManagedRuntime.java:69)
at
kodo.runtime.PersistenceManagerImpl.commit(PersistenceManagerImpl.java:592)
at
com.ysoft.jdo.book.library.LibraryHandler.commitTransaction(LibraryHandler.java:175)
at
com.ysoft.jdo.book.library.client.CommitTransaction.execute(Library.java:279)
at
com.ysoft.jdo.book.common.console.UserInterface.execute(UserInterface.java:196)
at
com.ysoft.jdo.book.common.console.UserInterface.pumpCommands(UserInterface.java:186)
at com.ysoft.jdo.book.library.client.Library.run(Library.java:139)
at com.ysoft.jdo.book.library.client.Library.main(Library.java:104)
NestedThrowablesStackTrace:
kodo.util.DataStoreException: Invalid column type
at
kodo.jdbc.sql.DBDictionary.newDataStoreException(DBDictionary.java:3081)
at kodo.jdbc.sql.SQLExceptions.getDataStore(SQLExceptions.java:77)
at kodo.jdbc.sql.SQLExceptions.getDataStore(SQLExceptions.java:63)
at kodo.jdbc.sql.SQLExceptions.getDataStore(SQLExceptions.java:43)
at
kodo.jdbc.runtime.PreparedStatementManager.flush(PreparedStatementManager.java:89)
at
kodo.jdbc.runtime.UpdateManagerImpl.flush(UpdateManagerImpl.java:445)
at
kodo.jdbc.runtime.UpdateManagerImpl.flush(UpdateManagerImpl.java:193)
at
kodo.jdbc.runtime.UpdateManagerImpl.flush(UpdateManagerImpl.java:95)
at
kodo.jdbc.runtime.JDBCStoreManager.flush(JDBCStoreManager.java:609)
at
kodo.runtime.DelegatingStoreManager.flush(DelegatingStoreManager.java:153)
at
kodo.runtime.PersistenceManagerImpl.flush(PersistenceManagerImpl.java:1122)
at
kodo.runtime.PersistenceManagerImpl.flushSafe(PersistenceManagerImpl.java:1005)
at
kodo.runtime.PersistenceManagerImpl.beforeCompletion(PersistenceManagerImpl.java:932)
at
kodo.runtime.LocalManagedRuntime.commit(LocalManagedRuntime.java:69)
at
kodo.runtime.PersistenceManagerImpl.commit(PersistenceManagerImpl.java:592)
at
com.ysoft.jdo.book.library.LibraryHandler.commitTransaction(LibraryHandler.java:175)
at
com.ysoft.jdo.book.library.client.CommitTransaction.execute(Library.java:279)
at
com.ysoft.jdo.book.common.console.UserInterface.execute(UserInterface.java:196)
at
com.ysoft.jdo.book.common.console.UserInterface.pumpCommands(UserInterface.java:186)
at com.ysoft.jdo.book.library.client.Library.run(Library.java:139)
at com.ysoft.jdo.book.library.client.Library.main(Library.java:104)
NestedThrowablesStackTrace:
java.sql.SQLException: Invalid column type
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:269)
at
oracle.jdbc.driver.OracleStatement.get_internal_type(OracleStatement.java:6164)
at
oracle.jdbc.driver.OraclePreparedStatement.setNull(OraclePreparedStatement.java:1316)
at
com.solarmetric.jdbc.DelegatingPreparedStatement.setNull(DelegatingPreparedStatement.java:369)
at
com.solarmetric.jdbc.PoolConnection$PoolPreparedStatement.setNull(PoolConnection.java:406)
at
com.solarmetric.jdbc.DelegatingPreparedStatement.setNull(DelegatingPreparedStatement.java:369)
at
com.solarmetric.jdbc.DelegatingPreparedStatement.setNull(DelegatingPreparedStatement.java:369)
at
com.solarmetric.jdbc.DelegatingPreparedStatement.setNull(DelegatingPreparedStatement.java:369)
at
com.solarmetric.jdbc.LoggingConnectionDecorator$LoggingConnection$LoggingPreparedStatement.setNull(LoggingConnectionDecorato
r.java:792)
at
com.solarmetric.jdbc.DelegatingPreparedStatement.setNull(DelegatingPreparedStatement.java:369)
at kodo.jdbc.sql.DBDictionary.setNull(DBDictionary.java:950)
at
kodo.jdbc.sql.OracleDictionary.setNull(OracleDictionary.java:450)
at kodo.jdbc.sql.RowImpl.toSQL(RowImpl.java:828)
at kodo.jdbc.sql.RowImpl.flush(RowImpl.java:1039)
at kodo.jdbc.sql.RowImpl.flush(RowImpl.java:975)
at
kodo.jdbc.runtime.PreparedStatementManager.flushInternal(PreparedStatementManager.java:160)
at
kodo.jdbc.runtime.PreparedStatementManager.flush(PreparedStatementManager.java:84)
at
kodo.jdbc.runtime.UpdateManagerImpl.flush(UpdateManagerImpl.java:445)
at
kodo.jdbc.runtime.UpdateManagerImpl.flush(UpdateManagerImpl.java:193)
at
kodo.jdbc.runtime.UpdateManagerImpl.flush(UpdateManagerImpl.java:95)
at
kodo.jdbc.runtime.JDBCStoreManager.flush(JDBCStoreManager.java:609)
at
kodo.runtime.DelegatingStoreManager.flush(DelegatingStoreManager.java:153)
at
kodo.runtime.PersistenceManagerImpl.flush(PersistenceManagerImpl.java:1122)
at
kodo.runtime.PersistenceManagerImpl.flushSafe(PersistenceManagerImpl.java:1005)
at
kodo.runtime.PersistenceManagerImpl.beforeCompletion(PersistenceManagerImpl.java:932)
at
kodo.runtime.LocalManagedRuntime.commit(LocalManagedRuntime.java:69)
at
kodo.runtime.PersistenceManagerImpl.commit(PersistenceManagerImpl.java:592)
at
com.ysoft.jdo.book.library.LibraryHandler.commitTransaction(LibraryHandler.java:175)
at
com.ysoft.jdo.book.library.client.CommitTransaction.execute(Library.java:279)
at
com.ysoft.jdo.book.common.console.UserInterface.execute(UserInterface.java:196)
at
com.ysoft.jdo.book.common.console.UserInterface.pumpCommands(UserInterface.java:186)
at com.ysoft.jdo.book.library.client.Library.run(Library.java:139)
at com.ysoft.jdo.book.library.client.Library.main(Library.java:104)
enter command:
-->Hi Stephen,
There are two related issues that are addressed. One, some Oracle
drivers return the wrong type (Type.OTHER) for the TIMESTAMP field.
This is true for the
9.2.0.1.0 driver that ships with 9iR2. This causes an exception when
attempting to assign a null to the date field that has been mapped to a
TIMESTAMP column. Two, all of the 9i drivers (and 10g drivers) return a
type name of "TIMESTAMP(x)" where x is the precision. This confuses
Kodo's OracleDictionary which is looking for a string without the
precision characters.
Following your suggestion, the following code fixes it just fine. It is
harmless, in that all it does is do what OracleDictionary intended but
failed to do. To use it, you must add the following property
configuration to the kodo.properties file.
kodo.jdbc.DBDictionary: xxx.jdo.FixedOracleDictionary
Without the fix, Kodo does not reassign the TIMESTAMP columns to a type
of DATE. So far as I can tell, as long as the driver returns a
Types.TIMESTAMP this does not cause a failure.
This fix will be moot as soon as the bug in OracleDictionary is fixed.
What I wonder about is why does Kodo reassign type TIMESTAMP to DATE?
Why don't you treat TIMESTAMP types as TIMESTAMP types? Curious minds
want to know.
Best wishes,
David
---- code follows
package xxx.jdo;
import java.sql.*;
import kodo.jdbc.schema.*;
import kodo.jdbc.sql.*;
* Some Oracle drivers do not return the correct type for the TIMESTAMP
field.
* This class fixes this issue for Kodo 3.3. The problem (an exception
complaining
* about an invalid column type) appears when mapping a Java field
(Date for example) to
* an Oracle timestamp field, and only when attempting to set null on
the Java field.
public class FixedOracleDictionary
extends OracleDictionary
public Column[] getColumns (DatabaseMetaData meta, String catalog,
String schemaName, String tableName,
String columnName, Connection conn)
throws SQLException
// Let Kodo's OracleDictionary do its thing
Column[] cols = super.getColumns (meta, catalog, schemaName,
tableName,
columnName, conn);
// Catch the columns with a name of "TIMESTAMP(n)" and mark them
as DATE types.
// This is what the OracleDictionary intended to do, but was
foiled by the
// name which now has a precision.
for (int i = 0; cols != null && i < cols.length; i++)
String tName = cols.getTypeName();
if (tName != null && tName.startsWith("TIMESTAMP"))
cols[i].setType(Types.DATE);
return cols;
---- code ends
Stephen Kim wrote:
This is a bug (1111)with regards to specific combinations of Oracle 10
driver and db.
To work around the issue until the next relase, getColumns (...) in
OracleDictionary needs to be extended/modified to instead of doing a
strict equals () comparison to "TIMESTAMP", to instead do a startsWith
("TIMESTAMP")
David Ezzio wrote:
Tuesday, March 22, 2005
I am currently experiencing difficulty in mapping a java.util.Date
field to an Oracle TIMESTAMP column.
Here's what I see. By default, Kodo maps the date field to a DATE
column. I suppose this makes sense since Oracle's date columns
have time information that resolves to the second. In this case,
the client has a business case to store subsecond resolution,
hence the desire to store the date field in an Oracle TIMESTAMP
column.
First question: how should this be done?
Here's what I've tried. I tried setting the jdbc-type extension
for the date field to "timestamp". This setting makes no
difference, and I suspect the reason is that OracleDBDictionary
has made the mapping from TIMESTAMP to DATE.
I tried setting the jdbc-sql-type extension for the date field to
"timestamp". This makes a difference only when I drop the table.
Then the schematool's refresh action creates a table with date's
field mapped to a TIMESTAMP column. I have also gone ahead and
manually altered the table to achieve the same effect.
Once the mapping is created, I see the following behavior. Kodo
has no problem reading the TIMESTAMP column and putting the info
into the date field. It also has no problem saving non-null date
values into the TIMESTAMP column. But it does have a problem
storing a null in the date field.
Second question: what is the workaround to this problem?
The the stack dump (obtained by using the JDO Tools Library
example) follows.
Thanks in advance,
David Ezzio
enter command:
--> return book
Select the book to return:
1. book [com.ysoft.jdo.book.library.Book-354] "Gone to War" checked
out:
Tue Mar 22 10:38:01 EST 2005
2. book [com.ysoft.jdo.book.library.Book-356] "Gone to Work" checked
out: Tue Mar 22 10:33:58 EST 2005
3. book [com.ysoft.jdo.book.library.Book-357] "Gone Fishing" checked
out: Tue Mar 22 10:33:58 EST 2005
4. book [com.ysoft.jdo.book.library.Book-360] "Gone Sailing" checked
out: Tue Mar 22 10:33:58 EST 2005
5. book [com.ysoft.jdo.book.library.Book-355] "Gone Hunting" checked
out: Tue Mar 22 10:33:58 EST 2005
Enter selection:
--> 2
okay
enter command:
--> commit
exception caught in command
kodo.util.FatalDataStoreException: The transaction has been rolled
back. See the nested exceptions for details on the errors that occu
rred.
at
kodo.runtime.PersistenceManagerImpl.throwFlushException(PersistenceManagerImpl.java:1262)
at
kodo.runtime.PersistenceManagerImpl.flush(PersistenceManagerImpl.java:1122)
at
kodo.runtime.PersistenceManagerImpl.flushSafe(PersistenceManagerImpl.java:1005)
at
kodo.runtime.PersistenceManagerImpl.beforeCompletion(PersistenceManagerImpl.java:932)
at
kodo.runtime.LocalManagedRuntime.commit(LocalManagedRuntime.java:69)
at
kodo.runtime.PersistenceManagerImpl.commit(PersistenceManagerImpl.java:592)
at
com.ysoft.jdo.book.library.LibraryHandler.commitTransaction(LibraryHandler.java:175)
at
com.ysoft.jdo.book.library.client.CommitTransaction.execute(Library.java:279)
at
com.ysoft.jdo.book.common.console.UserInterface.execute(UserInterface.java:196)
at
com.ysoft.jdo.book.common.console.UserInterface.pumpCommands(UserInterface.java:186)
at
com.ysoft.jdo.book.library.client.Library.run(Library.java:139)
at
com.ysoft.jdo.book.library.client.Library.main(Library.java:104)
NestedThrowablesStackTrace:
kodo.util.DataStoreException: Invalid column type
at
kodo.jdbc.sql.DBDictionary.newDataStoreException(DBDictionary.java:3081)
at
kodo.jdbc.sql.SQLExceptions.getDataStore(SQLExceptions.java:77)
at
kodo.jdbc.sql.SQLExceptions.getDataStore(SQLExceptions.java:63)
at
kodo.jdbc.sql.SQLExceptions.getDataStore(SQLExceptions.java:43)
at
kodo.jdbc.runtime.PreparedStatementManager.flush(PreparedStatementManager.java:89)
at
kodo.jdbc.runtime.UpdateManagerImpl.flush(UpdateManagerImpl.java:445)
at
kodo.jdbc.runtime.UpdateManagerImpl.flush(UpdateManagerImpl.java:193)
at
kodo.jdbc.runtime.UpdateManagerImpl.flush(UpdateManagerImpl.java:95)
at
kodo.jdbc.runtime.JDBCStoreManager.flush(JDBCStoreManager.java:609)
at
kodo.runtime.DelegatingStoreManager.flush(DelegatingStoreManager.java:153)
at
kodo.runtime.PersistenceManagerImpl.flush(PersistenceManagerImpl.java:1122)
at
kodo.runtime.PersistenceManagerImpl.flushSafe(PersistenceManagerImpl.java:1005)
at
kodo.runtime.PersistenceManagerImpl.beforeCompletion(PersistenceManagerImpl.java:932)
at
kodo.runtime.LocalManagedRuntime.commit(LocalManagedRuntime.java:69)
at
kodo.runtime.PersistenceManagerImpl.commit(PersistenceManagerImpl.java:592)
at
com.ysoft.jdo.book.library.LibraryHandler.commitTransaction(LibraryHandler.java:175)
at
com.ysoft.jdo.book.library.client.CommitTransaction.execute(Library.java:279)
at
com.ysoft.jdo.book.common.console.UserInterface.execute(UserInterface.java:196)
at
com.ysoft.jdo.book.common.console.UserInterface.pumpCommands(UserInterface.java:186)
at
com.ysoft.jdo.book.library.client.Library.run(Library.java:139)
at
com.ysoft.jdo.book.library.client.Library.main(Library.java:104)
NestedThrowablesStackTrace:
java.sql.SQLException: Invalid column type
at
oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
at
oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
at
oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:269)
at
oracle.jdbc.driver.OracleStatement.get_internal_type(OracleStatement.java:6164)
at
oracle.jdbc.driver.OraclePreparedStatement.setNull(OraclePreparedStatement.java:1316)
at
com.solarmetric.jdbc.DelegatingPreparedStatement.setNull(DelegatingPreparedStatement.java:369)
at
com.solarmetric.jdbc.PoolConnection$PoolPreparedStatement.setNull(PoolConnection.java:406)
at
com.solarmetric.jdbc.DelegatingPreparedStatement.setNull(DelegatingPreparedStatement.java:369)
at
com.solarmetric.jdbc.DelegatingPreparedStatement.setNull(DelegatingPreparedStatement.java:369)
at
com.solarmetric.jdbc.DelegatingPreparedStatement.setNull(DelegatingPreparedStatement.java:369)
at
com.solarmetric.jdbc.LoggingConnectionDecorator$LoggingConnection$LoggingPreparedStatement.setNull(LoggingConnectionDecorato
r.java:792)
at
com.solarmetric.jdbc.DelegatingPreparedStatement.setNull(DelegatingPreparedStatement.java:369)
at kodo.jdbc.sql.DBDictionary.setNull(DBDictionary.java:950)
at
kodo.jdbc.sql.OracleDictionary.setNull(OracleDictionary.java:450)
at kodo.jdbc.sql.RowImpl.toSQL(RowImpl.java:828)
at kodo.jdbc.sql.RowImpl.flush(RowImpl.java:1039)
at kodo.jdbc.sql.RowImpl.flush(RowImpl.java:975)
at
kodo.jdbc.runtime.PreparedStatementManager.flushInternal(PreparedStatementManager.java:160)
at
kodo.jdbc.runtime.PreparedStatementManager.flush(PreparedStatementManager.java:84)
at
kodo.jdbc.runtime.UpdateManagerImpl.flush(UpdateManagerImpl.java:445)
at
kodo.jdbc.runtime.UpdateManagerImpl.flush(UpdateManagerImpl.java:193)
at
kodo.jdbc.runtime.UpdateManagerImpl.flush(UpdateManagerImpl.java:95)
at
kodo.jdbc.runtime.JDBCStoreManager.flush(JDBCStoreManager.java:609)
at
kodo.runtime.DelegatingStoreManager.flush(DelegatingStoreManager.java:153)
at
kodo.runtime.PersistenceManagerImpl.flush(PersistenceManagerImpl.java:1122)
at
kodo.runtime.PersistenceManagerImpl.flushSafe(PersistenceManagerImpl.java:1005)
at
kodo.runtime.PersistenceManagerImpl.beforeCompletion(PersistenceManagerImpl.java:932)
at
kodo.runtime.LocalManagedRuntime.commit(LocalManagedRuntime.java:69)
at
kodo.runtime.PersistenceManagerImpl.commit(PersistenceManagerImpl.java:592)
at
com.ysoft.jdo.book.library.LibraryHandler.commitTransaction(LibraryHandler.java:175)
at
com.ysoft.jdo.book.library.client.CommitTransaction.execute(Library.java:279)
at
com.ysoft.jdo.book.common.console.UserInterface.execute(UserInterface.java:196)
at
com.ysoft.jdo.book.common.console.UserInterface.pumpCommands(UserInterface.java:186)
at
com.ysoft.jdo.book.library.client.Library.run(Library.java:139)
at
com.ysoft.jdo.book.library.client.Library.main(Library.java:104)
enter command:
--> -
Hardware Configuration:
Regarding Oracle Performance Issue.
Configuration 1
================
SunV880 - Sunfire
32 GB RAM
14 numbers of 36GB hard disk
8 CPUs
CPU Speed 750MZ.
Software Configuration:
Oracle 8i
OS version - Solaris 8
Customized our own application - Namex
Configuration 2
================
Intel PIII - 750 MZ
2 GB RAM
2 CPUS
Software configuration
Oracle 8i
OS version linux 6.2
Customized our own application - Namex (multi threaded application)
We installed the oracle application in all hard disks. All tables
are splited in to separate hard disks.
OS installed in 1 hard disk.
namex application installed in 1 hard disk
Oracle installed in 1 hard disk.
All tables are splited in to other hard disks.
We are trying to insert some user databases in oracle table. We
achieved up to 150 records/second in Sun server. But in lower
configuration our application inserts up to 100 records/second.
(configuration 2)
We want improve our inserting database records/per rate
in Sun Server.
How to tune our oracle application parameter values in init.ora
file. Our application tries to insert up to 500 records per second.
But I can't able to achieve this value.
init.ora file
=============
db_name = "namex"
instance_name = namex64
service_names = namex64
control_files = ("/disk1/oracle64/OraHome1/oradata/Namex64/control01.ctl", "/disk1/oracle64/OraHome1/oradata/namex64/control02.ctl", "/disk1/oracle64/OraHome1/oradata/namex64/control03.ctl")
open_cursors = 300
max_enabled_roles = 145
#db_block_buffers = 20480
db_block_buffers = 604800
#shared_pool_size = 419430400
shared_pool_size = 8000000000
#log_buffer = 163840000
log_buffer = 2147467264
#large_pool_size = 614400
java_pool_size = 0
log_checkpoint_interval = 10000
log_checkpoint_timeout = 1800
processes = 1014
# audit_trail = false # if you want auditing
# timed_statistics = false # if you want timed statistics
timed_statistics = true # if you want timed statistics
# max_dump_file_size = 10000 # limit trace file size to 5M each
# Uncommenting the lines below will cause automatic archiving if archiving has
# been enabled using ALTER DATABASE ARCHIVELOG.
# log_archive_start = true
# log_archive_dest_1 = "location=/disk1/oracle64/OraHome1/admin/namex64/arch"
# log_archive_format = arch_%t_%s.arc
#DBCA uses the default database value (30) for max_rollback_segments
#100 rollback segments (or more) may be required in the future
#Uncomment the following entry when additional rollback segments are created and made online
#max_rollback_segments = 500
# If using private rollback segments, place lines of the following
# form in each of your instance-specific init.ora files:
#rollback_segments = ( RBS0, RBS1, RBS2, RBS3, RBS4, RBS5, RBS6, RBS7, RBS8, RBS9, RBS10, RBS11, RBS12, RBS13, RBS14, RBS15, RBS16, RBS17, RBS18, RBS19, RBS20, RBS21, RBS22, RBS23, RBS24, RBS25, RBS26, RBS27, RBS28 )
# Global Naming -- enforce that a dblink has same name as the db it connects to
# global_names = false
# Uncomment the following line if you wish to enable the Oracle Trace product
# to trace server activity. This enables scheduling of server collections
# from the Oracle Enterprise Manager Console.
# Also, if the oracle_trace_collection_name parameter is non-null,
# every session will write to the named collection, as well as enabling you
# to schedule future collections from the console.
# oracle_trace_enable = true
# define directories to store trace and alert files
background_dump_dest = /disk1/oracle64/OraHome1/admin/Namex64/bdump
core_dump_dest = /disk1/oracle64/OraHome1/admin/Namex64/cdump
#Uncomment this parameter to enable resource management for your database.
#The SYSTEM_PLAN is provided by default with the database.
#Change the plan name if you have created your own resource plan.# resource_manager_plan = system_plan
user_dump_dest = /disk1/oracle64/OraHome1/admin/Namex64/udump
db_block_size = 16384
remote_login_passwordfile = exclusive
os_authent_prefix = ""
compatible = "8.0.5"
#sort_area_size = 65536
sort_area_size = 1024000000
sort_area_retained_size = 65536
DB_WRITER_PROCESSES=4
How to improve my performance activities on Oracle server.
Please guide me regarding this issue.
If anyone wants more info, please let me know.
Best regards,
SenthilkumarAre you sure that it is not an application constraint ? i.e. the application can't handle so much data per second ? (application locks, threads )
Have you tried to write a simple test program, which inserts predefined data (which your application inserts) the same data, only changing keys ?
Then comparing the values from the 1st and the 2nd configuration ?
Did you check the way your application is communicating with oracle ? If it is TCP/ip (even on the local machine) then this is your main problem.
And one more thing, do you know if your application is able to run the load (inserts) of data on different threads (i.e. in parallel), because if is not, you won't be able to push the speed higher because your constraint is the speed of a single CPU. Consider running several process, which loads the data.
We had the same problem ot AIX machines with 4 cpus. Monitoring the machine, we found that only 25% (1 cpu) where in use. We had to run 4 processes to push the speed up. Check your system's overal load while running the 'load' (inserts).
log_checkpoint_interval = 10000
Check if this value is appropriate. Maybe you should set it to 0 (infinite). This will disable checkpoints on a 'number of undo record' basis. Checpoints will occure only on log switch.
How much redo files per redo groups do you have ? What is their size ? Are they on different disks ? How much redo data is generated by a single 'record' inserted ?
Hope i helped at least a little. -
Hi Experts,
We have 40 to 50 connectors including SQL server, Oracle,Pco,OLAP etc in SAP MII system.
SAP MII version 12.2 SP6.
We got the Java Heap space on the SAP MII server and due to lack of disk space the server process is shutdown.
#2.0#2015 04 14 09:30:16:473#0-400#Fatal#com.sap.engine.frame.ProcessEnvironment#
com.sap.ASJ.krn_frm.000041#BC-JAS-COR#kernel.sda#C0000A0E68F54AF20000000100000D58#307331950000768373##com.sap.engine.frame.ProcessEnvironment#Guest#0##7F961CADD61211E4A26400001251836F#7f961cadd61211e4a26400001251836f#7f961cadd61211e4a26400001251836f#0#Thread[Managed_Application_Thread_37,5,Managed_Application_Thread]#Plain##
Server process shutting down with exit code [666]; memory allocation error [OutOfMemoryError]#
#2.0#2015 04 14 09:30:16:473#0-400#Fatal#com.sap.engine.frame.ProcessEnvironment#
com.sap.ASJ.krn_frm.000041#BC-JAS-COR#kernel.sda#C0000A0E68F54AF20000000200000D58#307331950000768373##com.sap.engine.frame.ProcessEnvironment#Guest#0##7F961CADD61211E4A26400001251836F#7f961cadd61211e4a26400001251836f#7f961cadd61211e4a26400001251836f#0#Thread[Managed_Application_Thread_37,5,Managed_Application_Thread]#Plain##
Server process shutting down with exit code [666] memory allocation error [OutOfMemoryError]
[EXCEPTION]
java.lang.OutOfMemoryError: Java heap space (failed to allocate 56 bytes)
After clearing the dump and make available disk space all the connectors like SQL server, OLAP,PCo etc working fine. But Oracle connectors are unstable.I can say oracle connectors keep loosing connections. The following errors were seen in logs. After I restart the server , the oracle connector starts working fine.
Unable to create connection to database for GDW
[EXCEPTION]
java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
at com.sap.lhcommon.system.CustomClassLoader.findClass(CustomClassLoader.java:232)
at java.lang.ClassLoader.loadClass(ClassLoader.java:367)
at java.lang.ClassLoader.loadClass(ClassLoader.java:308)
at com.sap.xmii.Illuminator.tools.database.JDBCDriverManager.getClassInstance(JDBCDriverManager.java:104)
at com.sap.xmii.Illuminator.tools.database.ConnectionPool.<init>(ConnectionPool.java:62)
at com.sap.xmii.Illuminator.tools.database.ConnectionHolder.addDBConnectionPool(ConnectionHolder.java:121)
at com.sap.xmii.Illuminator.server.Server.createHolder(Server.java:277)
at com.sap.xmii.Illuminator.server.Server.start(Server.java:134)
at com.sap.xmii.Illuminator.server.ServerManager$ServerInitializer.run(ServerManager.java:451)
at com.sap.xmii.Illuminator.server.ServerManager.startServer(ServerManager.java:414)
at com.sap.xmii.Illuminator.server.ServerManager.reload(ServerManager.java:370)
at com.sap.xmii.ejb.ServiceHandlerBean.doServerFunction(ServiceHandlerBean.java:222)
at com.sap.xmii.ejb.ServiceHandlerBean.onMessage(ServiceHandlerBean.java:75)
at sun.reflect.GeneratedMethodAccessor276.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sap.engine.services.ejb3.runtime.impl.RequestInvocationContext.proceedFinal(RequestInvocationContext.java:47)
at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:166)
at com.sap.engine.services.ejb3.runtime.impl.Interceptors_StatesTransition.invoke(Interceptors_StatesTransition.java:19)
at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:179)
at com.sap.engine.services.ejb3.runtime.impl.Interceptors_Resource.invoke(Interceptors_Resource.java:50)
at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:179)
at com.sap.engine.services.ejb3.runtime.impl.Interceptors_MessageListenerType.invoke(Interceptors_MessageListenerType.java:111)
at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:179)
at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:191)
at com.sap.engine.services.ejb3.runtime.impl.Interceptors_StatelessInstanceGetter.invoke(Interceptors_StatelessInstanceGetter.java:23)
at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:179)
at com.sap.engine.services.ejb3.runtime.impl.Interceptors_SecurityCheck.invoke(Interceptors_SecurityCheck.java:25)
at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:179)
at com.sap.engine.services.ejb3.runtime.impl.Interceptors_ExceptionTracer.invoke(Interceptors_ExceptionTracer.java:17)
at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:179)
at com.sap.engine.services.ejb3.runtime.impl.Interceptors_Lock.invoke(Interceptors_Lock.java:21)
at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:179)
at com.sap.engine.services.ejb3.runtime.impl.DefaultInvocationChainsManager.startChain(DefaultInvocationChainsManager.java:138)
at com.sap.engine.services.ejb3.runtime.impl.DefaultEJBProxyInvocationHandler.invoke(DefaultEJBProxyInvocationHandler.java:164)
at com.sap.engine.services.ejb3.runtime.impl.MDBProxyInvocationHandler.invoke(MDBProxyInvocationHandler.java:78)
at $Proxy435.onMessage(Unknown Source)
at com.sap.jms.client.session.JMSSession.deliverMessage(JMSSession.java:1046)
at com.sap.jms.client.session.JMSSession.run(JMSSession.java:894)
at com.sap.jms.resourceadapter.RaServerSession.run(RaServerSession.java:139)
at com.sap.engine.services.connector.jca15.work.TaskImpl.run(TaskImpl.java:410)
at com.sap.engine.core.thread.execution.Executable.run(Executable.java:122)
at com.sap.engine.core.thread.execution.Executable.run(Executable.java:101)
at com.sap.engine.core.thread.execution.CentralExecutor$SingleThread.run(CentralExecutor.java:328)
Error occurred while creating a database connection
[EXCEPTION]
com.sap.xmii.Illuminator.system.CommunicationException: Error occurred while creating a database connection
at com.sap.xmii.Illuminator.connectors.IDBC.IDBC.doProcessRequest(IDBC.java:81)
at com.sap.xmii.Illuminator.connectors.AbstractConnector.processRequest(AbstractConnector.java:83)
at com.sap.xmii.Illuminator.server.QueryEngine.run(QueryEngine.java:49)
at com.sap.xmii.Illuminator.services.handlers.IlluminatorService.processRequest(IlluminatorService.java:82)
at com.sap.xmii.Illuminator.services.ServiceManager.run(ServiceManager.java:69)
at com.sap.xmii.servlet.Illuminator.service(Illuminator.java:68)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.runServlet(FilterChainImpl.java:202)
at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:103)
at com.sap.xmii.system.SecurityFilter.doFilter(SecurityFilter.java:186)
at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:79)
at com.sap.xsrf.filter.XSRFProtectorFilter.doFilter(XSRFProtectorFilter.java:62)
at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:79)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:441)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:210)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:441)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:430)
at com.sap.engine.services.servlets_jsp.filters.DSRWebContainerFilter.process(DSRWebContainerFilter.java:38)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.servlets_jsp.filters.ServletSelector.process(ServletSelector.java:81)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.servlets_jsp.filters.ApplicationSelector.process(ApplicationSelector.java:278)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.filters.WebContainerInvoker.process(WebContainerInvoker.java:81)
at com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.filters.ResponseLogWriter.process(ResponseLogWriter.java:60)
at com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.filters.DefineHostFilter.process(DefineHostFilter.java:27)
at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.filters.MonitoringFilter.process(MonitoringFilter.java:29)
at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.filters.SessionSizeFilter.process(SessionSizeFilter.java:26)
at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.filters.MemoryStatisticFilter.process(MemoryStatisticFilter.java:57)
at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.filters.DSRHttpFilter.process(DSRHttpFilter.java:43)
at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.server.Processor.chainedRequest(Processor.java:475)
at com.sap.engine.services.httpserver.server.Processor$FCAProcessorThread.process(Processor.java:269)
at com.sap.engine.services.httpserver.server.rcm.RequestProcessorThread.run(RequestProcessorThread.java:56)
at com.sap.engine.core.thread.execution.Executable.run(Executable.java:122)
at com.sap.engine.core.thread.execution.Executable.run(Executable.java:101)
at com.sap.engine.core.thread.execution.CentralExecutor$SingleThread.run(CentralExecutor.java:328)
I am not sure of OJDBC jar file version .we have either OJDBC5 or OJDBC6 jar deployed in SAP MII.
The oracle database version that we are connecting in the data server is Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit
My questions are
After the server process shutdown and recovered , While all other connectors working fine why oracle connectors have problems?
Is it due to oracle driver issue? or any other issue related to Netweaver.
Please help.for item #1...If you add the line "gal_enableldapsearch = FALSE" to the "[ENG]" section of the calendar server configuration file, it will only put calendar users in the GAL and not all Internet Directory users.
--Bill -
JDBC-ORACLE CONNECTIVITY ISSUE WITYH OCI8 DRIVER using oracle 11g client..
JDBC-ORACLE CONNECTIVITY ISSUE WITYH OCI8 DRIVER using oracle 11g client..
I am getting below error when i m trying to access oracle db using oracle 11g client. It works with earlier oracle client versions. how do i resolve this. is there any issue with version of ojdbc6.jar that i am using??? I cant use thin driver since its an old application for which i dont have source files.
Apr 6, 2013 1:00:59 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet jsp threw exception
java.lang.UnsatisfiedLinkError: no ocijdbc9 in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
at java.lang.Runtime.loadLibrary0(Runtime.java:822)
at java.lang.System.loadLibrary(System.java:992)
at oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java:262)
at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:346)
at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:468)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:314)
at java.sql.DriverManager.getConnection(DriverManager.java:525)
at java.sql.DriverManager.getConnection(DriverManager.java:171)
at PettyCash.SysDate.getSysSubSys(SysDate.java:232)
at org.apache.jsp.PettyCash.index_jsp._jspService(org.apache.jsp.PettyCash.index_jsp:186)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
Code is as follow for reference
import oracle.jdbc.driver.*;
DriverManager.registerDriver(new oracle.jdbc.OracleDriver());
conn = DriverManager.getConnection ("jdbc:oracle:oci8:@" + database,db_user, db_pass);
eNVIRONMENT VARIABLES set are as follows:
classpath
C:\Program Files\apache-tomcat-5.5.12\common\lib\servlet-api.jar;C:\Program Files\apache-tomcat-5.5.12\webapps\ROOT\WEB-INF\lib\classes12.jar;C:\Program Files\apache-tomcat-5.5.12\webapps\ROOT\WEB-INF\lib\ojdbc6.jar;
JAVA_HOME
C:\Program Files\Java\jdk1.5.0_04
PATH
C:\Program Files\Java\jdk1.5.0_04\bin
ORACLE_HOME
D:\Oracle11\product\11.2.0\client_1\BINApr 8, 2013 5:24:06 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet jsp threw exception
java.lang.NullPointerException
at org.apache.jsp.abc.index_jsp._jspService(org.apache.jsp.abc.index_jsp:280)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:868)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:663)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595) -
How to convert oracle timestamp to java timestamp
Hi,
I need to convert oracle timestamp that i got from oracle database to java timestamp.I tried to use getTimestamp() to get timestamp value from oracle, but am getting NumberFormatException.
Could any of suggest how to convert oracle timestamp to java timestamp.Thanks jverd ,
then my code will be like:
String oracleTS="11-MAR-05 11.19.20.625 AM";
// am looking for yyyy-MM-dd HH:mm:ss format
SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd
HH:mm:ss");
Timestamp javaTimestamp=Timestamp.valueOf(oracleTS);
System.out.println("javaTimestamp----->>
"+javaTimestamp);
ving java.lang.NumberFormatException: For input
string: "MAR"Well, the SimpleDateFormat has to actually match the format you're trying to parse, for one thing. Then you have to actually USE the SDF, which you didn't.
You really haven't made it clear what you're trying to do, and it doesn't appear that you bothered to study the links I provided.
DateFormat df = new SimpleDateFormat("dd-MMM-yy HH.mm.ss.SSS aa");
Date date = df.parse(oracleTS);
Timestamp ts = new Timestamp(date.getTime()); -
HI
some bdy had deleted APPL_TOP/admin ( in Test instance)) .ie admin directory which contains all the files for executing adutilities, how do i recreate this directory please let me knw the ans for this immediately.
I am getting erros like this
Java_top enviornment variable is not set in the environment.
Run Appsora.env or Apps<s_contextname>.env in the environment
bye
JamesDuplicate post (please post only once):
Oracle applications issue
Oracle applications issue -
Unix timestamp to Oracle timestamp conversion
Hi all,
I am trying to convert the UNIX timestamp to ORACLE timestamp .
I have done like this upto now.
CREATE OR REPLCACE FUNCTION unixts_to_oraclets(unixtimestamp IN INTEGER)
RETURN DATE IS
result DATE;
BEGIN
result := TO_DATE('1970-01-01', 'YYYY-MM-DD') + numtodsinterval(unixtimestamp, 'SECOND');
return(result);
end unixts_to_oraclets;
now i have run this query
SQL> select unixts_to_oraclets(1139291114) as TS from dual;
TS
07-FEB-06
now i need the ouput to like this 07-FEB-06 01:10:12
for that i have done like this:
DECLARE
v_date DATE;
res_date DATE;
BEGIN
SELECT from_uts(1139291114)INTO v_date FROM dual;
SELECT TO_TIMESTAMP(v_date,'DD-MON-RRHH24.MI.SS.FF') INTO res_date FROM dual;
DBMS_OUTPUT.PUT_LINE(res_date);
END;
but the output is :
SQL> /
07-FEB-06
PL/SQL procedure successfully completed.
why is that it is not printing 07-FEB-06 01:10:12 ?
how should i moodify the code to get the desired output.
please help me i this regard
Trinath Somanchi,
Hyderabad.SQL> exec dbms_output.put_line(sysdate);
07-FEB-06
PL/SQL procedure successfully completed.
SQL> exec dbms_output.put_line(to_char(sysdate, 'DD-MM-YYYY HH24:MI:SS'));
07-02-2006 02:48:35
PL/SQL procedure successfully completed.
SQL> alter session set nls_date_format='DD-MM-YYYY HH24:MI:SS';
Session altered.
SQL> exec dbms_output.put_line(sysdate);
07-02-2006 02:49:03
PL/SQL procedure successfully completed. -
Oracle vulnerability issue and JavaScript.
I started a discussion in the Muse forum, and also want to ask the question here, regarding the disabling of JavaScript in browsers. That thread is: forums.adobe.com/thread/1140485. My basic question is this: is there a work around, like adding code to HTML editor, as a result of issues associated with disabling of JavaScript in browser. For example, widget and google maps in website are broke when disabling of JavaSript in browser. This is an issue resulting from the Oracle vulnerability issue a few weeks back, where the Department of Homeland Security is recommending the disabling of js in browsers to prevent the rootkit infection on machines. Want is the answer to this issue. I don't mind learning code, if needed, to put in HTML editor. I just need to know what i need to do or learn. Not everybody is going to disable Java or remove it from their machines, but many folks are and have--that is those aware of the issue. Or is the whole issue just a big bogeyman?
Yes, thank you kenneth_rapp. Note another response in Muse forum and my reply to basically this same question, which produced the same answer. You'll note, where my confusion began. See that discussion in muse forum http://forums.adobe.com/message/5017525#5017525http:// provided by member: topelovely. Again, thanks for the response. It caused me to further read and understand the differences.
-
How to resolve Oracle lock issue
Hi All,
What is Oracle lock issue in BW and how to resolve it.
Regards,
RaviHi Ravi,
The object lock issues that we sometimes encounter in SAP BW production support role.
Lets take the below example where the InfoObject(0material) load has failed and the load monitor (T-Code: RSMO) looks like this.
Go through the link below
http://proradian.com/blog/2008/07/sap-bw-production-support-object-lock-issues/
Regards,
Marasa. -
Converting Oracle TIMESTAMP(4) column to SQL datetime column conversion error in ssis
I could not able to convert Oracle TIMESTAMP(4) column to SQL datetime column conversion error in ssis.
I'm connecting OLEDD Oracle Source to OLEDB SQL Destination in SSIS package. I'm trying to insert data from oracle datetime column into sql datetime column. I'm getting some errors.
Please provide helpful info.You can transform the data types directly at the source by writing a proper SQL statement, or you can convert them using the data conversion component.
Please refer the below link
http://stackoverflow.com/questions/6256168/how-to-convert-a-timestamp-in-string-format-to-datetime-data-type-within-a-packa -
Hi there,
I've been having issues with multiple quiz attempts and interactions not all being sent to the LMS. Most answers are sent though randomily LMS drops couple of answers on each re-attempt of the quiz yet each question is set to report the answer. It also doesnt appear to occur on first attempt only new attempts after first failed. LMS provider says this is a timestamp issue in the course which doesnt send it incorrect SCORM format therefore it rejects it when the same interaction id is already there from previous attempt failed. Below is the error from LMS. Please anyone advise how this might be corrected inside Captivate.
[11:05:25.897] SetValue('cmi.interactions.29.timestamp', '2013-09-13T11:05:25.0+00:60') returned 'false' in 0.001 seconds
[11:05:25.898] GetLastError() returned '406' in 0 seconds
[11:05:25.899] GetErrorString('406') returned 'Data Model Element Type Mismatch' in 0 seconds
[11:05:25.900] GetDiagnostic('') returned 'The cmi.interactions.29.timestamp value of '2013-09-13T11:05:25.0+00:60' is not a valid time type.' in 0 secondsIm using captivate 6
-
HI
Oracle database issue in reg to
ora-00607 (internal error occured whilemaking changes to a datablock
ora-600(internal error code agruments 4193, 4997, 4526
while database is shutting down.
oracle 10.2.0.1 upgraded to 10.2.0.3
os Linux eS4
please advise to trouble shoot the issue.
PriyankaOk.. I have experience on this issue.. Post your alert log contents (not all )..
I hoping that anybody had come across with issue so that thy can express their views>>>>>>
This is the not right place to put this post.. To get immediate replies, post it on
General Database Discussions
All the best..
Yusuf -
DB2 timestamp to oracle timestamp conversion
Does any one know how to convert Db2 timestamp into oracle timestamp.
From DB2 we are getting timestamp in this format (2000-03-06-16.02.19.074474) (26 bytes).
I want to insert this into oracle thru owb into oracle table with column type timestamp.
Does anyone know the procedure for this type of conversion
Thanks in advance..Hi,
Try a migration tool at www.ispirer.com/chyfo.html
It provides you the fastest, the easiest and the most powerful way to migrate
DB2 database into Oracle.
It works in conjunction with Oracle SQL Loader. The tool creates text files (moving of LOBs are fully supported), generates
CREATE TABLE scripts for Oracle and control files for SQL Loader.
The tool has a lot of other features.
Best regards, Dmitry.
null -
10g Oracle Timestamp conversion to milliseconds
Hello!
I'm sure this is possible and I have found a couple of references but none that work.
How can I take an Oracle Timestamp and convert it using a SELECT statement into milliseconds?
Thanks in advanceIt looked interesting but I don't think it is the answer.
Isn't the Oracle timestamp based on the elapsed seconds since some date in 1970 or something? It seems there should be an algorithm to convert but I just haven't found it.
Maybe you are looking for
-
the browser will not work for me, it freezes up everytime I try to pull up a page
-
HP Slate 7 Beats Update?
Hello I'm I Own A HP Slate 7 Beats Special Edition And I Have A Question. When Will HP Update Its Firmware To 4.3 Or Higher. I Want To Use A App But I Need Open Gl 3 And That's Only For 4.4 And Higher.
-
Unable To Authenticate to WPA2-Enterprise With NetworkManager
I have tried using multiple wireless adapters (including a fully supported USB ralink wireless-N stick) but cannot connect to a WPA-2 Enterprise network with Tunneled PEAP. I am certain that the connection parameters are correct since they work fine
-
IOS 5.0.1 Personal Hotspot not working
I've been relying on my personal hotspot for the last couple of weeks as I'm away from home. Today after the iOS 5.0.1 over the air update on my iPhone 4s the personal hotspot doesn't work anymore and neither does tethered internet sharing. Now I can
-
Anyone know how to save the "connect to servers list" on OS X 10.x and what files/directories are associated with this list? I work in an environment with a lot of Macs that have a minimum of 10 mounts each and would like to save these rather than co