ÔÚoracleÖÐÔö¼ÓÓû§ÏÞÖÆ
½ñÌìÔÚÏîÄ¿¿ª·¢ÖУ¬·¢ÏÖÊý¾Ý¿âÁ¬½ÓÊý¹ý¶à£¬oracleÖдæÔںܶ೬ʱÁ¬½Ó¡£µ¼ÖÂÐÂÔö¿Í»§¶ËÎÞ·¨Á¬½Óµ½Êý¾Ý¿â¡£ËùÒÔÉèÖÃÁËÇ¿ÖÆÊÍ·ÅoracleÁ¬½ÓÊôÐÔ¡£
ÔÚÍøÉϲéѯÁËÉèÖÃ˵Ã÷ÈçÏ£º
sqlplus /nolog
´ò¿ªsqlplus
connect system/bianqiwei@orcltns as sysdba
ʹÓþßÓÐdbaȨÏÞµÃÓû§µÇ½oracle
show parameter resource_limit
ÏÔʾ×ÊÔ´ÏÞ¶¨ÊÇ·ñ¿ªÆô,valueΪtrueÊÇ¿ªÆô,ΪfalseÊǹرÕ
alter system set resource_limit=true
Èç¹û먦Æô,ÔòʹÓôËÃüÁÆô×ÊÔ´ÏÞ¶¨¹¦ÄÜ
create profile profileName limit connect_time 60 idle_time 30
´´½¨profileÎļþ,profileNameÈÎÒâÆð,connect_timeÉèÖÃÁ¬½Ó³¬¹ý¶àÉÙ·ÖÖÓºóÇ¿ÖÆÊÍ·Å,idle_timeÉèÖÃÁ¬Ðø²»»î¶¯µÄ»á»°³¬¹ý¶àÉÙ·ÖÖÓºóÇ¿ÖÆÊÍ·Å
alter user oracleUser profile profileName
½«profileÎļþ×÷ÓÃÓÚÖ¸¶¨Óû§
ÔÚÊý¾Ý¿âÖеÄʵ¼Ê²Ù×÷ÈçÏ£º
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
[oracle@nsn-db-server ~]$ sqlplus "/ as sysdba"
SQL*Plus: Release 10.2.0.1.0 - Production on Tue Dec 22 16:14:11 2009
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
SQL> show parameter resource
NAME TYPE
------------------------------------ ---------------------------------
VALUE
------------------------------
resource_limit boolean
FALSE
resource_manager_plan string
SQL> alter system set resource_limit=true;
System altered.
SQL> create profile sbaplimit20091222 limit connect_time 60 idle_time 30
&
Ïà¹ØÎĵµ£º
ѧϰOracle DBAÒ²°ë¸ö¶àѧÆÚÁË£¬½ñÌìÃÍÈ»²Å·¢ÏÖ£¬ÔÀ´ÎÒµÄÊ黹ÊǺÜеģ¬ÉϿβÙ×÷ʱºòÒ²Ö»ÊÇÖªµÀ´ó¸ÅÔõô×ö£¬µ«ÊÇÒªÕæµÄÈ«²¿×Ô¼º×ö£¬¶ø²»È¥·Ê黹ÊÇÓÐÒ»¶¨µÄÄѶȵģ¬ËùÒÔÄØ£¬½ñÌ쿪ʼ½«DBA´ÓÍ·¸´Ï°Ò»±é£¬Í¬Ê±ÔÙ²Ù×÷Ò»±é¡£
µÚÒ»Õ£¬Ñ§µÄÊÇ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;
´´½¨Óû§±í¿Õ¼ä
´´½¨Óû§±í¿Õ¼ä
C ......
28.4.1 ÊÖ¹¤Æô¶¯ºÍ¹Ø±ÕOracle·þÎñ
OracleÊý¾Ý¿â·þÎñÓÉÁ½²¿·Ö×é³É£ºÊý¾Ý¿â½ø³ÌºÍÍøÂç¼àÌýÆ÷½ø³Ì£¬ËüÃÇ·Ö±ð¿Éͨ¹ýsqlplusºÍlsnrctlÃüÁî¿ØÖÆÆô¶¯¹Ø±Õ¡£
1£®Êý¾Ý¿â½ø³Ì
ʹÓÃDBCA¹¤¾ß´´½¨Êý¾Ý¿âºó£¬Æä½ø³ÌÒѾ×Ô¶¯Æô¶¯£¬ÕâЩ½ø³Ì¶¼ÊÇÒÔÊý¾Ý¿âÃû³Æ£¨ÔÚ±¾ÀýÖÐΪorcl£©ÃüÃû£¬ÈçÏÂËùʾ¡£
$ ps -ef|grep orcl
orac ......
±¾ÎÄ»·¾³ÅäÖãºOracle10gR2£¬Windows XP
OracleµÄÓû§ÐÅÏ¢Ò»°ãÀ´ËµÊDZ£´æÔÚÊý¾Ý×ÖµäÀïµÄ£¬ËùÒÔ³£¹æÓû§ÔÚOracleÊý¾Ý¿âûÓÐÆô¶¯µÄʱºòÊÇÎÞ·¨µÇ½µÄ¡£µ«ÓÐÁ½ÀàÓû§ÀýÍ⣬Õâ¾ÍÊǾßÓÐsysdba»òÕßsysoperȨÏÞµÄÓû§¡£Oracle sysdba»òÕßsysoperÓû§µÄµÇ½ÓÐÁ½ÖÖ·½Ê½£ºÒ»ÊÇͨ¹ýOSÈÏÖ¤£¬¶þÊÇͨ¹ýÃÜÂëÎļþÑéÖ¤¡£
¾¿¾¹Ê¹ÓÃÄÄÒ»ÖÖÑéÖ¤ ......
Ê×ÏÈ£¬ÄãÒªÓÐÒ»ÕÅ±í£¡
CREATE TABLE example(
ID Number(4) NOT NULL PRIMARY KEY,
NAME VARCHAR(25),
  ......