標籤:oracle查看字元集和修改字元集 :查看資料庫伺服器的字元集:select userenv(‘language‘) from dual ;登陸用dba:停掉資料庫 :shutdown immediate; 啟動資料庫到mount狀態下 :STARTUP MOUNT;ALTER SESSION SET SQL_TRACE=TRUE; ALTER SYSTEM ENABLE RESTRICTED SESSION; ALTER SYSTEM SET JOB_QUEUE_PROCESSES=0;
標籤: 這個功能是在自己誤操作,將某些資料更改錯了,你想恢複更改錯之前的資料,這個時候你可以使用這種方式不過建議要小心更改資料,如果實在有必要去更新,請先備份資料表,不到萬不得以才可以這麼做。 SELECT * FROM Aselect * from a as of timestamp to_timestamp(‘2016-6-22 16:35:00‘,‘yyyy-m
標籤:關於oracle with as用法–針對一個別名with tmp as (select * from tb_name)–針對多個別名with tmp as (select * from tb_name), tmp2 as (select * from tb_name2), tmp3 as (select * from tb_name3), …1234567
標籤:在Oracle中,用函數返回結果集有時候要用到,下面是demo:1234567create or replace type t_test as object(id integer,create_time date,object_name varchar2(60));create or replace type t_test_table as table of t_test;1.用數組的方式1234567891011121314151617181920create or replace
標籤:1.oracle安裝 參考http://wenku.baidu.com/view/d01ffd43336c1eb91a375d68.html,這裡不再贅述2.命令列sqlplus串連oracle (1)檢查監聽狀態 C:\>lsnrctl status LSNRCTL for 32-bit Windows: Version 9.2.0.1.0 -
標籤:1.所有表的select 許可權賦予usergrant select any table to user2.revoke 實體許可權名|all on 實體名 from 使用者名稱|角色名稱|public;alter any cluster 修改任意簇的許可權 alter any index 修改任意索引的許可權 alter any role 修改任意角色的許可權 alter any cluster alter any sequence 修改任意序列的許可權 alter any
標籤:oracle sql 無密碼登入:sqlplus / as sysdba查看當前的所有資料庫:select name from v$database;查看當前資料庫連接使用者:show user查看目前使用者所有表:select table_name from all_tables;查看錶結構:desc 表名建立資料庫使用者:create user 使用者名稱 indentified by
標籤:1.建立資料表空間create tablespace example_tablespace datafile ‘e:\****.dbf‘ size 10m reuse autoextend on next 1m maxsize unlimited; 2.建立使用者,指定資料表空間,暫存資料表空間create user username identified by password&