一个计算机技术爱好者与学习者

0%

详细问题描述

安装好Oracle11gR2之后,启动SOL Developer:开始,所有程序,Oracle-OraDb11g_home1,应用程序开发,SQL Developer。
第一次使用,需要选择与Oracle配套安装的jave.exe的路径,郝同学的安装路径为D:\Oracle\dbhome\jdk\bin\java.exe。
此时,错误出现了,Unable to find a java Virtual Machine
to point to a location of a java virtual machine,please refer to the oracle9i Jdeveloper Install guide(jdev\install.html)

阅读全文 »

以下命令,都是在操作系统命令行中使用。

EXP数据导出

1、full方式:导出整个数据库
exp system/Admin123 file=d:/test_1.dmp full=y

2、owner方式:导出指定的用户模式
exp scott/tiger file=d:/test_2.dmp owner=scott

3、tables方式:导出指定的表
exp scott/tiger file=d:/test_3.dmp tables=(emp,dept)

阅读全文 »

1、使用SYSTEM登陆SQL Plus

2、通过数据字典dba_users,查看Oracle账户的锁定状态
select username,account_status from dba_users;

3、为scott账户解锁
alter user scott account unlock;

4、为scott账户设置口令
alter user scott identified by tiger;

5、查看现在scott的状态
select username,account_status from dba_users where username='SCOTT';

6、在SQL Plus中使用scott账户连接数据库
conn scott/tiger;

7、显示当前用户
show user;

8、查看表信息
select empno,ename,job,sal from emp where sal<2500;

9、列出缓冲区内容
list
或者l

10、编辑当前行
change /epno/empno

阅读全文 »