---
title: "oracle 连接HR数据库"
author: "likelike"
date: "2014-04-30T14:44:06Z"
tags: []
categories: ["数据库"]
slug: "oracle-hr"
draft: false
lastmod: "2014-04-30T14:44:06Z"
id: 2058886
url: "https://likelike.iteye.com/blog/2058886"
---

1、Connect /as sysdba

2、Alter user hr identified by hr account unlock;         % 解锁hr用户

或者Alter user hr account unlock;

3、connect hr/hr;                      %连接上hr数据库

4、desc employees;                    %展示hr数据库中的employees数据表

 

Oracle两个自带的默认的用户名和密码：

hr/hr

scott/tiger

 

查看HR用户中所有的表：

`select` `table_name from` `user_tables;`