Oracle´´½¨±í¿Õ¼ä¡¢´´½¨Óû§ÒÔ¼°ÊÚȨ¡¢²é¿´È¨ÏÞ
´´½¨ÁÙʱ±í¿Õ¼ä
CREATE TEMPORARY TABLESPACE test_temp
TEMPFILE 'C:\oracle\product\10.1.0\oradata\orcl\test_temp01.dbf'
SIZE 32M
AUTOEXTEND ON
NEXT 32M MAXSIZE 2048M
EXTENT MANAGEMENT LOCAL;
´´½¨Óû§±í¿Õ¼ä
CREATE TABLESPACE test_data
LOGGING
DATAFILE 'C:\ORACLE\PRODUCT\10.1.0\ORADATA\ORCL\TEST_DATA01.DBF'
SIZE 32M
AUTOEXTEND ON
NEXT 32M MAXSIZE 2048M
EXTENT MANAGEMENT LOCAL;
´´½¨Óû§²¢Öƶ¨±í¿Õ¼ä
CREATE USER username IDENTIFIED BY password
DEFAULT TABLESPACE TEST_DATA
TEMPORARY TABLESPACE TEST_TEMP;
¸øÓû§ÊÚÓèȨÏÞ
GRANT
¡¡¡¡CREATE SESSION, CREATE ANY TABLE, CREATE ANY VIEW ,CREATE ANY INDEX, CREATE ANY PROCEDURE,
¡¡¡¡ALTER ANY TABLE, ALTER ANY PROCEDURE,
¡¡¡¡DROP ANY TABLE, DROP ANY VIEW, DROP ANY INDEX, DROP ANY PROCEDURE,
¡¡¡¡SELECT ANY TABLE, INSERT ANY TABLE, UPDATE ANY TABLE, DELETE ANY TABLE
¡¡¡¡TO username;
½«roleÕâ¸ö½ÇÉ«ÊÚÓëusername,Ò²¾ÍÊÇ˵£¬Ê¹usernameÕâ¸öÓû§¿ÉÒÔ¹ÜÀíºÍʹÓÃroleËùÓµÓеÄ×ÊÔ´
GRANT role TO username;
-----------------------------------------------²é¿´Óû§È¨ÏÞ---------------------------------------------------------
²é¿´ËùÓÐÓû§
SELECT * from DBA_USERS;
SELECT * from ALL_USERS;
SELECT * from USER_USERS;
²é¿´Óû§ÏµÍ³È¨ÏÞ
SELECT * from DBA_SYS_PRIVS;
SELECT * from USER_SYS_PRIVS;
²é¿´Óû§¶ÔÏó»ò½ÇɫȨÏÞ
SELECT * from DBA_TAB_PRIVS;
SELECT * from ALL_TAB_PRIVS;
SELECT * from USER_TAB_PRIVS;
²é¿´ËùÓнÇÉ«
SELECT * from DBA_ROLES;
²é¿´Óû§»ò½ÇÉ«ËùÓµÓеĽÇÉ«
SELECT * from DBA_ROLE_PRIVS;
SELECT * from USER_ROLE_PRIVS;
Ïà¹ØÎĵµ£º
1.»ù±¾½á¹¹
CREATE OR REPLACE PROCEDURE ´æ´¢¹ý³ÌÃû×Ö
(
²ÎÊý1 IN NUMBER,
²ÎÊý2 IN NUMBER
) IS
±äÁ¿1 INTEGER :=0;
±äÁ¿2 DATE;
BEGIN
END ´æ´¢¹ý³ÌÃû×Ö
2.SELECT INTO STATEMENT
½«select²éѯµÄ½á¹û´æÈëµ½±äÁ¿ÖУ¬¿ÉÒÔͬʱ½«¶à¸öÁд洢¶à¸ö±äÁ¿ÖУ¬±ØÐëÓÐ ......
WinXP ÏÂÖØÐÂÉèÖà Oracle ¹ÜÀíÔ±ÃÜÂë
Windows ÏÂÐÞ¸Ä Oracle ¹ÜÀíÔ±ÃÜÂë²Ù×÷²½Öè¡£´Ë²½ÖèÔÚ WinXP5.1¡¢Oracle92 ϲÙ×÷³É¹¦¡£¸ü¸ÄÒÔºóÐèÒªÖØÆô¼ÆËã»úºÍʵÀý·½¿ÉÉúЧ¡£
±³¾°£ºWinXP °æ±¾ 5.1£¨ÄÚ²¿°æ±¾ºÅ 2600.xpsp_sp2_dgr.07022 ......
http://inthirties.com:90/viewthread.jsp?tid=1394
1 ÎÒÃÇÒѾÔÚ±¸·Ý·þÎñÆ÷ÉϽ¨Á¢ÁËÒ»¸öcatalog¿â£¬¾ßÌåµÄ²Ù×÷¹ý³ÌÈçÏ£º
1£©²éѯÏÖÔÚµÄÊý¾Ý¿â
# sqlplus /nolog.
SQL>connect / as sysdba;
Connected.
SQL>select * from v$tablespace;
TS# NAME INC
———- ————& ......
ORACLEʵÀý = ½ø³Ì + ½ø³ÌËùʹÓõÄÄÚ´æ(SGA)
ʵÀýÊÇÒ»¸öÁÙʱÐԵĶ«Î÷£¬ÄãÒ²¿ÉÒÔÈÏΪËü´ú±íÁËÊý¾Ý¿âijһʱ¿ÌµÄ״̬£¡
Êý¾Ý¿â = ÖØ×öÎļþ + ¿ØÖÆÎļþ + Êý¾ÝÎļþ + ÁÙʱÎļþ
Êý¾Ý¿âÊÇÓÀ¾ÃµÄ£¬ÊÇÒ»¸öÎļþµÄ¼¯ºÏ¡£
ORACLEʵÀýºÍÊý¾Ý¿âÖ®¼äµÄ¹Øϵ
1.
ÁÙʱÐÔºÍÓÀ¾ÃÐÔ
2.
ʵÀý¿ÉÒÔÔÚûÓÐÊý¾ÝÎļþµÄÇé¿öϵ¥¶ÀÆô¶¯ ......
ÒÔÍù´ÓÀ´Ã»ÓÐÏëÈ¥ÈÏÕæ¶ÁÒ»´ÎOracleµÄ°æȨÉùÃ÷£¬½ñÌì´ò¿ªOracle10gR2µÄÎĵµ£¬ÓÚÊǾÍË÷ÐÔ´ÓÍ·¿ªÊ¼¶ÁÒ»ÏÂÕâƪÎÄÕ¡£
һЩÎÒÏë´ó¼Ò¶¼Ó¦¸ÃÈ¥ÖªµÀµÄ£¬ËäÈ»¹úÄڵİæȨ¸ÅÄîʵÔÚÊDZȽϵ±¡£¬µ«ÏëÀ´»áÔ½À´Ô½ºÃµÄ¡£
Oracle10g·ÖΪ4¸ö°æ±¾£¬·Ö±ðÊÇ£º
1¡£Oracle Database Standard Edition One£¬×î»ù±¾µÄÉÌÒµ°æ± ......