2009年2月10日
摘要: user lacks create session privilege 解决办法:grant create session to username; 阅读全文
posted @ 2009-02-10 23:06 Oracle 阅读(1471) 评论(1) 推荐(0) 编辑
摘要: 问题: 在数据库用有一用户 A(方案A),A有数据表 t_1,t_2, 视图 v_1,v2, 我想再建一用户B,用户B只有对方案A中的视图v_1,v_2只有浏览的权限, 我的办法是这样的:重新建了一个用户,赋给UNDER ANY VIEW 这个权限,但无法访问A中的视图与数据表。 请教各位达人,如何去创建用户B,及设置他的权限! 也就是新增用户只能访问方案A中的视图,其它资源都不能访问 ... 阅读全文
posted @ 2009-02-10 23:05 Oracle 阅读(4473) 评论(0) 推荐(0) 编辑
摘要: 用COPY命令的好處是SQLPLUS可以同時連接多個數據庫,而PL/SQL不行 COPY FROM HR@BOSTONDB TO TODD@CHICAGODB CREATE NEWDEPT (DEPARTMENT_ID, DEPARTMENT_NAME, CITY) USING SELECT * FROM EMP_DETAILS_VIEW 阅读全文
posted @ 2009-02-10 16:47 Oracle 阅读(210) 评论(0) 推荐(0) 编辑
摘要: create or replace type myTableType as table of number; Type created. create or replace function str2tbl( p_str in varchar2 ) return myTableType as l_str long default p_str || ','; ... 阅读全文
posted @ 2009-02-10 16:22 Oracle 阅读(375) 评论(0) 推荐(0) 编辑
摘要: because of the hotspot,sometime we need to separate the index from the data tablespace 1.create the new tablespace 2.alter index index_name rebuild tablespace tablespace_name 續: Oracle强烈建立,任何一个应用... 阅读全文
posted @ 2009-02-10 15:14 Oracle 阅读(284) 评论(0) 推荐(0) 编辑
摘要: 錯誤原因是表空間大小不足 解決方法: 1.查詢各個表空間的利用率 select a.TABLESPACE_NAME, a.total,nvl(b.used,0) USED, nvl((b.used/a.total)*100,0) PCT_USED from (select TABLESPACE_NAME, sum(bytes)/(1024*1024) total from sys.dba_d... 阅读全文
posted @ 2009-02-10 15:10 Oracle 阅读(2920) 评论(0) 推荐(0) 编辑