oracle学习及sqlplus常用设置

1:sqlplus:  col name for a55

     shutdown immediate;

     connect system/ming as sysdba;

     host copy  F:\orale\product\10.1.0\db_1\database\*.*  F:\backup\

    startup

 

 

1:查询表空间:

select owner,table_name

 from dba_tables

 where tablespace_name='YOUR_TABLESPACE_NAME'

 

 

2:oracle后台进程

   system/

 

select spid,username, program, background from u$process where background = '1';

show sga;

 

select host_name  from v$instance;

 

sqlplus常用 格式设置

set colsep' 分隔符';               //##--域输出分隔符 通常用set colsep' |'; 

set linesize 80;                //##--输出一行字符个数,缺省为80 通常用设大 set linesize 8000;

set heading off;                //##--输出域标题,缺省为on

 

或者 

select  name||'|'||age||'|' from user;                           

 

 

 

 

 

猜你喜欢

转载自yangbinfx.iteye.com/blog/1773489