Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

oracle ³õ²½Ñ§Ï°±Ê¼Ç


Ò»:oracle°æ±¾½éÉÜ:
oracle8
oracle8i ±íʾ´Ëʱoracle¹«Ë¾½ø¾ü»¥ÁªÍø,i´ú±íInternet
oracle9iºÍoracle8iÀàËÆ
oracle10g°üÀ¨ÏÖÔÚµÄ11gʹÓÃÁËÍø¸ñ¼ÆËã,g´ú±ígrid.
 
¶þ:oracle10g·þÎñ½éÉÜ:
OracleDBConsoleorcl Õâ¸öÊDzÉÓÃä¯ÀÀÆ÷ʹÓõÄoracleÆóÒµ¹ÜÀíÆ÷ (Ò²¾ÍÊÇÄã°²×°µ¯³öµÄÄǸöÍøÒ³)
OracleOraDb10g_home1iSQL*Plus ÊÇisql*plusµÄ·þÎñ,ҪʹÓÃisqlplus,±ØÐ뿪Æô¸Ã·þÎñ
OracleJobSchedulerORCL(ºóÃæµÄ:ORCLÊÇÄãµÄʵÀýÃû)ÓÃoracleµÄschedulerʱ,Õâ¸ö·þÎñ±ØÐëÆô¶¯
 
×ö³ÌÐò¿ª·¢±ØÐ뿪ÆôµÄ·þÎñ:
OracleServiceORCL Êý¾Ý¿â·þÎñÆ÷.(ºóÃæµÄ:ORCLÊÇÄãµÄʵÀýÃû)
OracleOraDb10g_home1TNSListener ¼àÌýÆ÷(µÈ´ý¿Í»§¶Ë¹¤¾ßÀ´Á¬½ÓÊý¾Ý¿âµÄ³ÌÐò,¾ÍÊÇ¿Í»§¶ËÒªÁ¬½ÓÊý¾Ý¿â´Ë·þÎñ±ØÐë´ò¿ª)
 
ºÇºÇ.ÎÒ×°µÄ°æ±¾¾ÍÕâÎå¸ö·þÎñ.
 
Èý:ʹÓÃsqlplus,sqlplusw;
sqlplusÊÇorcleÒ»¸öÃüÁîÐÐÖ´ÐеŤ¾ßÈí¼þ
ÔÚcmdÊäÈësqlplus»òÕßsqlplusw
sqlplus:ÒÔÃüÁîÐеķ½Ê½½øÈëÊý¾Ý¿âÁ¬½Ó
sqlplusw:ÒÔ´°¿ÚµÄÐÎʽÆô¶¯ÃüÁîÐй¤¾ß
sqlplusw·½Ê½½øÈë»áÓиöÖ÷»úÁ¬½Ó×Ö·û´®,Èç¹ûһ̨µçÄÔÉÏÓÖ¶à¸öÊý¾Ý¿âµÄ»°
ÔòÒªÔڴ˳öÊäÈëÊý¾Ý¿âÃû³Æ.ĬÈÏÇé¿öÏÂ(²»ÊäÈëÇé¿öÏÂ)Ôò½øÈëÉÏÒ»´Î´´½¨µÄÊý¾Ý¿â.
 
ËÄ:sqlpluswÖг£ÓÃÃüÁî:
 
1.ÉèÖÿØÖÆ̨ÐÐÏÔʾ³¤¶È:
set linesize ³¤¶È;
Èç:
set linesize 200;
 
2.ÉèÖÿØÖÆ̨һҳÏÔʾ¶àÉÙÊý¾Ý:
set pagesize Ò³Êý;
Èç:
set pagesize 30;
 
3.ÊÚȨÓû§:
Èç¹û°²×°ÖÐûÓнâËøoracleÄãҪʹÓÃÕʺŵÄʱºò,¿ÉÒÔʹÓùÜÀíÔ±µÇ½:È»»§ÊÚȨÓû§(½âËø)
ÏÂÃæ¾ÍÊÇÊÚȨ´úÂ룬ÔÚsqlpluswÖÐд£¬ÏÈÒ»ÐÐÒ»ÐеÄÈ¥Ö´ÐУ¬È«Ö´ÐÐÍê±Ïºó£¬ÖØеǽ£¬Æä¼ä»áÎÊÄãÊÇ·ñ¸ÄscottµÄµÇ½ÃÜÂë¡£¸ÄÍêµÇ½¾Í¿ÉÒÔʹÓÃÁË¡£
select * from dba_users;
alter user scott account unlock;
 
4.ʹÓüÇʱ¾±à¼­sql:
ed ÎļþÃû
Èç:ed editsql
 
ʹÓÃ:@editsqlÖ´ÐÐÄã¼Çʱ¾±à¼­µÄsqlÃüÁî
 
ʹÓÃ:@ path ÎļþÃû ¿ÉÒÔÖ´ÐÐÖ¸¶¨Â·¾¶µÄsqlÃüÁî
Èç:@d:\a.txt
Èç¹ûÎļþÃûÊÇ*.sql±ÈÈç:(a.sql)¿ÉÒÔ²»ÊäÈëÀ©Õ¹Ãû.
 
 
 
5.sqlpluswÖиü»»Óû§:
¸ü»»ÆÕͨÓû§ºÍ¹ÜÀíÔ±Óû§:
Èç:conn scott/112233
Èç:conn system/112233
 
¸ü»»³¬¼¶¹ÜÀíÔ±Óû§:
conn Óû§Ãû/ÃÜÂë [as sysdba|sysoper]
Èç:conn sys/112233 as sysoper;
×¢Òâ:±ØÐëÔÚºóÃæ¼ÓÉÏsysdba»òsysoper;
 
×¢Òâ:µ±Äã¸Ä±ä


Ïà¹ØÎĵµ£º

Oracle °²×°ÏµÁÐ ¾²Ä¬°²×°Êý¾Ý¿âÈí¼þ

ÔںܶàÆóÒµ¼¶°²×°Êý¾Ý¿âʱ£¬³£³£Óдó¹æÄ£µÄ°²×°ÈÎÎñ£¬ÕâʱʹÓÃÏìÓ¦ÎļþÀ´ÅúÁ¿°²×°¿ÉÒÔÌá¸ß¹¤×÷ЧÂÊ£¬ÏÂÃæ½éÉÜÊý¾Ý¿âÈí¼þµÄ¾²Ä¬°²×°·½Ê½¡£
Ò»¡¢Êý¾Ý¿â·þÎñÆ÷¶Ë°²×°
1. Éú³É°²×°ÏìÓ¦Îļþ
$./runInstaller -record -destinationFile /tmp/install_database_10g.rsp
Õâʱ»áÆô¶¯Í¼ÐνçÃæÀ´Â¼ÖÆÎÒÃÇÐèÒªµÄÏìÓ¦Îļþ¡£
×¢Ò⣺ ......

OracleѹËõ±í±í¿Õ¼ä

´ÓOracle 9iR2 ¿ªÊ¼,ORACLEÌṩÁ˱í/±í¿Õ¼äѹËõ¼¼Êõ,ÒÔ¼õÉÙ´ÅÅÌ¿ªÏú,½ÚÊ¡¿Õ¼ä,²¢ÔÚijЩÇé¿öÏÂÌá¸ß²éѯÐÔÄÜ¡£
 
±íѹËõÊÇÈçºÎ¹¤×÷µÄ
ÔÚOrcle9iµÚ2°æÖУ¬±íѹËõÌØÐÔͨ¹ýɾ³ýÔÚÊý¾Ý¿â±íÖз¢ÏÖµÄÖظ´Êý¾ÝÖµÀ´½ÚÊ¡¿Õ¼ä¡£Ñ¹ËõÊÇÔÚÊý¾Ý¿âµÄÊý¾Ý¿é¼¶±ðÉϽøÐеġ£µ±È·¶¨Ò»¸ö±íÒª±»Ñ¹Ëõºó£¬Êý¾Ý¿â±ãÔÚÿһ¸öÊý¾Ý¿âÊý¾Ý¿éÖб£ ......

oracle ³£Óú¯Êý

SQLÖеĵ¥¼Ç¼º¯Êý
1.ASCII
·µ»ØÓëÖ¸¶¨µÄ×Ö·û¶ÔÓ¦µÄÊ®½øÖÆÊý;
SQL> select ascii(’A’) A,ascii(’a’) a,ascii(’0’) zero,ascii(’ ’) space from dual;
A A ZERO SPACE
--------- --------- --------- ---------
65 97 48 32
2.CHR
¸ø³öÕûÊý,·µ»Ø¶ÔÓ¦µÄ× ......

oracleÈ«ÎÄË÷ÒýºÍ¶¨Ê±ÈÎÎñ

--Ê×Ïȼì²éÊý¾Ý¿âÖÐÊÇ·ñÓÐCTXSYSÓû§ºÍCTXAPP½ÅÉ«¡£
--Èç¹ûûÓÐÕâ¸öÓû§ºÍ½ÇÉ«£¬Òâζ×ÅÄãµÄÊý¾Ý¿â´´½¨Ê±Î´°²×°intermedia¹¦ÄÜ¡£
--Äã±ØÐëÐÞ¸ÄÊý¾Ý¿âÒÔ°²×°ÕâÏÄÜ¡£
--ÓÃsysÓû§ÎªÁËÓû§gzinfo·ÖÅäȨÏÞ
grant
 CTXAPP 
to
 gzinfo;
grant
 
execute
 
on
 ctx_ddl 
to
......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ