session_cached_cursor
Hello
I use the suite of applications (from the oracle documentation) to check session_cached_cursors.
I need to increase session_cached_cursors? Know if it would be part of the SGA and PGA? It must be that the amount of memory in this case increases to place cursors? Work on 11 GR 2.
If it is independent of multiple sessions created for the same user?
Percent found in the cache is too high, I don't know why...
Please provide suggestions.
A.value SELECT curr_cached, p.value max_cached, s.username, s.sid, s.serial # FROM v$ sesstat a, v$ statname b, v$ session s, v$ parameter p 2
WHERE a.statistic # b.statistic = #, s.sid = a.sid and a.sid = and sid AND p.name = 'session_cached_cursors'
AND b.name = 'session cursor cache count ';
curr_cached max_cached username sid, serial #.
299 300 211 28771 PMS
SELECT cach.value cache_hits, prs.value all_parses,
Round ((cach. Value / PRS.value) * 100, 2) "% found in the cache.
V $ sesstat cach, v$ sesstat prs, v$ statname nm1, v$ statname nm2
WHERE cach.statistic # = nm1.statistic #.
AND nm1.name = 'session cursor cache hits ".
AND prs.statistic #= nm2.statistic #.
AND nm2.name = 'analysis count (total)'
AND cach.sid cach.sid = & sid and prs.sid =;
cache_hits all_parses % found in the cache
36012 683 5272.62
Hi Don,
> My cursors opened for the session are about 330.
So if you want to keep more than 330 cursors open, you need to increase and open_cursors session_cached_cursors. However, if you ever notice the cursor manipulation depends on your application and you should not focus on ratios, but rather on the response time which is devoted to the analysis of soft (latch, lock, etc.).
> I just activated automatic memory and configure the settings memory_max_target and memory_target. I can't ignore sga, pga components now?
How should we know? If you set big enough memory_target and Oracle does its job of automatic memory management right-, then Yes.
> cursor_sharing is set to EXACT, what I need to change that to FORCE to get the slider adjustment... sharing?
First of all, to answer the question: is your application using the cursor cache in the case of PL/SQL cursor or cursor in the session. Then, you must answer the question, if ACS applies in your case. However you should also consult the documentation to get the idea behind ACS as mentioned parameter has nothing (directly) to do with the ACS. It is no longer relevant in the case of literals, but if set you it in the context to your question session_cached_cursors you probably rather a problem of implementation of request a matter of setting of database.
Concerning
Stefan
Tags: Database
Similar Questions
-
Hi Experts,
I am new to Oracle. Ask for your help to fix the performance of a query of insertion problem.
I have an insert query that is go search for records of the partitioned table.
Background: the user indicates that the query was running in 30 minutes to 10 G. The database is upgraded to 12 by one of my colleague. Now the query works continuously for hours, but no result. Check the settings and SGA is 9 GB, Windows - 4 GB. DB block size is 8192, DB Multiblock read file Count is 128. Overall target of PGA is 2457M.
The parameters are given below
VALUE OF TYPE NAME
------------------------------------ ----------- ----------
DBFIPS_140 boolean FALSE
O7_DICTIONARY_ACCESSIBILITY boolean FALSE
whole active_instance_count
aq_tm_processes integer 1
ARCHIVE_LAG_TARGET integer 0
asm_diskgroups chain
asm_diskstring chain
asm_power_limit integer 1
asm_preferred_read_failure_groups string
audit_file_dest string C:\APP\ADM
audit_sys_operations Boolean TRUEAUDIT_TRAIL DB string
awr_snapshot_time_offset integer 0
background_core_dump partial string
background_dump_dest string C:\APP\PRO
\RDBMS\TRA
BACKUP_TAPE_IO_SLAVES boolean FALSE
bitmap_merge_area_size integer 1048576
blank_trimming boolean FALSE
buffer_pool_keep string
buffer_pool_recycle string
cell_offload_compaction ADAPTIVE channel
cell_offload_decryption Boolean TRUE
cell_offload_parameters string
cell_offload_plan_display string AUTO
cell_offload_processing Boolean TRUE
cell_offloadgroup_name string
whole circuits
whole big client_result_cache_lag 3000
client_result_cache_size big integer 0
clonedb boolean FALSE
cluster_database boolean FALSE
cluster_database_instances integer 1
cluster_interconnects chain
commit_logging string
commit_point_strength integer 1
commit_wait string
string commit_write
common_user_prefix string C#.
compatible string 12.1.0.2.0
connection_brokers string ((TYPE = DED
((TYPE = EM
control_file_record_keep_time integer 7
control_files string G:\ORACLE\TROL01. CTL
FAST_RECOV
NTROL02. CT
control_management_pack_access string diagnostic
core_dump_dest string C:\app\dia
bal12\cdum
cpu_count integer 4
create_bitmap_area_size integer 8388608
create_stored_outlines string
cursor_bind_capture_destination memory of the string + tell
CURSOR_SHARING EXACT stringcursor_space_for_time boolean FALSE
db_16k_cache_size big integer 0
db_2k_cache_size big integer 0
db_32k_cache_size big integer 0
db_4k_cache_size big integer 0
db_8k_cache_size big integer 0
db_big_table_cache_percent_target string 0
db_block_buffers integer 0
db_block_checking FALSE string
db_block_checksum string TYPICAL
Whole DB_BLOCK_SIZE 8192db_cache_advice string WE
db_cache_size large integer 0
db_create_file_dest chain
db_create_online_log_dest_1 string
db_create_online_log_dest_2 string
db_create_online_log_dest_3 string
db_create_online_log_dest_4 string
db_create_online_log_dest_5 string
db_domain chain
db_file_multiblock_read_count integer 128
db_file_name_convert chainDB_FILES integer 200
db_flash_cache_file string
db_flash_cache_size big integer 0
db_flashback_retention_target around 1440
chain of db_index_compression_inheritance NONE
DB_KEEP_CACHE_SIZE big integer 0
chain of db_lost_write_protect NONE
db_name string ORCL
db_performance_profile string
db_recovery_file_dest string G:\Oracle\
y_Area
whole large db_recovery_file_dest_size 12840M
db_recycle_cache_size large integer 0
db_securefile string PREFERRED
channel db_ultra_safe
db_unique_name string ORCL
db_unrecoverable_scn_tracking Boolean TRUE
db_writer_processes integer 1
dbwr_io_slaves integer 0
DDL_LOCK_TIMEOUT integer 0
deferred_segment_creation Boolean TRUE
dg_broker_config_file1 string C:\APP\PRO
\DATABASE\
dg_broker_config_file2 string C:\APP\PRO
\DATABASE\
dg_broker_start boolean FALSE
diagnostic_dest channel directory
disk_asynch_io Boolean TRUE
dispatchers (PROTOCOL = string
12XDB)
distributed_lock_timeout integer 60
dml_locks whole 2076
whole dnfs_batch_size 4096dst_upgrade_insert_conv Boolean TRUE
enable_ddl_logging boolean FALSE
enable_goldengate_replication boolean FALSE
enable_pluggable_database boolean FALSE
event string
exclude_seed_cdb_view Boolean TRUE
fal_client chain
fal_server chain
FAST_START_IO_TARGET integer 0
fast_start_mttr_target integer 0
fast_start_parallel_rollback string LOW
file_mapping boolean FALSE
fileio_network_adapters string
filesystemio_options chain
fixed_date chain
gcs_server_processes integer 0
global_context_pool_size string
global_names boolean FALSE
global_txn_processes integer 1
hash_area_size integer 131072
channel heat_map
hi_shared_memory_address integer 0hs_autoregister Boolean TRUE
iFile file
inmemory_clause_default string
inmemory_force string by DEFAULT
inmemory_max_populate_servers integer 0
inmemory_query string ENABLE
inmemory_size big integer 0
inmemory_trickle_repopulate_servers_ integer 1
percent
instance_groups string
instance_name string ORCL
instance_number integer 0
instance_type string RDBMS
instant_restore boolean FALSE
java_jit_enabled Boolean TRUE
java_max_sessionspace_size integer 0
JAVA_POOL_SIZE large integer 0
java_restrict string no
java_soft_sessionspace_limit integer 0
JOB_QUEUE_PROCESSES around 1000
LARGE_POOL_SIZE large integer 0
ldap_directory_access string NONE
ldap_directory_sysauth string no.
license_max_sessions integer 0
license_max_users integer 0
license_sessions_warning integer 0
listener_networks string
LOCAL_LISTENER (ADDRESS = string
= i184borac
(NET) (PORT =
lock_name_space string
lock_sga boolean FALSE
log_archive_config string
Log_archive_dest chain
Log_archive_dest_1 chain
LOG_ARCHIVE_DEST_10 string
log_archive_dest_11 string
log_archive_dest_12 string
log_archive_dest_13 string
log_archive_dest_14 string
log_archive_dest_15 string
log_archive_dest_16 string
log_archive_dest_17 string
log_archive_dest_18 string
log_archive_dest_19 string
LOG_ARCHIVE_DEST_2 string
log_archive_dest_20 string
log_archive_dest_21 string
log_archive_dest_22 string
log_archive_dest_23 string
log_archive_dest_24 string
log_archive_dest_25 string
log_archive_dest_26 string
log_archive_dest_27 string
log_archive_dest_28 string
log_archive_dest_29 string
log_archive_dest_3 string
log_archive_dest_30 string
log_archive_dest_31 string
log_archive_dest_4 string
log_archive_dest_5 string
log_archive_dest_6 string
log_archive_dest_7 string
log_archive_dest_8 string
log_archive_dest_9 string
allow the chain of log_archive_dest_state_1
allow the chain of log_archive_dest_state_10
allow the chain of log_archive_dest_state_11
allow the chain of log_archive_dest_state_12
allow the chain of log_archive_dest_state_13
allow the chain of log_archive_dest_state_14
allow the chain of log_archive_dest_state_15
allow the chain of log_archive_dest_state_16
allow the chain of log_archive_dest_state_17
allow the chain of log_archive_dest_state_18
allow the chain of log_archive_dest_state_19
allow the chain of LOG_ARCHIVE_DEST_STATE_2allow the chain of log_archive_dest_state_20
allow the chain of log_archive_dest_state_21
allow the chain of log_archive_dest_state_22
allow the chain of log_archive_dest_state_23
allow the chain of log_archive_dest_state_24
allow the chain of log_archive_dest_state_25
allow the chain of log_archive_dest_state_26
allow the chain of log_archive_dest_state_27
allow the chain of log_archive_dest_state_28
allow the chain of log_archive_dest_state_29
allow the chain of log_archive_dest_state_3allow the chain of log_archive_dest_state_30
allow the chain of log_archive_dest_state_31
allow the chain of log_archive_dest_state_4
allow the chain of log_archive_dest_state_5
allow the chain of log_archive_dest_state_6
allow the chain of log_archive_dest_state_7
allow the chain of log_archive_dest_state_8
allow the chain of log_archive_dest_state_9
log_archive_duplex_dest string
log_archive_format string ARC%S_%R.%
log_archive_max_processes integer 4log_archive_min_succeed_dest integer 1
log_archive_start Boolean TRUE
log_archive_trace integer 0
whole very large log_buffer 28784K
log_checkpoint_interval integer 0
log_checkpoint_timeout around 1800
log_checkpoints_to_alert boolean FALSE
log_file_name_convert chain
whole MAX_DISPATCHERS
max_dump_file_size unlimited string
max_enabled_roles integer 150
whole max_shared_servers
max_string_size string STANDARD
memory_max_target big integer 0
memory_target large integer 0
NLS_CALENDAR string GREGORIAN
nls_comp BINARY string
nls_currency channel u
string of NLS_DATE_FORMAT DD-MON-RR
nls_date_language channel ENGLISH
string nls_dual_currency C
nls_iso_currency string UNITED KINnls_language channel ENGLISH
nls_length_semantics string OCTET
string nls_nchar_conv_excp FALSE
nls_numeric_characters chain.,.
nls_sort BINARY string
nls_territory string UNITED KIN
nls_time_format HH24.MI string. SS
nls_time_tz_format HH24.MI string. SS
chain of NLS_TIMESTAMP_FORMAT DD-MON-RR
NLS_TIMESTAMP_TZ_FORMAT string DD-MON-RR
noncdb_compatible boolean FALSE
object_cache_max_size_percent integer 10
object_cache_optimal_size integer 102400
olap_page_pool_size big integer 0
open_cursors integer 300
Open_links integer 4
open_links_per_instance integer 4
optimizer_adaptive_features Boolean TRUE
optimizer_adaptive_reporting_only boolean FALSE
OPTIMIZER_CAPTURE_SQL_PLAN_BASELINES boolean FALSE
optimizer_dynamic_sampling integer 2
optimizer_features_enable string 12.1.0.2optimizer_index_caching integer 0
OPTIMIZER_INDEX_COST_ADJ integer 100
optimizer_inmemory_aware Boolean TRUE
the string ALL_ROWS optimizer_mode
optimizer_secure_view_merging Boolean TRUE
optimizer_use_invisible_indexes boolean FALSE
optimizer_use_pending_statistics boolean FALSE
optimizer_use_sql_plan_baselines Boolean TRUE
OPS os_authent_prefix string $
OS_ROLES boolean FALSE
parallel_adaptive_multi_user Boolean TRUE
parallel_automatic_tuning boolean FALSE
parallel_degree_level integer 100
parallel_degree_limit string CPU
parallel_degree_policy chain MANUAL
parallel_execution_message_size integer 16384
parallel_force_local boolean FALSE
parallel_instance_group string
parallel_io_cap_enabled boolean FALSE
PARALLEL_MAX_SERVERS integer 160
parallel_min_percent integer 0
parallel_min_servers integer 16parallel_min_time_threshold string AUTO
parallel_server boolean FALSE
parallel_server_instances integer 1
parallel_servers_target integer 64
parallel_threads_per_cpu integer 2
pdb_file_name_convert string
pdb_lockdown string
pdb_os_credential string
permit_92_wrap_format Boolean TRUE
pga_aggregate_limit great whole 4914M
whole large pga_aggregate_target 2457M-
Plscope_settings string IDENTIFIER
plsql_ccflags string
plsql_code_type chain INTERPRETER
plsql_debug boolean FALSE
plsql_optimize_level integer 2
plsql_v2_compatibility boolean FALSE
plsql_warnings DISABLE channel: AL
PRE_PAGE_SGA Boolean TRUE
whole process 300
processor_group_name string
query_rewrite_enabled string TRUE
applied query_rewrite_integrity chain
rdbms_server_dn chain
read_only_open_delayed boolean FALSE
recovery_parallelism integer 0
Recyclebin string on
redo_transport_user string
remote_dependencies_mode string TIMESTAMP
remote_listener chain
Remote_login_passwordfile string EXCLUSIVE
REMOTE_OS_AUTHENT boolean FALSE
remote_os_roles boolean FALSEreplication_dependency_tracking Boolean TRUE
resource_limit Boolean TRUE
resource_manager_cpu_allocation integer 4
resource_manager_plan chain
result_cache_max_result integer 5
whole big result_cache_max_size K 46208
result_cache_mode chain MANUAL
result_cache_remote_expiration integer 0
resumable_timeout integer 0
rollback_segments chain
SEC_CASE_SENSITIVE_LOGON Boolean TRUEsec_max_failed_login_attempts integer 3
string sec_protocol_error_further_action (DROP, 3)
sec_protocol_error_trace_action string PATH
sec_return_server_release_banner boolean FALSE
disable the serial_reuse chain
service name string ORCL
session_cached_cursors integer 50
session_max_open_files integer 10
entire sessions 472
Whole large SGA_MAX_SIZE M 9024
Whole large SGA_TARGET M 9024
shadow_core_dump string no
shared_memory_address integer 0
SHARED_POOL_RESERVED_SIZE large integer 70464307
shared_pool_size large integer 0
whole shared_server_sessions
SHARED_SERVERS integer 1
skip_unusable_indexes Boolean TRUE
smtp_out_server chain
sort_area_retained_size integer 0
sort_area_size integer 65536
spatial_vector_acceleration boolean FALSE
SPFile string C:\APP\PRO
\DATABASE\
sql92_security boolean FALSE
SQL_Trace boolean FALSE
sqltune_category string by DEFAULT
standby_archive_dest channel % ORACLE_HO
standby_file_management string MANUAL
star_transformation_enabled string TRUE
statistics_level string TYPICAL
STREAMS_POOL_SIZE big integer 0
tape_asynch_io Boolean TRUEtemp_undo_enabled boolean FALSE
entire thread 0
threaded_execution boolean FALSE
timed_os_statistics integer 0
TIMED_STATISTICS Boolean TRUE
trace_enabled Boolean TRUE
tracefile_identifier chain
whole of transactions 519
transactions_per_rollback_segment integer 5
UNDO_MANAGEMENT string AUTO
UNDO_RETENTION integer 900undo_tablespace string UNDOTBS1
unified_audit_sga_queue_size integer 1048576
use_dedicated_broker boolean FALSE
use_indirect_data_buffers boolean FALSE
use_large_pages string TRUE
user_dump_dest string C:\APP\PRO
\RDBMS\TRA
UTL_FILE_DIR chain
workarea_size_policy string AUTO
xml_db_events string enableThanks in advance
Firstly, thank you for posting the 10g implementation plan, which was one of the key things that we were missing.
Second, you realize that you have completely different execution plans, so you can expect different behavior on each system.
Your package of 10g has a total cost of 23 959 while your plan of 12 c has a cost of 95 373 which is almost 4 times more. All things being equal, cost is supposed to relate directly to the time spent, so I expect the 12 c plan to take much more time to run.
From what I can see the 10g plan begins with a scan of full table on DEALERS, and then a full scan on SCARF_VEHICLE_EXCLUSIONS table, and then a full scan on CBX_tlemsani_2000tje table, and then a full scan on CLAIM_FACTS table. The first three of these analyses tables have a very low cost (2 each), while the last has a huge cost of 172K. Yet once again, the first three scans produce very few lines in 10g, less than 1,000 lines each, while the last product table scan 454 K lines.
It also looks that something has gone wrong in the 10g optimizer plan - maybe a bug, which I consider that Jonathan Lewis commented. Despite the full table scan with a cost of 172 K, NESTED LOOPS it is part of the only has a cost of 23 949 or 24 K. If the math is not in terms of 10g. In other words, maybe it's not really optimal plan because 10g optimizer may have got its sums wrong and 12 c might make his right to the money. But luckily this 'imperfect' 10g plan happens to run fairly fast for one reason or another.
The plan of 12 starts with similar table scans but in a different order. The main difference is that instead of a full table on CLAIM_FACTS scan, it did an analysis of index on CLAIM_FACTS_AK9 beach at the price of 95 366. It is the only main component of the final total cost of 95 373.
Suggestions for what to do? It is difficult, because there is clearly an anomaly in the system of 10g to have produced the particular execution plan that he uses. And there is other information that you have not provided - see later.
You can try and force a scan of full table on CLAIM_FACTS by adding a suitable example suspicion "select / * + full (CF) * / cf.vehicle_chass_no...". "However, the tips are very difficult to use and does not, guarantee that you will get the desired end result. So be careful. For the essay on 12 c, it may be worth trying just to see what happens and what produces the execution plan looks like. But I would not use such a simple, unique tip in a production system for a variety of reasons. For testing only it might help to see if you can force the full table on CLAIM_FACTS scan as in 10g, and if the performance that results is the same.
The two plans are parallel ones, which means that the query is broken down into separate, independent steps and several steps that are executed at the same time, i.e. several CPUS will be used, and there will be several readings of the disc at the same time. (It is a mischaracterization of the works of parallel query how). If 10g and 12 c systems do not have the SAME hardware configuration, then you would naturally expect different time elapsed to run the same parallel queries. See the end of this answer for the additional information that you may provide.
But I would be very suspicious of the hardware configuration of the two systems. Maybe 10 g system has 16-core processors or more and 100's of discs in a matrix of big drives and maybe the 12 c system has only 4 cores of the processor and 4 disks. That would explain a lot about why the 12 c takes hours to run when the 10 g takes only 30 minutes.
Remember what I said in my last reply:
"Without any contrary information I guess the filter conditions are very low, the optimizer believes he needs of most of the data in the table and that a table scan or even a limited index scan complete is the"best"way to run this SQL. In other words, your query takes just time because your tables are big and your application has most of the data in these tables. "
When dealing with very large tables and to do a full table parallel analysis on them, the most important factor is the amount of raw hardware, you throw the ball to her. A system with twice the number of CPUS and twice the number of disks will run the same parallel query in half of the time, at least. It could be that the main reason for the 12 c system is much slower than the system of 10g, rather than on the implementation plan itself.
You may also provide us with the following information which would allow a better analysis:
- Row counts in each tables referenced in the query, and if one of them are partitioned.
- Hardware configurations for both systems - the 10g and the 12 a. Number of processors, the model number and speed, physical memory, CPU of discs.
- The discs are very important - 10g and 12 c have similar disk subsystems? You use simple old records, or you have a San, or some sort of disk array? Are the bays of identical drives in both systems? How are they connected? Fast Fibre Channel, or something else? Maybe even network storage?
- What is the size of the SGA in both systems? of values for MEMORY_TARGET and SGA_TARGET.
- The fact of the CLAIM_FACTS_AK9 index exist on the system of 10g. I guess he does, but I would like that it confirmed to be safe.
John Brady
-
Name for the DB file conversion
Dear friends
Here is my init .ora file
I have an application working on a database called PRDSPRT, I cloned this server of database on a new server to install a custodian of data on this subject the db_name should be the same as his need for the application
How can I install the DBfile _ name convert?
& the log_file convert its pointing to the same path now
* ._b_tree_bitmap_plans = FALSE # required 11i setting
* ._fast_full_scan_enabled = FALSE
* ._like_with_bind_as_equality = TRUE
* ._sort_elimination_cost_ratio = 5
* ._sqlexec_progression_cost = 2147483647
* ._system_trig_enabled = true
* ._trace_files_public = TRUE
* .aq_tm_processes = 1
*.background_dump_dest='/oracle/dev2/d01/db/tech_st/10.2.0/admin/PRDSPRT_srv-hq-on01/bdump'
* full = '10.2.0'
*.control_files='/oracle/dev2/d01/db/apps_st/data/cntrl01.dbf','/oracle/dev2/d01/db/apps_st/data/cntrl02.dbf','/oracle/dev2/d01/db/apps_st/data/cntrl03.dbf'
*.core_dump_dest='/oracle/dev2/d01/db/tech_st/10.2.0/admin/PRDSPRT_srv-hq-on01/cdump'
* .cursor_sharing = "TRUE" # required 11i settting
* .db_block_checking = "FALSE".
* .db_block_checksum = 'TRUE '.
* .db_block_size = 8192
* .db_file_multiblock_read_count = # required 8 put 11i
* .db_files = 512 # Max database files lol
* .db_name = "PRDSPRT".
* .db_unique_name = "PROD".
* .dml_locks = 10000
* .job_queue_processes = 50
* .event = "10298 trace name forever, context level 32.
*. LOG_ARCHIVE_DEST_1 = ' LOCATION = / oracle/dev2/d01/db/archive.
*. LOG_ARCHIVE_FORMAT='%t_%s_%r.dbf'
* .log_buffer = 10485760
* .log_checkpoint_interval = 100000
* .log_checkpoint_timeout = 1200 # control point at least every 20 minutes.
* .log_checkpoints_to_alert = TRUE
* .max_dump_file_size = size of the trace file '20480' #.
* .nls_comp = "binary" 11i parameter # required
* .nls_date_format = "DD-MON-RR.
* .nls_language = "to the American.
* .nls_length_semantics = "BYTE" # required put 11i
* .nls_numeric_characters ='.,'
* .nls_sort = "binary" 11i parameter # required
* .nls_territory = "america."
* .olap_page_pool_size = 4194304
* .open_cursors = process memory consumes 600 #, unless you use MTS.
* .optimizer_secure_view_merging = false
* .parallel_max_servers = 20
* .parallel_min_servers = 0
* .pga_aggregate_target = 1 G
* .plsql_code_type 'INTERPRETED' = # 11i preset
*.plsql_native_library_dir='/oracle/dev2/d01/db/tech_st/10.2.0/plsql/nativelib'
* .plsql_native_library_subdir_count = 149
* .plsql_optimize_level = 2 # required put 11i
* runoff = # 500 max. lol x 2 users
* .session_cached_cursors = 500
* Once = process X 400 # 2
* .sga_target = 2G
* .shared_pool_reserved_size = 500 M
* .shared_pool_size = 1 G
* .timed_statistics = true
* .undo_management = "AUTO" # required put 11i
* .undo_tablespace = "APPS_UNDOTS1" # required put 11i
*.user_dump_dest='/oracle/dev2/d01/db/tech_st/10.2.0/admin/PRDSPRT_srv-hq-on01/udump'
*.utl_file_dir='/usr/tmp','/usr/tmp','/patch/ora_tmp/PROD','/Oracle/DEV2/D01/DB/tech_st/10.2.0/appsutil/outbound/PRDSPRT_srv-HQ-on01','/usr/tmp '
* .workarea_size_policy = "AUTO" # required put 11i
* .remote_login_passwordfile = "EXCLUSIVE."
#standbydbsetup
DB_UNIQUE_NAME = PROD
SERVICE_NAME = PROD
#Physical db ensures
log_archive_config = "DG_CONFIG = (PROD, TEST)"
log_archive_dest1 = "LOCATION = / oracle/dev2/d01/db/archive /"
VALID_FOR = (ALL_LOGFILES, ALL_ROLES)
DB_UNIQUE_NAME = PROD'
log_archive_dest2 = "SERVICE = TEST LGWR ASYNC
VALID_FOR = (ONLINE_LOGFILES, PRIMARY_ROLE)
DB_UNIQUE_NAME = TEST'
log_archive_dest_state_1 = enable
LOG_ARCHIVE_DEST_STATE_2 = enable
log_archive_max_processes = 15
#failover settings
* .fal_Server = TEST
* .fal_client = PROD
db_file_name_convert = ('/ oracle/dev2/d01/db/Archives / ',' / oracle/dev2/d01/db/Archives /',)
Oracle/dev2/d01/db/apps_st/data / ',' / oracle/dev2/d01/db/apps_st/data / ")"
log_file_name_convert =('/Oracle/DEV2/D01/DB/Archive/','/Oracle/DEV2/D01/DB/Archive/')
standby_file _managemnt = auto
Hello
If the new server or secondary server has the same directory as the primary structure or old, so you don't have to worry about these settings.
(Edit)
You can read about the settings in the following link:
https://docs.Oracle.com/CD/E11882_01/server.112/e41134/create_ps.htm#i76119
Concerning
Juan M
-
The adaptation and Pl/SQL cursor sharing
Hello
I have this database:
NLSRTL 11.2.0.1.0 Production Oracle Database 11g Enterprise Edition 11.2.0.1.0 64 bit Production PL/SQL 11.2.0.1.0 Production AMT for Solaris: 11.2.0.1.0 Production I'm testing the queries and adaptive cursor sharing. I have a table T1 that is created by selecting all object. It has additional is NOT NULL ID of the column that is PK and is filled through sequence. It has a regular index (OBJECT_TYPE, OBJECT_NAME). Statistics are collected on the T1 table and its indexes.
Total of T1 lines and are 1065951.
I have run this test in SqlPlus:
ID of the VARIABLE NUMBER;
EXECUTE: id: = 10;
SELECT COUNT (*) FROM t1 WHERE id <: id;
So I check the instruction in v$ sql and the execution plan and I can see that the plan is:
SQL_ID, 3m2qaytqgk9jt, number of children 0
-------------------------------------
Select COUNT (*) from t1 where id <: id
Hash value of plan: 212448250
---------------------------------------------------------------------------
| ID | Operation | Name | Lines | Bytes | Cost (% CPU). Time |
---------------------------------------------------------------------------
| 0 | SELECT STATEMENT | | | | 193 (100) | |
| 1. GLOBAL TRI | | 1. 6. | |
|* 2 | INDEX RANGE SCAN | PK_T1 | 99999. 585K | 193 (1) | 00:00:03 |
---------------------------------------------------------------------------
Information of predicates (identified by the operation identity card):
---------------------------------------------------
2 - access("ID"<:ID))
Second test:
ID of the VARIABLE NUMBER;
EXECUTE: id: = 1000000.
SELECT COUNT (*) FROM t1 WHERE id <: id;
Execution plan:
SQL_ID, 3m2qaytqgk9jt, number of children 1
-------------------------------------
Select COUNT (*) from t1 where id <: id
Hash value of plan: 1953966236
-------------------------------------------------------------------------------
| ID | Operation | Name | Lines | Bytes | Cost (% CPU). Time |
-------------------------------------------------------------------------------
| 0 | SELECT STATEMENT | | | | 559 (100) | |
| 1. GLOBAL TRI | | 1. 6. | |
|* 2 | FULL RESTRICTED INDEX SCAN FAST | PK_T1 | 1000K | 5859K | 559 (2) | 00:00:07 |
-------------------------------------------------------------------------------
Information of predicates (identified by the operation identity card):
---------------------------------------------------
2 - filter("ID"<:ID))
Output:
SQL > SELECT sql_id, child_number, executions, 'IS_BIND_SENSITIVE', 'IS_BIND_AWARE', 'IS_SHAREABLE' OF V$ SQL WHERE SQL_ID = "3m2qaytqgk9jt";
THE EXECUTIONS OF CHILD_NUMBER SQL_ID I I I
------------- ------------ ---------- - - -
3m2qaytqgk9jt 0 2 O N N
1 3 3m2qaytqgk9jt Y Y Y
As we can see it Adaptive cursor sharing has been used and in both cases the appropriate execution plan has been used.
When I run test with PL/SQL block, however, I don't see the use of extended cursor sharing. Could you please help understand why?
The test is (I used deliberately < = in order to create the new parent cursor):
DECLARE
PID NUMBER;
CNT PLS_INTEGER;
BEGIN
BECAUSE me in 1... 10 LOOP
IF i IN (2, 4, 6, 10) THEN
PID: = round (dbms_random.value (1, 5000));
ON THE OTHER
PID: = round ((100000, 1600000) dbms_random.value);
END IF;
dbms_output.put_line ('ID: ' | pid);
COUNT (*) of SELECT INTO cnt FROM t1 WHERE id < = pid;
END LOOP;
END;
/
Output of this is:
ID: 396582
ID: 2584
ID: 560405
ID: 3275
ID: 827442
ID: 4515
ID: 167771
ID: 652411
ID: 512147
ID: 230
As we can see some ID values are good candidates for INDEX BEACH, others are for the INDEX FAST FULL SCAN. However, I am only a child cursor for my parents:
SQL > SELECT sql_id, child_number, executions, 'IS_BIND_SENSITIVE', 'IS_BIND_AWARE', 'IS_SHAREABLE' OF V$ SQL WHERE SQL_ID = "6xh03mm87nmu3";
THE EXECUTIONS OF CHILD_NUMBER SQL_ID I I I
------------- ------------ ---------- - - -
0 10 6xh03mm87nmu3 Y N Y
SQL >
Please pay attention to the value for IS_BIND_AWARE, who is with my first child 0. So no other children were created. Why in PL/SQL, it behaves differently and how can we enjoy the cursor of adaptation in this context?
Thank you!
My immediate thoughts were under cover PLSQL optimizations.
PLSQL_OPTIMIZE_LEVEL has no effect.
To run I had to Board BIND_AWARE and SESSION_CACHED_CURSORS value 0.
Subsequently found Randolf Geist post in the same direction:
-
Hello
DB version: 11.1.2.3.0
OS: OEL5
I'm trying to follow the link below, to find changes in the DB settings.
Kerry Osborne Oracle Blog"Blog Archive" followed changes to parameter - Oracle Kerry Osborne Blog
But I'm not able to receive the output after you change the setting a DB - session_cached_cursors.
SQL:
SELECT instance_number instance, snap_id, TIME, parameter_name, old_value, new_value FROM (SELECT a.snap_id, TO_CHAR(end_interval_time,'DD-MON-YY HH24:MI') TIME, a.instance_number, parameter_name, value new_value, lag(parameter_name,1) over (partition BY parameter_name, a.instance_number order by a.snap_id) old_pname, lag(value,1) over (partition BY parameter_name, a.instance_number order by a.snap_id) old_value FROM dba_hist_parameter a, dba_Hist_snapshot b , v$instance v WHERE a.snap_id =b.snap_id AND a.instance_number=b.instance_number AND parameter_name LIKE NVL('session_cached_cursors',parameter_name) ) WHERE new_value != old_value ORDER BY 1,2; no rows selected
Not sure where I'm wrong.
Any help is appreciated.
TA.
> Don't know if I'm wrong.
you wait until a new snapshot has been taken to fill the views of HISTORY with the change?
-
DRCP with cx_Oracle doesn't seem to work as expected
I am trying to use DRCP Oracle 11.2 with a Python client using cx_Oracle 5.1.2.
If I create the connection by calling cx_Oracle.connect and adding a cclass argument and an argument of purity, then registration in sys.v_$ cpool_cc_stats with cclass_name set to my cclass show an increase in num_requests and num_misses for the number of calls I do with num_hits staying at 0.
connection = cx_Oracle.connect (user = db ['USER'], password = db ['PASSWORD'], dsn = db ['NAME'], cclass = db ['OPTIONS'] ['CCLASS'], cx_Oracle.ATTR_PURITY_SELF = purity)
However, if I create an instance of a cx_Oracle.SessionPool, then pass this instance in the same call to cx_Oracle.connect as an additional 'pool' argument, then num_misses goes up by 1 and num_hits goes up by num_requests - 1 (I guess this means that the first application is a new connection, all the rest are using this connection).
pool = cx_Oracle.SessionPool (user = db ['USER'], password DB ['PASSWORD'], dsn = db ['NAME'], min = 1, max = 2, increment = 1)
connection = cx_Oracle.connect (user DB ['USER'], password DB ['PASSWORD'], dsn = db ['NAME'], pool = pool, cclass is purity, db ['OPTIONS'] ['CCLASS'] = cx_Oracle.ATTR_PURITY_SELF)
Is this correct? Should I create a SessionPool customer, then using them to acquire and release connections?
This article mentions nothing SessionPool. I came across SessionPool in this post, but this is not the official documentation.
FWIW, when I run select * from dba_cpool_info, I get the following:
'CONNECTION_POOL '. 'STATUS '. "MINSIZE. "MAXSIZE". 'INCRSIZE '. "SESSION_CACHED_CURSORS. 'INACTIVITY_TIMEOUT '. 'MAX_THINK_TIME '. 'MAX_USE_SESSION '. 'MAX_LIFETIME_SESSION '. 'SYS_DEFAULT_CONNECTION_POOL '. 'ACTIVE '. 4 40 2 20 300 120 500000 86400 The first way to connect to drcp has a bug and fix is added soon.
The second connection using SessionPool shows expected results.
In both cases, the behavior should be the same. NUM_HITS is expected to increase and NUM_MISSES should not increase if purity itself and class connection is used to connect to the DB.
-
MA: termination litigation because of the error 472
Hi all
Today our database crashed with error in the alert running on linux 4.6 log db below: 10.2.0.3.0 (32 bit)
Filled checkpoint up to RBA [0x1730.2.10], RCS: 5979396038739
Sea may 28 08:56:31 2014
Errors in the /oracle/clndb/10.2.0/admin/PROD_damacdb/udump/TESTcln_ora_6562.trc file:
[ORA-07445: exception encountered: core dump [kokcup () + 97] [SIGSEGV] [address not mapped to object] [0xC000095D] []]
Sea may 28 08:56:32 2014
Errors in the /oracle/clndb/10.2.0/admin/PROD_damacdb/udump/TESTcln_ora_6562.trc file:
[ORA-07445: exception encountered: core dump [kghssgmm () + 83] [SIGFPE] [integer division by zero] [0xAD03465] []]
[ORA-07445: exception encountered: core dump [kokcup () + 97] [SIGSEGV] [address not mapped to object] [0xC000095D] []]
Sea may 28 08:59:55 2014
Beginning log switch checkpoint up to RBA [0x1731.2.10], RCS: 5979396047597
Thread 1 Advanced for you connect to sequence 5937
Currently Journal # 2 seq # 5937 mem # 0: /d02/clndata/log02a.dbf
Currently Journal # 2 seq # 5937 mem # 1: /d02/clndata/log02b.dbf
Sea may 28 09:02:25 2014
Errors in the /oracle/clndb/10.2.0/admin/PROD_damacdb/udump/TESTcln_ora_2032.trc file:
[ORA-07445: exception encountered: core dump [kghupr_flg () + 551] [SIGSEGV] [address not mapped to object] [0x10] []]
Sea may 28 09:02:49 2014
Errors in the /oracle/clndb/10.2.0/admin/PROD_damacdb/bdump/TESTcln_pmon_23066.trc file:
[ORA-07445: exception encountered: core dump [kghupr_flg () + 551] [SIGSEGV] [address not mapped to object] [0x10] []]
Sea may 28 09:02:54 2014
MA: termination litigation because of the error 472
Instance terminated by MA, pid = 23070
Sea may 28 09:08:01, 2014
Starting ORACLE instance (normal)
Sea may 28 09:08:01, 2014
Db_block_buffers parameter system activated without VLM on.
LICENSE_MAX_SESSION = 0
LICENSE_SESSIONS_WARNING = 0
Diagram of SNA picked latch-free 2
With the help of LOG_ARCHIVE_DEST_1 parameter value by default as /oracle/clndb/10.2.0/dbs/arch
Autotune undo retention is enabled.
IMODE = BR
ILAT = 220
LICENSE_MAX_USERS = 0
SYS audit is enabled
ksdpec: called to the event 13740 before initialization of the event group
Commissioning ORACLE RDBMS Version: 10.2.0.3.0.
Parameters of the system with default values:
_trace_files_public = FALSE
process = 1000
sessions = 2000
TIMED_STATISTICS = TRUE
resource_limit = TRUE
shared_pool_size = 838860800
STREAMS_POOL_SIZE = 50331648
SHARED_POOL_RESERVED_SIZE = 83886080
nls_language = American
nls_territory = America
nls_sort = binary
NLS_DATE_FORMAT = DD-MON-RR
nls_numeric_characters =.,.
nls_comp = binary
nls_length_semantics = BYTE
resource_manager_plan = INTERNAL_PLAN
control_files = d02/clndata/cntrl01.dbf, d02/clndata/cntrl02.dbf, /d02/clndata/cntrl03.dbf
db_block_buffers = 150000
db_block_checksum = TRUE
DB_BLOCK_SIZE = 8192
compatible = 10.2.0
log_buffer = 15276032
log_checkpoint_interval = 100000
log_checkpoint_timeout = 1200
DB_FILES = 550
db_file_multiblock_read_count = 8
log_checkpoints_to_alert = TRUE
dml_locks = 10000
UNDO_MANAGEMENT = AUTO
undo_tablespace = APPS_UNDOTS1
UNDO_RETENTION = 7200
db_block_checking = FALSE
O7_DICTIONARY_ACCESSIBILITY = FALSE
Remote_login_passwordfile = NONE
audit_sys_operations = TRUE
session_cached_cursors = 1200
UTL_FILE_DIR = / usr/tmp, /oracle/clndb/10.2.0/appsutil/outbound/PROD_damacdb
plsql_code_type = INTERPRETED
plsql_optimize_level = 2
JOB_QUEUE_PROCESSES = 2
_system_trig_enabled = TRUE
CURSOR_SHARING = TRUE
parallel_min_servers = 0
PARALLEL_MAX_SERVERS = 8
background_dump_dest = /oracle/clndb/10.2.0/admin/PROD_damacdb/bdump
user_dump_dest = /oracle/clndb/10.2.0/admin/PROD_damacdb/udump
max_dump_file_size = 20480
core_dump_dest = /oracle/clndb/10.2.0/admin/PROD_damacdb/cdump
session_max_open_files = 20
db_name = TESTCLN
open_cursors = 1500
os_authent_prefix =
_sort_elimination_cost_ratio = 5
sql92_security = TRUE
_b_tree_bitmap_plans = FALSE
_fast_full_scan_enabled = FALSE
_sqlexec_progression_cost = 2147483647
_like_with_bind_as_equality = TRUE
pga_aggregate_target = 4194304000
workarea_size_policy = AUTO
aq_tm_processes = 1
PMON started with pid = 2, OS id = 4457
PSP0 started with pid = 3, OS id = 4459
MA started with pid = 4, OS id = 4461
DBW0 started with pid = 5, OS id = 4464
LGWR started with pid = 6, OS id = 4466
CKPT started with pid = 7, OS id = 4468
SMON started with pid = 8, OS id = 4470
RECCE has started with pid = 9, OS id = 4472
CJQ0 started with pid = 10, OS id = 4474
MMON started with pid = 11, OS id = 4476
MMNL started with pid = 12, OS id = 4478
Sea may 28 09:08:03 2014
ALTER DATABASE MOUNT
Sea may 28 09:08:07 2014
Definition of embodiment of recovery target 2
Sea may 28 09:08:07 2014
Mount of redo thread 1, with mount id 3266286451
Sea may 28 09:08:07 2014
Database mounted in exclusive Mode
Completed: ALTER DATABASE MOUNT
Sea may 28 09:08:07 2014
ALTER DATABASE OPEN
Sea may 28 09:08:08 2014
Beginning of thread 1 crash recovery
parallel recovery started with 3 process
Sea may 28 09:08:09 2014
Scan again started
Sea may 28 09:08:09 2014
Complete scan again
5831 redo blocks, blocks of 402 data need recovery reading
Sea may 28 09:08:09 2014
Request for reinstatement has started
Thread 1: logseq 5936, block 8590
Sea may 28 09:08:09 2014
Online Redo Log recovery: thread 1 mem Group 1 Seq 5936 reading 0
Mem # 0: /d02/clndata/log01a.dbf
MEM # 1: /d02/clndata/log01b.dbf
Sea may 28 09:08:10 2014
Online Redo Log recovery: thread 1 mem Group 2 Seq 5937 reading 0
Mem # 0: /d02/clndata/log02a.dbf
MEM # 1: /d02/clndata/log02b.dbf
Sea may 28 09:08:10 2014
Completed request
Sea may 28 09:08:10 2014
Finished in crash recovery
Thread 1: logseq 5937, block 4026, RCS 5979396068960
402 data blocks read, 387 written data blocks, 5831 redo blocks read
Sea may 28 09:08:11 2014
Thread 1 Advanced for you connect to sequence 5938
Thread 1 is open to the sequence of journal 5938
Currently journal # 1, seq # 5938 mem # 0: /d02/clndata/log01a.dbf
Currently journal # 1, seq # 5938 mem # 1: /d02/clndata/log01b.dbf
Opening of redo thread 1
Sea may 28 09:08:11 2014
View MTTR is disabled, because FAST_START_MTTR_TARGET is not defined
Sea may 28 09:08:11 2014
Additional checkpoint up to RBA to RBA [0x1732.3.0] [0x1732.3.0], current journal line
Sea may 28 09:08:13 2014
Successfully onlined Undo Tablespace 368.
Sea may 28 09:08:13 2014
SMON: enabling the recovery of tx
Sea may 28 09:08:13 2014
Database charset is UTF8
off replication_dependency_tracking (no replication multimaster async found)
From QMNC background process
QMNC started with pid = 17, OS id = 4490
Sea may 28 09:09:16 2014
Completed: ALTER DATABASE OPEN
Trace file
/Oracle/clndb/10.2.0/Admin/PROD_damacdb/udump/TESTcln_ora_6562.TRC
Oracle Database 10 g Enterprise Edition release 10.2.0.3.0 - Production
With partitioning, OLAP and Data Mining options
ORACLE_HOME = /oracle/clndb/10.2.0
Name of the system: Linux
Name of the node: TESTclonedb.damacerp.com
News Release: 2.6.9 - 67.ELsmp
Version: #1 SMP Wed Nov 7 13:58:04 UTC 2007
Machine: i686
Instance name: TESTCLN
Redo thread mounted by this instance: 1
Oracle process number: 317
Unix process pid: 6562, image: [email protected]
2014-05-28 08:56:31.820
ACTION NAME: (9287) 2014-05-28 08:56:31.696
MODULE NAME:(xdo.oa.template.server.TemplatesAM:R) 2014-05-28 08:56:31.696
SERVICE NAME: (TESTCLN) 2014-05-28 08:56:31.696
SESSION ID: (1783.20135) 2014-05-28 08:56:31.696
Exception signal: 11 (SIGSEGV), code: 1 (address not mapped to the object), ADR: 0xc000095d PC: [0x98b338b, kokcup () + 97]
Records:
EAX: 0x00000000 ebx %: 0x794034b4% ecx: 0x794034b4
% edx: 0xc0000929% edi: esi % 0x0cd3a9e0: 0xb72da9e8
% esp: 0xbfffb9dc % ebp: eip % 0xbfffb9e8: 0x098b338b
% efl: 0 x 00210246
kokcup () + 86 (0x98b3380) mov 0 x 24 (% ebx), % edx
kokcup () + 89 testb (0x98b3383) 0 x $1, % dl
kokcup () + 94 (0x98b3388) mov 0 x 18 (% ebx), % edx
> kokcup () + 97 (0x98b338b) movzw 0 x 34 (% edx), % edx
kokcup () + 101 (0x98b338f) test % edx, % edx
kokcup () + 103 (0x98b3391) I 0x98b33a8
kokcup () + 105 (0x98b3393) cmp $0xffff, % edx
kokcup () + 111 (0x98b3399) jge 0x98b33a8
2014-05-28 08:56:31.832
ksedmp: internal or fatal error
[ORA-07445: exception encountered: core dump [kokcup () + 97] [SIGSEGV] [address not mapped to object] [0xC000095D] []]
-Call trace stack memory-
call call entered the argument values in hex
location point type (? means dubious value)
-------------------- -------- -------------------- ----------------------------
ksedst () + 27 call ksedst1() 1? 1?
ksedmp () + 557 call ksedst() 1? 8168F10? B748BF3C?
B80650? 10? B7491A90?
ssexhd () + 882 call ksedmp() 3? 98B338B? 636B6F6B?
29287075? 37392B? 0?
kokcup () + 97 00000000 B signal? B748DC90? B748DD10?
kocdsfr () + 460 call 00000000 CD3A9E0? B72DA9E8? 1?
B71627C8? B716152C?
CCEAB18?
Hello
If you have a valid license of Oracle support, I suggest that you raise a service request with the support of the Oracle.
This could probably be a bug and it is determined to be a bug, you must upgrade your database to a version more supported, since 10.2 is out of taken in charge for some time.
Kind regards
Suntrupth
-
Competitor Manager starts but does not work
Hi all
Platform: AIX 5.3
Oracle EBS 11.5.9
9i DB
I have sought a response on this forum and blogs, but he could not understand how to solve this problem.Level APPS, made a backup of tar and restored on another machine (everything is same) but on the new concurrent machine manager does not work but everything else works well.
When you start the application startup script:
applprod@cloapp:/oraapp/prodcomn/Admin/scripts/PROD_cloapp > applications/applications <
You run adcmctl.sh version 115.19
Responsible for simultaneous departure PROD...
Departure PROD_0323@PROD internal competitor Manager
Default printer is noprint
adcmctl.sh: exit with status 0
applprod@cloapp:/oraapp/prodcomn/Admin/scripts/PROD_cloapp >
If I click on the internal log manager, I get the following message:
There is no log file for the process xxxxx. The concurrent Manager may have encountered an error attempting to create the log file
Database alert log watch
Commissioning ORACLE RDBMS Version: 9.2.0.3.0.
Parameters of the system with default values:
_trace_files_public = TRUE
process = 800
sessions = 885
TIMED_STATISTICS = TRUE
shared_pool_size = 301989888
SHARED_POOL_RESERVED_SIZE = 30000000
_shared_pool_reserved_min_alloc = 4100
JAVA_POOL_SIZE = 67108864
enqueue_resources = 32000
nls_language = American
nls_territory = America
nls_sort = binary
NLS_DATE_FORMAT = DD-MON-RR
nls_numeric_characters =.,.
nls_comp = binary
nls_length_semantics = BYTE
control_files = oradata/proddata/cntrl01.dbf, oradata2/data/cntrl02.dbf, /oradata/proddata/cntrl03.dbf
db_block_checksum = TRUE
DB_BLOCK_SIZE = 8192
db_cache_size = 167772160
compatible = 9.2.0
log_buffer = 10485760
log_checkpoint_interval = 100000
log_checkpoint_timeout = 1200
DB_FILES = 512
db_file_multiblock_read_count = 8
log_checkpoints_to_alert = TRUE
dml_locks = 10000
row_locking = always
UNDO_MANAGEMENT = AUTO
undo_tablespace = APPS_UNDOTS1
undo_suppress_errors = FALSE
UNDO_RETENTION = 1800
db_block_checking = FALSE
max_enabled_roles = 100
O7_DICTIONARY_ACCESSIBILITY = TRUE
session_cached_cursors = 200
UTL_FILE_DIR = / usr/tmp, /oratech/proddb/9.2.0/appsutil/outbound/PROD_clodb
JOB_QUEUE_PROCESSES = 2
_system_trig_enabled = TRUE
CURSOR_SHARING = TRUE
parallel_min_servers = 0
PARALLEL_MAX_SERVERS = 8
background_dump_dest = /oratech/proddb/9.2.0/admin/PROD_clodb/bdump
user_dump_dest = /oratech/proddb/9.2.0/admin/PROD_clodb/udump
max_dump_file_size = 20480
core_dump_dest = /oratech/proddb/9.2.0/admin/PROD_clodb/cdump
optimizer_features_enable = 9.2.0
db_name = PROD
open_cursors = 600
iFile = /oratech/proddb/9.2.0/dbs/PROD_clodb_ifile.ora
SQL_Trace = FALSE
_sort_elimination_cost_ratio = 5
_b_tree_bitmap_plans = FALSE
_fast_full_scan_enabled = FALSE
optimizer_max_permutations = 2000
query_rewrite_enabled = true
_index_join_enabled = FALSE
_sqlexec_progression_cost = 2147483647
_like_with_bind_as_equality = TRUE
pga_aggregate_target = 1073741824
workarea_size_policy = AUTO
aq_tm_processes = 1
olap_page_pool_size = 4194304
PMON started with pid = 2
DBW0 started with pid = 3
LGWR started with pid = 4
CKPT started with pid = 5
SMON started with pid = 6
RECCE has started with pid = 7
CJQ0 started with pid = 8
QMN0 started with pid = 9
Sun Mar 23 18:10:09 2014
ALTER DATABASE MOUNT
Sun Mar 23 18:10:13 2014
Mount of redo thread 1, with mount id 254776577.
Sun Mar 23 18:10:13 2014
Database mounted in exclusive Mode.
Completed: ALTER DATABASE MOUNT
Sun Mar 23 18:10:13 2014
ALTER DATABASE OPEN
Sun Mar 23 18:10:15 2014
Thread 1 is open to the sequence of journal 9194
Currently Journal # 2 seq # 9194 mem # 0: /oradata/proddata/log02a.dbf
Currently Journal # 2 seq # 9194 mem # 1: /orada
Where should I start in order to solve this problem.
I don't know why are you fndsm missing entry tns. AutoConfig should have created the tnsnames.ora with this entry.
Assuming that the architecture you have is
clodb - only db level
cloapp - applications (cm, forms, apache)
1. check if you have the correct entry for FNDSM_CLOAPP_PROD tns in tnsnames.ora on the application tier
2. make sure that apps listener is running
If it does not, the cleaner way than it would be to:
1. stop all application services
2. run exec fnd_conc_clone.setup_clean (); only applications
3. run autoconfig on dbtier
4. run autoconfig on level apps
Check fnd_nodes, you should have entries for the nodes and the check tnsnames.ora, should have entered correct tns.
5 start services.
Thank you
Shakti
-
automatic failover - failover unable
Hi gurus,
I have expirienced strange behavior of automatic failover of data guard.
According to the Observer newspaper failover failed:
Observer began
[W000 15:57:01.46 02/20] Observer began.
16:00:07.44 Thursday, February 20, 2014
Opening of failover accelerated to database 'ipcblna2 '...
Perform the failover NOW, please wait...
Error:
ORA-03113: end of file on communication channel
Process-ID: 2785
Session ID: 162 Seriennummer: 5
Unable to failover
16:02:08.55 Thursday, February 20, 2014
[W000 16:02:08.55 02/20] Failover failed. Leave the observer.
Observer stopped
However according to primary alerts of new ipcblna2 journal:
Successful failover. Primary database is now IPCBLNA2.
Primary alerts of new ipcblna2 journal:
Thu Feb 20 15:59:35 2014
RFS [7]: network Possible disconnect with primary database
Thu Feb 20 15:59:35 2014
RFS [2]: network Possible disconnect with primary database
Thu Feb 20 15:59:35 2014
RFS [6]: network Possible disconnect with primary database
Fri 20 Feb 16:00:07 2014
An attempt to failover accelerated because the threshold of 30 seconds is up.
Fri 20 Feb 16:00:07 2014
MICHAEL: Failover beginning
Fri 20 Feb 16:00:07 2014
ALTER DATABASE RECOVER MANAGED STANDBY DATABASE FINISH FORCE
Terminal recovery: real-time decision applies
Fri 20 Feb 16:00:07 2014
MRP0: Background Media Recovery cancelled with status 16037
Errors in the /u01/app/oracle/diag/rdbms/ipcblna2/ipcdb/trace/ipcdb_pr00_2892.trc file:
ORA-16037: Benutzer Hat Abbruch von managed recovery-procedure statement
Managed Standby recovery not using real time applies
Recovery interrupted!
Data files recovered in a consistent state to change 262827045900
Waiting for pid MRP0 2870 to terminate
Errors in the /u01/app/oracle/diag/rdbms/ipcblna2/ipcdb/trace/ipcdb_pr00_2892.trc file:
ORA-16037: Benutzer Hat Abbruch von managed recovery-procedure statement
Fri 20 Feb 16:00:07 2014
MRP0: Stopping the process background Media Recovery (ipcdb)
Terminal recovery: real time apply
Waiting for "D000" dispatcher stopped
Fri 20 16:00:23 Feb 2014
ARC2: Waiting for example near full
Fri 20 Feb 16:02:10 2014
Waiting for Server shared "S000" to die
Fri 20 Feb 16:02:23 2014
ARC2: Waiting for example close has expired
ARC2: Waiting for example near full
Fri 20 Feb 16:04:23 2014
ARC2: Waiting for example close has expired
Logging of 1034 errors received on the eve
Errors in the /u01/app/oracle/diag/rdbms/ipcblna2/ipcdb/trace/ipcdb_arc2_2827.trc file:
ORA-01034: ORACLE non available
Heartbeat PING [ARC2]: Unable to connect to the day before "ipcblna". The error is 1034.
ARC2: Waiting for example near full
Fri 20 Feb 16:05:07 2014
Renounce wait dispatchers/dispatchers and shared servers to die
CLOSING: kill the server sessions.
CLOSED: all the closing of sessions successfully.
Fri 20 Feb 16:05:07 2014
SMON: disabling of cache recovery
Try to perform a Terminal recovery (ipcdb)
Start of recovery media: Managed Standby Recovery (ipcdb)
has started the process of logmerger
Fri 20 Feb 16:05:07 2014
Managed Standby recovery not using real time applies
Fri 20 Feb 16:05:07 2014
ARC2: Waiting for example close over
Parallel Media Recovery started with 8 slaves
To start: Eve redo Logfile to check-in
End: Standby redo Logfile to check-in
"Terminal recovery Timestamp is February 20, 2014 16:05:08.
Terminal recovery: application standby redo logs.
Terminal recovery: thread 1 seq # 12 again required
Recovery of terminal:
Online Redo Log recovery: thread 1 mem Group 6 Seq 12 reading 0
Mem # 0: /u01/app/oracle/oradata/IPCBLNA2/stdbyredo01.log
Identified end-of-Redo for thread 1 sequence 12
Incomplete recovery applied to change 262827045901 20/02/2014 time 15:59:35
Media recovery complete (ipcdb)
Terminal recovery: success of
Fri 20 Feb 16:05:08 2014
Identified end-of-Redo for thread 1 sequence 12
Activation reset sleep ID 652569681 (0x26e56c51)
ARCH: Stopped archiving, error occurred. Will continue to retry
ORACLE Instance ipcdb - check-in error
ORA-16014: Log sequence 6-Nr. 12 non archiviert, keine Energiepflanzen vision
ORA-00312: line-6, 1-wire Journal: ' / u01/app/oracle/oradata/IPCBLNA2/stdbyredo01.log'
Errors in the /u01/app/oracle/diag/rdbms/ipcblna2/ipcdb/trace/ipcdb_arc0_2823.trc file:
ORA-16014: Log sequence 6-Nr. 12 non archiviert, keine Energiepflanzen vision
ORA-00312: line-6, 1-wire Journal: ' / u01/app/oracle/oradata/IPCBLNA2/stdbyredo01.log'
Completed: ALTER DATABASE RECOVER MANAGED FORCE STANDBY DATABASE FINISH
ALTER DATABASE COMMIT TO SWITCHING TO THE MAIN WAITING WITH THE STOP OF THE SESSION
DATABASE ALTER CROSSING elementary SCHOOL (ipcdb)
Waiting for the transition from role maximum is 15 minutes.
Backup controlfile written to trace the file /u01/app/oracle/diag/rdbms/ipcblna2/ipcdb/trace/ipcdb_rsm0_2844.trc
Terminal standby recovery start SCN: 262827045900
RESETLOGS after complete through change 262827045901
Log in online /u01/app/oracle/oradata/IPCBLNA2/redo01.log: thread 1 Group 1 had been previously authorized
Log in online /u01/app/oracle/oradata/IPCBLNA2/redo02.log: thread 1 group 2 was previously disabled
Log in online /u01/app/oracle/oradata/IPCBLNA2/redo03.log: thread 1 Group 3 has been previously authorized
Log in online /u01/app/oracle/oradata/IPCBLNA2/redo04.log: thread 1 Group 4 has been previously authorized
Log in online /u01/app/oracle/oradata/IPCBLNA2/redo05.log: thread 1 Group 5 has been previously authorized
Standby became primary YVERT: 262827045899
Fri 20 Feb 16:05:09 2014
Assessment target incarnation to 20
The digital switchover: completed - mounted as primary database
Completed: ALTER DATABASE COMMIT to SWITCHING to the MAIN WAITING WITH the STOP of the SESSION
Fri 20 Feb 16:05:09 2014
Arc1: become the "no SRL" ARCH
ALTER DATABASE OPEN
Initializing data Guard Broker...
Fri 20 Feb 16:05:09 2014
Assigning activation ID 652556989 (0x26e53abd)
Thread 1 Advanced to record the sequence 2 (open thread)
Thread 1 is open to the sequence of log 2
Currently Journal # 2 seq # 2 mem # 0: /u01/app/oracle/oradata/IPCBLNA2/redo02.log
Opening of redo thread 1
View MTTR is disabled, because FAST_START_MTTR_TARGET is not defined
SMON: enabling cache recovery
Fri 20 Feb 16:05:10 2014
ARC3: LGWR is scheduled for archive destination LOG_ARCHIVE_DEST_2 after log command
Fri 20 Feb 16:05:10 2014
NSA2 started with pid = 29, OS id = 5464
Successfully online 2 undo Tablespace.
Dictionary check start
Logging of 1034 errors received on the eve
Errors in the /u01/app/oracle/diag/rdbms/ipcblna2/ipcdb/trace/ipcdb_arc2_2827.trc file:
ORA-01034: ORACLE non available
Heartbeat PING [ARC2]: Unable to connect to the day before "ipcblna". The error is 1034.
Logging of 1034 errors received on the eve
Errors in the /u01/app/oracle/diag/rdbms/ipcblna2/ipcdb/trace/ipcdb_arc3_2829.trc file:
ORA-01034: ORACLE non available
ARC3: Error 1034 creation log file from archive for "ipcblna."
Archived journal 254 extra for each sequence 1 1 0x26e53abd dest ID thread entry 1:
Archiver released errors process. Is more interrupted
Verification of the complete dictionary
Check the compatibility of the header files for tablespace 11g encryption...
Compatibility check header files 11g for tablespace encryption completed
SMON: enabling the recovery of tx
From OCMS background process
Fri 20 Feb 16:05:10 2014
OCMS started with pid = 30, OS id = 5466
Database character set is AL32UTF8
Fri 20 Feb 16:05:10 2014
found dead shared server "S000", pid = (18: 1)
idle dispatcher "D000" completed, pid = (17: 1)
No Resource Manager plan active
From QMNC background process
Fri 20 Feb 16:05:11 2014
QMNC started with pid = 40, OS id = 5472
LOGSTDBY: Validation controlfile with logical metadata
LOGSTDBY: Validation complete
ALTER SYSTEM SET service_names = 'IPCBLNA2.idealo.de' SCOPE = MEMORY SID = "ipcdb";
ALTER SYSTEM SET service_names = 'IPCBLNA2.idealo.de', 'RESIN_READ1' SCOPE = MEMORY SID = "ipcdb";
ALTER SYSTEM SET service_names = 'RESIN_READ1', 'IPCBLNA2.idealo.de', 'RESIN_WRITE' SCOPE = MEMORY SID = "ipcdb";
Completed: ALTER DATABASE OPEN
ALTER SYSTEM SET log_archive_trace = 0 SCOPE = BOTH SID = "ipcdb";
ALTER SYSTEM SET log_archive_format='%t_%s_%r.dbf' SCOPE = SPFILE SID = 'ipcdb ';
ALTER SYSTEM SET standby_file_management = 'AUTO' SCOPE = BOTH SID ='* ';
ALTER SYSTEM SET archive_lag_target = 0 SCOPE = BOTH SID ='* ';
ALTER SYSTEM SET log_archive_max_processes = 5 SCOPE = BOTH SID ='* ';
ALTER SYSTEM SET log_archive_min_succeed_dest = 1 SCOPE = BOTH SID ='* ';
ALTER SYSTEM SET db_file_name_convert = ' / IPCBLNA / ', ' / IPCBLNA2 / ' SCOPE = SPFILE;
ALTER SYSTEM SET log_file_name_convert = ' / IPCBLNA / ', ' / IPCBLNA2 / ' SCOPE = SPFILE;
Fri 20 Feb 16:05:11 2014
Using the default for the STANDBY_ARCHIVE_DEST as USE_DB_RECOVERY_FILE_DEST parameter value
ARC3: FROM PROCESS ARCH
ALTER SYSTEM SET log_archive_dest_state_2 = 'RESET' SCOPE = BOTH;
Fri 20 Feb 16:05:11 2014
ARC5 started with pid = 43, OS id = 5478
Successful failover. Primary database is now IPCBLNA2.
Thread 1 Advanced to save sequence 3 (switch LGWR)
Currently Journal # 3 seq # 3 mem # 0: /u01/app/oracle/oradata/IPCBLNA2/redo03.log
Fri 20 Feb 16:05:12 2014
Archived journal 255 extra for each sequence 1 2 0x26e53abd dest ID thread entry 1:
ARC5: Started archiving
ARC3: FROM PROCESS ARCH COMPLETE
krsk_srl_archive_int: enabling archiving delayed physical standby SRls
Identified end-of-Redo for thread 1 sequence 12
Archived journal 256 additional for each sequence 1 12 0x26e56c51 dest ID thread entry 1:
From CJQ0 background process
Fri 20 Feb 16:05:14 2014
CJQ0 started with pid = 42, OS id = 5490
Fri 20 Feb 16:05:18 2014
Safety started with pid = 50, OS id = 5504
steps to reproduce:
the judgment on the primary
configuration:
DGMGRL > show fast_start failover;
Fast-Start Failover: ENABLED
Threshold: 30 seconds
Target: ipcblna2
Observer: s146
Offset limit: 7200 seconds
Primary closure: TRUE
Auto-Rétablir: TRUE
Configurable failover conditions
Animal health conditions:
Corrupt Controlfile YES
Corrupt YES dictionary
Inaccessible logfile No.
Stuck archive ONLY
YES offline data file
Oracle error conditions:
(none)
primary news after failover:
Database - ipcblna2
Role: PRIMARY
State of destination: TRANSPORT-WE
Occurrence (s):
ipcdb
Database error (s):
ORA-16820: accelerated failover observer observes is no longer this database
Warning (s) of database:
ORA-16829: accelerated failover configuration is trolling
Properties:
DGConnectIdentifier = "ipcblna2".
ObserverConnectIdentifier = "
LogXptMode = "async".
DelayMins = '0'
Binding = "optional."
MaxFailure = '0'
MaxConnections = '1'
ReopenSecs = "300"
NetTimeout = "30"
RedoCompression = "DISABLE."
LogShipping = 'ON '.
PreferredApplyInstance = "
ApplyInstanceTimeout = '0'
ApplyParallel = 'AUTO '.
StandbyFileManagement = 'AUTO '.
ArchiveLagTarget = '0'
LogArchiveMaxProcesses = '5'
LogArchiveMinSucceedDest = '1'
DbFileNameConvert = ' / IPCBLNA /, / IPCBLNA2 / '.
LogFileNameConvert = ' / IPCBLNA /, / IPCBLNA2 / '.
FastStartFailoverTarget = "ipcblna".
StatusReport = "(monitor).
InconsistentProperties = "(monitor).
InconsistentLogXptProps = "(monitor).
SendQEntries = "(monitor).
LogXptStatus = "(monitor).
RecvQEntries = "(monitor).
HostName = "rac4.lvl.bln."
Nom_sid = "ipcdb".
StaticConnectIdentifier = ' (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp)(HOST=rac4.lvl.bln) (PORT = 1521)) (CONNECT_DATA = (SID = ipcdb)))'
StandbyArchiveLocation = "USE_DB_RECOVERY_FILE_DEST".
AlternateLocation = "
LogArchiveTrace = '0'
LogArchiveFormat = '% t_%s_%r.dbf '.
TopWaitEvents = "(monitor).
config after failover:
Configuration - dg_newtest
Protection mode: MaxPerformance
Databases:
ipcblna2 - primary database
Error: ORA-16825: multiple errors or warnings, including failover quick start or warnings, errors detected for the database
ipcblna - (*) physical standby database (disabled)
ORA-16661: database backup must be restored
Fast-Start Failover: ENABLED
The configuration status:
ERROR
Perhaps a clue:
strange behaviour occurred after the configuration of the shared server connections. before automatic failover worked very well.
relevant parameter:
* .shared_servers = 10
* Once = 445
* .session_cached_cursors = 300
* runoff = 400
* .open_cursors = 500
* .log_archive_dest_2 = "service = db_unique_name VALID_FOR = (ALL_LOGFILES, ALL_ROLES)"ipcblna2"="ipcblna2"net_timeout = 30', ' valid_for = (all_logfiles, primary_role)"
* .job_queue_processes = 1000
* .dispatchers ='(protocol=tcp) (dispatchers = 1)(sessions=400) '
* .log_archive_dest_state_2 = 'ENABLE '.
11 GR 2 on rhel5
Thank you
Hi oraman,
You can check the broker for this config. Connect to the database with dgmgrl and get the config database:
See the verbose XXX database;
The parameter 'StaticConnectIdentifier' will tell you what data Guard Broker expects to find when it needs to restart a database. You must create a static entry to the listener with the service_name in this setting.
Make sure you have the "SERVER = DEDICATED" in the connection string. If you set this explicit, default oracle shared a connection via the server connection, which could cause your question.
Concerning
Thomas
-
Dear,
After migration (via import/export), we faced of lines are set-match in these two databases.
the following query the same that I am running on these two databases. but different outputs. output are below.
[CODE]
SELECT ROWNUM AS RowNo, TBL1.*
(SELECT COUNT (PG_ID) AS TotalCount,
AS PageDescription PG_DESC,
CURR_EPR_QUEUE AS CurrentQueue,
PG_NME AS PageName,
QUEUE_TYP_CDE AS QueueTypeCode,
PG_ID AS PageID
OF SASV_TB_CNT_APPL_JUDG_2 - this is a view
WHERE (CURR_EPR_QUEUE = 'test' AND QUEUE_TYP_CDE = '01')
OR (JUD_RACIF_ID = 'test'
AND CMPLTD_IND = '0'
AND DSPLY_IND = '1')
AND TOTAL_CNT > 0
PG_ID GROUP,
PG_NME,
PG_DESC,
CURR_EPR_QUEUE,
QUEUE_TYP_CDE
) TBL1
[/ CODE]
output of
Oracle9i Enterprise Edition Release 9.2.0.8.0 - Production
AMT for 32-bit Windows: Version 9.2.0.8.0 - Production
1 7 Other Documents (Hearing) askinj HG01_Other_Documents 1 TB02 HG01 2 3 Price pending askinj HG01_Pending_Order 1 HG01-TB05 3 19 Motion (ADR) askinj MD01_Motion 1 MD01-TB01 4 5 Other Documents (ADR) askinj MD02_Other_Documents 1 MD01-TB02 5 1 Scheduling (ADR) askinj MD01_Scheduling 1 MD01-TB03 6 8 Mediations askinj MD01_Mediations 1 MD01-TB04 out of -
Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bi
AMT for 64-bit Windows: Version 10.2.0.5.0 - Production
1 3 Price pending askinj HG01_Pending_Order 1 HG01-TB05 2 7 Other Documents (Hearing) askinj HG01_Other_Documents 1 TB02 HG01 3 8 Mediations askinj MD01_Mediations 1 MD01-TB04 4 5 Other Documents (ADR) askinj MD02_Other_Documents 1 MD01-TB02 5 1 Scheduling (ADR) askinj MD01_Scheduling 1 MD01-TB03 6 19 Motion (ADR) askinj MD01_Motion 1 MD01-TB01 the application of views is less than
SASV_TB_CNT_APPL_JUDG_2
[code]
(SELECT spm. PG_ID,
SPM. PG_NME,
SPM. PG_DESC,
DECODE (TAJD. ABS_IND, 1, GUEST_JUD_ID, JUDG_ID) CURR_EPR_QUEUE,.
QUEUE_TYP_CDE,
1 "TOTAL_CNT"
DECODE (TAJD. ABS_IND, 1, GUEST_JUD_ID, JUDG_ID) JUD_RACIF_ID,.
CMLTD_IND CMPLTD_IND,
DSPLY_IND NULL
SPM SA_PG_MSTR, TMST_APPEAL_JUDGE_DETAIL TAJD, SA_WRK_ITM SWI
WHERE SWI. WRK_ITM_ID = TAJD. WRK_ITM_ID
AND swi.tb_pg_id = spm.pg_id
AND SWI. CURR_EPR_QUEUE = "AppellateCommonJudgeUser".
AND CMLTD_IND = '0'
AND tajd. LEAD_JUD_IND! = '3'
UNION ALL
SELECT spm. PG_ID,
SPM. PG_NME,
SPM. PG_DESC,
CURR_EPR_QUEUE,
QUEUE_TYP_CDE,
1 "TOTAL_CNT"
CURR_EPR_QUEUE judg_racif_id,
CMPLTD_IND '0'.
DSPLY_IND NULL
OF SA_PG_MSTR spm, SA_WRK_ITM SWI
WHERE SCCS_IND = '1' AND SWI. ACTIVE = '1' AND spm.pg_id = swi.tb_pg_id
UNION ALL
SELECT spm. PG_ID,
SPM. PG_NME,
SPM. PG_DESC,
CURR_EPR_QUEUE,
QUEUE_TYP_CDE,
1 "TOTAL_CNT"
JUD_RACIF_ID,
CMPLTD_IND,
DSPLY_IND
OF ST_WRK_ITM_JUD_DTL SWIJD, SA_WRK_ITM SWI, SA_PG_MSTR spm
WHERE SWI. WRK_ITM_ID = SWIJD. WRK_ITM_ID
AND swi.tb_pg_id = spm.pg_id
AND swi.queue_typ_cde IN ('01 ', ' 05')
AND swi.dup_ind <>, 1);
[code]
9i settings are below
[code]
aq_tm_processes 1
background_dump_dest D:\oracle\admin\TEST\bdump
compatible 9.2.0.0.0
Similar CURSOR_SHARING
DB_BLOCK_SIZE 8192
db_cache_size 947912704
db_domain
db_file_multiblock_read_count 16
DB_KEEP_CACHE_SIZE 167772160
db_name TEST
fast_start_mttr_target 300
hash_area_size 1073741824
hash_join_enabled TRUE
instance_name TEST
JAVA_POOL_SIZE 67108864
JOB_QUEUE_PROCESSES 10
LARGE_POOL_SIZE 109051904
LOCAL_LISTENER (ADDRESS = (PROTOCOL = TCP)(HOST=192.168.2.51) (PORT = 1521))
log_archive_format %t_%s.dbf
log_archive_start TRUE
log_buffer 26214400
open_cursors 700
optimizer_index_caching 80
OPTIMIZER_INDEX_COST_ADJ 20
FIRST_ROWS optimizer_mode
pga_aggregate_target 1468006400
process of 800
TRUE query_rewrite_enabled
Remote_login_passwordfile EXCLUSIVE
session_cached_cursors 400
SGA_MAX_SIZE 2149134244
shared_pool_size 788529152
sort_area_size 1073741824
star_transformation_enabled FALSE
TIMED_STATISTICS TRUE
UNDO_MANAGEMENT AUTO
UNDO_RETENTION 10800
undo_tablespace UNDOTBS1
UTL_FILE_DIR H:\ICMS_TO_GO
workarea_size_policy AUTO
[code]
10 parameters are below[code]
aq_tm_processes 1
compatible 10.2.0.5.0
DB_BLOCK_SIZE 8192
db_domain
db_file_multiblock_read_count 16
db_name TEST
db_recovery_file_dest C:\oracle/flash_recovery_area
db_recovery_file_dest_size 171798691840
dispatchers (PROTOCOL = TCP) (SERVICE = TESTXDB)
JOB_QUEUE_PROCESSES 10
log_archive_format ARC%S_%R.%T
open_cursors 800
Open_links 10
open_links_per_instance 10
pga_aggregate_target 3984588800
process of 1200
OFF Recyclebin
Remote_login_passwordfile EXCLUSIVE
session_cached_cursors 400
1325 sessions
SGA_MAX_SIZE 10485760000
SGA_TARGET 10485760000
UNDO_MANAGEMENT AUTO
undo_tablespace UNDOTBS1
UTL_FILE_DIR H:\ICMS_TO_GO
optimizer_dynamic_sampling 2
optimizer_features_enable 10.2.0.5
optimizer_index_caching 80
OPTIMIZER_INDEX_COST_ADJ 20
FIRST_ROWS optimizer_mode
optimizer_secure_view_merging FALSE
plsql_optimize_level 2
[code]
where can we watch in for that matter? in fact we need the lines will be the same ranking as in 9i.
We are facing this problem in many applications, it is an example.
Concerning
Halim
Halim
Your choices are limited-
1. modify the code to include ORDER BY (is that an application packaged or home grown? If the first case, have you contacted the seller?)
2 stay on 9.2.0.8 and do not update to 10 g +.
Srini
-
Fix the activation parameters for caching the results of the customer? No performance gain
I gathered and made every detail I could search. I use Oracle EE 11.2 g 32-bit on Windows 7 64 bit
But despite I activate client caching result, I see no difference response API despite I have remote, connect to the server on LAN 1Gbit network
I see > difference 1 sec only when you enable caching of server (2nd opening files 300% faster 57 dry-> 18 s) and 32 MB are cached for the opening.
I don't know how to see the client_result_cache except the network traffic, detours, IO
MEASURES_
* 1.* I activated the parameter setting Statement Caching on the client and dbhome and set it equal to my ora.ini file OPEN_CURSORS (300) the registry as possible. And rebooted the system, of course.
---------
HKEY_LOCAL_MACHINE > SOFTWARE > Wow6432Node > ORACLE > KEY_OraClient11g_home1 > OLED > StmtCacheSize
HKEY_LOCAL_MACHINE > SOFTWARE > Wow6432Node > ORACLE > KEY_OraDb11g_home1 > OLED > StmtCacheSize
-There is no standard oracle registry dir - probably cause its 64 bit +.
-* 2 I have Super-activated all relevant SYSTEM parameters. 3 X the size necessary to be cached, FORCED cach, 100% of the result, 600000ms lag(10min)
-------
client_result_cache_lag... large integer 600000
client_result_cache_size... great integer.100M
...
db_cache_advice... chain... WE
db_cache_size... large integer 0
...
... full object_cache_max_size_percent... 10
... full object_cache_optimal_size... 102400
... full result_cache_max_result... 100
result_cache_max_size... big integer.100M-this is for caching wright + server
result_cache_mode... chain... FORCE
... full result_cache_remote_expiration... 30
session_cached_cursors... around... 50
-Is everything OK? Why not better time response then?
The LAN 1Gbit 1 customer is perhaps too fast anyway, and I should try via internet or something?
Hope that you have an idea, I can't search to find or think of something.As said by John, SQL * Plus does not implement caching the result to the client. You write an application for OIC (or another application that knows the OIC calls appropriate to make) that implements the setting cache the result of the customer.
Your test is behaving as expected.
Justin
-
Values recommended for installation of PROD init.ora
Hi all
I want to put in place an 11g database. The specifications of the server is OEL 5.6 with 12 GB of Ram and a Quad Core processor.-Assuming that I am using a 64-bit version of Oracle, -that there is nothing else running on the server, -that there will be no other databases on the server, -that I have substantially more data on disk than I have RAM, -and that I am using 11g.
There will be 200 users simultaneously access the database. I understand that 10g and 11g are 'auto adjustment '.
So in this respect that I still have to change the values in the default init.ora?
Can you give me example of your init.ora PROD template?
Or maybe since my RAM is 12 GB, I put just the 'target LMS = 8 GB' and the database will be good?
Thank you
YX
Edited by: yxes2013 the 8.2.2013 16:21
Addition of the assumptions of JustinImportant parameters in the production will be
AUTO TUNE MEMORY_TARGET SGA AND PGA
will be better take notice of v$ pga_target_Advice, v$ sga_target_Advice, v$ memory_target_Advice
This will help you you also for memory management http://docs.oracle.com/cd/B28359_01/server.111/b28310/memory003.htm
SESSION_CACHED_CURSORS
Oracle monitors the SQL statements that are submitted for each session. If it detects that the same statement has been presented several times, it moves of the statement in the cursor cache and leaves the cursor open for future reuse. The parameter SESSION_CACHED_CURSORS controls the number of cursors allowed in the cursor cache.
The default value for SESSION_CACHED_CURSORS varies with the release of Oracle. If your instance is not configured to cache at least 50 sliders, increase the value of this parameter to 50.
OPEN_CURSORS
The Oracle OPEN_CURSORS initialization parameter specifies that the number of cursors a session can have open at any time. The default value is 300. If the session is trying to open a new cursor, but already the number maximum open cursors, the error Oracle-1000 will be returned.
Parameter that affects the Oracle statistics
OPTIMIZER_MODE keep the default value for the parameter Oracle OPTIMIZER_MODE. For Oracle9i, the default is to choose; for Oracle 10 g, it is all_rows.
The RAM management
PGA_AGGREGATE_TARGET
SGA_TARGET
ALSO UNDO_RETENTION VA BE IMPORTANT SEE http://docs.oracle.com/cd/B19306_01/server.102/b14237/initparams222.htm
Published by: Karan on February 8, 2013 10:50
-
I tried to install OIM 11 g R2 on a Windows 2008 R2 64-bit server and were met the following error during the creation of diagrams of IOM. Other patterns, such as metadata, SOA, user's email services and other associated schema creation succeeded. But creating schema IOM took more than 2 minutes and finally it fails with the error below.
################################################################
UCR-6130: Action failed
UCR-6135: error when trying to execute the action of java.
################################################################
Components used:
OS: Windows Server 2008 R2 64 Bit
DBS: 11 GR 2 (11.2.0.1)
UCR: 11.1.2
The first error was ora-12637 package receive failure followed by Table or view does not exist. I couldn't get much information from the IOM and the rcu.log.
I put the processes and the open_cursors session_cached_cursors described in preinstalling OIM 11 g R2 installation step.
Pointers on what will be highly appreciated.
Thank you
SriniCopy the msvcr71.dll rcuHome\jdk\jre\bin inside the installer of the UCR and paste in C:\Windows\SysWOW64.
Try to rerun the rcu with the new user, i.e. instead of DEV_OIM, run it with DEV_OIM1.
Or delete the user DEV_OIM first and then use the same user.
-
Hello
my Oracle DB is 10.2.0.5 version
Linux Red Hat operating system
I need to change some settings in the settings file:
Some settings are below:
audit_sys_operations
AUDIT_TRAIL
compatible
db_cache_size
event
JAVA_POOL_SIZE
JOB_QUEUE_PROCESSES
LARGE_POOL_SIZE
pga_aggregate_target
process
session_cached_cursors
sessions of
SGA_MAX_SIZE
SGA_TARGET
in path $ORACLE_HOME/dbs I have these files:
init.ora
initdw.ora
spfileorcl.ora
pfileORCL.ora
orapworcl
spfileORCL.ora
What step I have to do to change these settings?
Thanks in advance!RAF Royal wrote:
Because I have 2 Oracle instance and I need to change/add any parameter on the second instance!Have you read that anything posted here? All you need to do is
sqlplus / as sysdba alter system set AUDIT_TRAIL=DB scope=spfile; shutdown immediate startup
Question: Why not use a pfile file?
Answer: Edit a file pfile is one of several unnecessary steps when you already use a spfileQuestion: why specify scope = spfile instead of other options for "scope".
Answer: this particular setting is "unchangeable." Please see the documentation on this parameter in the reference manual. The "editable" property is shown as 'NO '. Perhaps the use of the term 'editable' oracle is a little misleading. This means that the parameter is not dynamically editable. Therefore, the scope of the ALTER SYSTEM cannot for the spfile, memory (the running instance).Question: Why can I restart the database?
Answer: even once, this particular parm is not dynamic. Therefore, it requires a restart of the database to pick up the change after the spfile has been changed through the ALTER SYSTEM... SCOPE = SPFILE command. -
ORA-04031: unable to allocate 4120 bytes of shared memory
Guys,
OS = RHEL-3, 64-bit
10.2.0.5
node 2 CARS db
We continuously reeving error in alert log file below.
ORA-00603: ORACLE Server Session concluded with fatal error
ORA-00604: an error has occurred at the SQL level 1 recursive
ORA-04031: unable to allocate 4120 bytes of shared memory ('shared pool', ' select name, $ online, content... ") (","Typecheck","kgghteInit")
ORA-00604: an error has occurred at the SQL level 1 recursive
ORA-04031: unable to allocate 32 bytes of shared memory ('shared pool', 'select count (*) from sys.job... "," sql area', 'tmp')
ORA-04031: unable to allocate 4120 bytes of shared memory ('shared pool', "select / * + index (idl_ub1$ i_...","Typecheck","kgghteInit") ")
-etc...
shared_pool_size = 608 M
BMG = 9 GB
Parameter file-
process = 2000
sessions = 2205
SGA_MAX_SIZE = 26843545600
shared_pool_size = 637534208
LARGE_POOL_SIZE = 0
JAVA_POOL_SIZE = 117440512
STREAMS_POOL_SIZE = 536870912
filesystemio_options = SETALL
SGA_TARGET = 0
control_files = STGRACDB01/STGDB/control/control01.ctl, STGRACDB02/STGDB/control/control02.ctl, /STGRACDB03/STGDB/control/control03.ctl
control_file_record_keep_time = 14
DB_BLOCK_SIZE = 8192
__db_cache_size = 7516192768
db_cache_size = 7516192768
db_writer_processes = 2
compatible = 10.2.0.5
Log_archive_dest_1 = LOCATION = / STGRACDB04/STGDB/archives
log_archive_format = %t_%s_%R.dbf
log_buffer = 30455808
DB_FILES = 800
db_file_multiblock_read_count = 16
cluster_database = TRUE
cluster_database_instances = 2
thread = 2
instance_number = 2
UNDO_MANAGEMENT = AUTO
undo_tablespace = UNDOTBS2
UNDO_RETENTION = 900
Remote_login_passwordfile = EXCLUSIVE lock
instance_name = STGDB2
noms_service = STGDB, SYS$ STRMADMIN.CAPTURE_DEVTRAVST1_QUEUE.STGDB.SAPIAS.COM, STGDB.SAPIAS.COM
dispatchers = (PROTOCOL = TCP) (SERVICE = STGDBXDB)
session_cached_cursors = 70
JOB_QUEUE_PROCESSES = 10
usequeue_interval = 1
CURSOR_SHARING = SIMILAR
hash_area_size = 524288
background_dump_dest = / app/oracle/admin/STGDB/bdump
user_dump_dest = / app/oracle/admin/STGDB/udump
core_dump_dest = / app/oracle/admin/STGDB/cdump
audit_file_dest = / app/oracle/admin/STGDB/adump
session_max_open_files = 20
Open_links = 150
open_links_per_instance = 150
optimizer_features_enable = 10.2.0.4
sort_area_size = 0
db_name = STGDB
db_unique_name = STGDB
open_cursors = 300
optimizer_mode = CHOOSE
optimizercost_based_transformation = OFF
pga_aggregate_target = 996147200
PGAmax_size = 1288490188
optimizerjoin_elimination_enabled = TRUE
optimizer_secure_view_merging = FALSE
-Can someone help me on this issue? I think that this is not a simple matter to ignore and his Dungeon to throw in alertlog file.
Thank you
HariWhy not just increase the size of your shared_pool_size parameter? It is not very big at the moment, maybe make 1 G.
And while you're at it, you need to sort the PGA. You have the overall goal set at less than 1 G, and at the same time you have set the limit of session pgamax_size to more than 1 G, which is impossible.
Maybe you are looking for
-
Series Tecra S2 and RS232 in MS/DOS
I have the problem that my RS232 does not work 100% in MS/DOS. In Windows XP, the RS232 interface works fine. What can I do? [email protected]
-
Satellite Pro L300 - installation of Linux RHES4 cannot find HARD drive
Hello I have a Toshiba Satellite Pro L300 and it comes with preinstalled Vista, I loaded the XP due to the fact that I was going to see if I could load linux Redhat Enterprise 4 and dualboot both operating systems at the same time but discovered this
-
Satellite P300 - Microphone is not working after installing Windows 7
Hello I recently did a clean install of Windows 7 on my Satellite P300. The microphone has been fine with Vista but does not currently work with Windows 7.I tried to go to the sound section and it does not list the casting Mike - just struggling. Can
-
Office jet pro l7590 ink cartridges HP.
How canI say when and what cartrdgeis low on ink and must set the example? DD39
-
Lack of Volume and the network icon in the Notification area
I lost my volume and internet icons in the notification area. I'm going to the properties of the taskbar and put into service, and on the notification area tab, I only have the clock and checked power. I can see the volume and the network listed, b