OracleÓû§È¨ÏÞ¿ØÖÆ
1£©¡¢¹¹ÔìʵÀý£º
ÎÒÃÇÒѾ´´½¨ºÃÊý¾Ý¿âÓû§test_user£¬Ï±ߴæÔÚtest_table±íºÍtest_procedure´æ´¢¹ý³Ì¡£ÎÒÃÇÒѾ´´½¨ºÃÒ»¸ö¿ÕµÄ´úÀíÊý¾Ý¿âÓû§agent_user¡£
2£©¡¢µÇ¼test_userÓû§£¬½«test_userϱíµÄselectȨÏ޺ʹ洢¹ý³ÌµÄexcuteȨÏÞ¸³¸ø´úÀíÓû§agent_user¡£
SQL>GRANT select ON test_table TO agent_user;
SQL>GRANT excute ON test_procedure TO agent_user;
3£©¡¢µÇ¼agent_userÓû§£¬´´½¨ºÍtest_userϱíºÍ´æ´¢¹ý³Ì¶ÔÓ¦µÃ±ðÃû£¬ÕâÑù¾Í¿ÉÒÔʹÓÃagent_user×ÔÓÉ·ÃÎÊtest_userϵÄÊý¾Ý¿âʵÌåÁË¡£
SQL>create synonym test_table for test_user.test_table;
SQL>create synonym test_procedure for test_user. test_procedure;
Ïà¹ØÎĵµ£º
1¡¢Ð´BATÎļþ
------------------------------------------------------------------------------------------------------
if "%time:~0,1%"==" " (set backup_file=%date:~0,4%%date:~5,2%%date:~8,2%-0%time:~1,1%%time:~3,2%%time:~6,2%) else (set backup_file=%date:~0,4%%date:~5,2%%date:~8,2%-%time:~0,2%%time: ......
select dm_id, father_id, dm_name from gy_dmcode t
where level <= 2 --²ã¼¶
start with t.dm_id = '0' --¸ù½Úµã
connect by prior t.dm_id = t.father_id; --¶¨Òå¹ØÏµ£¬prior ±íʾÓÅÏȼ¶ ......
extent--×îС¿Õ¼ä·ÖÅ䵥λ --tablespace management
block --×îСi/oµ¥Î» --segment management
create tablespace james
datafile '/export/home/oracle/oradata/james.dbf'
size 100M ¡¡¡¡¡¡¡¡¡¡¡¡--³õʼµÄÎļþ´óС¡¡
autoextend On¡¡¡¡¡¡¡¡ --×Ô¶¯Ôö³¤
next 10M¡ ......