oracle中如何设置登录的默认数据库
在oracle中当我们新建了多个数据库后,再次登录时,系统默认的是最后创建的那个数据库。
如何设置我们自己想要的默认数据库呢?
方法很简单,我们只需在运行窗口里输入regedit,即可进入注册表编辑器,在HKEY_LOCAL_MACHINEDE的software子键下的oracle下选中key_oradb10g_home1(我安装的是oracle10g),右侧便会出现很多数据项,选中名为ORACLE_SID的数据项,并右击选择修改,将名称改为你登录默认的数据库名称。
这样,当你再次登录时,就会登录进入你所想要的数据库。
相关文档:
一、启动
1.#su - oracle 切换到oracle用户且切换到它的环境
2.$lsnrctl status 查看监听及数据库状态
3.$lsnrctl start &nb ......
http://inthirties.com:90/thread-918-3-1.html
This article describes the installation of
Oracle 10g release 2 (10.2.0.1) RAC on Linux (Oracle Enterprise Linux
4.5) using NFS to provide the shared storage.
Introduction
Download Software
Operating System Installation
Oracle Installation Prereq ......
原文地址:http://tech.e800.com.cn/articles/2009/710/1247207067745_1.html
处理方法一 :
检查哪个表被锁
select sess.sid,sess.serial#,
lo.oracle_username,lo.os_user_name,ao.object_name,lo.locked_mode
from
v$locked_object lo,dba_objects ao,v$session sess
where ao.object_id =
lo.object_id
......
update customers a
set city_name=(select b.city_name from tmp_cust_city b where b.customer_id=a.customer_id)
where exists (select 1
from tmp_cust_city b
where b.customer_id=a.customer_id
)
-- update 超过2个值
update customers a
set (city_name,customer_type)=(select b.city_name,b.customer_ ......
有两个日期数据START_DATE,END_DATE,欲得到这两个日期的时间差(以天,小时,分钟,秒,毫秒):
天:
ROUND(TO_NUMBER(END_DATE - START_DATE))
小时:
ROUND(TO_NUMBER(END_DATE - START_DATE) * 24)
分钟:
ROUND(TO_NUMBER(END_DATE - START_DATE) * 24 * 60)
秒:
ROUND(TO_NUMBER(END_DATE - START ......