OracleÐÞ¸ÄSYSÃÜÂë
OracleÌṩÁ½ÖÖÑéÖ¤·½Ê½£¬Ò»ÖÖÊÇOSÑéÖ¤£¬ÁíÒ»ÖÖÃÜÂëÎļþÑéÖ¤·½Ê½£¬Èç¹ûÊǵÚÒ»ÖÖ·½Ê½ÓÃÒÔÏ·½·¨ÐÞ¸ÄÃÜÂ룺
¡¡¡¡sqlplus / as sysdba
¡¡¡¡alter user sys identified by ÐÂÃÜÂë;
¡¡¡¡alter user system identified by ÐÂÃÜÂë;
¡¡¡¡Èç¹ûÊǵڶþÖÖ·½·¨ÓÃÒÔÏ·½·¨ÐÞ¸ÄÃÜÂ룺
¡¡¡¡orapwd file=pwdxxx.ora password=ÄãÉ趨µÄÐÂÃÜÂë entries=10
¡¡¡¡É趨Íêºó£¬ÖØÐÂÆô¶¯·þÎñ£¬Ôٴεǽ¾Í¿ÉÒÔÁË¡£
µÚ¶þÖÖ¾ÙÀý£º Èç¹ûoracle9.2°²×°ÔÚ D:\oracle £¬Ôòϼ¶Ä¿Â¼Ä¬ÈÏ D:\oracle\ora92 ¡£Êý¾Ý¿âʵÀýÃû£ºszmis
´ò¿ªwindowsÃüÁîÐУº
c:> d:
d:> cd D:\oracle\ora92\database
D:\oracle\ora92\database> orapwd file=PWDszmis.ora password=jsshm entries=10
D:\oracle\ora92\database> net stop "OracleServiceSZMIS"
D:\oracle\ora92\database> net start "OracleServiceSZMIS"
D:\oracle\ora92\database>
³É¹¦ÁË£¡×¢Òâorapwd ÐÞ¸ÄÃÜÂëÎļþµÄʱºò Ò»¶¨ÒªÇø·Ö´óСд£¬»¹ÓÐÒªÔÚÐÞ¸ÄÇ°ÏȽ«D:\oracle\ora92\databaseĿ¼ÏµÄÏàÓ¦µÄÃÜÂëÎļþɾ³ýÁË ²ÅÄÜÔÙÐ޸ġ£¡£ÆäʵËüÊÇÒ»¸öÉú³ÉÃÜÂëÎļþµÄ¹ý³Ì¡£Èç¹û¸ÃĿ¼ÏÂÓÐÕâ¸öÃÜÂëÎļþ£¬»áÌáʾ´æÔÚÏàͬÃû³ÆµÄÎļþ -Çëɾ³ý»òÖØÃüÃû£¡
Ïà¹ØÎĵµ£º
oracle±í¿Õ¼ä²Ù×÷Ïê½â
1
2
3×÷Õߣº À´Ô´£º ¸üÐÂÈÕÆÚ£º2006-01-04
5
6
7½¨Á¢±í¿Õ¼ä
8
9CREATE TABLESPACE data01
10DATAFILE '/ora ......
exp/impÊÇOracle×Ô´øµÄµ¼Èëµ¼³öÃüÁÔËÓÃËü£¬¼´Ê¹²»ÐèÒªÄǽáUI¹¤¾ßÒ²ÄÜÇáÒ×µÄÍê³ÉÊý¾Ýµ¼³öµ¼È빤×÷£¬ÏÂÃæÊÇËüÃǵIJÎÊý£º
EXP²ÎÊýÏê½â
ʹÓõĸñʽÊÇ£ºEXP KEYWORD=value »ò KEYWORD=(value1,value2,...,valueN)
ÆäÖÐUSERIDÊDZØÐëµÄÇÒΪµÚÒ»¸ö²ÎÊý
¹Ø¼ü×Ö
±¸×¢
USERID
Óû§Ãû/¿ÚÁî
FULL
µ¼³öÕû¸öÎļþ (N)
BUFFER
......
ºÜ¾Ã²»ÓõÄoralceÊý¾Ý¿â£¬Èç¹ûÍü¼ÇÁËÃÜÂ룬¿ÉÒÔÕâÑù½â¾ö£º
Èç¹ûûÓÐÉèÖû·¾³±äÁ¿£¬ ȥĿ¼C:\oracle\product\10.2.0\db_1\BIN Ö´ÐÐÒÔÏÂÃüÁ
C:\oracle\product\10.2.0\db_1\BIN>sqlplus /nolog
SQL*Plus: Release 10.2.0.1.0 - Production on Fri Jan 22 16:00:18
2010 Copyright (c) 1982, 2005, Oracle. All ri ......
ÔÚ°²×°ÍêOracle 10gÖ®ºó£¬Ïë´ò¿ªsql*plusÀ´Ñ§Ï°£¬È»ºó°´ÕÕÊéÉϵIJ½ÖèÓÃscottÓû§À´Á¬½ÓÊý¾Ý¿â£¬¿ÉÊäÁ˺ü¸´Î¶¼Ìáʾһ¸ö´íÎó¡£
error£º the account is locked
È»ºóÉÏÍø²éÁËÒ»ÏÂÖ®ºó·¢ÏÖÕâ¸öÓû§±»Ëø¶¨ÁË£¬ÖÁÓÚËüΪʲô±»Ëø¶¨£¬¿ÉÄÜÊÇÏÂÃ漸¸öÔÒò¡£
1.³¢ÊÔ¶à´ÎµÇ¼δ³É¹¦.(¿ÉÄÜÃÜÂë²»ÕýÈ·)
2.´ËÓû§±»¹ÜÀíÔ±ÊÖ¹¤Ëø¶¨. ......
ORACLE to_date ÏÝÚå
oracle Öв»´øʱ·ÖÃëµÄ×Ö·û´® to_date ת»»Ê±¼äºóÓë´øʱ·ÖÃëµÄdateÐÍ×Ö¶Î×ö´øµÈÖµµÄ±È½Ï (>=,<=,=)ʱ£¬ÓÉÓÚ×Ö·û´®²»´øʱ·ÖÃ룬ËùÒÔת»»ºóʱ·ÖÃëĬÈÏΪ00:00:00,oracleÖбȽÏdateÊÇÒÔÒ»¸öʱ¼äµãÀ´±È½ÏµÄ£¬¾«È·µ½ÃëÉõÖÁºÁÃë΢ÃëÄÉÃë,ËùÒÔdate×ֶεÄʱ·ÖÃ벻Ϊ00:00:00µÄ¾ÍÓë²»´øʱ·ÖÃë×Ö·û´®×ª»»º ......