標籤: drop user xxx cascade;drop tablespace xxx including contents and datafiles;create tablespace xxx datafile ‘E:\oracle\product\10.2.0\oradata\ts\xxx.dbf‘ size 100M autoextend on next 10m maxsize unlimited;create user xxx identified by "ppp"
標籤:前提條件:表info_user中有欄位id和name,欄位id為索引表data_user_info中有欄位id和name,欄位id為索引其中表info_user中欄位id和表data_user_info中欄位id數值一致。要求實現:更新表info_user中的欄位name 與表data_user_info中欄位name一致。實現的SQL語句為:update info_user i set (i.name) = (select d.name from
標籤:create table t_name(id number,name varchar2(10));drop table t_name;select * from table_name where id = 2 ;insert into table_name(c_01,c_02) values(1,‘Terry‘);update table_name set name = ‘Tyron‘ where id = 1;delete from table_name where id =
標籤:the below is about utl_file operation:first, you should make a directory at the path that you wish:[[email protected] ~]$ mkdir test_dir anyone has the privileges read, write and execute[[email protected] ~]$ chmod 777 test_dir
標籤: -------如何在oracle 12c中建立普通使用者-------[[email protected] ~]$ sqlplus / as sysdbaSQL*Plus: Release 12.1.0.2.0 Production on Sun Nov 29 21:43:50 2015Copyright (c) 1982, 2014, Oracle. All rights reserved.Connected to:Oracle Database 12c
標籤:(1)鎖表查詢的代碼有以下的形式:select count(*) from v$locked_object;select * from v$locked_object;(2)查看哪個表被鎖select b.owner,b.object_name,a.session_id,a.locked_mode from v$locked_object a,dba_objects b where b.object_id = a.object_id;(3)查看是哪個session引起的select