1、plsql上新建用户
CREATE USER wjbcsIDENTIFIED BY wjbcs;
GRANT RESOURCE TO wjbcs;
GRANT CONNECT TO wjbcs;
登陆plsql后,新建一个用户:wjbcs及对应的密码:wjbcs
2、查询oracle被关联表的子表
select * from user_constraints where R_CONSTRAINT_NAME in
(select constraint_name from user_constraints where table_name = 'HORDE') ;
3、TABLE 结构的变量用法:
ORACLE中RECORD、VARRAY、TABLE的使用详解
1) 定义一个TABLE结构: TYPEt_index_tbl ISTABLE OF VARCHAR2(10) INDEX BY VARCHAR2(10);
2) 声明一个变量,类型为TABLE:l_vendor_code_tblt_index_tbl;
3) 给变量赋值: l_vendor_code_tbl('00025') := '1070000';
4) 变量赋值给其它变量: v_vendor_code := l_vendor_code_tbl(v_data.supplyname);
4、Oracle 更改归档日志大小
1) 查看参数'db_recovery_file_dest_size'值
show parameter db_recovery
2) 更改参数'db_recovery_file_dest_size'值大小
alter system set db_recovery_file_dest_size=41820M scope=spfile;
重启数据库即可