2008-01-21 11:28:16兼職奶爸

Oracle的基礎應用

1.ORACLE’S BASE TABLE
ALL_USERS
ALL_SOURCE
ALL_OBJECT

2.CREATE A NEW USER
CREATE USER IDENTIFIED BY
EX:
CREATE USER ALAN IDENTIFIED BY 123;

3.GRANT PRIVILEGE
(1)在新增帳號後,首先要做的就是要GRANT遠端連線的PRIVILEGE,否則只能在LOCAT LOGIN。
GRANT CONNECT TO ;
EX:
CRANT CONNECT to ALAN;

(2)GRANT其它權限給這個USER
GRANT on to ;
EX:
GRANT SELECT,INSERT,DELETE,UPDATE on USER to ALAN;

4.CHANGE USER’S PASSWORD
(1)ALTER USER IDENTIFIED BY ;
(2)password
(3)password ALAN

5.查詢目前Oracle版本
select * from v$version;

select * from product_component_version;

6.過濾重覆資料
SELECT DISTINCT(COLUMN) FROM TABLE;

7.查詢Oracle database
select sys_context('USERENV','DB_NAME') DBNAME from dual;

下一篇:CREATE SYNONYM

請輸入圖片中算式的結果(可能為0) 
換驗證碼 我要回應