waitingxyy 发表于 2014-08-29 12:02

谁能解释解释 export 到底是干嘛的

$ export ORACLE_SID=ORCL
$ ps -ef|grep ora_
oracle    3856   10 11:44 ?      00:00:00 ora_pmon_ORCL
oracle    3858   10 11:44 ?      00:00:00 ora_psp0_ORCL
oracle    3860   10 11:44 ?      00:00:00 ora_mman_ORCL
oracle    3862   10 11:44 ?      00:00:00 ora_dbw0_ORCL
oracle    3864   10 11:44 ?      00:00:00 ora_lgwr_ORCL
oracle    3866   10 11:44 ?      00:00:00 ora_ckpt_ORCL
oracle    3868   10 11:44 ?      00:00:00 ora_smon_ORCL
oracle    3870   10 11:44 ?      00:00:00 ora_reco_ORCL
oracle    3872   10 11:44 ?      00:00:00 ora_cjq0_ORCL
oracle    3874   10 11:44 ?      00:00:00 ora_mmon_ORCL
oracle    3876   10 11:44 ?      00:00:00 ora_mmnl_ORCL
oracle    3880   10 11:45 ?      00:00:00 ora_qmnc_ORCL
oracle    3891   10 11:45 ?      00:00:00 ora_q002_ORCL
oracle    3893   10 11:45 ?      00:00:00 ora_q003_ORCL
oracle    395535540 11:53 pts/7    00:00:00 grep ora_
$ echo $ORACLE_SID
omrep
$

q1208c 发表于 2014-08-29 12:50

字面意思 "输出".
就是把当前变量"输出" 出去, 让子shell也能使用这个变量

waitingxyy 发表于 2014-08-31 12:40

如果 之前有一个 orcl ,我另外 再export oracle_sid= ABC到底有几个 数据库 实例 呢,重启之后 呢 ???回复 2# q1208c


   

q1208c 发表于 2014-09-01 07:05

回复 3# waitingxyy

有几个实例跟 export 没有 直接关系.

只不过是 oracle 用了这个 变量名而已.
   

chengchow 发表于 2014-09-04 16:31

回复 3# waitingxyy

仍然只有一个,不过你可以启动后退出oracle界面,在export一次,去启动另一个实例
重启后,默认是用户环境中配置的实例,export内存log off后即清空
   
页: [1]
查看完整版本: 谁能解释解释 export 到底是干嘛的