SQL Script annotation syntax in Oracle DB
REM Single line comment
-- Single line comment
/* Single line comment */
/*
Multi Line
Comment
*/
Supplement: REM is short for REMARK.
So what is the difference between REM and?
-- Or/**/can
The logical structure of a database includes data blocks, zones, segments, and tablespaces.
OracleThe data block is ORacleDatabase storage base, which consists of several bytes of disk space. The data block isOracleThe minimum logical unit of the
[Oracle trusted uard] switch Switchover using the Broker-role in a trusted uard Environment I. Environment Introduction Data Guard environment: Primary Database: oracle10.2.0.5.0OS: RedHat 4.4Host Name: sourceIP Address: 192.168.10.101Database SID:
Create an xtdwtest tableCreate table xtdwtest as select * from dba_objectsSQL> select object_id, data_object_id from dba_objects where object_name = 'xtdwtest ';OBJECT_ID DATA_OBJECT_ID------------------------59436 59436 Execution Plan---------------
RHEL5 enables and disables Oracle database instances in two steps: Step 1: Start the listener; Step 2: Start the database instance.
I. How to start a database instance
1. Go to sqlplus to start the instance[Oracle @ RedHat ~] $ Su-oracle -- "switch
Top-N queries are used to return a limited number of records from an ordered result set. This query is particularly useful when you need to obtain N records at the beginning or last, or you need to view data by page. This article describes several
1. Create a tablespace in Oracle
Create tablespace tianzh
Logging
Datafile'/Opt/oracle/oradata/dqjz/jwzh01.dbf'
Size 30720 m
Autoextend on
Next 50 m maxsize 32768 m
Extent management local;
2. Expand the tablespace based on the original
Summary: in Oracle, a user is granted the permission to access all tables of the user.
For example, grant the query permission of all tables under the scott user to the T User.
Create Or Replace ProcedureGrant_selectAll_ SQLAs
The_c1Integer;
The_
Cause: This is the generic internal error number for Oracle program exceptions. It indicates that a process has encountered a low-level, unexpected condition. Causes of this message include:
1. timeouts (timeout) 2. file Upload uption (the file is
The archive path of rac is modified. If the archive path is not modified, an error is reported when the server is started today.
ORA-01261: Parameter db_recovery_file_dest destination string cannot be translated
This error is caused by a problem
AutoMySQLBackup assists database administrators in backing up databases on a daily, weekly, and monthly basis.Installation and setting methods:1. download the latest version of Sourceforge (2.5.1-01)2. Add executable permissions
$ Mv automysqlbackup-
When asked about the implementation of group by, I found that there may be misunderstandings.
Example
Create table 'tb '('C' int (11) default null,'D' int (4) default null,'E' varchar (1000) DEFAULT NULL) ENGINE = InnoDB default charset =
We all know what kind of execution method is selected for Oracle SQL statements starting from 10 Gb, whether full table scanning or indexing is based on the execution cost. How can we see the execution cost information? With the 10053 event, Oracle
1. Establish a link between PHP and mysql
Php. ini load mysql components:Before extension = php_mysql.dll; removeExtension_dir = "" is the path correct?
Link PHP to mysql Functions
Mysql_connect: Enable the MySQL LinkMysql_select_db: open a database
Mysql function GROUP_CONCAT
GROUP_CONCAT () is a function provided BY the MySQL database, usually used with group by, For details, refer to the MySQL official documentation:
Oracle is not a good bowl of rice. There are many risks and suggestions.1. Incomplete recovery based on time points requires brainwashing of the control file, tearing up the account book (redo the log), and re-printing the account book. This is a
Content
For Oracle Text, you can useCREATE INDEXCreates many types of indexes. The following describes each index type and their purpose and supported features.
CONTEXT Index
CTXCAT Index
CTXRULE index CTXXPATH Index
CONTEXT description
When
This exercise uses RMAN to create backup sets for various database objects.(1) Use RMAN to connect to the database through operating system authentication in the default NOCATALOG mode. Enter the following command at the operating system prompt:Rman
Cause:
If the online redo log file is reused, the loss of a member in the log file will not cause the database to stop, but the alarm log will write a message indicating the problem.
Solution:
Method 1:
If you can tolerate the downtime, you can
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