Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

Oracle Óû§¼°½ÇÉ« ½éÉÜ

Ò». Óû§¹ÜÀí
1.1 ½¨Á¢Óû§£¨Êý¾Ý¿âÑéÖ¤£©
     CREATE USER   DAVE IDENTIFIED BY   pwd
     DEFAULT TABLESPACE users
     TEMPORARY   TABLESPACE temp
     QUOTA 5m ON users;
1.2 ÐÞ¸ÄÓû§
ALTER USER DAVE QUOTA 0 ON SYSTEM;
1.3 ɾ³ýÓû§
DROP USER DAVE;
DROP USER DAVE CASCADE;
1.4 ÏÔʾÓû§ÐÅÏ¢
SELECT * from DBA_USERS
SELECT * from DBA_TS_QUOTAS
¶þ.ϵͳȨÏÞ
ϵͳȨÏÞ
×÷ÓÃ
CREATE SESSION
Á¬½Óµ½Êý¾Ý¿â
CREATE TABLE
½¨±í
CREATE TABLESPACE
½¨Á¢±í¿Õ¼ä
CREATE VIEW
½¨Á¢ÊÓͼ
CREATE SEQUENCE
½¨Á¢ÐòÁÐ
CREATE USER
½¨Á¢Óû§
ϵͳȨÏÞÊÇÖ¸Ö´ÐÐÌض¨ÀàÐÍSQLÃüÁîµÄȨÀû£¬ÓÃÓÚ¿ØÖÆÓû§¿ÉÒÔÖ´ÐеÄÒ»¸ö»òÒ»ÀàÊý¾Ý¿â²Ù×÷¡££¨Ð½¨Óû§Ã»ÓÐÈκÎȨÏÞ£©
2.1 ÊÚÓèϵͳȨÏÞ
GRANT CREATE SESSION,CREATE TABLE TO DAVE;
GRANT CREATE SESSION TO DAVE WITH ADMIN OPTION;
Ñ¡ÏADMIN OPTION ʹ¸ÃÓû§¾ßÓÐתÊÚϵͳȨÏÞµÄȨÏÞ¡£
2.2 ÏÔʾϵͳȨÏÞ
²é¿´ËùÓÐϵͳȨÏÞ£º
Select * from system_privilege_map;
ÏÔʾÓû§Ëù¾ßÓеÄϵͳȨÏÞ£º
Select * from dba_sys_privis;
ÏÔʾµ±Ç°Óû§Ëù¾ßÓеÄϵͳȨÏÞ£º
Select * from user_sys_privis;
ÏÔʾµ±Ç°»á»°Ëù¾ßÓеÄϵͳȨÏÞ£º
Select * from session_privis;
2.3 ÊÕ»ØϵͳȨÏÞ
REVOKE CREATE TABLE from DAVE;
REVOKE CREATE SESSION from DAVE;
Èý .½ÇÉ«£º
½ÇÉ«ÊÇÒ»×éÏà¹ØȨÏÞµÄÃüÃû¼¯ºÏ£¬Ê¹ÓýÇÉ«×îÖ÷ÒªµÄÄ¿µÄÊǼò»¯È¨ÏÞ¹ÜÀí¡£
3.1 Ô¤¶¨Òå½ÇÉ«¡£
CONNECT×Ô¶¯½¨Á¢£¬°üº¬ÒÔÏÂȨÏÞ£ºALTER SESSION¡¢CREATE CLUSTER¡¢CREATE DATABASELINK¡¢CREATE SEQUENCE¡¢CREATE SESSION¡¢CREATE SYNONYM¡¢CREATE TABLE¡¢CREATEVIEW¡£
RESOURCE×Ô¶¯½¨Á¢£¬°üº¬ÒÔÏÂȨÏÞ£ºCREATE CLUSTER¡¢CREATE PROCEDURE¡¢CREATE SEQUENCE¡¢CREATE TABLE¡¢CREATE TRIGGR¡£
3.2 ÏÔʾ½ÇÉ«ÐÅÏ¢£¬
§ROLE_SYS_PRIVS
§ROLE_TAB_PRIVS
§ROLE_ROLE_PRIVS
§SESSION_ROLES
§USER_ROLE_PRIVS
§DBA_ROLES
ËÄ. OracleÓû§½ÇÉ«
ÿ¸öOracleÓû§¶¼ÓÐÒ»¸öÃû×ֺͿÚÁî,²¢ÓµÓÐһЩÓÉÆä´´½¨µÄ±í¡¢ÊÓͼºÍÆäËû×ÊÔ´¡£
Oracle½ÇÉ«£¨role£©¾ÍÊÇÒ»×éȨÏÞ£¨privilege£©(»òÕßÊÇÿ¸öÓû§¸ù¾ÝÆä״̬ºÍÌõ¼þËùÐèµÄ·ÃÎÊÀàÐÍ)¡£Óû§¿ÉÒÔ¸ø½ÇÉ«ÊÚÓè»ò¸³ÓèÖ


Ïà¹ØÎĵµ£º

Oracle Sequence Ïà¹Ø֪ʶ

Ò»£¬¼òµ¥½éÉÜ
    ÔÚoracleÖÐsequence¾ÍÊÇËùνµÄÐòÁкţ¬Ã¿´ÎÈ¡µÄʱºòËü»á×Ô¶¯Ôö¼Ó£¬Ò»°ãÓÃÔÚÐèÒª°´
ÐòÁкÅÅÅÐòµÄµØ·½¡£
1¡¢ create sequence
    ÄãÊ×ÏÈÒªÓÐcreate sequence»òÕßcreate any sequenceȨÏÞ£¬
    create sequence emp_sequence
   &n ......

Oracle ÏÔʽÓαê

--------------------ÏÔʽÓαê
--²éѯÊý¾Ý
select * from employees;
--¶¨Ò岿·Ö
declare
       --ÉùÃ÷Óαê
       cursor mycur is select * from employees where employee_id<120;
       --¶¨ÒåÒ»¸ö¼¯ºÏ±äÁ¿ÓÃÓ ......

ÔÚ64λLinux»·¾³Ï°²×°OracleÊý¾Ý¿â10g

¾­¹ýÊýÌ첻иµÄŬÁ¦£¬LINUXÀú¾¡Èý´ÎÖØ×°£¬ORACLEÖØ×°N´ÎÖÕÓÚÔÚLiNUXAS4 update6 x86_64 Ï°²×°ºÃORACLE10g R 2 (64λ) ÁË¡£
ÏÂÃæ°Ñ°²×°¹ý³ÌºÍ´ó¼Ò·ÖÏíһϣ¬ÒÔÃâ¸ü¶àÈËÏñÎÒÒ»Ñù»¨·Ñ´óÁ¿µÄʱ¼äÔÚĪÃûÆäÃîµÄÎÊÌâÉÏ¡£
Ê×ÏÈҪ˵Ã÷µÄÊÇ£¬¹Ù·½Ò²ÓÐÏàÓ¦µÄÎĵµ°²×°µ«ÊÇʵ¼Ê¹ý³ÌÖУ¬»áÓÐһЩÎÊÌâÐèÒª½â¾ö¡£
±¾Îĵµ²ÎÕÕÁËÏà¹Ø˵ ......

OracleÖÐSQLÓï¾ä½âÎöµÄ²½Öè

ÎÒÃǶ¼ÖªµÀÔÚOracleÖÐÿÌõSQLÓï¾äÔÚÖ´ÐÐ֮ǰ¶¼ÐèÒª¾­¹ý½âÎö£¬ÕâÀïÃæÓÖ·ÖΪÈí½âÎöºÍÓ²½âÎö¡£ÄÇôÕâÁ½ÖÖ½âÎöÓкβ»Í¬Ö®´¦ÄØ£¿ËüÃÇÓÖ·Ö±ðÊÇÈçºÎ½øÐнâÎöÄØ£¿OracleÄÚ²¿½âÎöµÄ²½ÖèÓÖÊÇÈçºÎ½øÐеÄÄØ£¿ÏÂÃæÎÒÃǾÍÕâЩ»°Ìâ½øÐй²Í¬Ì½ÌÖ¡£ ÔÚOracleÖдæÔÚÁ½ÖÖÀàÐ͵ÄSQLÓï¾ä£¬Ò»ÀàΪDDLÓï¾ä£¬ËûÃÇÊÇ´ÓÀ´²»»á¹²ÏíʹÓõģ¬Ò²¾ÍÊÇÿ´ÎÖ´ ......

OracleÕï¶Ï°¸Àý Spfile°¸ÀýÒ»Ôò

Çé¿ö˵Ã÷:
ϵͳ£ºSUN Solaris8
Êý¾Ý¿â°æ±¾:9203
ÎÊÌâÃèÊö£º¹¤³ÌÈËÔ±±¨¸æ£¬Êý¾Ý¿âÔÚÖØÐÂÆô¶¯Ê±ÎÞ·¨Õý³£Æô¶¯.¼ì²é·¢ÏÖUNDO±í¿Õ¼ä¶ªÊ§.
ÎÊÌâÕï¶Ï¼°½â¾ö¹ý³ÌÈçÏÂ:
 1. µÇ½ϵͳ¼ì²éalert.logÎļþ
¼ì²éalert.logÎļþÊÇͨ³£ÊÇÎÒÃÇÕï¶ÏÊý¾Ý¿âÎÊÌâµÄµÚÒ»²½
SunOS 5.8
login: root
Password:
Last login: Thu Apr 1 ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ