ת:ORACLE
¶à±í¹ØÁª UPDATE Óï¾ä
ÔÌû£ºhttp://www.cnblogs.com/miley/archive/2010/04/15/1712617.html
ΪÁË
·½±ãÆð¼û
,½¨Á¢ÁËÒÔϼòµ¥Ä£ÐÍ
,ºÍ¹¹ÔìÁ˲¿·Ö²âÊÔÊý¾Ý
:
ÔÚij¸öÒµ
ÎñÊÜÀí×Óϵͳ
BSSÖУ¬
--¿Í»§×Ê
Áϱí
create table customers
(
customer_id number(8) not null, -- ¿Í»§±êʾ
city_name varchar2(10) not null, -- ËùÔÚ³ÇÊÐ
customer_type char(2) not null, -- ¿Í»§ÀàÐÍ
...
)
create unique index PK_customers on customers
(customer_id)
ÓÉÓÚijЩ
ÔÒò£¬¿Í»§ËùÔÚ³ÇÊÐÕâ¸öÐÅÏ¢²¢²»Ê²Ã´×¼È·£¬µ«ÊÇÔÚ
¿Í»§·þÎñ
²¿µÄ
CRM×ÓϵͳÖУ¬Í¨¹ýÖ÷¶¯·þÎñ»ñÈ¡Á˲¿·Ö
¿Í»§
20%µÄËùÔÚ
³ÇÊеÈ×¼
È·ÐÅÏ¢£¬ÓÚÊÇÄ㽫¸Ã²¿·ÖÐÅÏ¢ÌáÈ¡ÖÁÒ»ÕÅÁÙʱ±íÖУº
create table tmp_cust_city
(
customer_id ......
²é¿´Êý¾Ý»µ¿éËùÔÚÊý¾ÝÎļþºÅ¼°¿éºÅ¿ÉÒÔ¶Ô±í½øÐÐÒ»´ÎÈ«±íɨÃ裬È磺
¡¡¡¡select count(*) from tablename;
¡¡¡¡1¡¢Ã»Óб¸·ÝµÄÇé¿öÏ£º
¡¡¡¡1.1¡¢Ê¹ÓÃexp/imp»Ö¸´
¡¡¡¡ÔÚÕâÖÖÇé¿öÏ¿϶¨»áÔì³ÉÊý¾ÝµÄ¶ªÊ§£¬ÔÚÕâÖÖÇé¿öÏÂÓ¦²ÉÈ¡½«Êý¾Ýµ¼³öÈ»ºóÖؽ¨±íÔÙ½øÐе¼ÈëµÄ·½·¨£¬À´¾¡Á¿»Ö¸´Ëð»µÊý¾Ý¿éÖеÄÊý¾Ý£¬µ«ÊÇÔÚÓлµ¿éµÄÇé¿öÏÂ
ÊDz»ÔÊÐíµ¼³öµÄ£¬ÈçÏÂÃüÁ
¡¡¡¡Exp test/test file=t.dmp tables=t;
¡¡¡¡µ¼³öÃüÁîÔÚÖ´ÐÐÖлᱨORA-01578´íÎó£¬ÔÚÕâ´íÎóÌáʾÖлáÌáʾÄǸöÎļþºÅµÄÎļþÒÔ¼°Õâ¸öÎļþÖеÄÄĸö¿é±»Ë𻵣¬È磺ORA—
01578£ºORACLE Êý¾Ý¿éË𻵣¨ÎļþºÅ 4£¬¿éºÅ 35£©
¡¡¡¡Õë¶ÔÒÔÉϵÄÌáʾÊ×ÏȲéѯÄÇЩ¶ÔÏó±»Ë𻵣º
¡¡¡¡Select tablespace_name,segment_type,owner,segment_name from
dba_extents Where file_id=4 and 35 between block_id and
block_id+blocks-1;
¡¡¡¡Èç¹û±»Ë𻵵ĿéÊÇË÷Òý£¬Í¨³£¿ÉÒÔͨ¹ýË÷ÒýÖؽ¨À´½â¾ö£¬Èç¹ûË𻵵ÄÊÇÊý¾Ý╯egment_typeΪtable£©£¬ÄÇôͨ¹ýÉèÖÃÈçÏÂÄÚ²¿Ê¼þʹµÃExp
²Ù×÷Ìø¹ý»µ¿é¡£
¡¡¡¡Alter session set events=’10231 trace name context forever,level 10’;
¡¡¡¡È»ºóÖØÐÂÖ´Ðе¼³öÃüÁµ¼³öÏà¹ØµÄ±í£¬È ......
TO_DATE¸ñʽ(ÒÔʱ¼ä:2007-11-02 13:45:25ΪÀý)
Year:
yy two digits Á½Î»Äê ÏÔʾֵ:07
yyy three digits ÈýλÄê ÏÔʾֵ:007
yyyy four digits ËÄλÄê ÏÔʾֵ:2007
Month:
mm number Á½Î»Ô ÏÔʾֵ:11
mon abbreviated ×Ö·û¼¯±íʾ ÏÔʾֵ:11ÔÂ,ÈôÊÇÓ¢ÎÄ°æ,ÏÔʾnov
month spelled out ×Ö·û¼¯±íʾ ÏÔʾֵ:11ÔÂ,ÈôÊÇÓ¢ÎÄ°æ,ÏÔʾnovember
Day:
dd number&n ......
select round(sum(case when o.close_date is null then 1 else 0 end)/count(*),3)*100||'%' SCALE from order o
˵Ã÷£ºÊ¹ÓÃsum¶ÔÒ»¶¨Ìõ¼þµÄÊý¾ÝÇóºÍºó£¬Óë×ÜÊý½øÐбȽϡ£
||'%' ΪÒԵİٷֺÅÐÎʽÊä³ö½á¹û(Àý£º2%) ......
CentOS 5.2ÏÂOracle 10G °²×°Ïê½â
2009-01-16 14:38
CentOS ±ØÐèµÄ°²×°°ü
* GNOME Desktop Environment
* Editors
* Graphical Internet
* Text-based Internet
* Development Libraries
* Development Tools
* Legacy Software Development
* Server Configuration Tools
* Administration Tools
* Base
* Legacy Software Support
* System Tools
* X Window System
×¢Ò⣺ΪSWAP·ÖÅäµÄ¿Õ¼äÒª³¬¹ý1G£¬Òª²»È»ºóÃæ×°Oralce»áÒòΪ¿Õ¼ä²»×ã¶øÎÞ·¨°²×°¡£²¢ÇÒÒª¹Ø±Õ·À»ðǽ£¬¹Ø±ÕSELIINUX
ÐÞ¸ÄhostÎļþ
Hosts File
# vi /etc/hosts
192.168.10.10 oracle oracle.localdomain oracle
127.0.0.1 oracle localhost.localdomain localhost
×¢Ò⣺ÄãÒª°Ñ192.168.10.10¸Ä³ÉÄã×Ô¼ºµÄIP£¬ÎÒÕâÀïÖ»ÊÇдÎÒ±¾»úµÄIPµÄ¡£
ÉèÖÃÄں˲ÎÊý
# vi /etc/sysctl.conf
ÔÚÐÐÄ©Ìí¼ÓÒÔÏÂÄÚÈÝ
#use for oracle
#kernel.shmall = 2097152
#kernel.shmmax = 2147483648
kernel.shmmni = 4096
# semaphores: semmsl, semmns, semopm, semmni
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default=262144
n ......
Linuxϵͳɾ³ýoracle 10g£¨°üÀ¨Èí¼þºÍʵÀý£©
Èí¼þ»·¾³£ºLinuxϵͳ¡¡Oracle 10.0.1.0
Éæ¼°Óû§£ºroot oracle
ɾ³ýoracleÈí¼þºÍʵÀý²½Ö裺
1¡¢oracleÓû§µÇ½sqlplusÍ£Ö¹Êý¾Ý¿â£ºshutdown
2¡¢oracleÓû§Í£Ö¹¼àÌý·þÎñ£ºlsnrctl stop£¨Èç¹û¼àÌý·þÎñÆô¶¯µÄ»°£©
3¡¢rootÓû§
ɾ³ý/tmpÏÂora*Îļþ
ɾ³ý/optÏÂOR*Îļþ
ɾ³ý/etcÏÂoraInst.locºÍoratabÎļþ
£¨ÕâÁ½¸öÎļþÊÇ°²×°oracleʱִÐÐ$ORACLE_HOME/root.sh½Å±¾²úÉúµÄ£©
ɾ³ý/usr/local/binÏÂcoraenv¡¢dbhome¡¢oraenv
£¨ÕâÈý¸öÎļþÊÇ°²×°oracleʱִÐÐ$ORACLE_BASE/oraInventory/orainstRoot.sh½Å±¾²úÉúµÄ£©
ɾ³ý$ORACLE_BASEÏÂadmin¡¢flash_recovery_area¡¢oradata¡¢oraInventory
£¨¼ÇסÕâÀﲻҪɾ³ýoracleÓû§Ä¬ÈÏĿ¼£¬Ï´ÎÖØа²×°oracleÈí¼þʱ»¹ÒªÊ¹ÓÃoracleÓû§ÄØ£©
Ìرð×¢ÒâµÄÊDz»ÒªÉ¾³ý$ORACLE_BASEÏÂoracleÓû§Ä¬ÈÏĿ¼£¬Ï´ÎÖØа²×°oracleÈí¼þʱ»¹ÒªÊ¹ÓÃoracleÓû§¡£
ɾ³ýoracleʵÀý£¬²»É¾³ýoracleÈí¼þ
1¡¢oracleÓû§Ö´ÐÐ$ORACLE_HOME/bin/dbca£¬É¾³ýʵÀý
2¡¢²é¿´$ORACLE_BASEĿ¼ÏÂadmin¡¢oradataĿ¼ÊÇ·ñ»¹´æÔÚÎļþ£¬Èç¹û´æÔÚrmÒ»ÏÂɾ³ý¼´¿É¡£È ......
×ܼǼÊý:3994; ×ÜÒ³Êý:666; ÿҳ6 Ìõ;
Ê×Ò³ ÉÏÒ»Ò³ [1] 2
[3] [4] [5] [6] [7] [8] [9] [10] ÏÂÒ»Ò³ βҳ