Oracle 组件 系列 小结 Oracle 组件的信息可以通过v$option 和 dba_registry 查看: --查看v$option: V$OPTIONdisplaysOracle Database options and features. Typically, although not always, optionsmust be separately licensed, whereas features come
Oracle 组件 系列 小结
Oracle 组件的信息可以通过v$option 和 dba_registry 查看:
--查看v$option:
V$OPTION displaysOracle Database options and features. Typically, although not always, optionsmust be separately licensed, whereas features come with the product and areenabled based on the product that is running (Standard Edition, EnterpriseEdition, and so on).
SQL> select * from v$option;
PARAMETER VALUE
------------------------------------------------------
Partitioning TRUE
Objects TRUE
Real Application Clusters FALSE
Advanced replication TRUE
Bit-mapped indexes TRUE
Connection multiplexing TRUE
Connection pooling TRUE
Database queuing TRUE
Incremental backup and recovery TRUE
Instead-of triggers TRUE
Parallel backup and recovery TRUE
PARAMETER VALUE
------------------------------------------------------
Parallel execution TRUE
Parallel load TRUE
Point-in-time tablespace recovery TRUE
Fine-grained access control TRUE
Proxy authentication/authorization TRUE
Change Data Capture TRUE
Plan Stability TRUE
Online Index Build TRUE
Coalesce Index TRUE
Managed Standby TRUE
Materialized view rewrite TRUE
PARAMETER VALUE
------------------------------------------------------
Materialized view warehouse refresh TRUE
Database resource manager TRUE
Spatial TRUE
Automatic Storage Management FALSE
Export transportable tablespaces TRUE
Transparent Application Failover TRUE
Fast-Start Fault Recovery TRUE
Sample Scan TRUE
Duplexed backups TRUE
Java TRUE
OLAP Window Functions TRUE
PARAMETER VALUE
------------------------------------------------------
Block Media Recovery TRUE
Fine-grained Auditing TRUE
Application Role TRUE
Enterprise User Security TRUE
Oracle Data Guard TRUE
Oracle Label Security FALSE
OLAP TRUE
Basic Compression TRUE
Join index TRUE
Trial Recovery TRUE
Data Mining TRUE
PARAMETER VALUE
------------------------------------------------------
Online Redefinition TRUE
Streams Capture TRUE
File Mapping TRUE
Block Change Tracking TRUE
Flashback Table TRUE
Flashback Database TRUE
Transparent Data Encryption TRUE
Backup Encryption TRUE
Unused Block Compression TRUE
Oracle Database Vault FALSE
Result Cache TRUE
PARAMETER VALUE
------------------------------------------------------
SQL Plan Management TRUE
SecureFiles Encryption TRUE
Real Application Testing TRUE
Flashback Data Archive TRUE
DICOM TRUE
Active Data Guard TRUE
Server Flash Cache TRUE
Advanced Compression TRUE
XStream TRUE
Deferred Segment Creation TRUE
65 rows selected.
SQL>
--查看dba_registry:
SQL> select comp_id,comp_name fromdba_registry;
COMP_ID COMP_NAME
-------------------------------------------------
OWB OWB
APEX Oracle Application Express
EM Oracle Enterprise Manager
AMD OLAP Catalog
SDO Spatial
ORDIM Oracle Multimedia
XDB Oracle XML Database
CONTEXT Oracle Text
EXF Oracle Expression Filter
RUL Oracle Rules Manager
OWM Oracle Workspace Manager
COMP_ID COMP_NAME
--------------- ----------------------------------
CATALOG Oracle Database Catalog Views
CATPROC Oracle Database Packages and Types
JAVAVM JServer JAVA Virtual Machine
XML Oracle XDK
CATJAVA Oracle Database Java Packages
APS OLAP Analytic Workspace
XOQ Oracle OLAP API
18 rows selected.
对于这些组件,MOS 有文章说明:
Oracle 8i/9i/10g/11g 组件(Components) 说明
http://blog.csdn.net/tianlesoftware/article/details/5937382
小整理了部分组件的重建,链接如下:
Oracle 9i 升级后 OLAP Catalog 组件 Invalid
http://blog.csdn.net/tianlesoftware/article/details/5937372
Oracle OLAP 组件重建 说明
http://blog.csdn.net/tianlesoftware/article/details/7321333
Oracle XDB 组件重建 说明
http://blog.csdn.net/tianlesoftware/article/details/7323139
Oracle ORA-31000: Resource'http://xmlns.oracle.com/xdb/acl.xsd' is not an XDB schema 解决方法
http://blog.csdn.net/tianlesoftware/article/details/7323193
Oracle JAVAVM 组件 Reload 说明
http://blog.csdn.net/tianlesoftware/article/details/7334414
Oracle Spatial 组件 说明
http://blog.csdn.net/tianlesoftware/article/details/7334440
Oracle Text 组件 说明
http://blog.csdn.net/tianlesoftware/article/details/7334639
Oracle DataMining 组件 说明
http://blog.csdn.net/tianlesoftware/article/details/7336775
Oracle XDK 组件 说明
http://blog.csdn.net/tianlesoftware/article/details/7337205
OracleWorkspace Manager 组件 说明
http://blog.csdn.net/tianlesoftware/article/details/7339652
Oracle RulesManager 和Oracle Expression Filter 组件 说明
http://blog.csdn.net/tianlesoftware/article/details/7339939
OracleEnterprise Manager 组件 说明
http://blog.csdn.net/tianlesoftware/article/details/7339962
不同的组件对应不同的用户,具体关系如下表:
OUTLN : Theaccount that supports plan stability. Plan stability prevents certain databaseenvironment changes from affecting the performance characteristics ofapplications by preserving execution plans in stored outlines. OUTLN actsas a role to centrally manage metadata associated with stored outlines.
从内部开始来认识Oracle数据库的结构组件
作者:比特网出处:IT专家网2012-10-25 16:01
本文从问题入手来对Oracle数据库组件的一些问题做出仔细的分析。
1、由哪些组件组成;
2、建立连接时需要哪些组件;
Oracle两部分:实例和数据库
实例由以下组成:SGA,Sharedpool,Databasebuffercache,Redologbuffercache。数据库由物理文件组成,其中必须有的文件是:数据文件,控制文件,重做日志,另外还有:参数文件,口令文件,归档日志文件(这三个不是必须的)。
用户建立连接后,启动一个服务器进程,用来将来代替用户进程完成SQLCOMMAND,再通过Oracle实例实现对数据库的相关文件进行改变(数据进行读取或修改)。
用户进程不可以直接操作数据库,而必须通过建立连接后,再通过服务器进程来完成。
OracleSERVER由两个部分组成,
1、INSTANCE:又由内存结构和后台进程。
2、DATABASE:又由数据文件,日志文件和控制文件组成。
CONTROLFILE是用来连接实例和DATABASE:
SQL>SHUTDOWNIMMEDIATE
SQL>STARTUPNOMOUNT
SQL>ALTERDATABASEMOUNT
以上三个过程就是通过CONTROLFILE来连接实例和数据库。
SQL>ALTERDATABASEOPEN:在OPEN的过程对DATABASE的数据文件和重做日志文件进行一次性的验证,验证它们的状态。
OracleINSTANCE:存取数据库的一个手段。
一个DATABASE与INSTANCE之间是1:N的关系,一个INSTANCE只能操作一个DATABASE,由内存结构(共享池,
BUFFERCACHE,REDOLOGBUFFERCACHE)及相应的进程结构组成(PMON,SMON,CKPT)。
SQL>SHOWSGA---显示DATABASE内存结构信息
SQL>SETWRAPOFF
SQL>SETLINESIZE200
以上这两个是设置行宽。
SQL>SELECT*FROMV$BGPROCESS;
将看到在这个系统中所有可能使用到的进程,其中PADDR并不每个进程都分配到有效的地址,即并不是每个进程都是必须的。
SQL>SELECT*FROMV$BGPROCESSWHEREPADDR''00''
将显示所有必需的进程。
ESTABLISHINGACONNECTIONANDCREATINGASESSION
连接到Oracle实例包括建立一个用户连接及创建会话。
SQL>SELECT*FROMV$CONTROLFILES;--显示现系统下由几个控制文件组成。
SQL>SELECT*FROMV$DATAFILE;--显示由几个数据文件组成。
SQL>SELECT*FROMV$LOGFILE;--显示由几个日志文件组成。
OracleMEMORYSTRUCTURE(内存结构)
由两部分组成:
1、SGA是动态的,其最大值由SGA_MAX_SIZE指定,SGA的内存由SGACOMPONENTS来动态调整。
2、PGA是不共享的,即其包含的信息是不一样的,有两个可享的内存可以由SGA配置:
LARGEPOOL
JAVAPOOL
SQL>SHOWPARAMETERSHARED
SQL>SHOWPARAMETERDB_CACHE
SQL>SHOWPARAMETERLOG
以上三个命令是用于查看相关内存信息。
SQL>ALTERSYSTEMSETDB_CACHE_SIZE=20M;
所有内存大小总和不能大于SGA_MAX_SIZE的值,当提示信息出现?号或乱码时,是由于系统的语言问题。
可以通过ALTERSESSIONSETNLS_LANGUAGE=''AMERICAN''或ALTERSESSIONSETNLS_LANGUAGE="SIMPLE
CHINESE"。
SHAREDPOOL(共享池)
LIBRARYCACHE库缓存;
DATADICTIONARYCACHE数据字典缓存,有的地方又称行CACHE,由SHARED_POOL_SIZE指定大小。
SQL>ALTERSYSTEMSETSHARED_POOL_SIZE=64M;
LIBRARYCACHE主要为提高代码的共享,存储的是最近使用的SQL和PL/SQL代码。
用最近最少使用(LRU)算法;
包括两个结构1:共享SQL代码2:共享PL/SQL代码;
不可直接定义,而由SHAREDPOOLSIZE决定。
DATADICTONARYCACHE。
如:SQL>SELECT*FROMAUTHORS;
执行此命令的过程是:首先确认是否存在AUTHORS,,然后确认字段存不存在,再检查语法,最后验证权限,而这些信息就属于DATADICTIONARYCACHE的内容。其包含的信息有:DATABASEFILES,表,索引,字段,用户,权限和其他数据库对象。
主要用来改变系统的感应时间和性能。
通过改变SHAREDPOOL大小来设置,DATADICTIONARYCACHE不能单独设置大小
oem组件是安装oracle数据库软件时一起安装的吗?
备份一个配置了oem资料库的数据库,将它在一台主机上恢复,那么查看dba_registry,发现里面有oem组件一行,这个表示恢复的这台主机上的oem组件,还是备份的这台主机上的oem组件(因为可以理解为dba_registry视图里的内容是来源于数据文件的,而这个数据文件又是从备份的这台主机上来的,所以这个就涉及到dba_registry视图里的内容是来源哪里文件的问题)?

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
