oracle11g創建新的用戶和修改最大連接數
create user test identified by root;
grant create session,resource to root;
alter user test account unlock;
grant create view to test;
grant any sequece to test;
grant create synonym to ich;--創建別名的權限
drop user test cascade;
連接時用戶民不區分大小寫
alter system set sec_case_sensitive_logon=false scope=both;
commit;
修改用戶密碼
alter user system identified by system;
在用戶1中建立的sequece test_seq如果想在用戶2中使用(select test_seq.nextval from dual)必須現在用戶2中執行select test_seq.nextval from dual;
oracle一個創建用戶、創建表空間、授權、建表的完整過程
1. 用sys登錄sql plus:
usename: sys as sysdba
password: ****
2. 查看最大連接數: select value from V$parameter where name="processes";
3. 查看當前連接數: select count (*) from V$process;
4. 把最大連接數改成300:alter system set processes=300 scope=spfile
5. 重啟DB: shutdown immediate;
startup;