易截截图软件、单文件、免安装、纯绿色、仅160KB

Oracle用户名更改操作四步走

我们的Oracle管理工作中经常涉及到更改Oracle用户属性、密码之类的常用操作;但在某些应用场景下,会遇到Oracle用户名更改的需求,如何解决?下面通过四个步骤实现Oracle用户名的修改。
一、查询更改Oracle用户名
SQL> select user#,name,password from user$ where name ='TICKETS';        USER# NAME                           PASSWORD ---------- ------------------------------ ------------------------------          78 TICKETS                        21EDA78F89D6FACD 
二、更改用户名
SQL> update  user$ set name='TICKETS_BAK' where user#=78;   1 row updated.   SQL> commit;   Commit complete. 
三、创建同样的Oracle用户名
SQL> create user tickets identified by "123456"   2  default tablespace yytickets    3  temporary tablespace temp;  create user tickets identified by "123456"             *  ERROR at line 1:  ORA-01920: user name 'TICKETS' conflicts with another user or role name 
这时系统会提示“用户名冲突”,运行下面的SQL语句
SQL> alter system checkpoint;    ----强制写入数据文件   System altered.   SQL> alter system flush shared_pool;  ----清楚缓存数据字典信息,
----强制oracle读实际数据(即更改后的数据)  &nbs


相关文档:

oracle 表空间操作

oracle表空间操作详解
  1
  2
  3作者:   来源:    更新日期:2006-01-04 
  5
  6 
  7建立表空间
  8
  9CREATE TABLESPACE data01
 10DATAFILE '/ora ......

Virtual Columns in Oracle Database 11g

When queried, virtual columns appear to be normal table columns, but
their values are derived rather than being stored on disc. The syntax
for defining a virtual column is listed below.
column_name [datatype] [GENERATED ALWAYS] AS (expression) [VIRTUAL]
If the datatype is omitted, it is determin ......

Oracle中的covering index

 CSDN里的一个朋友问到了这个索引覆盖的概念。 这个概念很小的知识点,在我的论坛里有解释“”,不过作为Oracle版主,不能在回帖里加上网外的地址链接,所以这里在CSDN里帖上一份
比如有复合索引为3个字段:f1 + f2 + f3,请问: 
1: select f1, f2, f3, f4 from table where f1 = 'XX' and f2 = 'XX'. ......

Oracle 触发器,序列用途

 1、创建表t1 :create table t1 (id number,name nvarchar(8));
2、创建序列 :CREATE SEQUENCE t1_id INCREMENT BY 1 START WITH 1 MAXVALUE
1.0E28 MINVALUE 1 NOCYCLE CACHE 20 NOORDER
3. 创建触发器 :
CREATE TRIGGER tig_insert_t1
BEFORE INSERT ON "YINZQ"."T1"
begin
if (:new.id is null) then ......

Oracle日常维护点滴

Oracle维日常护点滴
    虽然Oracle维护不是我的职责,但平时还是难免要跟它打交道,因此对于Oracle的日常维护略知一二还是很有好处的。
 1. 登录:
  (1)采用系统管理员用户登录:
#su - oracle
$ sqlplus / as sysdba
  (2)采用一般用户登录,假设用户名为oracle,密码为passwor ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号