Disable and uninstall Oracle AWR features
Need to disable AWR? Such a good stuff. By default, AWR is usable and requires a certain amount of sysaux tablespace. However, when debugging packages related to AWR (license is required) access the AWR view
DataGuard slave database deletes applied logs
The company set up a slave uard. At the beginning, it did not pay attention to the management of archiving logs in the slave database. After the system was running for a while, it was found that the
Use SPFILE to reset the configured initialization parameters to the default values of the system.Start with SPFILE. If you want to restore the initialization parameter to the default value, use a statement like this:Alter system reset db_create_file_
Online expansion of database UNDO tablespace
Expand the database UNDO tablespace online and log on to the Oracle database server with an Oracle account
Method 1:
View the tablespace name and file location:
Select tablespace_name, file_id, file_name,
Batch create log table information scripts in mysql, mysql logs
In mysql, the script for creating log information tables in batches through the stored procedure is as follows:
drop PROCEDURE if EXISTS reqSp;DELIMITER //create procedure reqSp(sTime
Basic MySQL-basic database operations and basic mysql operations
1. Delete the database drop database name;
Mysql> drop database test;
Delete database mode
2. create DATABASE name;
Mysql> create database test;
In Windows and Linux, database names
The use of views in SQL (simple views) is suitable for entry-level SQL views.
Creating a view can better call data from one database to another (for example, transferring data from database 209 to database 205)
Example: Database 209 has different
MySQL grouping and sorting takes the first N records and generates an automatic number sequence -- group by after limit plus rownumber, -- grouprownumber
My colleague asked me to group by column and then extract the first few items from each
Cannot set user id: Resource temporarily unavailable, cannotsetuserid
A while ago, Infra reported that the database server could not be connected through putty and SecureCRT. The error message is Resource temporarily unavailable. Since there are
Simple use of stored procedures, simple use of stored procedures
Create a stored procedure:
USE [ais20140425092531]GO/***** Object: StoredProcedure [dbo]. [HBSH_MS_BillType_in_ofmine] Script Date: 09/01/2014 14:34:24 ******/SET ANSI_NULLS ONGOSET
Operand shoshould contain 1 column (s), operandcontain
This error was found during the SQL test today: Operand shoshould contain 1 column (s ).
The reason is that there are multiple fields behind the in condition, and there can only be one field
Some instances understand the mysql database stored procedures and mysql database Stored ProceduresMysql stored procedure: encapsulate SQL:
Create procedure p1 () beginselect * from t_news; end $ // simple mysql Stored procedure instanceDisplay
Oracle transaction processing and instance demonstration jdbc operation batch Delete, oraclejdbc
Transactions
As the basic unit of logical processing, database operations are composed of one or more SQL statements. Of course, there are also
Solving ORA-02395: exceeding call limits for I/O use, ora-02395The PROFILE file of ORACLE is a method to restrict the resources used by database users. For example, you can control the CPU that can be used by sessions or SQL statements, and control
Cocould not find gem 'sqlite3 (> = 0) 'in any of the gem sources listed in you r Gemfile, sqlite3gemfileSolution: sudo gem install sqlite3-rubyERROR: cocould not find a valid gem 'rdiscount' (> = 0) in any repository
This problem happened to me for
Changes cannot be saved. You must delete and recreate the following tables. You have made changes to tags that cannot be re-created, or you have enabled the change to prevent table re-creation after saving. You are not allowed to save the changes.
The following error occurs during DG switching:
ORA-00274: illegal recovery option SEESION
Problem description:
When I run the switch statement on the master database and then switch the slave database to the master database, this problem occurs:
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