Oracleѧϰ±Ê¼Çժ¼1
1.create alter insert update selectµÈ
ÈçºÎ½¨±í
ѧÉú±ístudent
create table student( --ѧÉú±í
xh number(4), --ѧºÅ
xm varchar2(10), --ÐÕÃû
sex char(2), --ÐÔ±ð
birthday date, --ÈÕÆÚ
sal number(7,2) --½±Ñ§½ð
);
°à¼¶class
create table class( --°à¼¶±í
classid number(2), --°à¼¶±àºÅ
cname varchar2(20) --°à¼¶Ãû×Ö
);
Ìí¼Ó×Ö¶Î(ѧÉúËùÔڰ༶classid)
alter table student add (classid number(2));
ÐÞ¸Ä×ֶεij¤¶È
alter table student modify (xm varchar2(12)) ;
ÐÞ¸Ä×ֶεÄÀàÐÍ(²»ÄÜÓмǼµÄ)
alter table student modify (xh varchar2(5));
ɾ³ýÒ»¸ö×Ö¶Î
alter table student drop column sal;
ɾ³ý±í
drop table student;
±íµÄÃû×ÖÐÞ¸Ä
rename student to stu;
×Ö¶ÎÈçºÎ¸ÄÃû×Ö
--ÏÈɾ³ý
a)alter table student drop column sal;
--ÔÙÌí¼Ó
b)alter table student add (salary number(7,2));
ÈçºÎ²åÈëÊý¾Ý
²åÈëÊý¾Ý insertÓï¾ä
ËùÓÐ×ֶζ¼²åÈë
insert into student values ('A001','ÕÅÈý','ÄÐ','01-5ÔÂ-05',10);
&n
Ïà¹ØÎĵµ£º
declare
begin
--SQLÓï¾ä
--Ö±½ÓдµÄSQLÓï¾ä(DML/TCL)
--¼ä½Óдexecute immediate <DDL/DCLÃüÁî×Ö·û´®>
--select Óï¾ä
<1>±ØÐë´øÓÐinto×Ó¾ä
&n ......
×î½ü×öÁËÒ»¸öϵͳ×Ô¶¯³é¼ìµÄ¶«¶«£¬OracleÖд´½¨µÄJob,»áÔÚ×Ô¼ºÉ趨µÄʱ¼ä×Ô¶¯ÔËÐд洢¹ý³Ì¡£ÏÂÃæΪ×î½ü×ܽáµÄ¶«¶«
¼ÙÉèÄãµÄ´æ´¢¹ý³ÌÃûΪPROC_RAIN_JM
ÔÙдһ¸ö´æ´¢¹ý³ÌÃûΪPROC_JOB_RAIN_JM
ÄÚÈÝÊÇ£º
///////////////////////////////////////////////////////////////////
Create Or Replace Procedure ......
ÎÒÏÖÔÚÔÚ×öÒ»¸öOracleÊý¾Ýµ¼È룬Ҫ½«EXCELÊý¾Ýµ¼Èëµ½OracleÊý¾Ý¿âÖУ¬ÏȶÁÈ¡Êý¾Ý£¬½«Êý¾Ý±£´æÔÚÒ»ÕÅÁÙʱ±íÖУ¬È»ºóµ¼Èë֮ǰ¶ÔÁÙʱ±íÖÐÊý¾ÝµÄÿ¸ö×Ö¶Î×öУÑ飬±ÈÈçÊý¾ÝÊÇ·ñΪÕûÊý£¬ÕûÊýµÄ×î´óλÊý£¬¼°µ¼ÈëµÄÊý¾ÝÔÚÔÊý¾Ý¿âÖÐÊÇ·ñÒѾ´æÔڵȣ¬ÎÒдÁËÒ»¸ö´æ´¢¹ý³Ì£¬¶ÔÒì³£µÄÊý¾Ý£¬½«×ֶΓis_checked”ÉèΪÒì³ ......
±¾ÎÄÏêϸµÄ½éÉÜÁËOracleÊý¾Ý¿â½ÏºÃµÄÊ®ÖÖÖØÐÂÆô¶¯²½Öè¡£
¡¡¡¡1. Í£Ó¦ÓòãµÄ¸÷ÖÖ³ÌÐò¡£
¡¡¡¡2. Í£oralceµÄ¼àÌý½ø³Ì:
¡¡¡¡$lsnrctl stop
¡¡¡¡3. ÔÚ¶ÀÕ¼µÄϵͳÓû§Ï£¬±¸·Ý¿ØÖÆÎļþ:
¡¡¡¡SQL>alter database backup controlfile to trace;
¡¡¡¡4. ÔÚ¶ÀÕ¼µÄϵͳÓû§Ï£¬ÊÖ¹¤Çл»ÖØ×÷ÈÕÖ¾Îļþ£¬È·±£µ±Ç°ÒÑÐ޸Ĺýµ ......
C:\Documents and Settings\Administrator>sqlplus/nolog
SQL> CONNECT/AS SYSDBA
SQL> SHUTDOWN NORMAL/IMMEDIATE
SQL> STARTUP MOUNT
SQL> ARCHIVE LOG LIST
SQL> ALTER DATA ......