SQL> exec pro_gz_day_report;          ORA-01031: insufficient privileges          ORA-06512: at "....", line 6          ORA-06512: at line 2 限不足无法创建表,可以通过如下方案解决: grant create any table to 用户名;…
//建测试表 create table dept( deptno number(3) primary key, dname varchar2(10), loc varchar2(13) ); create table employee_info( empno number(3), deptno number(3), ename varchar2(10), sex char(1), phone number(11), address varchar2(50), introduce varchar2…
问题: 使用SQL PLAN MANAGEMENT的时候运行下面的存储过程报错. SYS@GOOD> conn scott/tiger Connected. SCOTT@GOOD> DECLARE 2 l_plans_loaded PLS_INTEGER; 3 BEGIN 4 l_plans_loaded := DBMS_SPM.load_plans_from_cursor_cache( 5 sql_id => '4tjq4phnjj1gs'); 6 DBMS_OUTPUT.put_li…
          解决ora-01031insufficient privileges错误 解决system用户不能登录的问题 alter user system account unlock identified by orcl; grant sysdba to system;…
转自:http://www.maomao365.com/?p=6642 摘要:下文讲述使用select查询语句建立新的数据表的方法分享 ---1 mysql create table `新数据表名` select * from `旧数据表名`; -------------------------------- ---2 oracle create table 新数据表名 as select * from 旧数据表名 -------------------------------- --3 mss…
有时候在ORACLE数据库创建视图时会遇到:ORA-01031:insufficient privileges错误,我也多次碰到了各种创建视图出错的情况,很多时候也没有太在意,今天被一同事问起这个问题,顺便总结一下出错的各种场景. 场景1:使用sys或system账号登陆数据库,创建dm.ods账号(授予connect.resource角色) 1: [oracle@DB-Server ~]$ sqlplus / as sysdba 2:  3: SQL*Plus: Release 10.2.0.…
create or replace procedure proc_tzyj is begin insert into t_trade_activity@dw3_link.regress.rdbms.dev.us.oracle.com (select t1.Trade_Time , t1.user_phone , t1.glide_no , t1.err_code , t1.ACTIVITY_NUMBER , t2.activity_name , t5.org_id, t5.org_desc fr…
Demo One CREATE TABLE employees_demo ( employee_id ) , first_name ) , last_name ) CONSTRAINT emp_last_name_nn_demo NOT NULL , email ) CONSTRAINT emp_email_nn_demo NOT NULL , phone_number ) , hire_date DATE DEFAULT SYSDATE CONSTRAINT emp_hire_date_nn_…
环境:Linux 操作语句: [oracle@ora11r2 ~]$ sqlplus /nolog SQL*Plus: Release 11.1.0.6.0 - Production on Thu Jun 10 18:22:16 2010 Copyright (c) 1982, 2007, Oracle.  All rights reserved. SQL> startup                        ORA-01031: insufficient privilegesSQL>…