您的位置:首页 > 数据库 > Oracle

oracle 常见错误问题

2013-06-05 17:02 316 查看
1. 单实例创建多数据库: 参考http://wenku.baidu.com/view/34ef2d390912a21614792997.html

2.命令:

启动监听器 lsnrctl start

su - oracle

a、启动ORACLE系统

oracle>svrmgrl

SVRMGR>connect internal

SVRMGR>startup #此处启动指定的实例是ORACLE_SID这变量的值

SVRMGR>quit

b、关闭ORACLE系统

oracle>svrmgrl

SVRMGR>connect internal

SVRMGR>shutdown

SVRMGR>quit

3. 解决用户lock

SQL> conn /as sysdba

已连接。

SQL> alter user system identified by password;

用户已更改。

SQL> alter user sys identified by password;

用户已更改。

SQL> alter user system identified by password;

解锁方法

SQL> alter user system account unlock;

error: Xlib: connection to ":0.0" refused by server

解决办法:用root登陆,在#提示符后输入:

xhost local:oracle non-network local connections being added toaccess control list
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: