This article demonstrates how to use Oracle ROLLUP grouping functions to experience the charm of Oracle functions in the field of statistical query. The ROLLUP grouping function can be understood as the simplified usage after the Group By grouping
1. Oracle client Configuration
1. find the oracle installation directory → db_1 → NETWORK → ADMIN → modify the listener. ora file and tnsnames. open ora notepad and check whether the host is the host name of the current computer. If not, change it
Prerequisites for Database Import and Export:
1. Install the Oraclek client or server locally.
2. connect to the target database through the NetConfiguration Assistant provided by oracle.
The first step is needless to say. The second step is to open
An exception occurred when I performed a Database Export task as follows:
An error occurred while importing data:IMP-00017: The following statement failed due to Oracle error 1659:"Create table" TB_XXXXXXXX "(" SERV_ID "NUMBER (9, 0) not null
Adjust the Byte of the CHAR/VARCHAR2 field of the table to CHAR
Use the following SQL script:
SetServeroutputOn
DECLARE
Sqlstr varchar2 (4000 );
CursorSqlcursIs
SelectOwner, table_name, column_name, data_type,
The red part is used to handle exceptions where no data is found.
Create or replace trigger TIG_MONITOR_ALARM
After insert on t_monitor_real_minuteFor each rowDeclare-- Standard valueStandvalue number;-- Alarm fact table idLiveid number;Begin----
ORA-01779 errors may occur when you try to update a subquery in Oracle. The error message is as follows:
ORA-01779: cannot modify a column which maps to a non-key-preserved table for example, this error occurs when you use the following update
1. Reduce the control file. If a control file is corrupted, we need to remove the corrupt control file. Steps:1. Modify the parameter file and verify2. Stop the database3. Start the database4. Verify and view v $ controlfile
The following is the
View the value of the environment variable used by an Oracle process. When nls_lang is null, we want to know the default value. When installing the version, we want to know that a process is generated by the database of that version, we can use the
1. Fault Cause
Use ruby to permanently delete all tables under the ql user, and the recycle bin does not exist. Therefore, the use of "flashback table" is invalid;
Flashback database is disabled;
Only recovery through media is supported.
2. Use RMAN
Srvctl is a command line tool provided by Oracle to manage the RAC environment of Oracle. Srvctl is introduced in Oracle 9i. Oracle10g and 11g greatly improve its functions. The following describes the simple usage of this command.
1. view the
Mmgr is the memory management module of postgresql. Its code is distributed in three files: aset. c, mctx. c, and portalmem. c. Here we mainly analyze its heap memory management mechanism, that is, the content in the aset. c file.
AllocSetContext is
Recently, due to the need to migrate the Oracle database, UTL_FILE_DIR settings (oracle11g, linux) are involved ). It is mainly used to output logs for executing stored procedures.
At that time, the following operations were done:
Create directory
Cause:
The union all operation is required in the query, and the operation cannot be completed because the LONG type field exists in the table. Modify the LONG type field to the CLOB type according to the specific business scenario. After the
1. Write an SQL script
Compile the SQL Execution script that DB2 needs to execute and place it on the AIX server.
The following is an example of crontest. SQL:
Connect ToTemUserDb2admin using db2admin;
Call P_TEST ();
2. Write the sh execution
My system: Red Hat Enterprise Linux Server 6.0.My Oracle: 10g. 2.1
Installation Process in silent mode:1) confirm the disk size: u01 5G; swap 400 m;Du-sh/tmp/Df-h
2) install related dependency packages (query the official installation guide
System: openSUSE 12.1 x86_64Database: Oracle 10g r2 (10.0.2.0.4) 64-bit1. Check if the operating system fails:Modify SuSE-release under/etcAll values of 12.1 are modified to 9.0. 2. decompress the cpio.gz FileDecompress the fileMethod 1:Zcat lnx_920_
ORA-00257 archiver error -- archiving failed due to full data flash back
System: Windows Server 2008 R2
Database Version: Oracle 10.2.0.4
This morning, an error occurred at work:
ORA-00257: archiver error. Connect internal only, until
Currently, complex "Hot swappable" systems and Service-Oriented Architecture (SOA) have been widely used, making it increasingly difficult to reasonably integrate data. Although your primary application database runs on the Oracle database, there
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service