一、linux
windows xp安装oracle安装不上:出现端口1521不能开启。在windows xp安装oracle时,要启用默认共享目录D:$,同时要在局域网内安装oracle不然oracle启用不了1521端口。sql
二、默认的scott用户是被锁定的,先解锁就能登录上了。
使用下面的语句解锁scott:
alter user scott account unlock;
解锁以后可能会要求你该密码:
alter user scott identified by tiger;
再登录:
sqlplus scott/tiger
就能登录了。windows
查看系统用户的状况:bash
SQL> select username,account_status from dba_users;
USERNAME ACCOUNT_STATUS
------------------------------ ------------------
SCOTT EXPIRED & LOCKEDoracle
三、ide
oracle安装(如选择桌面安装)的时候若是没详细设定用户名密码的话,默认的用户名和密码是:spa
scott 密码是 tiger
sys 密码是 change_on_install
system 密码是 manager
sysman 密码是 oem_temp 【安装时设置的密码为该用户】
其中直接管理模式能够为sysdba的为后面三个,要是集群的话再去掉systemserver
四、windows和linux下,查看oracle SID的方法:ci
Windows 平台下: 你能够到注册表去,看看 HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\KEY_OraDb11g_home4下面,有一个 ORACLE_SID。 linux平台下: 若是你的server是linux的话 1.以安装oracle的帐号登录 2.修改 .bash_profile这个文件,里面应该有一行export ORACLE_SID = your_current_sid, 把它改为你如今的new_sid 3.source .bash_profile //让你的环境变量生效,若是不打这个命令的话,下次你登录到oracle,才会生效 4.这个改变是永久的。 |