今天想安装个人版的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用户锁定

MySQLoffersvariousstorageengines,eachsuitedfordifferentusecases:1)InnoDBisidealforapplicationsneedingACIDcomplianceandhighconcurrency,supportingtransactionsandforeignkeys.2)MyISAMisbestforread-heavyworkloads,lackingtransactionsupport.3)Memoryengineis

Common security vulnerabilities in MySQL include SQL injection, weak passwords, improper permission configuration, and unupdated software. 1. SQL injection can be prevented by using preprocessing statements. 2. Weak passwords can be avoided by forcibly using strong password strategies. 3. Improper permission configuration can be resolved through regular review and adjustment of user permissions. 4. Unupdated software can be patched by regularly checking and updating the MySQL version.

Identifying slow queries in MySQL can be achieved by enabling slow query logs and setting thresholds. 1. Enable slow query logs and set thresholds. 2. View and analyze slow query log files, and use tools such as mysqldumpslow or pt-query-digest for in-depth analysis. 3. Optimizing slow queries can be achieved through index optimization, query rewriting and avoiding the use of SELECT*.

To monitor the health and performance of MySQL servers, you should pay attention to system health, performance metrics and query execution. 1) Monitor system health: Use top, htop or SHOWGLOBALSTATUS commands to view CPU, memory, disk I/O and network activities. 2) Track performance indicators: monitor key indicators such as query number per second, average query time and cache hit rate. 3) Ensure query execution optimization: Enable slow query logs, record and optimize queries whose execution time exceeds the set threshold.

The main difference between MySQL and MariaDB is performance, functionality and license: 1. MySQL is developed by Oracle, and MariaDB is its fork. 2. MariaDB may perform better in high load environments. 3.MariaDB provides more storage engines and functions. 4.MySQL adopts a dual license, and MariaDB is completely open source. The existing infrastructure, performance requirements, functional requirements and license costs should be taken into account when choosing.

MySQL uses a GPL license. 1) The GPL license allows the free use, modification and distribution of MySQL, but the modified distribution must comply with GPL. 2) Commercial licenses can avoid public modifications and are suitable for commercial applications that require confidentiality.

The situations when choosing InnoDB instead of MyISAM include: 1) transaction support, 2) high concurrency environment, 3) high data consistency; conversely, the situation when choosing MyISAM includes: 1) mainly read operations, 2) no transaction support is required. InnoDB is suitable for applications that require high data consistency and transaction processing, such as e-commerce platforms, while MyISAM is suitable for read-intensive and transaction-free applications such as blog systems.

In MySQL, the function of foreign keys is to establish the relationship between tables and ensure the consistency and integrity of the data. Foreign keys maintain the effectiveness of data through reference integrity checks and cascading operations. Pay attention to performance optimization and avoid common errors when using them.


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

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft

MinGW - Minimalist GNU for Windows
This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

EditPlus Chinese cracked version
Small size, syntax highlighting, does not support code prompt function

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

Dreamweaver Mac version
Visual web development tools
