Oracle資料庫啟動問題彙總(一)
1 啟動資料庫工具有哪些?
SQL*Plus RMAN Clund Control SRVCTL
2 Oracle啟動過程
nomount
(1)讀取引數檔案(spfilexxxxx.ora --> spfile.ora --> initxxxxx.ora --> init.ora ) (2)分配SGA (3)啟動後臺程式 (4)開啟告警檔案和跟蹤檔案
startup nomount
ORACLE instance started. Total System Global Area 1375728192 bytes Fixed Size 9134656 bytes Variable Size 1107296256 bytes Database Buffers 251658240 bytes Redo Buffers 7639040 bytes
告警日誌
2021-04-05T14:53:57.827628+08:00 Starting ORACLE instance (normal) (OS id: 3738) 2021-04-05T14:53:58.743067+08:00 **************************************************** /dev/shm will be used for creating SGA Large pages will not be used. Only standard 4K pages will be used **************************************************** 2021-04-05T14:53:58.744644+08:00 ********************************************************************** 2021-04-05T14:53:58.744733+08:00 Dump of system resources acquired for SHARED GLOBAL AREA (SGA) 2021-04-05T14:53:58.744924+08:00 Per process system memlock (soft) limit = 64K 2021-04-05T14:53:58.745002+08:00 Expected per process system memlock (soft) limit to lock instance MAX SHARED GLOBAL AREA (SGA) into memory: 1312M 2021-04-05T14:53:58.745122+08:00 Available system pagesizes: 4K, 2048K 2021-04-05T14:53:58.745239+08:00 Supported system pagesize(s): 2021-04-05T14:53:58.745301+08:00 PAGESIZE AVAILABLE_PAGES EXPECTED_PAGES ALLOCATED_PAGES ERROR(s) 2021-04-05T14:53:58.745365+08:00 4K Configured 335875 335875 NONE 2021-04-05T14:53:58.745427+08:00 Reason for not supporting certain system pagesizes: 2021-04-05T14:53:58.745528+08:00 2048K - Dynamic allocate and free memory regions 2021-04-05T14:53:58.745598+08:00 RECOMMENDATION: 2021-04-05T14:53:58.745661+08:00 1. Increase per process memlock (soft) limit to at least 1312MB to lock 100% of SHARED GLOBAL AREA (SGA) pages into physical memory 2021-04-05T14:53:58.745778+08:00 ********************************************************************** 2021-04-05T14:54:02.634886+08:00 LICENSE_MAX_SESSION = 0 LICENSE_SESSIONS_WARNING = 0 2021-04-05T14:54:02.674576+08:00 Initial number of CPU is 1 Number of processor cores in the system is 1 Number of processor sockets in the system is 1 Capability Type : Network capabilities requested : 7 detected : 0 Simulated : 0 Capability Type : Runtime Environment capabilities requested : 400000FF detected : 40000000 Simulated : 0 Capability Type : Engineered Systems capabilities requested : 7 detected : 0 Simulated : 0 Capability Type : Database Test capabilities requested : 3 detected : 0 Simulated : 0 Autotune of undo retention is turned on. IMODE=BR ILAT =51 LICENSE_MAX_USERS = 0 SYS auditing is enabled NOTE: remote asm mode is local (mode 0x1; from cluster type) NOTE: Using default ASM root directory ASM NOTE: remote asm mode is local (mode 0x1; from cluster type) NOTE: Cluster configuration type = NONE [2] Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production Version 19.3.0.0.0. ORACLE_HOME: /u01/app/oracle/product/19.0.0/dbhome_1 System name: Linux Node name: cjcos02 Release: 4.1.12-112.16.4.el7uek.x86_64 Version: #2 SMP Mon Mar 12 23:57:12 PDT 2018 Machine: x86_64 Using parameter settings in server-side spfile /u01/app/oracle/product/19.0.0/dbhome_1/dbs/spfilechendb.ora System parameters with non-default values: processes = 300 nls_language = "AMERICAN" nls_territory = "AMERICA" memory_target = 1312M memory_max_target = 1312M control_files = "/u01/app/oracle/oradata/chendb/control01.ctl" control_files = "/u01/app/oracle/oradata/chendb/control02.ctl" db_file_name_convert = "/u01/app/oracle/oradata/CJCDB/" db_file_name_convert = "/u01/app/oracle/oradata/chendb/" db_file_name_convert = "/u01/app/oracle/oradata/CJCDB/cjcpdb/" db_file_name_convert = "/u01/app/oracle/oradata/chendb/chenpdb/" log_file_name_convert = "/u01/app/oracle/oradata/CJCDB/" log_file_name_convert = "/u01/app/oracle/oradata/chendb/" log_file_name_convert = "/u01/app/oracle/oradata/CJCDB/cjcpdb/" log_file_name_convert = "/u01/app/oracle/oradata/chendb/chenpdb/" db_block_size = 8192 compatible = "19.0.0" log_archive_dest_1 = "LOCATION=/arch VALID_FOR=(ALL_LOGFILES,ALL_ROLES) DB_UNIQUE_NAME=chendb" log_archive_dest_2 = "SERVICE=cjcdb ASYNC VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=cjcdb" log_archive_dest_state_1 = "ENABLE" log_archive_dest_state_2 = "DEFER" fal_server = "cjcdb" log_archive_trace = 8191 log_archive_config = "DG_CONFIG=(chendb,cjcdb)" log_archive_format = "cjcpdb_arch_%t_%s_%r.arc" db_recovery_file_dest = "/flashbak" db_recovery_file_dest_size= 12G standby_file_management = "AUTO" enable_goldengate_replication= TRUE undo_tablespace = "UNDOTBS1" inmemory_size = 0 recyclebin = "OFF" remote_login_passwordfile= "EXCLUSIVE" dispatchers = "(PROTOCOL=TCP) (SERVICE=chendbXDB)" local_listener = "" audit_file_dest = "/u01/app/oracle/admin/chendb/adump" audit_trail = "DB" db_name = "cjcdb" db_unique_name = "chendb" open_cursors = 300 diagnostic_dest = "/u01/app/oracle" enable_pluggable_database= TRUE 2021-04-05T14:54:03.147651+08:00 ============================================================ NOTE: PatchLevel of this instance 0 ============================================================ 2021-04-05T14:54:03.975287+08:00 Starting background process PMON 2021-04-05T14:54:03.992203+08:00 PMON started with pid=2, OS id=4708 Starting background process CLMN 2021-04-05T14:54:04.006054+08:00 CLMN started with pid=3, OS id=4710 Starting background process PSP0 2021-04-05T14:54:04.024884+08:00 PSP0 started with pid=4, OS id=4712 Starting background process VKTM 2021-04-05T14:54:04.052807+08:00 VKTM started with pid=5, OS id=4714 at elevated (RT) priority 2021-04-05T14:54:04.054354+08:00 VKTM running at (1)millisec precision with DBRM quantum (100)ms Starting background process GEN0 2021-04-05T14:54:04.071337+08:00 GEN0 started with pid=6, OS id=4718 Starting background process MMAN 2021-04-05T14:54:04.089290+08:00 MMAN started with pid=7, OS id=4720 Starting background process GEN1 2021-04-05T14:54:04.341424+08:00 GEN1 started with pid=9, OS id=4724_4725 Starting background process DIAG 2021-04-05T14:54:04.359441+08:00 DIAG started with pid=8, OS id=4727 Starting background process OFSD 2021-04-05T14:54:04.382417+08:00 OFSD started with pid=11, OS id=4729_4730 2021-04-05T14:54:04.383366+08:00 Oracle running with ofslib:'Oracle File Server Library' version=2 Starting background process DBRM 2021-04-05T14:54:04.400036+08:00 DBRM started with pid=13, OS id=4732 Starting background process VKRM 2021-04-05T14:54:04.427328+08:00 VKRM started with pid=14, OS id=4734 Starting background process SVCB 2021-04-05T14:54:04.473411+08:00 SVCB started with pid=15, OS id=4736 Starting background process PMAN 2021-04-05T14:54:04.490490+08:00 PMAN started with pid=16, OS id=4738 Starting background process DIA0 2021-04-05T14:54:04.505805+08:00 DIA0 started with pid=17, OS id=4740 Starting background process DBW0 Starting background process LGWR 2021-04-05T14:54:04.526728+08:00 DBW0 started with pid=18, OS id=4742 Starting background process CKPT 2021-04-05T14:54:04.544698+08:00 LGWR started with pid=19, OS id=4744 2021-04-05T14:54:04.561591+08:00 CKPT started with pid=20, OS id=4746 Starting background process SMON 2021-04-05T14:54:04.577075+08:00 SMON started with pid=21, OS id=4748 Starting background process SMCO 2021-04-05T14:54:04.597831+08:00 SMCO started with pid=22, OS id=4750 Starting background process RECO 2021-04-05T14:54:04.612543+08:00 RECO started with pid=23, OS id=4752 Starting background process LREG 2021-04-05T14:54:04.642832+08:00 LREG started with pid=25, OS id=4756 Starting background process PXMN 2021-04-05T14:54:04.676015+08:00 PXMN started with pid=27, OS id=4760 Starting background process FENC 2021-04-05T14:54:04.691091+08:00 FENC started with pid=28, OS id=4762 Starting background process MMON 2021-04-05T14:54:04.710282+08:00 MMON started with pid=29, OS id=4764 Starting background process MMNL 2021-04-05T14:54:04.738900+08:00 MMNL started with pid=30, OS id=4766 2021-04-05T14:54:04.739519+08:00 starting up 1 dispatcher(s) for network address '(ADDRESS=(PARTIAL=YES)(PROTOCOL=TCP))'... starting up 1 shared server(s) ... Starting background process TMON 2021-04-05T14:54:04.794636+08:00 TMON started with pid=32, OS id=4773 Setting CPU count to 1 ORACLE_BASE from environment = /u01/app/oracle 2021-04-05T14:54:07.436278+08:00 PGA_AGGREGATE_LIMIT specified is high 2021-04-05T14:54:07.436427+08:00 WARNING: pga_aggregate_limit value is too high for the amount of physical memory on the system PGA_AGGREGATE_LIMIT is 2048 MB PGA_AGGREGATE_TARGET is 0 MB. physical memory size is 1993 MB limit based on physical memory and SGA usage is 1794 MB MEMORY_MAX_TARGET is 1312 MB Using default pga_aggregate_limit of 2048 MB
mount
裝載資料庫就是把資料庫檔案和例項關聯起來,包括以下三個步驟: (1)oracle根據引數檔案 SPFILE 中的引數找到控制檔案 (2)開啟控制檔案 (3)從控制檔案獲得資料字典和重做日誌檔案的名字及位置
SQL> alter database mount;
Database altered.
###告警日誌###
2021-04-05T14:54:46.103971+08:00 alter database mount 2021-04-05T14:54:50.430470+08:00 .... (PID:4774): Redo network throttle feature is disabled at mount time 2021-04-05T14:54:50.572280+08:00 Successful mount of redo thread 1, with mount id 3783209654 2021-04-05T14:54:50.573322+08:00 Database mounted in Exclusive Mode Lost write protection disabled .... (PID:4774): Using STANDBY_ARCHIVE_DEST parameter default value as /arch [krsd.c:18141] Completed: alter database mount 2021-04-05T14:55:07.815345+08:00 TMON (PID:4773): STARTING ARCH PROCESSES Starting background process ARC0 2021-04-05T14:55:07.841751+08:00 ARC0 started with pid=35, OS id=4886 Starting background process ARC1 Starting background process ARC2 2021-04-05T14:55:07.860736+08:00 ARC1 started with pid=36, OS id=4888 2021-04-05T14:55:07.875635+08:00 ARC2 started with pid=37, OS id=4890 Starting background process ARC3 2021-04-05T14:55:07.891033+08:00 ARC3 started with pid=38, OS id=4892 TMON (PID:4773): ARC0: Archival started TMON (PID:4773): ARC1: Archival started TMON (PID:4773): ARC2: Archival started 2021-04-05T14:55:07.892746+08:00 ARC0 (PID:4886): Becoming a 'no FAL' ARCH ARC0 (PID:4886): Becoming the 'no SRL' ARCH 2021-04-05T14:55:07.902777+08:00 TMON (PID:4773): ARC3: Archival started TMON (PID:4773): STARTING ARCH PROCESSES COMPLETE 2021-04-05T14:55:07.918333+08:00 TT00 (PID:4894): Gap Manager starting
open
(1)開啟資料庫時,例項將開啟所有處於聯機狀態的資料檔案和重做日誌檔案。 (2)在此期間,Oracle 伺服器將校驗所有的資料檔案和聯機日誌檔案能否開啟,並對資料庫作一致性檢查。 控制檔案中記錄的資料檔案頭檢查點計數 和 資料檔案頭檢查點計數對比,確認是否需要介質恢復。 控制檔案中記錄的資料檔案的結束SCN和資料檔案的開始SCN對比,確認是否需要例項恢復。
控制檔案中記錄的資料檔案頭檢查點計數: select file#,checkpoint_change# from v$datafile; 資料檔案頭檢查點計數: select file#,checkpoint_change# from v$datafile_header; 結束檢查點: select file#,last_change# from v$datafile;
###告警日誌###
2021-04-05T14:57:55.574435+08:00 alter database open 2021-04-05T14:57:55.899297+08:00 Ping without log force is disabled: instance mounted in exclusive mode. 2021-04-05T14:57:55.957848+08:00 Crash Recovery excluding pdb 2 which was cleanly closed. 2021-04-05T14:57:55.958142+08:00 Crash Recovery excluding pdb 3 which was cleanly closed. Endian type of dictionary set to little 2021-04-05T14:57:56.132383+08:00 Thread 1 advanced to log sequence 3 (thread open) Redo log for group 3, sequence 3 is not located on DAX storage 2021-04-05T14:57:56.250383+08:00 ARC0 (PID:4886): Evaluating LNO:2 T-1.S-2 2021-04-05T14:57:56.259800+08:00 Thread 1 opened at log sequence 3 Current log# 3 seq# 3 mem# 0: /u01/app/oracle/oradata/chendb/redo03.log Successful open of redo thread 1 2021-04-05T14:57:56.260196+08:00 MTTR advisory is disabled because FAST_START_MTTR_TARGET is not set stopping change tracking 2021-04-05T14:57:56.271368+08:00 Beginning to archive T-1.S-2 (SCN:0x00000000004e4f9e-SCN:0x00000000004e5a29) (chendb) 2021-04-05T14:57:56.280494+08:00 ARC1 (PID:4888): Evaluating LNO:2 T-1.S-2 ARC1 (PID:4888): Unable to archive T-1.S-2, already being archived 2021-04-05T14:57:56.527366+08:00 Closing local archive destination LOG_ARCHIVE_DEST_1: '/arch/cjcpdb_arch_1_2_1069079544.arc' (chendb) 2021-04-05T14:57:56.535889+08:00 ARC0 (PID:4886): Committing creation of archive log '/arch/cjcpdb_arch_1_2_1069079544.arc' 2021-04-05T14:57:56.944666+08:00 ARC0 (PID:4886): Archived Log entry 44 added for T-1.S-2 ID 0xe17eebaa LAD:1 : /arch/cjcpdb_arch_1_2_1069079544.arc 2021-04-05T14:57:57.055057+08:00 Completed archiving T-1.S-2 (SCN:0x00000000004e4f9e-SCN:0x00000000004e5a29) (chendb) 2021-04-05T14:57:57.956141+08:00 Undo initialization recovery: err:0 start: 2304229 end: 2304245 diff: 16 ms (0.0 seconds) [4774] Successfully onlined Undo Tablespace 2. Undo initialization online undo segments: err:0 start: 2304245 end: 2305124 diff: 879 ms (0.9 seconds) Undo initialization finished serial:0 start:2304229 end:2305170 diff:941 ms (0.9 seconds) Verifying minimum file header compatibility for tablespace encryption for pdb 1.. Verifying file header compatibility for tablespace encryption completed for pdb 1 Database Characterset is AL32UTF8 2021-04-05T14:57:59.362459+08:00 No Resource Manager plan active 2021-04-05T14:58:02.149650+08:00 joxcsys_required_dirobj_exists: directory object exists with required path /u01/app/oracle/product/19.0.0/dbhome_1/javavm/admin/, pid 4774 cid 1 2021-04-05T14:58:03.208080+08:00 replication_dependency_tracking turned off (no async multimaster replication found) 2021-04-05T14:58:06.513426+08:00 Starting background process AQPC 2021-04-05T14:58:06.530045+08:00 AQPC started with pid=44, OS id=5118 2021-04-05T14:58:07.939757+08:00 TT01 (PID:4896): Heartbeat redo generation was disabled. Enable it due to LGWR SYNC supplemental logging 2021-04-05T14:58:09.070384+08:00 PDB$SEED(2):Autotune of undo retention is turned on. 2021-04-05T14:58:09.348055+08:00 PDB$SEED(2):Endian type of dictionary set to little 2021-04-05T14:58:10.171425+08:00 PDB$SEED(2):Undo initialization finished serial:0 start:2316460 end:2316460 diff:0 ms (0.0 seconds) 2021-04-05T14:58:10.448284+08:00 PDB$SEED(2):Database Characterset for PDB$SEED is AL32UTF8 2021-04-05T14:58:18.204092+08:00 PDB$SEED(2):Opening pdb with no Resource Manager plan active 2021-04-05T14:58:19.821305+08:00 CJCPDB(3):Autotune of undo retention is turned on. 2021-04-05T14:58:21.338131+08:00 CJCPDB(3):Endian type of dictionary set to little 2021-04-05T14:58:23.250711+08:00 QPI: opatch file present, opatch QPI: qopiprep.bat file present 2021-04-05T14:58:23.902323+08:00 CJCPDB(3):Undo initialization recovery: err:0 start: 2329840 end: 2330191 diff: 351 ms (0.4 seconds) 2021-04-05T14:58:27.074330+08:00 CJCPDB(3):[4774] Successfully onlined Undo Tablespace 2. CJCPDB(3):Undo initialization online undo segments: err:0 start: 2330191 end: 2333363 diff: 3172 ms (3.2 seconds) CJCPDB(3):Undo initialization finished serial:0 start:2329840 end:2333549 diff:3709 ms (3.7 seconds) CJCPDB(3):Pluggable database CJCPDB dictionary check beginning 2021-04-05T14:58:28.656735+08:00 CJCPDB(3):Pluggable Database CJCPDB Dictionary check complete CJCPDB(3):Database Characterset for CJCPDB is AL32UTF8 2021-04-05T14:58:30.779021+08:00 CJCPDB(3):JIT: pid 4774 requesting stop CJCPDB(3):Buffer Cache flush started: 3 CJCPDB(3):Buffer Cache flush finished: 3 2021-04-05T14:58:35.546292+08:00 Starting background process CJQ0 2021-04-05T14:58:35.593558+08:00 CJQ0 started with pid=54, OS id=5306 Completed: alter database open 2021-04-05T14:58:45.751533+08:00 =========================================================== Dumping current patch information =========================================================== Patch Id: 29517242 Patch Description: Database Release Update : 19.3.0.0.190416 (29517242) Patch Apply Time: 2019-04-18T15:21:17+08:00 Bugs Fixed: 14735102,19697993,20313356,21965541,25806201,25883179,25986062, 26476244,26611353,26872233,27369515,27423500,27666312,27710072,27846298, 27957203,28064977,28072567,28129791,28181021,28210681,28279456,28313275, 28350595,28371123,28379065,28431445,28463226,28489419,28502773,28513333, 28534475,28561704,28569897,28572533,28572544,28587723,28593682,28594086, 28597221,28601957,28605066,28606598,28625862,28627033,28636532,28643718, 28644549,28645570,28646200,28646939,28649388,28655209,28663782,28673945, 28692275,28694872,28696373,28705231,28710385,28710734,28714461,28718469, 28730079,28740708,28760206,28772390,28774416,28777214,28789531,28791852, 28795551,28802734,28804517,28810381,28811560,28815123,28815355,28819640, 28824482,28833912,28835937,28862532,28863432,28873575,28876253,28876639, 28884931,28888327,28892794,28897512,28899663,28901126,28905457,28907196, 28912691,28915561,28917080,28918429,28919145,28922227,28922532,28922608, 28925634,28925880,28933158,28936114,28937717,28938698,28940179,28940281, 28941901,28942455,28945421,28945994,28951533,28952168,28954762,28955606, 28957292,28957723,28962775,28965231,28966444,28974083,28977322,28983095, 28983486,28986326,28986481,28988482,28989306,28993295,28994307,28996376, 29000000,29001888,29002927,29003738,29006318,29006621,29007321,29007775, 29008035,29011936,29013475,29014076,29015118,29017265,29018655,29019121, 29021063,29021352,29024552,29026582,29026606,29027456,29027694,29027940, 29031575,29031600,29032234,29032457,29032607,29033052,29033145,29033200, 29033280,29034587,29037290,29038528,29039089,29039510,29043554,29043651, 29043725,29044763,29044954,29047850,29048289,29048498,29048605,29050560, 29050765,29051702,29052726,29053783,29056024,29056270,29056560,29059011, 29061959,29062692,29062848,29062860,29062868,29110526,29110783,29110790, 29110797,29110802,29110805,29111598,29113282,29113305,29117526,29117642, 29119077,29120223,29122224,29122254,29123297,29123432,29123482,29124368, 29125380,29126345,29127957,29128935,29129450,29129497,29129712,29130219, 29131539,29132938,29134447,29136111,29138641,29141316,29141341,29141685, 29142667,29144995,29145214,29145730,29149829,29150338,29151520,29152357, 29155099,29157389,29158680,29158899,29159909,29159936,29160174,29162095, 29163415,29163437,29163524,29163567,29167111,29167342,29167374,29167940, 29168219,29168433,29169073,29169215,29171942,29172618,29172826,29173140, 29173373,29173817,29174004,29176318,29177466,29177543,29177886,29178385, 29180313,29180455,29180559,29180893,29181153,29181231,29181620,29181743, 29181923,29182019,29183912,29184297,29184666,29185193,29186456,29189302, 29189307,29189889,29190235,29190474,29190740,29191541,29192419,29192468, 29192685,29193207,29194205,29194367,29194493,29194827,29195279,29195337, 29195758,29196725,29199635,29199733,29200316,29200700,29201494,29201539, 29202104,29202850,29203122,29203166,29203425,29203443,29203604,29205281, 29205323,29205419,29205463,29205767,29205918,29206109,29206605,29207073, 29208260,29208732,29211457,29211724,29212012,29212433,29212611,29213351, 29213775,29213850,29213879,29214561,29214960,29216746,29216984,29217294, 29217472,29217828,29217848,29218570,29219205,29219273,29220079,29221248, 29221891,29222031,29222784,29223833,29223859,29223967,29224065,29224605, 29225076,29227602,29228869,29229164,29229754,29229844,29229955,29230252, 29230565,29231133,29232117,29232154,29234123,29237538,29240307,29241345, 29242017,29242884,29243958,29245137,29245160,29246163,29247415,29247712, 29247906,29248552,29248835,29248858,29249991,29250059,29251259,29253184, 29253871,29254031,29254930,29255178,29255273,29255431,29255435,29256426, 29259119,29259320,29261906,29262512,29262887,29265448,29266248,29266899, 29267292,29268412,29269171,29270585,29273539,29273735,29273847,29274428, 29274564,29274627,29275461,29278218,29279658,29279751,29279854,29282898, 29285503,29285788,29285956,29286037,29287130,29287705,29292837,29293072, 29297863,29297915,29298220,29299049,29299082,29299844,29301566,29302963, 29303918,29304781,29311588,29312310,29312734,29312753,29313347,29313417, 29313525,29314539,29318410,29319441,29321489,29323946,29324568,29325087, 29325105,29325257,29325993,29327044,29329087,29331209,29331380,29331493, 29332771,29333500,29337310,29338315,29338453,29338780,29338913,29339155, 29341209,29343086,29346943,29347620,29348176,29350052,29351386,29351716, 29351749,29352867,29353271,29355654,29356547,29356752,29358828,29360672, 29361801,29363151,29364171,29364177,29367019,29367561,29368253,29373418, 29373588,29374179,29377986,29378029,29379978,29382784,29385652,29386502, 29386635,29386660,29387274,29388094,29388524,29388830,29389889,29390435, 29394140,29394749,29397954,29398863,29399100,29399121,29405012,29405651, 29412066,29412269,29417884,29423826,29429264,29429566,29431485,29435652, 29438736,29439522,29450421,29451386,29452576,29452953,29457807,29460252, 29462957,29486181,29507616,29515240,29521748,29530812,29531654,29557336, 29558975,29601461 Patch Id: 29585399 Patch Description: OCW RELEASE UPDATE 19.3.0.0.0 (29585399) Patch Apply Time: 2019-04-18T15:21:33+08:00 Bugs Fixed: 3,27222128,27572040,27604329,27760043,27877830,28302580,28470673, 28621543,28642469,28699321,28710663,28755846,28772816,28785321,28800508, 28808652,28815557,28847541,28847572,28870496,28871040,28874416,28877252, 28881191,28881848,28888083,28911140,28925250,28925460,28935956,28940472, 28942694,28951332,28963036,28968779,28980448,28995287,29003207,29003617, 29016294,29018680,29024876,29026154,29027933,29047127,29052850,29058476, 29111631,29112455,29117337,29123444,29125708,29125786,29129476,29131772, 29132456,29139727,29146157,29147849,29149170,29152603,29152752,29154631, 29154636,29154829,29159216,29159661,29160462,29161923,29169540,29169739, 29170717,29173618,29181568,29182920,29183298,29186091,29191827,29201143, 29201695,29209545,29210577,29210610,29210624,29210683,29213641,29219627, 29224294,29225861,29229839,29235934,29242906,29243749,29244495,29244766, 29244968,29248723,29249583,29251564,29255616,29260224,29261695,29271019, 29273360,29282090,29282666,29285453,29285621,29290235,29292232,29293806, 29294753,29299830,29307090,29307109,29311336,29329675,29330791,29339299, 29357821,29360467,29360775,29367971,29368725,29379299,29379381,29380527, 29381000,29382296,29391301,29393649,29402110,29411931,29413360,29457319, 29465047 =========================================================== 2021-04-05T14:58:52.141439+08:00 db_recovery_file_dest_size of 12288 MB is 0.44% used. This is a user-specified limit on the amount of space that will be used by this database for recovery-related files, and does not reflect the amount of space available in the underlying filesystem or ASM diskgroup. 2021-04-05T15:04:16.554537+08:00 Control autobackup written to DISK device handle '/flashbak/CHENDB/autobackup/2021_04_05/o1_mf_s_1069081451_j6ofmhh1_.bkp'
Oracle Open過程跟蹤
SQL> startup mount; SQL> alter session set sql_trace=true; SQL> alter database open; SQL> select value from v$diag_info where name = 'Default Trace File'; VALUE -------------------------------------------------------------------------------- /u01/app/oracle/diag/rdbms/chendb/chendb/trace/chendb_ora_9708.trc 或 ###gettrcname.sql### SELECT d.VALUE || '/' || LOWER (RTRIM (i.INSTANCE, CHR (0))) || '_ora_' || p.spid || '.trc' trace_file_name FROM (SELECT p.spid FROM v$mystat m, v$session s, v$process p WHERE m.statistic# = 1 AND s.SID = m.SID AND p.addr = s.paddr) p, (SELECT t.INSTANCE FROM v$thread t, v$parameter v WHERE v.NAME = 'thread' AND (v.VALUE = 0 OR t.thread# = TO_NUMBER (v.VALUE))) i, (SELECT VALUE FROM v$parameter WHERE NAME = 'user_dump_dest') d /
tkprof chendb_ora_9708.trc 1aaa.trc
檢視laaa.trc檔案
TKPROF: Release 19.0.0.0.0 - Development on Mon Apr 5 16:10:37 2021 Copyright (c) 1982, 2019, Oracle and/or its affiliates. All rights reserved. Trace file: chendb_ora_9708.trc Sort options: default ******************************************************************************** count = number of times OCI procedure was executed cpu = cpu time in seconds executing elapsed = elapsed time in seconds executing disk = number of physical reads of buffers from disk query = number of buffers gotten for consistent read current = number of buffers gotten in current mode (usually for update) rows = number of rows processed by the fetch or execute call ******************************************************************************** SQL ID: a01hp0psv0rrh Plan Hash: 0 alter database open call count cpu elapsed disk query current rows ------- ------ -------- ---------- ---------- ---------- ---------- ---------- Parse 1 0.00 0.00 0 0 0 0 Execute 1 0.92 4.51 30 77 65 0 Fetch 0 0.00 0.00 0 0 0 0 ------- ------ -------- ---------- ---------- ---------- ---------- ---------- total 2 0.92 4.51 30 77 65 0 Misses in library cache during parse: 1 Optimizer mode: ALL_ROWS Parsing user id: SYS ********************************************************************************
open期間,資料庫建立了很多重要的表,部分內容如下:
SQL ID: 32r4f1brckzq1 Plan Hash: 0 create table bootstrap$ ( line# number not null, obj# number not null, sql_text varchar2(4000) not null) storage (initial 50K objno 59 extents (file 1 block 520)) SQL ID: 864bmh11c121a Plan Hash: 0 CREATE ROLLBACK SEGMENT SYSTEM STORAGE ( INITIAL 112K NEXT 56K MINEXTENTS 1 MAXEXTENTS 32765 OBJNO 0 EXTENTS (FILE 1 BLOCK 128)) SQL ID: 7j058yj7fkg8b Plan Hash: 0 CREATE CLUSTER C_OBJ#("OBJ#" NUMBER) PCTFREE 5 PCTUSED 40 INITRANS 2 MAXTRANS 255 STORAGE ( INITIAL 136K NEXT 200K MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 OBJNO 2 EXTENTS (FILE 1 BLOCK 144)) SIZE 800 SQL ID: 0cmnx32jn5wsp Plan Hash: 1876228229 CREATE INDEX I_OBJ# ON CLUSTER C_OBJ# PCTFREE 10 INITRANS 2 MAXTRANS 255 STORAGE ( INITIAL 64K NEXT 1024K MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 OBJNO 3 EXTENTS (FILE 1 BLOCK 168)) SQL ID: 46ha8nzuzvysj Plan Hash: 0 CREATE TABLE TAB$("OBJ#" NUMBER NOT NULL,"DATAOBJ#" NUMBER,"TS#" NUMBER NOT NULL,"FILE#" NUMBER NOT NULL,"BLOCK#" NUMBER NOT NULL,"BOBJ#" NUMBER,"TAB#" NUMBER,"COLS" NUMBER NOT NULL,"CLUCOLS" NUMBER,"PCTFREE$" NUMBER NOT NULL, "PCTUSED$" NUMBER NOT NULL,"INITRANS" NUMBER NOT NULL,"MAXTRANS" NUMBER NOT NULL,"FLAGS" NUMBER NOT NULL,"AUDIT$" VARCHAR2(38) NOT NULL,"ROWCNT" NUMBER, "BLKCNT" NUMBER,"EMPCNT" NUMBER,"AVGSPC" NUMBER,"CHNCNT" NUMBER,"AVGRLN" NUMBER,"AVGSPC_FLB" NUMBER,"FLBCNT" NUMBER,"ANALYZETIME" DATE,"SAMPLESIZE" NUMBER,"DEGREE" NUMBER,"INSTANCES" NUMBER,"INTCOLS" NUMBER NOT NULL, "KERNELCOLS" NUMBER NOT NULL,"PROPERTY" NUMBER NOT NULL,"TRIGFLAG" NUMBER, "SPARE1" NUMBER,"SPARE2" NUMBER,"SPARE3" NUMBER,"SPARE4" VARCHAR2(1000), "SPARE5" VARCHAR2(1000),"SPARE6" DATE,"SPARE7" NUMBER,"SPARE8" NUMBER, "SPARE9" VARCHAR2(1000),"SPARE10" VARCHAR2(1000),"ACDRFLAGS" NUMBER, "ACDRTSOBJ#" NUMBER,"ACDRDEFAULTTIME" TIMESTAMP(6),"ACDRROWTSINTCOL#" NUMBER) STORAGE ( OBJNO 4 TABNO 1) CLUSTER C_OBJ#(OBJ#) SQL ID: gtdvd3b0ugku9 Plan Hash: 0 CREATE CLUSTER C_TS#("TS#" NUMBER) PCTFREE 10 PCTUSED 40 INITRANS 2 MAXTRANS 255 STORAGE ( INITIAL 64K NEXT 1024K MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 OBJNO 6 EXTENTS (FILE 1 BLOCK 176)) SQL ID: 2k93zvdmn4bqb Plan Hash: 2460502694 CREATE INDEX I_TS# ON CLUSTER C_TS# PCTFREE 10 INITRANS 2 MAXTRANS 255 STORAGE ( INITIAL 64K NEXT 1024K MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 OBJNO 7 EXTENTS (FILE 1 BLOCK 184)) SQL ID: ayptzt24bv5g5 Plan Hash: 0 CREATE CLUSTER C_FILE#_BLOCK#("TS#" NUMBER,"SEGFILE#" NUMBER,"SEGBLOCK#" NUMBER) PCTFREE 10 PCTUSED 40 INITRANS 2 MAXTRANS 255 STORAGE ( INITIAL 24K NEXT 1024K MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 OBJNO 8 EXTENTS (FILE 1 BLOCK 192)) SIZE 225 SQL ID: arbddafw3sf4v Plan Hash: 784518581 CREATE INDEX I_FILE#_BLOCK# ON CLUSTER C_FILE#_BLOCK# PCTFREE 10 INITRANS 2 MAXTRANS 255 STORAGE ( INITIAL 64K NEXT 1024K MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 OBJNO 9 EXTENTS (FILE 1 BLOCK 200)) SQL ID: bwkgx73msmb86 Plan Hash: 0 CREATE CLUSTER C_USER#("USER#" NUMBER) PCTFREE 10 PCTUSED 40 INITRANS 2 MAXTRANS 255 STORAGE ( INITIAL 64K NEXT 1024K MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 OBJNO 10 EXTENTS (FILE 1 BLOCK 208)) SIZE 372 SQL ID: d612ncf4w03r4 Plan Hash: 467322958 CREATE INDEX I_USER# ON CLUSTER C_USER# PCTFREE 10 INITRANS 2 MAXTRANS 255 STORAGE ( INITIAL 64K NEXT 1024K MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 OBJNO 11 EXTENTS (FILE 1 BLOCK 216)) SQL ID: a06jf3z447pvw Plan Hash: 0 CREATE TABLE FET$("TS#" NUMBER NOT NULL,"FILE#" NUMBER NOT NULL,"BLOCK#" NUMBER NOT NULL,"LENGTH" NUMBER NOT NULL) STORAGE ( OBJNO 12 TABNO 1) CLUSTER C_TS#(TS#) SQL ID: bucm261v1abd7 Plan Hash: 0 CREATE TABLE UET$("SEGFILE#" NUMBER NOT NULL,"SEGBLOCK#" NUMBER NOT NULL, "EXT#" NUMBER NOT NULL,"TS#" NUMBER NOT NULL,"FILE#" NUMBER NOT NULL, "BLOCK#" NUMBER NOT NULL,"LENGTH" NUMBER NOT NULL) STORAGE ( OBJNO 13 TABNO 1) CLUSTER C_FILE#_BLOCK#(TS#,SEGFILE#,SEGBLOCK#) SQL ID: 2saj8tt3njnwb Plan Hash: 0 CREATE TABLE SEG$("FILE#" NUMBER NOT NULL,"BLOCK#" NUMBER NOT NULL,"TYPE#" NUMBER NOT NULL,"TS#" NUMBER NOT NULL,"BLOCKS" NUMBER NOT NULL,"EXTENTS" NUMBER NOT NULL,"INIEXTS" NUMBER NOT NULL,"MINEXTS" NUMBER NOT NULL, "MAXEXTS" NUMBER NOT NULL,"EXTSIZE" NUMBER NOT NULL,"EXTPCT" NUMBER NOT NULL,"USER#" NUMBER NOT NULL,"LISTS" NUMBER,"GROUPS" NUMBER,"BITMAPRANGES" NUMBER NOT NULL,"CACHEHINT" NUMBER NOT NULL,"SCANHINT" NUMBER NOT NULL, "HWMINCR" NUMBER NOT NULL,"SPARE1" NUMBER,"SPARE2" NUMBER) STORAGE ( OBJNO 14 TABNO 2) CLUSTER C_FILE#_BLOCK#(TS#,FILE#,BLOCK#) SQL ID: asgjp8bs7qgnb Plan Hash: 0 CREATE TABLE UNDO$("US#" NUMBER NOT NULL,"NAME" VARCHAR2(30) NOT NULL,"USER#" NUMBER NOT NULL,"FILE#" NUMBER NOT NULL,"BLOCK#" NUMBER NOT NULL,"SCNBAS" NUMBER,"SCNWRP" NUMBER,"XACTSQN" NUMBER,"UNDOSQN" NUMBER,"INST#" NUMBER, "STATUS$" NUMBER NOT NULL,"TS#" NUMBER,"UGRP#" NUMBER,"KEEP" NUMBER, "OPTIMAL" NUMBER,"FLAGS" NUMBER,"SPARE1" NUMBER,"SPARE2" NUMBER,"SPARE3" NUMBER,"SPARE4" VARCHAR2(1000),"SPARE5" VARCHAR2(1000),"SPARE6" DATE) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 STORAGE ( INITIAL 64K NEXT 1024K MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 OBJNO 15 EXTENTS (FILE 1 BLOCK 224)) SQL ID: 8wwfvptfwkbfh Plan Hash: 0 CREATE TABLE TS$("TS#" NUMBER NOT NULL,"NAME" VARCHAR2(30) NOT NULL,"OWNER#" NUMBER NOT NULL,"ONLINE$" NUMBER NOT NULL,"CONTENTS$" NUMBER NOT NULL, "UNDOFILE#" NUMBER,"UNDOBLOCK#" NUMBER,"BLOCKSIZE" NUMBER NOT NULL,"INC#" NUMBER NOT NULL,"SCNWRP" NUMBER,"SCNBAS" NUMBER,"DFLMINEXT" NUMBER NOT NULL, "DFLMAXEXT" NUMBER NOT NULL,"DFLINIT" NUMBER NOT NULL,"DFLINCR" NUMBER NOT NULL,"DFLMINLEN" NUMBER NOT NULL,"DFLEXTPCT" NUMBER NOT NULL,"DFLOGGING" NUMBER NOT NULL,"AFFSTRENGTH" NUMBER NOT NULL,"BITMAPPED" NUMBER NOT NULL, "PLUGGED" NUMBER NOT NULL,"DIRECTALLOWED" NUMBER NOT NULL,"FLAGS" NUMBER NOT NULL,"PITRSCNWRP" NUMBER,"PITRSCNBAS" NUMBER,"OWNERINSTANCE" VARCHAR2(30),"BACKUPOWNER" VARCHAR2(30),"GROUPNAME" VARCHAR2(30),"SPARE1" NUMBER,"SPARE2" NUMBER,"SPARE3" VARCHAR2(1000),"SPARE4" DATE) STORAGE ( OBJNO 16 TABNO 2) CLUSTER C_TS#(TS#) SQL ID: brwww2atavyra Plan Hash: 0 CREATE TABLE FILE$("FILE#" NUMBER NOT NULL,"STATUS$" NUMBER NOT NULL,"BLOCKS" NUMBER NOT NULL,"TS#" NUMBER,"RELFILE#" NUMBER,"MAXEXTEND" NUMBER,"INC" NUMBER,"CRSCNWRP" NUMBER,"CRSCNBAS" NUMBER,"OWNERINSTANCE" VARCHAR2(30), "SPARE1" NUMBER,"SPARE2" NUMBER,"SPARE3" VARCHAR2(1000),"SPARE4" DATE) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 STORAGE ( INITIAL 64K NEXT 1024K MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 OBJNO 17 EXTENTS (FILE 1 BLOCK 232)) SQL ID: cgukmjn626tmz Plan Hash: 0 CREATE TABLE OBJ$("OBJ#" NUMBER NOT NULL,"DATAOBJ#" NUMBER,"OWNER#" NUMBER NOT NULL,"NAME" VARCHAR2(128) NOT NULL,"NAMESPACE" NUMBER NOT NULL, "SUBNAME" VARCHAR2(128),"TYPE#" NUMBER NOT NULL,"CTIME" DATE NOT NULL, "MTIME" DATE NOT NULL,"STIME" DATE NOT NULL,"STATUS" NUMBER NOT NULL, "REMOTEOWNER" VARCHAR2(128),"LINKNAME" VARCHAR2(128),"FLAGS" NUMBER,"OID$" RAW(16),"SPARE1" NUMBER,"SPARE2" NUMBER,"SPARE3" NUMBER,"SPARE4" VARCHAR2(1000),"SPARE5" VARCHAR2(1000),"SPARE6" DATE,"SIGNATURE" RAW(16), "SPARE7" NUMBER,"SPARE8" NUMBER,"SPARE9" NUMBER,"DFLCOLLID" NUMBER, "CREAPPID" NUMBER,"CREVERID" NUMBER,"CREPATCHID" NUMBER,"MODAPPID" NUMBER, "MODVERID" NUMBER,"MODPATCHID" NUMBER,"SPARE10" NUMBER,"SPARE11" NUMBER, "SPARE12" VARCHAR2(1000),"SPARE13" VARCHAR2(1000),"SPARE14" TIMESTAMP(6)) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 STORAGE ( INITIAL 16K NEXT 104K MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 OBJNO 18 EXTENTS (FILE 1 BLOCK 240)) SQL ID: 6hnpkbcdwrzt3 Plan Hash: 0 CREATE TABLE IND$("OBJ#" NUMBER NOT NULL,"DATAOBJ#" NUMBER,"TS#" NUMBER NOT NULL,"FILE#" NUMBER NOT NULL,"BLOCK#" NUMBER NOT NULL,"BO#" NUMBER NOT NULL, "INDMETHOD#" NUMBER NOT NULL,"COLS" NUMBER NOT NULL,"PCTFREE$" NUMBER NOT NULL,"INITRANS" NUMBER NOT NULL,"MAXTRANS" NUMBER NOT NULL,"PCTTHRES$" NUMBER,"TYPE#" NUMBER NOT NULL,"FLAGS" NUMBER NOT NULL,"PROPERTY" NUMBER NOT NULL,"BLEVEL" NUMBER,"LEAFCNT" NUMBER,"DISTKEY" NUMBER,"LBLKKEY" NUMBER, "DBLKKEY" NUMBER,"CLUFAC" NUMBER,"ANALYZETIME" DATE,"SAMPLESIZE" NUMBER, "ROWCNT" NUMBER,"INTCOLS" NUMBER NOT NULL,"DEGREE" NUMBER,"INSTANCES" NUMBER,"TRUNCCNT" NUMBER,"EVALEDITION#" NUMBER,"UNUSABLEBEFORE#" NUMBER, "UNUSABLEBEGINNING#" NUMBER,"SPARE1" NUMBER,"SPARE2" NUMBER,"SPARE3" NUMBER, "SPARE4" VARCHAR2(1000),"SPARE5" VARCHAR2(1000),"SPARE6" DATE) STORAGE ( OBJNO 19 TABNO 3) CLUSTER C_OBJ#(BO#) SQL ID: 1ncu5rdtv0j40 Plan Hash: 0 CREATE TABLE ICOL$("OBJ#" NUMBER NOT NULL,"BO#" NUMBER NOT NULL,"COL#" NUMBER NOT NULL,"POS#" NUMBER NOT NULL,"SEGCOL#" NUMBER NOT NULL,"SEGCOLLENGTH" NUMBER NOT NULL,"OFFSET" NUMBER NOT NULL,"INTCOL#" NUMBER NOT NULL,"SPARE1" NUMBER,"SPARE2" NUMBER,"SPARE3" NUMBER,"SPARE4" VARCHAR2(1000),"SPARE5" VARCHAR2(1000),"SPARE6" DATE) STORAGE ( OBJNO 20 TABNO 4) CLUSTER C_OBJ#(BO#) SQL ID: 002ju8tbzvjmg Plan Hash: 0 CREATE TABLE COL$("OBJ#" NUMBER NOT NULL,"COL#" NUMBER NOT NULL,"SEGCOL#" NUMBER NOT NULL,"SEGCOLLENGTH" NUMBER NOT NULL,"OFFSET" NUMBER NOT NULL, "NAME" VARCHAR2(128) NOT NULL,"TYPE#" NUMBER NOT NULL,"LENGTH" NUMBER NOT NULL,"FIXEDSTORAGE" NUMBER NOT NULL,"PRECISION#" NUMBER,"SCALE" NUMBER, "NULL$" NUMBER NOT NULL,"DEFLENGTH" NUMBER,"DEFAULT$" LONG,"INTCOL#" NUMBER NOT NULL,"PROPERTY" NUMBER NOT NULL,"CHARSETID" NUMBER,"CHARSETFORM" NUMBER, "EVALEDITION#" NUMBER,"UNUSABLEBEFORE#" NUMBER,"UNUSABLEBEGINNING#" NUMBER, "SPARE1" NUMBER,"SPARE2" NUMBER,"SPARE3" NUMBER,"SPARE4" VARCHAR2(1000), "SPARE5" VARCHAR2(1000),"SPARE6" DATE,"SPARE7" NUMBER,"SPARE8" NUMBER, "COLLID" NUMBER,"COLLINTCOL#" NUMBER,"SPARE9" NUMBER,"SPARE10" NUMBER, "SPARE11" VARCHAR2(1000),"SPARE12" VARCHAR2(1000),"SPARE13" TIMESTAMP(6), "ACDRRESCOL#" NUMBER) STORAGE ( OBJNO 21 TABNO 5) CLUSTER C_OBJ#(OBJ#) SQL ID: 1t22amusn6r1p Plan Hash: 0 CREATE TABLE USER$("USER#" NUMBER NOT NULL,"NAME" VARCHAR2(128) NOT NULL, "TYPE#" NUMBER NOT NULL,"PASSWORD" VARCHAR2(4000),"DATATS#" NUMBER NOT NULL, "TEMPTS#" NUMBER NOT NULL,"CTIME" DATE NOT NULL,"PTIME" DATE,"EXPTIME" DATE, "LTIME" DATE,"RESOURCE$" NUMBER NOT NULL,"AUDIT$" VARCHAR2(38),"DEFROLE" NUMBER NOT NULL,"DEFGRP#" NUMBER,"DEFGRP_SEQ#" NUMBER,"ASTATUS" NUMBER NOT NULL,"LCOUNT" NUMBER NOT NULL,"DEFSCHCLASS" VARCHAR2(128),"EXT_USERNAME" VARCHAR2(4000),"SPARE1" NUMBER,"SPARE2" NUMBER,"SPARE3" NUMBER,"SPARE4" VARCHAR2(1000),"SPARE5" VARCHAR2(1000),"SPARE6" DATE,"SPARE7" VARCHAR2(4000) ,"SPARE8" VARCHAR2(4000),"SPARE9" NUMBER,"SPARE10" NUMBER,"SPARE11" TIMESTAMP(6)) STORAGE ( OBJNO 22 TABNO 1) CLUSTER C_USER#(USER#) ......
[oracle@cjcos02 trace]$ cat 1aaa.trc |grep -i create|wc -l
98
檢視file 1 block 520中記錄的物件
SQL> col segment_name for a20 SQL> select segment_name,file_id,block_id from dba_extents where file_id=1 and block_id=520; SEGMENT_NAME FILE_ID BLOCK_ID -------------------- ---------- ---------- BOOTSTRAP$ 1 520 SQL> select line#,obj#,sql_text from bootstrap$; LINE# OBJ# SQL_TEXT ---------- ---------- ---------------------------------------------------------------------------------------------------- -1 -1 8.0.0.0.0 0 0 CREATE ROLLBACK SEGMENT SYSTEM STORAGE ( INITIAL 112K NEXT 56K MINEXTENTS 1 MAXEXTENTS 32765 OBJNO 0 EXTENTS (FILE 1 BLOCK 128)) 16 16 CREATE TABLE TS$("TS#" NUMBER NOT NULL,"NAME" VARCHAR2(30) NOT NULL,"OWNER#" NUMBER NOT NULL,"ONLINE $" NUMBER NOT NULL,"CONTENTS$" NUMBER NOT NULL,"UNDOFILE#" NUMBER,"UNDOBLOCK#" NUMBER,"BLOCKSIZE" NU MBER NOT NULL,"INC#" NUMBER NOT NULL,"SCNWRP" NUMBER,"SCNBAS" NUMBER,"DFLMINEXT" NUMBER NOT NULL,"DF LMAXEXT" NUMBER NOT NULL,"DFLINIT" NUMBER NOT NULL,"DFLINCR" NUMBER NOT NULL,"DFLMINLEN" NUMBER NOT NULL,"DFLEXTPCT" NUMBER NOT NULL,"DFLOGGING" NUMBER NOT NULL,"AFFSTRENGTH" NUMBER NOT NULL,"BITMAPPE D" NUMBER NOT NULL,"PLUGGED" NUMBER NOT NULL,"DIRECTALLOWED" NUMBER NOT NULL,"FLAGS" NUMBER NOT NULL ,"PITRSCNWRP" NUMBER,"PITRSCNBAS" NUMBER,"OWNERINSTANCE" VARCHAR2(30),"BACKUPOWNER" VARCHAR2(30),"GR OUPNAME" VARCHAR2(30),"SPARE1" NUMBER,"SPARE2" NUMBER,"SPARE3" VARCHAR2(1000),"SPARE4" DATE) STORAGE ( OBJNO 16 TABNO 2) CLUSTER C_TS#(TS#) 45 45 CREATE UNIQUE INDEX I_TS1 ON TS$(NAME) PCTFREE 10 INITRANS 2 MAXTRANS 255 STORAGE ( INITIAL 64K NEX T 1024K MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 OBJNO 45 EXTENTS (FILE 1 BLOCK 408)) ...... 27 27 CREATE UNIQUE INDEX I_PROXY_ROLE_DATA$_2 ON PROXY_ROLE_DATA$(CLIENT#,PROXY#,ROLE#) PCTFREE 10 INITRA NS 2 MAXTRANS 255 STORAGE ( INITIAL 64K NEXT 1024K MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 OBJNO 27 EXTENTS (FILE 1 BLOCK 280))
3 Oracle啟動方式有哪幾種?
nomount:
startup nomount srvctl start database -db db_unique_name nomount srvctl start instance instance_name -d dbname -o nomount
mount:
startup mount alter database mount; srvctl start instance instance_name -d dbname -o mount
open:
startup open alter database open; srvctl start instance instance_name -d dbname -o open srvctl start instance instance_name -d dbname -o open
other:
startup restrict startup EXCLUSIVE startup read only alter database open noresetlogs; alter database open resetlogs; alter database open READ ONLY; startup force(shutdown abort + startup)
接引數檔案:
startup pfile='/oracle/dbs/initcjc.ora' startup spfile='/oracle/dbs/spfilecjc.ora' srvctl modify database -db db_unique_name -spfile spfile_path
4 Oracle無法啟動問題彙總
(1)引數檔案損壞故障分析 (2)控制檔案損壞故障分析 (3)資料檔案損壞故障分析 (4)UNDO檔案損壞故障分析 (5)REDO檔案損壞故障分析 (6)壞塊故障分析 (7)勒索病毒故障分析 (8)更新補丁後資料庫異常故障分析 (9)人為誤操作故障分析 具體詳細內容見下一篇。
5 Oracle無法啟動問題定位
(1)啟動時檢視告警日誌 (2)確認啟動到哪一步報錯的 可以將startup命令拆開執行 startup nomount alter database mount; alter database open; 具體詳細內容見下一篇。
###2021-04-06 21:30 chenjuchao###
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29785807/viewspace-2767369/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle日常問題-資料庫無法啟動(案例二)Oracle資料庫
- Oracle日常問題處理-資料庫無法啟動Oracle資料庫
- Oracle資料庫中的多種SCN彙總Oracle資料庫
- Oracle資料庫啟動步驟Oracle資料庫
- LeetCode 資料庫解題彙總 MySql版LeetCode資料庫MySql
- Oracle RAC+DG巡檢常見問題彙總(一)Oracle
- 水稻資料庫彙總資料庫
- 4 配置Oracle資料庫自動啟動Oracle資料庫
- 一些小問題彙總
- mybatis常見庫及問題彙總MyBatis
- Es資料彙總不準確的問題
- 2022年最新資料庫經典面試題及答案彙總(含PostgreSQL、Oracle、MySQL)資料庫面試題OracleMySql
- ReactJs移動端相容問題彙總ReactJS
- Redis問題彙總Redis
- 安全問題彙總
- RecyclerView問題彙總View
- CSS問題彙總CSS
- 11G oracle資料庫重新啟動crsOracle資料庫
- 一、Windows 環境搭建問題彙總Windows
- WKWebView的一些問題彙總WebView
- mysqlbinlog命令恢復資料要注意的問題彙總MySql
- ryu啟動問題總結
- 資料庫故障處理優質文章彙總(含Oracle、MySQL、MogDB等)資料庫OracleMySql
- mysql資料庫最佳化彙總MySql資料庫
- 資料庫分庫分表解決方案彙總資料庫
- [20201106]瞭解oracle資料庫啟動時間.txtOracle資料庫
- VMWare Station 問題彙總
- openni niviewer問題彙總View
- pandas包 問題彙總
- OPNET使用問題彙總
- Logback使用問題彙總
- 關於oracle資料庫訊號量的問題Oracle資料庫
- Oracle資料庫中的逐行處理問題NEOracle資料庫
- 成為MySQL DBA後,再看ORACLE資料庫(一、安裝與啟動)MySqlOracle資料庫
- Oracle當機案例彙總(一)Oracle
- python資料庫-安裝問題總結(48)Python資料庫
- Oracle資料庫開啟NUMA支援Oracle資料庫
- oracle測試資料庫啟用Oracle資料庫