在安装oracle中遇到的问题 1、配置磁盘分区时,/root最大只能50G,/home 860G,想把/Home的磁盘空间设置为50G,其他移到/根目录下 出现这个原因是,第一次默认安装的时候centos提供的建议分区方案,下次重新安装centos时,会默认以上次分区方案为准,需要进入
在安装oracle中遇到的问题
1、配置磁盘分区时,/root最大只能50G,/home 860G,想把/Home的磁盘空间设置为50G,其他移到/根目录下
出现这个原因是,第一次默认安装的时候centos提供的建议分区方案,下次重新安装centos时,会默认以上次分区方案为准,需要进入自主创建分区,删除系统提供的分区方案,然后创建/root(挂载到/根目录)和swap分区,/home不要特意分区设定大小。
2、sysctl -p错误
fs.file-max = 6815744
fs.aio-max-nr = 1048576
kernel.shmall = 2097152
kernel.shmmax = 2147483648
"sysctl.conf" 54L, 1461C
kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default = 4194304
net.core.rmem_max=4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048576
由于把 kernel.shmmni写成 kernel.shmmin导致编译不成功,直接导致执行sysctl -p命令时,提示sysctl命令不存在。因此在编写脚本时,要特别小心确保每一个单词都是正确的,每一个字母大小写都是正确的(linux区分大小写),同时要特别注意编译器提示的消息。
3、sysctl -p显示错误
<code>error: "net.bridge.bridge-nf-call-ip6tables" is an unknown key error: "net.bridge.bridge-nf-call-iptables" is an unknown key error: "net.bridge.bridge-nf-call-arptables" is an unknown key</code>
解决方法:参考http://serverfault.com/questions/477718/sysctl-p-etc-sysctl-conf-returns-error
<code>modprobe bridge lsmod | grep bridge</code>
4、出现root和oracle用户的配置信息错误
-bash: [root: command not found
-bash: [oracle: command not found
出现原因是没有加双引号和空格
if [ "$USER" = "oracle" ] ; then
if [ "$SHELL" = "/bin/ksh"] ; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
fi
5、-bash: [: missing `]'
原因 :缺少空格导致
6、执行 ./runInstall时乱码
解决:在oracle账户中执行export LANG=en_US
Exception in thread "main" java.lang.NoClassDefFoundError
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at java.awt.Toolkit$2.run(Toolkit.java:821)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:804)
at com.jgoodies.looks.LookUtils.isLowResolution(Unknown Source)
at com.jgoodies.looks.LookUtils.
at com.jgoodies.looks.plastic.PlasticLookAndFeel.
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:242)
at javax.swing.SwingUtilities.loadSystemClass(SwingUtilities.java:1783)
at javax.swing.UIManager.setLookAndFeel(UIManager.java:480)
at oracle.install.commons.util.Application.startup(Application.java:758)
at oracle.install.commons.flow.FlowApplication.startup(FlowApplication.java:164)
at oracle.install.commons.flow.FlowApplication.startup(FlowApplication.java:181)
at oracle.install.commons.base.driver.common.Installer.startup(Installer.java:265)
at oracle.install.ivw.db.driver.DBInstaller.startup(DBInstaller.java:114)
at oracle.install.ivw.db.driver.DBInstaller.main(DBInstaller.java:132)
解决方法:注销root账户,在oracle账户下执行./runInstall ,不能使用 su - oracle
8、The password entered does not conform to the Oracle recommended standards.
解决方法:密码设置复杂一些
9、central inventory location was not writable
给文件夹设置权限:chown -R oracle:oinstall /usr/oracle
10、ip address localhost could not be determined
vi /etc/hosts 将主机名添加到127.0.0.1的主机名列表中
hostname RAID
11、the selected oracle home contained directories or files
to start with an enpty oracle home, either remove its contents or choose another location
解决方法将/usr/oracle中的所有文件和文件夹删除\
11、this is a prerequisite condition to test whether the package "make-3.8"
解决方法: yum -y install gcc automake autoconf libtool make
12、每次重启服务器后/etc/resolv.conf中的nameserver设置全部被清空
解决方法:在/etc/network-scripts/ifcfg-em1中添加DNS1=192.168.1.1
13、this is a prerequisite condition to test whether the package "make-3.8"
解决方法:yum install make
14、在安装oracle中断后,重启centos后,在本机使用root用户名和密码(用户名密码正确)一直无法登录成功
解决方法:安装oracle过程中,一般的安装文档中都会提到要设置/etc/security/limits.conf和/etc/pam.d/login参数文件来限制oracle服务器可以打开的文件数、进程数等等资源的限制,于是会需要在/etc/pam.d/login 文件中添加session required /lib/security/pam_limits.so一行内容来实现/etc/security/limits.conf中定义的各项限制,和通过ulimit命令直接设置资源设置类似,此机器的安装过程中也是这样设置的,可是问题就出现在这里了。
此机器使用的是64位的操作系统,因此根本没有/lib/security/pam_limits.so文件存在,而应该使用替代的/lib64/security/pam_limits.so文件来代替,否则在登陆的时候找不到这个文件,就会出现本机不能登陆的情况。
15、ORA-01017: invalid username/password; logon denied
错误原因:Oracle密码丢失,账号被锁解决方案
解决方案:
SQL>sqlplus
SQL>conn/as sysdba
SQL>alter user system identified by system;
16、Oracle the network adapter could not establish the connection 异常
原因:端口没有开放,没有开放1521
解决:lsnrctl start
17、linux TNS:listener does not currently know of service requested in connect
原因:没有启动oracle服务
解决方法:./dbstart
18、PL/SQL Developer 中文乱码解决
修改本地环境变量,设置
1、执行 select * from v$nls_parameters; 查询oracle服务端的NLS_LANG和NLS_CHARACTERSET
1、进入 我的电脑,属性,高级,环境变量,添加2项:LANG=zh_CN.GBK 和 NLS_LANG=oracle服务端的NLS_LANG的值
2、在pl/sql developer的菜单->tools->preferences->user interface->fonts 中修改为中文字体

InnoDBBufferPool reduces disk I/O by caching data and indexing pages, improving database performance. Its working principle includes: 1. Data reading: Read data from BufferPool; 2. Data writing: After modifying the data, write to BufferPool and refresh it to disk regularly; 3. Cache management: Use the LRU algorithm to manage cache pages; 4. Reading mechanism: Load adjacent data pages in advance. By sizing the BufferPool and using multiple instances, database performance can be optimized.

Compared with other programming languages, MySQL is mainly used to store and manage data, while other languages such as Python, Java, and C are used for logical processing and application development. MySQL is known for its high performance, scalability and cross-platform support, suitable for data management needs, while other languages have advantages in their respective fields such as data analytics, enterprise applications, and system programming.

MySQL is worth learning because it is a powerful open source database management system suitable for data storage, management and analysis. 1) MySQL is a relational database that uses SQL to operate data and is suitable for structured data management. 2) The SQL language is the key to interacting with MySQL and supports CRUD operations. 3) The working principle of MySQL includes client/server architecture, storage engine and query optimizer. 4) Basic usage includes creating databases and tables, and advanced usage involves joining tables using JOIN. 5) Common errors include syntax errors and permission issues, and debugging skills include checking syntax and using EXPLAIN commands. 6) Performance optimization involves the use of indexes, optimization of SQL statements and regular maintenance of databases.

MySQL is suitable for beginners to learn database skills. 1. Install MySQL server and client tools. 2. Understand basic SQL queries, such as SELECT. 3. Master data operations: create tables, insert, update, and delete data. 4. Learn advanced skills: subquery and window functions. 5. Debugging and optimization: Check syntax, use indexes, avoid SELECT*, and use LIMIT.

MySQL efficiently manages structured data through table structure and SQL query, and implements inter-table relationships through foreign keys. 1. Define the data format and type when creating a table. 2. Use foreign keys to establish relationships between tables. 3. Improve performance through indexing and query optimization. 4. Regularly backup and monitor databases to ensure data security and performance optimization.

MySQL is an open source relational database management system that is widely used in Web development. Its key features include: 1. Supports multiple storage engines, such as InnoDB and MyISAM, suitable for different scenarios; 2. Provides master-slave replication functions to facilitate load balancing and data backup; 3. Improve query efficiency through query optimization and index use.

SQL is used to interact with MySQL database to realize data addition, deletion, modification, inspection and database design. 1) SQL performs data operations through SELECT, INSERT, UPDATE, DELETE statements; 2) Use CREATE, ALTER, DROP statements for database design and management; 3) Complex queries and data analysis are implemented through SQL to improve business decision-making efficiency.

The basic operations of MySQL include creating databases, tables, and using SQL to perform CRUD operations on data. 1. Create a database: CREATEDATABASEmy_first_db; 2. Create a table: CREATETABLEbooks(idINTAUTO_INCREMENTPRIMARYKEY, titleVARCHAR(100)NOTNULL, authorVARCHAR(100)NOTNULL, published_yearINT); 3. Insert data: INSERTINTObooks(title, author, published_year)VA


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

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

Dreamweaver Mac version
Visual web development tools

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

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool

WebStorm Mac version
Useful JavaScript development tools