ÐÞ¸ÄOracleÓû§ÃÜÂëµÄС¾÷ÇÏ
ÓÐʱºòÎÒÃÇ¿ÉÄܲ»ÖªµÀÒ»¸öÓû§µÄÃÜÂ룬µ«ÊÇÓÖÐèÒªÒÔÕâ¸öÓû§×öһЩ²Ù×÷£¬ÓÖ²»ÄÜÈ¥Ð޸ĵôÕâ¸öÓû§µÄÃÜÂ룬Õâ¸öʱºò£¬¾Í¿ÉÒÔÀûÓÃһЩСÇÏÃÅ£¬À´Íê³É²Ù×÷¡£
¾ßÌå²Ù×÷¹ý³ÌÈçÏ£º
SQL*Plus: Release 9.2.0.5.0 - Production on ÐÇÆÚÈÕ 11ÔÂ 21 13:32:34 2004
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
SQL> connect sys/oracle as sysdba
ÒÑÁ¬½Ó¡£
SQL> select username,password from dba_users;
USERNAME PASSWORD
------------------------------ ------------------------------
SYS 8A8F025737A9097A
SYSTEM 2D594E86F93B17A1
DBSNMP E066D214D5421CCC
TOAD A1BA01CF0DD82695
OUTLN 4A3BA55E08595C81
WMSYS 7C9BA362F8314299
ÒÑÑ¡Ôñ6ÐС£
SQL> connect system/oracle
ÒÑÁ¬½Ó¡£
SQL> connect sys/oracle as sysdba
ÒÑÁ¬½Ó¡£
ÐÞ¸ÄÓû§systemÃÜÂëΪmanager
SQL> alter user system identified by manager;
Óû§ÒѸü¸Ä¡£
SQL> select username,password from dba_users;
USERNAME PASSWORD
------------------------------ ------------------------------
SYS 8A8F025737A9097A
SYSTEM D4DF7931AB130E37
DBSNMP E066D214D5421CCC
TOAD A1BA01CF0DD82695
OUTLN 4A3BA55E08595C81
WMSYS 7C9BA362F8314299
ÒÑÑ¡Ôñ6ÐС£
SQL> connect system/manager
ÒÑÁ¬½Ó¡£
È»ºó´Ëʱ¿ÉÒÔ×öÏëÒª×öµÄÈκβÙ×÷ÁË
SQL> connect sys/oracle as sysdba
ÒÑÁ¬½Ó¡£
ÐÞ¸ÄÓû§systemÃÜÂëΪÒÔÇ°µÄÖµ
SQL> alter user system identified by values '2D594E86F93B17A1';
Óû§ÒѸü¸Ä¡£
SQL> connect system/oracle
ÒÑÁ¬½Ó¡£
SQL> connect sys/oracle as sysdba
ÒÑÁ¬½Ó¡£
SQL> connect system/manager
ERROR:
ORA-01017: invalid username/password; logon denied
¾¯¸
Ïà¹ØÎĵµ£º
extent--×îС¿Õ¼ä·ÖÅ䵥λ --tablespace management
block --×îСi/oµ¥Î» --segment management
create tablespace james
datafile '/export/home/oracle/oradata/james.dbf'
size 100M ¡¡¡¡¡¡¡¡¡¡¡¡--³õʼµÄÎļþ´óС¡¡
autoextend On¡¡¡¡¡¡¡¡ --×Ô¶¯Ôö³¤
next 10M¡ ......
Æô¶¯“OracleDBConsole”ʱ£££³öÏÖ“Agent process exited abnormally during initialization.”
ÔÚÔËÐÐ"emctl start dbconsole "¡¡·¢ÏÖÊÇÕÒ²»µ½Ö¸¶¨Îļþ,ÔÚÍøÉÏÕÒÁËÒ»ÏÂÔÒò, ¸ü¸ÄµÄÖ¸¶¨Îļþ¼ÐµÄÃû³Æ£¬µ«»¹ÊDz»ÄÜÆô¶¯·þÎñ£¬½á¹ûÈÏÕæ¿´ÁËһϣ¬ÊÇCTRL+C,CTRL+V È»ºó²ÅÆô¶¯³É¹¦£¬ËùÒÔÌض¨Ð´ÏÂÀ´£¬¼Ç ......
ÒÔϾÝ˵ÃüÁî¾ùÖ¸ÔÚPL/SQLÖУ¬ÔÚCommand WindowÖÐÖ´ÐеÄÃüÁî¡£
²»¶ÏËѼ¯ÕûÀí
1¡¢the account is locked"µÄ½â¾ö·½·¨
ÓÃsysÒÔsysdbaµÄÉí·ÝÀ´½øÐеǼ,ÔÚsys״̬ÊÇlockedµÄʱºòÒ²ÊÇÄܵǼµÄ.È»ºóÔÙʹÓÃÃüÁî
alter user sys account unlockÀ´½øÐнâËø ......
--µ±ÇëÇóÖ´Ðкó²»ÄÜ"²é¿´Êä³ö"µÄʱºò±íʾÓнø³ÌËÀËøÁË
--²éÕÒËÀËøµÄ½ø³Ì
select t2.username,t2.sid,t2.serial#,t2.logon_time
from v$locked_object t1,v$session t2
where t1.session_id=t2.sid order by t2.logon_time
--ɾ³ýËÀËøµÄ½ø³Ì£¬É¾³ýµ±ÌìÇ°µÄ£¬²»ÄÜɾ³ýµ±ÌìµÄ£¬
--alter system kill session 't2.sid,t ......