OracleÊý¾Ý¿â
ɾ³ýÊý¾Ý¿â£º
1¡¢Í£Ö¹Êý¾Ý¿â·þÎñ
2¡¢É¾³ýʵÀý oradim –delete –sid liluf
3¡¢É¾³ýÊý¾Ý¿âÎļþ
ÐÂÔöÊý¾Ý¿â£º
1¡¢ ½¨Á¢Êý¾Ý¿â¡¢ÅäÖüàÌý¡¢½¨Á¢Óû§
2¡¢ ÓÃÃüÁîÆô¶¯Êý¾Ý¿â
×¢:×¢²á±íregedit HKEY_LOCAL_MACHINE-----SOFTWARE------ORACLE----HOMEO
²ÎÊýÖУºORA_LMIS_AUTOSTART=TRUE ±íʾ£ºÆô¶¯/¹Ø±Õ·þÎñʱÆô¶¯Êý¾Ý¿â
ORA_LMIS_AUTOSTART=FALSE ±íʾ£ºÆô¶¯/¹Ø±Õ·þÎñʱ²»Æô¶¯Êý¾Ý¿â
3¡¢ Æô¶¯·þÎñ
oradim -startup -sid lmis -starttype srvc
Èç¹ûÊÇ oradim -startup -sid lmis ϵͳ»á±¨´í
ORA-01031: insufficient privileges
µ«ÊDz»Ó°Ïì·þÎñµÄÆô¶¯
4¡¢ Æô¶¯Êý¾Ý¿â
1£© C:\Documents and Settings\liuf>sqlplus /nolog
2£© SQL> conn sys/liuf@lmis_liuf as sysdba
3£© SQL> select * from dual;
select * from dual
*
ERROR λÓÚµÚ 1 ÐÐ:
ORA-01034: ORACLE not available
ÓÉÓÚ²ÎÊýORA_LMIS_AUTOSTART=FALSE£¬ËùÒÔ·þÎñÆô¶¯£¬Êý¾Ý¿âûÓÐÆô¶¯
4£© SQL> startup
5¡¢ ¹Ø±ÕÊý¾Ý¿â
SQL> shutdown abort
Ö¸¶¨ÈÎÎñ¼Æ»®±¸·ÝÊý¾Ý¿â- - Oracle Tips 23
1¡¢±àдµ¼³öÅú´¦ÀíÎļþ£¨*.BAT£©
Eg: EXP liuf/**@lmis_local buffer=50000000 FILE=d:\lmissd0830.dmp LOG=d:\lmissd0830.log ōwner=liuf feedback=1000000
2¡¢Öƶ¨ÈÎÎñ¼Æ»®
¿ØÖÆÃæ°å->ÈÎÎñ¼Æ»®->Ìí¼ÓÈÎÎñ¼Æ»®£ºÌí¼ÓдºÃµÄµ¼³öÅú´¦ÀíÎļþ
3¡¢Ö¸¶¨±¸·ÝÖÜÆÚ
4¡¢ÊäÈëÆôÓÃÓû§Ãû¼°ÃÜÂë
×¢£º±ØÐëÊÇ»úÆ÷µÄÓû§ÃûºÍÃÜÂë
˵Ã÷£ºÃ¿´Î±¸·ÝµÄDMPÎļþ¶¼ÊÇÉϴεĸ²¸Ç£¬¶ø²»ÊÇDMPÎļþµÄÔö¼Ó¡£
Ô¶³Ìά»¤¹¤¾ß£PcAnyWhere - - Oracle Tips 22
Ïà¹ØÎĵµ£º
ÊÖÍ·ÕýÔÚ½øÐÐÒ»¸öÏîÄ¿£¬ÐèҪȫÎļìË÷£¬¾¹ýͬÊÂ×ÐϸËÑË÷·¢ÏÖ£ºoracleÌṩoracle textµÄÈ«ÎļìË÷¹¦ÄÜ¡£
oracle textµÄ¼òµ¥Ó¦ÓþͬʲâÊÔ½á¹ûÕý³££¬°´ÕÕÏîĿҪÇó(ÏîĿԤ¶¨·½°¸wordÎĵµ´æÈëÊý¾Ý¿â(blobÀàÐÍ))ʹÓÃoracle text²éѯ½á¹ûÈ·ÊÇΪ¿Õ£¬Í¬ÊÂÑо¿µ½´ËÖжϡ£
  ......
ÔÚSQLÓï¾äÓÅ»¯¹ý³ÌÖУ¬¾³£»áÓõ½hint,
ÒÔÏÂÊÇÔÚSQLÓÅ»¯¹ý³ÌÖг£¼ûOracleÖÐ"HINT"µÄ30¸öÓ÷¨1. /*+ALL_ROWS*/
±íÃ÷¶ÔÓï¾ä¿éÑ¡Ôñ»ùÓÚ¿ªÏúµÄÓÅ»¯·½·¨,²¢»ñµÃ×î¼ÑÍÌÍÂÁ¿,ʹ×ÊÔ´ÏûºÄ×îС»¯.
ÀýÈç:
SELECT /*+ALL+_ROWS*/ EMP_NO,EMP_NAM,DAT_IN from BSEMPMS WHERE EMP_NO='SCOTT';
2. /*+FIRST_ROWS*/
±íÃ÷¶ÔÓï¾ä¿éÑ¡Ôñ ......
Create directoryÈÃÎÒÃÇ¿ÉÒÔÔÚOracleÊý¾Ý¿âÖÐÁé»îµÄ¶ÔÎļþ½øÐжÁд²Ù×÷£¬¼«´óµÄÌá¸ßÁËOracleµÄÒ×ÓÃÐԺͿÉÀ©Õ¹ÐÔ¡£
ÆäÓ﷨Ϊ:
create or replace directory exp_dir as '/tmp';
Ŀ¼´´½¨ÒԺ󣬾ͿÉÒ԰ѶÁдȨÏÞÊÚÓèÌØ¶¨Óû§£¬ÀýÈç:
grant read, write on directory exp_dir to eygle;
´ËʱÓû§eygle¾ÍÓµÓÐÁ˶ԸÃĿ¼µÄ¶ ......
oracleÖУ¬
±í½á¹¹ÈçÏ£º
create table device
(
id number(10) not null primary key,
dept varchar2(50) not null
)
tablespace users
/
Òª½«dept×ֶθüгÉÈçÏÂÄÚÈÝ£ºselect * from message where name='tom'
ÎÒÊÔ¹ýʹÓÃÈçϵĸüÐÂÓï¾ä²»ÐУºupdate device set dept='selec ......
¶¨Ò壺
´æ´¢¹ý³Ì£¨Stored Procedure £©ÊÇÒ»×éΪÁËÍê³ÉÌØ¶¨¹¦ÄܵÄSQL Óï¾ä¼¯£¬¾±àÒëºó´æ´¢ÔÚÊý¾Ý¿âÖС£Óû§Í¨¹ýÖ¸¶¨´æ´¢¹ý³ÌµÄÃû×Ö²¢¸ø³ö²ÎÊý£¨Èç¹û¸Ã´æ´¢¹ý³Ì´øÓвÎÊý£©À´Ö´ÐÐËü¡£´æ´¢¹ý³ÌÊÇÊý¾Ý¿âÖеÄÒ»¸öÖØÒª¶ÔÏó£¬ÈκÎÒ»¸öÉè¼ÆÁ¼ºÃµÄÊý¾Ý¿âÓ¦ÓóÌÐò¶¼Ó¦¸ÃÓõ½´æ´¢¹ý³Ì¡£ ´æ´¢¹ý³ÌÊÇÓÉÁ÷¿ØÖƺÍSQL Óï¾äÊéдµÄ¹ý ......