===========================================================
oracle 10gR2streams[zt]
===========================================================
10gR2,oraclestreamõȫ,9iR210gR1,ҪStreamIJӦý̽õIJѾdbms_streams_admṩḶ́pre_instantiation_setup/post_instantiation_setupװ
streamֻҪ洢̾ͿԸ㶨!
鿴ȫ
xsb
:2008.04.29 11:49
:::
(
Oracle
)
::Ķ:(218)
::
(2)
::
(0)
===========================================================
Linux shell I/Oض(zt)
===========================================================
xsb
:2008.04.28 09:36
:::
(
OS
)
::Ķ:(85)
::
(1)
::
(0)
===========================================================
OracleндСдеIJѯ[zt]
===========================================================
ALTER SESSION SET NLS_SORT = BINARY_CI;
ALTER SESSION SET NLS_COMP = LINGUISTIC; 鿴ȫ
xsb
:2008.04.28 09:14
:::
(
Oracle
)
::Ķ:(148)
::
(0)
::
(0)
===========================================================
Oracle RAC 10gȺڵ
===========================================================
˲οOracleĹٷĵ,ԲοOracle߿ûһеĵ4Oracle߿֮RACܣҲOracle RACȺڵɾ
xsb
:2008.04.24 14:36
:::
(
Oracle
)
::Ķ:(141)
::
(0)
::
(0)
===========================================================
Oracle RAC 10gȺڵɾ[zt]
===========================================================
ڱУҽ۴Oracle RAC 10gڶ漯ȺɾڵҪIJ衣
ʾĿģĻһڵ RedHat Linux Ⱥ
| ڵ | ݿ汾 | ʵ | ϵͳں˰汾 | ļϵͳ | Ⱥ |
RACDB | ڵ -- Rac10g01Rac10g03 | 10.2.0.1 | ĸʵ -- RACDB1RACDB2 | Red Hat Enterprise Linux AS 4 2.6.9-42.ELsmp | OCFS2 ASM | Oracle Ⱥ |
ù̽ͨ3ʵ
1. ɾݿʵ
2. ɾASMʵ
3. ɾڵ
鿴ȫ
xsb
:2008.04.24 14:18
:::
(
Oracle
)
::Ķ:(172)
::
(0)
::
(0)
===========================================================
ݿļϵͳתASMʵ¼[zt]
===========================================================
ʵ黷WinXP SP2
ݿ汾10.2.0.1
ǨƵݿʵTEST
ASMʵ+ASM
ASM飺+TEST 鿴ȫ
xsb
:2008.04.24 14:14
:::
(
Oracle
)
::Ķ:(112)
::
(0)
::
(0)
===========================================================
ַ(1,2,3,4,5)תΪڴʽ
===========================================================
CREATE OR REPLACE FUNCTION f_str2tab(p_str IN VARCHAR2 --ַ,ʽΪ1,2,3,4,5
) RETURN type_varc IS
/******************************************************************
Ver1.0 Created by xsb on 2008-04-14
ַ(1,2,3,4,5)תΪڴʽ
create or replace type type_varc is table of varchar2(1000);
:SELECT * FROM TABLE(f_str2tab('a,s,d,12,3,4,5'));
******************************************************************/ 鿴ȫ
xsb
:2008.04.14 10:52
:::
(
Oracle
)
::Ķ:(110)
::
(1)
::
(0)
===========================================================
oracle10g ASM transport_tablespace
===========================================================
Solution1:
sourcewindows2003 32bit,oracle10g 10.2.0.2
target:IBM aix 64bit,oracle10g 10.2.0.3,RAC,ASM
Solution2:
sourceHP UX 64bit,oracle10g 10.2.0.3,RAC,ASM
target:IBM aix 64bit,oracle10g 10.2.0.3,RAC,ASM
鿴ȫ
xsb
:2008.03.06 16:21
:::
(
Oracle
)
::Ķ:(161)
::
(2)
::
(0)
===========================================================
read only tablespace backup restore
===========================================================
HP UX,Oracle10g 10.2.0.3,RAC,ASM 鿴ȫ
xsb
:2008.03.06 16:12
:::
(
Oracle
)
::Ķ:(93)
::
(2)
::
(0)
===========================================================
Oracle 9i & 10gݿϵṹ
===========================================================
xsb
:2008.01.28 09:50
:::
(
Oracle
)
::Ķ:(302)
::
(0)
::
(0)
===========================================================
mlog$HWM
===========================================================
mlog$HWM߿ܻᵼ⡣ֹͣն˵ˢҵֹˢһͬҵ˵mlog$ȷЩΪգȻtruncate mlog$ָͬҵָҵ˵Ŀͻӡ
xsb
:2008.01.03 10:28
:::
(
Oracle
)
::Ķ:(159)
::
(0)
::
(0)
===========================================================
update restart
===========================================================
Please note consistent read and current read when UPDATE statment start.
鿴ȫ
xsb
:2007.12.28 09:26
:::
(
Oracle
)
::Ķ:(141)
::
(1)
::
(0)
===========================================================
commit_write
===========================================================
Oracle10gпcommitΪcommit֮Ȩ̷ظûOracleǡʱLGWRonline redo logļ
鿴ȫ
xsb
:2007.12.26 13:58
:::
(
Oracle
)
::Ķ:(164)
::
(0)
::
(0)
===========================================================
analyze table
===========================================================
analyze TABLE a COMPUTE statistics FOR TABLE;ԱͳƷ,Ӱall_tablesе
analyze TABLE b COMPUTE statistics FOR ALL indexed columns;ͳƷ,Ӱall_tab_columns
analyze TABLE c COMPUTE statistics FOR TABLE FOR ALL indexed columns;ԱͳƷ,Ӱall_tablesжӦݼall_tab_columnsжӦ е
analyze TABLE d COMPUTE statistics;кͱϢ,Ӱall_tablesжӦݼall_tab_columnsڱd е
xsb
:2007.12.04 10:11
:::
(
Oracle
)
::Ķ:(230)
::
(0)
::
(0)
===========================================================
True Session Wait Activity in Oracle 10g[zt]
===========================================================
With Oracle 10g this has all been nicely taken over for us. Oracle will now sample data through internal kernel code for statistics similar to what was seen in the V$SESSION_WAIT view and store it in a limited amount of buffer space, 2 Meg per CPU. We can view these statistics by querying the new V$ACTIVE_SESSION_HISTORY view. The V$ACTIVE_SESSION_HISTORY view contains one row of sampled activity for each session that was active, either on the CPU or actually waiting for a resource. As this buffer gets full, because of the activity on the system, Oracle will move the captured statistics to disk as part of the Automatic Workload Repository (AWR) snapshot mechanism and it will now be available through the DBA_HIST_ACTIVE_SESS_HISTORY view. When querying for current information, depending on the activity of your system, you may need to go to both views to construct a valid picture of what has happened. The important thing to remember here is that this is historical activity of the waits that have occurred for SQL executed and we can now go back in time and look at what was the true cause of performance bottlenecks. Be forewarned that since the statistics are stored in the rotating buffer and are only moved to the DBA_HIST_ACTIVE_SESS_HISTORY through a snapshot, you may loose statistics. In addition, when the snapshot mechanism (AWR) does kick in and does its work to move database statistics between V$ACTIVE_SESSION_HISTORY and DBA_HIST_ACTIVE_SESS_HISTORY, it only takes a sampling of the data in V$ACTIVE_SESS_HISTORY for the snapshot. Furthermore, when AWR does kick in, it only takes a sampling of the data in V$ACTIVE_SESS_HISTORY for the snapshot. What this means is that you need to either catch what you want in the V$ACTIVE_SESS_HISTORY view before a snapshot or have your own scrapping utility again. For this reason, this article will only be concerned with querying off of the V$ACTIVE_SESS_HISTORY view to show a few ways you might want to query for information that had not been available before.
鿴ȫ
xsb
:2007.11.27 09:52
:::
(
Oracle
)
::Ķ:(197)
::
(0)
::
(0)
===========================================================
Oracle10g RAC ASM[zt]
===========================================================
xsb
:2007.11.20 15:08
:::
(
Oracle
)
::Ķ:(251)
::
(0)
::
(0)
===========================================================
DATA GUARDSTANDBY SWITCHOVERл[zt]
===========================================================
Ref:DATA GUARDSTANDBY SWITCHOVERл
һSWITCHOVERлǼƻелصлᶪʧκεݣǿģDATA GUARDᱻƻԭDATA GUARDеSTANDBYԼ
ڽDATA GUARDSTANDBYлǰҪע
鿴ȫ
xsb
:2007.11.13 16:20
:::
(
Oracle
)
::Ķ:(217)
::
(0)
::
(0)
===========================================================
Զ˺ͱش洢̼䴫[zt]
===========================================================
ڱصĴ洢ֱӣֱӴǺ.Զ˴洢̣ʹȫͬļͣҲǻᱨģڱĶأOracleȷرԶ˱ͬġԶбDECLARE
V_NAME PA_TEST.T_NAME@YTK102.YTK_THINKPAD;
BEGIN
...
鿴ȫ
xsb
:2007.10.19 13:18
:::
(
Oracle
)
::Ķ:(202)
::
(0)
::
(0)
===========================================================
first_rows_nall_rows[zt]
===========================================================
first_rows_nall_rowsoracle optimizer_modeѡ,ʲô,ŻôӰ?һ.10053¼ܸǴ𰸡
鿴ȫ
xsb
:2007.10.12 16:48
:::
(
Oracle
)
::Ķ:(214)
::
(0)
::
(0)
===========================================================
Oracle ݿ 11gҪ[zt]
===========================================================
xsb
:2007.10.12 15:07
:::
(
Oracle
)
::Ķ:(233)
::
(0)
::
(0)
===========================================================
Oracle10gFlashback version Query
===========================================================
http://www.eygle.com/archives/2005/03/oracle10gaeflas.html
SELECT versions_starttime, versions_endtime, versions_xid, versions_operation, a.*
FROM system_config versions BETWEEN TIMESTAMP minvalue AND maxvalue a
WHERE config_key = '***';
SELECT versions_starttime, versions_endtime, versions_xid, versions_operation, a.*
FROM system_config versions BETWEEN TIMESTAMP SYSDATE-10/24/60 AND SYSDATE a
WHERE config_key = '***'
ORDER BY nvl(versions_starttime,SYSDATE-999);
xsb
:2007.09.27 11:52
:::
(
Oracle
)
::Ķ:(243)
::
(4)
::
(0)
===========================================================
Oracle 11g--ݹ鵵(flashback data archive)[zt]
===========================================================
xsb
:2007.09.24 14:38
:::
(
Oracle
)
::Ķ:(240)
::
(0)
::
(0)
===========================================================
Oracle11g-PLSQLһ[zt]
===========================================================
xsb
:2007.09.12 14:04
:::
(
Oracle
)
::Ķ:(209)
::
(0)
::
(0)
===========================================================
Oracle11g Data Guard[zt]
===========================================================
11gˣoracleٷվϷ˲ٰƤ顣ǹoracle11g Data Guardص(ʵõģPhysical standby with Real Time Query)
鿴ȫ
xsb
:2007.07.23 12:49
:::
(
Oracle
)
::Ķ:(344)
::
(5)
::
(0)
===========================================================
Oracle 11gʮ[zt]
===========================================================
ʱ2007712 Ĺ˾ŦԼƳOracleݿ11gķʾΪֹƳвƷУOracleݿ11gߴԺߵ
°ݿǿOracleݿصݿ⼯ȺԶܡĿͻڰȫġ߶ȿúͿչġɵͳɱʹ洢豸ɵ̵Ľ״ݲֿݹӦá
鿴ȫ
xsb
:2007.07.23 12:46
:::
(
Oracle
)
::Ķ:(554)
::
Permanent link
::
(0)
===========================================================
ALTER SYSTEM RESET
===========================================================
ALTER SYSTEM RESETڳSPFILEдIJá۵ʵϵͳRACǿʹõġΪļʹ˵ʵʵRACûʲôʵ
alter system reset paraname scope=spfile sid='*';
xsb
:2007.07.16 17:25
:::
(
Oracle
)
::Ķ:(261)
::
(0)
::
(0)
===========================================================
oracle10g AWR[zt]
===========================================================
Oracle10GԶɴ(AWR)
oracle10GµĽ:mmonmmnlMMONе˴ֵĹSGAֱռͳݡЩݶ洢SYSAUXռУWRM$_* WRH$_*ĸʽǰһʹ洢ԪϢݿͲɼĿգһͱʵʲɼͳݡµĽӿڰΪdbms_workload_repository.
鿴ȫ
xsb
:2007.07.16 16:49
:::
(
Oracle
)
::Ķ:(609)
::
(1)
::
(0)
===========================================================
expdp
===========================================================
expdp uid/pwd@db directory=testdir parallel=2 dumpfile=1.dmp,2.dmp query=t
est1:"where rownum<=100" ,test2:"where rownum<=100"
expdp uid/pwd@db directory=testdir parallel=2 dumpfile=1.dmp,2.dmp query=t
est1:"where rownum<=100" ,test2:"where rownum<=100" exclude=TABLE:"in ('T1','T2')"
xsb
:2007.06.22 10:47
:::
(
Oracle
)
::Ķ:(356)
::
(3)
::
(0)
===========================================================
Retrieve rows in order inserted updated (ora_rowscn)
===========================================================
upgrading to Oracle 10g and using
CREATE TABLE ... ROWDEPENDENCIES.
That would be better called last touched, not inserted, because for example updates also affects ora_rowscn.
鿴ȫ
xsb
:2007.05.09 11:49
:::
(
Oracle
)
::Ķ:(321)
::
(0)
::
(0)
===========================================================
βѯͷںŶѡȡеӦ[zt]
===========================================================
[zt]Ref: http://www.itpub.net/719692.htmlժҪ
һȥмһЩʣµ䣨ŶΣ֪ŶεֹúŶе֪һĺŶηΧѾȡĺŶΣõĺŶΣOracleṩǿIJѯԼǿԺɵĽ⡣
ؼʣ
Ŷѡȡϵ㡢βѯconnect byrownumlevelleadlag
鿴ȫ
xsb
:2007.04.12 12:43
:::
(
Oracle
)
::Ķ:(657)
::
(0)
::
(0)