https://blog.zeddba.com/2018/03/14/stop-password-for-user-accounts-expiring-on-exadata/
https://www.thatfinnishguy.blog/2017/02/03/exadata-host_access_control/
https://www.tecmint.com/use-pam_tally2-to-lock-and-unlock-ssh-failed-login-attempts/
In this Document
| Goal |
| Solution |
| References |
Reset root account password on Exadata Comput nodes for X7-2.
Please base on the following steps to change your root password.
From step 2 below all commands have to be executed on System Console (either directly sitting in front of the physical system with console screen attached, via SSH remote SP console or Web Based ILOM remote console option.
1.Reboot via the ILOM web interface either:
○via the web interface:
■For current ILOM versions:
■go to "Host Management", at "Power Control" choose 'Power Cycle" for "Settings"
■For older ILOM versions:
■go to "System Overview", at "Host Power" choose 'Power Cycle"
■From ILOM web interface start remote console by going to Remote Control -> Launch Remote Console
○via ssh remote SP console:
■reset /SYS
■start /SP/console
2.On the ILOM web console or ssh remote SP console: when the Grub Menu screen appears, immediately hit the arrow down key. Please note, here is a short window for this , so carefully watch the screen.
3.Select the proper line to boot from and press "p" to supply the GRUB password . (<get password from support by filing an SR>)
4.Press the "e" key to edit the boot entry
5.Using the down arrow, select the line that starts with "linuxefi", then press the "e" key to edit
6.At the grub2 line starting with "linuxefi" add at the end the following string: rd.break
7.Press ctrl+x to boot or start
8.First we will remount the sysroot file system in read and write mode and then use chroot to got into a chroot jail:
9.Type passwd command in the command line and press same password twice for reset root password:
10.Make sure that all unlabel files ( including shadow ) get relabeled during booting:
11.Type the command to sync:
12. Reboot or power cycle the system.
In this Document
| Goal |
| Solution |
| References |
This article explains how root password can be reset on Oracle Linux 7.
1. While booting GRUB 2 Edit Menu Option (by pressing E)
2. Select the line starts with linux16******* (append "rd.break" at the end of the line), e.g.:
3. Press ctrl+x to boot or start.
4. First we will remount the sysroot file system in read and write mode and then use chroot to got into a chroot jail:
5. Type passwd command in the command line and press same password twice for reset root password:
6. Make sure that all unlabel files ( including shadow ) get relabeled during booting:
7. Type the command to sync:
8. Type twice exit command to leave & logout.
9. The system will apply some SELinux contexts and reboot.
1
2
3
4
5
6
7
8
9
10
11
12
| SQL_ID fqf3hk93j5k4n, child number 0-------------------------------------SELECT CLIENT_ID,STATUS,SHP_ID FROM INV_APP_NRD.SAL_SHIPWSWHERE CLIENT_ID = :1Plan hash value: 2885481213--------------------------------------------------------------------------------| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |--------------------------------------------------------------------------------| 0 | SELECT STATEMENT | | | | 3035 (100)| ||* 1 | TABLE ACCESS FULL| SAL_SHIPWS | 1 | 30 | 3035 (1)| 00:00:01 |-------------------------------------------------------------------------------- |
1
2
3
4
| select ksppstvlfrom x$ksppi x, x$ksppcv ywhere (x.indx = y.indx)and ksppinm='_small_table_threshold'; |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
| col table_name for a30col table_owner for a20select * from ( select m.table_owner , m.table_name , t.last_analyzed , m.inserts , m.updates , m.deletes , t.num_rows , ( m.inserts + m.updates + m.deletes )*100 / case when t.num_rows is null or t.num_rows = 0 then 1 else t.num_rows end "Change Factor%" from dba_tab_modifications m , dba_tables t where t.owner = m.table_owner and t.table_name = m.table_name and m.inserts + m.updates + m.deletes > 1 and m.table_owner='INV_APP' and m.table_name like 'SAL_SHIPWS' order by "Change Factor%" desc );TABLE_OWNER TABLE_NAME LAST_ANALYZED INSERTS UPDATES DELETES NUM_ROWS Change Factor----------- ---------- ------------- ------- ------- ------- -------- -------------INV_APP SAL_SHIPWS 29-MAR-16 10687 11359 0 1897664 1.1617441 |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
| col component for a25col size_MB for 999,999col stth head "Small Table|Threshold in Blks" for 99,999,999col stth_size head "Small Table|Threshold|in MB" for 999,999select component, current_size/(1024*1024) size_MB, current_size/8192 * 0.02 stth,current_size/(1024*1024) * 0.02 stth_sizefrom v$sga_dynamic_componentswherecomponent like 'DEFAULT buffer cache%'; Small Table Small Table ThresholdCOMPONENT SIZE_MB Threshold in Blks in MB--------------------- -------- ----------------- -----------DEFAULT buffer cache 2,496 6,390 50 |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
| col owner for a20col table_name for a25col last_analyzed for a20select owner, table_name, object_type, to_char(last_analyzed, 'yyyy-mm-dd hh24:mi:ss') last_analyzed, blocks, num_rows, sample_size samplefrom dba_tab_statisticswhereowner ='INV_APP'and table_name ='SAL_SHIPWS'; OWNER TABLE_NAME OBJECT_TYPE LAST_ANALYZED BLOCKS NUM_ROWS SAMPLE ------- ---------- ----------- ------------------- ------- -------- -------INV_APP SAL_SHIPWS TABLE 2016-03-29 22:00:34 11131 1897664 1897664 |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
| col owner for a12col object_name for a25col object_type for a15col subobject_name for a25col obj# for 999999col save_time for a20col analyze_time for a20select o.owner, o.object_name, o.subobject_name, th.obj#, o.object_type,to_char(analyzetime, 'yyyy-mm-dd hh24:mi:ss') analyze_time,rowcnt, blkcnt, avgrln, samplesize, samplesize, to_char(savtime, 'yyyy-mm-dd hh24:mi:ss') save_timefrom sys.WRI$_OPTSTAT_TAB_HISTORY th,dba_objects owhereo.object_id = th.obj#and o.owner = 'INV_APP'and o.object_name = 'SAL_SHIPWS'order by th.analyzetime desc;OWNER OBJECT_NAME OBJ# OBJECT_TYPE ANALYZE_TIME ROWCNT BLKCNT AVGRLN SAMPLESIZE SAMPLESIZE SAVE_TIME------- ----------- ------ ----------- ------------------- ------- ------ ------ ---------- ---------- ------------------- INV_APP SAL_SHIPWS 146907 TABLE 2016-03-25 22:02:20 831675 4668 47 831675 831675 2016-03-29 22:00:35INV_APP SAL_SHIPWS 146907 TABLE 2016-03-16 22:02:08 798969 4542 47 798969 798969 2016-03-25 22:02:20INV_APP SAL_SHIPWS 146907 TABLE 2016-03-08 22:00:42 770679 4416 47 770679 770679 2016-03-16 22:02:08INV_APP SAL_SHIPWS 146907 TABLE 2016-02-29 22:02:05 343578 2022 47 343578 343578 2016-03-08 22:00:42INV_APP SAL_SHIPWS 146907 TABLE 2016-02-18 22:01:34 346437 2022 47 346437 346437 2016-02-29 22:02:05INV_APP SAL_SHIPWS 146907 TABLE 2016-02-05 22:01:21 335163 1896 47 335163 335163 2016-02-18 22:01:34INV_APP SAL_SHIPWS 146907 TABLE 2016-01-20 22:09:22 323044 1896 47 323044 323044 2016-02-05 22:01:21 |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
| col session for a20col wait_class for a20col event for a40col total for 999,999col read_io_mb for 999,999.9select sql_id, sql_plan_hash_value hash_val, to_char(sample_time, 'yyyy-mm-dd hh24') sample_time, session_state, wait_class, event, count(*) total, sum(delta_read_io_bytes)/(1024*1024) read_io_mbfrom DBA_HIST_ACTIVE_SESS_HISTORY wheresql_id='fqf3hk93j5k4n'and sample_time > sysdate - 2group by sql_id, sql_plan_hash_value,to_char(sample_time, 'yyyy-mm-dd hh24'), session_state, wait_class, eventorder by sample_time;SQL_ID SAMPLE_TIME SESSION WAIT_CLASS EVENT TOTAL READ_IO_MB------------- ------------- ------- ------------- ---------------------------------------- -------- ----------fqf3hk93j5k4n 2016-03-29 14 ON CPU 37 134.7fqf3hk93j5k4n 2016-03-29 15 ON CPU 172 154.0fqf3hk93j5k4n 2016-03-29 16 ON CPU 162 .5fqf3hk93j5k4n 2016-03-29 17 ON CPU 138 5.2fqf3hk93j5k4n 2016-03-29 18 ON CPU 152 134.8fqf3hk93j5k4n 2016-03-29 19 ON CPU 138 1,629.9fqf3hk93j5k4n 2016-03-29 20 ON CPU 183 9,953.9fqf3hk93j5k4n 2016-03-29 20 WAITING Configuration log file switch (checkpoint incomplete) 1 7.1fqf3hk93j5k4n 2016-03-29 20 WAITING User I/O direct path read 2 1,519.9fqf3hk93j5k4n 2016-03-29 21 ON CPU 229 335.8fqf3hk93j5k4n 2016-03-29 22 ON CPU 179 552.1fqf3hk93j5k4n 2016-03-29 22 WAITING Scheduler resmgr:cpu quantum 17 2.6fqf3hk93j5k4n 2016-03-29 22 WAITING User I/O db file sequential read 1 .7fqf3hk93j5k4n 2016-03-29 23 ON CPU 190 670.0fqf3hk93j5k4n 2016-03-29 23 WAITING Scheduler resmgr:cpu quantum 26fqf3hk93j5k4n 2016-03-30 00 ON CPU 76 188.8fqf3hk93j5k4n 2016-03-30 00 WAITING Scheduler resmgr:cpu quantum 2fqf3hk93j5k4n 2016-03-30 01 ON CPU 4 269.4fqf3hk93j5k4n 2016-03-30 01 WAITING User I/O direct path read 2 3,992.1fqf3hk93j5k4n 2016-03-30 02 ON CPU 15 43,887.2fqf3hk93j5k4n 2016-03-30 02 WAITING User I/O direct path read 33 107,623.2fqf3hk93j5k4n 2016-03-30 03 ON CPU 25 101,191.1fqf3hk93j5k4n 2016-03-30 03 WAITING User I/O direct path read 50 127,974.5fqf3hk93j5k4n 2016-03-30 04 ON CPU 74 252,514.8fqf3hk93j5k4n 2016-03-30 04 WAITING User I/O direct path read 117 326,216.4fqf3hk93j5k4n 2016-03-30 05 ON CPU 100 351,210.6fqf3hk93j5k4n 2016-03-30 05 WAITING Application enq: KO - fast object checkpoint 1 1,315.1fqf3hk93j5k4n 2016-03-30 05 WAITING User I/O direct path read 173 502,828.0fqf3hk93j5k4n 2016-03-30 06 ON CPU 63 195,762.7fqf3hk93j5k4n 2016-03-30 06 WAITING Application enq: KO - fast object checkpoint 1 985.5fqf3hk93j5k4n 2016-03-30 06 WAITING User I/O direct path read 159 491,567.9fqf3hk93j5k4n 2016-03-30 07 ON CPU 79 243,513.4fqf3hk93j5k4n 2016-03-30 07 WAITING User I/O direct path read 75 271,548.4fqf3hk93j5k4n 2016-03-30 08 ON CPU 91 316,045.2fqf3hk93j5k4n 2016-03-30 08 WAITING User I/O direct path read 137 498,446.2fqf3hk93j5k4n 2016-03-30 09 ON CPU 79 329,797.0fqf3hk93j5k4n 2016-03-30 09 WAITING User I/O direct path read 141 497,647.9. . . .fqf3hk93j5k4n 2016-03-30 20 ON CPU 81 221,629.5fqf3hk93j5k4n 2016-03-30 20 WAITING User I/O direct path read 215 608,258.5fqf3hk93j5k4n 2016-03-30 21 ON CPU 81 275,751.3fqf3hk93j5k4n 2016-03-30 21 WAITING User I/O direct path read 202 589,110.1fqf3hk93j5k4n 2016-03-30 22 ON CPU 193 6,965.6fqf3hk93j5k4n 2016-03-30 22 WAITING User I/O direct path read 30 25,242.7fqf3hk93j5k4n 2016-03-30 23 ON CPU 245 137.6fqf3hk93j5k4n 2016-03-31 00 ON CPU 89 538.7fqf3hk93j5k4n 2016-03-31 01 ON CPU 11 1,213.2fqf3hk93j5k4n 2016-03-31 02 ON CPU 11 16,901.3fqf3hk93j5k4n 2016-03-31 02 WAITING User I/O direct path read 33 83,902.7fqf3hk93j5k4n 2016-03-31 03 ON CPU 23 47,317.6fqf3hk93j5k4n 2016-03-31 03 WAITING User I/O direct path read 79 177,203.5fqf3hk93j5k4n 2016-03-31 04 ON CPU 59 144,902.3fqf3hk93j5k4n 2016-03-31 04 WAITING User I/O direct path read 161 438,593.4fqf3hk93j5k4n 2016-03-31 05 ON CPU 93 279,670.5 |