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 AM
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.
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 ?
Similar Messages
-
Oracle 11g - Date Issue?
Oracle 11g - Date Issue?
=====================
I hope this is the right forum for this issue, if not let me, where to go.
We are using Oracle 11g (11.2.0.1.0) on (Platform : solaris[tm] oe (64-bit)), Sql Developer 3.0.04.
Our NLS_DATE_FORMAT = 'DD-MON-RR'
Using 'RR' in the format forces two-digit years less than or equal to 49 to be interpreted as years in the 21st century (2000–2049), and years 50 and over, as years in the 20th century (1950–1999). Setting the RR format as the default for all two-digit year entries allows you to become year-2000 compliant. For example:
We have a date '01-JUN-31' in our source system. It treat this date as 01-JUN-2031' instead of '01-JUN-1931'. One century forward.
Do we able to resolve using NLS_DATE_FORMAT change?
How do we resolve this issue?
Thanks in helping.qwe16235 wrote:
Our source is Oracle data base, where S_date is defined as DATE. Why did you say STRING , when it defined as DATE data type?I doubt you source is an Oracle database. You may have it stored in an Oracle database, but it cam form somewhere else, and was very likely inserted into the table as a string, wherever it came from. Given a string that resembles a date, Oracle will try to convert it to a date using the nls_date_format parameter for the session (which can either be set in the session or inherited form the database). Perhaps this will help explain:
SQL> create table t (conv_type varchar2(10), dt date);
Table created.
SQL> alter session set nls_date_format = 'dd-mon-rr';
Session altered.
SQL> insert into t values ('Implicit', '01-jun-31');
1 row created.
SQL> insert into t values ('Explicit', to_date('01-jun-1931', 'dd-mon-yyyy'));
1 row created.
SQL> commit;
Commit complete.
SQL> select conv_type, to_char(dt, 'dd-mon-yyyy') dt
2 from t;
CONV_TYPE DT
Implicit 01-jun-2031
Explicit 01-jun-1931So, unless you are really inserting dates, not strings that look like dates, you are going to have problems.
John -
Oracle 11g R2 hangs after parameter processes incresed
Hi,
I am running an Oracle 11g R2 on a Solaris box. I was getting some Critical alert messages about the "Process Limit %" metric. So I decided to increase the value of the processes database parameter from 200 to 400. After that the system is very slow and hanging with a lot of "Log file sync" and "log file parallel write" events.
I have rolled it back to 200 and now the system is working fine again, but I am concern about getting again the alert about the "process limit %".
Is there any other parameter that I need to tune together with the increase of the proccesses on?
Regards,It looks like the issue is not related with the processes change.
If I reboot then db and then restart the process it runs fine. Something happens during on the db during the day that make the nightly schedule task takes forever. When I checked it this morming there were a lot of commit activity. If I cancel the process and then try to restart it again without rebooting the db the problem persist. But if I bounce the database and then run it, it will complete fine.
Below is AWR periord comparisson report. The first period is when I cancelled the process and then tried to run it again. The second one is after the database reboot.
I appreciate any advice.
Snapshot Set DB Name DB Id Instance Inst num Release Cluster Host Std Block Size
First (1st) DMFEPRD 3155815743 dmfeprd 1 11.2.0.1.0 NO uscndb18 8192
Second (2nd) DMFEPRD 3155815743 dmfeprd 1 11.2.0.1.0 NO uscndb18 8192
Snapshot Set Begin Snap Id Begin Snap Time End Snap Id End Snap Time Avg Active Users Elapsed Time (min) DB time (min)
1st 2700 25-Jun-11 12:17:51 (Sat) 2701 25-Jun-11 12:23:40 (Sat) 2.69 5.82 15.65
2nd 2702 25-Jun-11 12:47:17 (Sat) 2703 25-Jun-11 12:52:52 (Sat) 2.40 5.58 13.39
%Diff -10.78 -4.12 -14.44
Host Configuration Comparison
1st 2nd Diff %Diff
Number of CPUs: 32 32 0 0.0
Number of CPU Cores: 4 4 0 0.0
Number of CPU Sockets: 1 1 0 0.0
Physical Memory: 65408M 65408M 0M 0.0
Load at Start Snapshot: 6.14 2.03 -4.12 -66.9
Load at End Snapshot: 6.95 4.67 -2.28 -32.8
%User Time: 13.43 13.04 -.38 -2.9
%System Time: 6.95 1.26 -5.69 -81.9
%Idle Time: 79.62 85.7 6.07 7.6
%IO Wait Time: 0 0 0 0.0
Cache Sizes
1st (M) 2nd (M) Diff (M) %Diff
Memory Target 10,240.0 10,240.0 0.0 0.0
.....SGA Target 6,656.0 6,656.0 0.0 0.0
..........Buffer Cache 672.0 672.0 0.0 0.0
..........Shared Pool 1,472.0 1,472.0 0.0 0.0
..........Large Pool 64.0 64.0 0.0 0.0
..........Java Pool 224.0 224.0 0.0 0.0
..........Streams Pool 64.0 64.0 0.0 0.0
.....PGA Target 3,584.0 3,584.0 0.0 0.0
Log Buffer 18.6 18.6 0.0 0.0
Load Profile
1st per sec 2nd per sec %Diff 1st per txn 2nd per txn %Diff
DB time: 2.69 2.40 -10.78 0.96 0.14 -85.42
CPU time: 0.90 2.13 136.67 0.32 0.12 -62.50
Redo size: 28,238.40 149,564.99 429.65 10,057.71 8,577.01 -14.72
Logical reads: 8,840.64 21,941.38 148.19 3,148.78 1,258.26 -60.04
Block changes: 176.06 1,032.02 486.18 62.71 59.18 -5.63
Physical reads: 1.82 37.36 1,952.75 0.65 2.14 229.23
Physical writes: 6.69 25.16 276.08 2.38 1.44 -39.50
User calls: 118.44 318.49 168.90 42.19 18.26 -56.72
Parses: 91.31 492.38 439.24 32.52 28.24 -13.16
Hard parses: 4.73 31.89 574.21 1.68 1.83 8.93
W/A MB processed: 908,952.26 4,708,929.40 418.06 323,742.82 270,039.92 418.06
Logons: 18.65 41.19 120.86 6.64 2.36 -64.46
Executes: 109.63 584.01 432.71 39.05 33.49 -14.24
Transactions: 2.81 17.44 520.64
1st 2nd Diff
% Blocks changed per Read: 1.99 4.70 2.71
Recursive Call %: 84.16 92.70 8.53
Rollback per transaction %: 0.00 0.00 0.00
Rows per Sort: 1,620.17 1,194.14 -426.02
Avg DB time per Call (sec): 0.02 0.01 -0.02 -
Dear Friends,
We are running oracle 10.2.0.4 and HP-UX 11i v3. We have upgraded oracle 11g. Upgrade has completed successfully and after that We have installed the Oracle 11g client.
Now we are trying to execute command sqlplus "/ as sysdba" but it is giving the error message as below.
jkepdvr:oraepd 1> sqlplus "/ as sysdba"
/usr/lib/hpux64/dld.so: Unable to find library 'libsqlplus.so'.
Killed
Regards
Ganesh Datt TiwariHi Ganesh,
Are you able to execute the same command with the ora<sid> user . If
yes then could you please check if the environment variables for the
<sid> adm has been set properly .
Please refer the below notes -:
Note 96858: Environment variables (UNIX)
Note 602843 : Environment settings for R/3/Oracle on UNIX
If the issue is not solved please provide these outputs
Log in as <SID>adm user and please provide me the output of the
following -:
whoami
env > environment_var_SID_ADM.txt
Again log in as ORA<SID> user and do the same -:
whoami
env > environment_var_ORA_SID.txt
Please upload both the files to the message-:
environment_var_SID_ADM.txt
environment_var_ORA_SID.txt
These files would be located in the present working directory from
where the env command was executed.
The permission of sqlplus -:
ls -lrt $ORACLE_HOME/bin/sqlplus
With the <SID>adm user , check the following command -:
ls -alt $ORACLE_HOME/lib
Do you encounter any permission issue ?
Please upload the output of the following commands executed as <sid>adm
to this message:
- cat /etc/group
- cat /etc/passwd
- ls -ltr $ORACLE_HOME/bin/oracle
- ldd /usr/sap/PRD/SYS/exe/run/dboraslib.so
I hope it helps.
Regards,
Naveen. -
Hello,
I have installed oracle 11g on windows 7. Installation and database creation was successfull but after creating database listener should automatically up and start
but i am not able to listener in the services window and not able to conntest database using connect string.
I tried to create new listener using netca but it is hanging ..
I have downloaded this software from oracle website.
any idea where can i check to resolve this issue.944589 wrote:
Hi,
I had the same problem as the OP, and I followed these instructions to try and see which error was raised by the listener when it started.
Weird thing is, after deleting the listener.ora file and restarting the listener with the "lsnrctl start" command, it worked !
The only additional thing I did is (as written in some obscure Oracle documentation) create a loopback network adapter (because my PC is DHCP-based).
Now I have rebooted my PC, and it still works. Go figure...
I hate Oracle. They shouldn't have been authorized to buy back Sun. My prediction is that Java is going the same way as their DB : it's gonna be a mess... :(Just because you can't make things work and find the documentation obscure doesn't mean things don't work. Its not Access with point-click you see!
Aman.... -
We have Oracle 11g (11.1.0.6) on HP-UX environment with CC&B application. It was working fine and after we upgrade the database to 11.1.0.7 last week, since then the database performance is really slow. After we upgrade the database we notice that xdb component became invalid.
We are not sure how to investigate this issue, any help would be appreciated.WORKLOAD REPOSITORY report for
DB Name DB Id Instance Inst Num Startup Time Release RAC
CCBPROD 3218377102 ccbprod 1 10-Jan-12 20:26 11.1.0.7.0 NO
Host Name Platform CPUs Cores Sockets Memory(GB)
huccbhp5 HP-UX IA (64-bit) 4 4 2 23.97
Snap Id Snap Time Sessions Curs/Sess
Begin Snap: 43912 11-Jan-12 10:00:31 157 96.1
End Snap: 43913 11-Jan-12 11:00:35 186 101.3
Elapsed: 60.08 (mins)
DB Time: 653.40 (mins)
Cache Sizes Begin End
~~~~~~~~~~~ ---------- ----------
Buffer Cache: 12,160M 12,096M Std Block Size: 8K
Shared Pool Size: 704M 704M Log Buffer: 58,764K
Load Profile Per Second Per Transaction Per Exec Per Call
~~~~~~~~~~~~ --------------- --------------- ---------- ----------
DB Time(s): 10.9 0.5 0.02 0.02
DB CPU(s): 3.6 0.2 0.01 0.01
Redo size: 529,539.6 24,544.1
Logical reads: 155,545.5 7,209.5
Block changes: 2,047.0 94.9
Physical reads: 204.6 9.5
Physical writes: 96.0 4.5
User calls: 698.7 32.4
Parses: 77.8 3.6
Hard parses: 0.1 0.0
W/A MB processed: 406,873.3 18,858.5
Logons: 0.4 0.0
Executes: 456.1 21.1
Rollbacks: 19.6 0.9
Transactions: 21.6
Instance Efficiency Percentages (Target 100%)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Buffer Nowait %: 100.00 Redo NoWait %: 99.97
Buffer Hit %: 99.87 In-memory Sort %: 100.00
Library Hit %: 99.93 Soft Parse %: 99.89
Execute to Parse %: 82.95 Latch Hit %: 99.99
Parse CPU to Parse Elapsd %: 0.01 % Non-Parse CPU: 99.93
Shared Pool Statistics Begin End
Memory Usage %: 89.78 90.02
% SQL with executions>1: 86.04 84.87
% Memory for SQL w/exec>1: 86.22 86.03
Top 5 Timed Foreground Events
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Avg
wait % DB
Event Waits Time(s) (ms) time Wait Class
virtual circuit wait 2,170,696 15,761 7 40.2 Network
DB CPU 13,115 33.5
db file sequential read 362,802 6,304 17 16.1 User I/O
enq: TX - row lock contention 115 1,118 9721 2.9 Applicatio
log file sync 8,183 818 100 2.1 Commit
Host CPU (CPUs: 4 Cores: 4 Sockets: 2)
~~~~~~~~ Load Average
Begin End %User %System %WIO %Idle
3.28 3.93 93.1 2.3 2.8 4.6
Instance CPU
~~~~~~~~~~~~
% of total CPU for Instance: 91.1
% of busy CPU for Instance: 95.4
%DB time waiting for CPU - Resource Mgr: 0.0
Memory Statistics
~~~~~~~~~~~~~~~~~ Begin End
Host Mem (MB): 24,545.7 24,545.7
SGA use (MB): 13,312.0 13,312.0
PGA use (MB): 935.9 949.3
% Host Mem used for SGA+PGA: 58.05 58.05 -
hi all,
am using oracle 11g enterprise edition., i didn't ran any query but in ADDR report it was running some sytem based query(SYS,DBSNMP,SYSMAN etc)
but in previous 10g it was working fine.. can anyone tell me how to stop those query..
this is the query was running most frequently :
select end_time, wait_class#, (time_waited_fg)/(intsize_csec/100), (time_waited)/(intsize_csec/100), 0
from v$waitclassmetric union all
select fg.end_time, -1, fg.value, bg.value, dbtime.value
from v$sysmetric fg, v$sysmetric bg, v$sysmetric dbtime
where bg.metric_name = 'Background CPU Usage Per Sec' and bg.group_id = 2 and fg.metric_name = 'CPU Usage Per Sec' and fg.group_id = 2 and dbtime.metric_name = 'Average Active Sessions' and dbtime.group_id = 2 and bg.end_time = fg.end_time and fg.end_time = dbtime.end_time order by end_time,wait_class#
UPDATE MGMT_JOB_EXECUTION SET STEP_STATUS=:B2 WHERE STEP_ID=:B1Velsjeya wrote:
hi all,
am using oracle 11g enterprise edition., i didn't ran any query but in ADDR report it was running some sytem based query(SYS,DBSNMP,SYSMAN etc)
but in previous 10g it was working fine.. can anyone tell me how to stop those query..
this is the query was running most frequently :
select end_time, wait_class#, (time_waited_fg)/(intsize_csec/100), (time_waited)/(intsize_csec/100), 0
from v$waitclassmetric union all
select fg.end_time, -1, fg.value, bg.value, dbtime.value
from v$sysmetric fg, v$sysmetric bg, v$sysmetric dbtime
where bg.metric_name = 'Background CPU Usage Per Sec' and bg.group_id = 2 and fg.metric_name = 'CPU Usage Per Sec' and fg.group_id = 2 and dbtime.metric_name = 'Average Active Sessions' and dbtime.group_id = 2 and bg.end_time = fg.end_time and fg.end_time = dbtime.end_time order by end_time,wait_class#
UPDATE MGMT_JOB_EXECUTION SET STEP_STATUS=:B2 WHERE STEP_ID=:B1Why are you so concerned about background queries? Do you really think these queries uses high resource and have high elapsed time then you custom queries? The god way to diagnose a performance problem is to identify most resource intensive/time consuming program/module/code rather then running after background queries. Yes sometimes background queries too run slowly in rear cases and then you need to run dbms_stats.gather_dictionary_stats or dbms_stats.gather_fixed_objects_stats (https://blogs.oracle.com/optimizer/entry/fixed_objects_statistics_and_why) -
Oracle 11g decode issue with null
Hi,
we want to migrate from Oracle 10g to Oracle 11g and have an issue with decode.
The database has the following character set settings:
NLS_CHARACTERSET = AL32UTF8 in Oracle 11g and UTF8 in Oracle 10g
NLS_NCHAR_CHARACTERSET = AL16UTF16
If I try a select with decode which has null as first result argument I will get a wrong value.
select decode(id, null, null, name) from tab1;
("name" is a NVARCHAR2 field. Table tab1 has only one entry and "id" is not null.)
This select returns a value with characters which are splitted by 0 bytes.
In Oracle 10g the value without 0 bytes is delivered.
If I suround the decode with dump I get following results:
select dump(decode(id, null, null, name), 1016) from tab1;
Oracle 10g: Typ=1 Len=6 CharacterSet=AL32UTF8: 4d,61,72,74,69,6e
Oracle 11g: Typ=1 Len=12 CharacterSet=US7ASCII: 0,4d,0,61,0,72,0,74,0,69,0,6e
NLS_LANG has no effect on the character set of 'null' in Oracle 11g.
Non null literals work:
select dump(decode(id, null, 'T', name), 1016) from tab1;
Oracle 10g: Typ=1 Len=6 CharacterSet=UTF8: 4d,61,72,74,69,6e
Oracle 11g: Typ=1 Len=6 CharacterSet=AL32UTF8: 4d,61,72,74,69,6e
select dump(decode(id, null, N'T', name), 1016) from tab1;
Oracle 10g: Typ=1 Len=12 CharacterSet=AL16UTF16: 0,4d,0,61,0,72,0,74,0,69,0,6e
Oracle 11g: Typ=1 Len=12 CharacterSet=AL16UTF16: 0,4d,0,61,0,72,0,74,0,69,0,6e
Here the scripts for creating the table and the entry:
create table tab1 (
id NUMBER(3),
name NVARCHAR2(10)
insert into tab1 (id, name) values (1, N'Martin');
commit;
Is it possible to change the character set?
Could you please help me?
Regards
MartinThis doesn't have the problem.looks this doesn't solve the problem (of returning a value with characters which are splitted by 0 bytes):
SQL> select * from v$version where rownum = 1
BANNER
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
1 row selected.
SQL> select dump(decode(id, null, null, name), 1016) from tab1
union all
select dump(case id when null then null else name end, 1016) cs from tab1
DUMP(DECODE(ID,NULL,NULL,NAME),1016)
Typ=1 Len=12 CharacterSet=US7ASCII: 0,4d,0,61,0,72,0,74,0,69,0,6e
Typ=1 Len=12 CharacterSet=AL16UTF16: 0,4d,0,61,0,72,0,74,0,69,0,6e
2 rows selected.You need to explicitly convert the third parameter to char:
SQL> select dump(decode(id, null, to_char(null), name), 1016) from tab1
DUMP(DECODE(ID,NULL,TO_CHAR(NULL),NAME),1016)
Typ=1 Len=6 CharacterSet=WE8MSWIN1252: 4d,61,72,74,69,6e
1 row selected. -
I have Oracle 11g (11.1.0.6) in one server, and I have 10g (10.2.0.3) database in all other server. I am trying to do EXP (normal export not expdp) of my 10g database using the 11g client. I am getting the following error.
Export: Release 11.1.0.6.0 - Production on Wed Jul 22 15:17:03 2009
Copyright (c) 1982, 2007, Oracle. All rights reserved.
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Production
With the Partitioning, OLAP and Data Mining options
Export done in US7ASCII character set and AL16UTF16 NCHAR character set
server uses WE8MSWIN1252 character set (possible charset conversion)
EXP-00008: ORACLE error 1003 encountered
ORA-01003: no statement parsed
. . exporting table SNP_DT
EXP-00008: ORACLE error 904 encountered
ORA-00904: "MAXSIZE": invalid identifier
EXP-00008: ORACLE error 942 encountered
ORA-00942: table or view does not exist
EXP-00024: Export views not installed, please notify your DBA
EXP-00000: Export terminated unsuccessfully
Is there any way way to solve this. Could some one please help me.
Thanks
Mano
Edited by: Mano Rangasamy on Jul 22, 2009 3:24 PM
Edited by: Mano Rangasamy on Jul 22, 2009 3:26 PMI have the same issue, but my client (export) is 11.1.0.7.0 and my database is 11.1.0.6.0. I beleaved that the same versions (11) have to work toghether. But they do not.
Does it mean that I have to reinstall my client to have en export that works? -
Oracle 11G Configuration Issue
Hi All,
I am in the process of installing Oracle Forms and Reports 11g[11.1.2].
I have installed Oracle 11g, getting a issue while configuring it.
INST – 07249 :An Unexpected error occurred during the validation of Middleware home location
INST-07286: Specified Oracle Middleware home locationdoes not have version 10.3.5 of weblogic server.If the version is incorrect then configuring with the weblogic server will fail
WLS 10.3.5 have been installed, and I can access the Admin console.
I did checked for the WLS version in its registry file created on WLS installation to confirm its version number.
I have used the same middle ware home location which I used to install the WLS.
Please can you get me some information to overcome this issue?This is well explained from user's guide:
Stopping Node Manager Before Installing Oracle Forms and Reports (Windows Only)
If you are installing Oracle Forms and Reports on a Microsoft Windows operating system, you must make sure that the Node Manager utility that was installed with Oracle WebLogic Server is stopped before you begin the installation:
1. Verify the Oracle WebLogic Server Node Manager utility is stopped. If it is running, kill the process.
2. Determine if the nodemanager.properties file is present in the WebLogic_Home\common\nodemanager directory.
*1. If the nodemanager.properties file is not present, continue installing Oracle Forms and Reports.*
*2. If the nodemanager.properties file does exist, open it and verify that the ListenPort parameter is included and that it is set. If the ListenPort parameter is not included or set, edit the nodemanager.properties file so that it is similar to the*
following, where NODE_MANAGER_LISTEN_PORT represents the port the Node Manager listens on, such as 5556:
*3. ListenPort=NODE_MANAGER_LISTEN_PORT* -
Hello :
We recently migrated our database from 9.2.07 (RBO) to 11.2.0.1 (CBO) ( Solaris 10 Sparc 64 bit ). Ever since the migration happened we are experiencing the following issues:
1. Execution plans are very costly. ( Please note that we moved from RBO to CBO )
2. High Gets / Reads
3. High CPU Utilization
4. High waits on 'DB FILE SEQUENTIAL READ'
5. This situation is vitually killing all our applications performance.
I know that oracle 11g explicitly does not support RULE based optimizer , but is there any parameters that can force it go the RBO way.
I would really appreciate your help.
Regards,
BMPOfficially it is no more documented http://download.oracle.com/docs/cd/E11882_01/server.112/e10820/initparams165.htm#i1131532
but it is still accepted:
SQL> select * from v$version;
BANNER
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
PL/SQL Release 11.2.0.1.0 - Production
CORE 11.2.0.1.0 Production
TNS for Linux: Version 11.2.0.1.0 - Production
NLSRTL Version 11.2.0.1.0 - Production
SQL> alter system set optimizer_mode=rule;
System altered.
SQL> show parameter optimizer
NAME TYPE VALUE
optimizer_capture_sql_plan_baselines boolean FALSE
optimizer_dynamic_sampling integer 2
optimizer_features_enable string 11.2.0.1
optimizer_index_caching integer 0
optimizer_index_cost_adj integer 100
optimizer_mode string RULE
optimizer_secure_view_merging boolean TRUE
optimizer_use_invisible_indexes boolean FALSE
optimizer_use_pending_statistics boolean FALSE
optimizer_use_sql_plan_baselines boolean TRUEEdited by: P. Forstmann on 1 sept. 2010 20:21 -
Oracle 11g install issues on Windows 7
I have had some problems installing Oracle on Windows 7 in that it seemed to crash while checking prerequisites. After several attempts it for some reason continued the installation. I had accepted the default settings and was installing from a USB drive to the same drive. The install did have a few error messages along the way such as "file not found. F:\app\ben\product\11.2.0\dbhome_2\oc4j\j2ee\oc4j_applications\applications\em.ear" and ""file not found. F:\app\ben\product\11.2.0\dbhome_2\ctx\admin\dr0ulib.sql.sbs". Also, towards the end it gave a message "Template General_Purpose.dbc does not exist. Please specify an existing template for database creation. <OK>". Despite these errors it seemed to successfully install. On the other hand I cannot log in to it as I attempt to try to set up some kind of basic database for myself. I go to the BIN directory and run sqlplus with "system" as the username and the password I had specified, but get the error "ORA-12560: TNS:protocol adapter error". Googling around a bit I tried to see if Oracle Services was running, but only saw OracleMTSRecoveryService and OracleRemExecService (and could not work out how to get any service running beyond what was listed there). I set up the path ORACLE_HOME to the BIN directory but there was not change in the situation. I just need a to set up a basic database on my PC so I can mess around with it. How can I get this going?
Thanks,
Ben928175 wrote:
Hi i am study oracle sql server and i have some experience with mysql not with pl-sql an i ned to nkow what are the mininum system requarements to install oracle 11g and if some body of you ca tell to me what version of oracle ca i install in a 3.4 ghz CPU and 1512 Gb of ram only for learn i want this :) http://www.belvini.de/weingut/mID/861/moet-und-chandon.htm
Edited by: 928175 on Apr 17, 2012 4:24 AM
Edited by: 928175 on Apr 17, 2012 4:25 AMYou should not hijack someone else's thread for your own problems.
All installation requriements are found in the Installation Guides, under your particular product in the doc library at tahiti.oracle.com -
Oracle 11g stop working after installing Patch 1
I'm new to Oracle. I installed Oracle 11g Database this weekend. The installation went well with no problems. However, after installing the base system I then installed Patch1. I had no problems installing the patch. I restarted my system and then started the EM. I received the following message from the EM:
ORA-12505: TNS:listener does not currently know of SID given in connect descriptor (DBD ERROR: OCIServerAttach)
What does this mean and how do I fix it?
I then did an uninstall of Oracle 11g and then re-installed it. The problem went away. So I'm confidenced that the installation of Patch 1 caused the problem.
Thanks for your help.
LouI'm very sorry of the over sight on my part. My environment is as follows: Dell PowerEdge 1900 with 16gb of memory, 2 physical Quad processors and 4tb of disk space. I have the installed Oracle 11g on Windows 2008 Datacenter.
I am trying to upgrade as follows: Oracle Database 11g Release 11.1.0.6 to Oracle Database 11g Release 11.1.0.7. I will implement the Post Installation instruction to see what happens. It was an oversight on my part.
Thanks -
Oracle 11g performance issue ( BITMAP CONVERSION TO ROWIDS)
I have two instance of oracle 11g.
in both instance i fired same query.
one instance returns the result in 1sec but other instance returns the result in 10 sec
following is explain plan for bot instance
instance 1
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
| 0 | SELECT STATEMENT | | 1 | 143 | 59 (2)| 00:00:01 |
| 1 | HASH GROUP BY | | 1 | 143 | 59 (2)| 00:00:01 |
| 2 | VIEW | VM_NWVW_2 | 1 | 143 | 59 (2)| 00:00:01 |
| 3 | HASH UNIQUE | | 1 | 239 | 59 (2)| 00:00:01 |
| 4 | NESTED LOOPS | | | | | |
| 5 | NESTED LOOPS | | 1 | 239 | 58 (0)| 00:00:01 |
PLAN_TABLE_OUTPUT
| 6 | NESTED LOOPS | | 1 | 221 | 57 (0)| 00:00:01 |
| 7 | NESTED LOOPS | | 1 | 210 | 55 (0)| 00:00:01 |
| 8 | NESTED LOOPS | | 1 | 184 | 54 (0)| 00:00:01 |
| 9 | NESTED LOOPS | | 1 | 158 | 53 (0)| 00:00:01 |
| 10 | NESTED LOOPS | | 1 | 139 | 52 (0)| 00:00:01 |
| 11 | NESTED LOOPS | | 1 | 105 | 50 (0)| 00:00:01 |
|* 12 | INDEX RANGE SCAN | year_field | 1 | 29 | 2 (0)| 00:00:01 |
| 13 | SORT AGGREGATE | | 1 | 8 | | |
| 14 | INDEX FULL SCAN (MIN/MAX)| idx_bf_creation_date | 1 | 8 | 2 (0)| 00:00:01 |
|* 15 | TABLE ACCESS BY INDEX ROWID| OHRT_bugs_fact | 1 | 76 | 48 (0)| 00:00:01 |
|* 16 | INDEX RANGE SCAN | idx_bf_creation_date | 76 | | 1 (0)| 00:00:01 |
PLAN_TABLE_OUTPUT
|* 17 | TABLE ACCESS BY INDEX ROWID | OHRT_all_time_dimension | 1 | 34 | 2 (0)| 00:00:01 |
|* 18 | INDEX UNIQUE SCAN | unique_alltime_bug_instance_id | 1 | | 1 (0)| 00:00:01 |
| 19 | TABLE ACCESS BY INDEX ROWID | OHRT_all_time_dimension | 1 | 19 | 1 (0)| 00:00:01 |
|* 20 | INDEX UNIQUE SCAN | unique_alltime_bug_instance_id | 1 | | 1 (0)| 00:00:01 |
|* 21 | INDEX RANGE SCAN | bugseverity_instance_id_ref_id | 1 | 26 | 1 (0)| 00:00:01 |
|* 22 | INDEX UNIQUE SCAN | unique_alltime_bug_instance_id | 1 | 26 | 1 (0)| 00:00:01 |
| 23 | INLIST ITERATOR | | | | | |
|* 24 | TABLE ACCESS BY INDEX ROWID | OHMT_ANL_BUCKET | 1 | 11 | 2 (0)| 00:00:01 |
|* 25 | INDEX UNIQUE SCAN | SYS_C0053213 | 5 | | 1 (0)| 00:00:01 |
|* 26 | INDEX RANGE SCAN | FK_BUCKET_TYPE | 6 | | 0 (0)| 00:00:01 |
|* 27 | TABLE ACCESS BY INDEX ROWID | OHMT_ANL_BUCKET | 1 | 18 | 1 (0)| 00:00:01 |
instance 2
Plan
SELECT STATEMENT ALL_ROWS Cost: 22 Bytes: 142 Cardinality: 1
32 HASH GROUP BY Cost: 22 Bytes: 142 Cardinality: 1
31 VIEW VIEW SYS.VM_NWVW_2 Cost: 22 Bytes: 142 Cardinality: 1
30 HASH UNIQUE Cost: 22 Bytes: 237 Cardinality: 1
29 NESTED LOOPS
27 NESTED LOOPS Cost: 21 Bytes: 237 Cardinality: 1
25 NESTED LOOPS Cost: 20 Bytes: 219 Cardinality: 1
21 NESTED LOOPS Cost: 18 Bytes: 208 Cardinality: 1
19 NESTED LOOPS Cost: 17 Bytes: 183 Cardinality: 1
17 NESTED LOOPS Cost: 16 Bytes: 157 Cardinality: 1
14 NESTED LOOPS Cost: 15 Bytes: 138 Cardinality: 1
11 NESTED LOOPS Cost: 13 Bytes: 104 Cardinality: 1
3 INDEX RANGE SCAN INDEX REPORTSDB.year_field Cost: 2 Bytes: 29 Cardinality: 1
2 SORT AGGREGATE Bytes: 8 Cardinality: 1
1 INDEX FULL SCAN (MIN/MAX) INDEX REPORTSDB.idx_bf_creation_date Cost: 3 Bytes: 8 Cardinality: 1
10 TABLE ACCESS BY INDEX ROWID TABLE REPORTSDB.OHRT_bugs_fact Cost: 13 Bytes: 75 Cardinality: 1
9 BITMAP CONVERSION TO ROWIDS
8 BITMAP AND
5 BITMAP CONVERSION FROM ROWIDS
4 INDEX RANGE SCAN INDEX REPORTSDB.idx_OHRT_bugs_fact_2product Cost: 2 Cardinality: 85
7 BITMAP CONVERSION FROM ROWIDS
6 INDEX RANGE SCAN INDEX REPORTSDB.idx_bf_creation_date Cost: 2 Cardinality: 85
13 TABLE ACCESS BY INDEX ROWID TABLE REPORTSDB.OHRT_all_time_dimension Cost: 2 Bytes: 34 Cardinality: 1
12 INDEX UNIQUE SCAN INDEX (UNIQUE) REPORTSDB.unique_alltime_bug_instance_id Cost: 1 Cardinality: 1
16 TABLE ACCESS BY INDEX ROWID TABLE REPORTSDB.OHRT_all_time_dimension Cost: 1 Bytes: 19 Cardinality: 1
15 INDEX UNIQUE SCAN INDEX (UNIQUE) REPORTSDB.unique_alltime_bug_instance_id Cost: 1 Cardinality: 1
18 INDEX UNIQUE SCAN INDEX (UNIQUE) REPORTSDB.unique_alltime_bug_instance_id Cost: 1 Bytes: 26 Cardinality: 1
20 INDEX RANGE SCAN INDEX REPORTSDB.bugseverity_instance_id_ref_id Cost: 1 Bytes: 25 Cardinality: 1
24 INLIST ITERATOR
23 TABLE ACCESS BY INDEX ROWID TABLE OPSHUB.OHMT_ANL_BUCKET Cost: 2 Bytes: 11 Cardinality: 1
22 INDEX UNIQUE SCAN INDEX (UNIQUE) OPSHUB.SYS_C0040939 Cost: 1 Cardinality: 5
26 INDEX RANGE SCAN INDEX OPSHUB.FK_BUCKET_TYPE Cost: 0 Cardinality: 6
28 TABLE ACCESS BY INDEX ROWID TABLE OPSHUB.OHMT_ANL_BUCKET Cost: 1 Bytes: 18 Cardinality: 1
in both explain plan only difference is
9 BITMAP CONVERSION TO ROWIDS
8 BITMAP AND
5 BITMAP CONVERSION FROM ROWIDS
but is bitmap degrading performance lot?
or suggest me what other parameter i can see so 2nd instance gives me better performace.I see more differences.
In plan 1:
* 16 INDEX RANGE SCAN idx_bf_creation_date 76 1 (0) 00:00:01
in Plan 2:
1 INDEX FULL SCAN (MIN/MAX) INDEX REPORTSDB.idx_bf_creation_date Cost: 3 Bytes: 8 Cardinality: 1
So this is not about "bitmap" good/bad, it about the access strategy which changed due to differences in data statistics etc. To analyze more, I'd help a LOT if those plans would be formated in a good and same way, use around it to do so. -
Oracle 11g EM error after installation
Hi dears
I installed ORacle 11g on Windows. installation comipleted successfully, but I got an error at the end of the installation that:
"Enterprise Manager configuration failed due to the following error -
Error starting Databae Control
Refer to the log file at c:\..... for more details
You can retry configuring this database with Enterprise Manager later by manually running c:\..... "
What might be reason of this error? I and my friend installed 11gR1 on windows many times, and each time we got this error
any help will be appreciated
thank youAs requested already, post the log file. One thing, you need to ensure that you don't have the DHCP based system but would have a static IP for the machine otherwise you must install a loopback adaptor for the machine before you would configure the EM again. This may not be the error for your EM's failed installation but this is one of the prominent reasons for sure for the failure.
HTH
Aman....
Maybe you are looking for
-
How to display HTML file (on server path) to ADF jspx page ?
Hi Team, We have a requirement to display HTML content which is in tabular format on a page. This page is jspx page based on page template and this html has to be shown on a radio button select. I am trying to do this with Jquery but since the id of
-
Error message: libsmime3.dylib is in use and will not allow update
I tried to download the new firefox 5.0, for Mac OS10 when I put it into the application folder the error message showed up: libsmime3.dylib is in use and would not allow new version to replace old I have restarted the computer several times and stil
-
Cannot change location of catalog folder in Photoshop 2.0
I keep trying to edit the folder name for storing catalogs in the Edit/Preferences menu but each time I go to File/Catalog/Open it does not recognize my change and goes somewhere else.
-
Some mails in the Sent folder disappear
Some of a user's Sent items disapear and are not physically on the store disk. The user is sure that he did not delete them. Mail content of the remained emails is not complete. For example, in one mail, the attachment is missing. What could be the p
-
Internet connection very slow - ISP blames my computer...
Greetings, I have DSL connection that has been running very very slow... dialup slow... I use airport, so I unplugged it and connected the ethernet cable directly to the comp - with no results. I called my ISP, they tested the modem speed, reset the