随笔分类 - oracle
摘要:安装oracle没有勾选"安装模板数据库",可以通过执行以下命令进行修改: cd$ORACLE_HOME/rdbms/admin到这个目录下sqlplus/assysdbaSQL>@/utlsampl.sql ②建立表空间 Create tablespace xxx datafile ' D:\oracle\xxx.dbf' size 10m autoextend on; 可以单独为一...
阅读全文
摘要:一、修改操作系统核心参数在Root用户下执行以下步骤:1)修改用户的SHELL的限制,修改/etc/security/limits.conf文件输入命令:vi /etc/security/limits.conf,按i键进入编辑模式,将下列内容加入该文件。?1 2 3 4 5 6 7oracle so...
阅读全文
摘要:异常的语法格式 在begin语句内: exception when then when then when others then --异常处理--首先创建一份对象的用法create type xtype as object (name varchar2(20));declare x xtype;b...
阅读全文
摘要:-- declare type vsal_table is table of emp.sal%type; a vsal_table; begin --必须得初始化 并且有数量上的区分 从一开的 a:=vsal_table(1000,2000,30000); ...
阅读全文
摘要:--使用pl/sql语句打印一个hello world begin dbms_output.put_line('hello,world'); end; 但是在sqlplus里面就不一样了 首先输入 begin dbms_output.put_line('hello,world'); end; / 通过set serveroutput on / 来调用输出语句 可以通过ed...
阅读全文
摘要:--建立学生表create table Student ( Sno char(9) primary key, Sname char(20)unique, Sex char(4), Sage int, Sdept char(20));drop table Student;commit;select *...
阅读全文

浙公网安备 33010602011771号