Oracle 10g sequence cache aging
I have been reading some about how sequences work and why you can end up with gaps in the sequence numbers. It is my understanding that you could 'lose' certain sequence numbers when the library cache ages/expires. What I can't find is where this cache is configured. Where do you define when the cache will expire and thus clear out? Seems like it's happening very quickly in one of our databases, but much more slowly in another. Don't know where to look for this setting. Can anyone help point me in the right direction? Thanks!
- The size of the sequence cache is driven by the CACHE parameter (default 20) when you create the sequence
- Oracle manages the library cache automatically-- there are no parameters to set here for the timeout. When a particular object is aged out is going to depend on, among other things, the size of the library cache, the frequency a particular object is used, and the number of other objects competing for space in the library cache. If one sequence is constantly being used, it will stay in the library cache much longer than the cache for a less frequently used sequence. If one database's library cache is under pressure because you're constantly loading new objects, cached objects will be aged out far more quickly than in a database where the library cache is not under pressure.
Justin
Similar Messages
-
Oracle 10g web cache configuration issue
Dear all,
we have two oracle 10g application 10.1.2.0.2 servers. which are configured sucessfully. forms are display from both servers.
now we are configuring the web cache load balancing but are not able to configure.
please help us.
thanks in advance.
thanks
sherplease check out this link.
http://download.oracle.com/docs/cd/B14099_19/caching.1012/b14046/basics.htm#i1045186
thanks,
AMN -
From the oracle documentation, http://docs.oracle.com/cd/E11882_01/server.112/e10701/original_export.htm#BABJHCDH
it says that sequence numbers that have been allocated are available for use in the current database.
I have a table Test which has a column test_id having a sequence test_sequence.
Max value in the test_id is 20 and assume if test_sequence is cached for 20 in a 2 RAC node with each node caching numbers from 20-30 and 30-40.
If I do an export and import the sequences to a new database, will my next sequence number in the new database be 41 ?
If so, what will be the LAST_NUMBER in the dba_Sequences table in the source database.
Thanks in advance.Hi,
if you set CACHE 20 in a RAC environment each node will cache 20 number. In your case - cached numbers will be 21-40 and 41-60 and the dba_sequences.last_number=60.
If you do export/import all the cached numbers will be lost and your first number will be last_number+1. -
"In-Memory Database Cache" option for Oracle 10g Enterprise Edition
Hi,
In one of our applications, we are using TimesTen 5.1.24 and Oracle 9i
databases (platform - Solaris 9i).
TimesTen holds application information which needs to be accessed quickly
and Oracle 9i is a master application database.
Now we are looking at an option of migrating from Oracle 9i to Oracle 10g
database. While exploring about Oracle 10g features, came to know about
"In-Memory Database Cache" option for Oracle Enterprise Edition. This made
me to think about using Oracle 10g Enterprise Edition with "In-Memory
Database Cache" option for our application.
Following are the advantages that I could visualize by adopting the
above-mentioned approach:
1. Data reconciliation between Oracle and TimesTen is not required (i.e.
data can be maintained only in Oracle tables and for caching "In-Memory
Database Cache" can be used)
2. Data maintenance is easy and gives one view access to data
I have following queries regarding the above-mentioned solution:
1. What is the difference between "TimesTen In-Memory Database" and
"In-Memory Database Cache" in terms of features and licensing model?
2. Is "In-Memory Database Cache" option integrated with Oracle 10g
installable or a separate installable (i.e. TimesTen installable with only
cache feature)?
3. Is "In-Memory Database Cache" option same as that of "TimesTen Cache
Connect to Oracle" option in TimesTen In-Memory Database?
4. After integrating "In-Memory Database Cache" option with Oracle 10g, data
access will happen only through Oracle sqlplus or OCI calls. Am I right here
in making this statement?
5. Is it possible to cache the result set of a join query in "In-Memory
Database Cache"?
In "Options and Packs" chapter in Oracle documentation
(http://download.oracle.com/docs/cd/B19306_01/license.102/b14199/options.htm
#CIHJJBGA), I encountered the following statement:
"For the purposes of licensing Oracle In-Memory Database Cache, only the
processors on which the TimesTen In-Memory Database component of the
In-Memory Database Cache software is installed and/or running are counted
for the purpose of determining the number of licenses required."
We have servers with the following configuration. Is there a way to get the
count of processors on which the Cache software could be installed and/or
running? Please assist.
Production box with 12 core 2 duo processors (24 cores)
Pre-production box with 8 core 2 duo processors (16 cores)
Development and test box with 2 single chip processors
Development and test box with 4 single chip processors
Development and test box with 6 single chip processors
Thanks & Regards,
VijayHi Vijay,
regarding your questions:
1. What is the difference between "TimesTen In-Memory Database" and
"In-Memory Database Cache" in terms of features and licensing model?
==> Product has just been renamed and integrated better with the Oracle database - Times-Ten == In-Memory-Cache-Database
2. Is "In-Memory Database Cache" option integrated with Oracle 10g
installable or a separate installable (i.e. TimesTen installable with only
cache feature)?
==> Seperate Installation
3. Is "In-Memory Database Cache" option same as that of "TimesTen Cache
Connect to Oracle" option in TimesTen In-Memory Database?
==> Please have a look here: http://www.oracle.com/technology/products/timesten/quickstart/cc_qs_index.html
This explains the differences.
4. After integrating "In-Memory Database Cache" option with Oracle 10g, data
access will happen only through Oracle sqlplus or OCI calls. Am I right here
in making this statement?
==> Please see above mentioned papers
5. Is it possible to cache the result set of a join query in "In-Memory
Database Cache"?
==> Again ... ;-)
Kind regards
Mike -
Cannot start Web Cache in Oracle 10g App Server
Hi,
Our Application runs on Oracle10g App Server,
When it tried to start WebCache using the command
opmnctl startproc ias-component=WebCache process-type=WebCache
it shows the error...
opmn id=oracle10g:6200
no enabled components for this request
When i tried to enable WebCache using Enable/Disable Component in Oracle 10g Enterprise manager - I can't see WebCache component it to enabe or disable it.
When i tried opmnctl status., it shows
------------------------------------------------+---------
ias-component | process-type | pid | status
------------------------------------------------+---------
HTTP_Server | HTTP_Server | 7276 | Alive
LogLoader | logloaderd | N/A | Down
dcm-daemon | dcm-daemon | N/A | Down
OC4J | home | 7684 | Alive
OC4J | rhs | N/A | Down
OC4J | instaremit | 5880 | Alive
OC4J | insta_test_apr_02 | 7100 | Alive
WebCache is not running, also as the WebCache is not listed in Oracle 10g Enterprise manager, i can' enable or disable it.
Plz Help me over this.,
Regards.,
Deepak.CHi.,
Thanks again !!!
Yes, My Oracle HTTP Server is listening on port 80.
I am not clear, may i know why should the ports be changed for the request to go through Web Cache ???
Can i assign port 80 for Web Cache and 7778 for HTTP Server ?
Also In Oracle Enterprise Manager, Web Cache is not available...
home, HTTP Server, management alll these are there...
Also for HTTP Server, it's not showing any metric info, 'Not Yet Available' is shown even though the HTTP Server is running, how can i get metric info about Oracle HTTP Server, i have also used dmstool -t ohs_server, its not working
It's showing... FLEXMON ERROR : detected invalid table name ohs_server
dmstool -l -t also does'nt lists ohs_server
Hellp me over this.....
Deepak.C -
Hi,
I must read many rows with my database and keep all rows in cache. Is that posible in Oracle 10g?? I must do that because I must accelerate database. Until now I used cache GigaSpaces..Hi,
There are few points to consider before implementing this idea.
1. What is type of database you are using? Is it OLTP or DSS or mixed?
2. Think of a scenario if you cache blocks in buffer, and any of then gets durty. In Oracle 10g. Parallel read will do Direct path read and before this it have to do checkpoint for the segment !!!!. So you may end up in issues.
3. 10g CBO is intelligent to optimize path using are your blocks in there in memory or it has to read the disk and then estimate the cost. But this requires some undocumented paraters to be set.
"_optimizer_cache_stats" is the parameter for this.
Inviting Experts to share their openions on these points.
Dilipkumar Patel. -
Dropped sequences in oracle 10g
Hi All,
Can we get back the dropped sequences in oracle 10g?
Command?
Thanks.
Edited by: user545846 on Apr 9, 2009 7:32 AMThanks. Oracle site is accessible.
This user has the dba previleges to select all tables. but still getting this error message:
SQL> SELECT * FROM dba_sequences AS OF TIMESTAMP systimestamp - 1/24;
SELECT * FROM dba_sequences AS OF TIMESTAMP systimestamp - 1/24
ORA-01031: insufficient privileges
Please give your comment. -
Caching configuration (Times Ten - Oracle 10g)
Hi all,
I have managed to setup Times Ten and get a cache group configured against a table in an oracle 10g instance.
That all works so great. My question is how do I define a set of cache groups and get Times Ten to load them in automatically all together. So what I am saying, is I dont want to have to enter these cache group definitions in manually via ttisql command line (as I have done this time).
Could someone please point me in the right direction with this? Also I would like to be able to set TT up such that the cache agent is automatically started. Is this possible?
Thanks,
DanHi Dan,
In the same way that you can create cache groups through a ttIsql script you can also load them from a script using the LOAD CACHE GROUP and REFRESH CACHE GROUP commands.
However, let's remember that TimesTen is a persistent database and so you should not need to re-create the cache groups nor re-load them just becasue you have stopped and started TimesTen. The cache group definitions and data will still be present as they are persistently stored. Also, if you have a READONLY or USERMANAGED cache group using AUTOREFRESH then the changes that occur in oracle are captured and refreshed to the cache group(s) automatically.
As for starting the cache agent 9or the repagent0 automatically, this kind of depends on how you are managing the startup/shutdown of the cache datastore (i.e. what itss ramPolicy is). You can set the cachePolicy for the datastore using ttAdmin as follows:
ttAdmin -cachePolicy always DSNname
this tells TimesTen that the cache agent should always be running for this datastore. However, a side effect of this is that the datastore will allways be loaded in memory when the TimesTen instance is up (i.e. the TimesTen main daemon is running). If you want to be able to start and stop the datastore manually (or from a script) then you will likely be using a ramPolicy of manual and running some script to load/unload the datastore into/from memory. If so then just add the relevant ttadmin -cacheStart|-cacheStop commands to that script.
Chris -
Sequence caching with toplink and oracle caching
Hi,
In my application, I use toplink as a JPA provider. For performance reasons, I defined an allocationSize on sequence generator for some persistence objects. I read some documentation to understand how it works, the result of my research is that the allocationSize of sequence generator must match with the increment value of the sequence in database.
So if I want to cache 1000 of values, I must define on my sequence generator allocationSize of 1000 and create a sequence like this : create sequence myseq increment by 1000. Am I right ?
Second question, what if my sequence define a cache in the database. For example, create sequence myseq increment by 1000 cache 20.
Does it mean that 20 values will be cached or 1000*20 values will be cached ? Is the cache size defined per session or for all the sessions of the database ?
Thanks.
Will.Thank you for your response.
I used the default parameter of toplink (increment by 50) and I left a cache size of 20 on database side.
But I noticed that whenever the server restarts, I "lost" between 900 and 1000 ids (nearly 20*50). So even if sequence cache on oracle size is non transactional, I think there is a kind of prefetch somewhere on the server side. I must not lost more than 50 ids when a server restarts.
If I remove the cache on database side, then the behavior is correct (the expected one to be more precise).
Is there any kind of sequence caching in oracle jdbc drivers ?
Thanks.
Will. -
OracleAS Java Object Cache 10g
OracleAS Java Object Cache 10g Documentation link on the top right of the page is broken and leads to a 404 page not found.
Hi,
apologies for the delay responding.
Can you please confirm if link is part of the OTN documentation pages at: http://otn.oracle.com/documentation/index.html
Regards,
Les -
Oracle 11g : Sequence Issues after impdp
Hi All,
We are migrating from Oracle 10g to Oracle 11g. As part of this, we take a expdp from 10g and successfully did an import using impdp on to Oracle 11g database.
But the problem is, there were few Primary key violations which occurred and all of them relate to sequences.
The Maximum data in the tables and the last number in the sequences differed which caused the issue.
Upon investigation and browsing the Web, http://www.nerdliness.com/article/2009/03/18/my-oracle-sequencedatapump-shenanigans ; I understood it could be because of the export taken while the application is online and writing to the database.
I reset all the failing sequences manually and it is fine now.
My questions now are
*1) Can we ascertain that the export taken when the source database is offline would eliminate the sequences issue.*
2) As this is being done in Production, I would like to make few checks to ensure that the sequences are properly imported. ---
Again reading few websites and oracle Forums, i found the below sql's..
select table_name, column_name, utl_raw.cast_to_number(high_value) as highval
from dba_Tab_columns
where owner = 'PRODUCTION_OWNER'
AND DATA_TYPE= 'NUMBER'
AND (OWNER, TABLE_NAME, COLUMN_NAME) IN
(SELECT CC.OWNER, CC.TABLE_NAME, CC.COLUMN_NAME
FROM DBA_CONS_COLUMNS CC
JOIN DBA_CONSTRAINTS C
ON CC.OWNER=C.OWNER
AND CC.CONSTRAINT_NAME=C.CONSTRAINT_NAME
WHERE C.CONSTRAINT_TYPE ='P'
ORDER BY 3;
SELECT SEQUENCE_NAME, MIN_VALUE, MAX_VALUE, LAST_NUMBER
FROM DBA_SEQUENCES
WHERE SEQUENCE_OWNER = 'PRODUCTION_OWNER'
ORDER BY LAST_NUMBER
If I relate the last_number with the highval and if they are same, does that mean the sequences are imported properly.
Note: We have sequence caching done and we are on RAC.
Edited by: ramakrishnavydyula on Jan 30, 2013 9:36 AMWe are migrating from Oracle 10g to Oracle 11g. As part of this, we take a expdp from 10g and successfully did an import using impdp on to Oracle 11g database.
But the problem is, there were few Primary key violations which occurred and all of them relate to sequences.
The Maximum data in the tables and the last number in the sequences differed which caused the issue.
it could be because of the export taken while the application is online and writing to the database.I don't know what's your database's size , and what's acceptable downtime for you, but I could never propose such a migration tecnique to any of my customers, due to excessive downtime when databases are quite large.
It's quite obvious that you get such errors when the export is done while people are working, unless you use FLASHBACK_SCN or FLASHBACK_TIME parameter while exporting. But in this case, assuming you don't get errors (e.g. ORA-01555), you'll probably lose a lot ot transactions.
Assuming your 10g database is running in archivelog mode (which should be the default in production DBs) did you think of using RMAN to do the migration ? -
Oracle 10g :: APEX not running
Hi,
I have installed Oracle 10g in my pc with the default configuration.
First day of installation APEX client was running but now its not running.
Server is running correctly as I saw server processes in the Process Manager (Task Manager).
I am using a debian flavor of Linux.
Can anyone help me, How to find out why it's not running?
ThanksHi,
I tried to run those commands but none of them is working here. I am providing all the logs which generated while starting the Server.
Thanks
LOGS:
Mon Jun 4 19:52:28 2007
Starting ORACLE instance (normal)
Cannot determine all dependent dynamic libraries for /proc/self/exe
The open() system call failed for the file /proc/self/exe
Linux Error: 13: Permission denied
LICENSE_MAX_SESSION = 0
LICENSE_SESSIONS_WARNING = 0
Picked latch-free SCN scheme 2
Using LOG_ARCHIVE_DEST_10 parameter default value as USE_DB_RECOVERY_FILE_DEST
Autotune of undo retention is turned on.
IMODE=BR
ILAT =10
LICENSE_MAX_USERS = 0
SYS auditing is disabled
ksdpec: called for event 13740 prior to event group initialization
Starting up ORACLE RDBMS Version: 10.2.0.1.0.
System parameters with non-default values:
sessions = 49
__shared_pool_size = 83886080
__large_pool_size = 4194304
__java_pool_size = 4194304
__streams_pool_size = 0
sga_target = 285212672
control_files = /usr/lib/oracle/xe/oradata/XE/control.dbf
__db_cache_size = 188743680
compatible = 10.2.0.1.0
db_recovery_file_dest = /usr/lib/oracle/xe/app/oracle/flash_recovery_area
db_recovery_file_dest_size= 10737418240
undo_management = AUTO
undo_tablespace = UNDO
remote_login_passwordfile= EXCLUSIVE
dispatchers = (PROTOCOL=TCP) (SERVICE=XEXDB)
shared_servers = 4
job_queue_processes = 4
background_dump_dest = /usr/lib/oracle/xe/app/oracle/admin/XE/bdump
user_dump_dest = /usr/lib/oracle/xe/app/oracle/admin/XE/udump
core_dump_dest = /usr/lib/oracle/xe/app/oracle/admin/XE/cdump
audit_file_dest = /usr/lib/oracle/xe/app/oracle/admin/XE/adump
db_name = XE
open_cursors = 300
os_authent_prefix =
pga_aggregate_target = 94371840
PMON started with pid=2, OS id=9688
PSP0 started with pid=3, OS id=9690
MMAN started with pid=4, OS id=9692
DBW0 started with pid=5, OS id=9694
LGWR started with pid=6, OS id=9696
CKPT started with pid=7, OS id=9698
SMON started with pid=8, OS id=9700
RECO started with pid=9, OS id=9702
CJQ0 started with pid=10, OS id=9704
MMON started with pid=11, OS id=9706
MMNL started with pid=12, OS id=9708
Mon Jun 4 19:52:29 2007
starting up 1 dispatcher(s) for network address '(ADDRESS=(PARTIAL=YES)(PROTOCOL=TCP))'...
starting up 4 shared server(s) ...
Oracle Data Guard is not available in this edition of Oracle.
Mon Jun 4 19:52:29 2007
ALTER DATABASE MOUNT
Mon Jun 4 19:52:33 2007
Setting recovery target incarnation to 2
Mon Jun 4 19:52:33 2007
Successful mount of redo thread 1, with mount id 2505516605
Mon Jun 4 19:52:33 2007
Database mounted in Exclusive Mode
Completed: ALTER DATABASE MOUNT
Mon Jun 4 19:52:33 2007
ALTER DATABASE OPEN
Mon Jun 4 19:52:33 2007
Thread 1 opened at log sequence 5
Current log# 2 seq# 5 mem# 0: /usr/lib/oracle/xe/app/oracle/flash_recovery_area/XE/onlinelog/o1_mf_2_35gv5kcp_.log
Successful open of redo thread 1
Mon Jun 4 19:52:33 2007
SMON: enabling cache recovery
Mon Jun 4 19:52:34 2007
Successfully onlined Undo Tablespace 1.
Mon Jun 4 19:52:34 2007
SMON: enabling tx recovery
Mon Jun 4 19:52:34 2007
Database Characterset is WE8MSWIN1252
replication_dependency_tracking turned off (no async multimaster replication found)
Starting background process QMNC
QMNC started with pid=19, OS id=9724
Mon Jun 4 19:52:35 2007
db_recovery_file_dest_size of 10240 MB is 0.98% used. This is a
user-specified limit on the amount of space that will be used by this
database for recovery-related files, and does not reflect the amount of
space available in the underlying filesystem or ASM diskgroup.
Mon Jun 4 19:52:36 2007
Completed: ALTER DATABASE OPEN -
Oracle 10g DB connecting for sys,system but not for other users
Hi,
I have oracle 10g in Windows XP. I am able to connect to database using sys/pwd@db as sysdba. All SYSDBA users able to connect DB.
When I try to connect using user, Its not throwing any error but not connecting. Just the cursor is blinking...
How to fix this issue.
Thanks in advance
-ManiHi,
I didnt see any error message in alert log. Its not logging any message while connecting DB using SYSDBA.
My DB is in NOARCHIVELOG mode.
Sill non DBA users are not able to login.
what could be the reason for this issue?
Any help....
Below is my alert log......
Dump file d:\oracle\product\10.1.0\admin\orcl10g\bdump\alert_orcl10g.log
Sat Apr 26 13:51:24 2008
ORACLE V10.1.0.2.0 - Production vsnsta=0
vsnsql=13 vsnxtr=3
Windows XP Version V5.1 Service Pack 2
CPU : 2 - type 586
Process Affinity: 0x00000000
Memory (A/P) : PH:270M/1014M, PG:852M/2441M, VA:1959M/2047M
Sat Apr 26 13:51:24 2008
Starting ORACLE instance (normal)
LICENSE_MAX_SESSION = 0
LICENSE_SESSIONS_WARNING = 0
Picked latch-free SCN scheme 2
KCCDEBUG_LEVEL = 0
Using LOG_ARCHIVE_DEST_10 parameter default value as USE_DB_RECOVERY_FILE_DEST
Autotune of undo retention is turned on.
Dynamic strands is set to TRUE
Running with 2 shared and 18 private strand(s). Zero-copy redo is FALSE
IMODE=BR
ILAT =18
LICENSE_MAX_USERS = 0
SYS auditing is disabled
Starting up ORACLE RDBMS Version: 10.1.0.2.0.
System parameters with non-default values:
processes = 150
shared_pool_size = 83886080
large_pool_size = 8388608
java_pool_size = 50331648
resource_manager_plan = INTERNAL_QUIESCE
control_files = D:\ORACLE\PRODUCT\10.1.0\ORADATA\ORCL10G\CONTROL01.CTL, D:\ORACLE\PRODUCT\10.1.0\ORADATA\ORCL10G\CONTROL02.CTL, D:\ORACLE\PRODUCT\10.1.0\ORADATA\ORCL10G\CONTROL03.CTL
db_block_size = 8192
db_cache_size = 25165824
compatible = 10.1.0.2.0
db_file_multiblock_read_count= 16
db_recovery_file_dest = D:\oracle\product\10.1.0\flash_recovery_area
db_recovery_file_dest_size= 2147483648
undo_management = AUTO
undo_tablespace = UNDOTBS1
remote_login_passwordfile= EXCLUSIVE
db_domain =
dispatchers = (PROTOCOL=TCP) (SERVICE=orcl10gXDB)
job_queue_processes = 10
background_dump_dest = D:\ORACLE\PRODUCT\10.1.0\ADMIN\ORCL10G\BDUMP
user_dump_dest = D:\ORACLE\PRODUCT\10.1.0\ADMIN\ORCL10G\UDUMP
core_dump_dest = D:\ORACLE\PRODUCT\10.1.0\ADMIN\ORCL10G\CDUMP
sort_area_size = 65536
db_name = orcl10g
open_cursors = 300
pga_aggregate_target = 25165824
PMON started with pid=2, OS id=1840
MMAN started with pid=3, OS id=4044
DBW0 started with pid=4, OS id=2324
LGWR started with pid=5, OS id=3460
CKPT started with pid=6, OS id=720
SMON started with pid=7, OS id=964
RECO started with pid=8, OS id=1780
Sat Apr 26 13:51:24 2008
starting up 1 dispatcher(s) for network address '(ADDRESS=(PARTIAL=YES)(PROTOCOL=TCP))'...
CJQ0 started with pid=9, OS id=232
Sat Apr 26 13:51:24 2008
starting up 1 shared server(s) ...
Sat Apr 26 13:51:25 2008
alter database mount exclusive
Sat Apr 26 13:51:25 2008
Controlfile identified with block size 16384
Sat Apr 26 13:51:29 2008
Setting recovery target incarnation to 2
Sat Apr 26 13:51:29 2008
Successful mount of redo thread 1, with mount id 837414429
Sat Apr 26 13:51:29 2008
Database mounted in Exclusive Mode.
Completed: alter database mount exclusive
Sat Apr 26 13:51:29 2008
alter database open
Sat Apr 26 13:51:29 2008
Beginning crash recovery of 1 threads
attempting to start a parallel recovery with 2 processes
parallel recovery started with 2 processes
Sat Apr 26 13:51:30 2008
Started first pass scan
Sat Apr 26 13:51:30 2008
Completed first pass scan
2 redo blocks read, 3 data blocks need recovery
Sat Apr 26 13:51:30 2008
Started redo application at
Thread 1: logseq 199, block 6043, scn 0.0
Recovery of Online Redo Log: Thread 1 Group 3 Seq 199 Reading mem 0
Mem# 0 errs 0: D:\ORACLE\PRODUCT\10.1.0\ORADATA\ORCL10G\REDO03.LOG
Sat Apr 26 13:51:30 2008
Completed redo application
Sat Apr 26 13:51:30 2008
Completed crash recovery at
Thread 1: logseq 199, block 6045, scn 0.1325285
3 data blocks read, 3 data blocks written, 2 redo blocks read
Sat Apr 26 13:51:31 2008
Thread 1 advanced to log sequence 200
Maximum redo generation record size = 120832 bytes
Maximum redo generation change vector size = 116476 bytes
Private_strands 7 at log switch
Thread 1 opened at log sequence 200
Current log# 1 seq# 200 mem# 0: D:\ORACLE\PRODUCT\10.1.0\ORADATA\ORCL10G\REDO01.LOG
Successful open of redo thread 1
Sat Apr 26 13:51:31 2008
MTTR advisory is disabled because FAST_START_MTTR_TARGET is not set
Sat Apr 26 13:51:31 2008
SMON: enabling cache recovery
Sat Apr 26 13:51:32 2008
Successfully onlined Undo Tablespace 1.
Sat Apr 26 13:51:32 2008
SMON: enabling tx recovery
Sat Apr 26 13:51:32 2008
Database Characterset is WE8MSWIN1252
Sat Apr 26 13:51:32 2008
Published database character set on system events channel
Sat Apr 26 13:51:33 2008
All processes have switched to database character set
Sat Apr 26 13:51:35 2008
Starting background process QMNC
QMNC started with pid=15, OS id=2160
Sat Apr 26 13:51:37 2008
replication_dependency_tracking turned off (no async multimaster replication found)
Sat Apr 26 13:51:38 2008
Starting background process MMON
Starting background process MMNL
MMON started with pid=16, OS id=3952
MMNL started with pid=17, OS id=3960
Sat Apr 26 13:51:39 2008
Completed: alter database open
Sat Apr 26 13:51:43 2008
db_recovery_file_dest_size of 2048 MB is 0.00% used. This is a
user-specified limit on the amount of space that will be used by this
database for recovery-related files, and does not reflect the amount of
space available in the underlying filesystem or ASM diskgroup. -
what is the difference between setting optimizer mode in oracle 10g
optimizer_mode=choose
optimizer_mode=all_rowsuser446367 wrote:
what i have to set for the below parameters . any idea ?
optimizer_index_caching
optimizer_index_cost_adjIn general you would leave them set at the default value in 10g (and probably, in most earlier versions, for most cases as well). Even if you were to change them, asking for specific values on an internet forum is rather asking for trouble, it's not dissimilar to asking "what should I set for the parameter processes?" A reasonable value will be application dependent.
The first parameter reduces the cost of some types of indexed access by assuming that only the specified percentage of index i/o actually results in a physical I/O and therefore only that percentage of the io cost is taken into account. By contrast all tablescan access and the other types of indexed access are assumed to be uncached and therefore need costing.
The second parameter just arbitrarily scales indexed access path costings.
You could argue, and some have, that you could calculate a cache hit ratio for index blocks in much the same way as you can calculate a cache hit ratio generally and then set the first parameter to this value. The standout problems with this approach are
1) It applies to all matching statements and objects not just your problem ones.
2) It doesn't necessarily even apply to your problem statements.
3) It doesn't have anything to do with query duration per se, just efficiency of one particular access path.
4) People tend to choose to round costs down and make the likelihood of two plans getting the same cost and being chosen on a tiebreaker basis higher.
The second parameter just asks you how much you like the idea of indexes generally. If you are going to change it pick a family members age or something - it'll make you smile every time you see it.
Niall Litchfield
http://www.orawin.info/ -
hi,
i m working on an application made in oracle 10g developer, & database is oracle 10g on aix ,
some times i get some problem when user save any data through forms it gets hanged ,
so tell me how to get rid of it , when i try to do it from sql navigator i see massges session is busy .
so y this eror i m getting & how to resolve it.
thxsHere you have some scripts:
rem
rem FUNCTION: Report all DB locks
rem
column osuser format a15 heading 'User'
column session_id heading 'SID'
column mode_held format a20 heading 'Mode|Held'
column mode_requested format a20 heading 'Mode|Requested'
column lock_id1 format a10 heading 'Lock|ID1'
column lock_id2 format a10 heading 'Lock|ID2'
column type heading 'Type|Lock'
set feedback off echo off pages 59 lines 131
start title132 'Report on All Locks'
spool rep_out\&db\locks
select nvl(a.osuser,'SYS') osuser,b.session_id,type,
mode_held,mode_requested,
lock_id1,lock_id2
from sys.v_$session a, sys.dba_locks b
where
a.sid=b.session_id
order by 2
spool off
pause press enter/return to continue
clear columns
set feedback on echo on pages 22 lines 80
set headingsep ='|'
set lines 160
set pagesize 20
ttitle 'Database Locking Conflict Report'
btitle 'Mode Held = indicates the user holding the lock|Mode Request = indicates the user waiting on the later to finish to establish lock||** End of Locking Conflict Report **'
column username format a10 heading 'User'
column terminal format a15 heading 'Application|PC'
column object format a15 heading 'Table'
column sql format a15 heading 'SQL'
column sid format 999 heading 'SID'
column lock_type format a15 heading 'Lock|Type'
column mode_held format a11 heading 'Mode|Held'
column mode_requested format a10 heading 'Mode|Request'
column lock_id1 format a8 heading 'Lock ID1'
column lock_id2 format a8 heading 'Lock ID2'
column first_load_time format a19 heading 'Requested'
break on lock_id1
select a.sid,
username,
terminal,
decode(a.type,'MR', 'Media Recovery',
'RT', 'Redo Thread',
'UN', 'User Name',
'TX', 'Transaction',
'TM', 'DML',
'UL', 'PL/SQL User Lock',
'DX', 'Distributed Xaction',
'CF', 'Control File',
'IS', 'Instance State',
'FS', 'File Set',
'IR', 'Instance Recovery',
'ST', 'Disk Space Transaction',
'IR', 'Instance Recovery',
'ST', 'Disk Space Transaction',
'TS', 'Temp Segment',
'IV', 'Library Cache Invalidation',
'LS', 'Log Start or Switch',
'RW', 'Row Wait',
'SQ', 'Sequence Number',
'TE', 'Extend Table',
'TT', 'Temp Table', a.type) lock_type,
decode(a.lmode,0, 'None', /* Mon Lock equivalent */
1, 'Null', /* N */
2, 'Row-S (SS)', /* L */
3, 'Row-X (SX)', /* R */
4, 'Share', /* S */
5, 'S/Row-X (SSX)', /* C */
6, 'Exclusive', /* X */
to_char(a.lmode)) mode_held,
decode(a.request,
0, 'None', /* Mon Lock equivalent */
1, 'Null', /* N */
2, 'Row-S (SS)', /* L */
3, 'Row-X (SX)', /* R */
4, 'Share', /* S */
5, 'S/Row-X (SSX)', /* C */
6, 'Exclusive', /* X */
to_char(a.request)) mode_requested,
to_char(a.id1) lock_id1, to_char(a.id2) lock_id2,
c.object object,
d.sql_text sql,
e.first_load_time
from v$lock a, v$session, v$access c, v$sqltext d, v$sqlarea e
where (id1,id2) in
(select b.id1, b.id2 from v$lock b where b.id1=a.id1 and
b.id2=a.id2 and b.request>0) and
a.sid = v$session.sid and
a.sid = c.sid and
d.address = v$session.sql_address and
d.hash_value = v$session.sql_hash_value and
d.address = e.address
order by a.id1, a.lmode desc
set headingsep ='|'
set lines 160
set pagesize 20
ttitle 'Database Locking Conflict Report'
btitle 'Mode Held = indicates the user holding the lock|Mode Request = indicates the user waiting on the later to finish to establish lock||** End of Locking Conflict Report **'
column username format a10 heading 'User'
column terminal format a15 heading 'Application|PC'
column object format a15 heading 'Table'
column sql format a15 heading 'SQL'
column sid format 999 heading 'SID'
column lock_type format a15 heading 'Lock|Type'
column mode_held format a11 heading 'Mode|Held'
column mode_requested format a10 heading 'Mode|Request'
column lock_id1 format a8 heading 'Lock ID1'
column lock_id2 format a8 heading 'Lock ID2'
column first_load_time format a19 heading 'Requested'
break on lock_id1
select a.sid,
username,
terminal,
decode(a.type,'MR', 'Media Recovery',
'RT', 'Redo Thread',
'UN', 'User Name',
'TX', 'Transaction',
'TM', 'DML',
'UL', 'PL/SQL User Lock',
'DX', 'Distributed Xaction',
'CF', 'Control File',
'IS', 'Instance State',
'FS', 'File Set',
'IR', 'Instance Recovery',
'ST', 'Disk Space Transaction',
'IR', 'Instance Recovery',
'ST', 'Disk Space Transaction',
'TS', 'Temp Segment',
'IV', 'Library Cache Invalidation',
'LS', 'Log Start or Switch',
'RW', 'Row Wait',
'SQ', 'Sequence Number',
'TE', 'Extend Table',
'TT', 'Temp Table', a.type) lock_type,
decode(a.lmode,0, 'None', /* Mon Lock equivalent */
1, 'Null', /* N */
2, 'Row-S (SS)', /* L */
3, 'Row-X (SX)', /* R */
4, 'Share', /* S */
5, 'S/Row-X (SSX)', /* C */
6, 'Exclusive', /* X */
to_char(a.lmode)) mode_held,
decode(a.request,
0, 'None', /* Mon Lock equivalent */
1, 'Null', /* N */
2, 'Row-S (SS)', /* L */
3, 'Row-X (SX)', /* R */
4, 'Share', /* S */
5, 'S/Row-X (SSX)', /* C */
6, 'Exclusive', /* X */
to_char(a.request)) mode_requested,
to_char(a.id1) lock_id1, to_char(a.id2) lock_id2,
c.object object,
d.sql_text sql,
e.first_load_time
from v$lock a, v$session, v$access c, v$sqltext d, v$sqlarea e
where (id1,id2) in
(select b.id1, b.id2 from v$lock b where b.id1=a.id1 and
b.id2=a.id2 and b.request>0) and
a.sid = v$session.sid and
a.sid = c.sid and
d.address = v$session.sql_address and
d.hash_value = v$session.sql_hash_value and
d.address = e.address
order by a.id1, a.lmode descCheers,
Francisco Munoz Alvarez
http://www.oraclenz.com
Maybe you are looking for
-
How to re-download Ps and Lr after hard drive is replaced
I have license for CC on two computers. Had it installed on my PC and Mac. Hard drive for the Mac was replaced. How do I re-download my products?
-
How do I sync my iphone to a new laptop without losing my information?
Hi, I have an older macbook pro that I have been syncing my iphone, and three ipods to for a long time. I have a new macbook pro and want to use it for the sync instead. How do I do that without it erasing my devices? Thanks for your help.
-
On my XP computer the "import" option screen shows both IE and Netscape/Mozilla as choices; on this Windows 7 machine the only option is IE. Re-start doesn't help, and the installation of Firefox went smoothly.
-
Hi All, I have installed NWDS 2004 in my system. I have 2 folders in my system ,one is JDK 1.5.0.09 version and one more is J2re 1.4.0.13 . What is the difference b/w these two ,I mean JDK and J2re(runtime environment). If I build a DC ,it is giving
-
Changing page .htm to .cfm / search engine indexes?
I have a central page on a site that has been up as domain/page.htm for more than 10 years. It is listed multiple times on popular search engines, and I am sure it's bookmarked by its users. The page is already on a CF site, and I would like to add t