oracle²éѯ,·Ç³£µÄÓôÃÆ - Oracle / ¸ß¼¶¼¼Êõ
Çë½Ì¸ßÊÖѽ
SQL code:
--´´½¨Ó°ÌüÐÅÏ¢±í(cinemaInfo)
create table cinemaInfo
(
cid number primary key,--񅧏
cname varchar2(10) not null, --Ó°ÌüÃû³Æ
remark varchar2(50)
);
--µçÓ°ÐÅÏ¢±í(filmInfo)
create table filmInfo
(
fid number primary key,--񅧏
fname varchar2(20) not null,--µçÓ°Ãû³Æ
director varchar2(20) not null,--µ¼ÑÝ
starring varchar2(20) not null,--Ö÷ÑÝ
style varchar2(20) not null,--ÀàÐÍ
flanguage varchar2(20) not null,--ÓïÑÔ
fdate date not null,--ÉÏÓ³ÈÕÆÚ(µçÓ°Ê×Ó³ÈÕÆÚ)
length number not null,--Ƭ³¤(µçÓ°Ëù²¥·ÅµÄ³¤¶È) µ¥Î»:·ÖÖÓ
price number(4,1) not null,--¼Û¸ñ
image varchar2(50) not null,--ͼƬ
drama varchar2(100),--¾çÇé
critic varchar2(50) --Ò»¾ä»°Ó°ÆÀ
);
--ӰƬÉÏӳʱ¼ä±í(release)
create table release
(
rid number primary key,--ÉÏӳʱ¼ä±í±àºÅ
fid number references filmInfo(fid),--µçÓ°±àºÅ(Íâ¼ü)
cid number references cinemaInfo(cid),--ËùÒª²¥·ÅµÄÓ°Ìü±àºÅ(Íâ¼ü)
rdate date not null,--ÉÏÓ³ÈÕÆÚ
rtime date not null --ÉÏӳʱ¼ä
);
--´´½¨ÐòÁÐ
create sequence cinemaInfo_seq;
create sequence filmInfo_seq;
create sequence release_seq;
insert into cinemainfo values(cinemaInfo_seq.Nextval,'Ò»ºÅÓ°Ìü','Ò»ºÅÓ°Ìü');
insert into cinemainfo values(cinemaInfo_seq.Nextval,'¶þºÅÓ°Ìü','¶þºÅÓ°Ìü');
insert into cinemainfo values(cinemaInfo_seq.Nextval,'ÈýºÅÓ°Ìü','ÈýºÅÓ°Ìü');
insert into filmInfo values(filmIn
Ïà¹ØÎÊ´ð£º
ÓÃPL/SQL µÇ½ʱµ¯³ö±¨´í´°¿Ú£¬´íÎóÈçÏ£¡
ORA-01034:ORACLE not available
ORA-27101:shared memory realm does not exist
ÇëÎÊ£¬ÓÐûÓÐÈËÓöµ½ÕâÖÖÇé¿ö£¬Ôõô½â¾ö£¿Ð»Ð»£¡
1. Oracle sid ÕýÈ ......
¼ÙÉètable01 ÖÐÓÐ ÒÔÏÂ×ÊÁÏ
emp_no emp_name
------- ------------
0001 TOM
0002 JOHN
0003 MARY
³£Óõ绰
¶øÎÒÃÇÒªµÃµ½ÒÔϵÄOUTPUT (»òÊǸ÷ÖÖÆäËûµÄoutput)
0001,TOM
0002,JOHN
......
CREATE OR REPLACE PROCEDURE usp_refreshTopN
IS
BEGIN
--Îĵµ
INSERT INTO topnresource(resourceId,title,type,cover,brief,properUser,tag,clickAmount,createDate,topNCreateDate,o ......
select distinct '1' t1,'2' t2,'3' t3,'4' t4 from table ²é³öÀ´µÄ½á¹ûΪ
1,2,3,4
ÎÒÏëµÃÒÔÏÂÕâÑùµÄЧ¹û
1
2
3
4
ÇëÎÊÒ»ÏÂÓÐʲô°ì·¨¿ÉÒÔ½â¾ö???
ûÓкõķ½·¨£¬ÓÃunion£¬Ò»ÌõÌõ¼Ç¼ƴ½Ó
SQL code:
wi ......
java.sql.SQLException: ORA-04031: unable to allocate 26416 bytes of shared memory ("shared pool","SELECT * from ( SELECT rownu...","Typecheck heap","qry_text : qcpis ......