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

oracle IMP ÃüÁîÏê½â


Ô­ÎĵØÖ·£ºhttp://www.bokee.net/bloggermodule/blog_viewblog.do?id=465310
OracleµÄµ¼ÈëʵÓóÌÐò(Import utility)ÔÊÐí´ÓÊý¾Ý¿âÌáÈ¡Êý¾Ý£¬²¢ÇÒ½«Êý¾ÝдÈë²Ù×÷ϵͳÎļþ¡£impʹÓõĻù±¾¸ñʽ£ºimp[username[/password[@service]]]£¬ÒÔÏÂÀý¾Ùimp³£ÓÃÓ÷¨¡£
 
1. »ñÈ¡°ïÖú
imp help=y
2. µ¼ÈëÒ»¸öÍêÕûÊý¾Ý¿â
imp system/manager file=bible_db log=dible_db full=y ignore=y
3. µ¼ÈëÒ»¸ö»òÒ»×éÖ¸¶¨Óû§ËùÊôµÄÈ«²¿±í¡¢Ë÷ÒýºÍÆäËû¶ÔÏó
imp system/manager file=seapark log=seapark fromuser=seapark imp
system/manager file=seapark log=seapark fromuser=(seapark,amy,amyc,harold)
4. ½«Ò»¸öÓû§ËùÊôµÄÊý¾Ýµ¼ÈëÁíÒ»¸öÓû§
imp system/manager file=tank log=tank fromuser=seapark touser=seapark_copy
imp system/manager file=tank log=tank fromuser=(seapark,amy)
touser=(seapark1, amy1)
5. µ¼ÈëÒ»¸ö±í
imp system/manager file=tank log=tank fromuser=seapark TABLES=(a,b)
6. ´Ó¶à¸öÎļþµ¼Èë
imp system/manager file=(paycheck_1,paycheck_2,paycheck_3,paycheck_4)
log=paycheck, filesize=1G full=y
7. ʹÓòÎÊýÎļþ
imp system/manager parfile=bible_tables.par
bible_tables.par²ÎÊýÎļþ£º
#Import the sample tables used for the Oracle8i Database Administrator's
Bible. fromuser=seapark touser=seapark_copy file=seapark log=seapark_import
8. ÔöÁ¿µ¼Èë
imp system./manager inctype= RECTORE FULL=Y FILE=A
Oracle imp/exp
C:Documents and Settingsadministrator>exp help=y
Export: Release 9.2.0.1.0 - Production on ÐÇÆÚÈý 7ÔÂ 28 17:04:43 2004
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.

ͨ¹ýÊäÈë EXP ÃüÁîºÍÓû§Ãû/¿ÚÁÄú¿ÉÒÔºó½ÓÓû§Ãû/¿ÚÁîµÄÃüÁî:
Àý³Ì: EXP SCOTT/TIGER
»òÕߣ¬ÄúÒ²¿ÉÒÔͨ¹ýÊäÈë¸úÓи÷ÖÖ²ÎÊýµÄ EXP ÃüÁîÀ´¿ØÖÆ“µ¼³ö”°´ÕÕ²»Í¬²ÎÊý¡£ÒªÖ¸¶¨²ÎÊý£¬Äú¿ÉÒÔʹÓùؼü×Ö:
¸ñʽ: EXP KEYWORD=value »ò KEYWORD=(value1,value2,...,valueN)Àý³Ì: EXP SCOTT/TIGER GRANTS=Y TABLES=(EMP,DEPT,MGR)»ò TABLES=(T1: P1,T1: P2)£¬Èç¹û T1 ÊÇ·ÖÇø±í
USERID ±ØÐëÊÇÃüÁîÐÐÖеĵÚÒ»¸ö²ÎÊý¡£
¹Ø¼ü×Ö ËµÃ÷(ĬÈÏ) ¹Ø¼ü×Ö ËµÃ÷(ĬÈÏ)---------------------------------------------------------


Ïà¹ØÎĵµ£º

Ö´ÐÐcommitʱoracle×öÄÄЩ¹¤×÷

COMMITÊÇÒ»¸ö·Ç³£¿ìµÄ²Ù×÷£¬µ±ÎÒÃÇ·¢²¼commitÃüÁîʱ£¬ÕæÕýÀ§ÄѵĶ¯×÷ÒѾ­Íê³É£¬
ÔÚÊý¾Ý¿âÖÐÒѾ­Ö´ÐÐÁËÊý¾Ý¸ü¸Ä£¬ËùÒÔÒѾ­Íê³ÉÁË99%µÄÈÎÎñ£¬ÀýÈ磺ÏÂÁвÙ×÷ÒѾ­²úÉú£º
 
      1.ÔÚSGA(Buffer Cache)ÖÐÒѾ­Éú³ÉÁËundo¿é£»
      2.ÔÚSGA(Buffer Cache)ÖÐÒѾ­Éú³ ......

ÐÞ¸ÄOracle 10g SGA ´óС

ʹÓÃSYSÓû§ÒÔSYSDBAÉí·ÝµÇ¼ϵͳ
²é¿´ÐÞ¸ÄÇ°sga_max_size£¬sga_target´óС
show parameter sga_max_size;
show parameter sga_target;
Ð޸IJÎÊý
alter system set sga_max_size=1600m scope=spfile;
alter system set sga_target=1600m scope=spfile;
²é¿´Ð޸ĺósga_max_size£¬sga_target´óС
show parameter sga_ ......

±¸·Ý/»Ö¸´OracleÊý¾Ý¿â

1¡¢±¸·ÝÖ¸¶¨µÄ±í¿Õ¼ä
Ê×ÏÈ£¬ÄãҪȷÈÏ×Ô¼ºµçÄÔÉÏÓÐexp.exeÕâ¸ö¶«¶«£¬²ÅÄܽøÐб¸·Ý¹¤×÷¡£
ÎÒÏëÒª±¸·ÝµÄÊÇÓû§ÃûΪcyyµÄ±í¿Õ¼ä£¬±¸·ÝÎļþ´òËã·ÅÔÚDÅÌ£¬²¢ÒÔbackup_oracle.dmpÃüÃû£¬Ë³±ã°ÑÈÕÖ¾ÎļþÒ²±¸·ÝһϺÃÁË¡£
ÔÚÃüÁîÐÐÇÃÈ룺
C:\Documents and Settings\Administrator>exp cyy/cyy@bsrs file=D:\backup_oracle.dmp ......

Oracle spool Ó÷¨Ð¡½á

ת×Ô£ºhttp://wallimn.javaeye.com/blog/472182
¶ÔÓÚSPOOL
Êý¾ÝµÄSQL£¬×îºÃÒª×Ô¼º¶¨Òå¸ñʽ£¬ÒÔ·½±ã³ÌÐòÖ±½Óµ¼Èë,SQLÓï¾ä
È磺
select
taskindex||'|'||commonindex||'|'||tasktype||'|'||to_number(to_char(sysdate,'YYYYMMDD'))
from ssrv_sendsms_task;
spool
³£ÓõÄÉèÖÃ
set colsep' ';¡¡¡¡¡¡ //ÓòÊä³ö·Ö¸ô·û ......

JDBCÁ¬²»ÉÏOracleÊý¾Ý¿âµÄ½â¾ö·½·¨

 ½â¾ö·½·¨£º
    1.  ÏÈ¿´¼¸¸öÅäÖÃÎļþ£ºlistener.ora   tnsnames.ora   sqlnet.ora
    sqlnet.ora-----×÷ÓÃÀàËÆÓÚlinux»òÕßÆäËûunixµÄnsswitch.confÎļþ£¬Í¨¹ýÕâ¸öÎļþÀ´¾ö¶¨ÔõôÑùÕÒÒ»¸öÁ¬½ÓÖгöÏÖµÄÁ¬½Ó×Ö·û´®.¼ÙÈçÎÒµÄsqlnet.oraÊÇÏ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ