ORACLE ѧϰ
Ò»¡¢°²×°(ÂÔ)
·þÎñÆ÷¶Ë
1¡¢windows:£¨ÂÔ£©
2¡¢linux:´ýÐø...
¿Í»§¶Ë
´ýÐø...
--°üÀ¨ÅäÖÃ--
¶þ¡¢µÇ½
1¡¢sqlplus·½Ê½£º
client→
Óû§Ãû£ºsys
¿ÚÁ ***
Ö÷»ú×Ö·û´®£ºorcl_192.168.1.88 as sysdba //orclΪÖ÷»ú×Ö·û´®£¨ÔÚtnsnames.oraÅäÖã©;ipΪ·þÎñÆ÷ipµØÖ·
server→
Óû§Ãû£ºsys
¿ÚÁ ***
Ö÷»ú×Ö·û´®£ºorcl as sysdba //¼ÓÉÏas sysdba ÊÇΪÁË·ÀÖ¹“connection as sys should be as sysdba or sysoper”µÄ´íÎó;
2¡¢oracle Enterprise Manager console·½Ê½£º
Ê×ÏȽ«Êý¾Ý¿âÌí¼Óµ½Ê÷
ÍøÂç·þÎñÆ÷Ãû=SID_Ö÷»úÃû(IP)
3¡¢pl/sql £¨etc ÂÔ£©
4¡¢cmd·½Ê½£º
>sqlplus /nolog
>conn sys/123456 @orcl_192.168.1.88 as sysdba //client; ÈôÊÇserver°ÑipÈ¥µô¡£
¸½£º¸ÅÄî
1¡¢Ãû´Ê½âÒ룺
dbca :Database configuration assistant //×÷ÓÃÊÇͨ¹ýËüÀ´´´½¨Êý¾Ý¿â¡£client¶ËûÓÐÕâ¸ö¹¤¾ß¡£
2¡¢Óësql¶Ô±È£º
sql server:¿â(ÎïÀíÎļþ)→±í→Óû§;
oracle:¿â(Âß¼)→±í¿Õ¼ä→Óû§→±í£¨ÓÐÎ󡣡££©
3¡¢ÉîÈëÀí½âoracle:
±í¿Õ¼ä:
Ïà¹ØÎĵµ£º
µÚÒ»Õ£ºÈÕÖ¾¹ÜÀí
1.forcing log switches
sql> alter system switch logfile;
2.forcing checkpoints
sql> alter system checkpoint;
3.adding online redo log groups
sql> alter database add logfile [group 4]
sql> ('/disk3/log4a.rdo','/disk4/lo ......
'
ALTER TABLESPACE app_data
ADD DATAFILE 'u01/oradata/userdata03.dbf'
SIZE 200M;
'´´½¨±í¿Õ¼ä
CREATE TABLESPACE userdata
DATAFILE 'u01/oradata/userdata03.dbf' SIZE 100M
AUTOEXTEND ON NEXT 5M MAXSIZE 200M;
'´´½¨»Ø¹ö±í¿Õ¼ä
CREATE UNDO TABLESPACE undo1
DATAFILE ' ......
select dbtimezone from dual ; --²é¿´Êý¾Ý¿âÊ±Çø
select sessiontimezone from dual ; --²é¿´»á»°Ê±Çø
1.select u.name || '.' || o.name || '.' || c.name TSLTZcolumn
from sys.obj$ o, sys.col$ c, sys.user$ u
&nbs ......
¤½¤ÎËû¤Î¥ª¥Ú¥ìー¥Æ¥£¥ó¥°?¥·¥¹¥Æ¥à¤Ë¤ª¤±¤ë¥Çー¥¿¥Ùー¥¹¤ÎÆð動¤ÈÍ£Ö¹¤Î×Ô動»¯
dbstart¤ª¤è¤Ódbshut¥¹¥¯¥ê¥×¥È¤òʹÓ䷤ƥÇー¥¿¥Ùー¥¹¤ÎÆð動¤ÈÍ£Ö¹¤ò×Ô動»¯¤¹¤ë¤Ë¤Ï¡¢´Î¤ÎÊÖ順¤ò実ÐФ·¤Þ¤¹¡£
root¥æー¥¶ー¤Ç¥í¥°¥¤¥ó¤·¤Þ¤¹¡£
¥×¥é¥Ã¥È¥Õ ......
oracle²¹¶¡ÏÂÔØ
¹Ø¼ü×Ö: oracle
9.2.0.4 = 3095277
9.2.0.5 = 3501955
9.2.0.6 = 3948480
9.2.0.7 = 4163445
9.2.0.8 = 4547809£¨9i×îÖÕ£©
10.1.0.3 = 3761843
10.1.0.4 = 4163362
10.1.0.5 = 4505133
10.2.0.2 = 4547817
10.2.0.3 = 5337014
10.2.0.4 = 6810189
ÏÂ ......