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

±±´óÇàÄñoracleѧϰ±Ê¼Ç13

ǶÌ×±í£º
Óë¿É±äÊý×éÀàËÆ£¬²»Í¬Ö®´¦ÊÇǶÌ×±íûÓÐÊý¾ÝÉÏÏÞ¡£
Óï·¨£º
´´½¨»ùÀàÐÍ
create or replace type ǶÌ×±í»ùÀàÐÍÃû as object(×ֶβÎÊý);
create or replace type mingxitype as object(
goodsid varchar(15),
incount int,
providerid varchar(10)
)not final;
´´½¨Ç¶Ì×±íÀàÐÍ
create or replace type ǶÌ×±íÀàÐÍÃû as table of ÀàÐÍÃû;
create or replace type nestmingxitype as table of mingxitype;
´´½¨±í
create table Ö÷±íÃû(
×Ö¶Î1 ÀàÐÍ,
×Ö¶Î2 ÀàÐÍ,
...
×Ö¶În ÀàÐÍ,
ǶÌ×ÀàÐÍ×ֶΠǶÌ×±íÀàÐÍÃû
)nested table ǶÌ×ÀàÐÍ×Ö¶ÎÃû store as ÕæÕý´æ´¢µÄǶÌ×±í;
create table instock
(
orderid varchar(13) not null primary key,
indate date,
mingxi nestmingxitype
)nested table mingxi store as mingxitable;
ÕâÀïÎÒÏë·ÃÎÊʵ¼Ê´æ´¢µÄ±ímingxitable£¬½á¹ûoracle±¨´íÈçÏ£º
cannot reference nested table column's storage table
¿´À´Ïë¿´¿´ÊDz»ÐÐÁË
Ìí¼ÓÊý¾Ý£º
insert into Ö÷±íÃû [(×Ö¶ÎÁбí)] values(
»ù±¾²ÎÊýÁбí,
ǶÌ×±íÀàÐÍÃû(ǶÌ×±í»ùÀàÐÍÃû(²ÎÊýÁбí))
);
insert into instock values(
'200200060001',
to_date('2002-08-06','yyyy-mm-dd'),
nestmingxitype(
mingxitype('j001',200,'1001'),
mingxitype('s001',1000,'1002'),
mingxitype('t005',500,'1003')
)
);
¸üÐÂǶÌ×±íÊý¾Ý£º
¸üÐÂǶÌ×±íʱ²¢²»ÓÃÏñ¸üпɱäÊý×éÒ»Ñù¸üÐÂÈ«²¿Êý¾Ý£¬¿ÉÒÔ¸üÐÂÖƶ¨Êý¾Ý¡£
update table(select t.mingxi from instock t where orderid = 1002) mx
set mx.incount = 500
where mx.goodid='10001';
²éѯǶÌ×±íÖÐÊý¾Ý£º
select * from table(select p.mingxi from instock where orderid = '200200060001');
ɾ³ýǶÌ×±íÊý¾Ý£º
delete from table(select t.mingxi from instock t where orderid = '200200060001') t
where t.goodsid='j0001';
×ÜÖ®£¬Ê¹ÓÃtable()º¯Êý½«Ç¶Ì×±í¿´×÷Ò»ÕÅÆÕͨµÄ±í£¬²Ù×÷ʱºò½«º¯ÊýǶÌ×µ½sqlÓï¾äÖм´¿É¡£
¶ÔÏó±í£º
±íÖÐÿһÐж¼´ú±íÒ»¸ö¶ÔÏó
°üº¬¶ÔÏó±êʶ·û OID
REF²Ù×÷·ûÓÃÓÚÒýÓÃÐжÔÏó
DEREF²Ù×÷·ûÓû§·µ»ØÐжÔÏóµÄÖµ
Àý£º
´´½¨¿ÆÊÒÀàÐÍ
create or replace type officetype as object(
  id varchar(10),
  typename varchar(10)
);
ͨ¹ý¿ÆÊÒÀàÐÍ´´½¨¿ÆÊÒ±í
create table offic of officetype;
²


Ïà¹ØÎĵµ£º

±±´óÇàÄñoracleѧϰ±Ê¼Ç6

Ëø
²éѯÆäËûÓû§µÄ±í <Óû§Ãû.±íÃû>
Ëø¶¨Ä£Ê½£º
Ðм¶Ëø
Ðб»ÅÅËûÐÔËø¶¨
ÔÚijÐеÄËø±»ÊÍ·Å֮ǰ£¬ÆäËûÓû§²»ÄÜÐ޸ĴËÐÐ
ʹÓÃcommit rollbackÃüÁîÊÍ·ÅËø
»ñÈ¡Ðм¶Ëø
ʹÓÃinsert¡¢updateÓï¾ä£¬×Ô¶¯ÉÏÐм¶Ëø
ʹÓÃselect...for update [of ÁÐÃû] Óï¾ä×Ô¶¯»ñÈ¡Ðм¶Ëø
ÔÚ±íµÄÒ»Ðлò¶àÐзÅÖÃÅÅËûËø£¬ÓÃÓÚ·ÀÖÎÆäË ......

OracleÓëAIXµÄ½ÇÉ«

1.2.1  OracleÓëAIXµÄ½ÇÉ«
OracleÔËÐÐÔÚAIXÉÏ£¬Ìṩ×ÅÊý¾ÝµÄ´æ´¢ºÍ¹ÜÀí·þÎñ¡£Êý¾Ý¼´ÐÅÏ¢£¬OracleÊý¾Ý¿â¾ÍÊÇÓ¦ÓÃϵͳÖд洢Êý¾ÝÐÅÏ¢µÄÒ»¸ö¼¯Öд洢λÖá¢Ò»ÖÖ´æÈ¡·½·¨µÄÉÌÆ·»¯ÊµÏÖ¡£AIXÊdzÐÔØOracleÔËÐеĵײãƽ̨£¬½øÐÐ×ÅCPUµ÷¶È¡¢ÄÚ´æµ÷¶È¡¢´æ´¢¹ÜÀí¡¢Îļþ¹ÜÀí¡¢ÍøÂçÇý¶¯µÈϵͳÔËÐкÍά»¤¹¤×÷¡£
×÷Ϊ¶ÔÓ¦ÓÃϵͳµÄÖ§ ......

ora_01034:oracle not available±¨´í ½â¾ö·½·¨

ÒòΪǿÖƹػú£¬¿ª»úµÄʱºò½øÈëÊý¾Ý¿â±¨´í£º
ora_01034:oracle not available
ora_27101:shared memory realm does not exit
½â¾ö·½·¨£º
1.´ò¿ªCMD
2.ÊäÈë sqlplus "/as sysdba"
3.»Ø³µ
4.ÊäÈë startup
5.½áÊø ......

½ñÌìoracle DBA½ç´óʦ¼¶ÈËÎï¸Ç¹úÇ¿ÏÈÉúÀ´ÎÒÃǹ«Ë¾

      2010Äê3ÔÂ5ÈÕ£¬ËäÈ»º®·ç´Ì¹Ç£¬µ«ÒÀÈ»µ²²»×¡¹«Ë¾Í¬ÊºÍÎÒ¹¤×÷µÄÈÈÇé.µÎ´ð¡¢µÎ´ð,ͬÊÂÊÖ»úÏìÁË£¬ÀÏ×ܸøËû´òµç»°£¬Ëµ¹ã¶«ÁªÍ¨ÍøÓÅƽ̨Êý¾Ý¿â³öÏÖÎÊÌ⣬ÓÉÓÚÊý¾ÝÁ¿È·Êµ¹ý´ó£¬Í¬ÊÂÒÔÇ°Ò²´¦Àí¹ýÄDZߵÄÎÊÌ⣬Ö÷ÒªÊÇËùÓÐÊý¾ÝÁ¿´óµÄ±íÿ¸ôÒ»Ì콨Á¢Ò»¸öË÷Òý£¬ÕâÑù²éѯÊý¾ÝËٶȱȽϿ졣µ«ÊǽøÐÐÊý¾Ý»ã× ......

±±´óÇàÄñoracleѧϰ±Ê¼Ç11

´Ø£º
Óй«¹²ÁеÄÁ½¸ö»ò¶à¸ö±íµÄ¼¯ºÏ
´Ø±íÖеÄÊý¾Ý´æ´¢ÔÚ¹«¹²Êý¾Ý¿éÖÐ
´Ø¼ü£º
Ψһ±êʶ·û
´´½¨´Ø£º
¼õÉÙI/O²Ù×÷£¬¼õÉÙ´ÅÅ̿ռ䣬µ«ÊDzåÈëÐÔÄܽµµÍ¡£
Á½ÕűíÖÐÓй²Í¬µÄÁУ¬±ÈÈçѧÉú±íÖÐÓа༶±àºÅ£¬°à¼¶±íÖÐÒ²Óа༶±àºÅ£¬¿ÉÒÔ½«°à¼¶±àºÅ´æ·ÅÔÚ´ØÖÐ
create cluster ´ØÃû(
×Ö¶ÎÃû ÀàÐÍ
)tablespace ±íÃüÃû¿Õ¼ä;
cr ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ