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

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

´Ø£º
Óй«¹²ÁеÄÁ½¸ö»ò¶à¸ö±íµÄ¼¯ºÏ
´Ø±íÖеÄÊý¾Ý´æ´¢ÔÚ¹«¹²Êý¾Ý¿éÖÐ
´Ø¼ü£º
Ψһ±êʶ·û
´´½¨´Ø£º
¼õÉÙI/O²Ù×÷£¬¼õÉÙ´ÅÅ̿ռ䣬µ«ÊDzåÈëÐÔÄܽµµÍ¡£
Á½ÕűíÖÐÓй²Í¬µÄÁУ¬±ÈÈçѧÉú±íÖÐÓа༶±àºÅ£¬°à¼¶±íÖÐÒ²Óа༶±àºÅ£¬¿ÉÒÔ½«°à¼¶±àºÅ´æ·ÅÔÚ´ØÖÐ
create cluster ´ØÃû(
×Ö¶ÎÃû ÀàÐÍ
)tablespace ±íÃüÃû¿Õ¼ä;
create index Ë÷ÒýÃû on cluster ´ØÃû;
create table ±íÃû1 (
×Ö¶ÎÃû ÀàÐÍ
) cluster ´ØÃû(´ØÖÐ×Ö¶ÎÃû);
create table ±íÃû2(
×Ö¶ÎÃû ÀàÐÍ
)cluster ´ØÃû(´ØÖÐ×Ö¶ÎÃû);
oracle¶ÔÏóÊý¾ÝÀàÐÍ£º
³éÏóÊý¾ÝÀàÐÍ£º
°üº¬Ò»¸ö»ò¶à¸ö×ÓÀàÐ͵ÄÊý¾ÝÀàÐÍ
²»¾ÖÏÞÓÚoracleµÄ±ê×¼Êý¾ÝÀàÐÍ
¿ÉÒÔÓÃÓÚÆäËûÊý¾ÝÀàÐÍÖÐ
Óï·¨£ºcreate [or replace] type ÀàÐÍÃû as object(ÁÐÃû ÀàÐÍ,...)[not final];
not final ¹Ø¼ü×ÖÏÞÖÆÅÉÉú×ÓÀàÐÍ¡£
È磺
create type addresstype as object(
province varchar(20),
city varchar(30),
street varchar(40)
)
ÔÚ½¨±íʱ¼´¿ÉʹÓÃ×Ô¶¨ÒåµÄaddresstypeÀàÐÍ
create table studentObj(stuname varchar(18),stuAddress addresstype);
²åÈëÊý¾Ý
insert into studentobj values('Tom',addresstype('¼ªÁÖÊ¡','³¤´º','Ç°½ø´ó½Ö'));
²éѯÊý¾Ý
select * from studentobj;
½á¹ûΪ       Tom
addresstype('¼ªÁÖÊ¡','³¤´º','Ç°½ø´ó½Ö')
select s.stuname,s.stuaddress.province,s.stuaddress.city from studentobj s;-- ±ØÐëʹÓñðÃû
ÕâÑù²éѯ¾Í²éѯ³öƽʱ·ÖÁеÄÊý¾Ý¡£¸üÐÂÒ²ÊÇÈç´Ë¡£
Èç¹ûÐèÒªÀ©Õ¹ÔòÌí¼Ónot final
À©Õ¹ÐÂÀàÐÍ£ºcreate type ×ÓÀàÐÍ under ¸¸ÀàÐÍ(
À©Õ¹ÐÂÊôÐÔ...
);
»ùÓÚÀàÐÍ¿ÉÒÔ´´½¨¶ÔÏó±í£º
create table ±íÃû of ÀàÐÍÃû;
¼´¿ÉºÍ¹Øϵ±íÒ»ÑùʹÓá£
Ò²¿ÉÒÔʹÓöÔÏóµÄ¹¹Ô캯ÊýÀ´²åÈëÊý¾Ý
insert into ¶ÔÏó±íÃû values (ÀàÐÍÃû(²ÎÊý...)); -- ²åÈëʵÀý
¸üÐÂÒ²¿ÉÒÔʹÓÃÖ±½Ó¸üк͹¹Ô캯Êý¸üÐÂÁ½ÖÖ·½·¨¡£
´´½¨´øÓз½·¨µÄ¶ÔÏóÀàÐÍ
create [or replace] type ÀàÐÍÃû as object(
--ÉùÃ÷ÊôÐÔ
stuid varchar(10),
stuname varchar(10),
--ÉùÃ÷·½·¨
member function getName return stuname,
member procedure setName(varchar stuname)
)
¾ßÌåµÈÖ®ºóµÄ½Ì³Ì
ͨ¹ýoracleµÄ¼Ì³Ð¿ÉÒÔ·¢ÏÖ·½±ãÁ˲»ÉÙ£¬ÒÔÇ°ÄÇЩѧÉú±í£¬½Ìʦ±íÔÚ´´½¨µÄʱºò¶¼ÒªÖظ´¶¨ÒåÐÕÃû¡¢ÐԱ𡢳öÉúÄêÔµÈ×ֶΣ¬ÏÖÔÚ¿ÉÒÔͨ¹ýoracleµÄ¶ÔÏó¼Ì³ÐÀ´ÊµÏÖ¡£


Ïà¹ØÎĵµ£º

oracleµ÷ÓÃjavaÀà±éÀú´ÅÅÌÎļþ

ÀûÓÃoracle×Ô´øµÄutl_file°ü¿ÉÒÔ·ÃÎÊ´ÅÅÌÎļþ£¬µ«ÓиöÏÞÖÆ--ÎÞ·¨·ÃÎÊÎļþ¼Ð£¿Ê²Ã´Òâ˼ÄØ£¿¾ÍÊÇ˵oracleÖ»ÄÜ·ÃÎÊÖ¸¶¨µÄÎļþ£¬¶ø²»ÄÜ·ÃÎÊÎļþ¼ÐϵÄδ֪Îļþ¡£ËùÒÔ£¬Èç¹ûҪͨ¹ýoracleÈ¥±éÀúijָ¶¨Â·¾¶ÏµÄËùÓÐÎļþ£¬sorry, impossible! µ«ÊÇ£¬ÓÐÒ»ÖÖÌæ´ú·½°¸¿ÉÒÔÖúÄãÒ»±ÛÖ®Á¦£¡
ÖÚËùÖÜÖªjavaÖ®FileÀàÖ¸ÏòµÄ¿ÉÒÔÊÇĿ¼Ҳ¿ÉÒÔÊ ......

oracleÖ´Ðмƻ®

±¾ÎĽéÉÜÁËORACLEÖ´Ðмƻ®µÄһЩ»ù±¾¸ÅÄ¹©Ñ§Ï°Ó¦Óá£
Ò»£®Ïà¹ØµÄ¸ÅÄî
RowidµÄ¸ÅÄrowidÊÇÒ»¸öαÁУ¬¼ÈÈ»ÊÇαÁУ¬ÄÇôÕâ¸öÁоͲ»ÊÇÓû§¶¨Ò壬¶øÊÇϵͳ×Ô¼º¸ø¼ÓÉϵġ£¶Ôÿ¸ö±í¶¼ÓÐÒ»¸örowidµÄαÁУ¬µ«ÊDZíÖв¢²»ÎïÀí´æ´¢ROWIDÁеÄÖµ¡£²»¹ýÄã¿ÉÒÔÏñʹÓÃÆäËüÁÐÄÇÑùʹÓÃËü£¬µ«ÊDz»ÄÜɾ³ý¸ÄÁУ¬Ò²²»ÄܶԸÃÁеÄÖµ½øÐÐÐ޸ġ ......

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

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

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.½áÊø ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ