Oracle安装过程中遇到的一些问题及解决方案
今天想安装个人版的Oracle玩玩,但是遇到了不少问题。 问题一:.涉及到域的问题,网络配置检查未通过 公司对员工的电脑设置了域。比如说张三。他电脑的用户名是zhangsan ,域名是node。而administrator用户登录的话域选项是 (zhangsan)本机。 实际上也就是no
今天想安装个人版的Oracle玩玩,但是遇到了不少问题。
问题一:.涉及到域的问题,网络配置检查未通过
公司对员工的电脑设置了域。比如说张三。他电脑的用户名是zhangsan ,域名是node。而administrator用户登录的话域选项是 (zhangsan)本机。 实际上也就是node 和(zhangsan)本机2个选项。那么,问题就来了:
我以zhangsan登录。安装Oracle的时候,在创建数据库实例这一步报错:oracle net 错误。安装不上去。无奈之下就以administrator用户登录安装Oracle。一路畅通无阻。安装完毕后切换到zhangsan登陆使用Oracle,出现了很有意思的现象:
1 pl/sql developer连接的时候,一查询表就报错:Oracle net 管理错误。
2 sqlplus 登录。第一次连接没问题。比如 sqlplus / as sysdba 或 sqlplus test1 但是在sqlpllus内部切换用户的时候 如conn /as sysdba 或conn test1 报错。 让人极度郁闷
问题解决:
显而易见是关于域的问题。但是如何解决? 我们在安装Oracle的时候有对各种先决条件检查的步骤。这一步中总是“对网络配置的检查 --未执行”。问题就出在这里。我在zhangsan用户下再次安装Oracle设法使这个检查通过才解决了这个问题。原理还不大明白,但是问题总算解决了,先拿出来分享下。
在安装之前:
1 打开控制面板,进入添加硬件
2 下一步
3 选择:是,我已经连接了此硬件 下一步
4 选择最后一项:添加新的硬件设备 下一步
5 选择:安装我手动从列表选择的硬件(高级)(M) 下一步
6 选择第一项:显示所有设备 下一步
7 选择: 左边列表选择:Microsoft 右边列表选择:Microsoft Loopback Adapter 下一步
8 安装 下一步
9 完成
10 查看你的网络连接 多出一个‘网络连接2’。禁用你当前的网络连接 启动网络连接2 并设置IP为192.168.1.1。
11 安装Oracle。创建数据库时不再报错。完毕后,禁用网络连接2,启用你原本的网络连接。设置监听等,OK!
注意:要先安装Oracle软件,再停掉本地连接2,打开本地连接,使用DBCA创建数据库。
问题二:修改scott密码
alter user scott identified by scott;//
修改scott用户密码为 scott,scott用户默认密码为 tiger
问题三:账户锁定解决
在开始->运行内输入cmd 输入下列命令行
sqlplus/nolog 回车
SQL>conn/as sysdba 回车
SQL>alter user scott account unlock; 回车 / /把 scott用户解锁
SQL>alter user scott account lock; 回车 //把 scott用户锁定

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

Solutions to Oracle cannot be opened include: 1. Start the database service; 2. Start the listener; 3. Check port conflicts; 4. Set environment variables correctly; 5. Make sure the firewall or antivirus software does not block the connection; 6. Check whether the server is closed; 7. Use RMAN to recover corrupt files; 8. Check whether the TNS service name is correct; 9. Check network connection; 10. Reinstall Oracle software.

The method to solve the Oracle cursor closure problem includes: explicitly closing the cursor using the CLOSE statement. Declare the cursor in the FOR UPDATE clause so that it automatically closes after the scope is ended. Declare the cursor in the USING clause so that it automatically closes when the associated PL/SQL variable is closed. Use exception handling to ensure that the cursor is closed in any exception situation. Use the connection pool to automatically close the cursor. Disable automatic submission and delay cursor closing.

In Oracle, the FOR LOOP loop can create cursors dynamically. The steps are: 1. Define the cursor type; 2. Create the loop; 3. Create the cursor dynamically; 4. Execute the cursor; 5. Close the cursor. Example: A cursor can be created cycle-by-circuit to display the names and salaries of the top 10 employees.

To stop an Oracle database, perform the following steps: 1. Connect to the database; 2. Shutdown immediately; 3. Shutdown abort completely.

Building a Hadoop Distributed File System (HDFS) on a CentOS system requires multiple steps. This article provides a brief configuration guide. 1. Prepare to install JDK in the early stage: Install JavaDevelopmentKit (JDK) on all nodes, and the version must be compatible with Hadoop. The installation package can be downloaded from the Oracle official website. Environment variable configuration: Edit /etc/profile file, set Java and Hadoop environment variables, so that the system can find the installation path of JDK and Hadoop. 2. Security configuration: SSH password-free login to generate SSH key: Use the ssh-keygen command on each node

When Oracle log files are full, the following solutions can be adopted: 1) Clean old log files; 2) Increase the log file size; 3) Increase the log file group; 4) Set up automatic log management; 5) Reinitialize the database. Before implementing any solution, it is recommended to back up the database to prevent data loss.

Oracle is not only a database company, but also a leader in cloud computing and ERP systems. 1. Oracle provides comprehensive solutions from database to cloud services and ERP systems. 2. OracleCloud challenges AWS and Azure, providing IaaS, PaaS and SaaS services. 3. Oracle's ERP systems such as E-BusinessSuite and FusionApplications help enterprises optimize operations.

SQL statements can be created and executed based on runtime input by using Oracle's dynamic SQL. The steps include: preparing an empty string variable to store dynamically generated SQL statements. Use the EXECUTE IMMEDIATE or PREPARE statement to compile and execute dynamic SQL statements. Use bind variable to pass user input or other dynamic values to dynamic SQL. Use EXECUTE IMMEDIATE or EXECUTE to execute dynamic SQL statements.
