你好,游客 登录 注册 搜索
背景:
阅读新闻

Linux环境下添加Oracle的scott账户

[日期:2012-12-12] 来源:Linux社区  作者:yichangzyh [字体:大 中 小]

Linux环境下Oracle的scott演示模式所在目录:

$ORACLE_HOME/rdbms/admin/utlsampl.sql,

添加步骤:

在sql*plus执行(注意在sys用户下)

@$ORACLE_HOME/rdbms/admin/utlsampl.sql

(@表示在sql*plus执行脚本)

完成后自动断开连接,然后用scott进入,密码默认为tiger。

以下是实际执行结果:

SQL> show user

USER is "SYS"

SQL>  @$ORACLE_HOME/rdbms/admin/utlsampl.sql

Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production

With the Partitioning, OLAP and Data Mining options

[oracle@RedHat4 ~]$ sqlplus / as sysdba

SQL*Plus: Release 10.2.0.1.0 - Production on Thu Dec 6 05:10:15 2012

Copyright (c) 1982, 2005, Oracle.  All rights reserved.

Connected to:

Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production

With the Partitioning, OLAP and Data Mining options

SQL> conn scott/tiger

Connected.

SQL> select * from emp;

linux
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款