简体   繁体   English

oracle sql 开发者连接

[英]oracle sql developer connection

I tried to install oracle sql developer in windows 7 32 bit for this first i install jdk 8 and then i install this file sqldeveloper-4.1.3.20.78-no-jre from oracle website .. then when i run sqldeveloper application it shows this我尝试在 Windows 7 32 位中安装 oracle sql developer 首先我安装 jdk 8 然后我从 oracle 网站安装这个文件sqldeveloper-4.1.3.20.78-no-jre ..然后当我运行 sqldeveloper 应用程序时它显示了这个

check image检查图像图 1

then this shows create new connection now when i create connection it shows error check image然后这显示现在创建新连接当我创建连接时它显示错误检查图像

图 2

how to solve this error?如何解决这个错误?

You need to install Oracle Express Edition (XE) and set it up to run on your computer, on port 1521 - for your connection to work.您需要安装 Oracle Express Edition (XE) 并将其设置为在您的计算机上的 1521 端口上运行 - 以便您的连接正常工作。

SQL Developer is just a client - there's no database there, unless you've put it there. SQL Developer 只是一个客户端——那里没有数据库,除非你把它放在那里。

You need to have a running database to use with SQL Developer.您需要有一个正在运行的数据库才能与 SQL Developer 一起使用。 If you haven't installed it yet follow the official documentation .如果您还没有安装它,请按照官方文档 If you do have the database but can't connect to it, make sure that如果您有数据库但无法连接到它,请确保

  • The listener is up and running on the machine you're trying to connect to (in your case it's localhost ) 侦听器在您尝试连接的机器上启动并运行(在您的情况下是localhost
  • You've provided the correct port number and SID您提供了正确的端口号和 SID

Apart the suggestions of @Nikita and @thatjeffsmith, I highly suspect the matter is that you are using the pre-existing user hr that you didn't create by yourself but that was created during installing your Oracle Express instance.除了@Nikita 和@thatjeffsmith 的建议之外,我高度怀疑问题在于您使用的预先存在的用户hr不是您自己创建的,而是在安装 Oracle Express 实例期间创建的。

This user is by default locked .默认情况下,此用户是锁定的 It must be unlocked by an administrator (for example SYSTEM user).它必须由管理员(例如SYSTEM用户)解锁。

After unlocking hr user, don't forget to grant to it CONNECT and RESOURCE roles.解锁 hr 用户后,不要忘记为其授予CONNECTRESOURCE角色。 Find more details on this page.此页面上查找更多详细信息

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM