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

Oracle±í¿Õ¼ä³£ÓòÙ×÷

1. ²é¿´Oracle´´½¨¹ýÄÄЩÓû§
   >select username from all_users;
2. ²é¿´Oracle´´½¨¹ýÄÄЩ±í¿Õ¼ä£¬±í¿Õ¼äµÄÃû×ֺʹóС
   >select t.tablespace_name, round(sum(bytes/(1024*1024)),0) ts_size
    from dba_tablespaces t, dba_data_files d
    where t.tablespace_name = d.tablespace_name
    group by t.tablespace_name;
3. ²é¿´±í¿Õ¼äÎïÀíÎļþµÄÃû³Æ¼°´óС
  >select tablespace_name,file_id,file_name,round(bytes/(1024*1024),0)   
total_space from dba_data_files order by tablespace_name;
4. ²é¿´±í¿Õ¼äµÄʹÓÃÇé¿ö
  >select   sum(bytes)/(1024*1024)   as   free_space,tablespace_name    
  from   dba_free_space    
  group   by   tablespace_name;    
  SELECT   A.TABLESPACE_NAME,A.BYTES   TOTAL,B.BYTES   USED,   C.BYTES  
FREE,    
  (B.BYTES*100)/A.BYTES   "%   USED",(C.BYTES*100)/A.BYTES   "%   FREE"  
 
  from   SYS.SM$TS_AVAIL   A,SYS.SM$TS_USED   B,SYS.SM$TS_FREE   C    
  WHERE   A.TABLESPACE_NAME=B.TABLESPACE_NAME   AND  
A.TABLESPACE_NAME=C.TABLESPACE_NAME;
5. Ôö¼Ó±í¿Õ¼äµÄµÄ´óС
   A. >alter tablespace SYSAUX add datafile
'/opt/oracle/oradata/testdb/sysaux02.dbf' size 100M autoextend on;
   B. >alter tablespace SYSAUX add datafile
'/opt/oracle/oradata/testdb/sysaux02.dbf' size 100M;
   C. >alter database datafile '/opt/oracle/oradata/testdb/sysaux02.dbf'
resize 1000M;
6. ²é¿´Oracle RACÉÏÊ£ÓàµÄ±í¿Õ¼ä
   #export ORACLE_SID=+ASM1
   #sqlplus / as sysdba
   #select NAME,TOTAL_MB,FREE_MB from V$ASM_DISKGROUP;
&nb


Ïà¹ØÎĵµ£º

Ò»¸ö¼òµ¥µÄhibernateÁ¬½ÓoracleÊý¾Ý¿âÀý×Ó£¡

Ò»¡¢ Hibernate½éÉÜ
    HibernateÊÇ»ùÓÚ¶ÔÏó/¹ØϵӳÉ䣨ORM£¬Object/Relational Mapping£©µÄÒ»¸ö½â¾ö·½°¸¡£ORM·½°¸µÄ˼ÏëÊǽ«¶ÔÏóÄ£ÐͱíʾµÄ¶ÔÏóÓ³Éäµ½¹ØϵÐÍÊý¾Ý¿âÖУ¬»òÕß·´Ö®¡£HibernateÄ¿Ç°ÊÇORM˼ÏëÔÚJavaÖÐ×î³É¹¦¡¢×îÇ¿´óµÄʵÏÖ¡£ËüÓÚ2001ÄêµÄÄêÄ©·¢²¼µÚÒ»¸ö°æ±¾£¬Á¢¼´ÒýÆðÁ˹㷺µÄ×¢Òâ¡£2003Äê6Ô£ ......

Ãâ°²×°Oracle¿Í»§¶ËÈí¼þ ʹÓÃpl/sqlÅäÖõǽ

ËäÈ»ÕâÊÇÎÒÕÒµ½×îÏêϸµÄÅäÖÃÃèÊö£¬µ«Êdz¢ÊÔ»¹ÊÇûÓгɹ¦¡£
 
1.ÏÂÔØOracle Client Package
.
´Ó
http://www.oracle.com/technology/software/tech/oci/instantclient/htdocs/winsoft.html
ÏÂÔØ
Instant
Client Package – Basic
°ü
(

±ê×¢
:All files
required to run OCI, OCCI, and JDBC-OC ......

110¸öOracle ³£Óú¯ÊýµÄ×ܽá

SQLÖеĵ¥¼Ç¼º¯Êý
1.ASCII
·µ»ØÓëÖ¸¶¨µÄ×Ö·û¶ÔÓ¦µÄÊ®½øÖÆÊý;
SQL> select ascii(A) A,ascii(a) a,ascii(0) zero,ascii( ) space from dual;
A A ZERO SPACE
--------- --------- --------- ---------
65 97 48 32
2.CHR
¸ø³öÕûÊý,·µ»Ø¶ÔÓ¦µÄ×Ö·û;
SQL> select chr(54740) zhao,chr(65) chr65 from dual;
......

110¸öOracle ³£Óú¯ÊýµÄ×ܽá2

60.AVG(DISTINCT|ALL)
all±íʾ¶ÔËùÓеÄÖµÇóƽ¾ùÖµ,distinctÖ»¶Ô²»Í¬µÄÖµÇóƽ¾ùÖµ
SQLWKS> create table table3(xm varchar(8),sal number(7,2));
Óï¾äÒÑ´¦Àí¡£
SQLWKS> insert into table3 values(gao,1111.11);
SQLWKS> insert into table3 values(gao,1111.11);
SQLWKS> insert into table3 values(zhu ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ